ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/configure
(Generate patch)

Comparing Convert-UUlib/uulib/configure (file contents):
Revision 1.4.2.4 by root, Thu Nov 6 13:08:23 2003 UTC vs.
Revision 1.4.2.5 by root, Sun Apr 18 19:55:46 2004 UTC

9 9
10# Defaults: 10# Defaults:
11ac_help= 11ac_help=
12ac_default_prefix=/usr/local 12ac_default_prefix=/usr/local
13# Any additions from configure.in: 13# Any additions from configure.in:
14ac_help="$ac_help
15 --disable-optimize compile for debugging"
16 14
17# Initialize some variables set by options. 15# Initialize some variables set by options.
18# The variables have the same names as the options, with 16# The variables have the same names as the options, with
19# dashes changed to underlines. 17# dashes changed to underlines.
20build=NONE 18build=NONE
528 526
529# 527#
530# package revision 528# package revision
531# 529#
532VERSION=0.5 530VERSION=0.5
533PATCH=19 531PATCH=20
534
535# Check whether --enable-optimize or --disable-optimize was given.
536if test "${enable_optimize+set}" = set; then
537 enableval="$enable_optimize"
538 optimize=$enableval
539else
540 optimize=yes
541fi
542
543 532
544# Extract the first word of "gcc", so it can be a program name with args. 533# Extract the first word of "gcc", so it can be a program name with args.
545set dummy gcc; ac_word=$2 534set dummy gcc; ac_word=$2
546echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 535echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
547echo "configure:548: checking for $ac_word" >&5 536echo "configure:537: checking for $ac_word" >&5
548if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 537if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
549 echo $ac_n "(cached) $ac_c" 1>&6 538 echo $ac_n "(cached) $ac_c" 1>&6
550else 539else
551 if test -n "$CC"; then 540 if test -n "$CC"; then
552 ac_cv_prog_CC="$CC" # Let the user override the test. 541 ac_cv_prog_CC="$CC" # Let the user override the test.
572 561
573if test -z "$CC"; then 562if test -z "$CC"; then
574 # Extract the first word of "cc", so it can be a program name with args. 563 # Extract the first word of "cc", so it can be a program name with args.
575set dummy cc; ac_word=$2 564set dummy cc; ac_word=$2
576echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 565echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
577echo "configure:578: checking for $ac_word" >&5 566echo "configure:567: checking for $ac_word" >&5
578if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 567if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
579 echo $ac_n "(cached) $ac_c" 1>&6 568 echo $ac_n "(cached) $ac_c" 1>&6
580else 569else
581 if test -n "$CC"; then 570 if test -n "$CC"; then
582 ac_cv_prog_CC="$CC" # Let the user override the test. 571 ac_cv_prog_CC="$CC" # Let the user override the test.
623 case "`uname -s`" in 612 case "`uname -s`" in
624 *win32* | *WIN32*) 613 *win32* | *WIN32*)
625 # Extract the first word of "cl", so it can be a program name with args. 614 # Extract the first word of "cl", so it can be a program name with args.
626set dummy cl; ac_word=$2 615set dummy cl; ac_word=$2
627echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 616echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628echo "configure:629: checking for $ac_word" >&5 617echo "configure:618: checking for $ac_word" >&5
629if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 618if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630 echo $ac_n "(cached) $ac_c" 1>&6 619 echo $ac_n "(cached) $ac_c" 1>&6
631else 620else
632 if test -n "$CC"; then 621 if test -n "$CC"; then
633 ac_cv_prog_CC="$CC" # Let the user override the test. 622 ac_cv_prog_CC="$CC" # Let the user override the test.
655 fi 644 fi
656 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 645 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
657fi 646fi
658 647
659echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 648echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
660echo "configure:661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 649echo "configure:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
661 650
662ac_ext=c 651ac_ext=c
663# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 652# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
664ac_cpp='$CPP $CPPFLAGS' 653ac_cpp='$CPP $CPPFLAGS'
665ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 654ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
666ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 655ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
667cross_compiling=$ac_cv_prog_cc_cross 656cross_compiling=$ac_cv_prog_cc_cross
668 657
669cat > conftest.$ac_ext << EOF 658cat > conftest.$ac_ext << EOF
670 659
671#line 672 "configure" 660#line 661 "configure"
672#include "confdefs.h" 661#include "confdefs.h"
673 662
674main(){return(0);} 663main(){return(0);}
675EOF 664EOF
676if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 665if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
677 ac_cv_prog_cc_works=yes 666 ac_cv_prog_cc_works=yes
678 # If we can't run a trivial program, we are probably using a cross compiler. 667 # If we can't run a trivial program, we are probably using a cross compiler.
679 if (./conftest; exit) 2>/dev/null; then 668 if (./conftest; exit) 2>/dev/null; then
680 ac_cv_prog_cc_cross=no 669 ac_cv_prog_cc_cross=no
681 else 670 else
697echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 686echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
698if test $ac_cv_prog_cc_works = no; then 687if test $ac_cv_prog_cc_works = no; then
699 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 688 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
700fi 689fi
701echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 690echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
702echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 691echo "configure:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
703echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 692echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
704cross_compiling=$ac_cv_prog_cc_cross 693cross_compiling=$ac_cv_prog_cc_cross
705 694
706echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 695echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
707echo "configure:708: checking whether we are using GNU C" >&5 696echo "configure:697: checking whether we are using GNU C" >&5
708if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 697if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6 698 echo $ac_n "(cached) $ac_c" 1>&6
710else 699else
711 cat > conftest.c <<EOF 700 cat > conftest.c <<EOF
712#ifdef __GNUC__ 701#ifdef __GNUC__
713 yes; 702 yes;
714#endif 703#endif
715EOF 704EOF
716if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 705if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
717 ac_cv_prog_gcc=yes 706 ac_cv_prog_gcc=yes
718else 707else
719 ac_cv_prog_gcc=no 708 ac_cv_prog_gcc=no
720fi 709fi
721fi 710fi
730 719
731ac_test_CFLAGS="${CFLAGS+set}" 720ac_test_CFLAGS="${CFLAGS+set}"
732ac_save_CFLAGS="$CFLAGS" 721ac_save_CFLAGS="$CFLAGS"
733CFLAGS= 722CFLAGS=
734echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 723echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
735echo "configure:736: checking whether ${CC-cc} accepts -g" >&5 724echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
736if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 725if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
737 echo $ac_n "(cached) $ac_c" 1>&6 726 echo $ac_n "(cached) $ac_c" 1>&6
738else 727else
739 echo 'void f(){}' > conftest.c 728 echo 'void f(){}' > conftest.c
740if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 729if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
762 CFLAGS= 751 CFLAGS=
763 fi 752 fi
764fi 753fi
765 754
766echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 755echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
767echo "configure:768: checking how to run the C preprocessor" >&5 756echo "configure:757: checking how to run the C preprocessor" >&5
768# On Suns, sometimes $CPP names a directory. 757# On Suns, sometimes $CPP names a directory.
769if test -n "$CPP" && test -d "$CPP"; then 758if test -n "$CPP" && test -d "$CPP"; then
770 CPP= 759 CPP=
771fi 760fi
772if test -z "$CPP"; then 761if test -z "$CPP"; then
777 # substituted into the Makefile and "${CC-cc}" will confuse make. 766 # substituted into the Makefile and "${CC-cc}" will confuse make.
778 CPP="${CC-cc} -E" 767 CPP="${CC-cc} -E"
779 # On the NeXT, cc -E runs the code through the compiler's parser, 768 # On the NeXT, cc -E runs the code through the compiler's parser,
780 # not just through cpp. 769 # not just through cpp.
781 cat > conftest.$ac_ext <<EOF 770 cat > conftest.$ac_ext <<EOF
782#line 783 "configure" 771#line 772 "configure"
783#include "confdefs.h" 772#include "confdefs.h"
784#include <assert.h> 773#include <assert.h>
785Syntax Error 774Syntax Error
786EOF 775EOF
787ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 776ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
788{ (eval echo configure:789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 777{ (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
789ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 778ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
790if test -z "$ac_err"; then 779if test -z "$ac_err"; then
791 : 780 :
792else 781else
793 echo "$ac_err" >&5 782 echo "$ac_err" >&5
794 echo "configure: failed program was:" >&5 783 echo "configure: failed program was:" >&5
795 cat conftest.$ac_ext >&5 784 cat conftest.$ac_ext >&5
796 rm -rf conftest* 785 rm -rf conftest*
797 CPP="${CC-cc} -E -traditional-cpp" 786 CPP="${CC-cc} -E -traditional-cpp"
798 cat > conftest.$ac_ext <<EOF 787 cat > conftest.$ac_ext <<EOF
799#line 800 "configure" 788#line 789 "configure"
800#include "confdefs.h" 789#include "confdefs.h"
801#include <assert.h> 790#include <assert.h>
802Syntax Error 791Syntax Error
803EOF 792EOF
804ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 793ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
805{ (eval echo configure:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 794{ (eval echo configure:795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
806ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 795ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
807if test -z "$ac_err"; then 796if test -z "$ac_err"; then
808 : 797 :
809else 798else
810 echo "$ac_err" >&5 799 echo "$ac_err" >&5
811 echo "configure: failed program was:" >&5 800 echo "configure: failed program was:" >&5
812 cat conftest.$ac_ext >&5 801 cat conftest.$ac_ext >&5
813 rm -rf conftest* 802 rm -rf conftest*
814 CPP="${CC-cc} -nologo -E" 803 CPP="${CC-cc} -nologo -E"
815 cat > conftest.$ac_ext <<EOF 804 cat > conftest.$ac_ext <<EOF
816#line 817 "configure" 805#line 806 "configure"
817#include "confdefs.h" 806#include "confdefs.h"
818#include <assert.h> 807#include <assert.h>
819Syntax Error 808Syntax Error
820EOF 809EOF
821ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 810ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
822{ (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 811{ (eval echo configure:812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
823ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 812ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
824if test -z "$ac_err"; then 813if test -z "$ac_err"; then
825 : 814 :
826else 815else
827 echo "$ac_err" >&5 816 echo "$ac_err" >&5
842 ac_cv_prog_CPP="$CPP" 831 ac_cv_prog_CPP="$CPP"
843fi 832fi
844echo "$ac_t""$CPP" 1>&6 833echo "$ac_t""$CPP" 1>&6
845 834
846 835
847echo $ac_n "checking if HP-UX ansi C compiler flags are needed""... $ac_c" 1>&6
848echo "configure:849: checking if HP-UX ansi C compiler flags are needed" >&5
849
850os=`uname -s | tr 'A-Z' 'a-z'`
851ac_cv_hpux_flags=no
852if test "$os" = hp-ux ; then
853 if test "$ac_cv_prog_gcc" = yes ; then
854 if test "$CFLAGS" != "" ; then
855 # Shouldn't be in there.
856 CFLAGS=`echo "$CFLAGS" | sed 's/-Aa//g'`
857 fi
858 else
859 # If you're not using gcc, then you better have a cc/c89
860 # that is usable. If you have the barebones compiler, it
861 # won't work. The good compiler uses -Aa for the ANSI
862 # compatible stuff.
863 x=`echo $CFLAGS | grep 'Aa' 2>/dev/null`
864 if test "$x" = "" ; then
865 CFLAGS="$CFLAGS -Aa"
866 fi
867 ac_cv_hpux_flags=yes
868 fi
869 # Also add _HPUX_SOURCE to get the extended namespace.
870 x=`echo $CFLAGS | grep '_HPUX_SOURCE' 2>/dev/null`
871 if test "$x" = "" ; then
872 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
873 fi
874fi
875echo "$ac_t""$ac_cv_hpux_flags" 1>&6
876
877 if test "$CFLAGS" = "" ; then
878 CFLAGS="-O"
879 elif test "$ac_cv_prog_gcc" = "yes" ; then
880 case "$CFLAGS" in
881 *"-g -O"*)
882 #echo "using -g as default gcc CFLAGS" 1>&6
883 CFLAGS=`echo $CFLAGS | sed 's/-g\ -O/-O/'`
884 ;;
885 *"-O -g"*)
886 # Leave the -g, but remove all -O options.
887 #echo "using -g as default gcc CFLAGS" 1>&6
888 CFLAGS=`echo $CFLAGS | sed 's/-O\ -g/-O/'`
889 ;;
890 esac
891 fi
892
893
894echo $ac_n "checking if the compiler supports function prototypes""... $ac_c" 1>&6 836echo $ac_n "checking if the compiler supports function prototypes""... $ac_c" 1>&6
895echo "configure:896: checking if the compiler supports function prototypes" >&5 837echo "configure:838: checking if the compiler supports function prototypes" >&5
896cat > conftest.$ac_ext <<EOF 838cat > conftest.$ac_ext <<EOF
897#line 898 "configure" 839#line 840 "configure"
898#include "confdefs.h" 840#include "confdefs.h"
899 841
900int main() { 842int main() {
901extern void exit(int status); 843extern void exit(int status);
902; return 0; } 844; return 0; }
903EOF 845EOF
904if { (eval echo configure:905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 846if { (eval echo configure:847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905 rm -rf conftest* 847 rm -rf conftest*
906 wi_cv_prototypes=yes 848 wi_cv_prototypes=yes
907cat >> confdefs.h <<\EOF 849cat >> confdefs.h <<\EOF
908#define PROTOTYPES 1 850#define PROTOTYPES 1
909EOF 851EOF
916fi 858fi
917rm -f conftest* 859rm -f conftest*
918echo "$ac_t""$wi_cv_prototypes" 1>&6 860echo "$ac_t""$wi_cv_prototypes" 1>&6
919 861
920echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 862echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
921echo "configure:922: checking whether ${MAKE-make} sets \${MAKE}" >&5 863echo "configure:864: checking whether ${MAKE-make} sets \${MAKE}" >&5
922set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 864set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
923if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 865if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
924 echo $ac_n "(cached) $ac_c" 1>&6 866 echo $ac_n "(cached) $ac_c" 1>&6
925else 867else
926 cat > conftestmake <<\EOF 868 cat > conftestmake <<\EOF
945fi 887fi
946 888
947# Extract the first word of "ranlib", so it can be a program name with args. 889# Extract the first word of "ranlib", so it can be a program name with args.
948set dummy ranlib; ac_word=$2 890set dummy ranlib; ac_word=$2
949echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 891echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
950echo "configure:951: checking for $ac_word" >&5 892echo "configure:893: checking for $ac_word" >&5
951if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 893if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6 894 echo $ac_n "(cached) $ac_c" 1>&6
953else 895else
954 if test -n "$RANLIB"; then 896 if test -n "$RANLIB"; then
955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 897 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
973else 915else
974 echo "$ac_t""no" 1>&6 916 echo "$ac_t""no" 1>&6
975fi 917fi
976 918
977 919
978#
979# When optimization is enabled, remove -g from CFLAGS and add -O
980#
981
982if test "$optimize" = "yes" ; then
983echo $ac_n "checking compiler flags""... $ac_c" 1>&6
984echo "configure:985: checking compiler flags" >&5
985CFLAGS=`echo $CFLAGS | sed 's/-g//g'`
986case $CFLAGS in
987 *"-O"*)
988 ;;
989 *)
990 CFLAGS="$CFLAGS -O"
991 ;;
992esac
993echo "$ac_t""done" 1>&6
994fi
995
996if test "$wi_cv_prototypes" = no ; then 920if test "$wi_cv_prototypes" = no ; then
997 echo "configure: warning: Your compiler does not support function prototyping and" 1>&2 921 echo "configure: warning: Your compiler does not support function prototyping and" 1>&2
998 echo "configure: warning: is not able to properly compile this package. What a pity." 1>&2 922 echo "configure: warning: is not able to properly compile this package. What a pity." 1>&2
999 echo "configure: warning: Get gcc, or any compiler that supports function prototypes." 1>&2 923 echo "configure: warning: Get gcc, or any compiler that supports function prototypes." 1>&2
1000 exit 1 924 exit 1
1003# 927#
1004# Checks for header files and library functions 928# Checks for header files and library functions
1005# 929#
1006 930
1007echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 931echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1008echo "configure:1009: checking for ANSI C header files" >&5 932echo "configure:933: checking for ANSI C header files" >&5
1009if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 933if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6 934 echo $ac_n "(cached) $ac_c" 1>&6
1011else 935else
1012 cat > conftest.$ac_ext <<EOF 936 cat > conftest.$ac_ext <<EOF
1013#line 1014 "configure" 937#line 938 "configure"
1014#include "confdefs.h" 938#include "confdefs.h"
1015#include <stdlib.h> 939#include <stdlib.h>
1016#include <stdarg.h> 940#include <stdarg.h>
1017#include <string.h> 941#include <string.h>
1018#include <float.h> 942#include <float.h>
1019EOF 943EOF
1020ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 944ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1021{ (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 945{ (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1022ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 946ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1023if test -z "$ac_err"; then 947if test -z "$ac_err"; then
1024 rm -rf conftest* 948 rm -rf conftest*
1025 ac_cv_header_stdc=yes 949 ac_cv_header_stdc=yes
1026else 950else
1033rm -f conftest* 957rm -f conftest*
1034 958
1035if test $ac_cv_header_stdc = yes; then 959if test $ac_cv_header_stdc = yes; then
1036 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1037cat > conftest.$ac_ext <<EOF 961cat > conftest.$ac_ext <<EOF
1038#line 1039 "configure" 962#line 963 "configure"
1039#include "confdefs.h" 963#include "confdefs.h"
1040#include <string.h> 964#include <string.h>
1041EOF 965EOF
1042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1043 egrep "memchr" >/dev/null 2>&1; then 967 egrep "memchr" >/dev/null 2>&1; then
1051fi 975fi
1052 976
1053if test $ac_cv_header_stdc = yes; then 977if test $ac_cv_header_stdc = yes; then
1054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 978 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1055cat > conftest.$ac_ext <<EOF 979cat > conftest.$ac_ext <<EOF
1056#line 1057 "configure" 980#line 981 "configure"
1057#include "confdefs.h" 981#include "confdefs.h"
1058#include <stdlib.h> 982#include <stdlib.h>
1059EOF 983EOF
1060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1061 egrep "free" >/dev/null 2>&1; then 985 egrep "free" >/dev/null 2>&1; then
1072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 996 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1073if test "$cross_compiling" = yes; then 997if test "$cross_compiling" = yes; then
1074 : 998 :
1075else 999else
1076 cat > conftest.$ac_ext <<EOF 1000 cat > conftest.$ac_ext <<EOF
1077#line 1078 "configure" 1001#line 1002 "configure"
1078#include "confdefs.h" 1002#include "confdefs.h"
1079#include <ctype.h> 1003#include <ctype.h>
1080#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1004#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1081#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1005#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1082#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1006#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1083int main () { int i; for (i = 0; i < 256; i++) 1007int main () { int i; for (i = 0; i < 256; i++)
1084if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1008if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1085exit (0); } 1009exit (0); }
1086 1010
1087EOF 1011EOF
1088if { (eval echo configure:1089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1012if { (eval echo configure:1013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1089then 1013then
1090 : 1014 :
1091else 1015else
1092 echo "configure: failed program was:" >&5 1016 echo "configure: failed program was:" >&5
1093 cat conftest.$ac_ext >&5 1017 cat conftest.$ac_ext >&5
1107EOF 1031EOF
1108 1032
1109fi 1033fi
1110 1034
1111echo $ac_n "checking for size_t""... $ac_c" 1>&6 1035echo $ac_n "checking for size_t""... $ac_c" 1>&6
1112echo "configure:1113: checking for size_t" >&5 1036echo "configure:1037: checking for size_t" >&5
1113if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1037if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6 1038 echo $ac_n "(cached) $ac_c" 1>&6
1115else 1039else
1116 cat > conftest.$ac_ext <<EOF 1040 cat > conftest.$ac_ext <<EOF
1117#line 1118 "configure" 1041#line 1042 "configure"
1118#include "confdefs.h" 1042#include "confdefs.h"
1119#include <sys/types.h> 1043#include <sys/types.h>
1120#if STDC_HEADERS 1044#if STDC_HEADERS
1121#include <stdlib.h> 1045#include <stdlib.h>
1122#include <stddef.h> 1046#include <stddef.h>
1140EOF 1064EOF
1141 1065
1142fi 1066fi
1143 1067
1144echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1068echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1145echo "configure:1146: checking whether time.h and sys/time.h may both be included" >&5 1069echo "configure:1070: checking whether time.h and sys/time.h may both be included" >&5
1146if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1070if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6 1071 echo $ac_n "(cached) $ac_c" 1>&6
1148else 1072else
1149 cat > conftest.$ac_ext <<EOF 1073 cat > conftest.$ac_ext <<EOF
1150#line 1151 "configure" 1074#line 1075 "configure"
1151#include "confdefs.h" 1075#include "confdefs.h"
1152#include <sys/types.h> 1076#include <sys/types.h>
1153#include <sys/time.h> 1077#include <sys/time.h>
1154#include <time.h> 1078#include <time.h>
1155int main() { 1079int main() {
1156struct tm *tp; 1080struct tm *tp;
1157; return 0; } 1081; return 0; }
1158EOF 1082EOF
1159if { (eval echo configure:1160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1083if { (eval echo configure:1084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1160 rm -rf conftest* 1084 rm -rf conftest*
1161 ac_cv_header_time=yes 1085 ac_cv_header_time=yes
1162else 1086else
1163 echo "configure: failed program was:" >&5 1087 echo "configure: failed program was:" >&5
1164 cat conftest.$ac_ext >&5 1088 cat conftest.$ac_ext >&5
1178 1102
1179for ac_hdr in fcntl.h unistd.h memory.h malloc.h errno.h 1103for ac_hdr in fcntl.h unistd.h memory.h malloc.h errno.h
1180do 1104do
1181ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1105ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1182echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1106echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1183echo "configure:1184: checking for $ac_hdr" >&5 1107echo "configure:1108: checking for $ac_hdr" >&5
1184if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1108if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6 1109 echo $ac_n "(cached) $ac_c" 1>&6
1186else 1110else
1187 cat > conftest.$ac_ext <<EOF 1111 cat > conftest.$ac_ext <<EOF
1188#line 1189 "configure" 1112#line 1113 "configure"
1189#include "confdefs.h" 1113#include "confdefs.h"
1190#include <$ac_hdr> 1114#include <$ac_hdr>
1191EOF 1115EOF
1192ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1116ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1193{ (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1117{ (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1194ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1118ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1195if test -z "$ac_err"; then 1119if test -z "$ac_err"; then
1196 rm -rf conftest* 1120 rm -rf conftest*
1197 eval "ac_cv_header_$ac_safe=yes" 1121 eval "ac_cv_header_$ac_safe=yes"
1198else 1122else
1218 1142
1219for ac_hdr in io.h sys/time.h 1143for ac_hdr in io.h sys/time.h
1220do 1144do
1221ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1145ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1222echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1146echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1223echo "configure:1224: checking for $ac_hdr" >&5 1147echo "configure:1148: checking for $ac_hdr" >&5
1224if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1148if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6 1149 echo $ac_n "(cached) $ac_c" 1>&6
1226else 1150else
1227 cat > conftest.$ac_ext <<EOF 1151 cat > conftest.$ac_ext <<EOF
1228#line 1229 "configure" 1152#line 1153 "configure"
1229#include "confdefs.h" 1153#include "confdefs.h"
1230#include <$ac_hdr> 1154#include <$ac_hdr>
1231EOF 1155EOF
1232ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1156ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1233{ (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1157{ (eval echo configure:1158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1234ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1158ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1235if test -z "$ac_err"; then 1159if test -z "$ac_err"; then
1236 rm -rf conftest* 1160 rm -rf conftest*
1237 eval "ac_cv_header_$ac_safe=yes" 1161 eval "ac_cv_header_$ac_safe=yes"
1238else 1162else
1257done 1181done
1258 1182
1259for ac_func in gettimeofday 1183for ac_func in gettimeofday
1260do 1184do
1261echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1185echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1262echo "configure:1263: checking for $ac_func" >&5 1186echo "configure:1187: checking for $ac_func" >&5
1263if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1187if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6 1188 echo $ac_n "(cached) $ac_c" 1>&6
1265else 1189else
1266 cat > conftest.$ac_ext <<EOF 1190 cat > conftest.$ac_ext <<EOF
1267#line 1268 "configure" 1191#line 1192 "configure"
1268#include "confdefs.h" 1192#include "confdefs.h"
1269/* System header to define __stub macros and hopefully few prototypes, 1193/* System header to define __stub macros and hopefully few prototypes,
1270 which can conflict with char $ac_func(); below. */ 1194 which can conflict with char $ac_func(); below. */
1271#include <assert.h> 1195#include <assert.h>
1272/* Override any gcc2 internal prototype to avoid an error. */ 1196/* Override any gcc2 internal prototype to avoid an error. */
1285$ac_func(); 1209$ac_func();
1286#endif 1210#endif
1287 1211
1288; return 0; } 1212; return 0; }
1289EOF 1213EOF
1290if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1214if { (eval echo configure:1215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1291 rm -rf conftest* 1215 rm -rf conftest*
1292 eval "ac_cv_func_$ac_func=yes" 1216 eval "ac_cv_func_$ac_func=yes"
1293else 1217else
1294 echo "configure: failed program was:" >&5 1218 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5 1219 cat conftest.$ac_ext >&5
1311fi 1235fi
1312done 1236done
1313 1237
1314 1238
1315echo $ac_n "checking for tempnam""... $ac_c" 1>&6 1239echo $ac_n "checking for tempnam""... $ac_c" 1>&6
1316echo "configure:1317: checking for tempnam" >&5 1240echo "configure:1241: checking for tempnam" >&5
1317if eval "test \"`echo '$''{'ac_cv_func_tempnam'+set}'`\" = set"; then 1241if eval "test \"`echo '$''{'ac_cv_func_tempnam'+set}'`\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6 1242 echo $ac_n "(cached) $ac_c" 1>&6
1319else 1243else
1320 cat > conftest.$ac_ext <<EOF 1244 cat > conftest.$ac_ext <<EOF
1321#line 1322 "configure" 1245#line 1246 "configure"
1322#include "confdefs.h" 1246#include "confdefs.h"
1323/* System header to define __stub macros and hopefully few prototypes, 1247/* System header to define __stub macros and hopefully few prototypes,
1324 which can conflict with char tempnam(); below. */ 1248 which can conflict with char tempnam(); below. */
1325#include <assert.h> 1249#include <assert.h>
1326/* Override any gcc2 internal prototype to avoid an error. */ 1250/* Override any gcc2 internal prototype to avoid an error. */
1339tempnam(); 1263tempnam();
1340#endif 1264#endif
1341 1265
1342; return 0; } 1266; return 0; }
1343EOF 1267EOF
1344if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1268if { (eval echo configure:1269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1345 rm -rf conftest* 1269 rm -rf conftest*
1346 eval "ac_cv_func_tempnam=yes" 1270 eval "ac_cv_func_tempnam=yes"
1347else 1271else
1348 echo "configure: failed program was:" >&5 1272 echo "configure: failed program was:" >&5
1349 cat conftest.$ac_ext >&5 1273 cat conftest.$ac_ext >&5
1369# strerror might be internally defined. this would cause a 1293# strerror might be internally defined. this would cause a
1370# CHECK_FUNCS(strerror) to fail because it'd be called with 1294# CHECK_FUNCS(strerror) to fail because it'd be called with
1371# zero arguments. So use our own code. 1295# zero arguments. So use our own code.
1372# 1296#
1373echo $ac_n "checking for strerror""... $ac_c" 1>&6 1297echo $ac_n "checking for strerror""... $ac_c" 1>&6
1374echo "configure:1375: checking for strerror" >&5 1298echo "configure:1299: checking for strerror" >&5
1375cat > conftest.$ac_ext <<EOF 1299cat > conftest.$ac_ext <<EOF
1376#line 1377 "configure" 1300#line 1301 "configure"
1377#include "confdefs.h" 1301#include "confdefs.h"
1378 1302
1379char *blubb() { return (char *) strerror (42); } 1303char *blubb() { return (char *) strerror (42); }
1380 1304
1381int main() { 1305int main() {
1382 1306
1383(void) blubb(); 1307(void) blubb();
1384 1308
1385; return 0; } 1309; return 0; }
1386EOF 1310EOF
1387if { (eval echo configure:1388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1311if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1388 rm -rf conftest* 1312 rm -rf conftest*
1389 have_strerror=yes 1313 have_strerror=yes
1390else 1314else
1391 echo "configure: failed program was:" >&5 1315 echo "configure: failed program was:" >&5
1392 cat conftest.$ac_ext >&5 1316 cat conftest.$ac_ext >&5
1399fi 1323fi
1400rm -f conftest* 1324rm -f conftest*
1401echo "$ac_t""$have_strerror" 1>&6 1325echo "$ac_t""$have_strerror" 1>&6
1402 1326
1403echo $ac_n "checking for stdin""... $ac_c" 1>&6 1327echo $ac_n "checking for stdin""... $ac_c" 1>&6
1404echo "configure:1405: checking for stdin" >&5 1328echo "configure:1329: checking for stdin" >&5
1405cat > conftest.$ac_ext <<EOF 1329cat > conftest.$ac_ext <<EOF
1406#line 1407 "configure" 1330#line 1331 "configure"
1407#include "confdefs.h" 1331#include "confdefs.h"
1408 1332
1409#include <stdio.h> 1333#include <stdio.h>
1410char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; } 1334char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; }
1411 1335
1413 1337
1414(void) blubb(); 1338(void) blubb();
1415 1339
1416; return 0; } 1340; return 0; }
1417EOF 1341EOF
1418if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1342if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1419 rm -rf conftest* 1343 rm -rf conftest*
1420 have_stdio=yes 1344 have_stdio=yes
1421else 1345else
1422 echo "configure: failed program was:" >&5 1346 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5 1347 cat conftest.$ac_ext >&5
1434if test "$ac_cv_header_stdc" = "no" ; then 1358if test "$ac_cv_header_stdc" = "no" ; then
1435 for ac_hdr in stdarg.h varargs.h 1359 for ac_hdr in stdarg.h varargs.h
1436do 1360do
1437ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1361ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1438echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1362echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1439echo "configure:1440: checking for $ac_hdr" >&5 1363echo "configure:1364: checking for $ac_hdr" >&5
1440if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1364if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6 1365 echo $ac_n "(cached) $ac_c" 1>&6
1442else 1366else
1443 cat > conftest.$ac_ext <<EOF 1367 cat > conftest.$ac_ext <<EOF
1444#line 1445 "configure" 1368#line 1369 "configure"
1445#include "confdefs.h" 1369#include "confdefs.h"
1446#include <$ac_hdr> 1370#include <$ac_hdr>
1447EOF 1371EOF
1448ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1372ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1449{ (eval echo configure:1450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1373{ (eval echo configure:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1450ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1374ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1451if test -z "$ac_err"; then 1375if test -z "$ac_err"; then
1452 rm -rf conftest* 1376 rm -rf conftest*
1453 eval "ac_cv_header_$ac_safe=yes" 1377 eval "ac_cv_header_$ac_safe=yes"
1454else 1378else
1522 1446
1523# 1447#
1524# set version number 1448# set version number
1525# 1449#
1526echo $ac_n "checking version number""... $ac_c" 1>&6 1450echo $ac_n "checking version number""... $ac_c" 1>&6
1527echo "configure:1528: checking version number" >&5 1451echo "configure:1452: checking version number" >&5
1528version_number="$VERSION"pl"$PATCH" 1452version_number="$VERSION"pl"$PATCH"
1529echo "$ac_t""$version_number" 1>&6 1453echo "$ac_t""$version_number" 1>&6
1530 1454
1531 1455
1532 1456

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines