/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Diff of /cvsgraph/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Fri Feb 23 00:11:30 2001 UTC revision 1.9, Sat Jul 20 00:48:16 2002 UTC
# Line 12  Line 12 
12  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
13  # Any additions from configure.in:  # Any additions from configure.in:
14  ac_help="$ac_help  ac_help="$ac_help
15    --with-gd=DIR           location of the gd lib/inc"    --with-gd-inc=DIR       location of the gd includes"
16  ac_help="$ac_help  ac_help="$ac_help
17    --with-z=DIR            location of zlib lib/inc"    --with-gd-lib=DIR       location of the gd library"
18  ac_help="$ac_help  ac_help="$ac_help
19    --with-png=DIR          location of png lib/inc"    --with-freetype-lib=DIR    location of freetype library"
20    ac_help="$ac_help
21      --with-freetype2-lib=DIR    location of freetype2 library"
22    ac_help="$ac_help
23      --with-png-inc=DIR      location of png includes"
24    ac_help="$ac_help
25      --with-png-lib=DIR      location of png library"
26    ac_help="$ac_help
27      --with-jpeg-inc=DIR    location of jpeg includes"
28    ac_help="$ac_help
29      --with-jpeg-lib=DIR    location of jpeg library"
30    ac_help="$ac_help
31      --with-z-inc=DIR        location of zlib includes"
32    ac_help="$ac_help
33      --with-z-lib=DIR        location of zlib library"
34    ac_help="$ac_help
35      --disable-speed         Turn off lex table optimization reducing speed and size of executable"
36    
37  # Initialize some variables set by options.  # Initialize some variables set by options.
38  # The variables have the same names as the options, with  # The variables have the same names as the options, with
# Line 528  Line 544 
544    
545    
546    
547    
548  # Extract the first word of "gcc", so it can be a program name with args.  # Extract the first word of "gcc", so it can be a program name with args.
549  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
550  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
551  echo "configure:535: checking for $ac_word" >&5  echo "configure:552: checking for $ac_word" >&5
552  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
553    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
554  else  else
# Line 561  Line 578 
578    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
579  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
580  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
581  echo "configure:565: checking for $ac_word" >&5  echo "configure:582: checking for $ac_word" >&5
582  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
583    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
584  else  else
# Line 612  Line 629 
629        # Extract the first word of "cl", so it can be a program name with args.        # Extract the first word of "cl", so it can be a program name with args.
630  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
631  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
632  echo "configure:616: checking for $ac_word" >&5  echo "configure:633: checking for $ac_word" >&5
633  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
634    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
635  else  else
# Line 644  Line 661 
661  fi  fi
662    
663  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
664  echo "configure:648: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:665: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
665    
666  ac_ext=c  ac_ext=c
667  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 655  Line 672 
672    
673  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
674    
675  #line 659 "configure"  #line 676 "configure"
676  #include "confdefs.h"  #include "confdefs.h"
677    
678  main(){return(0);}  main(){return(0);}
679  EOF  EOF
680  if { (eval echo configure:664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
681    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
682    # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
683    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 686  Line 703 
703    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
704  fi  fi
705  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
706  echo "configure:690: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:707: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
707  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
708  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
709    
710  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
711  echo "configure:695: checking whether we are using GNU C" >&5  echo "configure:712: checking whether we are using GNU C" >&5
712  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
713    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
714  else  else
# Line 700  Line 717 
717    yes;    yes;
718  #endif  #endif
719  EOF  EOF
720  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
721    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
722  else  else
723    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 719  Line 736 
736  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
737  CFLAGS=  CFLAGS=
738  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
739  echo "configure:723: checking whether ${CC-cc} accepts -g" >&5  echo "configure:740: checking whether ${CC-cc} accepts -g" >&5
740  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
741    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
742  else  else
# Line 753  Line 770 
770  # Extract the first word of "flex", so it can be a program name with args.  # Extract the first word of "flex", so it can be a program name with args.
771  set dummy flex; ac_word=$2  set dummy flex; ac_word=$2
772  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
773  echo "configure:757: checking for $ac_word" >&5  echo "configure:774: checking for $ac_word" >&5
774  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
775    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
776  else  else
# Line 787  Line 804 
804    *) ac_lib=l ;;    *) ac_lib=l ;;
805    esac    esac
806    echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6    echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
807  echo "configure:791: checking for yywrap in -l$ac_lib" >&5  echo "configure:808: checking for yywrap in -l$ac_lib" >&5
808  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
809  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
810    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 795  Line 812 
812    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
813  LIBS="-l$ac_lib  $LIBS"  LIBS="-l$ac_lib  $LIBS"
814  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
815  #line 799 "configure"  #line 816 "configure"
816  #include "confdefs.h"  #include "confdefs.h"
817  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
818  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 806  Line 823 
823  yywrap()  yywrap()
824  ; return 0; }  ; return 0; }
825  EOF  EOF
826  if { (eval echo configure:810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
827    rm -rf conftest*    rm -rf conftest*
828    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
829  else  else
# Line 833  Line 850 
850  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
851  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
852  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
853  echo "configure:837: checking for $ac_word" >&5  echo "configure:854: checking for $ac_word" >&5
854  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
855    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
856  else  else
# Line 864  Line 881 
881  test -n "$YACC" || YACC="yacc"  test -n "$YACC" || YACC="yacc"
882    
883    
884  # Check whether --with-gd or --without-gd was given.  LEXFLAGS="-8"
885  if test "${with_gd+set}" = set; then  LEXSPEED="-Cf"
886    withval="$with_gd"  INCL=""
887    LDFLAGS="${LDFLAGS} -L${withval}"  
888                  CFLAGS="${CFLAGS} -I${withval}"  # Check whether --with-gd-inc or --without-gd-inc was given.
889    if test "${with_gd_inc+set}" = set; then
890      withval="$with_gd_inc"
891      INCL="${INCL} -I${withval}"
892    
893    fi
894    
895    
896    # Check whether --with-gd-lib or --without-gd-lib was given.
897    if test "${with_gd_lib+set}" = set; then
898      withval="$with_gd_lib"
899      LIBS="${LIBS} -L${withval}"
900    
901    fi
902    
903    
904    LIBS="$LIBS -lgd"
905    LIBPATH=""
906    
907    # Check whether --with-freetype-lib or --without-freetype-lib was given.
908    if test "${with_freetype_lib+set}" = set; then
909      withval="$with_freetype_lib"
910      LIBS="${LIBS} -L${withval}"
911    
912    fi
913    
914    
915    # Check whether --with-freetype2-lib or --without-freetype2-lib was given.
916    if test "${with_freetype2_lib+set}" = set; then
917      withval="$with_freetype2_lib"
918      LIBS="${LIBS} -L${withval}"
919    
920    fi
921    
922    
923    # Check whether --with-png-inc or --without-png-inc was given.
924    if test "${with_png_inc+set}" = set; then
925      withval="$with_png_inc"
926      INCL="${INCL} -I${withval}"
927    
928    fi
929    
930    
931    # Check whether --with-png-lib or --without-png-lib was given.
932    if test "${with_png_lib+set}" = set; then
933      withval="$with_png_lib"
934      LIBS="${LIBS} -L${withval}"
935    
936    fi
937    
938    
939    # Check whether --with-jpeg-inc or --without-jpeg-inc was given.
940    if test "${with_jpeg_inc+set}" = set; then
941      withval="$with_jpeg_inc"
942      INCL="${INCL} -I${withval}"
943    
944    fi
945    
946    
947    # Check whether --with-jpeg-lib or --without-jpeg-lib was given.
948    if test "${with_jpeg_lib+set}" = set; then
949      withval="$with_jpeg_lib"
950      LIBS="${LIBS} -L${withval}"
951    
952  fi  fi
953    
954    
955  # Check whether --with-z or --without-z was given.  # Check whether --with-z-inc or --without-z-inc was given.
956  if test "${with_z+set}" = set; then  if test "${with_z_inc+set}" = set; then
957    withval="$with_z"    withval="$with_z_inc"
958    LDFLAGS="${LDFLAGS} -L${withval}"    INCL="${INCL} -I${withval}"
                 CFLAGS="${CFLAGS} -I${withval}"  
959    
960  fi  fi
961    
962    
963  # Check whether --with-png or --without-png was given.  # Check whether --with-z-lib or --without-z-lib was given.
964  if test "${with_png+set}" = set; then  if test "${with_z_lib+set}" = set; then
965    withval="$with_png"    withval="$with_z_lib"
966    LDFLAGS="${LDFLAGS} -L${withval}"    LIBS="${LIBS} -L${withval}"
                 CFLAGS="${CFLAGS} -I${withval}"  
967    
968  fi  fi
969    
970    
971  LDFLAGS="${LDFLAGS} -lgd"  # Check whether --enable-speed or --disable-speed was given.
972    if test "${enable_speed+set}" = set; then
973      enableval="$enable_speed"
974      if test "$enableval" = "no"; then LEXSPEED=""; fi
975    fi
976    
977    
978    if test "x$LEXSPEED" != "x"
979    then
980      LEXFLAGS="$LEXFLAGS $LEXSPEED"
981    fi
982    
983    CPPFLAGS="$CPPFLAGS $INCL"
984    CFLAGS="$CFLAGS $INCL"
985    
986  if test "x${GCC}" = "xyes"  if test "x${GCC}" = "xyes"
987  then  then
988    CFLAGS="$CFLAGS -Wall"    CFLAGS="$CFLAGS -Wall"
989    echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6    echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
990  echo "configure:902: checking "for gcc strength-reduce bug"" >&5  echo "configure:991: checking "for gcc strength-reduce bug"" >&5
991  if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
992    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
993  else  else
# Line 906  Line 995 
995    ac_cv_c_gcc_strength_bug="yes"    ac_cv_c_gcc_strength_bug="yes"
996  else  else
997    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
998  #line 910 "configure"  #line 999 "configure"
999  #include "confdefs.h"  #include "confdefs.h"
1000    
1001  int main(void) {  int main(void) {
# Line 917  Line 1006 
1006    exit( Array[1] != -2 );    exit( Array[1] != -2 );
1007  }  }
1008  EOF  EOF
1009  if { (eval echo configure:921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1010  then  then
1011    ac_cv_c_gcc_strength_bug="no"    ac_cv_c_gcc_strength_bug="no"
1012  else  else
# Line 938  Line 1027 
1027    fi    fi
1028  fi  fi
1029    
1030    echo $ac_n "checking "sizes of int and void *"""... $ac_c" 1>&6
1031  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6  echo "configure:1032: checking "sizes of int and void *"" >&5
1032  echo "configure:944: checking for sqrt in -lm" >&5  if eval "test \"`echo '$''{'ac_cv_c_size_int_ptr'+set}'`\" = set"; then
 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`  
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   ac_save_LIBS="$LIBS"  
 LIBS="-lm  $LIBS"  
 cat > conftest.$ac_ext <<EOF  
 #line 952 "configure"  
 #include "confdefs.h"  
 /* Override any gcc2 internal prototype to avoid an error.  */  
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char sqrt();  
   
 int main() {  
 sqrt()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
   
 fi  
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   
         cat >> confdefs.h <<\EOF  
 #define LIBM 1  
 EOF  
   
         MATHLIBS="-lm"  
 else  
   echo "$ac_t""no" 1>&6  
 fi  
   
   
 echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6  
 echo "configure:990: checking for gdImageGif in -lgd" >&5  
 ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`  
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
1033    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1034  else  else
1035    ac_save_LIBS="$LIBS"    if test "$cross_compiling" = yes; then
1036  LIBS="-lgd  $LIBS"    ac_cv_c_size_int_ptr="yes"
 cat > conftest.$ac_ext <<EOF  
 #line 998 "configure"  
 #include "confdefs.h"  
 /* Override any gcc2 internal prototype to avoid an error.  */  
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char gdImageGif();  
   
 int main() {  
 gdImageGif()  
 ; return 0; }  
 EOF  
 if { (eval echo configure:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
 fi  
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
   
 fi  
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   
   CFLAGS="$CFLAGS -DGD_IMAGE_XXX=gdImageGif"  
   
 else  
   echo "$ac_t""no" 1>&6  
 fi  
   
 echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6  
 echo "configure:1032: checking for gdImagePng in -lgd" >&5  
 ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`  
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
1037  else  else
1038    ac_save_LIBS="$LIBS"    cat > conftest.$ac_ext <<EOF
 LIBS="-lgd -lpng -lz ${MATHLIBS} $LIBS"  
 cat > conftest.$ac_ext <<EOF  
1039  #line 1040 "configure"  #line 1040 "configure"
1040  #include "confdefs.h"  #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */  
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char gdImagePng();  
1041    
1042  int main() {  int main(void) {
1043  gdImagePng()    return sizeof(int) == sizeof(void *);
1044  ; return 0; }  }
1045  EOF  EOF
1046  if { (eval echo configure:1051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1047    rm -rf conftest*  then
1048    eval "ac_cv_lib_$ac_lib_var=yes"    ac_cv_c_size_int_ptr="no"
1049  else  else
1050    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
1051    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
1052    rm -rf conftest*    rm -fr conftest*
1053    eval "ac_cv_lib_$ac_lib_var=no"    ac_cv_c_size_int_ptr="yes"
1054  fi  fi
1055  rm -f conftest*  rm -fr conftest*
 LIBS="$ac_save_LIBS"  
   
1056  fi  fi
1057  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   
   CFLAGS="$CFLAGS -DGD_IMAGE_XXX=gdImagePng"  
   LDFLAGS="$LDFLAGS -lpng -lz ${MATHLIBS}"  
   
 else  
   echo "$ac_t""no" 1>&6  
 :  
1058  fi  fi
1059    
1060    echo "$ac_t""$ac_cv_c_size_int_ptr" 1>&6
1061    if test "$ac_cv_c_size_int_ptr" = "no"
1062    then
1063            echo "** The size of an integer is not equal to a pointer."
1064            echo "   There are currently assumtions in the app that"
1065            echo "   prevents it from running if these sizes are not"
1066            echo "   equal."
1067            echo "   Please configure with a compiler that uses the"
1068            echo "   same sizes for ints and pointers."
1069            exit 1
1070    fi
1071    
1072  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1073  echo "configure:1078: checking how to run the C preprocessor" >&5  echo "configure:1074: checking how to run the C preprocessor" >&5
1074  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1075  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1076    CPP=    CPP=
# Line 1089  Line 1085 
1085    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
1086    # not just through cpp.    # not just through cpp.
1087    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1088  #line 1093 "configure"  #line 1089 "configure"
1089  #include "confdefs.h"  #include "confdefs.h"
1090  #include <assert.h>  #include <assert.h>
1091  Syntax Error  Syntax Error
1092  EOF  EOF
1093  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1094  { (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1095  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1096  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1097    :    :
# Line 1106  Line 1102 
1102    rm -rf conftest*    rm -rf conftest*
1103    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
1104    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1105  #line 1110 "configure"  #line 1106 "configure"
1106  #include "confdefs.h"  #include "confdefs.h"
1107  #include <assert.h>  #include <assert.h>
1108  Syntax Error  Syntax Error
1109  EOF  EOF
1110  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1111  { (eval echo configure:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1112  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1113  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1114    :    :
# Line 1123  Line 1119 
1119    rm -rf conftest*    rm -rf conftest*
1120    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
1121    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1122  #line 1127 "configure"  #line 1123 "configure"
1123  #include "confdefs.h"  #include "confdefs.h"
1124  #include <assert.h>  #include <assert.h>
1125  Syntax Error  Syntax Error
1126  EOF  EOF
1127  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1128  { (eval echo configure:1133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1129  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1130  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1131    :    :
# Line 1153  Line 1149 
1149  fi  fi
1150  echo "$ac_t""$CPP" 1>&6  echo "$ac_t""$CPP" 1>&6
1151    
1152    ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`
1153    echo $ac_n "checking for getopt.h""... $ac_c" 1>&6
1154    echo "configure:1155: checking for getopt.h" >&5
1155    if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1156      echo $ac_n "(cached) $ac_c" 1>&6
1157    else
1158      cat > conftest.$ac_ext <<EOF
1159    #line 1160 "configure"
1160    #include "confdefs.h"
1161    #include <getopt.h>
1162    EOF
1163    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1164    { (eval echo configure:1165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1165    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1166    if test -z "$ac_err"; then
1167      rm -rf conftest*
1168      eval "ac_cv_header_$ac_safe=yes"
1169    else
1170      echo "$ac_err" >&5
1171      echo "configure: failed program was:" >&5
1172      cat conftest.$ac_ext >&5
1173      rm -rf conftest*
1174      eval "ac_cv_header_$ac_safe=no"
1175    fi
1176    rm -f conftest*
1177    fi
1178    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1179      echo "$ac_t""yes" 1>&6
1180       cat >> confdefs.h <<\EOF
1181    #define HAVE_GETOPT_H 1
1182    EOF
1183    
1184    else
1185      echo "$ac_t""no" 1>&6
1186    fi
1187    
1188    
1189  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`
1190  echo $ac_n "checking for gd.h""... $ac_c" 1>&6  echo $ac_n "checking for gd.h""... $ac_c" 1>&6
1191  echo "configure:1159: checking for gd.h" >&5  echo "configure:1192: checking for gd.h" >&5
1192  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1193    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1194  else  else
1195    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1196  #line 1164 "configure"  #line 1197 "configure"
1197  #include "confdefs.h"  #include "confdefs.h"
1198  #include <gd.h>  #include <gd.h>
1199  EOF  EOF
1200  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1201  { (eval echo configure:1169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1202  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1203  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1204    rm -rf conftest*    rm -rf conftest*
# Line 1188  Line 1221 
1221  fi  fi
1222    
1223    
1224  if test $have_gd_h != "yes"; then  if test "$have_gd_h" != "yes"; then
1225  echo  echo
1226          echo "** The GD library is required for CvsGraph to function."          echo "** The GD library is required for CvsGraph to function."
1227          echo "   Get it from http://www.boutell.com, compile it and"          echo "   Get it from http://www.boutell.com, compile it and"
# Line 1200  Line 1233 
1233          exit 1          exit 1
1234  fi  fi
1235    
1236    echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
1237    echo "configure:1238: checking for sqrt in -lm" >&5
1238    ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
1239    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1240      echo $ac_n "(cached) $ac_c" 1>&6
1241    else
1242      ac_save_LIBS="$LIBS"
1243    LIBS="-lm  $LIBS"
1244    cat > conftest.$ac_ext <<EOF
1245    #line 1246 "configure"
1246    #include "confdefs.h"
1247    /* Override any gcc2 internal prototype to avoid an error.  */
1248    /* We use char because int might match the return type of a gcc2
1249        builtin and then its argument prototype would still apply.  */
1250    char sqrt();
1251    
1252  trap '' 1 2 15  int main() {
1253  cat > confcache <<\EOF  sqrt()
1254  # This file is a shell script that caches the results of configure  ; return 0; }
 # tests run on this system so they can be shared between configure  
 # scripts and configure runs.  It is not useful on other systems.  
 # If it contains results you don't want to keep, you may remove or edit it.  
 #  
 # By default, configure uses ./config.cache as the cache file,  
 # creating it if it does not exist already.  You can give configure  
 # the --cache-file=FILE option to use a different cache file; that is  
 # what configure does when it calls configure scripts in  
 # subdirectories, so they share the cache.  
 # Giving --cache-file=/dev/null disables caching, for debugging configure.  
 # config.status only pays attention to the cache file if you give it the  
 # --recheck option to rerun configure.  
 #  
1255  EOF  EOF
1256  # The following way of writing the cache mishandles newlines in values,  if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1257  # but we know of no workaround that is simple, portable, and efficient.    rm -rf conftest*
1258  # So, don't put newlines in cache variables' values.    eval "ac_cv_lib_$ac_lib_var=yes"
 # Ultrix sh set writes to stderr and can't be redirected directly,  
 # and sets the high bit in the cache file unless we assign to the vars.  
 (set) 2>&1 |  
   case `(ac_space=' '; set | grep ac_space) 2>&1` in  
   *ac_space=\ *)  
     # `set' does not quote correctly, so add quotes (double-quote substitution  
     # turns \\\\ into \\, and sed turns \\ into \).  
     sed -n \  
       -e "s/'/'\\\\''/g" \  
       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"  
     ;;  
   *)  
     # `set' quotes correctly as required by POSIX, so do not add quotes.  
     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'  
     ;;  
   esac >> confcache  
 if cmp -s $cache_file confcache; then  
   :  
1259  else  else
1260    if test -w $cache_file; then    echo "configure: failed program was:" >&5
1261      echo "updating cache $cache_file"    cat conftest.$ac_ext >&5
1262      cat confcache > $cache_file    rm -rf conftest*
1263    else    eval "ac_cv_lib_$ac_lib_var=no"
     echo "not updating unwritable cache $cache_file"  
   fi  
1264  fi  fi
1265  rm -f confcache  rm -f conftest*
1266    LIBS="$ac_save_LIBS"
1267    
1268  trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  fi
1269    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1270      echo "$ac_t""yes" 1>&6
1271    
1272            cat >> confdefs.h <<\EOF
1273    #define LIBM 1
1274    EOF
1275    
1276            MATHLIBS="-lm"
1277    
1278    else
1279      echo "$ac_t""no" 1>&6
1280    fi
1281    
1282    
1283    echo $ac_n "checking for compress in -lz""... $ac_c" 1>&6
1284    echo "configure:1285: checking for compress in -lz" >&5
1285    ac_lib_var=`echo z'_'compress | sed 'y%./+-%__p_%'`
1286    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1287      echo $ac_n "(cached) $ac_c" 1>&6
1288    else
1289      ac_save_LIBS="$LIBS"
1290    LIBS="-lz ${LIBPATH} ${MATHLIBS}  $LIBS"
1291    cat > conftest.$ac_ext <<EOF
1292    #line 1293 "configure"
1293    #include "confdefs.h"
1294    /* Override any gcc2 internal prototype to avoid an error.  */
1295    /* We use char because int might match the return type of a gcc2
1296        builtin and then its argument prototype would still apply.  */
1297    char compress();
1298    
1299    int main() {
1300    compress()
1301    ; return 0; }
1302    EOF
1303    if { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1304      rm -rf conftest*
1305      eval "ac_cv_lib_$ac_lib_var=yes"
1306    else
1307      echo "configure: failed program was:" >&5
1308      cat conftest.$ac_ext >&5
1309      rm -rf conftest*
1310      eval "ac_cv_lib_$ac_lib_var=no"
1311    fi
1312    rm -f conftest*
1313    LIBS="$ac_save_LIBS"
1314    
1315    fi
1316    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1317      echo "$ac_t""yes" 1>&6
1318    
1319            ac_have_libz="yes"
1320            ZLIB="-lz"
1321    
1322    else
1323      echo "$ac_t""no" 1>&6
1324    
1325            ac_have_libz="no"
1326    
1327    fi
1328    
1329    
1330    echo $ac_n "checking for FT_Load_Glyph in -lfreetype""... $ac_c" 1>&6
1331    echo "configure:1332: checking for FT_Load_Glyph in -lfreetype" >&5
1332    ac_lib_var=`echo freetype'_'FT_Load_Glyph | sed 'y%./+-%__p_%'`
1333    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1334      echo $ac_n "(cached) $ac_c" 1>&6
1335    else
1336      ac_save_LIBS="$LIBS"
1337    LIBS="-lfreetype ${LIBPATH} ${MATHLIBS}  $LIBS"
1338    cat > conftest.$ac_ext <<EOF
1339    #line 1340 "configure"
1340    #include "confdefs.h"
1341    /* Override any gcc2 internal prototype to avoid an error.  */
1342    /* We use char because int might match the return type of a gcc2
1343        builtin and then its argument prototype would still apply.  */
1344    char FT_Load_Glyph();
1345    
1346    int main() {
1347    FT_Load_Glyph()
1348    ; return 0; }
1349    EOF
1350    if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1351      rm -rf conftest*
1352      eval "ac_cv_lib_$ac_lib_var=yes"
1353    else
1354      echo "configure: failed program was:" >&5
1355      cat conftest.$ac_ext >&5
1356      rm -rf conftest*
1357      eval "ac_cv_lib_$ac_lib_var=no"
1358    fi
1359    rm -f conftest*
1360    LIBS="$ac_save_LIBS"
1361    
1362    fi
1363    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1364      echo "$ac_t""yes" 1>&6
1365    
1366            ac_have_libfreetype="yes"
1367            LIBFT="-lfreetype"
1368    
1369    else
1370      echo "$ac_t""no" 1>&6
1371    
1372            ac_have_libfreetype="no"
1373    
1374    fi
1375    
1376    
1377    echo $ac_n "checking for TT_Load_Glyph in -lttf""... $ac_c" 1>&6
1378    echo "configure:1379: checking for TT_Load_Glyph in -lttf" >&5
1379    ac_lib_var=`echo ttf'_'TT_Load_Glyph | sed 'y%./+-%__p_%'`
1380    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1381      echo $ac_n "(cached) $ac_c" 1>&6
1382    else
1383      ac_save_LIBS="$LIBS"
1384    LIBS="-lttf ${LIBPATH} ${MATHLIBS}  $LIBS"
1385    cat > conftest.$ac_ext <<EOF
1386    #line 1387 "configure"
1387    #include "confdefs.h"
1388    /* Override any gcc2 internal prototype to avoid an error.  */
1389    /* We use char because int might match the return type of a gcc2
1390        builtin and then its argument prototype would still apply.  */
1391    char TT_Load_Glyph();
1392    
1393    int main() {
1394    TT_Load_Glyph()
1395    ; return 0; }
1396    EOF
1397    if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1398      rm -rf conftest*
1399      eval "ac_cv_lib_$ac_lib_var=yes"
1400    else
1401      echo "configure: failed program was:" >&5
1402      cat conftest.$ac_ext >&5
1403      rm -rf conftest*
1404      eval "ac_cv_lib_$ac_lib_var=no"
1405    fi
1406    rm -f conftest*
1407    LIBS="$ac_save_LIBS"
1408    
1409    fi
1410    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1411      echo "$ac_t""yes" 1>&6
1412    
1413            ac_have_libttf="yes"
1414            LIBTT="-lttf"
1415    
1416    else
1417      echo "$ac_t""no" 1>&6
1418    
1419            ac_have_libttf="no"
1420    
1421    fi
1422    
1423    
1424    echo $ac_n "checking for png_create_read_struct  in -lpng""... $ac_c" 1>&6
1425    echo "configure:1426: checking for png_create_read_struct  in -lpng" >&5
1426    ac_lib_var=`echo png'_'png_create_read_struct  | sed 'y%./+-%__p_%'`
1427    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1428      echo $ac_n "(cached) $ac_c" 1>&6
1429    else
1430      ac_save_LIBS="$LIBS"
1431    LIBS="-lpng ${LIBPATH} ${ZLIB} ${MATHLIBS}  $LIBS"
1432    cat > conftest.$ac_ext <<EOF
1433    #line 1434 "configure"
1434    #include "confdefs.h"
1435    /* Override any gcc2 internal prototype to avoid an error.  */
1436    /* We use char because int might match the return type of a gcc2
1437        builtin and then its argument prototype would still apply.  */
1438    char png_create_read_struct ();
1439    
1440    int main() {
1441    png_create_read_struct ()
1442    ; return 0; }
1443    EOF
1444    if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1445      rm -rf conftest*
1446      eval "ac_cv_lib_$ac_lib_var=yes"
1447    else
1448      echo "configure: failed program was:" >&5
1449      cat conftest.$ac_ext >&5
1450      rm -rf conftest*
1451      eval "ac_cv_lib_$ac_lib_var=no"
1452    fi
1453    rm -f conftest*
1454    LIBS="$ac_save_LIBS"
1455    
1456    fi
1457    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1458      echo "$ac_t""yes" 1>&6
1459    
1460            ac_have_libpng="yes"
1461            LIBPNG="-lpng"
1462    
1463    else
1464      echo "$ac_t""no" 1>&6
1465    
1466            ac_have_libpng="no"
1467    
1468    fi
1469    
1470    
1471    echo $ac_n "checking for jpeg_CreateCompress in -ljpeg""... $ac_c" 1>&6
1472    echo "configure:1473: checking for jpeg_CreateCompress in -ljpeg" >&5
1473    ac_lib_var=`echo jpeg'_'jpeg_CreateCompress | sed 'y%./+-%__p_%'`
1474    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1475      echo $ac_n "(cached) $ac_c" 1>&6
1476    else
1477      ac_save_LIBS="$LIBS"
1478    LIBS="-ljpeg ${LIBPATH} ${MATHLIBS}  $LIBS"
1479    cat > conftest.$ac_ext <<EOF
1480    #line 1481 "configure"
1481    #include "confdefs.h"
1482    /* Override any gcc2 internal prototype to avoid an error.  */
1483    /* We use char because int might match the return type of a gcc2
1484        builtin and then its argument prototype would still apply.  */
1485    char jpeg_CreateCompress();
1486    
1487    int main() {
1488    jpeg_CreateCompress()
1489    ; return 0; }
1490    EOF
1491    if { (eval echo configure:1492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1492      rm -rf conftest*
1493      eval "ac_cv_lib_$ac_lib_var=yes"
1494    else
1495      echo "configure: failed program was:" >&5
1496      cat conftest.$ac_ext >&5
1497      rm -rf conftest*
1498      eval "ac_cv_lib_$ac_lib_var=no"
1499    fi
1500    rm -f conftest*
1501    LIBS="$ac_save_LIBS"
1502    
1503    fi
1504    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1505      echo "$ac_t""yes" 1>&6
1506    
1507            ac_have_libjpeg="yes"
1508            LIBJPEG="-ljpeg"
1509    
1510    else
1511      echo "$ac_t""no" 1>&6
1512    
1513            ac_have_libjpeg="no"
1514    
1515    fi
1516    
1517    
1518    OLIBS="${LIBS}"
1519    LIBS="${LIBS} ${MATHLIB}"
1520    echo $ac_n "checking "whether libpng needs -lz"""... $ac_c" 1>&6
1521    echo "configure:1522: checking "whether libpng needs -lz"" >&5
1522    if eval "test \"`echo '$''{'ac_cv_png_needs_z'+set}'`\" = set"; then
1523      echo $ac_n "(cached) $ac_c" 1>&6
1524    else
1525      cat > conftest.$ac_ext <<EOF
1526    #line 1527 "configure"
1527    #include "confdefs.h"
1528    /* Override any gcc2 internal prototype to avoid an error.  */
1529    /* We use char because int might match the return type of a gcc2
1530        builtin and then its argument prototype would still apply.  */
1531    char png_create_read_struct();
1532    
1533    int main() {
1534    png_create_read_struct()
1535    ; return 0; }
1536    EOF
1537    if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1538      rm -rf conftest*
1539      ac_cv_png_needs_z="no"
1540    
1541    else
1542      echo "configure: failed program was:" >&5
1543      cat conftest.$ac_ext >&5
1544      rm -rf conftest*
1545      ac_cv_png_needs_z="yes"
1546    
1547    fi
1548    rm -f conftest*
1549    fi
1550    
1551    echo "$ac_t""$ac_cv_png_needs_z" 1>&6
1552    LIBS="${OLIBS}"
1553    
1554    
1555    OLIBS="${LIBS}"
1556    LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBJPEG} ${MATHLIB}"
1557    echo $ac_n "checking "whether libgd needs -lpng"""... $ac_c" 1>&6
1558    echo "configure:1559: checking "whether libgd needs -lpng"" >&5
1559    if eval "test \"`echo '$''{'ac_cv_gd_needs_png'+set}'`\" = set"; then
1560      echo $ac_n "(cached) $ac_c" 1>&6
1561    else
1562      cat > conftest.$ac_ext <<EOF
1563    #line 1564 "configure"
1564    #include "confdefs.h"
1565    /* Override any gcc2 internal prototype to avoid an error.  */
1566    /* We use char because int might match the return type of a gcc2
1567        builtin and then its argument prototype would still apply.  */
1568    char gdImageCreate();
1569    
1570    int main() {
1571    gdImageCreate()
1572    ; return 0; }
1573    EOF
1574    if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1575      rm -rf conftest*
1576      ac_cv_gd_needs_png="no"
1577    
1578    else
1579      echo "configure: failed program was:" >&5
1580      cat conftest.$ac_ext >&5
1581      rm -rf conftest*
1582      ac_cv_gd_needs_png="yes"
1583    
1584    fi
1585    rm -f conftest*
1586    fi
1587    
1588    echo "$ac_t""$ac_cv_gd_needs_png" 1>&6
1589    LIBS="${OLIBS}"
1590    
1591    OLIBS="${LIBS}"
1592    LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBPNG} ${LIBZ} ${MATHLIB}"
1593    echo $ac_n "checking "whether libgd needs -ljpeg"""... $ac_c" 1>&6
1594    echo "configure:1595: checking "whether libgd needs -ljpeg"" >&5
1595    if eval "test \"`echo '$''{'ac_cv_gd_needs_jpeg'+set}'`\" = set"; then
1596      echo $ac_n "(cached) $ac_c" 1>&6
1597    else
1598      cat > conftest.$ac_ext <<EOF
1599    #line 1600 "configure"
1600    #include "confdefs.h"
1601    /* Override any gcc2 internal prototype to avoid an error.  */
1602    /* We use char because int might match the return type of a gcc2
1603        builtin and then its argument prototype would still apply.  */
1604    char gdImageCreate();
1605    
1606    int main() {
1607    gdImageCreate()
1608    ; return 0; }
1609    EOF
1610    if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1611      rm -rf conftest*
1612      ac_cv_gd_needs_jpeg="no"
1613    
1614    else
1615      echo "configure: failed program was:" >&5
1616      cat conftest.$ac_ext >&5
1617      rm -rf conftest*
1618      ac_cv_gd_needs_jpeg="yes"
1619    
1620    fi
1621    rm -f conftest*
1622    fi
1623    
1624    echo "$ac_t""$ac_cv_gd_needs_jpeg" 1>&6
1625    LIBS="${OLIBS}"
1626    
1627    OLIBS="${LIBS}"
1628    LIBS="${LIBS} ${LIBFT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"
1629    echo $ac_n "checking "whether libgd needs -lttf"""... $ac_c" 1>&6
1630    echo "configure:1631: checking "whether libgd needs -lttf"" >&5
1631    if eval "test \"`echo '$''{'ac_cv_gd_needs_ttf'+set}'`\" = set"; then
1632      echo $ac_n "(cached) $ac_c" 1>&6
1633    else
1634      cat > conftest.$ac_ext <<EOF
1635    #line 1636 "configure"
1636    #include "confdefs.h"
1637    /* Override any gcc2 internal prototype to avoid an error.  */
1638    /* We use char because int might match the return type of a gcc2
1639        builtin and then its argument prototype would still apply.  */
1640    char gdImageCreate();
1641    
1642    int main() {
1643    gdImageCreate()
1644    ; return 0; }
1645    EOF
1646    if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1647      rm -rf conftest*
1648      ac_cv_gd_needs_ttf="no"
1649    
1650    else
1651      echo "configure: failed program was:" >&5
1652      cat conftest.$ac_ext >&5
1653      rm -rf conftest*
1654      ac_cv_gd_needs_ttf="yes"
1655    
1656    fi
1657    rm -f conftest*
1658    fi
1659    
1660    echo "$ac_t""$ac_cv_gd_needs_ttf" 1>&6
1661    LIBS="${OLIBS}"
1662    
1663    OLIBS="${LIBS}"
1664    LIBS="${LIBS} ${LIBTT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"
1665    echo $ac_n "checking "whether libgd needs -lfreetype"""... $ac_c" 1>&6
1666    echo "configure:1667: checking "whether libgd needs -lfreetype"" >&5
1667    if eval "test \"`echo '$''{'ac_cv_gd_needs_freetype'+set}'`\" = set"; then
1668      echo $ac_n "(cached) $ac_c" 1>&6
1669    else
1670      cat > conftest.$ac_ext <<EOF
1671    #line 1672 "configure"
1672    #include "confdefs.h"
1673    /* Override any gcc2 internal prototype to avoid an error.  */
1674    /* We use char because int might match the return type of a gcc2
1675        builtin and then its argument prototype would still apply.  */
1676    char gdImageCreate();
1677    
1678    int main() {
1679    gdImageCreate()
1680    ; return 0; }
1681    EOF
1682    if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1683      rm -rf conftest*
1684      ac_cv_gd_needs_freetype="no"
1685    
1686    else
1687      echo "configure: failed program was:" >&5
1688      cat conftest.$ac_ext >&5
1689      rm -rf conftest*
1690      ac_cv_gd_needs_freetype="yes"
1691    
1692    fi
1693    rm -f conftest*
1694    fi
1695    
1696    echo "$ac_t""$ac_cv_gd_needs_freetype" 1>&6
1697    LIBS="${OLIBS}"
1698    
1699    if test "$ac_cv_gd_needs_freetype" = "yes"
1700    then
1701            if test "$ac_have_libfreetype" != "yes"
1702            then
1703                    echo "** WARNING: Required library libfreetype not found"
1704            fi
1705            LIBS="${LIBS} ${LIBFT}"
1706    fi
1707    
1708    if test "$ac_cv_gd_needs_ttf" = "yes"
1709    then
1710            if test "$ac_have_libttf" != "yes"
1711            then
1712                    echo "** WARNING: Required library libttf not found"
1713            fi
1714            LIBS="${LIBS} ${LIBTT}"
1715    fi
1716    
1717    if test "$ac_cv_gd_needs_jpeg" = "yes"
1718    then
1719            if test "$ac_have_libjpeg" != "yes"
1720            then
1721                    echo "** WARNING: Required library libjpeg not found"
1722            fi
1723            LIBS="${LIBS} ${LIBJPEG}"
1724    fi
1725    
1726    if test "$ac_cv_gd_needs_png" = "yes"
1727    then
1728            if test "$ac_have_libpng" != "yes"
1729            then
1730                    echo "** WARNING: Required library libpng not found"
1731            fi
1732            LIBS="${LIBS} ${LIBPNG}"
1733            if test "$ac_cv_png_needs_z" = "yes"
1734            then
1735                    if test "$ac_have_libz" != "yes"
1736                    then
1737                            echo "** WARNING: Required library libz not found"
1738                    fi
1739                    LIBS="${LIBS} ${LIBZ}"
1740            fi
1741    fi
1742    
1743    LIBS="${LIBS} ${MATHLIBS}"
1744    
1745    echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
1746    echo "configure:1747: checking for gdImageGif in -lgd" >&5
1747    ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
1748    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1749      echo $ac_n "(cached) $ac_c" 1>&6
1750    else
1751      ac_save_LIBS="$LIBS"
1752    LIBS="-lgd  $LIBS"
1753    cat > conftest.$ac_ext <<EOF
1754    #line 1755 "configure"
1755    #include "confdefs.h"
1756    /* Override any gcc2 internal prototype to avoid an error.  */
1757    /* We use char because int might match the return type of a gcc2
1758        builtin and then its argument prototype would still apply.  */
1759    char gdImageGif();
1760    
1761    int main() {
1762    gdImageGif()
1763    ; return 0; }
1764    EOF
1765    if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1766      rm -rf conftest*
1767      eval "ac_cv_lib_$ac_lib_var=yes"
1768    else
1769      echo "configure: failed program was:" >&5
1770      cat conftest.$ac_ext >&5
1771      rm -rf conftest*
1772      eval "ac_cv_lib_$ac_lib_var=no"
1773    fi
1774    rm -f conftest*
1775    LIBS="$ac_save_LIBS"
1776    
1777    fi
1778    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1779      echo "$ac_t""yes" 1>&6
1780    
1781            cat >> confdefs.h <<\EOF
1782    #define HAVE_IMAGE_GIF 1
1783    EOF
1784    
1785            have_gifs="yes"
1786    
1787    else
1788      echo "$ac_t""no" 1>&6
1789    have_gifs="no"
1790    
1791    fi
1792    
1793    
1794    if test "${have_gifs}" = "yes"
1795    then
1796            echo "** You have a very old GD library. Please consider"
1797            echo "   upgrading to a more recent version (1.8.4 or newer)."
1798            echo "   --Note that f.x. ViewCVS needs CvsGraph to generate PNG"
1799            echo "     images and ancient GD libraries might contain many bugs."
1800            echo "     However, if you need GIFs, then you must stick to this"
1801            echo "     old version."
1802    fi
1803    
1804    echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1805    echo "configure:1806: checking for gdImagePng in -lgd" >&5
1806    ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1807    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1808      echo $ac_n "(cached) $ac_c" 1>&6
1809    else
1810      ac_save_LIBS="$LIBS"
1811    LIBS="-lgd  $LIBS"
1812    cat > conftest.$ac_ext <<EOF
1813    #line 1814 "configure"
1814    #include "confdefs.h"
1815    /* Override any gcc2 internal prototype to avoid an error.  */
1816    /* We use char because int might match the return type of a gcc2
1817        builtin and then its argument prototype would still apply.  */
1818    char gdImagePng();
1819    
1820    int main() {
1821    gdImagePng()
1822    ; return 0; }
1823    EOF
1824    if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1825      rm -rf conftest*
1826      eval "ac_cv_lib_$ac_lib_var=yes"
1827    else
1828      echo "configure: failed program was:" >&5
1829      cat conftest.$ac_ext >&5
1830      rm -rf conftest*
1831      eval "ac_cv_lib_$ac_lib_var=no"
1832    fi
1833    rm -f conftest*
1834    LIBS="$ac_save_LIBS"
1835    
1836    fi
1837    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1838      echo "$ac_t""yes" 1>&6
1839    
1840            cat >> confdefs.h <<\EOF
1841    #define HAVE_IMAGE_PNG 1
1842    EOF
1843    
1844    
1845    else
1846      echo "$ac_t""no" 1>&6
1847    fi
1848    
1849    echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6
1850    echo "configure:1851: checking for gdImageJpeg in -lgd" >&5
1851    ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`
1852    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1853      echo $ac_n "(cached) $ac_c" 1>&6
1854    else
1855      ac_save_LIBS="$LIBS"
1856    LIBS="-lgd  $LIBS"
1857    cat > conftest.$ac_ext <<EOF
1858    #line 1859 "configure"
1859    #include "confdefs.h"
1860    /* Override any gcc2 internal prototype to avoid an error.  */
1861    /* We use char because int might match the return type of a gcc2
1862        builtin and then its argument prototype would still apply.  */
1863    char gdImageJpeg();
1864    
1865    int main() {
1866    gdImageJpeg()
1867    ; return 0; }
1868    EOF
1869    if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1870      rm -rf conftest*
1871      eval "ac_cv_lib_$ac_lib_var=yes"
1872    else
1873      echo "configure: failed program was:" >&5
1874      cat conftest.$ac_ext >&5
1875      rm -rf conftest*
1876      eval "ac_cv_lib_$ac_lib_var=no"
1877    fi
1878    rm -f conftest*
1879    LIBS="$ac_save_LIBS"
1880    
1881    fi
1882    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1883      echo "$ac_t""yes" 1>&6
1884    
1885            cat >> confdefs.h <<\EOF
1886    #define HAVE_IMAGE_JPEG 1
1887    EOF
1888    
1889    
1890    else
1891      echo "$ac_t""no" 1>&6
1892    fi
1893    
1894    echo $ac_n "checking for gdImageStringTTF in -lgd""... $ac_c" 1>&6
1895    echo "configure:1896: checking for gdImageStringTTF in -lgd" >&5
1896    ac_lib_var=`echo gd'_'gdImageStringTTF | sed 'y%./+-%__p_%'`
1897    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1898      echo $ac_n "(cached) $ac_c" 1>&6
1899    else
1900      ac_save_LIBS="$LIBS"
1901    LIBS="-lgd  $LIBS"
1902    cat > conftest.$ac_ext <<EOF
1903    #line 1904 "configure"
1904    #include "confdefs.h"
1905    /* Override any gcc2 internal prototype to avoid an error.  */
1906    /* We use char because int might match the return type of a gcc2
1907        builtin and then its argument prototype would still apply.  */
1908    char gdImageStringTTF();
1909    
1910    int main() {
1911    gdImageStringTTF()
1912    ; return 0; }
1913    EOF
1914    if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1915      rm -rf conftest*
1916      eval "ac_cv_lib_$ac_lib_var=yes"
1917    else
1918      echo "configure: failed program was:" >&5
1919      cat conftest.$ac_ext >&5
1920      rm -rf conftest*
1921      eval "ac_cv_lib_$ac_lib_var=no"
1922    fi
1923    rm -f conftest*
1924    LIBS="$ac_save_LIBS"
1925    
1926    fi
1927    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1928      echo "$ac_t""yes" 1>&6
1929    
1930            cat >> confdefs.h <<\EOF
1931    #define HAVE_GDIMAGESTRINGTTF 1
1932    EOF
1933    
1934    
1935    else
1936      echo "$ac_t""no" 1>&6
1937    fi
1938    
1939    echo $ac_n "checking for gdImageStringFT in -lgd""... $ac_c" 1>&6
1940    echo "configure:1941: checking for gdImageStringFT in -lgd" >&5
1941    ac_lib_var=`echo gd'_'gdImageStringFT | sed 'y%./+-%__p_%'`
1942    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1943      echo $ac_n "(cached) $ac_c" 1>&6
1944    else
1945      ac_save_LIBS="$LIBS"
1946    LIBS="-lgd  $LIBS"
1947    cat > conftest.$ac_ext <<EOF
1948    #line 1949 "configure"
1949    #include "confdefs.h"
1950    /* Override any gcc2 internal prototype to avoid an error.  */
1951    /* We use char because int might match the return type of a gcc2
1952        builtin and then its argument prototype would still apply.  */
1953    char gdImageStringFT();
1954    
1955    int main() {
1956    gdImageStringFT()
1957    ; return 0; }
1958    EOF
1959    if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1960      rm -rf conftest*
1961      eval "ac_cv_lib_$ac_lib_var=yes"
1962    else
1963      echo "configure: failed program was:" >&5
1964      cat conftest.$ac_ext >&5
1965      rm -rf conftest*
1966      eval "ac_cv_lib_$ac_lib_var=no"
1967    fi
1968    rm -f conftest*
1969    LIBS="$ac_save_LIBS"
1970    
1971    fi
1972    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1973      echo "$ac_t""yes" 1>&6
1974    
1975            cat >> confdefs.h <<\EOF
1976    #define HAVE_GDIMAGESTRINGFT 1
1977    EOF
1978    
1979    
1980    else
1981      echo "$ac_t""no" 1>&6
1982    fi
1983    
1984    
1985    
1986    
1987    
1988    trap '' 1 2 15
1989    cat > confcache <<\EOF
1990    # This file is a shell script that caches the results of configure
1991    # tests run on this system so they can be shared between configure
1992    # scripts and configure runs.  It is not useful on other systems.
1993    # If it contains results you don't want to keep, you may remove or edit it.
1994    #
1995    # By default, configure uses ./config.cache as the cache file,
1996    # creating it if it does not exist already.  You can give configure
1997    # the --cache-file=FILE option to use a different cache file; that is
1998    # what configure does when it calls configure scripts in
1999    # subdirectories, so they share the cache.
2000    # Giving --cache-file=/dev/null disables caching, for debugging configure.
2001    # config.status only pays attention to the cache file if you give it the
2002    # --recheck option to rerun configure.
2003    #
2004    EOF
2005    # The following way of writing the cache mishandles newlines in values,
2006    # but we know of no workaround that is simple, portable, and efficient.
2007    # So, don't put newlines in cache variables' values.
2008    # Ultrix sh set writes to stderr and can't be redirected directly,
2009    # and sets the high bit in the cache file unless we assign to the vars.
2010    (set) 2>&1 |
2011      case `(ac_space=' '; set | grep ac_space) 2>&1` in
2012      *ac_space=\ *)
2013        # `set' does not quote correctly, so add quotes (double-quote substitution
2014        # turns \\\\ into \\, and sed turns \\ into \).
2015        sed -n \
2016          -e "s/'/'\\\\''/g" \
2017          -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2018        ;;
2019      *)
2020        # `set' quotes correctly as required by POSIX, so do not add quotes.
2021        sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2022        ;;
2023      esac >> confcache
2024    if cmp -s $cache_file confcache; then
2025      :
2026    else
2027      if test -w $cache_file; then
2028        echo "updating cache $cache_file"
2029        cat confcache > $cache_file
2030      else
2031        echo "not updating unwritable cache $cache_file"
2032      fi
2033    fi
2034    rm -f confcache
2035    
2036    trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2037    
2038  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
2039  # Let make expand exec_prefix.  # Let make expand exec_prefix.
# Line 1264  Line 2048 
2048    
2049  trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15  trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2050    
2051  # Transform confdefs.h into DEFS.  DEFS=-DHAVE_CONFIG_H
 # Protect against shell expansion while executing Makefile rules.  
 # Protect against Makefile macro expansion.  
 cat > conftest.defs <<\EOF  
 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g  
 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g  
 s%\[%\\&%g  
 s%\]%\\&%g  
 s%\$%$$%g  
 EOF  
 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`  
 rm -f conftest.defs  
   
2052    
2053  # Without the "./", some shells look in PATH for config.status.  # Without the "./", some shells look in PATH for config.status.
2054  : ${CONFIG_STATUS=./config.status}  : ${CONFIG_STATUS=./config.status}
# Line 1313  Line 2085 
2085    
2086  ac_given_srcdir=$srcdir  ac_given_srcdir=$srcdir
2087    
2088  trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15  trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2089  EOF  EOF
2090  cat >> $CONFIG_STATUS <<EOF  cat >> $CONFIG_STATUS <<EOF
2091    
# Line 1350  Line 2122 
2122  s%@LEXLIB@%$LEXLIB%g  s%@LEXLIB@%$LEXLIB%g
2123  s%@YACC@%$YACC%g  s%@YACC@%$YACC%g
2124  s%@CPP@%$CPP%g  s%@CPP@%$CPP%g
2125    s%@LEXFLAGS@%$LEXFLAGS%g
2126    
2127  CEOF  CEOF
2128  EOF  EOF
# Line 1445  Line 2218 
2218  fi; done  fi; done
2219  rm -f conftest.s*  rm -f conftest.s*
2220    
2221    # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2222    # NAME is the cpp macro being defined and VALUE is the value it is being given.
2223    #
2224    # ac_d sets the value in "#define NAME VALUE" lines.
2225    ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2226    ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2227    ac_dC='\3'
2228    ac_dD='%g'
2229    # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2230    ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2231    ac_uB='\([      ]\)%\1#\2define\3'
2232    ac_uC=' '
2233    ac_uD='\4%g'
2234    # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2235    ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2236    ac_eB='$%\1#\2define\3'
2237    ac_eC=' '
2238    ac_eD='%g'
2239    
2240    if test "${CONFIG_HEADERS+set}" != set; then
2241    EOF
2242    cat >> $CONFIG_STATUS <<EOF
2243      CONFIG_HEADERS="config.h"
2244    EOF
2245    cat >> $CONFIG_STATUS <<\EOF
2246    fi
2247    for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2248      # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2249      case "$ac_file" in
2250      *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2251           ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2252      *) ac_file_in="${ac_file}.in" ;;
2253      esac
2254    
2255      echo creating $ac_file
2256    
2257      rm -f conftest.frag conftest.in conftest.out
2258      ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2259      cat $ac_file_inputs > conftest.in
2260    
2261    EOF
2262    
2263    # Transform confdefs.h into a sed script conftest.vals that substitutes
2264    # the proper values into config.h.in to produce config.h.  And first:
2265    # Protect against being on the right side of a sed subst in config.status.
2266    # Protect against being in an unquoted here document in config.status.
2267    rm -f conftest.vals
2268    cat > conftest.hdr <<\EOF
2269    s/[\\&%]/\\&/g
2270    s%[\\$`]%\\&%g
2271    s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2272    s%ac_d%ac_u%gp
2273    s%ac_u%ac_e%gp
2274    EOF
2275    sed -n -f conftest.hdr confdefs.h > conftest.vals
2276    rm -f conftest.hdr
2277    
2278    # This sed command replaces #undef with comments.  This is necessary, for
2279    # example, in the case of _POSIX_SOURCE, which is predefined and required
2280    # on some systems where configure will not decide to define it.
2281    cat >> conftest.vals <<\EOF
2282    s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2283    EOF
2284    
2285    # Break up conftest.vals because some shells have a limit on
2286    # the size of here documents, and old seds have small limits too.
2287    
2288    rm -f conftest.tail
2289    while :
2290    do
2291      ac_lines=`grep -c . conftest.vals`
2292      # grep -c gives empty output for an empty file on some AIX systems.
2293      if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2294      # Write a limited-size here document to conftest.frag.
2295      echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2296      sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2297      echo 'CEOF
2298      sed -f conftest.frag conftest.in > conftest.out
2299      rm -f conftest.in
2300      mv conftest.out conftest.in
2301    ' >> $CONFIG_STATUS
2302      sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2303      rm -f conftest.vals
2304      mv conftest.tail conftest.vals
2305    done
2306    rm -f conftest.vals
2307    
2308    cat >> $CONFIG_STATUS <<\EOF
2309      rm -f conftest.frag conftest.h
2310      echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2311      cat conftest.in >> conftest.h
2312      rm -f conftest.in
2313      if cmp -s $ac_file conftest.h 2>/dev/null; then
2314        echo "$ac_file is unchanged"
2315        rm -f conftest.h
2316      else
2317        # Remove last slash and all that follows it.  Not all systems have dirname.
2318          ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2319          if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2320          # The file is in a subdirectory.
2321          test ! -d "$ac_dir" && mkdir "$ac_dir"
2322        fi
2323        rm -f $ac_file
2324        mv conftest.h $ac_file
2325      fi
2326    fi; done
2327    
2328  EOF  EOF
2329  cat >> $CONFIG_STATUS <<EOF  cat >> $CONFIG_STATUS <<EOF
2330    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0