… | |
… | |
19 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" |
19 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" |
20 | ac_help="$ac_help |
20 | ac_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]" |
22 | ac_help="$ac_help |
22 | ac_help="$ac_help |
23 | --disable-libtool-lock avoid locking (might break parallel builds)" |
23 | --disable-libtool-lock avoid locking (might break parallel builds)" |
|
|
24 | ac_help="$ac_help |
|
|
25 | --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings." |
|
|
26 | ac_help="$ac_help |
|
|
27 | --enable-iso-c Try to warn if code is not ISO C " |
24 | ac_help="$ac_help |
28 | ac_help="$ac_help |
25 | --with-imagemagick enable ImageMagick (default = yes)" |
29 | --with-imagemagick enable ImageMagick (default = yes)" |
26 | ac_help="$ac_help |
30 | ac_help="$ac_help |
27 | --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)" |
28 | ac_help="$ac_help |
32 | ac_help="$ac_help |
… | |
… | |
469 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
473 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
470 | echo > confdefs.h |
474 | echo > confdefs.h |
471 | |
475 | |
472 | # A filename unique to this package, relative to the directory that |
476 | # A filename unique to this package, relative to the directory that |
473 | # configure is in, which we can look for to find out if srcdir is correct. |
477 | # configure is in, which we can look for to find out if srcdir is correct. |
474 | ac_unique_file=psiconv |
478 | ac_unique_file=lib/psiconv |
475 | |
479 | |
476 | # Find the source files, if location was not specified. |
480 | # Find the source files, if location was not specified. |
477 | if test -z "$srcdir"; then |
481 | if test -z "$srcdir"; then |
478 | ac_srcdir_defaulted=yes |
482 | ac_srcdir_defaulted=yes |
479 | # Try the directory containing this script, then its parent. |
483 | # Try the directory containing this script, then its parent. |
… | |
… | |
570 | # 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 |
571 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
575 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
572 | # 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" |
573 | # ./install, which can be erroneously created by make from ./install.sh. |
577 | # ./install, which can be erroneously created by make from ./install.sh. |
574 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
578 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
575 | echo "configure:576: checking for a BSD compatible install" >&5 |
579 | echo "configure:580: checking for a BSD compatible install" >&5 |
576 | if test -z "$INSTALL"; then |
580 | if test -z "$INSTALL"; then |
577 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
581 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
578 | echo $ac_n "(cached) $ac_c" 1>&6 |
582 | echo $ac_n "(cached) $ac_c" 1>&6 |
579 | else |
583 | else |
580 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
584 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
… | |
… | |
623 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
627 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
624 | |
628 | |
625 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
629 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
626 | |
630 | |
627 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
631 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
628 | echo "configure:629: checking whether build environment is sane" >&5 |
632 | echo "configure:633: checking whether build environment is sane" >&5 |
629 | # Just in case |
633 | # Just in case |
630 | sleep 1 |
634 | sleep 1 |
631 | echo timestamp > conftestfile |
635 | echo timestamp > conftestfile |
632 | # 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 |
633 | # arguments. Must try -L first in case configure is actually a |
637 | # arguments. Must try -L first in case configure is actually a |
… | |
… | |
680 | |
684 | |
681 | # sed with no file args requires a program. |
685 | # sed with no file args requires a program. |
682 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
686 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
683 | |
687 | |
684 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
688 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
685 | echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
689 | echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
686 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
690 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
687 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
691 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
688 | echo $ac_n "(cached) $ac_c" 1>&6 |
692 | echo $ac_n "(cached) $ac_c" 1>&6 |
689 | else |
693 | else |
690 | cat > conftestmake <<\EOF |
694 | cat > conftestmake <<\EOF |
… | |
… | |
709 | fi |
713 | fi |
710 | |
714 | |
711 | |
715 | |
712 | PACKAGE=psiconv |
716 | PACKAGE=psiconv |
713 | |
717 | |
714 | VERSION=0.5.0a |
718 | VERSION=0.8.1 |
715 | |
719 | |
716 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
720 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
717 | { 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; } |
718 | fi |
722 | fi |
719 | cat >> confdefs.h <<EOF |
723 | cat >> confdefs.h <<EOF |
… | |
… | |
726 | |
730 | |
727 | |
731 | |
728 | |
732 | |
729 | missing_dir=`cd $ac_aux_dir && pwd` |
733 | missing_dir=`cd $ac_aux_dir && pwd` |
730 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
734 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
731 | echo "configure:732: checking for working aclocal" >&5 |
735 | echo "configure:736: checking for working aclocal" >&5 |
732 | # 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 |
733 | # an executable is not found, even if stderr is redirected. |
737 | # an executable is not found, even if stderr is redirected. |
734 | # Redirect stdin to placate older versions of autoconf. Sigh. |
738 | # Redirect stdin to placate older versions of autoconf. Sigh. |
735 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
739 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
736 | ACLOCAL=aclocal |
740 | ACLOCAL=aclocal |
… | |
… | |
739 | ACLOCAL="$missing_dir/missing aclocal" |
743 | ACLOCAL="$missing_dir/missing aclocal" |
740 | echo "$ac_t""missing" 1>&6 |
744 | echo "$ac_t""missing" 1>&6 |
741 | fi |
745 | fi |
742 | |
746 | |
743 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
747 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
744 | echo "configure:745: checking for working autoconf" >&5 |
748 | echo "configure:749: checking for working autoconf" >&5 |
745 | # 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 |
746 | # an executable is not found, even if stderr is redirected. |
750 | # an executable is not found, even if stderr is redirected. |
747 | # Redirect stdin to placate older versions of autoconf. Sigh. |
751 | # Redirect stdin to placate older versions of autoconf. Sigh. |
748 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
752 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
749 | AUTOCONF=autoconf |
753 | AUTOCONF=autoconf |
… | |
… | |
752 | AUTOCONF="$missing_dir/missing autoconf" |
756 | AUTOCONF="$missing_dir/missing autoconf" |
753 | echo "$ac_t""missing" 1>&6 |
757 | echo "$ac_t""missing" 1>&6 |
754 | fi |
758 | fi |
755 | |
759 | |
756 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
760 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
757 | echo "configure:758: checking for working automake" >&5 |
761 | echo "configure:762: checking for working automake" >&5 |
758 | # 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 |
759 | # an executable is not found, even if stderr is redirected. |
763 | # an executable is not found, even if stderr is redirected. |
760 | # Redirect stdin to placate older versions of autoconf. Sigh. |
764 | # Redirect stdin to placate older versions of autoconf. Sigh. |
761 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
765 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
762 | AUTOMAKE=automake |
766 | AUTOMAKE=automake |
… | |
… | |
765 | AUTOMAKE="$missing_dir/missing automake" |
769 | AUTOMAKE="$missing_dir/missing automake" |
766 | echo "$ac_t""missing" 1>&6 |
770 | echo "$ac_t""missing" 1>&6 |
767 | fi |
771 | fi |
768 | |
772 | |
769 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
773 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
770 | echo "configure:771: checking for working autoheader" >&5 |
774 | echo "configure:775: checking for working autoheader" >&5 |
771 | # 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 |
772 | # an executable is not found, even if stderr is redirected. |
776 | # an executable is not found, even if stderr is redirected. |
773 | # Redirect stdin to placate older versions of autoconf. Sigh. |
777 | # Redirect stdin to placate older versions of autoconf. Sigh. |
774 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
778 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
775 | AUTOHEADER=autoheader |
779 | AUTOHEADER=autoheader |
… | |
… | |
778 | AUTOHEADER="$missing_dir/missing autoheader" |
782 | AUTOHEADER="$missing_dir/missing autoheader" |
779 | echo "$ac_t""missing" 1>&6 |
783 | echo "$ac_t""missing" 1>&6 |
780 | fi |
784 | fi |
781 | |
785 | |
782 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
786 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
783 | echo "configure:784: checking for working makeinfo" >&5 |
787 | echo "configure:788: checking for working makeinfo" >&5 |
784 | # 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 |
785 | # an executable is not found, even if stderr is redirected. |
789 | # an executable is not found, even if stderr is redirected. |
786 | # Redirect stdin to placate older versions of autoconf. Sigh. |
790 | # Redirect stdin to placate older versions of autoconf. Sigh. |
787 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
791 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
788 | MAKEINFO=makeinfo |
792 | MAKEINFO=makeinfo |
… | |
… | |
872 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
876 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
873 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
877 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
874 | fi |
878 | fi |
875 | |
879 | |
876 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
880 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
877 | echo "configure:878: checking host system type" >&5 |
881 | echo "configure:882: checking host system type" >&5 |
878 | |
882 | |
879 | host_alias=$host |
883 | host_alias=$host |
880 | case "$host_alias" in |
884 | case "$host_alias" in |
881 | NONE) |
885 | NONE) |
882 | case $nonopt in |
886 | case $nonopt in |
… | |
… | |
893 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
897 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
894 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
898 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
895 | echo "$ac_t""$host" 1>&6 |
899 | echo "$ac_t""$host" 1>&6 |
896 | |
900 | |
897 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
901 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
898 | echo "configure:899: checking build system type" >&5 |
902 | echo "configure:903: checking build system type" >&5 |
899 | |
903 | |
900 | build_alias=$build |
904 | build_alias=$build |
901 | case "$build_alias" in |
905 | case "$build_alias" in |
902 | NONE) |
906 | NONE) |
903 | case $nonopt in |
907 | case $nonopt in |
… | |
… | |
913 | echo "$ac_t""$build" 1>&6 |
917 | echo "$ac_t""$build" 1>&6 |
914 | |
918 | |
915 | # 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. |
916 | set dummy ranlib; ac_word=$2 |
920 | set dummy ranlib; ac_word=$2 |
917 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
921 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
918 | echo "configure:919: checking for $ac_word" >&5 |
922 | echo "configure:923: checking for $ac_word" >&5 |
919 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
923 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
920 | echo $ac_n "(cached) $ac_c" 1>&6 |
924 | echo $ac_n "(cached) $ac_c" 1>&6 |
921 | else |
925 | else |
922 | if test -n "$RANLIB"; then |
926 | if test -n "$RANLIB"; then |
923 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
927 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
… | |
… | |
943 | fi |
947 | fi |
944 | |
948 | |
945 | # 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. |
946 | set dummy gcc; ac_word=$2 |
950 | set dummy gcc; ac_word=$2 |
947 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
951 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
948 | echo "configure:949: checking for $ac_word" >&5 |
952 | echo "configure:953: checking for $ac_word" >&5 |
949 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
953 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
950 | echo $ac_n "(cached) $ac_c" 1>&6 |
954 | echo $ac_n "(cached) $ac_c" 1>&6 |
951 | else |
955 | else |
952 | if test -n "$CC"; then |
956 | if test -n "$CC"; then |
953 | ac_cv_prog_CC="$CC" # Let the user override the test. |
957 | ac_cv_prog_CC="$CC" # Let the user override the test. |
… | |
… | |
973 | |
977 | |
974 | if test -z "$CC"; then |
978 | if test -z "$CC"; then |
975 | # 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. |
976 | set dummy cc; ac_word=$2 |
980 | set dummy cc; ac_word=$2 |
977 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
981 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
978 | echo "configure:979: checking for $ac_word" >&5 |
982 | echo "configure:983: checking for $ac_word" >&5 |
979 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
983 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
980 | echo $ac_n "(cached) $ac_c" 1>&6 |
984 | echo $ac_n "(cached) $ac_c" 1>&6 |
981 | else |
985 | else |
982 | if test -n "$CC"; then |
986 | if test -n "$CC"; then |
983 | ac_cv_prog_CC="$CC" # Let the user override the test. |
987 | ac_cv_prog_CC="$CC" # Let the user override the test. |
… | |
… | |
1024 | case "`uname -s`" in |
1028 | case "`uname -s`" in |
1025 | *win32* | *WIN32*) |
1029 | *win32* | *WIN32*) |
1026 | # 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. |
1027 | set dummy cl; ac_word=$2 |
1031 | set dummy cl; ac_word=$2 |
1028 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1032 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1029 | echo "configure:1030: checking for $ac_word" >&5 |
1033 | echo "configure:1034: checking for $ac_word" >&5 |
1030 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1034 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1031 | echo $ac_n "(cached) $ac_c" 1>&6 |
1035 | echo $ac_n "(cached) $ac_c" 1>&6 |
1032 | else |
1036 | else |
1033 | if test -n "$CC"; then |
1037 | if test -n "$CC"; then |
1034 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1038 | ac_cv_prog_CC="$CC" # Let the user override the test. |
… | |
… | |
1056 | fi |
1060 | fi |
1057 | 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; } |
1058 | fi |
1062 | fi |
1059 | |
1063 | |
1060 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1064 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1061 | echo "configure:1062: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1065 | echo "configure:1066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1062 | |
1066 | |
1063 | ac_ext=c |
1067 | ac_ext=c |
1064 | # 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. |
1065 | ac_cpp='$CPP $CPPFLAGS' |
1069 | ac_cpp='$CPP $CPPFLAGS' |
1066 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1070 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1067 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1071 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1068 | cross_compiling=$ac_cv_prog_cc_cross |
1072 | cross_compiling=$ac_cv_prog_cc_cross |
1069 | |
1073 | |
1070 | cat > conftest.$ac_ext << EOF |
1074 | cat > conftest.$ac_ext << EOF |
1071 | |
1075 | |
1072 | #line 1073 "configure" |
1076 | #line 1077 "configure" |
1073 | #include "confdefs.h" |
1077 | #include "confdefs.h" |
1074 | |
1078 | |
1075 | main(){return(0);} |
1079 | main(){return(0);} |
1076 | EOF |
1080 | EOF |
1077 | if { (eval echo configure:1078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1081 | if { (eval echo configure:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1078 | ac_cv_prog_cc_works=yes |
1082 | ac_cv_prog_cc_works=yes |
1079 | # 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. |
1080 | if (./conftest; exit) 2>/dev/null; then |
1084 | if (./conftest; exit) 2>/dev/null; then |
1081 | ac_cv_prog_cc_cross=no |
1085 | ac_cv_prog_cc_cross=no |
1082 | else |
1086 | else |
… | |
… | |
1098 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1102 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1099 | if test $ac_cv_prog_cc_works = no; then |
1103 | if test $ac_cv_prog_cc_works = no; then |
1100 | { 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; } |
1101 | fi |
1105 | fi |
1102 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1106 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1103 | echo "configure:1104: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1107 | echo "configure:1108: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1104 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1108 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1105 | cross_compiling=$ac_cv_prog_cc_cross |
1109 | cross_compiling=$ac_cv_prog_cc_cross |
1106 | |
1110 | |
1107 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1111 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1108 | echo "configure:1109: checking whether we are using GNU C" >&5 |
1112 | echo "configure:1113: checking whether we are using GNU C" >&5 |
1109 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1113 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1110 | echo $ac_n "(cached) $ac_c" 1>&6 |
1114 | echo $ac_n "(cached) $ac_c" 1>&6 |
1111 | else |
1115 | else |
1112 | cat > conftest.c <<EOF |
1116 | cat > conftest.c <<EOF |
1113 | #ifdef __GNUC__ |
1117 | #ifdef __GNUC__ |
1114 | yes; |
1118 | yes; |
1115 | #endif |
1119 | #endif |
1116 | EOF |
1120 | EOF |
1117 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1121 | if { 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 |
1118 | ac_cv_prog_gcc=yes |
1122 | ac_cv_prog_gcc=yes |
1119 | else |
1123 | else |
1120 | ac_cv_prog_gcc=no |
1124 | ac_cv_prog_gcc=no |
1121 | fi |
1125 | fi |
1122 | fi |
1126 | fi |
… | |
… | |
1131 | |
1135 | |
1132 | ac_test_CFLAGS="${CFLAGS+set}" |
1136 | ac_test_CFLAGS="${CFLAGS+set}" |
1133 | ac_save_CFLAGS="$CFLAGS" |
1137 | ac_save_CFLAGS="$CFLAGS" |
1134 | CFLAGS= |
1138 | CFLAGS= |
1135 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1139 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1136 | echo "configure:1137: checking whether ${CC-cc} accepts -g" >&5 |
1140 | echo "configure:1141: checking whether ${CC-cc} accepts -g" >&5 |
1137 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1141 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1138 | echo $ac_n "(cached) $ac_c" 1>&6 |
1142 | echo $ac_n "(cached) $ac_c" 1>&6 |
1139 | else |
1143 | else |
1140 | echo 'void f(){}' > conftest.c |
1144 | echo 'void f(){}' > conftest.c |
1141 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
1145 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
… | |
… | |
1174 | |
1178 | |
1175 | ac_prog=ld |
1179 | ac_prog=ld |
1176 | if test "$ac_cv_prog_gcc" = yes; then |
1180 | if test "$ac_cv_prog_gcc" = yes; then |
1177 | # Check if gcc -print-prog-name=ld gives a path. |
1181 | # Check if gcc -print-prog-name=ld gives a path. |
1178 | 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 |
1179 | echo "configure:1180: checking for ld used by GCC" >&5 |
1183 | echo "configure:1184: checking for ld used by GCC" >&5 |
1180 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
1184 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
1181 | case "$ac_prog" in |
1185 | case "$ac_prog" in |
1182 | # Accept absolute paths. |
1186 | # Accept absolute paths. |
1183 | [\\/]* | [A-Za-z]:[\\/]*) |
1187 | [\\/]* | [A-Za-z]:[\\/]*) |
1184 | re_direlt='/[^/][^/]*/\.\./' |
1188 | re_direlt='/[^/][^/]*/\.\./' |
… | |
… | |
1198 | with_gnu_ld=unknown |
1202 | with_gnu_ld=unknown |
1199 | ;; |
1203 | ;; |
1200 | esac |
1204 | esac |
1201 | elif test "$with_gnu_ld" = yes; then |
1205 | elif test "$with_gnu_ld" = yes; then |
1202 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
1206 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
1203 | echo "configure:1204: checking for GNU ld" >&5 |
1207 | echo "configure:1208: checking for GNU ld" >&5 |
1204 | else |
1208 | else |
1205 | 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 |
1206 | echo "configure:1207: checking for non-GNU ld" >&5 |
1210 | echo "configure:1211: checking for non-GNU ld" >&5 |
1207 | fi |
1211 | fi |
1208 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
1212 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
1209 | echo $ac_n "(cached) $ac_c" 1>&6 |
1213 | echo $ac_n "(cached) $ac_c" 1>&6 |
1210 | else |
1214 | else |
1211 | if test -z "$LD"; then |
1215 | if test -z "$LD"; then |
… | |
… | |
1235 | echo "$ac_t""$LD" 1>&6 |
1239 | echo "$ac_t""$LD" 1>&6 |
1236 | else |
1240 | else |
1237 | echo "$ac_t""no" 1>&6 |
1241 | echo "$ac_t""no" 1>&6 |
1238 | fi |
1242 | fi |
1239 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
1243 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
1240 | |
|
|
1241 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
1244 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
1242 | echo "configure:1243: checking if the linker ($LD) is GNU ld" >&5 |
1245 | echo "configure:1246: checking if the linker ($LD) is GNU ld" >&5 |
1243 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
1246 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
1244 | echo $ac_n "(cached) $ac_c" 1>&6 |
1247 | echo $ac_n "(cached) $ac_c" 1>&6 |
1245 | else |
1248 | else |
1246 | # 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. |
1247 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
1250 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
… | |
… | |
1253 | |
1256 | |
1254 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
1257 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
1255 | |
1258 | |
1256 | |
1259 | |
1257 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
1260 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
1258 | echo "configure:1259: checking for BSD-compatible nm" >&5 |
1261 | echo "configure:1262: checking for BSD-compatible nm" >&5 |
1259 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
1262 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
1260 | echo $ac_n "(cached) $ac_c" 1>&6 |
1263 | echo $ac_n "(cached) $ac_c" 1>&6 |
1261 | else |
1264 | else |
1262 | if test -n "$NM"; then |
1265 | if test -n "$NM"; then |
1263 | # Let the user override the test. |
1266 | # Let the user override the test. |
… | |
… | |
1288 | fi |
1291 | fi |
1289 | |
1292 | |
1290 | NM="$ac_cv_path_NM" |
1293 | NM="$ac_cv_path_NM" |
1291 | echo "$ac_t""$NM" 1>&6 |
1294 | echo "$ac_t""$NM" 1>&6 |
1292 | |
1295 | |
1293 | |
|
|
1294 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1296 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1295 | echo "configure:1296: checking whether ln -s works" >&5 |
1297 | echo "configure:1298: checking whether ln -s works" >&5 |
1296 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1298 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1297 | echo $ac_n "(cached) $ac_c" 1>&6 |
1299 | echo $ac_n "(cached) $ac_c" 1>&6 |
1298 | else |
1300 | else |
1299 | rm -f conftestdata |
1301 | rm -f conftestdata |
1300 | if ln -s X conftestdata 2>/dev/null |
1302 | if ln -s X conftestdata 2>/dev/null |
… | |
… | |
1310 | echo "$ac_t""yes" 1>&6 |
1312 | echo "$ac_t""yes" 1>&6 |
1311 | else |
1313 | else |
1312 | echo "$ac_t""no" 1>&6 |
1314 | echo "$ac_t""no" 1>&6 |
1313 | fi |
1315 | fi |
1314 | |
1316 | |
|
|
1317 | |
|
|
1318 | case "$target" in |
|
|
1319 | NONE) lt_target="$host" ;; |
|
|
1320 | *) lt_target="$target" ;; |
|
|
1321 | esac |
1315 | |
1322 | |
1316 | # Check for any special flags to pass to ltconfig. |
1323 | # Check for any special flags to pass to ltconfig. |
1317 | libtool_flags="--cache-file=$cache_file" |
1324 | libtool_flags="--cache-file=$cache_file" |
1318 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
1325 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
1319 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
1326 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
… | |
… | |
1331 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
1338 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
1332 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
1339 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
1333 | |
1340 | |
1334 | # 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 |
1335 | # libtool support. |
1342 | # libtool support. |
1336 | case "$host" in |
1343 | case "$lt_target" in |
1337 | *-*-irix6*) |
1344 | *-*-irix6*) |
1338 | # Find out which ABI we are using. |
1345 | # Find out which ABI we are using. |
1339 | echo '#line 1340 "configure"' > conftest.$ac_ext |
1346 | echo '#line 1347 "configure"' > conftest.$ac_ext |
1340 | if { (eval echo configure:1341: \"$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 |
1341 | case "`/usr/bin/file conftest.o`" in |
1348 | case "`/usr/bin/file conftest.o`" in |
1342 | *32-bit*) |
1349 | *32-bit*) |
1343 | LD="${LD-ld} -32" |
1350 | LD="${LD-ld} -32" |
1344 | ;; |
1351 | ;; |
1345 | *N32*) |
1352 | *N32*) |
… | |
… | |
1356 | *-*-sco3.2v5*) |
1363 | *-*-sco3.2v5*) |
1357 | # 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. |
1358 | SAVE_CFLAGS="$CFLAGS" |
1365 | SAVE_CFLAGS="$CFLAGS" |
1359 | CFLAGS="$CFLAGS -belf" |
1366 | CFLAGS="$CFLAGS -belf" |
1360 | 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 |
1361 | echo "configure:1362: checking whether the C compiler needs -belf" >&5 |
1368 | echo "configure:1369: checking whether the C compiler needs -belf" >&5 |
1362 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1369 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1363 | echo $ac_n "(cached) $ac_c" 1>&6 |
1370 | echo $ac_n "(cached) $ac_c" 1>&6 |
1364 | else |
1371 | else |
1365 | cat > conftest.$ac_ext <<EOF |
1372 | cat > conftest.$ac_ext <<EOF |
1366 | #line 1367 "configure" |
1373 | #line 1374 "configure" |
1367 | #include "confdefs.h" |
1374 | #include "confdefs.h" |
1368 | |
1375 | |
1369 | int main() { |
1376 | int main() { |
1370 | |
1377 | |
1371 | ; return 0; } |
1378 | ; return 0; } |
1372 | EOF |
1379 | EOF |
1373 | if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1380 | if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1374 | rm -rf conftest* |
1381 | rm -rf conftest* |
1375 | lt_cv_cc_needs_belf=yes |
1382 | lt_cv_cc_needs_belf=yes |
1376 | else |
1383 | else |
1377 | echo "configure: failed program was:" >&5 |
1384 | echo "configure: failed program was:" >&5 |
1378 | cat conftest.$ac_ext >&5 |
1385 | cat conftest.$ac_ext >&5 |
… | |
… | |
1446 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
1453 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
1447 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
1454 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
1448 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
1455 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
1449 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
1456 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
1450 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
1457 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
1451 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ |
1458 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ |
1452 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
1459 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
1453 | |
1460 | |
1454 | # Reload cache, that may have been modified by ltconfig |
1461 | # Reload cache, that may have been modified by ltconfig |
1455 | if test -r "$cache_file"; then |
1462 | if test -r "$cache_file"; then |
1456 | echo "loading cache $cache_file" |
1463 | echo "loading cache $cache_file" |
… | |
… | |
1470 | # 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 |
1471 | # clobbered by the next message. |
1478 | # clobbered by the next message. |
1472 | exec 5>>./config.log |
1479 | exec 5>>./config.log |
1473 | |
1480 | |
1474 | |
1481 | |
|
|
1482 | # Check whether --enable-compile-warnings or --disable-compile-warnings was given. |
|
|
1483 | if test "${enable_compile_warnings+set}" = set; then |
|
|
1484 | enableval="$enable_compile_warnings" |
|
|
1485 | : |
|
|
1486 | else |
|
|
1487 | enable_compile_warnings=minimum |
|
|
1488 | fi |
|
|
1489 | |
|
|
1490 | |
|
|
1491 | echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6 |
|
|
1492 | echo "configure:1493: checking what warning flags to pass to the C compiler" >&5 |
|
|
1493 | warnCFLAGS= |
|
|
1494 | if test "x$GCC" != xyes; then |
|
|
1495 | enable_compile_warnings=no |
|
|
1496 | fi |
|
|
1497 | if 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 |
|
|
1510 | fi |
|
|
1511 | echo "$ac_t""$warnCFLAGS" 1>&6 |
|
|
1512 | |
|
|
1513 | # Check whether --enable-iso-c or --disable-iso-c was given. |
|
|
1514 | if test "${enable_iso_c+set}" = set; then |
|
|
1515 | enableval="$enable_iso_c" |
|
|
1516 | : |
|
|
1517 | else |
|
|
1518 | enable_iso_c=no |
|
|
1519 | fi |
|
|
1520 | |
|
|
1521 | |
|
|
1522 | echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6 |
|
|
1523 | echo "configure:1524: checking what language compliance flags to pass to the C compiler" >&5 |
|
|
1524 | complCFLAGS= |
|
|
1525 | if 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 |
|
|
1537 | fi |
|
|
1538 | echo "$ac_t""$complCFLAGS" 1>&6 |
|
|
1539 | if test "x$cflags_set" != "xyes"; then |
|
|
1540 | CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS" |
|
|
1541 | cflags_set=yes |
|
|
1542 | |
|
|
1543 | fi |
|
|
1544 | |
|
|
1545 | |
1475 | # Check whether --with-imagemagick or --without-imagemagick was given. |
1546 | # Check whether --with-imagemagick or --without-imagemagick was given. |
1476 | if test "${with_imagemagick+set}" = set; then |
1547 | if test "${with_imagemagick+set}" = set; then |
1477 | withval="$with_imagemagick" |
1548 | withval="$with_imagemagick" |
1478 | IMAGEMAGICK=$withval |
1549 | IMAGEMAGICK=$withval |
1479 | else |
1550 | else |
1480 | IMAGEMAGICK='yes' |
1551 | IMAGEMAGICK='yes' |
1481 | fi |
1552 | fi |
1482 | |
1553 | |
1483 | if test x"$IMAGEMAGICK" != xno ; then |
1554 | if test x"$IMAGEMAGICK" != xno ; then |
|
|
1555 | # Extract the first word of "Magick-config", so it can be a program name with args. |
|
|
1556 | set dummy Magick-config; ac_word=$2 |
1484 | echo $ac_n "checking for MagickWarning in -lMagick""... $ac_c" 1>&6 |
1557 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1485 | echo "configure:1486: checking for MagickWarning in -lMagick" >&5 |
1558 | echo "configure:1559: checking for $ac_word" >&5 |
1486 | ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'` |
|
|
1487 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1559 | if eval "test \"`echo '$''{'ac_cv_prog_IMAGEMAGICK'+set}'`\" = set"; then |
1488 | echo $ac_n "(cached) $ac_c" 1>&6 |
1560 | echo $ac_n "(cached) $ac_c" 1>&6 |
1489 | else |
1561 | else |
1490 | ac_save_LIBS="$LIBS" |
1562 | if test -n "$IMAGEMAGICK"; then |
1491 | LIBS="-lMagick $LIBS" |
1563 | ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test. |
|
|
1564 | else |
|
|
1565 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
1566 | ac_dummy="$PATH" |
|
|
1567 | for ac_dir in $ac_dummy; do |
|
|
1568 | test -z "$ac_dir" && ac_dir=. |
|
|
1569 | if test -f $ac_dir/$ac_word; then |
|
|
1570 | ac_cv_prog_IMAGEMAGICK="yes" |
|
|
1571 | break |
|
|
1572 | fi |
|
|
1573 | done |
|
|
1574 | IFS="$ac_save_ifs" |
|
|
1575 | test -z "$ac_cv_prog_IMAGEMAGICK" && ac_cv_prog_IMAGEMAGICK="no" |
|
|
1576 | fi |
|
|
1577 | fi |
|
|
1578 | IMAGEMAGICK="$ac_cv_prog_IMAGEMAGICK" |
|
|
1579 | if test -n "$IMAGEMAGICK"; then |
|
|
1580 | echo "$ac_t""$IMAGEMAGICK" 1>&6 |
|
|
1581 | else |
|
|
1582 | echo "$ac_t""no" 1>&6 |
|
|
1583 | fi |
|
|
1584 | |
|
|
1585 | if test x"$IMAGEMAGICK" != xno ; then |
|
|
1586 | CFLAGS_OLD="$CFLAGS" |
|
|
1587 | CPPFLAGS_OLD="$CPPFLAGS" |
|
|
1588 | LDFLAGS_OLD="$LDFLAGS" |
|
|
1589 | LIBS_OLD="$LIBS" |
|
|
1590 | CFLAGS="$CFLAGS `Magick-config --cflags`" |
|
|
1591 | CPPFLAGS="$CPPFLAGS `Magick-config --cppflags`" |
|
|
1592 | LDFLAGS="$LDFLAGS `Magick-config --ldflags`" |
|
|
1593 | LIBS="$LIBS `Magick-config --libs`" |
|
|
1594 | |
|
|
1595 | echo $ac_n "checking whether GetMagickInfo works""... $ac_c" 1>&6 |
|
|
1596 | echo "configure:1597: checking whether GetMagickInfo works" >&5 |
|
|
1597 | if test "$cross_compiling" = yes; then |
|
|
1598 | IMAGEMAGICK=yes |
|
|
1599 | else |
1492 | cat > conftest.$ac_ext <<EOF |
1600 | cat > conftest.$ac_ext <<EOF |
1493 | #line 1494 "configure" |
1601 | #line 1602 "configure" |
1494 | #include "confdefs.h" |
1602 | #include "confdefs.h" |
1495 | /* Override any gcc2 internal prototype to avoid an error. */ |
1603 | #include <magick/magick.h> |
1496 | /* We use char because int might match the return type of a gcc2 |
1604 | #include <magick/config.h> |
1497 | builtin and then its argument prototype would still apply. */ |
1605 | #include <stdio.h> |
1498 | char MagickWarning(); |
1606 | extern void OpenModules(void); |
1499 | |
1607 | int main(void) { GetMagickInfo(NULL); |
1500 | int main() { |
1608 | #if defined(HasLTDL) |
1501 | MagickWarning() |
1609 | OpenModules(); |
1502 | ; return 0; } |
1610 | #endif |
|
|
1611 | return (NULL == GetMagickInfo(NULL)); } |
1503 | EOF |
1612 | EOF |
1504 | if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1613 | if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1505 | rm -rf conftest* |
1614 | then |
1506 | eval "ac_cv_lib_$ac_lib_var=yes" |
1615 | IMAGEMAGICK=yes |
1507 | else |
1616 | else |
1508 | echo "configure: failed program was:" >&5 |
1617 | echo "configure: failed program was:" >&5 |
1509 | cat conftest.$ac_ext >&5 |
1618 | cat conftest.$ac_ext >&5 |
1510 | rm -rf conftest* |
1619 | rm -fr conftest* |
1511 | eval "ac_cv_lib_$ac_lib_var=no" |
1620 | IMAGEMAGICK=no |
1512 | fi |
1621 | fi |
1513 | rm -f conftest* |
1622 | rm -fr conftest* |
1514 | LIBS="$ac_save_LIBS" |
|
|
1515 | |
|
|
1516 | fi |
1623 | fi |
1517 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
|
1518 | echo "$ac_t""yes" 1>&6 |
|
|
1519 | IMAGEMAGICK=yes |
|
|
1520 | else |
|
|
1521 | echo "$ac_t""no" 1>&6 |
|
|
1522 | IMAGEMAGICK=no |
|
|
1523 | fi |
|
|
1524 | |
1624 | |
|
|
1625 | echo "$ac_t""$IMAGEMAGICK" 1>&6 |
|
|
1626 | LDFLAGS="$LDFLAGS_OLD" |
|
|
1627 | LIBS="$LIBS_OLD" |
1525 | if test x"$IMAGEMAGICK" = xno ; then |
1628 | if test x"$IMAGEMAGICK" = xno ; then |
1526 | echo "configure: warning: ImageMagick support disabled!" 1>&2 |
1629 | CFLAGS="$CFLAGS_OLD" |
|
|
1630 | CPPFLAGS="$CPPFLAGS_OLD" |
|
|
1631 | fi |
1527 | fi |
1632 | fi |
1528 | fi |
1633 | fi |
1529 | if test x"$IMAGEMAGICK" = xyes ; then |
1634 | if test x"$IMAGEMAGICK" = xyes ; then |
1530 | LIB_MAGICK=-lMagick |
1635 | LIB_MAGICK="`Magick-config --libs` `Magick-config --ldflags`" |
1531 | cat >> confdefs.h <<\EOF |
1636 | cat >> confdefs.h <<\EOF |
1532 | #define IMAGEMAGICK 1 |
1637 | #define IMAGEMAGICK 1 |
1533 | EOF |
1638 | EOF |
1534 | |
1639 | |
1535 | else |
1640 | else |
1536 | LIB_MAGICK= |
1641 | LIB_MAGICK= |
1537 | fi |
1642 | fi |
1538 | |
1643 | |
1539 | |
1644 | |
1540 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1645 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1541 | echo "configure:1542: checking how to run the C preprocessor" >&5 |
1646 | echo "configure:1647: checking how to run the C preprocessor" >&5 |
1542 | # On Suns, sometimes $CPP names a directory. |
1647 | # On Suns, sometimes $CPP names a directory. |
1543 | if test -n "$CPP" && test -d "$CPP"; then |
1648 | if test -n "$CPP" && test -d "$CPP"; then |
1544 | CPP= |
1649 | CPP= |
1545 | fi |
1650 | fi |
1546 | if test -z "$CPP"; then |
1651 | if test -z "$CPP"; then |
… | |
… | |
1551 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1656 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1552 | CPP="${CC-cc} -E" |
1657 | CPP="${CC-cc} -E" |
1553 | # On the NeXT, cc -E runs the code through the compiler's parser, |
1658 | # On the NeXT, cc -E runs the code through the compiler's parser, |
1554 | # not just through cpp. |
1659 | # not just through cpp. |
1555 | cat > conftest.$ac_ext <<EOF |
1660 | cat > conftest.$ac_ext <<EOF |
1556 | #line 1557 "configure" |
1661 | #line 1662 "configure" |
1557 | #include "confdefs.h" |
1662 | #include "confdefs.h" |
1558 | #include <assert.h> |
1663 | #include <assert.h> |
1559 | Syntax Error |
1664 | Syntax Error |
1560 | EOF |
1665 | EOF |
1561 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1666 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1562 | { (eval echo configure:1563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1667 | { (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1563 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1668 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1564 | if test -z "$ac_err"; then |
1669 | if test -z "$ac_err"; then |
1565 | : |
1670 | : |
1566 | else |
1671 | else |
1567 | echo "$ac_err" >&5 |
1672 | echo "$ac_err" >&5 |
1568 | echo "configure: failed program was:" >&5 |
1673 | echo "configure: failed program was:" >&5 |
1569 | cat conftest.$ac_ext >&5 |
1674 | cat conftest.$ac_ext >&5 |
1570 | rm -rf conftest* |
1675 | rm -rf conftest* |
1571 | CPP="${CC-cc} -E -traditional-cpp" |
1676 | CPP="${CC-cc} -E -traditional-cpp" |
1572 | cat > conftest.$ac_ext <<EOF |
1677 | cat > conftest.$ac_ext <<EOF |
1573 | #line 1574 "configure" |
1678 | #line 1679 "configure" |
1574 | #include "confdefs.h" |
1679 | #include "confdefs.h" |
1575 | #include <assert.h> |
1680 | #include <assert.h> |
1576 | Syntax Error |
1681 | Syntax Error |
1577 | EOF |
1682 | EOF |
1578 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1683 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1579 | { (eval echo configure:1580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1684 | { (eval echo configure:1685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1580 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1685 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1581 | if test -z "$ac_err"; then |
1686 | if test -z "$ac_err"; then |
1582 | : |
1687 | : |
1583 | else |
1688 | else |
1584 | echo "$ac_err" >&5 |
1689 | echo "$ac_err" >&5 |
1585 | echo "configure: failed program was:" >&5 |
1690 | echo "configure: failed program was:" >&5 |
1586 | cat conftest.$ac_ext >&5 |
1691 | cat conftest.$ac_ext >&5 |
1587 | rm -rf conftest* |
1692 | rm -rf conftest* |
1588 | CPP="${CC-cc} -nologo -E" |
1693 | CPP="${CC-cc} -nologo -E" |
1589 | cat > conftest.$ac_ext <<EOF |
1694 | cat > conftest.$ac_ext <<EOF |
1590 | #line 1591 "configure" |
1695 | #line 1696 "configure" |
1591 | #include "confdefs.h" |
1696 | #include "confdefs.h" |
1592 | #include <assert.h> |
1697 | #include <assert.h> |
1593 | Syntax Error |
1698 | Syntax Error |
1594 | EOF |
1699 | EOF |
1595 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1700 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1596 | { (eval echo configure:1597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1701 | { (eval echo configure:1702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1597 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1702 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1598 | if test -z "$ac_err"; then |
1703 | if test -z "$ac_err"; then |
1599 | : |
1704 | : |
1600 | else |
1705 | else |
1601 | echo "$ac_err" >&5 |
1706 | echo "$ac_err" >&5 |
… | |
… | |
1616 | ac_cv_prog_CPP="$CPP" |
1721 | ac_cv_prog_CPP="$CPP" |
1617 | fi |
1722 | fi |
1618 | echo "$ac_t""$CPP" 1>&6 |
1723 | echo "$ac_t""$CPP" 1>&6 |
1619 | |
1724 | |
1620 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1725 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1621 | echo "configure:1622: checking for ANSI C header files" >&5 |
1726 | echo "configure:1727: checking for ANSI C header files" >&5 |
1622 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1727 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1623 | echo $ac_n "(cached) $ac_c" 1>&6 |
1728 | echo $ac_n "(cached) $ac_c" 1>&6 |
1624 | else |
1729 | else |
1625 | cat > conftest.$ac_ext <<EOF |
1730 | cat > conftest.$ac_ext <<EOF |
1626 | #line 1627 "configure" |
1731 | #line 1732 "configure" |
1627 | #include "confdefs.h" |
1732 | #include "confdefs.h" |
1628 | #include <stdlib.h> |
1733 | #include <stdlib.h> |
1629 | #include <stdarg.h> |
1734 | #include <stdarg.h> |
1630 | #include <string.h> |
1735 | #include <string.h> |
1631 | #include <float.h> |
1736 | #include <float.h> |
1632 | EOF |
1737 | EOF |
1633 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1738 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1634 | { (eval echo configure:1635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1739 | { (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1635 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1740 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1636 | if test -z "$ac_err"; then |
1741 | if test -z "$ac_err"; then |
1637 | rm -rf conftest* |
1742 | rm -rf conftest* |
1638 | ac_cv_header_stdc=yes |
1743 | ac_cv_header_stdc=yes |
1639 | else |
1744 | else |
… | |
… | |
1646 | rm -f conftest* |
1751 | rm -f conftest* |
1647 | |
1752 | |
1648 | if test $ac_cv_header_stdc = yes; then |
1753 | if test $ac_cv_header_stdc = yes; then |
1649 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1754 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1650 | cat > conftest.$ac_ext <<EOF |
1755 | cat > conftest.$ac_ext <<EOF |
1651 | #line 1652 "configure" |
1756 | #line 1757 "configure" |
1652 | #include "confdefs.h" |
1757 | #include "confdefs.h" |
1653 | #include <string.h> |
1758 | #include <string.h> |
1654 | EOF |
1759 | EOF |
1655 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1760 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1656 | egrep "memchr" >/dev/null 2>&1; then |
1761 | egrep "memchr" >/dev/null 2>&1; then |
… | |
… | |
1664 | fi |
1769 | fi |
1665 | |
1770 | |
1666 | if test $ac_cv_header_stdc = yes; then |
1771 | if test $ac_cv_header_stdc = yes; then |
1667 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1772 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1668 | cat > conftest.$ac_ext <<EOF |
1773 | cat > conftest.$ac_ext <<EOF |
1669 | #line 1670 "configure" |
1774 | #line 1775 "configure" |
1670 | #include "confdefs.h" |
1775 | #include "confdefs.h" |
1671 | #include <stdlib.h> |
1776 | #include <stdlib.h> |
1672 | EOF |
1777 | EOF |
1673 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1674 | egrep "free" >/dev/null 2>&1; then |
1779 | egrep "free" >/dev/null 2>&1; then |
… | |
… | |
1685 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1790 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1686 | if test "$cross_compiling" = yes; then |
1791 | if test "$cross_compiling" = yes; then |
1687 | : |
1792 | : |
1688 | else |
1793 | else |
1689 | cat > conftest.$ac_ext <<EOF |
1794 | cat > conftest.$ac_ext <<EOF |
1690 | #line 1691 "configure" |
1795 | #line 1796 "configure" |
1691 | #include "confdefs.h" |
1796 | #include "confdefs.h" |
1692 | #include <ctype.h> |
1797 | #include <ctype.h> |
1693 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1798 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1694 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1799 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1695 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1800 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1696 | int main () { int i; for (i = 0; i < 256; i++) |
1801 | int main () { int i; for (i = 0; i < 256; i++) |
1697 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1802 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1698 | exit (0); } |
1803 | exit (0); } |
1699 | |
1804 | |
1700 | EOF |
1805 | EOF |
1701 | if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1806 | if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1702 | then |
1807 | then |
1703 | : |
1808 | : |
1704 | else |
1809 | else |
1705 | echo "configure: failed program was:" >&5 |
1810 | echo "configure: failed program was:" >&5 |
1706 | cat conftest.$ac_ext >&5 |
1811 | cat conftest.$ac_ext >&5 |
… | |
… | |
1723 | |
1828 | |
1724 | for ac_hdr in unistd.h |
1829 | for ac_hdr in unistd.h |
1725 | do |
1830 | do |
1726 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1831 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1727 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1832 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1728 | echo "configure:1729: checking for $ac_hdr" >&5 |
1833 | echo "configure:1834: checking for $ac_hdr" >&5 |
1729 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1834 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1730 | echo $ac_n "(cached) $ac_c" 1>&6 |
1835 | echo $ac_n "(cached) $ac_c" 1>&6 |
1731 | else |
1836 | else |
1732 | cat > conftest.$ac_ext <<EOF |
1837 | cat > conftest.$ac_ext <<EOF |
1733 | #line 1734 "configure" |
1838 | #line 1839 "configure" |
1734 | #include "confdefs.h" |
1839 | #include "confdefs.h" |
1735 | #include <$ac_hdr> |
1840 | #include <$ac_hdr> |
1736 | EOF |
1841 | EOF |
1737 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1842 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1738 | { (eval echo configure:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1843 | { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1739 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1844 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1740 | if test -z "$ac_err"; then |
1845 | if test -z "$ac_err"; then |
1741 | rm -rf conftest* |
1846 | rm -rf conftest* |
1742 | eval "ac_cv_header_$ac_safe=yes" |
1847 | eval "ac_cv_header_$ac_safe=yes" |
1743 | else |
1848 | else |
… | |
… | |
1761 | fi |
1866 | fi |
1762 | done |
1867 | done |
1763 | |
1868 | |
1764 | |
1869 | |
1765 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1870 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1766 | echo "configure:1767: checking for working const" >&5 |
1871 | echo "configure:1872: checking for working const" >&5 |
1767 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1872 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1768 | echo $ac_n "(cached) $ac_c" 1>&6 |
1873 | echo $ac_n "(cached) $ac_c" 1>&6 |
1769 | else |
1874 | else |
1770 | cat > conftest.$ac_ext <<EOF |
1875 | cat > conftest.$ac_ext <<EOF |
1771 | #line 1772 "configure" |
1876 | #line 1877 "configure" |
1772 | #include "confdefs.h" |
1877 | #include "confdefs.h" |
1773 | |
1878 | |
1774 | int main() { |
1879 | int main() { |
1775 | |
1880 | |
1776 | /* Ultrix mips cc rejects this. */ |
1881 | /* Ultrix mips cc rejects this. */ |
… | |
… | |
1815 | const int foo = 10; |
1920 | const int foo = 10; |
1816 | } |
1921 | } |
1817 | |
1922 | |
1818 | ; return 0; } |
1923 | ; return 0; } |
1819 | EOF |
1924 | EOF |
1820 | if { (eval echo configure:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1925 | if { (eval echo configure:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1821 | rm -rf conftest* |
1926 | rm -rf conftest* |
1822 | ac_cv_c_const=yes |
1927 | ac_cv_c_const=yes |
1823 | else |
1928 | else |
1824 | echo "configure: failed program was:" >&5 |
1929 | echo "configure: failed program was:" >&5 |
1825 | cat conftest.$ac_ext >&5 |
1930 | cat conftest.$ac_ext >&5 |
… | |
… | |
1836 | EOF |
1941 | EOF |
1837 | |
1942 | |
1838 | fi |
1943 | fi |
1839 | |
1944 | |
1840 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1945 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1841 | echo "configure:1842: checking for size_t" >&5 |
1946 | echo "configure:1947: checking for size_t" >&5 |
1842 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1947 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1843 | echo $ac_n "(cached) $ac_c" 1>&6 |
1948 | echo $ac_n "(cached) $ac_c" 1>&6 |
1844 | else |
1949 | else |
1845 | cat > conftest.$ac_ext <<EOF |
1950 | cat > conftest.$ac_ext <<EOF |
1846 | #line 1847 "configure" |
1951 | #line 1952 "configure" |
1847 | #include "confdefs.h" |
1952 | #include "confdefs.h" |
1848 | #include <sys/types.h> |
1953 | #include <sys/types.h> |
1849 | #if STDC_HEADERS |
1954 | #if STDC_HEADERS |
1850 | #include <stdlib.h> |
1955 | #include <stdlib.h> |
1851 | #include <stddef.h> |
1956 | #include <stddef.h> |
… | |
… | |
1871 | fi |
1976 | fi |
1872 | |
1977 | |
1873 | |
1978 | |
1874 | |
1979 | |
1875 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1980 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1876 | echo "configure:1877: checking size of char" >&5 |
1981 | echo "configure:1982: checking size of char" >&5 |
1877 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1982 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1878 | echo $ac_n "(cached) $ac_c" 1>&6 |
1983 | echo $ac_n "(cached) $ac_c" 1>&6 |
1879 | else |
1984 | else |
1880 | if test "$cross_compiling" = yes; then |
1985 | if test "$cross_compiling" = yes; then |
1881 | ac_cv_sizeof_char=1 |
1986 | ac_cv_sizeof_char=1 |
1882 | else |
1987 | else |
1883 | cat > conftest.$ac_ext <<EOF |
1988 | cat > conftest.$ac_ext <<EOF |
1884 | #line 1885 "configure" |
1989 | #line 1990 "configure" |
1885 | #include "confdefs.h" |
1990 | #include "confdefs.h" |
1886 | #include <stdio.h> |
1991 | #include <stdio.h> |
1887 | main() |
1992 | main() |
1888 | { |
1993 | { |
1889 | FILE *f=fopen("conftestval", "w"); |
1994 | FILE *f=fopen("conftestval", "w"); |
1890 | if (!f) exit(1); |
1995 | if (!f) exit(1); |
1891 | fprintf(f, "%d\n", sizeof(char)); |
1996 | fprintf(f, "%d\n", sizeof(char)); |
1892 | exit(0); |
1997 | exit(0); |
1893 | } |
1998 | } |
1894 | EOF |
1999 | EOF |
1895 | if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2000 | if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1896 | then |
2001 | then |
1897 | ac_cv_sizeof_char=`cat conftestval` |
2002 | ac_cv_sizeof_char=`cat conftestval` |
1898 | else |
2003 | else |
1899 | echo "configure: failed program was:" >&5 |
2004 | echo "configure: failed program was:" >&5 |
1900 | cat conftest.$ac_ext >&5 |
2005 | cat conftest.$ac_ext >&5 |
… | |
… | |
1910 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
2015 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
1911 | EOF |
2016 | EOF |
1912 | |
2017 | |
1913 | |
2018 | |
1914 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
2019 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
1915 | echo "configure:1916: checking size of short" >&5 |
2020 | echo "configure:2021: checking size of short" >&5 |
1916 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
2021 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
1917 | echo $ac_n "(cached) $ac_c" 1>&6 |
2022 | echo $ac_n "(cached) $ac_c" 1>&6 |
1918 | else |
2023 | else |
1919 | if test "$cross_compiling" = yes; then |
2024 | if test "$cross_compiling" = yes; then |
1920 | ac_cv_sizeof_short=1 |
2025 | ac_cv_sizeof_short=1 |
1921 | else |
2026 | else |
1922 | cat > conftest.$ac_ext <<EOF |
2027 | cat > conftest.$ac_ext <<EOF |
1923 | #line 1924 "configure" |
2028 | #line 2029 "configure" |
1924 | #include "confdefs.h" |
2029 | #include "confdefs.h" |
1925 | #include <stdio.h> |
2030 | #include <stdio.h> |
1926 | main() |
2031 | main() |
1927 | { |
2032 | { |
1928 | FILE *f=fopen("conftestval", "w"); |
2033 | FILE *f=fopen("conftestval", "w"); |
1929 | if (!f) exit(1); |
2034 | if (!f) exit(1); |
1930 | fprintf(f, "%d\n", sizeof(short)); |
2035 | fprintf(f, "%d\n", sizeof(short)); |
1931 | exit(0); |
2036 | exit(0); |
1932 | } |
2037 | } |
1933 | EOF |
2038 | EOF |
1934 | if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2039 | if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1935 | then |
2040 | then |
1936 | ac_cv_sizeof_short=`cat conftestval` |
2041 | ac_cv_sizeof_short=`cat conftestval` |
1937 | else |
2042 | else |
1938 | echo "configure: failed program was:" >&5 |
2043 | echo "configure: failed program was:" >&5 |
1939 | cat conftest.$ac_ext >&5 |
2044 | cat conftest.$ac_ext >&5 |
… | |
… | |
1949 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
2054 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
1950 | EOF |
2055 | EOF |
1951 | |
2056 | |
1952 | |
2057 | |
1953 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
2058 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
1954 | echo "configure:1955: checking size of int" >&5 |
2059 | echo "configure:2060: checking size of int" >&5 |
1955 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
2060 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
1956 | echo $ac_n "(cached) $ac_c" 1>&6 |
2061 | echo $ac_n "(cached) $ac_c" 1>&6 |
1957 | else |
2062 | else |
1958 | if test "$cross_compiling" = yes; then |
2063 | if test "$cross_compiling" = yes; then |
1959 | ac_cv_sizeof_int=2 |
2064 | ac_cv_sizeof_int=2 |
1960 | else |
2065 | else |
1961 | cat > conftest.$ac_ext <<EOF |
2066 | cat > conftest.$ac_ext <<EOF |
1962 | #line 1963 "configure" |
2067 | #line 2068 "configure" |
1963 | #include "confdefs.h" |
2068 | #include "confdefs.h" |
1964 | #include <stdio.h> |
2069 | #include <stdio.h> |
1965 | main() |
2070 | main() |
1966 | { |
2071 | { |
1967 | FILE *f=fopen("conftestval", "w"); |
2072 | FILE *f=fopen("conftestval", "w"); |
1968 | if (!f) exit(1); |
2073 | if (!f) exit(1); |
1969 | fprintf(f, "%d\n", sizeof(int)); |
2074 | fprintf(f, "%d\n", sizeof(int)); |
1970 | exit(0); |
2075 | exit(0); |
1971 | } |
2076 | } |
1972 | EOF |
2077 | EOF |
1973 | if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2078 | if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1974 | then |
2079 | then |
1975 | ac_cv_sizeof_int=`cat conftestval` |
2080 | ac_cv_sizeof_int=`cat conftestval` |
1976 | else |
2081 | else |
1977 | echo "configure: failed program was:" >&5 |
2082 | echo "configure: failed program was:" >&5 |
1978 | cat conftest.$ac_ext >&5 |
2083 | cat conftest.$ac_ext >&5 |
… | |
… | |
1988 | #define SIZEOF_INT $ac_cv_sizeof_int |
2093 | #define SIZEOF_INT $ac_cv_sizeof_int |
1989 | EOF |
2094 | EOF |
1990 | |
2095 | |
1991 | |
2096 | |
1992 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
2097 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
1993 | echo "configure:1994: checking size of long" >&5 |
2098 | echo "configure:2099: checking size of long" >&5 |
1994 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
2099 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
1995 | echo $ac_n "(cached) $ac_c" 1>&6 |
2100 | echo $ac_n "(cached) $ac_c" 1>&6 |
1996 | else |
2101 | else |
1997 | if test "$cross_compiling" = yes; then |
2102 | if test "$cross_compiling" = yes; then |
1998 | ac_cv_sizeof_long=4 |
2103 | ac_cv_sizeof_long=4 |
1999 | else |
2104 | else |
2000 | cat > conftest.$ac_ext <<EOF |
2105 | cat > conftest.$ac_ext <<EOF |
2001 | #line 2002 "configure" |
2106 | #line 2107 "configure" |
2002 | #include "confdefs.h" |
2107 | #include "confdefs.h" |
2003 | #include <stdio.h> |
2108 | #include <stdio.h> |
2004 | main() |
2109 | main() |
2005 | { |
2110 | { |
2006 | FILE *f=fopen("conftestval", "w"); |
2111 | FILE *f=fopen("conftestval", "w"); |
2007 | if (!f) exit(1); |
2112 | if (!f) exit(1); |
2008 | fprintf(f, "%d\n", sizeof(long)); |
2113 | fprintf(f, "%d\n", sizeof(long)); |
2009 | exit(0); |
2114 | exit(0); |
2010 | } |
2115 | } |
2011 | EOF |
2116 | EOF |
2012 | if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2117 | if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2013 | then |
2118 | then |
2014 | ac_cv_sizeof_long=`cat conftestval` |
2119 | ac_cv_sizeof_long=`cat conftestval` |
2015 | else |
2120 | else |
2016 | echo "configure: failed program was:" >&5 |
2121 | echo "configure: failed program was:" >&5 |
2017 | cat conftest.$ac_ext >&5 |
2122 | cat conftest.$ac_ext >&5 |
… | |
… | |
2028 | EOF |
2133 | EOF |
2029 | |
2134 | |
2030 | |
2135 | |
2031 | |
2136 | |
2032 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2137 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2033 | echo "configure:2034: checking for an 8 bit integer type" >&5 |
2138 | echo "configure:2139: checking for an 8 bit integer type" >&5 |
2034 | if test $ac_cv_sizeof_char -ge 1 ; then |
2139 | if test $ac_cv_sizeof_char -ge 1 ; then |
2035 | INT_8_BIT=char |
2140 | INT_8_BIT=char |
2036 | echo "$ac_t""char" 1>&6 |
2141 | echo "$ac_t""char" 1>&6 |
2037 | elif test $ac_cv_sizeof_short -ge 1 ; then |
2142 | elif test $ac_cv_sizeof_short -ge 1 ; then |
2038 | INT_8_BIT=short |
2143 | INT_8_BIT=short |
… | |
… | |
2046 | else |
2151 | else |
2047 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
2152 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
2048 | fi |
2153 | fi |
2049 | |
2154 | |
2050 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2155 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2051 | echo "configure:2052: checking for a 16 bit integer type" >&5 |
2156 | echo "configure:2157: checking for a 16 bit integer type" >&5 |
2052 | if test $ac_cv_sizeof_char -ge 2 ; then |
2157 | if test $ac_cv_sizeof_char -ge 2 ; then |
2053 | INT_16_BIT=char |
2158 | INT_16_BIT=char |
2054 | echo "$ac_t""char" 1>&6 |
2159 | echo "$ac_t""char" 1>&6 |
2055 | elif test $ac_cv_sizeof_short -ge 2 ; then |
2160 | elif test $ac_cv_sizeof_short -ge 2 ; then |
2056 | INT_16_BIT=short |
2161 | INT_16_BIT=short |
… | |
… | |
2064 | else |
2169 | else |
2065 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
2170 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
2066 | fi |
2171 | fi |
2067 | |
2172 | |
2068 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2173 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2069 | echo "configure:2070: checking for a 32 bit integer type" >&5 |
2174 | echo "configure:2175: checking for a 32 bit integer type" >&5 |
2070 | if test $ac_cv_sizeof_char -ge 4 ; then |
2175 | if test $ac_cv_sizeof_char -ge 4 ; then |
2071 | INT_32_BIT=char |
2176 | INT_32_BIT=char |
2072 | echo "$ac_t""char" 1>&6 |
2177 | echo "$ac_t""char" 1>&6 |
2073 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2178 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2074 | INT_32_BIT=short |
2179 | INT_32_BIT=short |
… | |
… | |
2086 | |
2191 | |
2087 | |
2192 | |
2088 | |
2193 | |
2089 | |
2194 | |
2090 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2195 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2091 | echo "configure:2092: checking for vprintf" >&5 |
2196 | echo "configure:2197: checking for vprintf" >&5 |
2092 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2197 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2093 | echo $ac_n "(cached) $ac_c" 1>&6 |
2198 | echo $ac_n "(cached) $ac_c" 1>&6 |
2094 | else |
2199 | else |
2095 | cat > conftest.$ac_ext <<EOF |
2200 | cat > conftest.$ac_ext <<EOF |
2096 | #line 2097 "configure" |
2201 | #line 2202 "configure" |
2097 | #include "confdefs.h" |
2202 | #include "confdefs.h" |
2098 | /* System header to define __stub macros and hopefully few prototypes, |
2203 | /* System header to define __stub macros and hopefully few prototypes, |
2099 | which can conflict with char vprintf(); below. */ |
2204 | which can conflict with char vprintf(); below. */ |
2100 | #include <assert.h> |
2205 | #include <assert.h> |
2101 | /* Override any gcc2 internal prototype to avoid an error. */ |
2206 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2114 | vprintf(); |
2219 | vprintf(); |
2115 | #endif |
2220 | #endif |
2116 | |
2221 | |
2117 | ; return 0; } |
2222 | ; return 0; } |
2118 | EOF |
2223 | EOF |
2119 | if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2224 | if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2120 | rm -rf conftest* |
2225 | rm -rf conftest* |
2121 | eval "ac_cv_func_vprintf=yes" |
2226 | eval "ac_cv_func_vprintf=yes" |
2122 | else |
2227 | else |
2123 | echo "configure: failed program was:" >&5 |
2228 | echo "configure: failed program was:" >&5 |
2124 | cat conftest.$ac_ext >&5 |
2229 | cat conftest.$ac_ext >&5 |
… | |
… | |
2138 | echo "$ac_t""no" 1>&6 |
2243 | echo "$ac_t""no" 1>&6 |
2139 | fi |
2244 | fi |
2140 | |
2245 | |
2141 | if test "$ac_cv_func_vprintf" != yes; then |
2246 | if test "$ac_cv_func_vprintf" != yes; then |
2142 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2247 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2143 | echo "configure:2144: checking for _doprnt" >&5 |
2248 | echo "configure:2249: checking for _doprnt" >&5 |
2144 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2249 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2145 | echo $ac_n "(cached) $ac_c" 1>&6 |
2250 | echo $ac_n "(cached) $ac_c" 1>&6 |
2146 | else |
2251 | else |
2147 | cat > conftest.$ac_ext <<EOF |
2252 | cat > conftest.$ac_ext <<EOF |
2148 | #line 2149 "configure" |
2253 | #line 2254 "configure" |
2149 | #include "confdefs.h" |
2254 | #include "confdefs.h" |
2150 | /* System header to define __stub macros and hopefully few prototypes, |
2255 | /* System header to define __stub macros and hopefully few prototypes, |
2151 | which can conflict with char _doprnt(); below. */ |
2256 | which can conflict with char _doprnt(); below. */ |
2152 | #include <assert.h> |
2257 | #include <assert.h> |
2153 | /* Override any gcc2 internal prototype to avoid an error. */ |
2258 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2166 | _doprnt(); |
2271 | _doprnt(); |
2167 | #endif |
2272 | #endif |
2168 | |
2273 | |
2169 | ; return 0; } |
2274 | ; return 0; } |
2170 | EOF |
2275 | EOF |
2171 | if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2276 | if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2172 | rm -rf conftest* |
2277 | rm -rf conftest* |
2173 | eval "ac_cv_func__doprnt=yes" |
2278 | eval "ac_cv_func__doprnt=yes" |
2174 | else |
2279 | else |
2175 | echo "configure: failed program was:" >&5 |
2280 | echo "configure: failed program was:" >&5 |
2176 | cat conftest.$ac_ext >&5 |
2281 | cat conftest.$ac_ext >&5 |
… | |
… | |
2193 | fi |
2298 | fi |
2194 | |
2299 | |
2195 | for ac_func in strdup |
2300 | for ac_func in strdup |
2196 | do |
2301 | do |
2197 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2302 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2198 | echo "configure:2199: checking for $ac_func" >&5 |
2303 | echo "configure:2304: checking for $ac_func" >&5 |
2199 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2304 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2200 | echo $ac_n "(cached) $ac_c" 1>&6 |
2305 | echo $ac_n "(cached) $ac_c" 1>&6 |
2201 | else |
2306 | else |
2202 | cat > conftest.$ac_ext <<EOF |
2307 | cat > conftest.$ac_ext <<EOF |
2203 | #line 2204 "configure" |
2308 | #line 2309 "configure" |
2204 | #include "confdefs.h" |
2309 | #include "confdefs.h" |
2205 | /* System header to define __stub macros and hopefully few prototypes, |
2310 | /* System header to define __stub macros and hopefully few prototypes, |
2206 | which can conflict with char $ac_func(); below. */ |
2311 | which can conflict with char $ac_func(); below. */ |
2207 | #include <assert.h> |
2312 | #include <assert.h> |
2208 | /* Override any gcc2 internal prototype to avoid an error. */ |
2313 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2221 | $ac_func(); |
2326 | $ac_func(); |
2222 | #endif |
2327 | #endif |
2223 | |
2328 | |
2224 | ; return 0; } |
2329 | ; return 0; } |
2225 | EOF |
2330 | EOF |
2226 | if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2331 | if { (eval echo configure:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2227 | rm -rf conftest* |
2332 | rm -rf conftest* |
2228 | eval "ac_cv_func_$ac_func=yes" |
2333 | eval "ac_cv_func_$ac_func=yes" |
2229 | else |
2334 | else |
2230 | echo "configure: failed program was:" >&5 |
2335 | echo "configure: failed program was:" >&5 |
2231 | cat conftest.$ac_ext >&5 |
2336 | cat conftest.$ac_ext >&5 |
… | |
… | |
2242 | #define $ac_tr_func 1 |
2347 | #define $ac_tr_func 1 |
2243 | EOF |
2348 | EOF |
2244 | |
2349 | |
2245 | else |
2350 | else |
2246 | echo "$ac_t""no" 1>&6 |
2351 | echo "$ac_t""no" 1>&6 |
|
|
2352 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
2247 | fi |
2353 | fi |
2248 | done |
2354 | done |
2249 | |
2355 | |
2250 | for ac_func in strdup |
2356 | |
|
|
2357 | for ac_func in getopt_long |
2251 | do |
2358 | do |
2252 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2359 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2253 | echo "configure:2254: checking for $ac_func" >&5 |
2360 | echo "configure:2361: checking for $ac_func" >&5 |
2254 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2361 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2255 | echo $ac_n "(cached) $ac_c" 1>&6 |
2362 | echo $ac_n "(cached) $ac_c" 1>&6 |
2256 | else |
2363 | else |
2257 | cat > conftest.$ac_ext <<EOF |
2364 | cat > conftest.$ac_ext <<EOF |
2258 | #line 2259 "configure" |
2365 | #line 2366 "configure" |
2259 | #include "confdefs.h" |
2366 | #include "confdefs.h" |
2260 | /* System header to define __stub macros and hopefully few prototypes, |
2367 | /* System header to define __stub macros and hopefully few prototypes, |
2261 | which can conflict with char $ac_func(); below. */ |
2368 | which can conflict with char $ac_func(); below. */ |
2262 | #include <assert.h> |
2369 | #include <assert.h> |
2263 | /* Override any gcc2 internal prototype to avoid an error. */ |
2370 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2276 | $ac_func(); |
2383 | $ac_func(); |
2277 | #endif |
2384 | #endif |
2278 | |
2385 | |
2279 | ; return 0; } |
2386 | ; return 0; } |
2280 | EOF |
2387 | EOF |
2281 | if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2388 | if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2282 | rm -rf conftest* |
2389 | rm -rf conftest* |
2283 | eval "ac_cv_func_$ac_func=yes" |
2390 | eval "ac_cv_func_$ac_func=yes" |
2284 | else |
2391 | else |
2285 | echo "configure: failed program was:" >&5 |
2392 | echo "configure: failed program was:" >&5 |
2286 | cat conftest.$ac_ext >&5 |
2393 | cat conftest.$ac_ext >&5 |
… | |
… | |
2297 | #define $ac_tr_func 1 |
2404 | #define $ac_tr_func 1 |
2298 | EOF |
2405 | EOF |
2299 | |
2406 | |
2300 | else |
2407 | else |
2301 | echo "$ac_t""no" 1>&6 |
2408 | echo "$ac_t""no" 1>&6 |
2302 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
2409 | LIBOBJS="$LIBOBJS getopt.lo getopt1.lo" |
2303 | fi |
2410 | fi |
2304 | done |
2411 | done |
2305 | |
2412 | |
2306 | |
2413 | |
2307 | |
2414 | |
… | |
… | |
2390 | RTFDOCS_FALSE='#' |
2497 | RTFDOCS_FALSE='#' |
2391 | else |
2498 | else |
2392 | RTFDOCS_TRUE='#' |
2499 | RTFDOCS_TRUE='#' |
2393 | RTFDOCS_FALSE= |
2500 | RTFDOCS_FALSE= |
2394 | fi |
2501 | fi |
|
|
2502 | |
2395 | |
2503 | |
2396 | trap '' 1 2 15 |
2504 | trap '' 1 2 15 |
2397 | cat > confcache <<\EOF |
2505 | cat > confcache <<\EOF |
2398 | # This file is a shell script that caches the results of configure |
2506 | # This file is a shell script that caches the results of configure |
2399 | # tests run on this system so they can be shared between configure |
2507 | # tests run on this system so they can be shared between configure |
… | |
… | |
2492 | done |
2600 | done |
2493 | |
2601 | |
2494 | ac_given_srcdir=$srcdir |
2602 | ac_given_srcdir=$srcdir |
2495 | ac_given_INSTALL="$INSTALL" |
2603 | ac_given_INSTALL="$INSTALL" |
2496 | |
2604 | |
2497 | trap 'rm -fr `echo "Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
2605 | trap 'rm -fr `echo "Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile lib/psiconv/general.h formats/Makefile docs/Makefile extra/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
2498 | EOF |
2606 | EOF |
2499 | cat >> $CONFIG_STATUS <<EOF |
2607 | cat >> $CONFIG_STATUS <<EOF |
2500 | |
2608 | |
2501 | # Protect against being on the right side of a sed subst in config.status. |
2609 | # Protect against being on the right side of a sed subst in config.status. |
2502 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
2610 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
… | |
… | |
2547 | s%@build_cpu@%$build_cpu%g |
2655 | s%@build_cpu@%$build_cpu%g |
2548 | s%@build_vendor@%$build_vendor%g |
2656 | s%@build_vendor@%$build_vendor%g |
2549 | s%@build_os@%$build_os%g |
2657 | s%@build_os@%$build_os%g |
2550 | s%@RANLIB@%$RANLIB%g |
2658 | s%@RANLIB@%$RANLIB%g |
2551 | s%@CC@%$CC%g |
2659 | s%@CC@%$CC%g |
2552 | s%@LD@%$LD%g |
|
|
2553 | s%@NM@%$NM%g |
|
|
2554 | s%@LN_S@%$LN_S%g |
2660 | s%@LN_S@%$LN_S%g |
2555 | s%@LIBTOOL@%$LIBTOOL%g |
2661 | s%@LIBTOOL@%$LIBTOOL%g |
|
|
2662 | s%@cflags_set@%$cflags_set%g |
|
|
2663 | s%@IMAGEMAGICK@%$IMAGEMAGICK%g |
2556 | s%@LIB_MAGICK@%$LIB_MAGICK%g |
2664 | s%@LIB_MAGICK@%$LIB_MAGICK%g |
2557 | s%@CPP@%$CPP%g |
2665 | s%@CPP@%$CPP%g |
2558 | s%@INT_8_BIT@%$INT_8_BIT%g |
2666 | s%@INT_8_BIT@%$INT_8_BIT%g |
2559 | s%@INT_16_BIT@%$INT_16_BIT%g |
2667 | s%@INT_16_BIT@%$INT_16_BIT%g |
2560 | s%@INT_32_BIT@%$INT_32_BIT%g |
2668 | s%@INT_32_BIT@%$INT_32_BIT%g |
… | |
… | |
2606 | fi |
2714 | fi |
2607 | EOF |
2715 | EOF |
2608 | |
2716 | |
2609 | cat >> $CONFIG_STATUS <<EOF |
2717 | cat >> $CONFIG_STATUS <<EOF |
2610 | |
2718 | |
2611 | CONFIG_FILES=\${CONFIG_FILES-"Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile"} |
2719 | CONFIG_FILES=\${CONFIG_FILES-"Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile lib/psiconv/general.h formats/Makefile docs/Makefile extra/Makefile"} |
2612 | EOF |
2720 | EOF |
2613 | cat >> $CONFIG_STATUS <<\EOF |
2721 | cat >> $CONFIG_STATUS <<\EOF |
2614 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
2722 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
2615 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
2723 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
2616 | case "$ac_file" in |
2724 | case "$ac_file" in |