nanogui: freetype 1.3.1


Previous by date: 10 Nov 2005 14:55:47 +0000 Re: Failed to switch VT in linux-2.6.9, Gavin Li
Next by date: 10 Nov 2005 14:55:47 +0000 Re: freetype 1.3.1, Peter Barada
Previous in thread: 10 Nov 2005 14:55:47 +0000 freetype 1.3.1, ER
Next in thread: 10 Nov 2005 14:55:47 +0000 Re: freetype 1.3.1, Peter Barada

Subject: freetype 1.3.1
From: Gil Glass ####@####.####
Date: 10 Nov 2005 14:55:47 +0000
Message-Id: <OF78B02B29.753581D1-ON852570B5.005106FD-852570B5.0051F470@acterna.com>

Welcome to my world, ER.

I'm not familiar with the config.cache solution.  What I did in this exact 
same circumstance was to manually modify the config file to

A.  NOT try to build and run a test program when cross compiling (WHY do 
they DO this???) and

B.  hard code the sizes of int and long.

Here are the snippets from the config file that make it work:

...
echo $ac_n "checking size of int""... $ac_c" 1>&6
echo "configure:3694: checking size of int" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
# MANUAL HACK ALERT!!  CONTINUE IF (WHEN) TEST PROGRAM FAILS!!!
    { echo "configure: error: can not run test program while cross 
compiling" 1>&2; echo "configure: info: Who cares?" 1>&2; }
else
  cat > conftest.$ac_ext <<EOF
#line 3702 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(int));
  exit(0);
}
EOF
...

echo "$ac_t""$ac_cv_sizeof_int" 1>&6
# MANUAL HACK ALERT!!  SIZE0F_INT IS HARD-CODED!!!
cat >> confdefs.h <<EOF
#define SIZEOF_INT 4
EOF

...

echo $ac_n "checking size of long""... $ac_c" 1>&6
echo "configure:3733: checking size of long" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
   if test "$cross_compiling" = yes; then
# MANUAL HACK ALERT!!  CONTINUE IF (WHEN) TEST PROGRAM FAILS!!!
    { echo "configure: error: can not run test program while cross 
compiling" 1>&2; echo "configure: info:  Who cares?" 1>&2; }
else
  cat > conftest.$ac_ext <<EOF
#line 3741 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(long));
  exit(0);
}
EOF

...

echo "$ac_t""$ac_cv_sizeof_long" 1>&6
# MANUAL HACK ALERT!!  SIZE0F_LONG IS HARD-CODED!!!
cat >> confdefs.h <<EOF
#define SIZEOF_LONG 4
EOF

If you would prefer the entire file, let me know and I'll send you a copy 
at your e-mail address.

Cheers,
Gil Glass
Telecom Field Services
JDSU
Germantown, MD, USA
+1-240-404-2551

Previous by date: 10 Nov 2005 14:55:47 +0000 Re: Failed to switch VT in linux-2.6.9, Gavin Li
Next by date: 10 Nov 2005 14:55:47 +0000 Re: freetype 1.3.1, Peter Barada
Previous in thread: 10 Nov 2005 14:55:47 +0000 freetype 1.3.1, ER
Next in thread: 10 Nov 2005 14:55:47 +0000 Re: freetype 1.3.1, Peter Barada


Powered by ezmlm-browse 0.20.