/[public]/psiconv/trunk/configure
ViewVC logotype

Diff of /psiconv/trunk/configure

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

Revision 7 Revision 50
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20ac_help="$ac_help 20ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help 22ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)" 23 --disable-libtool-lock avoid locking (might break parallel builds)"
24ac_help="$ac_help
25 --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings."
26ac_help="$ac_help
27 --enable-iso-c Try to warn if code is not ISO C "
28ac_help="$ac_help
29 --with-imagemagick enable ImageMagick (default = yes)"
24ac_help="$ac_help 30ac_help="$ac_help
25 --disable-html-docs Disable generation of HTML 3.2 docs (default: on)" 31 --disable-html-docs Disable generation of HTML 3.2 docs (default: on)"
26ac_help="$ac_help 32ac_help="$ac_help
27 --enable-html4-docs Enable generation of HTML 4 docs (default: off)" 33 --enable-html4-docs Enable generation of HTML 4 docs (default: off)"
28ac_help="$ac_help 34ac_help="$ac_help
568# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 574# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
569# AFS /usr/afsws/bin/install, which mishandles nonexistent args 575# AFS /usr/afsws/bin/install, which mishandles nonexistent args
570# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 576# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
571# ./install, which can be erroneously created by make from ./install.sh. 577# ./install, which can be erroneously created by make from ./install.sh.
572echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 578echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
573echo "configure:574: checking for a BSD compatible install" >&5 579echo "configure:580: checking for a BSD compatible install" >&5
574if test -z "$INSTALL"; then 580if test -z "$INSTALL"; then
575if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 581if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
576 echo $ac_n "(cached) $ac_c" 1>&6 582 echo $ac_n "(cached) $ac_c" 1>&6
577else 583else
578 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 584 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
621test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 627test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
622 628
623test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 629test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
624 630
625echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 631echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
626echo "configure:627: checking whether build environment is sane" >&5 632echo "configure:633: checking whether build environment is sane" >&5
627# Just in case 633# Just in case
628sleep 1 634sleep 1
629echo timestamp > conftestfile 635echo timestamp > conftestfile
630# Do `set' in a subshell so we don't clobber the current shell's 636# Do `set' in a subshell so we don't clobber the current shell's
631# arguments. Must try -L first in case configure is actually a 637# arguments. Must try -L first in case configure is actually a
678 684
679# sed with no file args requires a program. 685# sed with no file args requires a program.
680test "$program_transform_name" = "" && program_transform_name="s,x,x," 686test "$program_transform_name" = "" && program_transform_name="s,x,x,"
681 687
682echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 688echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
683echo "configure:684: checking whether ${MAKE-make} sets \${MAKE}" >&5 689echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5
684set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 690set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
685if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 691if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6 692 echo $ac_n "(cached) $ac_c" 1>&6
687else 693else
688 cat > conftestmake <<\EOF 694 cat > conftestmake <<\EOF
707fi 713fi
708 714
709 715
710PACKAGE=psiconv 716PACKAGE=psiconv
711 717
712VERSION=0.5.0 718VERSION=0.6.1
713 719
714if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 720if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
715 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 721 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
716fi 722fi
717cat >> confdefs.h <<EOF 723cat >> confdefs.h <<EOF
724 730
725 731
726 732
727missing_dir=`cd $ac_aux_dir && pwd` 733missing_dir=`cd $ac_aux_dir && pwd`
728echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 734echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
729echo "configure:730: checking for working aclocal" >&5 735echo "configure:736: checking for working aclocal" >&5
730# Run test in a subshell; some versions of sh will print an error if 736# Run test in a subshell; some versions of sh will print an error if
731# an executable is not found, even if stderr is redirected. 737# an executable is not found, even if stderr is redirected.
732# Redirect stdin to placate older versions of autoconf. Sigh. 738# Redirect stdin to placate older versions of autoconf. Sigh.
733if (aclocal --version) < /dev/null > /dev/null 2>&1; then 739if (aclocal --version) < /dev/null > /dev/null 2>&1; then
734 ACLOCAL=aclocal 740 ACLOCAL=aclocal
737 ACLOCAL="$missing_dir/missing aclocal" 743 ACLOCAL="$missing_dir/missing aclocal"
738 echo "$ac_t""missing" 1>&6 744 echo "$ac_t""missing" 1>&6
739fi 745fi
740 746
741echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 747echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
742echo "configure:743: checking for working autoconf" >&5 748echo "configure:749: checking for working autoconf" >&5
743# Run test in a subshell; some versions of sh will print an error if 749# Run test in a subshell; some versions of sh will print an error if
744# an executable is not found, even if stderr is redirected. 750# an executable is not found, even if stderr is redirected.
745# Redirect stdin to placate older versions of autoconf. Sigh. 751# Redirect stdin to placate older versions of autoconf. Sigh.
746if (autoconf --version) < /dev/null > /dev/null 2>&1; then 752if (autoconf --version) < /dev/null > /dev/null 2>&1; then
747 AUTOCONF=autoconf 753 AUTOCONF=autoconf
750 AUTOCONF="$missing_dir/missing autoconf" 756 AUTOCONF="$missing_dir/missing autoconf"
751 echo "$ac_t""missing" 1>&6 757 echo "$ac_t""missing" 1>&6
752fi 758fi
753 759
754echo $ac_n "checking for working automake""... $ac_c" 1>&6 760echo $ac_n "checking for working automake""... $ac_c" 1>&6
755echo "configure:756: checking for working automake" >&5 761echo "configure:762: checking for working automake" >&5
756# Run test in a subshell; some versions of sh will print an error if 762# Run test in a subshell; some versions of sh will print an error if
757# an executable is not found, even if stderr is redirected. 763# an executable is not found, even if stderr is redirected.
758# Redirect stdin to placate older versions of autoconf. Sigh. 764# Redirect stdin to placate older versions of autoconf. Sigh.
759if (automake --version) < /dev/null > /dev/null 2>&1; then 765if (automake --version) < /dev/null > /dev/null 2>&1; then
760 AUTOMAKE=automake 766 AUTOMAKE=automake
763 AUTOMAKE="$missing_dir/missing automake" 769 AUTOMAKE="$missing_dir/missing automake"
764 echo "$ac_t""missing" 1>&6 770 echo "$ac_t""missing" 1>&6
765fi 771fi
766 772
767echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 773echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
768echo "configure:769: checking for working autoheader" >&5 774echo "configure:775: checking for working autoheader" >&5
769# Run test in a subshell; some versions of sh will print an error if 775# Run test in a subshell; some versions of sh will print an error if
770# an executable is not found, even if stderr is redirected. 776# an executable is not found, even if stderr is redirected.
771# Redirect stdin to placate older versions of autoconf. Sigh. 777# Redirect stdin to placate older versions of autoconf. Sigh.
772if (autoheader --version) < /dev/null > /dev/null 2>&1; then 778if (autoheader --version) < /dev/null > /dev/null 2>&1; then
773 AUTOHEADER=autoheader 779 AUTOHEADER=autoheader
776 AUTOHEADER="$missing_dir/missing autoheader" 782 AUTOHEADER="$missing_dir/missing autoheader"
777 echo "$ac_t""missing" 1>&6 783 echo "$ac_t""missing" 1>&6
778fi 784fi
779 785
780echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 786echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
781echo "configure:782: checking for working makeinfo" >&5 787echo "configure:788: checking for working makeinfo" >&5
782# Run test in a subshell; some versions of sh will print an error if 788# Run test in a subshell; some versions of sh will print an error if
783# an executable is not found, even if stderr is redirected. 789# an executable is not found, even if stderr is redirected.
784# Redirect stdin to placate older versions of autoconf. Sigh. 790# Redirect stdin to placate older versions of autoconf. Sigh.
785if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 791if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
786 MAKEINFO=makeinfo 792 MAKEINFO=makeinfo
870if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 876if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
871else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 877else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
872fi 878fi
873 879
874echo $ac_n "checking host system type""... $ac_c" 1>&6 880echo $ac_n "checking host system type""... $ac_c" 1>&6
875echo "configure:876: checking host system type" >&5 881echo "configure:882: checking host system type" >&5
876 882
877host_alias=$host 883host_alias=$host
878case "$host_alias" in 884case "$host_alias" in
879NONE) 885NONE)
880 case $nonopt in 886 case $nonopt in
891host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 897host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
892host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 898host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
893echo "$ac_t""$host" 1>&6 899echo "$ac_t""$host" 1>&6
894 900
895echo $ac_n "checking build system type""... $ac_c" 1>&6 901echo $ac_n "checking build system type""... $ac_c" 1>&6
896echo "configure:897: checking build system type" >&5 902echo "configure:903: checking build system type" >&5
897 903
898build_alias=$build 904build_alias=$build
899case "$build_alias" in 905case "$build_alias" in
900NONE) 906NONE)
901 case $nonopt in 907 case $nonopt in
911echo "$ac_t""$build" 1>&6 917echo "$ac_t""$build" 1>&6
912 918
913# Extract the first word of "ranlib", so it can be a program name with args. 919# Extract the first word of "ranlib", so it can be a program name with args.
914set dummy ranlib; ac_word=$2 920set dummy ranlib; ac_word=$2
915echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
916echo "configure:917: checking for $ac_word" >&5 922echo "configure:923: checking for $ac_word" >&5
917if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 923if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6 924 echo $ac_n "(cached) $ac_c" 1>&6
919else 925else
920 if test -n "$RANLIB"; then 926 if test -n "$RANLIB"; then
921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
941fi 947fi
942 948
943# Extract the first word of "gcc", so it can be a program name with args. 949# Extract the first word of "gcc", so it can be a program name with args.
944set dummy gcc; ac_word=$2 950set dummy gcc; ac_word=$2
945echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 951echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
946echo "configure:947: checking for $ac_word" >&5 952echo "configure:953: checking for $ac_word" >&5
947if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 953if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6 954 echo $ac_n "(cached) $ac_c" 1>&6
949else 955else
950 if test -n "$CC"; then 956 if test -n "$CC"; then
951 ac_cv_prog_CC="$CC" # Let the user override the test. 957 ac_cv_prog_CC="$CC" # Let the user override the test.
971 977
972if test -z "$CC"; then 978if test -z "$CC"; then
973 # Extract the first word of "cc", so it can be a program name with args. 979 # Extract the first word of "cc", so it can be a program name with args.
974set dummy cc; ac_word=$2 980set dummy cc; ac_word=$2
975echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 981echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976echo "configure:977: checking for $ac_word" >&5 982echo "configure:983: checking for $ac_word" >&5
977if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 983if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6 984 echo $ac_n "(cached) $ac_c" 1>&6
979else 985else
980 if test -n "$CC"; then 986 if test -n "$CC"; then
981 ac_cv_prog_CC="$CC" # Let the user override the test. 987 ac_cv_prog_CC="$CC" # Let the user override the test.
1022 case "`uname -s`" in 1028 case "`uname -s`" in
1023 *win32* | *WIN32*) 1029 *win32* | *WIN32*)
1024 # Extract the first word of "cl", so it can be a program name with args. 1030 # Extract the first word of "cl", so it can be a program name with args.
1025set dummy cl; ac_word=$2 1031set dummy cl; ac_word=$2
1026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1032echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1027echo "configure:1028: checking for $ac_word" >&5 1033echo "configure:1034: checking for $ac_word" >&5
1028if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1034if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6 1035 echo $ac_n "(cached) $ac_c" 1>&6
1030else 1036else
1031 if test -n "$CC"; then 1037 if test -n "$CC"; then
1032 ac_cv_prog_CC="$CC" # Let the user override the test. 1038 ac_cv_prog_CC="$CC" # Let the user override the test.
1054 fi 1060 fi
1055 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1061 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1056fi 1062fi
1057 1063
1058echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1064echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1059echo "configure:1060: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1065echo "configure:1066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1060 1066
1061ac_ext=c 1067ac_ext=c
1062# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1068# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1063ac_cpp='$CPP $CPPFLAGS' 1069ac_cpp='$CPP $CPPFLAGS'
1064ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1070ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1065ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1071ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1066cross_compiling=$ac_cv_prog_cc_cross 1072cross_compiling=$ac_cv_prog_cc_cross
1067 1073
1068cat > conftest.$ac_ext << EOF 1074cat > conftest.$ac_ext << EOF
1069 1075
1070#line 1071 "configure" 1076#line 1077 "configure"
1071#include "confdefs.h" 1077#include "confdefs.h"
1072 1078
1073main(){return(0);} 1079main(){return(0);}
1074EOF 1080EOF
1075if { (eval echo configure:1076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1081if { (eval echo configure:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1076 ac_cv_prog_cc_works=yes 1082 ac_cv_prog_cc_works=yes
1077 # If we can't run a trivial program, we are probably using a cross compiler. 1083 # If we can't run a trivial program, we are probably using a cross compiler.
1078 if (./conftest; exit) 2>/dev/null; then 1084 if (./conftest; exit) 2>/dev/null; then
1079 ac_cv_prog_cc_cross=no 1085 ac_cv_prog_cc_cross=no
1080 else 1086 else
1096echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1102echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1097if test $ac_cv_prog_cc_works = no; then 1103if test $ac_cv_prog_cc_works = no; then
1098 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1104 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1099fi 1105fi
1100echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1106echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1101echo "configure:1102: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1107echo "configure:1108: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1102echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1108echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1103cross_compiling=$ac_cv_prog_cc_cross 1109cross_compiling=$ac_cv_prog_cc_cross
1104 1110
1105echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1111echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1106echo "configure:1107: checking whether we are using GNU C" >&5 1112echo "configure:1113: checking whether we are using GNU C" >&5
1107if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1113if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6 1114 echo $ac_n "(cached) $ac_c" 1>&6
1109else 1115else
1110 cat > conftest.c <<EOF 1116 cat > conftest.c <<EOF
1111#ifdef __GNUC__ 1117#ifdef __GNUC__
1112 yes; 1118 yes;
1113#endif 1119#endif
1114EOF 1120EOF
1115if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1121if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1116 ac_cv_prog_gcc=yes 1122 ac_cv_prog_gcc=yes
1117else 1123else
1118 ac_cv_prog_gcc=no 1124 ac_cv_prog_gcc=no
1119fi 1125fi
1120fi 1126fi
1129 1135
1130ac_test_CFLAGS="${CFLAGS+set}" 1136ac_test_CFLAGS="${CFLAGS+set}"
1131ac_save_CFLAGS="$CFLAGS" 1137ac_save_CFLAGS="$CFLAGS"
1132CFLAGS= 1138CFLAGS=
1133echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1139echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1134echo "configure:1135: checking whether ${CC-cc} accepts -g" >&5 1140echo "configure:1141: checking whether ${CC-cc} accepts -g" >&5
1135if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1141if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6 1142 echo $ac_n "(cached) $ac_c" 1>&6
1137else 1143else
1138 echo 'void f(){}' > conftest.c 1144 echo 'void f(){}' > conftest.c
1139if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1145if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1172 1178
1173ac_prog=ld 1179ac_prog=ld
1174if test "$ac_cv_prog_gcc" = yes; then 1180if test "$ac_cv_prog_gcc" = yes; then
1175 # Check if gcc -print-prog-name=ld gives a path. 1181 # Check if gcc -print-prog-name=ld gives a path.
1176 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 1182 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1177echo "configure:1178: checking for ld used by GCC" >&5 1183echo "configure:1184: checking for ld used by GCC" >&5
1178 ac_prog=`($CC -print-prog-name=ld) 2>&5` 1184 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1179 case "$ac_prog" in 1185 case "$ac_prog" in
1180 # Accept absolute paths. 1186 # Accept absolute paths.
1181 [\\/]* | [A-Za-z]:[\\/]*) 1187 [\\/]* | [A-Za-z]:[\\/]*)
1182 re_direlt='/[^/][^/]*/\.\./' 1188 re_direlt='/[^/][^/]*/\.\./'
1196 with_gnu_ld=unknown 1202 with_gnu_ld=unknown
1197 ;; 1203 ;;
1198 esac 1204 esac
1199elif test "$with_gnu_ld" = yes; then 1205elif test "$with_gnu_ld" = yes; then
1200 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 1206 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1201echo "configure:1202: checking for GNU ld" >&5 1207echo "configure:1208: checking for GNU ld" >&5
1202else 1208else
1203 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 1209 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1204echo "configure:1205: checking for non-GNU ld" >&5 1210echo "configure:1211: checking for non-GNU ld" >&5
1205fi 1211fi
1206if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then 1212if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6 1213 echo $ac_n "(cached) $ac_c" 1>&6
1208else 1214else
1209 if test -z "$LD"; then 1215 if test -z "$LD"; then
1233 echo "$ac_t""$LD" 1>&6 1239 echo "$ac_t""$LD" 1>&6
1234else 1240else
1235 echo "$ac_t""no" 1>&6 1241 echo "$ac_t""no" 1>&6
1236fi 1242fi
1237test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 1243test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1238
1239echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 1244echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1240echo "configure:1241: checking if the linker ($LD) is GNU ld" >&5 1245echo "configure:1246: checking if the linker ($LD) is GNU ld" >&5
1241if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 1246if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6 1247 echo $ac_n "(cached) $ac_c" 1>&6
1243else 1248else
1244 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 1249 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1245if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 1250if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1251 1256
1252echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 1257echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1253 1258
1254 1259
1255echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1260echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1256echo "configure:1257: checking for BSD-compatible nm" >&5 1261echo "configure:1262: checking for BSD-compatible nm" >&5
1257if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 1262if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6 1263 echo $ac_n "(cached) $ac_c" 1>&6
1259else 1264else
1260 if test -n "$NM"; then 1265 if test -n "$NM"; then
1261 # Let the user override the test. 1266 # Let the user override the test.
1286fi 1291fi
1287 1292
1288NM="$ac_cv_path_NM" 1293NM="$ac_cv_path_NM"
1289echo "$ac_t""$NM" 1>&6 1294echo "$ac_t""$NM" 1>&6
1290 1295
1291
1292echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1296echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1293echo "configure:1294: checking whether ln -s works" >&5 1297echo "configure:1298: checking whether ln -s works" >&5
1294if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1298if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6 1299 echo $ac_n "(cached) $ac_c" 1>&6
1296else 1300else
1297 rm -f conftestdata 1301 rm -f conftestdata
1298if ln -s X conftestdata 2>/dev/null 1302if ln -s X conftestdata 2>/dev/null
1308 echo "$ac_t""yes" 1>&6 1312 echo "$ac_t""yes" 1>&6
1309else 1313else
1310 echo "$ac_t""no" 1>&6 1314 echo "$ac_t""no" 1>&6
1311fi 1315fi
1312 1316
1317
1318case "$target" in
1319NONE) lt_target="$host" ;;
1320*) lt_target="$target" ;;
1321esac
1313 1322
1314# Check for any special flags to pass to ltconfig. 1323# Check for any special flags to pass to ltconfig.
1315libtool_flags="--cache-file=$cache_file" 1324libtool_flags="--cache-file=$cache_file"
1316test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 1325test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1317test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 1326test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1329test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 1338test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1330test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 1339test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1331 1340
1332# Some flags need to be propagated to the compiler or linker for good 1341# Some flags need to be propagated to the compiler or linker for good
1333# libtool support. 1342# libtool support.
1334case "$host" in 1343case "$lt_target" in
1335*-*-irix6*) 1344*-*-irix6*)
1336 # Find out which ABI we are using. 1345 # Find out which ABI we are using.
1337 echo '#line 1338 "configure"' > conftest.$ac_ext 1346 echo '#line 1347 "configure"' > conftest.$ac_ext
1338 if { (eval echo configure:1339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1347 if { (eval echo configure:1348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1339 case "`/usr/bin/file conftest.o`" in 1348 case "`/usr/bin/file conftest.o`" in
1340 *32-bit*) 1349 *32-bit*)
1341 LD="${LD-ld} -32" 1350 LD="${LD-ld} -32"
1342 ;; 1351 ;;
1343 *N32*) 1352 *N32*)
1354*-*-sco3.2v5*) 1363*-*-sco3.2v5*)
1355 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1364 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1356 SAVE_CFLAGS="$CFLAGS" 1365 SAVE_CFLAGS="$CFLAGS"
1357 CFLAGS="$CFLAGS -belf" 1366 CFLAGS="$CFLAGS -belf"
1358 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 1367 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1359echo "configure:1360: checking whether the C compiler needs -belf" >&5 1368echo "configure:1369: checking whether the C compiler needs -belf" >&5
1360if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 1369if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6 1370 echo $ac_n "(cached) $ac_c" 1>&6
1362else 1371else
1363 cat > conftest.$ac_ext <<EOF 1372 cat > conftest.$ac_ext <<EOF
1364#line 1365 "configure" 1373#line 1374 "configure"
1365#include "confdefs.h" 1374#include "confdefs.h"
1366 1375
1367int main() { 1376int main() {
1368 1377
1369; return 0; } 1378; return 0; }
1370EOF 1379EOF
1371if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1380if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1372 rm -rf conftest* 1381 rm -rf conftest*
1373 lt_cv_cc_needs_belf=yes 1382 lt_cv_cc_needs_belf=yes
1374else 1383else
1375 echo "configure: failed program was:" >&5 1384 echo "configure: failed program was:" >&5
1376 cat conftest.$ac_ext >&5 1385 cat conftest.$ac_ext >&5
1444CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 1453CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1445LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 1454LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1446LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ 1455LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1447DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ 1456DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1448${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 1457${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1449$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ 1458$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1450|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 1459|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1451 1460
1452# Reload cache, that may have been modified by ltconfig 1461# Reload cache, that may have been modified by ltconfig
1453if test -r "$cache_file"; then 1462if test -r "$cache_file"; then
1454 echo "loading cache $cache_file" 1463 echo "loading cache $cache_file"
1468# Redirect the config.log output again, so that the ltconfig log is not 1477# Redirect the config.log output again, so that the ltconfig log is not
1469# clobbered by the next message. 1478# clobbered by the next message.
1470exec 5>>./config.log 1479exec 5>>./config.log
1471 1480
1472 1481
1482# Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1483if test "${enable_compile_warnings+set}" = set; then
1484 enableval="$enable_compile_warnings"
1485 :
1486else
1487 enable_compile_warnings=minimum
1488fi
1489
1490
1491echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
1492echo "configure:1493: checking what warning flags to pass to the C compiler" >&5
1493warnCFLAGS=
1494if test "x$GCC" != xyes; then
1495 enable_compile_warnings=no
1496fi
1497if test "x$enable_compile_warnings" != "xno"; then
1498 if test "x$GCC" = "xyes"; then
1499 case " $CFLAGS " in
1500 *\ \ -Wall\ \ *) ;;
1501 *) warnCFLAGS="-Wall -Wunused" ;;
1502 esac
1503
1504 ## -W is not all that useful. And it cannot be controlled
1505 ## with individual -Wno-xxx flags, unlike -Wall
1506 if test "x$enable_compile_warnings" = "xyes"; then
1507 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
1508 fi
1509 fi
1510fi
1511echo "$ac_t""$warnCFLAGS" 1>&6
1512
1513# Check whether --enable-iso-c or --disable-iso-c was given.
1514if test "${enable_iso_c+set}" = set; then
1515 enableval="$enable_iso_c"
1516 :
1517else
1518 enable_iso_c=no
1519fi
1520
1521
1522echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
1523echo "configure:1524: checking what language compliance flags to pass to the C compiler" >&5
1524complCFLAGS=
1525if test "x$enable_iso_c" != "xno"; then
1526 if test "x$GCC" = "xyes"; then
1527 case " $CFLAGS " in
1528 *\ \ -ansi\ \ *) ;;
1529 *) complCFLAGS="$complCFLAGS -ansi" ;;
1530 esac
1531
1532 case " $CFLAGS " in
1533 *\ \ -pedantic\ \ *) ;;
1534 *) complCFLAGS="$complCFLAGS -pedantic" ;;
1535 esac
1536 fi
1537fi
1538echo "$ac_t""$complCFLAGS" 1>&6
1539if test "x$cflags_set" != "xyes"; then
1540 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
1541 cflags_set=yes
1542
1543fi
1544
1545
1546# Check whether --with-imagemagick or --without-imagemagick was given.
1547if test "${with_imagemagick+set}" = set; then
1548 withval="$with_imagemagick"
1549 IMAGEMAGICK=$withval
1550else
1551 IMAGEMAGICK='yes'
1552fi
1553
1554if test x"$IMAGEMAGICK" != xno ; then
1555 echo $ac_n "checking for ConstituteImage in -lMagick""... $ac_c" 1>&6
1556echo "configure:1557: checking for ConstituteImage in -lMagick" >&5
1557ac_lib_var=`echo Magick'_'ConstituteImage | sed 'y%./+-%__p_%'`
1558if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1560else
1561 ac_save_LIBS="$LIBS"
1562LIBS="-lMagick $LIBS"
1563cat > conftest.$ac_ext <<EOF
1564#line 1565 "configure"
1565#include "confdefs.h"
1566/* Override any gcc2 internal prototype to avoid an error. */
1567/* We use char because int might match the return type of a gcc2
1568 builtin and then its argument prototype would still apply. */
1569char ConstituteImage();
1570
1571int main() {
1572ConstituteImage()
1573; return 0; }
1574EOF
1575if { (eval echo configure:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1576 rm -rf conftest*
1577 eval "ac_cv_lib_$ac_lib_var=yes"
1578else
1579 echo "configure: failed program was:" >&5
1580 cat conftest.$ac_ext >&5
1581 rm -rf conftest*
1582 eval "ac_cv_lib_$ac_lib_var=no"
1583fi
1584rm -f conftest*
1585LIBS="$ac_save_LIBS"
1586
1587fi
1588if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1589 echo "$ac_t""yes" 1>&6
1590 IMAGEMAGICK=yes
1591else
1592 echo "$ac_t""no" 1>&6
1593IMAGEMAGICK=no
1594fi
1595
1596 if test x"$IMAGEMAGICK" != xno ; then
1597 echo $ac_n "checking whether GetMagickInfo works""... $ac_c" 1>&6
1598echo "configure:1599: checking whether GetMagickInfo works" >&5
1599 if test "$cross_compiling" = yes; then
1600 IMAGEMAGICK=yes
1601else
1602 cat > conftest.$ac_ext <<EOF
1603#line 1604 "configure"
1604#include "confdefs.h"
1605 #include <magick/magick.h>
1606 int main(void) { return (NULL == GetMagickInfo(NULL)) }
1607EOF
1608if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1609then
1610 IMAGEMAGICK=yes
1611else
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1614 rm -fr conftest*
1615 IMAGEMAGICK=no
1616fi
1617rm -fr conftest*
1618fi
1619
1620 echo "$ac_t""$IMAGEMAGICK" 1>&6
1621 fi
1622 if test x"$IMAGEMAGICK" = xno ; then
1623 echo "configure: warning: ImageMagick support disabled!" 1>&2
1624 fi
1625fi
1626if test x"$IMAGEMAGICK" = xyes ; then
1627 LIB_MAGICK=-lMagick
1628 cat >> confdefs.h <<\EOF
1629#define IMAGEMAGICK 1
1630EOF
1631
1632else
1633 LIB_MAGICK=
1634fi
1635
1473 1636
1474echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1637echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1475echo "configure:1476: checking how to run the C preprocessor" >&5 1638echo "configure:1639: checking how to run the C preprocessor" >&5
1476# On Suns, sometimes $CPP names a directory. 1639# On Suns, sometimes $CPP names a directory.
1477if test -n "$CPP" && test -d "$CPP"; then 1640if test -n "$CPP" && test -d "$CPP"; then
1478 CPP= 1641 CPP=
1479fi 1642fi
1480if test -z "$CPP"; then 1643if test -z "$CPP"; then
1485 # substituted into the Makefile and "${CC-cc}" will confuse make. 1648 # substituted into the Makefile and "${CC-cc}" will confuse make.
1486 CPP="${CC-cc} -E" 1649 CPP="${CC-cc} -E"
1487 # On the NeXT, cc -E runs the code through the compiler's parser, 1650 # On the NeXT, cc -E runs the code through the compiler's parser,
1488 # not just through cpp. 1651 # not just through cpp.
1489 cat > conftest.$ac_ext <<EOF 1652 cat > conftest.$ac_ext <<EOF
1490#line 1491 "configure" 1653#line 1654 "configure"
1491#include "confdefs.h" 1654#include "confdefs.h"
1492#include <assert.h> 1655#include <assert.h>
1493Syntax Error 1656Syntax Error
1494EOF 1657EOF
1495ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1496{ (eval echo configure:1497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1659{ (eval echo configure:1660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1497ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1498if test -z "$ac_err"; then 1661if test -z "$ac_err"; then
1499 : 1662 :
1500else 1663else
1501 echo "$ac_err" >&5 1664 echo "$ac_err" >&5
1502 echo "configure: failed program was:" >&5 1665 echo "configure: failed program was:" >&5
1503 cat conftest.$ac_ext >&5 1666 cat conftest.$ac_ext >&5
1504 rm -rf conftest* 1667 rm -rf conftest*
1505 CPP="${CC-cc} -E -traditional-cpp" 1668 CPP="${CC-cc} -E -traditional-cpp"
1506 cat > conftest.$ac_ext <<EOF 1669 cat > conftest.$ac_ext <<EOF
1507#line 1508 "configure" 1670#line 1671 "configure"
1508#include "confdefs.h" 1671#include "confdefs.h"
1509#include <assert.h> 1672#include <assert.h>
1510Syntax Error 1673Syntax Error
1511EOF 1674EOF
1512ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1675ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1513{ (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1676{ (eval echo configure:1677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1514ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1677ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1515if test -z "$ac_err"; then 1678if test -z "$ac_err"; then
1516 : 1679 :
1517else 1680else
1518 echo "$ac_err" >&5 1681 echo "$ac_err" >&5
1519 echo "configure: failed program was:" >&5 1682 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5 1683 cat conftest.$ac_ext >&5
1521 rm -rf conftest* 1684 rm -rf conftest*
1522 CPP="${CC-cc} -nologo -E" 1685 CPP="${CC-cc} -nologo -E"
1523 cat > conftest.$ac_ext <<EOF 1686 cat > conftest.$ac_ext <<EOF
1524#line 1525 "configure" 1687#line 1688 "configure"
1525#include "confdefs.h" 1688#include "confdefs.h"
1526#include <assert.h> 1689#include <assert.h>
1527Syntax Error 1690Syntax Error
1528EOF 1691EOF
1529ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1692ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1530{ (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1693{ (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1531ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1694ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1532if test -z "$ac_err"; then 1695if test -z "$ac_err"; then
1533 : 1696 :
1534else 1697else
1535 echo "$ac_err" >&5 1698 echo "$ac_err" >&5
1550 ac_cv_prog_CPP="$CPP" 1713 ac_cv_prog_CPP="$CPP"
1551fi 1714fi
1552echo "$ac_t""$CPP" 1>&6 1715echo "$ac_t""$CPP" 1>&6
1553 1716
1554echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1717echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1555echo "configure:1556: checking for ANSI C header files" >&5 1718echo "configure:1719: checking for ANSI C header files" >&5
1556if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1719if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6 1720 echo $ac_n "(cached) $ac_c" 1>&6
1558else 1721else
1559 cat > conftest.$ac_ext <<EOF 1722 cat > conftest.$ac_ext <<EOF
1560#line 1561 "configure" 1723#line 1724 "configure"
1561#include "confdefs.h" 1724#include "confdefs.h"
1562#include <stdlib.h> 1725#include <stdlib.h>
1563#include <stdarg.h> 1726#include <stdarg.h>
1564#include <string.h> 1727#include <string.h>
1565#include <float.h> 1728#include <float.h>
1566EOF 1729EOF
1567ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1730ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1568{ (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1731{ (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1569ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1732ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1570if test -z "$ac_err"; then 1733if test -z "$ac_err"; then
1571 rm -rf conftest* 1734 rm -rf conftest*
1572 ac_cv_header_stdc=yes 1735 ac_cv_header_stdc=yes
1573else 1736else
1580rm -f conftest* 1743rm -f conftest*
1581 1744
1582if test $ac_cv_header_stdc = yes; then 1745if test $ac_cv_header_stdc = yes; then
1583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1584cat > conftest.$ac_ext <<EOF 1747cat > conftest.$ac_ext <<EOF
1585#line 1586 "configure" 1748#line 1749 "configure"
1586#include "confdefs.h" 1749#include "confdefs.h"
1587#include <string.h> 1750#include <string.h>
1588EOF 1751EOF
1589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1590 egrep "memchr" >/dev/null 2>&1; then 1753 egrep "memchr" >/dev/null 2>&1; then
1598fi 1761fi
1599 1762
1600if test $ac_cv_header_stdc = yes; then 1763if test $ac_cv_header_stdc = yes; then
1601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1764 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1602cat > conftest.$ac_ext <<EOF 1765cat > conftest.$ac_ext <<EOF
1603#line 1604 "configure" 1766#line 1767 "configure"
1604#include "confdefs.h" 1767#include "confdefs.h"
1605#include <stdlib.h> 1768#include <stdlib.h>
1606EOF 1769EOF
1607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1608 egrep "free" >/dev/null 2>&1; then 1771 egrep "free" >/dev/null 2>&1; then
1619 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1620if test "$cross_compiling" = yes; then 1783if test "$cross_compiling" = yes; then
1621 : 1784 :
1622else 1785else
1623 cat > conftest.$ac_ext <<EOF 1786 cat > conftest.$ac_ext <<EOF
1624#line 1625 "configure" 1787#line 1788 "configure"
1625#include "confdefs.h" 1788#include "confdefs.h"
1626#include <ctype.h> 1789#include <ctype.h>
1627#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1790#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1628#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1791#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1629#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1792#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1630int main () { int i; for (i = 0; i < 256; i++) 1793int main () { int i; for (i = 0; i < 256; i++)
1631if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1794if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1632exit (0); } 1795exit (0); }
1633 1796
1634EOF 1797EOF
1635if { (eval echo configure:1636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1798if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1636then 1799then
1637 : 1800 :
1638else 1801else
1639 echo "configure: failed program was:" >&5 1802 echo "configure: failed program was:" >&5
1640 cat conftest.$ac_ext >&5 1803 cat conftest.$ac_ext >&5
1657 1820
1658for ac_hdr in unistd.h 1821for ac_hdr in unistd.h
1659do 1822do
1660ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1823ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1661echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1824echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1662echo "configure:1663: checking for $ac_hdr" >&5 1825echo "configure:1826: checking for $ac_hdr" >&5
1663if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1826if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6 1827 echo $ac_n "(cached) $ac_c" 1>&6
1665else 1828else
1666 cat > conftest.$ac_ext <<EOF 1829 cat > conftest.$ac_ext <<EOF
1667#line 1668 "configure" 1830#line 1831 "configure"
1668#include "confdefs.h" 1831#include "confdefs.h"
1669#include <$ac_hdr> 1832#include <$ac_hdr>
1670EOF 1833EOF
1671ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1834ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1672{ (eval echo configure:1673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1835{ (eval echo configure:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1673ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1836ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1674if test -z "$ac_err"; then 1837if test -z "$ac_err"; then
1675 rm -rf conftest* 1838 rm -rf conftest*
1676 eval "ac_cv_header_$ac_safe=yes" 1839 eval "ac_cv_header_$ac_safe=yes"
1677else 1840else
1695fi 1858fi
1696done 1859done
1697 1860
1698 1861
1699echo $ac_n "checking for working const""... $ac_c" 1>&6 1862echo $ac_n "checking for working const""... $ac_c" 1>&6
1700echo "configure:1701: checking for working const" >&5 1863echo "configure:1864: checking for working const" >&5
1701if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1864if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6 1865 echo $ac_n "(cached) $ac_c" 1>&6
1703else 1866else
1704 cat > conftest.$ac_ext <<EOF 1867 cat > conftest.$ac_ext <<EOF
1705#line 1706 "configure" 1868#line 1869 "configure"
1706#include "confdefs.h" 1869#include "confdefs.h"
1707 1870
1708int main() { 1871int main() {
1709 1872
1710/* Ultrix mips cc rejects this. */ 1873/* Ultrix mips cc rejects this. */
1749 const int foo = 10; 1912 const int foo = 10;
1750} 1913}
1751 1914
1752; return 0; } 1915; return 0; }
1753EOF 1916EOF
1754if { (eval echo configure:1755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1917if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1755 rm -rf conftest* 1918 rm -rf conftest*
1756 ac_cv_c_const=yes 1919 ac_cv_c_const=yes
1757else 1920else
1758 echo "configure: failed program was:" >&5 1921 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5 1922 cat conftest.$ac_ext >&5
1770EOF 1933EOF
1771 1934
1772fi 1935fi
1773 1936
1774echo $ac_n "checking for size_t""... $ac_c" 1>&6 1937echo $ac_n "checking for size_t""... $ac_c" 1>&6
1775echo "configure:1776: checking for size_t" >&5 1938echo "configure:1939: checking for size_t" >&5
1776if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1939if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6 1940 echo $ac_n "(cached) $ac_c" 1>&6
1778else 1941else
1779 cat > conftest.$ac_ext <<EOF 1942 cat > conftest.$ac_ext <<EOF
1780#line 1781 "configure" 1943#line 1944 "configure"
1781#include "confdefs.h" 1944#include "confdefs.h"
1782#include <sys/types.h> 1945#include <sys/types.h>
1783#if STDC_HEADERS 1946#if STDC_HEADERS
1784#include <stdlib.h> 1947#include <stdlib.h>
1785#include <stddef.h> 1948#include <stddef.h>
1805fi 1968fi
1806 1969
1807 1970
1808 1971
1809echo $ac_n "checking size of char""... $ac_c" 1>&6 1972echo $ac_n "checking size of char""... $ac_c" 1>&6
1810echo "configure:1811: checking size of char" >&5 1973echo "configure:1974: checking size of char" >&5
1811if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 1974if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6 1975 echo $ac_n "(cached) $ac_c" 1>&6
1813else 1976else
1814 if test "$cross_compiling" = yes; then 1977 if test "$cross_compiling" = yes; then
1815 ac_cv_sizeof_char=1 1978 ac_cv_sizeof_char=1
1816else 1979else
1817 cat > conftest.$ac_ext <<EOF 1980 cat > conftest.$ac_ext <<EOF
1818#line 1819 "configure" 1981#line 1982 "configure"
1819#include "confdefs.h" 1982#include "confdefs.h"
1820#include <stdio.h> 1983#include <stdio.h>
1821main() 1984main()
1822{ 1985{
1823 FILE *f=fopen("conftestval", "w"); 1986 FILE *f=fopen("conftestval", "w");
1824 if (!f) exit(1); 1987 if (!f) exit(1);
1825 fprintf(f, "%d\n", sizeof(char)); 1988 fprintf(f, "%d\n", sizeof(char));
1826 exit(0); 1989 exit(0);
1827} 1990}
1828EOF 1991EOF
1829if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1992if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1830then 1993then
1831 ac_cv_sizeof_char=`cat conftestval` 1994 ac_cv_sizeof_char=`cat conftestval`
1832else 1995else
1833 echo "configure: failed program was:" >&5 1996 echo "configure: failed program was:" >&5
1834 cat conftest.$ac_ext >&5 1997 cat conftest.$ac_ext >&5
1844#define SIZEOF_CHAR $ac_cv_sizeof_char 2007#define SIZEOF_CHAR $ac_cv_sizeof_char
1845EOF 2008EOF
1846 2009
1847 2010
1848echo $ac_n "checking size of short""... $ac_c" 1>&6 2011echo $ac_n "checking size of short""... $ac_c" 1>&6
1849echo "configure:1850: checking size of short" >&5 2012echo "configure:2013: checking size of short" >&5
1850if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 2013if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6 2014 echo $ac_n "(cached) $ac_c" 1>&6
1852else 2015else
1853 if test "$cross_compiling" = yes; then 2016 if test "$cross_compiling" = yes; then
1854 ac_cv_sizeof_short=1 2017 ac_cv_sizeof_short=1
1855else 2018else
1856 cat > conftest.$ac_ext <<EOF 2019 cat > conftest.$ac_ext <<EOF
1857#line 1858 "configure" 2020#line 2021 "configure"
1858#include "confdefs.h" 2021#include "confdefs.h"
1859#include <stdio.h> 2022#include <stdio.h>
1860main() 2023main()
1861{ 2024{
1862 FILE *f=fopen("conftestval", "w"); 2025 FILE *f=fopen("conftestval", "w");
1863 if (!f) exit(1); 2026 if (!f) exit(1);
1864 fprintf(f, "%d\n", sizeof(short)); 2027 fprintf(f, "%d\n", sizeof(short));
1865 exit(0); 2028 exit(0);
1866} 2029}
1867EOF 2030EOF
1868if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2031if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1869then 2032then
1870 ac_cv_sizeof_short=`cat conftestval` 2033 ac_cv_sizeof_short=`cat conftestval`
1871else 2034else
1872 echo "configure: failed program was:" >&5 2035 echo "configure: failed program was:" >&5
1873 cat conftest.$ac_ext >&5 2036 cat conftest.$ac_ext >&5
1883#define SIZEOF_SHORT $ac_cv_sizeof_short 2046#define SIZEOF_SHORT $ac_cv_sizeof_short
1884EOF 2047EOF
1885 2048
1886 2049
1887echo $ac_n "checking size of int""... $ac_c" 1>&6 2050echo $ac_n "checking size of int""... $ac_c" 1>&6
1888echo "configure:1889: checking size of int" >&5 2051echo "configure:2052: checking size of int" >&5
1889if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 2052if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6 2053 echo $ac_n "(cached) $ac_c" 1>&6
1891else 2054else
1892 if test "$cross_compiling" = yes; then 2055 if test "$cross_compiling" = yes; then
1893 ac_cv_sizeof_int=2 2056 ac_cv_sizeof_int=2
1894else 2057else
1895 cat > conftest.$ac_ext <<EOF 2058 cat > conftest.$ac_ext <<EOF
1896#line 1897 "configure" 2059#line 2060 "configure"
1897#include "confdefs.h" 2060#include "confdefs.h"
1898#include <stdio.h> 2061#include <stdio.h>
1899main() 2062main()
1900{ 2063{
1901 FILE *f=fopen("conftestval", "w"); 2064 FILE *f=fopen("conftestval", "w");
1902 if (!f) exit(1); 2065 if (!f) exit(1);
1903 fprintf(f, "%d\n", sizeof(int)); 2066 fprintf(f, "%d\n", sizeof(int));
1904 exit(0); 2067 exit(0);
1905} 2068}
1906EOF 2069EOF
1907if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2070if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1908then 2071then
1909 ac_cv_sizeof_int=`cat conftestval` 2072 ac_cv_sizeof_int=`cat conftestval`
1910else 2073else
1911 echo "configure: failed program was:" >&5 2074 echo "configure: failed program was:" >&5
1912 cat conftest.$ac_ext >&5 2075 cat conftest.$ac_ext >&5
1922#define SIZEOF_INT $ac_cv_sizeof_int 2085#define SIZEOF_INT $ac_cv_sizeof_int
1923EOF 2086EOF
1924 2087
1925 2088
1926echo $ac_n "checking size of long""... $ac_c" 1>&6 2089echo $ac_n "checking size of long""... $ac_c" 1>&6
1927echo "configure:1928: checking size of long" >&5 2090echo "configure:2091: checking size of long" >&5
1928if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 2091if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6 2092 echo $ac_n "(cached) $ac_c" 1>&6
1930else 2093else
1931 if test "$cross_compiling" = yes; then 2094 if test "$cross_compiling" = yes; then
1932 ac_cv_sizeof_long=4 2095 ac_cv_sizeof_long=4
1933else 2096else
1934 cat > conftest.$ac_ext <<EOF 2097 cat > conftest.$ac_ext <<EOF
1935#line 1936 "configure" 2098#line 2099 "configure"
1936#include "confdefs.h" 2099#include "confdefs.h"
1937#include <stdio.h> 2100#include <stdio.h>
1938main() 2101main()
1939{ 2102{
1940 FILE *f=fopen("conftestval", "w"); 2103 FILE *f=fopen("conftestval", "w");
1941 if (!f) exit(1); 2104 if (!f) exit(1);
1942 fprintf(f, "%d\n", sizeof(long)); 2105 fprintf(f, "%d\n", sizeof(long));
1943 exit(0); 2106 exit(0);
1944} 2107}
1945EOF 2108EOF
1946if { (eval echo configure:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2109if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1947then 2110then
1948 ac_cv_sizeof_long=`cat conftestval` 2111 ac_cv_sizeof_long=`cat conftestval`
1949else 2112else
1950 echo "configure: failed program was:" >&5 2113 echo "configure: failed program was:" >&5
1951 cat conftest.$ac_ext >&5 2114 cat conftest.$ac_ext >&5
1962EOF 2125EOF
1963 2126
1964 2127
1965 2128
1966echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 2129echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6
1967echo "configure:1968: checking for an 8 bit integer type" >&5 2130echo "configure:2131: checking for an 8 bit integer type" >&5
1968if test $ac_cv_sizeof_char -ge 1 ; then 2131if test $ac_cv_sizeof_char -ge 1 ; then
1969 INT_8_BIT=char 2132 INT_8_BIT=char
1970 echo "$ac_t""char" 1>&6 2133 echo "$ac_t""char" 1>&6
1971elif test $ac_cv_sizeof_short -ge 1 ; then 2134elif test $ac_cv_sizeof_short -ge 1 ; then
1972 INT_8_BIT=short 2135 INT_8_BIT=short
1980else 2143else
1981 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } 2144 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; }
1982fi 2145fi
1983 2146
1984echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 2147echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6
1985echo "configure:1986: checking for a 16 bit integer type" >&5 2148echo "configure:2149: checking for a 16 bit integer type" >&5
1986if test $ac_cv_sizeof_char -ge 2 ; then 2149if test $ac_cv_sizeof_char -ge 2 ; then
1987 INT_16_BIT=char 2150 INT_16_BIT=char
1988 echo "$ac_t""char" 1>&6 2151 echo "$ac_t""char" 1>&6
1989elif test $ac_cv_sizeof_short -ge 2 ; then 2152elif test $ac_cv_sizeof_short -ge 2 ; then
1990 INT_16_BIT=short 2153 INT_16_BIT=short
1998else 2161else
1999 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } 2162 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; }
2000fi 2163fi
2001 2164
2002echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 2165echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6
2003echo "configure:2004: checking for a 32 bit integer type" >&5 2166echo "configure:2167: checking for a 32 bit integer type" >&5
2004if test $ac_cv_sizeof_char -ge 4 ; then 2167if test $ac_cv_sizeof_char -ge 4 ; then
2005 INT_32_BIT=char 2168 INT_32_BIT=char
2006 echo "$ac_t""char" 1>&6 2169 echo "$ac_t""char" 1>&6
2007elif test $ac_cv_sizeof_short -ge 4 ; then 2170elif test $ac_cv_sizeof_short -ge 4 ; then
2008 INT_32_BIT=short 2171 INT_32_BIT=short
2020 2183
2021 2184
2022 2185
2023 2186
2024echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2187echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2025echo "configure:2026: checking for vprintf" >&5 2188echo "configure:2189: checking for vprintf" >&5
2026if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2189if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6 2190 echo $ac_n "(cached) $ac_c" 1>&6
2028else 2191else
2029 cat > conftest.$ac_ext <<EOF 2192 cat > conftest.$ac_ext <<EOF
2030#line 2031 "configure" 2193#line 2194 "configure"
2031#include "confdefs.h" 2194#include "confdefs.h"
2032/* System header to define __stub macros and hopefully few prototypes, 2195/* System header to define __stub macros and hopefully few prototypes,
2033 which can conflict with char vprintf(); below. */ 2196 which can conflict with char vprintf(); below. */
2034#include <assert.h> 2197#include <assert.h>
2035/* Override any gcc2 internal prototype to avoid an error. */ 2198/* Override any gcc2 internal prototype to avoid an error. */
2048vprintf(); 2211vprintf();
2049#endif 2212#endif
2050 2213
2051; return 0; } 2214; return 0; }
2052EOF 2215EOF
2053if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2216if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2054 rm -rf conftest* 2217 rm -rf conftest*
2055 eval "ac_cv_func_vprintf=yes" 2218 eval "ac_cv_func_vprintf=yes"
2056else 2219else
2057 echo "configure: failed program was:" >&5 2220 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5 2221 cat conftest.$ac_ext >&5
2072 echo "$ac_t""no" 1>&6 2235 echo "$ac_t""no" 1>&6
2073fi 2236fi
2074 2237
2075if test "$ac_cv_func_vprintf" != yes; then 2238if test "$ac_cv_func_vprintf" != yes; then
2076echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2239echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2077echo "configure:2078: checking for _doprnt" >&5 2240echo "configure:2241: checking for _doprnt" >&5
2078if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2241if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6 2242 echo $ac_n "(cached) $ac_c" 1>&6
2080else 2243else
2081 cat > conftest.$ac_ext <<EOF 2244 cat > conftest.$ac_ext <<EOF
2082#line 2083 "configure" 2245#line 2246 "configure"
2083#include "confdefs.h" 2246#include "confdefs.h"
2084/* System header to define __stub macros and hopefully few prototypes, 2247/* System header to define __stub macros and hopefully few prototypes,
2085 which can conflict with char _doprnt(); below. */ 2248 which can conflict with char _doprnt(); below. */
2086#include <assert.h> 2249#include <assert.h>
2087/* Override any gcc2 internal prototype to avoid an error. */ 2250/* Override any gcc2 internal prototype to avoid an error. */
2100_doprnt(); 2263_doprnt();
2101#endif 2264#endif
2102 2265
2103; return 0; } 2266; return 0; }
2104EOF 2267EOF
2105if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2268if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2106 rm -rf conftest* 2269 rm -rf conftest*
2107 eval "ac_cv_func__doprnt=yes" 2270 eval "ac_cv_func__doprnt=yes"
2108else 2271else
2109 echo "configure: failed program was:" >&5 2272 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5 2273 cat conftest.$ac_ext >&5
2127fi 2290fi
2128 2291
2129for ac_func in strdup 2292for ac_func in strdup
2130do 2293do
2131echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2294echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2132echo "configure:2133: checking for $ac_func" >&5 2295echo "configure:2296: checking for $ac_func" >&5
2133if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2296if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6 2297 echo $ac_n "(cached) $ac_c" 1>&6
2135else 2298else
2136 cat > conftest.$ac_ext <<EOF 2299 cat > conftest.$ac_ext <<EOF
2137#line 2138 "configure" 2300#line 2301 "configure"
2138#include "confdefs.h" 2301#include "confdefs.h"
2139/* System header to define __stub macros and hopefully few prototypes, 2302/* System header to define __stub macros and hopefully few prototypes,
2140 which can conflict with char $ac_func(); below. */ 2303 which can conflict with char $ac_func(); below. */
2141#include <assert.h> 2304#include <assert.h>
2142/* Override any gcc2 internal prototype to avoid an error. */ 2305/* Override any gcc2 internal prototype to avoid an error. */
2155$ac_func(); 2318$ac_func();
2156#endif 2319#endif
2157 2320
2158; return 0; } 2321; return 0; }
2159EOF 2322EOF
2160if { (eval echo configure:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2323if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2161 rm -rf conftest* 2324 rm -rf conftest*
2162 eval "ac_cv_func_$ac_func=yes" 2325 eval "ac_cv_func_$ac_func=yes"
2163else 2326else
2164 echo "configure: failed program was:" >&5 2327 echo "configure: failed program was:" >&5
2165 cat conftest.$ac_ext >&5 2328 cat conftest.$ac_ext >&5
2176#define $ac_tr_func 1 2339#define $ac_tr_func 1
2177EOF 2340EOF
2178 2341
2179else 2342else
2180 echo "$ac_t""no" 1>&6 2343 echo "$ac_t""no" 1>&6
2344LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2181fi 2345fi
2182done 2346done
2183 2347
2184for ac_func in strdup 2348
2349for ac_func in getopt_long
2185do 2350do
2186echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2351echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2187echo "configure:2188: checking for $ac_func" >&5 2352echo "configure:2353: checking for $ac_func" >&5
2188if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2353if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6 2354 echo $ac_n "(cached) $ac_c" 1>&6
2190else 2355else
2191 cat > conftest.$ac_ext <<EOF 2356 cat > conftest.$ac_ext <<EOF
2192#line 2193 "configure" 2357#line 2358 "configure"
2193#include "confdefs.h" 2358#include "confdefs.h"
2194/* System header to define __stub macros and hopefully few prototypes, 2359/* System header to define __stub macros and hopefully few prototypes,
2195 which can conflict with char $ac_func(); below. */ 2360 which can conflict with char $ac_func(); below. */
2196#include <assert.h> 2361#include <assert.h>
2197/* Override any gcc2 internal prototype to avoid an error. */ 2362/* Override any gcc2 internal prototype to avoid an error. */
2210$ac_func(); 2375$ac_func();
2211#endif 2376#endif
2212 2377
2213; return 0; } 2378; return 0; }
2214EOF 2379EOF
2215if { (eval echo configure:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2380if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2216 rm -rf conftest* 2381 rm -rf conftest*
2217 eval "ac_cv_func_$ac_func=yes" 2382 eval "ac_cv_func_$ac_func=yes"
2218else 2383else
2219 echo "configure: failed program was:" >&5 2384 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5 2385 cat conftest.$ac_ext >&5
2231#define $ac_tr_func 1 2396#define $ac_tr_func 1
2232EOF 2397EOF
2233 2398
2234else 2399else
2235 echo "$ac_t""no" 1>&6 2400 echo "$ac_t""no" 1>&6
2236LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2401LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2237fi 2402fi
2238done 2403done
2239 2404
2240 2405
2241 2406
2324 RTFDOCS_FALSE='#' 2489 RTFDOCS_FALSE='#'
2325else 2490else
2326 RTFDOCS_TRUE='#' 2491 RTFDOCS_TRUE='#'
2327 RTFDOCS_FALSE= 2492 RTFDOCS_FALSE=
2328fi 2493fi
2494
2329 2495
2330trap '' 1 2 15 2496trap '' 1 2 15
2331cat > confcache <<\EOF 2497cat > confcache <<\EOF
2332# This file is a shell script that caches the results of configure 2498# This file is a shell script that caches the results of configure
2333# tests run on this system so they can be shared between configure 2499# tests run on this system so they can be shared between configure
2481s%@build_cpu@%$build_cpu%g 2647s%@build_cpu@%$build_cpu%g
2482s%@build_vendor@%$build_vendor%g 2648s%@build_vendor@%$build_vendor%g
2483s%@build_os@%$build_os%g 2649s%@build_os@%$build_os%g
2484s%@RANLIB@%$RANLIB%g 2650s%@RANLIB@%$RANLIB%g
2485s%@CC@%$CC%g 2651s%@CC@%$CC%g
2486s%@LD@%$LD%g
2487s%@NM@%$NM%g
2488s%@LN_S@%$LN_S%g 2652s%@LN_S@%$LN_S%g
2489s%@LIBTOOL@%$LIBTOOL%g 2653s%@LIBTOOL@%$LIBTOOL%g
2654s%@cflags_set@%$cflags_set%g
2655s%@LIB_MAGICK@%$LIB_MAGICK%g
2490s%@CPP@%$CPP%g 2656s%@CPP@%$CPP%g
2491s%@INT_8_BIT@%$INT_8_BIT%g 2657s%@INT_8_BIT@%$INT_8_BIT%g
2492s%@INT_16_BIT@%$INT_16_BIT%g 2658s%@INT_16_BIT@%$INT_16_BIT%g
2493s%@INT_32_BIT@%$INT_32_BIT%g 2659s%@INT_32_BIT@%$INT_32_BIT%g
2494s%@LIBOBJS@%$LIBOBJS%g 2660s%@LIBOBJS@%$LIBOBJS%g

Legend:
Removed from v.7  
changed lines
  Added in v.50

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26