/[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.4, Sun Mar 4 20:15:02 2001 UTC revision 1.7, Wed Jan 9 00:28:36 2002 UTC
# Line 20  Line 20 
20  ac_help="$ac_help  ac_help="$ac_help
21    --with-z-lib=DIR        location of zlib library"    --with-z-lib=DIR        location of zlib library"
22  ac_help="$ac_help  ac_help="$ac_help
23    --with-png=DIR          location of png lib/inc"    --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-freetype-lib=DIR    location of freetype library"
32  ac_help="$ac_help  ac_help="$ac_help
33    --disable-speed         Turn off lex table optimization reducing speed and size of executable"    --disable-speed         Turn off lex table optimization reducing speed and size of executable"
34    
# Line 538  Line 546 
546  # 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.
547  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
548  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
549  echo "configure:542: checking for $ac_word" >&5  echo "configure:550: checking for $ac_word" >&5
550  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
551    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
552  else  else
# Line 568  Line 576 
576    # 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.
577  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
578  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
579  echo "configure:572: checking for $ac_word" >&5  echo "configure:580: checking for $ac_word" >&5
580  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
581    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
582  else  else
# Line 619  Line 627 
627        # 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.
628  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
629  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
630  echo "configure:623: checking for $ac_word" >&5  echo "configure:631: checking for $ac_word" >&5
631  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
632    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
633  else  else
# Line 651  Line 659 
659  fi  fi
660    
661  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
662  echo "configure:655: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
663    
664  ac_ext=c  ac_ext=c
665  # 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 662  Line 670 
670    
671  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
672    
673  #line 666 "configure"  #line 674 "configure"
674  #include "confdefs.h"  #include "confdefs.h"
675    
676  main(){return(0);}  main(){return(0);}
677  EOF  EOF
678  if { (eval echo configure:671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
679    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
680    # 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.
681    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 693  Line 701 
701    { 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; }
702  fi  fi
703  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
704  echo "configure:697: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:705: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
705  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
706  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
707    
708  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
709  echo "configure:702: checking whether we are using GNU C" >&5  echo "configure:710: checking whether we are using GNU C" >&5
710  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
711    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
712  else  else
# Line 707  Line 715 
715    yes;    yes;
716  #endif  #endif
717  EOF  EOF
718  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:711: \"$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:719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
719    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
720  else  else
721    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 726  Line 734 
734  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
735  CFLAGS=  CFLAGS=
736  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
737  echo "configure:730: checking whether ${CC-cc} accepts -g" >&5  echo "configure:738: checking whether ${CC-cc} accepts -g" >&5
738  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
739    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
740  else  else
# Line 760  Line 768 
768  # 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.
769  set dummy flex; ac_word=$2  set dummy flex; ac_word=$2
770  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
771  echo "configure:764: checking for $ac_word" >&5  echo "configure:772: checking for $ac_word" >&5
772  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
773    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
774  else  else
# Line 794  Line 802 
802    *) ac_lib=l ;;    *) ac_lib=l ;;
803    esac    esac
804    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
805  echo "configure:798: checking for yywrap in -l$ac_lib" >&5  echo "configure:806: checking for yywrap in -l$ac_lib" >&5
806  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
807  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
808    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 802  Line 810 
810    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
811  LIBS="-l$ac_lib  $LIBS"  LIBS="-l$ac_lib  $LIBS"
812  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
813  #line 806 "configure"  #line 814 "configure"
814  #include "confdefs.h"  #include "confdefs.h"
815  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
816  /* 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 813  Line 821 
821  yywrap()  yywrap()
822  ; return 0; }  ; return 0; }
823  EOF  EOF
824  if { (eval echo configure:817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
825    rm -rf conftest*    rm -rf conftest*
826    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
827  else  else
# Line 840  Line 848 
848  # 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.
849  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
850  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
851  echo "configure:844: checking for $ac_word" >&5  echo "configure:852: checking for $ac_word" >&5
852  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
853    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
854  else  else
# Line 873  Line 881 
881    
882  LEXFLAGS="-8"  LEXFLAGS="-8"
883  LEXSPEED="-Cf"  LEXSPEED="-Cf"
884    INCL=""
885    
886  # Check whether --with-gd or --without-gd was given.  # Check whether --with-gd-inc or --without-gd-inc was given.
887  if test "${with_gd+set}" = set; then  if test "${with_gd_inc+set}" = set; then
888    withval="$with_gd"    withval="$with_gd_inc"
889    CFLAGS="${CFLAGS} -I${withval}"    INCL="${INCL} -I${withval}"
890    
891  fi  fi
892    
893    
894  # Check whether --with-gd or --without-gd was given.  # Check whether --with-gd-lib or --without-gd-lib was given.
895  if test "${with_gd+set}" = set; then  if test "${with_gd_lib+set}" = set; then
896    withval="$with_gd"    withval="$with_gd_lib"
897    LDFLAGS="${LDFLAGS} -L${withval}"    LIBS="${LIBS} -L${withval}"
898    
899  fi  fi
900    
901    
902  # Check whether --with-z or --without-z was given.  LIBS="$LIBS -lgd"
903  if test "${with_z+set}" = set; then  
904    withval="$with_z"  # Check whether --with-z-inc or --without-z-inc was given.
905    CFLAGS="${CFLAGS} -I${withval}"  if test "${with_z_inc+set}" = set; then
906      withval="$with_z_inc"
907      INCL="${INCL} -I${withval}"
908    
909  fi  fi
910    
911    
912  # Check whether --with-z or --without-z was given.  # Check whether --with-z-lib or --without-z-lib was given.
913  if test "${with_z+set}" = set; then  if test "${with_z_lib+set}" = set; then
914    withval="$with_z"    withval="$with_z_lib"
915    LDFLAGS="${LDFLAGS} -L${withval} -lz"    LIBS="${LIBS} -L${withval} -lz"
916    
917  fi  fi
918    
919    
920  # Check whether --with-png or --without-png was given.  # Check whether --with-png-inc or --without-png-inc was given.
921  if test "${with_png+set}" = set; then  if test "${with_png_inc+set}" = set; then
922    withval="$with_png"    withval="$with_png_inc"
923    LDFLAGS="${LDFLAGS} -L${withval} -lpng"    INCL="${INCL} -I${withval}"
924                  CFLAGS="${CFLAGS} -I${withval}"  
925    fi
926    
927    
928    # Check whether --with-png-lib or --without-png-lib was given.
929    if test "${with_png_lib+set}" = set; then
930      withval="$with_png_lib"
931      LIBS="${LIBS} -L${withval} -lpng"
932    
933    fi
934    
935    
936    # Check whether --with-jpeg-inc or --without-jpeg-inc was given.
937    if test "${with_jpeg_inc+set}" = set; then
938      withval="$with_jpeg_inc"
939      INCL="${INCL} -I${withval}"
940    
941    fi
942    
943    
944    # Check whether --with-jpeg-lib or --without-jpeg-lib was given.
945    if test "${with_jpeg_lib+set}" = set; then
946      withval="$with_jpeg_lib"
947      LIBS="${LIBS} -L${withval} -ljpeg"
948    
949    fi
950    
951    
952    # Check whether --with-freetype-lib or --without-freetype-lib was given.
953    if test "${with_freetype_lib+set}" = set; then
954      withval="$with_freetype_lib"
955      LIBS="${LIBS} -L${withval} -lttf"
956    
957  fi  fi
958    
# Line 927  Line 969 
969    LEXFLAGS="$LEXFLAGS $LEXSPEED"    LEXFLAGS="$LEXFLAGS $LEXSPEED"
970  fi  fi
971    
972  LDFLAGS="${LDFLAGS} -lgd"  CPPFLAGS="$CPPFLAGS $INCL"
973    CFLAGS="$CFLAGS $INCL"
974    
975  if test "x${GCC}" = "xyes"  if test "x${GCC}" = "xyes"
976  then  then
977    CFLAGS="$CFLAGS -Wall"    CFLAGS="$CFLAGS -Wall"
978    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
979  echo "configure:938: checking "for gcc strength-reduce bug"" >&5  echo "configure:980: checking "for gcc strength-reduce bug"" >&5
980  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
981    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
982  else  else
# Line 942  Line 984 
984    ac_cv_c_gcc_strength_bug="yes"    ac_cv_c_gcc_strength_bug="yes"
985  else  else
986    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
987  #line 946 "configure"  #line 988 "configure"
988  #include "confdefs.h"  #include "confdefs.h"
989    
990  int main(void) {  int main(void) {
# Line 953  Line 995 
995    exit( Array[1] != -2 );    exit( Array[1] != -2 );
996  }  }
997  EOF  EOF
998  if { (eval echo configure:957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
999  then  then
1000    ac_cv_c_gcc_strength_bug="no"    ac_cv_c_gcc_strength_bug="no"
1001  else  else
# Line 974  Line 1016 
1016    fi    fi
1017  fi  fi
1018    
1019    echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1020    echo "configure:1021: checking how to run the C preprocessor" >&5
1021    # On Suns, sometimes $CPP names a directory.
1022    if test -n "$CPP" && test -d "$CPP"; then
1023      CPP=
1024    fi
1025    if test -z "$CPP"; then
1026    if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1027      echo $ac_n "(cached) $ac_c" 1>&6
1028    else
1029        # This must be in double quotes, not single quotes, because CPP may get
1030      # substituted into the Makefile and "${CC-cc}" will confuse make.
1031      CPP="${CC-cc} -E"
1032      # On the NeXT, cc -E runs the code through the compiler's parser,
1033      # not just through cpp.
1034      cat > conftest.$ac_ext <<EOF
1035    #line 1036 "configure"
1036    #include "confdefs.h"
1037    #include <assert.h>
1038    Syntax Error
1039    EOF
1040    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1041    { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1042    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1043    if test -z "$ac_err"; then
1044      :
1045    else
1046      echo "$ac_err" >&5
1047      echo "configure: failed program was:" >&5
1048      cat conftest.$ac_ext >&5
1049      rm -rf conftest*
1050      CPP="${CC-cc} -E -traditional-cpp"
1051      cat > conftest.$ac_ext <<EOF
1052    #line 1053 "configure"
1053    #include "confdefs.h"
1054    #include <assert.h>
1055    Syntax Error
1056    EOF
1057    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1058    { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1059    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1060    if test -z "$ac_err"; then
1061      :
1062    else
1063      echo "$ac_err" >&5
1064      echo "configure: failed program was:" >&5
1065      cat conftest.$ac_ext >&5
1066      rm -rf conftest*
1067      CPP="${CC-cc} -nologo -E"
1068      cat > conftest.$ac_ext <<EOF
1069    #line 1070 "configure"
1070    #include "confdefs.h"
1071    #include <assert.h>
1072    Syntax Error
1073    EOF
1074    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1075    { (eval echo configure:1076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1076    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1077    if test -z "$ac_err"; then
1078      :
1079    else
1080      echo "$ac_err" >&5
1081      echo "configure: failed program was:" >&5
1082      cat conftest.$ac_ext >&5
1083      rm -rf conftest*
1084      CPP=/lib/cpp
1085    fi
1086    rm -f conftest*
1087    fi
1088    rm -f conftest*
1089    fi
1090    rm -f conftest*
1091      ac_cv_prog_CPP="$CPP"
1092    fi
1093      CPP="$ac_cv_prog_CPP"
1094    else
1095      ac_cv_prog_CPP="$CPP"
1096    fi
1097    echo "$ac_t""$CPP" 1>&6
1098    
1099    ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`
1100    echo $ac_n "checking for getopt.h""... $ac_c" 1>&6
1101    echo "configure:1102: checking for getopt.h" >&5
1102    if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1103      echo $ac_n "(cached) $ac_c" 1>&6
1104    else
1105      cat > conftest.$ac_ext <<EOF
1106    #line 1107 "configure"
1107    #include "confdefs.h"
1108    #include <getopt.h>
1109    EOF
1110    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1111    { (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}\$"`
1113    if test -z "$ac_err"; then
1114      rm -rf conftest*
1115      eval "ac_cv_header_$ac_safe=yes"
1116    else
1117      echo "$ac_err" >&5
1118      echo "configure: failed program was:" >&5
1119      cat conftest.$ac_ext >&5
1120      rm -rf conftest*
1121      eval "ac_cv_header_$ac_safe=no"
1122    fi
1123    rm -f conftest*
1124    fi
1125    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1126      echo "$ac_t""yes" 1>&6
1127       cat >> confdefs.h <<\EOF
1128    #define HAVE_GETOPT_H 1
1129    EOF
1130    
1131    else
1132      echo "$ac_t""no" 1>&6
1133    fi
1134    
1135    
1136  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
1137  echo "configure:980: checking for sqrt in -lm" >&5  echo "configure:1138: checking for sqrt in -lm" >&5
1138  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
1139  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
1140    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 984  Line 1142 
1142    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1143  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
1144  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1145  #line 988 "configure"  #line 1146 "configure"
1146  #include "confdefs.h"  #include "confdefs.h"
1147  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1148  /* 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 995  Line 1153 
1153  sqrt()  sqrt()
1154  ; return 0; }  ; return 0; }
1155  EOF  EOF
1156  if { (eval echo configure:999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1157    rm -rf conftest*    rm -rf conftest*
1158    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1159  else  else
# Line 1022  Line 1180 
1180    
1181    
1182  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
1183  echo "configure:1026: checking for gdImageGif in -lgd" >&5  echo "configure:1184: checking for gdImageGif in -lgd" >&5
1184  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
1185  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
1186    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1030  Line 1188 
1188    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1189  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1190  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1191  #line 1034 "configure"  #line 1192 "configure"
1192  #include "confdefs.h"  #include "confdefs.h"
1193  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1194  /* 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 1041  Line 1199 
1199  gdImageGif()  gdImageGif()
1200  ; return 0; }  ; return 0; }
1201  EOF  EOF
1202  if { (eval echo configure:1045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1203    rm -rf conftest*    rm -rf conftest*
1204    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1205  else  else
# Line 1067  Line 1225 
1225  fi  fi
1226    
1227  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1228  echo "configure:1071: checking for gdImagePng in -lgd" >&5  echo "configure:1229: checking for gdImagePng in -lgd" >&5
1229  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1230  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
1231    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1075  Line 1233 
1233    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1234  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1235  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1236  #line 1079 "configure"  #line 1237 "configure"
1237  #include "confdefs.h"  #include "confdefs.h"
1238  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1239  /* 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 1086  Line 1244 
1244  gdImagePng()  gdImagePng()
1245  ; return 0; }  ; return 0; }
1246  EOF  EOF
1247  if { (eval echo configure:1090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1248    rm -rf conftest*    rm -rf conftest*
1249    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1250  else  else
# Line 1106  Line 1264 
1264  #define HAVE_IMAGE_PNG 1  #define HAVE_IMAGE_PNG 1
1265  EOF  EOF
1266    
         LDFLAGS="$LDFLAGS -lpng -lz ${MATHLIBS}"  
1267    
1268  else  else
1269    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1270  fi  fi
1271    
1272  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6
1273  echo "configure:1117: checking for gdImageJpeg in -lgd" >&5  echo "configure:1274: checking for gdImageJpeg in -lgd" >&5
1274  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`
1275  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
1276    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1121  Line 1278 
1278    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1279  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1280  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1281  #line 1125 "configure"  #line 1282 "configure"
1282  #include "confdefs.h"  #include "confdefs.h"
1283  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1284  /* 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 1132  Line 1289 
1289  gdImageJpeg()  gdImageJpeg()
1290  ; return 0; }  ; return 0; }
1291  EOF  EOF
1292  if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1293    rm -rf conftest*    rm -rf conftest*
1294    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1295  else  else
# Line 1152  Line 1309 
1309  #define HAVE_IMAGE_JPEG 1  #define HAVE_IMAGE_JPEG 1
1310  EOF  EOF
1311    
         LDFLAGS="$LDFLAGS -ljpeg"  
1312    
1313  else  else
1314    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1315  fi  fi
1316    
1317    echo $ac_n "checking for gdImageStringTTF in -lgd""... $ac_c" 1>&6
1318    echo "configure:1319: checking for gdImageStringTTF in -lgd" >&5
1319  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  ac_lib_var=`echo gd'_'gdImageStringTTF | sed 'y%./+-%__p_%'`
1320  echo "configure:1165: checking how to run the C preprocessor" >&5  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 # On Suns, sometimes $CPP names a directory.  
 if test -n "$CPP" && test -d "$CPP"; then  
   CPP=  
 fi  
 if test -z "$CPP"; then  
 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then  
1321    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1322  else  else
1323      # This must be in double quotes, not single quotes, because CPP may get    ac_save_LIBS="$LIBS"
1324    # substituted into the Makefile and "${CC-cc}" will confuse make.  LIBS="-lgd  $LIBS"
1325    CPP="${CC-cc} -E"  cat > conftest.$ac_ext <<EOF
1326    # On the NeXT, cc -E runs the code through the compiler's parser,  #line 1327 "configure"
   # not just through cpp.  
   cat > conftest.$ac_ext <<EOF  
 #line 1180 "configure"  
1327  #include "confdefs.h"  #include "confdefs.h"
1328  #include <assert.h>  /* Override any gcc2 internal prototype to avoid an error.  */
1329  Syntax Error  /* We use char because int might match the return type of a gcc2
1330        builtin and then its argument prototype would still apply.  */
1331    char gdImageStringTTF();
1332    
1333    int main() {
1334    gdImageStringTTF()
1335    ; return 0; }
1336  EOF  EOF
1337  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1338  { (eval echo configure:1186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    rm -rf conftest*
1339  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    eval "ac_cv_lib_$ac_lib_var=yes"
 if test -z "$ac_err"; then  
   :  
1340  else  else
   echo "$ac_err" >&5  
1341    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
1342    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
1343    rm -rf conftest*    rm -rf conftest*
1344    CPP="${CC-cc} -E -traditional-cpp"    eval "ac_cv_lib_$ac_lib_var=no"
1345    cat > conftest.$ac_ext <<EOF  fi
1346  #line 1197 "configure"  rm -f conftest*
1347  #include "confdefs.h"  LIBS="$ac_save_LIBS"
1348  #include <assert.h>  
1349  Syntax Error  fi
1350    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1351      echo "$ac_t""yes" 1>&6
1352    
1353            cat >> confdefs.h <<\EOF
1354    #define HAVE_GDIMAGESTRINGTTF 1
1355  EOF  EOF
1356  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
1357  { (eval echo configure:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   :  
1358  else  else
1359    echo "$ac_err" >&5    echo "$ac_t""no" 1>&6
1360    echo "configure: failed program was:" >&5  fi
1361    cat conftest.$ac_ext >&5  
1362    rm -rf conftest*  echo $ac_n "checking for gdImageStringFT in -lgd""... $ac_c" 1>&6
1363    CPP="${CC-cc} -nologo -E"  echo "configure:1364: checking for gdImageStringFT in -lgd" >&5
1364    cat > conftest.$ac_ext <<EOF  ac_lib_var=`echo gd'_'gdImageStringFT | sed 'y%./+-%__p_%'`
1365  #line 1214 "configure"  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1366      echo $ac_n "(cached) $ac_c" 1>&6
1367    else
1368      ac_save_LIBS="$LIBS"
1369    LIBS="-lgd  $LIBS"
1370    cat > conftest.$ac_ext <<EOF
1371    #line 1372 "configure"
1372  #include "confdefs.h"  #include "confdefs.h"
1373  #include <assert.h>  /* Override any gcc2 internal prototype to avoid an error.  */
1374  Syntax Error  /* We use char because int might match the return type of a gcc2
1375        builtin and then its argument prototype would still apply.  */
1376    char gdImageStringFT();
1377    
1378    int main() {
1379    gdImageStringFT()
1380    ; return 0; }
1381  EOF  EOF
1382  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1383  { (eval echo configure:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    rm -rf conftest*
1384  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    eval "ac_cv_lib_$ac_lib_var=yes"
 if test -z "$ac_err"; then  
   :  
1385  else  else
   echo "$ac_err" >&5  
1386    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
1387    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
1388    rm -rf conftest*    rm -rf conftest*
1389    CPP=/lib/cpp    eval "ac_cv_lib_$ac_lib_var=no"
 fi  
 rm -f conftest*  
 fi  
 rm -f conftest*  
1390  fi  fi
1391  rm -f conftest*  rm -f conftest*
1392    ac_cv_prog_CPP="$CPP"  LIBS="$ac_save_LIBS"
1393    
1394  fi  fi
1395    CPP="$ac_cv_prog_CPP"  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1396      echo "$ac_t""yes" 1>&6
1397    
1398            cat >> confdefs.h <<\EOF
1399    #define HAVE_GDIMAGESTRINGFT 1
1400    EOF
1401    
1402    
1403  else  else
1404    ac_cv_prog_CPP="$CPP"    echo "$ac_t""no" 1>&6
1405  fi  fi
1406  echo "$ac_t""$CPP" 1>&6  
1407    
1408    
1409  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`
1410  echo $ac_n "checking for gd.h""... $ac_c" 1>&6  echo $ac_n "checking for gd.h""... $ac_c" 1>&6
1411  echo "configure:1246: checking for gd.h" >&5  echo "configure:1412: checking for gd.h" >&5
1412  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1413    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1414  else  else
1415    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1416  #line 1251 "configure"  #line 1417 "configure"
1417  #include "confdefs.h"  #include "confdefs.h"
1418  #include <gd.h>  #include <gd.h>
1419  EOF  EOF
1420  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1421  { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1422  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1423  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1424    rm -rf conftest*    rm -rf conftest*

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0