2717
# Don't try gcc -ansi; that turns off useful extensions and
2718
# breaks some systems' header files.
2719
# AIX -qlanglvl=ansi
2720
# Ultrix and OSF/1 -std1
2721
# HP-UX 10.20 and later -Ae
2722
# HP-UX older versions -Aa -D_HPUX_SOURCE
2723
# SVR4 -Xc -D__EXTENSIONS__
2724
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3409
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3410
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726
3412
CC="$ac_save_CC $ac_arg"
2727
3413
rm -f conftest.$ac_objext
2728
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729
(eval $ac_compile) 2>conftest.er1
3414
if { (ac_try="$ac_compile"
3416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417
*) ac_try_echo=$ac_try;;
3419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420
(eval "$ac_compile") 2>conftest.er1
2731
3422
grep -v '^ *+' conftest.er1 >conftest.err
2732
3423
rm -f conftest.er1
2733
3424
cat conftest.err >&5
2734
3425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735
3426
(exit $ac_status); } &&
2736
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2737
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3428
{ (case "(($ac_try" in
3429
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430
*) ac_try_echo=$ac_try;;
3432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433
(eval "$ac_try") 2>&5
2740
3435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741
3436
(exit $ac_status); }; } &&
2742
3437
{ ac_try='test -s conftest.$ac_objext'
2743
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438
{ (case "(($ac_try" in
3439
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440
*) ac_try_echo=$ac_try;;
3442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443
(eval "$ac_try") 2>&5
2746
3445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747
3446
(exit $ac_status); }; }; then
2748
ac_cv_prog_cc_stdc=$ac_arg
3447
ac_cv_prog_cc_c89=$ac_arg
2751
3449
echo "$as_me: failed program was:" >&5
2752
3450
sed 's/^/| /' conftest.$ac_ext >&5
2755
rm -f conftest.err conftest.$ac_objext
3455
rm -f core conftest.err conftest.$ac_objext
3456
test "x$ac_cv_prog_cc_c89" != "xno" && break
2757
rm -f conftest.$ac_ext conftest.$ac_objext
3458
rm -f conftest.$ac_ext
2762
case "x$ac_cv_prog_cc_stdc" in
2764
echo "$as_me:$LINENO: result: none needed" >&5
2765
echo "${ECHO_T}none needed" >&6 ;;
3463
case "x$ac_cv_prog_cc_c89" in
3465
{ echo "$as_me:$LINENO: result: none needed" >&5
3466
echo "${ECHO_T}none needed" >&6; } ;;
3468
{ echo "$as_me:$LINENO: result: unsupported" >&5
3469
echo "${ECHO_T}unsupported" >&6; } ;;
2767
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2768
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2769
CC="$CC $ac_cv_prog_cc_stdc" ;;
3471
CC="$CC $ac_cv_prog_cc_c89"
3472
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3473
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2772
# Some people use a C++ compiler to compile C. Since we use `exit',
2773
# in C++ we need to declare it. In case someone uses the same compiler
2774
# for both compiling C and C++ we need to have the C++ compiler decide
2775
# the declaration of exit, since it's the most demanding environment.
2776
cat >conftest.$ac_ext <<_ACEOF
3478
ac_cpp='$CPP $CPPFLAGS'
3479
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
depcc="$CC" am_compiler_list=
3485
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3486
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3487
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3488
echo $ECHO_N "(cached) $ECHO_C" >&6
3490
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3491
# We make a subdir and do the tests there. Otherwise we can end up
3492
# making bogus files that we don't know about and never remove. For
3493
# instance it was reported that on HP-UX the gcc test will end up
3494
# making a dummy file named `D' -- because `-MD' means `put the output
3497
# Copy depcomp to subdir because otherwise we won't find it if we're
3498
# using a relative directory.
3499
cp "$am_depcomp" conftest.dir
3501
# We will build objects and dependencies in a subdirectory because
3502
# it helps to detect inapplicable dependency modes. For instance
3503
# both Tru64's cc and ICC support -MD to output dependencies as a
3504
# side effect of compilation, but ICC will put the dependencies in
3505
# the current directory while Tru64 will put them in the object
3509
am_cv_CC_dependencies_compiler_type=none
3510
if test "$am_compiler_list" = ""; then
3511
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3513
for depmode in $am_compiler_list; do
3514
# Setup a source with many dependencies, because some compilers
3515
# like to wrap large dependency lists on column 80 (with \), and
3516
# we should not choose a depcomp mode which is confused by this.
3518
# We need to recreate these files for each test, as the compiler may
3519
# overwrite some of them when testing with obscure command lines.
3520
# This happens at least with the AIX C compiler.
3522
for i in 1 2 3 4 5 6; do
3523
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3524
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3525
# Solaris 8's {/usr,}/bin/sh.
3526
touch sub/conftst$i.h
3528
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3532
# after this tag, mechanisms are not by side-effect, so they'll
3533
# only be used when explicitly requested
3534
if test "x$enable_dependency_tracking" = xyes; then
3542
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3543
# mode. It turns out that the SunPro C++ compiler does not properly
3544
# handle `-M -o', and we need to detect this.
3545
if depmode=$depmode \
3546
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3547
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3548
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3549
>/dev/null 2>conftest.err &&
3550
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3551
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3552
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3553
# icc doesn't choke on unknown options, it will just issue warnings
3554
# or remarks (even with -Werror). So we grep stderr for any message
3555
# that says an option was ignored or not supported.
3556
# When given -MP, icc 7.0 and 7.1 complain thusly:
3557
# icc: Command line warning: ignoring option '-M'; no argument required
3558
# The diagnosis changed in icc 8.0:
3559
# icc: Command line remark: option '-MP' not supported
3560
if (grep 'ignoring option' conftest.err ||
3561
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3562
am_cv_CC_dependencies_compiler_type=$depmode
3571
am_cv_CC_dependencies_compiler_type=none
3575
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3576
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3577
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3582
test "x$enable_dependency_tracking" != xno \
3583
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3585
am__fastdepCC_FALSE='#'
3587
am__fastdepCC_TRUE='#'
3588
am__fastdepCC_FALSE=
3594
ac_cpp='$CPP $CPPFLAGS'
3595
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3599
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3600
# On Suns, sometimes $CPP names a directory.
3601
if test -n "$CPP" && test -d "$CPP"; then
3604
if test -z "$CPP"; then
3605
if test "${ac_cv_prog_CPP+set}" = set; then
3606
echo $ECHO_N "(cached) $ECHO_C" >&6
3608
# Double quotes because CPP needs to be expanded
3609
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3612
for ac_c_preproc_warn_flag in '' yes
3614
# Use a header file that comes with gcc, so configuring glibc
3615
# with a fresh cross-compiler works.
3616
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3617
# <limits.h> exists even on freestanding compilers.
3618
# On the NeXT, cc -E runs the code through the compiler's parser,
3619
# not just through cpp. "Syntax error" is here to catch this case.
3620
cat >conftest.$ac_ext <<_ACEOF
3623
cat confdefs.h >>conftest.$ac_ext
3624
cat >>conftest.$ac_ext <<_ACEOF
3625
/* end confdefs.h. */
3627
# include <limits.h>
3629
# include <assert.h>
2781
rm -f conftest.$ac_objext
2782
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783
(eval $ac_compile) 2>conftest.er1
2785
grep -v '^ *+' conftest.er1 >conftest.err
2787
cat conftest.err >&5
2788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789
(exit $ac_status); } &&
2790
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795
(exit $ac_status); }; } &&
2796
{ ac_try='test -s conftest.$ac_objext'
2797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801
(exit $ac_status); }; }; then
2802
for ac_declaration in \
2804
'extern "C" void std::exit (int) throw (); using std::exit;' \
2805
'extern "C" void std::exit (int); using std::exit;' \
2806
'extern "C" void exit (int) throw ();' \
2807
'extern "C" void exit (int);' \
2810
cat >conftest.$ac_ext <<_ACEOF
2813
cat confdefs.h >>conftest.$ac_ext
2814
cat >>conftest.$ac_ext <<_ACEOF
2815
/* end confdefs.h. */
2826
rm -f conftest.$ac_objext
2827
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828
(eval $ac_compile) 2>conftest.er1
2830
grep -v '^ *+' conftest.er1 >conftest.err
2832
cat conftest.err >&5
2833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834
(exit $ac_status); } &&
2835
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2836
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840
(exit $ac_status); }; } &&
2841
{ ac_try='test -s conftest.$ac_objext'
2842
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846
(exit $ac_status); }; }; then
3633
if { (ac_try="$ac_cpp conftest.$ac_ext"
3635
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636
*) ac_try_echo=$ac_try;;
3638
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641
grep -v '^ *+' conftest.er1 >conftest.err
3643
cat conftest.err >&5
3644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645
(exit $ac_status); } >/dev/null; then
3646
if test -s conftest.err; then
3647
ac_cpp_err=$ac_c_preproc_warn_flag
3648
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3655
if test -z "$ac_cpp_err"; then
2849
3658
echo "$as_me: failed program was:" >&5
2850
3659
sed 's/^/| /' conftest.$ac_ext >&5
3661
# Broken: fails on valid input.
2854
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3665
rm -f conftest.err conftest.$ac_ext
3667
# OK, works on sane cases. Now check whether nonexistent headers
3668
# can be detected and how.
2855
3669
cat >conftest.$ac_ext <<_ACEOF
2856
3670
/* confdefs.h. */
2858
3672
cat confdefs.h >>conftest.$ac_ext
2859
3673
cat >>conftest.$ac_ext <<_ACEOF
2860
3674
/* end confdefs.h. */
3675
#include <ac_nonexistent.h>
2870
rm -f conftest.$ac_objext
2871
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872
(eval $ac_compile) 2>conftest.er1
3677
if { (ac_try="$ac_cpp conftest.$ac_ext"
3679
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680
*) ac_try_echo=$ac_try;;
3682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2874
3685
grep -v '^ *+' conftest.er1 >conftest.err
2875
3686
rm -f conftest.er1
2876
3687
cat conftest.err >&5
2877
3688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878
(exit $ac_status); } &&
2879
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2880
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884
(exit $ac_status); }; } &&
2885
{ ac_try='test -s conftest.$ac_objext'
2886
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890
(exit $ac_status); }; }; then
3689
(exit $ac_status); } >/dev/null; then
3690
if test -s conftest.err; then
3691
ac_cpp_err=$ac_c_preproc_warn_flag
3692
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3699
if test -z "$ac_cpp_err"; then
3700
# Broken: success on invalid input.
3703
echo "$as_me: failed program was:" >&5
3704
sed 's/^/| /' conftest.$ac_ext >&5
3706
# Passes both tests.
3711
rm -f conftest.err conftest.$ac_ext
3714
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3715
rm -f conftest.err conftest.$ac_ext
3716
if $ac_preproc_ok; then
2893
echo "$as_me: failed program was:" >&5
2894
sed 's/^/| /' conftest.$ac_ext >&5
2897
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3728
{ echo "$as_me:$LINENO: result: $CPP" >&5
3729
echo "${ECHO_T}$CPP" >&6; }
3731
for ac_c_preproc_warn_flag in '' yes
3733
# Use a header file that comes with gcc, so configuring glibc
3734
# with a fresh cross-compiler works.
3735
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3736
# <limits.h> exists even on freestanding compilers.
3737
# On the NeXT, cc -E runs the code through the compiler's parser,
3738
# not just through cpp. "Syntax error" is here to catch this case.
3739
cat >conftest.$ac_ext <<_ACEOF
3742
cat confdefs.h >>conftest.$ac_ext
3743
cat >>conftest.$ac_ext <<_ACEOF
3744
/* end confdefs.h. */
3746
# include <limits.h>
3748
# include <assert.h>
3752
if { (ac_try="$ac_cpp conftest.$ac_ext"
3754
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755
*) ac_try_echo=$ac_try;;
3757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3758
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3760
grep -v '^ *+' conftest.er1 >conftest.err
3762
cat conftest.err >&5
3763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764
(exit $ac_status); } >/dev/null; then
3765
if test -s conftest.err; then
3766
ac_cpp_err=$ac_c_preproc_warn_flag
3767
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3774
if test -z "$ac_cpp_err"; then
3777
echo "$as_me: failed program was:" >&5
3778
sed 's/^/| /' conftest.$ac_ext >&5
3780
# Broken: fails on valid input.
3784
rm -f conftest.err conftest.$ac_ext
3786
# OK, works on sane cases. Now check whether nonexistent headers
3787
# can be detected and how.
3788
cat >conftest.$ac_ext <<_ACEOF
3791
cat confdefs.h >>conftest.$ac_ext
3792
cat >>conftest.$ac_ext <<_ACEOF
3793
/* end confdefs.h. */
3794
#include <ac_nonexistent.h>
3796
if { (ac_try="$ac_cpp conftest.$ac_ext"
3798
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799
*) ac_try_echo=$ac_try;;
3801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3804
grep -v '^ *+' conftest.er1 >conftest.err
3806
cat conftest.err >&5
3807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808
(exit $ac_status); } >/dev/null; then
3809
if test -s conftest.err; then
3810
ac_cpp_err=$ac_c_preproc_warn_flag
3811
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3818
if test -z "$ac_cpp_err"; then
3819
# Broken: success on invalid input.
3822
echo "$as_me: failed program was:" >&5
3823
sed 's/^/| /' conftest.$ac_ext >&5
3825
# Passes both tests.
3830
rm -f conftest.err conftest.$ac_ext
2900
if test -n "$ac_declaration"; then
2901
echo '#ifdef __cplusplus' >>confdefs.h
2902
echo $ac_declaration >>confdefs.h
2903
echo '#endif' >>confdefs.h
3833
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3834
rm -f conftest.err conftest.$ac_ext
3835
if $ac_preproc_ok; then
2907
echo "$as_me: failed program was:" >&5
2908
sed 's/^/| /' conftest.$ac_ext >&5
3838
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3839
See \`config.log' for more details." >&5
3840
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3841
See \`config.log' for more details." >&2;}
3842
{ (exit 1); exit 1; }; }
2911
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2913
3846
ac_cpp='$CPP $CPPFLAGS'
2914
3847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915
3848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916
3849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917
DEPDIR="${am__leading_dot}deps"
2919
ac_config_commands="$ac_config_commands depfiles"
2922
am_make=${MAKE-make}
2923
cat > confinc << 'END'
2928
# If we don't find an include directive, just comment out the code.
2929
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2930
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2934
# First try GNU make style include.
2935
echo "include confinc" > confmf
2936
# We grep out `Entering directory' and `Leaving directory'
2937
# messages which can occur if `w' ends up in MAKEFLAGS.
2938
# In particular we don't look at `^make:' because GNU make might
2939
# be invoked under some other name (usually "gmake"), in which
2940
# case it prints its new name instead of `make'.
2941
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2946
# Now try BSD make style include.
2947
if test "$am__include" = "#"; then
2948
echo '.include "confinc"' > confmf
2949
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2950
am__include=.include
3852
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3853
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3854
if test "${ac_cv_path_GREP+set}" = set; then
3855
echo $ECHO_N "(cached) $ECHO_C" >&6
3857
# Extract the first word of "grep ggrep" to use in msg output
3858
if test -z "$GREP"; then
3859
set dummy grep ggrep; ac_prog_name=$2
3860
if test "${ac_cv_path_GREP+set}" = set; then
3861
echo $ECHO_N "(cached) $ECHO_C" >&6
3863
ac_path_GREP_found=false
3864
# Loop through the user's path and test for each of PROGNAME-LIST
3865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3869
test -z "$as_dir" && as_dir=.
3870
for ac_prog in grep ggrep; do
3871
for ac_exec_ext in '' $ac_executable_extensions; do
3872
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3873
{ test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3874
# Check for GNU ac_path_GREP and select it if it is found.
3875
# Check for GNU $ac_path_GREP
3876
case `"$ac_path_GREP" --version 2>&1` in
3878
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3881
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3884
cat "conftest.in" "conftest.in" >"conftest.tmp"
3885
mv "conftest.tmp" "conftest.in"
3886
cp "conftest.in" "conftest.nl"
3887
echo 'GREP' >> "conftest.nl"
3888
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3889
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3890
ac_count=`expr $ac_count + 1`
3891
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3892
# Best one so far, save it but keep looking for a better one
3893
ac_cv_path_GREP="$ac_path_GREP"
3894
ac_path_GREP_max=$ac_count
3896
# 10*(2^10) chars as input seems more than enough
3897
test $ac_count -gt 10 && break
3899
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903
$ac_path_GREP_found && break 3
3913
GREP="$ac_cv_path_GREP"
3914
if test -z "$GREP"; then
3915
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3916
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3917
{ (exit 1); exit 1; }; }
3921
ac_cv_path_GREP=$GREP
3926
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3927
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3928
GREP="$ac_cv_path_GREP"
3931
{ echo "$as_me:$LINENO: checking for egrep" >&5
3932
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3933
if test "${ac_cv_path_EGREP+set}" = set; then
3934
echo $ECHO_N "(cached) $ECHO_C" >&6
3936
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3937
then ac_cv_path_EGREP="$GREP -E"
3939
# Extract the first word of "egrep" to use in msg output
3940
if test -z "$EGREP"; then
3941
set dummy egrep; ac_prog_name=$2
3942
if test "${ac_cv_path_EGREP+set}" = set; then
3943
echo $ECHO_N "(cached) $ECHO_C" >&6
3945
ac_path_EGREP_found=false
3946
# Loop through the user's path and test for each of PROGNAME-LIST
3947
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3951
test -z "$as_dir" && as_dir=.
3952
for ac_prog in egrep; do
3953
for ac_exec_ext in '' $ac_executable_extensions; do
3954
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3955
{ test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3956
# Check for GNU ac_path_EGREP and select it if it is found.
3957
# Check for GNU $ac_path_EGREP
3958
case `"$ac_path_EGREP" --version 2>&1` in
3960
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3963
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3966
cat "conftest.in" "conftest.in" >"conftest.tmp"
3967
mv "conftest.tmp" "conftest.in"
3968
cp "conftest.in" "conftest.nl"
3969
echo 'EGREP' >> "conftest.nl"
3970
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3971
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3972
ac_count=`expr $ac_count + 1`
3973
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3974
# Best one so far, save it but keep looking for a better one
3975
ac_cv_path_EGREP="$ac_path_EGREP"
3976
ac_path_EGREP_max=$ac_count
3978
# 10*(2^10) chars as input seems more than enough
3979
test $ac_count -gt 10 && break
3981
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3985
$ac_path_EGREP_found && break 3
3995
EGREP="$ac_cv_path_EGREP"
3996
if test -z "$EGREP"; then
3997
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3998
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3999
{ (exit 1); exit 1; }; }
4003
ac_cv_path_EGREP=$EGREP
2957
echo "$as_me:$LINENO: result: $_am_result" >&5
2958
echo "${ECHO_T}$_am_result" >&6
2959
rm -f confinc confmf
2961
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2962
if test "${enable_dependency_tracking+set}" = set; then
2963
enableval="$enable_dependency_tracking"
2966
if test "x$enable_dependency_tracking" != xno; then
2967
am_depcomp="$ac_aux_dir/depcomp"
2972
if test "x$enable_dependency_tracking" != xno; then
4009
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4010
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4011
EGREP="$ac_cv_path_EGREP"
4014
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4015
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4016
if test "${ac_cv_header_stdc+set}" = set; then
4017
echo $ECHO_N "(cached) $ECHO_C" >&6
4019
cat >conftest.$ac_ext <<_ACEOF
4022
cat confdefs.h >>conftest.$ac_ext
4023
cat >>conftest.$ac_ext <<_ACEOF
4024
/* end confdefs.h. */
4038
rm -f conftest.$ac_objext
4039
if { (ac_try="$ac_compile"
4041
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042
*) ac_try_echo=$ac_try;;
4044
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045
(eval "$ac_compile") 2>conftest.er1
4047
grep -v '^ *+' conftest.er1 >conftest.err
4049
cat conftest.err >&5
4050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051
(exit $ac_status); } &&
4052
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4053
{ (case "(($ac_try" in
4054
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055
*) ac_try_echo=$ac_try;;
4057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058
(eval "$ac_try") 2>&5
4060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061
(exit $ac_status); }; } &&
4062
{ ac_try='test -s conftest.$ac_objext'
4063
{ (case "(($ac_try" in
4064
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065
*) ac_try_echo=$ac_try;;
4067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068
(eval "$ac_try") 2>&5
4070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071
(exit $ac_status); }; }; then
4072
ac_cv_header_stdc=yes
4074
echo "$as_me: failed program was:" >&5
4075
sed 's/^/| /' conftest.$ac_ext >&5
4077
ac_cv_header_stdc=no
4080
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082
if test $ac_cv_header_stdc = yes; then
4083
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4084
cat >conftest.$ac_ext <<_ACEOF
4087
cat confdefs.h >>conftest.$ac_ext
4088
cat >>conftest.$ac_ext <<_ACEOF
4089
/* end confdefs.h. */
4093
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4094
$EGREP "memchr" >/dev/null 2>&1; then
4097
ac_cv_header_stdc=no
4103
if test $ac_cv_header_stdc = yes; then
4104
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4105
cat >conftest.$ac_ext <<_ACEOF
4108
cat confdefs.h >>conftest.$ac_ext
4109
cat >>conftest.$ac_ext <<_ACEOF
4110
/* end confdefs.h. */
4114
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115
$EGREP "free" >/dev/null 2>&1; then
4118
ac_cv_header_stdc=no
4124
if test $ac_cv_header_stdc = yes; then
4125
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4126
if test "$cross_compiling" = yes; then
4129
cat >conftest.$ac_ext <<_ACEOF
4132
cat confdefs.h >>conftest.$ac_ext
4133
cat >>conftest.$ac_ext <<_ACEOF
4134
/* end confdefs.h. */
4137
#if ((' ' & 0x0FF) == 0x020)
4138
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4139
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4141
# define ISLOWER(c) \
4142
(('a' <= (c) && (c) <= 'i') \
4143
|| ('j' <= (c) && (c) <= 'r') \
4144
|| ('s' <= (c) && (c) <= 'z'))
4145
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4148
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4153
for (i = 0; i < 256; i++)
4154
if (XOR (islower (i), ISLOWER (i))
4155
|| toupper (i) != TOUPPER (i))
4160
rm -f conftest$ac_exeext
4161
if { (ac_try="$ac_link"
4163
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164
*) ac_try_echo=$ac_try;;
4166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167
(eval "$ac_link") 2>&5
4169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4171
{ (case "(($ac_try" in
4172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173
*) ac_try_echo=$ac_try;;
4175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176
(eval "$ac_try") 2>&5
4178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179
(exit $ac_status); }; }; then
4182
echo "$as_me: program exited with status $ac_status" >&5
4183
echo "$as_me: failed program was:" >&5
4184
sed 's/^/| /' conftest.$ac_ext >&5
4187
ac_cv_header_stdc=no
4189
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4195
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4196
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4197
if test $ac_cv_header_stdc = yes; then
4199
cat >>confdefs.h <<\_ACEOF
4200
#define STDC_HEADERS 1
4205
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4215
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4216
inttypes.h stdint.h unistd.h
4218
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4219
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4220
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4221
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4222
echo $ECHO_N "(cached) $ECHO_C" >&6
4224
cat >conftest.$ac_ext <<_ACEOF
4227
cat confdefs.h >>conftest.$ac_ext
4228
cat >>conftest.$ac_ext <<_ACEOF
4229
/* end confdefs.h. */
4230
$ac_includes_default
4232
#include <$ac_header>
4234
rm -f conftest.$ac_objext
4235
if { (ac_try="$ac_compile"
4237
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238
*) ac_try_echo=$ac_try;;
4240
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241
(eval "$ac_compile") 2>conftest.er1
4243
grep -v '^ *+' conftest.er1 >conftest.err
4245
cat conftest.err >&5
4246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247
(exit $ac_status); } &&
4248
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4249
{ (case "(($ac_try" in
4250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251
*) ac_try_echo=$ac_try;;
4253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254
(eval "$ac_try") 2>&5
4256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257
(exit $ac_status); }; } &&
4258
{ ac_try='test -s conftest.$ac_objext'
4259
{ (case "(($ac_try" in
4260
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261
*) ac_try_echo=$ac_try;;
4263
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264
(eval "$ac_try") 2>&5
4266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267
(exit $ac_status); }; }; then
4268
eval "$as_ac_Header=yes"
4270
echo "$as_me: failed program was:" >&5
4271
sed 's/^/| /' conftest.$ac_ext >&5
4273
eval "$as_ac_Header=no"
4276
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278
ac_res=`eval echo '${'$as_ac_Header'}'`
4279
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4280
echo "${ECHO_T}$ac_res" >&6; }
4281
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4282
cat >>confdefs.h <<_ACEOF
4283
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4291
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4292
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4293
if test "${ac_cv_c_bigendian+set}" = set; then
4294
echo $ECHO_N "(cached) $ECHO_C" >&6
4296
# See if sys/param.h defines the BYTE_ORDER macro.
4297
cat >conftest.$ac_ext <<_ACEOF
4300
cat confdefs.h >>conftest.$ac_ext
4301
cat >>conftest.$ac_ext <<_ACEOF
4302
/* end confdefs.h. */
4303
#include <sys/types.h>
4304
#include <sys/param.h>
4309
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4317
rm -f conftest.$ac_objext
4318
if { (ac_try="$ac_compile"
4320
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321
*) ac_try_echo=$ac_try;;
4323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324
(eval "$ac_compile") 2>conftest.er1
4326
grep -v '^ *+' conftest.er1 >conftest.err
4328
cat conftest.err >&5
4329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330
(exit $ac_status); } &&
4331
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4332
{ (case "(($ac_try" in
4333
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334
*) ac_try_echo=$ac_try;;
4336
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337
(eval "$ac_try") 2>&5
4339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340
(exit $ac_status); }; } &&
4341
{ ac_try='test -s conftest.$ac_objext'
4342
{ (case "(($ac_try" in
4343
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344
*) ac_try_echo=$ac_try;;
4346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347
(eval "$ac_try") 2>&5
4349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350
(exit $ac_status); }; }; then
4351
# It does; now see whether it defined to BIG_ENDIAN or not.
4352
cat >conftest.$ac_ext <<_ACEOF
4355
cat confdefs.h >>conftest.$ac_ext
4356
cat >>conftest.$ac_ext <<_ACEOF
4357
/* end confdefs.h. */
4358
#include <sys/types.h>
4359
#include <sys/param.h>
4364
#if BYTE_ORDER != BIG_ENDIAN
4372
rm -f conftest.$ac_objext
4373
if { (ac_try="$ac_compile"
4375
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376
*) ac_try_echo=$ac_try;;
4378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379
(eval "$ac_compile") 2>conftest.er1
4381
grep -v '^ *+' conftest.er1 >conftest.err
4383
cat conftest.err >&5
4384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385
(exit $ac_status); } &&
4386
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4387
{ (case "(($ac_try" in
4388
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389
*) ac_try_echo=$ac_try;;
4391
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392
(eval "$ac_try") 2>&5
4394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395
(exit $ac_status); }; } &&
4396
{ ac_try='test -s conftest.$ac_objext'
4397
{ (case "(($ac_try" in
4398
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399
*) ac_try_echo=$ac_try;;
4401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402
(eval "$ac_try") 2>&5
4404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405
(exit $ac_status); }; }; then
4406
ac_cv_c_bigendian=yes
4408
echo "$as_me: failed program was:" >&5
4409
sed 's/^/| /' conftest.$ac_ext >&5
4411
ac_cv_c_bigendian=no
4414
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416
echo "$as_me: failed program was:" >&5
4417
sed 's/^/| /' conftest.$ac_ext >&5
4419
# It does not; compile a test program.
4420
if test "$cross_compiling" = yes; then
4421
# try to guess the endianness by grepping values into an object file
4422
ac_cv_c_bigendian=unknown
4423
cat >conftest.$ac_ext <<_ACEOF
4426
cat confdefs.h >>conftest.$ac_ext
4427
cat >>conftest.$ac_ext <<_ACEOF
4428
/* end confdefs.h. */
4429
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4430
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4431
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4432
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4433
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4434
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4438
_ascii (); _ebcdic ();
4443
rm -f conftest.$ac_objext
4444
if { (ac_try="$ac_compile"
4446
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447
*) ac_try_echo=$ac_try;;
4449
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450
(eval "$ac_compile") 2>conftest.er1
4452
grep -v '^ *+' conftest.er1 >conftest.err
4454
cat conftest.err >&5
4455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456
(exit $ac_status); } &&
4457
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4458
{ (case "(($ac_try" in
4459
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460
*) ac_try_echo=$ac_try;;
4462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463
(eval "$ac_try") 2>&5
4465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466
(exit $ac_status); }; } &&
4467
{ ac_try='test -s conftest.$ac_objext'
4468
{ (case "(($ac_try" in
4469
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470
*) ac_try_echo=$ac_try;;
4472
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473
(eval "$ac_try") 2>&5
4475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476
(exit $ac_status); }; }; then
4477
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4478
ac_cv_c_bigendian=yes
4480
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4481
if test "$ac_cv_c_bigendian" = unknown; then
4482
ac_cv_c_bigendian=no
4484
# finding both strings is unlikely to happen, but who knows?
4485
ac_cv_c_bigendian=unknown
4489
echo "$as_me: failed program was:" >&5
4490
sed 's/^/| /' conftest.$ac_ext >&5
4495
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497
cat >conftest.$ac_ext <<_ACEOF
4500
cat confdefs.h >>conftest.$ac_ext
4501
cat >>conftest.$ac_ext <<_ACEOF
4502
/* end confdefs.h. */
4503
$ac_includes_default
4508
/* Are we little or big endian? From Harbison&Steele. */
4512
char c[sizeof (long int)];
4515
return u.c[sizeof (long int) - 1] == 1;
4521
rm -f conftest$ac_exeext
4522
if { (ac_try="$ac_link"
4524
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525
*) ac_try_echo=$ac_try;;
4527
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528
(eval "$ac_link") 2>&5
4530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4532
{ (case "(($ac_try" in
4533
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534
*) ac_try_echo=$ac_try;;
4536
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537
(eval "$ac_try") 2>&5
4539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540
(exit $ac_status); }; }; then
4541
ac_cv_c_bigendian=no
4543
echo "$as_me: program exited with status $ac_status" >&5
4544
echo "$as_me: failed program was:" >&5
4545
sed 's/^/| /' conftest.$ac_ext >&5
4548
ac_cv_c_bigendian=yes
4550
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4556
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4559
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4560
case $ac_cv_c_bigendian in
4563
cat >>confdefs.h <<\_ACEOF
4564
#define WORDS_BIGENDIAN 1
4570
{ { echo "$as_me:$LINENO: error: unknown endianness
4571
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4572
echo "$as_me: error: unknown endianness
4573
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4574
{ (exit 1); exit 1; }; } ;;
4580
ac_cpp='$CPP $CPPFLAGS'
4581
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4584
if test -n "$ac_tool_prefix"; then
4585
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4586
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4587
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4588
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4589
if test "${ac_cv_prog_CC+set}" = set; then
4590
echo $ECHO_N "(cached) $ECHO_C" >&6
4592
if test -n "$CC"; then
4593
ac_cv_prog_CC="$CC" # Let the user override the test.
4595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599
test -z "$as_dir" && as_dir=.
4600
for ac_exec_ext in '' $ac_executable_extensions; do
4601
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4602
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4603
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613
if test -n "$CC"; then
4614
{ echo "$as_me:$LINENO: result: $CC" >&5
4615
echo "${ECHO_T}$CC" >&6; }
4617
{ echo "$as_me:$LINENO: result: no" >&5
4618
echo "${ECHO_T}no" >&6; }
4623
if test -z "$ac_cv_prog_CC"; then
4625
# Extract the first word of "gcc", so it can be a program name with args.
4626
set dummy gcc; ac_word=$2
4627
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4628
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4629
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4630
echo $ECHO_N "(cached) $ECHO_C" >&6
4632
if test -n "$ac_ct_CC"; then
4633
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639
test -z "$as_dir" && as_dir=.
4640
for ac_exec_ext in '' $ac_executable_extensions; do
4641
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4642
ac_cv_prog_ac_ct_CC="gcc"
4643
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4653
if test -n "$ac_ct_CC"; then
4654
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4655
echo "${ECHO_T}$ac_ct_CC" >&6; }
4657
{ echo "$as_me:$LINENO: result: no" >&5
4658
echo "${ECHO_T}no" >&6; }
4661
if test "x$ac_ct_CC" = x; then
4664
case $cross_compiling:$ac_tool_warned in
4666
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4667
whose name does not start with the host triplet. If you think this
4668
configuration is useful to you, please write to autoconf@gnu.org." >&5
4669
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4670
whose name does not start with the host triplet. If you think this
4671
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4672
ac_tool_warned=yes ;;
4680
if test -z "$CC"; then
4681
if test -n "$ac_tool_prefix"; then
4682
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4683
set dummy ${ac_tool_prefix}cc; ac_word=$2
4684
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4685
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686
if test "${ac_cv_prog_CC+set}" = set; then
4687
echo $ECHO_N "(cached) $ECHO_C" >&6
4689
if test -n "$CC"; then
4690
ac_cv_prog_CC="$CC" # Let the user override the test.
4692
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696
test -z "$as_dir" && as_dir=.
4697
for ac_exec_ext in '' $ac_executable_extensions; do
4698
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4699
ac_cv_prog_CC="${ac_tool_prefix}cc"
4700
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710
if test -n "$CC"; then
4711
{ echo "$as_me:$LINENO: result: $CC" >&5
4712
echo "${ECHO_T}$CC" >&6; }
4714
{ echo "$as_me:$LINENO: result: no" >&5
4715
echo "${ECHO_T}no" >&6; }
4721
if test -z "$CC"; then
4722
# Extract the first word of "cc", so it can be a program name with args.
4723
set dummy cc; ac_word=$2
4724
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4725
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726
if test "${ac_cv_prog_CC+set}" = set; then
4727
echo $ECHO_N "(cached) $ECHO_C" >&6
4729
if test -n "$CC"; then
4730
ac_cv_prog_CC="$CC" # Let the user override the test.
4733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737
test -z "$as_dir" && as_dir=.
4738
for ac_exec_ext in '' $ac_executable_extensions; do
4739
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741
ac_prog_rejected=yes
4745
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752
if test $ac_prog_rejected = yes; then
4753
# We found a bogon in the path, so make sure we never use it.
4754
set dummy $ac_cv_prog_CC
4756
if test $# != 0; then
4757
# We chose a different compiler from the bogus one.
4758
# However, it has the same basename, so the bogon will be chosen
4759
# first if we set CC to just the basename; use the full file name.
4761
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4767
if test -n "$CC"; then
4768
{ echo "$as_me:$LINENO: result: $CC" >&5
4769
echo "${ECHO_T}$CC" >&6; }
4771
{ echo "$as_me:$LINENO: result: no" >&5
4772
echo "${ECHO_T}no" >&6; }
4777
if test -z "$CC"; then
4778
if test -n "$ac_tool_prefix"; then
4779
for ac_prog in cl.exe
4781
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4782
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4783
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4784
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785
if test "${ac_cv_prog_CC+set}" = set; then
4786
echo $ECHO_N "(cached) $ECHO_C" >&6
4788
if test -n "$CC"; then
4789
ac_cv_prog_CC="$CC" # Let the user override the test.
4791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795
test -z "$as_dir" && as_dir=.
4796
for ac_exec_ext in '' $ac_executable_extensions; do
4797
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4798
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4799
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809
if test -n "$CC"; then
4810
{ echo "$as_me:$LINENO: result: $CC" >&5
4811
echo "${ECHO_T}$CC" >&6; }
4813
{ echo "$as_me:$LINENO: result: no" >&5
4814
echo "${ECHO_T}no" >&6; }
4818
test -n "$CC" && break
4821
if test -z "$CC"; then
4823
for ac_prog in cl.exe
4825
# Extract the first word of "$ac_prog", so it can be a program name with args.
4826
set dummy $ac_prog; ac_word=$2
4827
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4828
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4830
echo $ECHO_N "(cached) $ECHO_C" >&6
4832
if test -n "$ac_ct_CC"; then
4833
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4835
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839
test -z "$as_dir" && as_dir=.
4840
for ac_exec_ext in '' $ac_executable_extensions; do
4841
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4842
ac_cv_prog_ac_ct_CC="$ac_prog"
4843
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4853
if test -n "$ac_ct_CC"; then
4854
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4855
echo "${ECHO_T}$ac_ct_CC" >&6; }
4857
{ echo "$as_me:$LINENO: result: no" >&5
4858
echo "${ECHO_T}no" >&6; }
4862
test -n "$ac_ct_CC" && break
4865
if test "x$ac_ct_CC" = x; then
4868
case $cross_compiling:$ac_tool_warned in
4870
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4871
whose name does not start with the host triplet. If you think this
4872
configuration is useful to you, please write to autoconf@gnu.org." >&5
4873
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4874
whose name does not start with the host triplet. If you think this
4875
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4876
ac_tool_warned=yes ;;
4885
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4886
See \`config.log' for more details." >&5
4887
echo "$as_me: error: no acceptable C compiler found in \$PATH
4888
See \`config.log' for more details." >&2;}
4889
{ (exit 1); exit 1; }; }
4891
# Provide some information about the compiler.
4892
echo "$as_me:$LINENO: checking for C compiler version" >&5
4893
ac_compiler=`set X $ac_compile; echo $2`
4894
{ (ac_try="$ac_compiler --version >&5"
4896
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897
*) ac_try_echo=$ac_try;;
4899
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900
(eval "$ac_compiler --version >&5") 2>&5
4902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903
(exit $ac_status); }
4904
{ (ac_try="$ac_compiler -v >&5"
4906
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907
*) ac_try_echo=$ac_try;;
4909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910
(eval "$ac_compiler -v >&5") 2>&5
4912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913
(exit $ac_status); }
4914
{ (ac_try="$ac_compiler -V >&5"
4916
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917
*) ac_try_echo=$ac_try;;
4919
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920
(eval "$ac_compiler -V >&5") 2>&5
4922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923
(exit $ac_status); }
4925
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4926
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4927
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4928
echo $ECHO_N "(cached) $ECHO_C" >&6
4930
cat >conftest.$ac_ext <<_ACEOF
4933
cat confdefs.h >>conftest.$ac_ext
4934
cat >>conftest.$ac_ext <<_ACEOF
4935
/* end confdefs.h. */
4948
rm -f conftest.$ac_objext
4949
if { (ac_try="$ac_compile"
4951
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952
*) ac_try_echo=$ac_try;;
4954
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955
(eval "$ac_compile") 2>conftest.er1
4957
grep -v '^ *+' conftest.er1 >conftest.err
4959
cat conftest.err >&5
4960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961
(exit $ac_status); } &&
4962
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4963
{ (case "(($ac_try" in
4964
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965
*) ac_try_echo=$ac_try;;
4967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968
(eval "$ac_try") 2>&5
4970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971
(exit $ac_status); }; } &&
4972
{ ac_try='test -s conftest.$ac_objext'
4973
{ (case "(($ac_try" in
4974
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975
*) ac_try_echo=$ac_try;;
4977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978
(eval "$ac_try") 2>&5
4980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981
(exit $ac_status); }; }; then
4984
echo "$as_me: failed program was:" >&5
4985
sed 's/^/| /' conftest.$ac_ext >&5
4990
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4994
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4995
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4996
GCC=`test $ac_compiler_gnu = yes && echo yes`
4997
ac_test_CFLAGS=${CFLAGS+set}
4998
ac_save_CFLAGS=$CFLAGS
4999
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5000
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5001
if test "${ac_cv_prog_cc_g+set}" = set; then
5002
echo $ECHO_N "(cached) $ECHO_C" >&6
5004
ac_save_c_werror_flag=$ac_c_werror_flag
5005
ac_c_werror_flag=yes
5008
cat >conftest.$ac_ext <<_ACEOF
5011
cat confdefs.h >>conftest.$ac_ext
5012
cat >>conftest.$ac_ext <<_ACEOF
5013
/* end confdefs.h. */
5023
rm -f conftest.$ac_objext
5024
if { (ac_try="$ac_compile"
5026
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027
*) ac_try_echo=$ac_try;;
5029
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030
(eval "$ac_compile") 2>conftest.er1
5032
grep -v '^ *+' conftest.er1 >conftest.err
5034
cat conftest.err >&5
5035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036
(exit $ac_status); } &&
5037
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5038
{ (case "(($ac_try" in
5039
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040
*) ac_try_echo=$ac_try;;
5042
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5043
(eval "$ac_try") 2>&5
5045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046
(exit $ac_status); }; } &&
5047
{ ac_try='test -s conftest.$ac_objext'
5048
{ (case "(($ac_try" in
5049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050
*) ac_try_echo=$ac_try;;
5052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053
(eval "$ac_try") 2>&5
5055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056
(exit $ac_status); }; }; then
5059
echo "$as_me: failed program was:" >&5
5060
sed 's/^/| /' conftest.$ac_ext >&5
5063
cat >conftest.$ac_ext <<_ACEOF
5066
cat confdefs.h >>conftest.$ac_ext
5067
cat >>conftest.$ac_ext <<_ACEOF
5068
/* end confdefs.h. */
5078
rm -f conftest.$ac_objext
5079
if { (ac_try="$ac_compile"
5081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082
*) ac_try_echo=$ac_try;;
5084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085
(eval "$ac_compile") 2>conftest.er1
5087
grep -v '^ *+' conftest.er1 >conftest.err
5089
cat conftest.err >&5
5090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091
(exit $ac_status); } &&
5092
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5093
{ (case "(($ac_try" in
5094
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095
*) ac_try_echo=$ac_try;;
5097
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098
(eval "$ac_try") 2>&5
5100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101
(exit $ac_status); }; } &&
5102
{ ac_try='test -s conftest.$ac_objext'
5103
{ (case "(($ac_try" in
5104
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105
*) ac_try_echo=$ac_try;;
5107
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5108
(eval "$ac_try") 2>&5
5110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111
(exit $ac_status); }; }; then
5114
echo "$as_me: failed program was:" >&5
5115
sed 's/^/| /' conftest.$ac_ext >&5
5117
ac_c_werror_flag=$ac_save_c_werror_flag
5119
cat >conftest.$ac_ext <<_ACEOF
5122
cat confdefs.h >>conftest.$ac_ext
5123
cat >>conftest.$ac_ext <<_ACEOF
5124
/* end confdefs.h. */
5134
rm -f conftest.$ac_objext
5135
if { (ac_try="$ac_compile"
5137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138
*) ac_try_echo=$ac_try;;
5140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141
(eval "$ac_compile") 2>conftest.er1
5143
grep -v '^ *+' conftest.er1 >conftest.err
5145
cat conftest.err >&5
5146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147
(exit $ac_status); } &&
5148
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5149
{ (case "(($ac_try" in
5150
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151
*) ac_try_echo=$ac_try;;
5153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5154
(eval "$ac_try") 2>&5
5156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157
(exit $ac_status); }; } &&
5158
{ ac_try='test -s conftest.$ac_objext'
5159
{ (case "(($ac_try" in
5160
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161
*) ac_try_echo=$ac_try;;
5163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164
(eval "$ac_try") 2>&5
5166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167
(exit $ac_status); }; }; then
5170
echo "$as_me: failed program was:" >&5
5171
sed 's/^/| /' conftest.$ac_ext >&5
5176
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183
ac_c_werror_flag=$ac_save_c_werror_flag
5185
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5186
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5187
if test "$ac_test_CFLAGS" = set; then
5188
CFLAGS=$ac_save_CFLAGS
5189
elif test $ac_cv_prog_cc_g = yes; then
5190
if test "$GCC" = yes; then
5196
if test "$GCC" = yes; then
5202
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5203
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5204
if test "${ac_cv_prog_cc_c89+set}" = set; then
5205
echo $ECHO_N "(cached) $ECHO_C" >&6
5207
ac_cv_prog_cc_c89=no
5209
cat >conftest.$ac_ext <<_ACEOF
5212
cat confdefs.h >>conftest.$ac_ext
5213
cat >>conftest.$ac_ext <<_ACEOF
5214
/* end confdefs.h. */
5217
#include <sys/types.h>
5218
#include <sys/stat.h>
5219
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5220
struct buf { int x; };
5221
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5222
static char *e (p, i)
5228
static char *f (char * (*g) (char **, int), char **p, ...)
5233
s = g (p, va_arg (v,int));
5238
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5239
function prototypes and stuff, but not '\xHH' hex character constants.
5240
These don't provoke an error unfortunately, instead are silently treated
5241
as 'x'. The following induces an error, until -std is added to get
5242
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5243
array size at least. It's necessary to write '\x00'==0 to get something
5244
that's true only with -std. */
5245
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5247
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5248
inside strings and character constants. */
5250
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5252
int test (int i, double x);
5253
struct s1 {int (*f) (int a);};
5254
struct s2 {int (*f) (double a);};
5255
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5261
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5266
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5267
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5269
CC="$ac_save_CC $ac_arg"
5270
rm -f conftest.$ac_objext
5271
if { (ac_try="$ac_compile"
5273
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274
*) ac_try_echo=$ac_try;;
5276
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277
(eval "$ac_compile") 2>conftest.er1
5279
grep -v '^ *+' conftest.er1 >conftest.err
5281
cat conftest.err >&5
5282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283
(exit $ac_status); } &&
5284
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5285
{ (case "(($ac_try" in
5286
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287
*) ac_try_echo=$ac_try;;
5289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290
(eval "$ac_try") 2>&5
5292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293
(exit $ac_status); }; } &&
5294
{ ac_try='test -s conftest.$ac_objext'
5295
{ (case "(($ac_try" in
5296
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297
*) ac_try_echo=$ac_try;;
5299
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300
(eval "$ac_try") 2>&5
5302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303
(exit $ac_status); }; }; then
5304
ac_cv_prog_cc_c89=$ac_arg
5306
echo "$as_me: failed program was:" >&5
5307
sed 's/^/| /' conftest.$ac_ext >&5
5312
rm -f core conftest.err conftest.$ac_objext
5313
test "x$ac_cv_prog_cc_c89" != "xno" && break
5315
rm -f conftest.$ac_ext
5320
case "x$ac_cv_prog_cc_c89" in
5322
{ echo "$as_me:$LINENO: result: none needed" >&5
5323
echo "${ECHO_T}none needed" >&6; } ;;
5325
{ echo "$as_me:$LINENO: result: unsupported" >&5
5326
echo "${ECHO_T}unsupported" >&6; } ;;
5328
CC="$CC $ac_cv_prog_cc_c89"
5329
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5330
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5335
ac_cpp='$CPP $CPPFLAGS'
5336
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983
5340
depcc="$CC" am_compiler_list=
2985
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2986
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5342
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5343
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2987
5344
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2988
5345
echo $ECHO_N "(cached) $ECHO_C" >&6
3890
6274
need_locks="$enable_libtool_lock"
3894
ac_cpp='$CPP $CPPFLAGS'
3895
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3899
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3900
# On Suns, sometimes $CPP names a directory.
3901
if test -n "$CPP" && test -d "$CPP"; then
3904
if test -z "$CPP"; then
3905
if test "${ac_cv_prog_CPP+set}" = set; then
3906
echo $ECHO_N "(cached) $ECHO_C" >&6
3908
# Double quotes because CPP needs to be expanded
3909
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3912
for ac_c_preproc_warn_flag in '' yes
3914
# Use a header file that comes with gcc, so configuring glibc
3915
# with a fresh cross-compiler works.
3916
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3917
# <limits.h> exists even on freestanding compilers.
3918
# On the NeXT, cc -E runs the code through the compiler's parser,
3919
# not just through cpp. "Syntax error" is here to catch this case.
3920
cat >conftest.$ac_ext <<_ACEOF
3923
cat confdefs.h >>conftest.$ac_ext
3924
cat >>conftest.$ac_ext <<_ACEOF
3925
/* end confdefs.h. */
3927
# include <limits.h>
3929
# include <assert.h>
3933
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3934
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3936
grep -v '^ *+' conftest.er1 >conftest.err
3938
cat conftest.err >&5
3939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940
(exit $ac_status); } >/dev/null; then
3941
if test -s conftest.err; then
3942
ac_cpp_err=$ac_c_preproc_warn_flag
3943
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3950
if test -z "$ac_cpp_err"; then
3953
echo "$as_me: failed program was:" >&5
3954
sed 's/^/| /' conftest.$ac_ext >&5
3956
# Broken: fails on valid input.
3959
rm -f conftest.err conftest.$ac_ext
3961
# OK, works on sane cases. Now check whether non-existent headers
3962
# can be detected and how.
3963
cat >conftest.$ac_ext <<_ACEOF
3966
cat confdefs.h >>conftest.$ac_ext
3967
cat >>conftest.$ac_ext <<_ACEOF
3968
/* end confdefs.h. */
3969
#include <ac_nonexistent.h>
3971
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3972
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3974
grep -v '^ *+' conftest.er1 >conftest.err
3976
cat conftest.err >&5
3977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978
(exit $ac_status); } >/dev/null; then
3979
if test -s conftest.err; then
3980
ac_cpp_err=$ac_c_preproc_warn_flag
3981
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3988
if test -z "$ac_cpp_err"; then
3989
# Broken: success on invalid input.
3992
echo "$as_me: failed program was:" >&5
3993
sed 's/^/| /' conftest.$ac_ext >&5
3995
# Passes both tests.
3999
rm -f conftest.err conftest.$ac_ext
4002
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4003
rm -f conftest.err conftest.$ac_ext
4004
if $ac_preproc_ok; then
4016
echo "$as_me:$LINENO: result: $CPP" >&5
4017
echo "${ECHO_T}$CPP" >&6
4019
for ac_c_preproc_warn_flag in '' yes
4021
# Use a header file that comes with gcc, so configuring glibc
4022
# with a fresh cross-compiler works.
4023
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4024
# <limits.h> exists even on freestanding compilers.
4025
# On the NeXT, cc -E runs the code through the compiler's parser,
4026
# not just through cpp. "Syntax error" is here to catch this case.
4027
cat >conftest.$ac_ext <<_ACEOF
4030
cat confdefs.h >>conftest.$ac_ext
4031
cat >>conftest.$ac_ext <<_ACEOF
4032
/* end confdefs.h. */
4034
# include <limits.h>
4036
# include <assert.h>
4040
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4041
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4043
grep -v '^ *+' conftest.er1 >conftest.err
4045
cat conftest.err >&5
4046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047
(exit $ac_status); } >/dev/null; then
4048
if test -s conftest.err; then
4049
ac_cpp_err=$ac_c_preproc_warn_flag
4050
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4057
if test -z "$ac_cpp_err"; then
4060
echo "$as_me: failed program was:" >&5
4061
sed 's/^/| /' conftest.$ac_ext >&5
4063
# Broken: fails on valid input.
4066
rm -f conftest.err conftest.$ac_ext
4068
# OK, works on sane cases. Now check whether non-existent headers
4069
# can be detected and how.
4070
cat >conftest.$ac_ext <<_ACEOF
4073
cat confdefs.h >>conftest.$ac_ext
4074
cat >>conftest.$ac_ext <<_ACEOF
4075
/* end confdefs.h. */
4076
#include <ac_nonexistent.h>
4078
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4079
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4081
grep -v '^ *+' conftest.er1 >conftest.err
4083
cat conftest.err >&5
4084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085
(exit $ac_status); } >/dev/null; then
4086
if test -s conftest.err; then
4087
ac_cpp_err=$ac_c_preproc_warn_flag
4088
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4095
if test -z "$ac_cpp_err"; then
4096
# Broken: success on invalid input.
4099
echo "$as_me: failed program was:" >&5
4100
sed 's/^/| /' conftest.$ac_ext >&5
4102
# Passes both tests.
4106
rm -f conftest.err conftest.$ac_ext
4109
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4110
rm -f conftest.err conftest.$ac_ext
4111
if $ac_preproc_ok; then
4114
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4115
See \`config.log' for more details." >&5
4116
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4117
See \`config.log' for more details." >&2;}
4118
{ (exit 1); exit 1; }; }
4122
ac_cpp='$CPP $CPPFLAGS'
4123
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4129
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4130
if test "${ac_cv_header_stdc+set}" = set; then
4131
echo $ECHO_N "(cached) $ECHO_C" >&6
4133
cat >conftest.$ac_ext <<_ACEOF
4136
cat confdefs.h >>conftest.$ac_ext
4137
cat >>conftest.$ac_ext <<_ACEOF
4138
/* end confdefs.h. */
4152
rm -f conftest.$ac_objext
4153
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4154
(eval $ac_compile) 2>conftest.er1
4156
grep -v '^ *+' conftest.er1 >conftest.err
4158
cat conftest.err >&5
4159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160
(exit $ac_status); } &&
4161
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166
(exit $ac_status); }; } &&
4167
{ ac_try='test -s conftest.$ac_objext'
4168
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172
(exit $ac_status); }; }; then
4173
ac_cv_header_stdc=yes
4175
echo "$as_me: failed program was:" >&5
4176
sed 's/^/| /' conftest.$ac_ext >&5
4178
ac_cv_header_stdc=no
4180
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4182
if test $ac_cv_header_stdc = yes; then
4183
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4184
cat >conftest.$ac_ext <<_ACEOF
4187
cat confdefs.h >>conftest.$ac_ext
4188
cat >>conftest.$ac_ext <<_ACEOF
4189
/* end confdefs.h. */
4193
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4194
$EGREP "memchr" >/dev/null 2>&1; then
4197
ac_cv_header_stdc=no
4203
if test $ac_cv_header_stdc = yes; then
4204
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4205
cat >conftest.$ac_ext <<_ACEOF
4208
cat confdefs.h >>conftest.$ac_ext
4209
cat >>conftest.$ac_ext <<_ACEOF
4210
/* end confdefs.h. */
4214
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4215
$EGREP "free" >/dev/null 2>&1; then
4218
ac_cv_header_stdc=no
4224
if test $ac_cv_header_stdc = yes; then
4225
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4226
if test "$cross_compiling" = yes; then
4229
cat >conftest.$ac_ext <<_ACEOF
4232
cat confdefs.h >>conftest.$ac_ext
4233
cat >>conftest.$ac_ext <<_ACEOF
4234
/* end confdefs.h. */
4236
#if ((' ' & 0x0FF) == 0x020)
4237
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4238
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4240
# define ISLOWER(c) \
4241
(('a' <= (c) && (c) <= 'i') \
4242
|| ('j' <= (c) && (c) <= 'r') \
4243
|| ('s' <= (c) && (c) <= 'z'))
4244
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4247
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4252
for (i = 0; i < 256; i++)
4253
if (XOR (islower (i), ISLOWER (i))
4254
|| toupper (i) != TOUPPER (i))
4259
rm -f conftest$ac_exeext
4260
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4261
(eval $ac_link) 2>&5
4263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269
(exit $ac_status); }; }; then
4272
echo "$as_me: program exited with status $ac_status" >&5
4273
echo "$as_me: failed program was:" >&5
4274
sed 's/^/| /' conftest.$ac_ext >&5
4277
ac_cv_header_stdc=no
4279
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4283
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4284
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4285
if test $ac_cv_header_stdc = yes; then
4287
cat >>confdefs.h <<\_ACEOF
4288
#define STDC_HEADERS 1
4293
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4303
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4304
inttypes.h stdint.h unistd.h
4306
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4307
echo "$as_me:$LINENO: checking for $ac_header" >&5
4308
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4309
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4310
echo $ECHO_N "(cached) $ECHO_C" >&6
4312
cat >conftest.$ac_ext <<_ACEOF
4315
cat confdefs.h >>conftest.$ac_ext
4316
cat >>conftest.$ac_ext <<_ACEOF
4317
/* end confdefs.h. */
4318
$ac_includes_default
4320
#include <$ac_header>
4322
rm -f conftest.$ac_objext
4323
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324
(eval $ac_compile) 2>conftest.er1
4326
grep -v '^ *+' conftest.er1 >conftest.err
4328
cat conftest.err >&5
4329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330
(exit $ac_status); } &&
4331
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336
(exit $ac_status); }; } &&
4337
{ ac_try='test -s conftest.$ac_objext'
4338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342
(exit $ac_status); }; }; then
4343
eval "$as_ac_Header=yes"
4345
echo "$as_me: failed program was:" >&5
4346
sed 's/^/| /' conftest.$ac_ext >&5
4348
eval "$as_ac_Header=no"
4350
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4352
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4353
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4354
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4355
cat >>confdefs.h <<_ACEOF
4356
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4365
6278
for ac_header in dlfcn.h
4367
6280
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4368
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4369
echo "$as_me:$LINENO: checking for $ac_header" >&5
4370
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4371
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6281
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6282
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6283
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6284
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4372
6285
echo $ECHO_N "(cached) $ECHO_C" >&6
4374
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4375
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6287
ac_res=`eval echo '${'$as_ac_Header'}'`
6288
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6289
echo "${ECHO_T}$ac_res" >&6; }
4377
6291
# Is the header compilable?
4378
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4379
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6292
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6293
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4380
6294
cat >conftest.$ac_ext <<_ACEOF
4381
6295
/* confdefs.h. */
19660
21873
# Have a temporary directory for convenience. Make it in the build tree
19661
# simply because there is no reason to put it here, and in addition,
21874
# simply because there is no reason against having it here, and in addition,
19662
21875
# creating and moving files from /tmp can sometimes cause problems.
19663
# Create a temporary directory, and hook for its removal unless debugging.
21876
# Hook for its removal unless debugging.
21877
# Note that there is a small window in which the directory will not be cleaned:
21878
# after its creation but before its name has been assigned to `$tmp'.
19666
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21882
trap 'exit_status=$?
21883
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19667
21885
trap '{ (exit 1); exit 1; }' 1 2 13 15
19670
21887
# Create a (secure) tmp directory for tmp files.
19673
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21890
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19674
21891
test -n "$tmp" && test -d "$tmp"
19677
tmp=./confstat$$-$RANDOM
19678
(umask 077 && mkdir $tmp)
21894
tmp=./conf$$-$RANDOM
21895
(umask 077 && mkdir "$tmp")
19681
21898
echo "$me: cannot create a temporary directory in ." >&2
19682
21899
{ (exit 1); exit 1; }
19687
cat >>$CONFIG_STATUS <<_ACEOF
19690
# CONFIG_FILES section.
21903
# Set up the sed scripts for CONFIG_FILES section.
19693
21906
# No need to generate the scripts if there are no CONFIG_FILES.
19694
21907
# This happens for instance when ./config.status config.h
19695
if test -n "\$CONFIG_FILES"; then
19696
# Protect against being on the right side of a sed subst in config.status.
19697
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19698
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19699
s,@SHELL@,$SHELL,;t t
19700
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19701
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19702
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19703
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19704
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19705
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19706
s,@exec_prefix@,$exec_prefix,;t t
19707
s,@prefix@,$prefix,;t t
19708
s,@program_transform_name@,$program_transform_name,;t t
19709
s,@bindir@,$bindir,;t t
19710
s,@sbindir@,$sbindir,;t t
19711
s,@libexecdir@,$libexecdir,;t t
19712
s,@datadir@,$datadir,;t t
19713
s,@sysconfdir@,$sysconfdir,;t t
19714
s,@sharedstatedir@,$sharedstatedir,;t t
19715
s,@localstatedir@,$localstatedir,;t t
19716
s,@libdir@,$libdir,;t t
19717
s,@includedir@,$includedir,;t t
19718
s,@oldincludedir@,$oldincludedir,;t t
19719
s,@infodir@,$infodir,;t t
19720
s,@mandir@,$mandir,;t t
19721
s,@build_alias@,$build_alias,;t t
19722
s,@host_alias@,$host_alias,;t t
19723
s,@target_alias@,$target_alias,;t t
19724
s,@DEFS@,$DEFS,;t t
19725
s,@ECHO_C@,$ECHO_C,;t t
19726
s,@ECHO_N@,$ECHO_N,;t t
19727
s,@ECHO_T@,$ECHO_T,;t t
19728
s,@LIBS@,$LIBS,;t t
19729
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19730
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19731
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19732
s,@CYGPATH_W@,$CYGPATH_W,;t t
19733
s,@PACKAGE@,$PACKAGE,;t t
19734
s,@VERSION@,$VERSION,;t t
19735
s,@ACLOCAL@,$ACLOCAL,;t t
19736
s,@AUTOCONF@,$AUTOCONF,;t t
19737
s,@AUTOMAKE@,$AUTOMAKE,;t t
19738
s,@AUTOHEADER@,$AUTOHEADER,;t t
19739
s,@MAKEINFO@,$MAKEINFO,;t t
19740
s,@install_sh@,$install_sh,;t t
19741
s,@STRIP@,$STRIP,;t t
19742
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19743
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19744
s,@mkdir_p@,$mkdir_p,;t t
19746
s,@SET_MAKE@,$SET_MAKE,;t t
19747
s,@am__leading_dot@,$am__leading_dot,;t t
19748
s,@AMTAR@,$AMTAR,;t t
19749
s,@am__tar@,$am__tar,;t t
19750
s,@am__untar@,$am__untar,;t t
19751
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19752
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19753
s,@MAINT@,$MAINT,;t t
19755
s,@CFLAGS@,$CFLAGS,;t t
19756
s,@LDFLAGS@,$LDFLAGS,;t t
19757
s,@CPPFLAGS@,$CPPFLAGS,;t t
19758
s,@ac_ct_CC@,$ac_ct_CC,;t t
19759
s,@EXEEXT@,$EXEEXT,;t t
19760
s,@OBJEXT@,$OBJEXT,;t t
19761
s,@DEPDIR@,$DEPDIR,;t t
19762
s,@am__include@,$am__include,;t t
19763
s,@am__quote@,$am__quote,;t t
19764
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19765
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19766
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19767
s,@CCDEPMODE@,$CCDEPMODE,;t t
19768
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19769
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19770
s,@build@,$build,;t t
19771
s,@build_cpu@,$build_cpu,;t t
19772
s,@build_vendor@,$build_vendor,;t t
19773
s,@build_os@,$build_os,;t t
19774
s,@host@,$host,;t t
19775
s,@host_cpu@,$host_cpu,;t t
19776
s,@host_vendor@,$host_vendor,;t t
19777
s,@host_os@,$host_os,;t t
19778
s,@EGREP@,$EGREP,;t t
19779
s,@LN_S@,$LN_S,;t t
19780
s,@ECHO@,$ECHO,;t t
19782
s,@ac_ct_AR@,$ac_ct_AR,;t t
19783
s,@RANLIB@,$RANLIB,;t t
19784
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19787
s,@CXXFLAGS@,$CXXFLAGS,;t t
19788
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19789
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19790
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19791
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19792
s,@CXXCPP@,$CXXCPP,;t t
19794
s,@FFLAGS@,$FFLAGS,;t t
19795
s,@ac_ct_F77@,$ac_ct_F77,;t t
19796
s,@LIBTOOL@,$LIBTOOL,;t t
19797
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19798
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
19799
s,@DEP_CFLAGS@,$DEP_CFLAGS,;t t
19800
s,@DEP_LIBS@,$DEP_LIBS,;t t
19801
s,@LIBOBJS@,$LIBOBJS,;t t
19802
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19807
cat >>$CONFIG_STATUS <<\_ACEOF
19808
# Split the substitutions into bite-sized pieces for seds with
19809
# small command number limits, like on Digital OSF/1 and HP-UX.
19810
ac_max_sed_lines=48
19811
ac_sed_frag=1 # Number of current file.
19812
ac_beg=1 # First line for current file.
19813
ac_end=$ac_max_sed_lines # Line after last line for current file.
19816
while $ac_more_lines; do
19817
if test $ac_beg -gt 1; then
19818
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19820
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19822
if test ! -s $tmp/subs.frag; then
19823
ac_more_lines=false
19825
# The purpose of the label and of the branching condition is to
19826
# speed up the sed processing (if there are no `@' at all, there
19827
# is no need to browse any of the substitutions).
19828
# These are the two extra sed commands mentioned above.
19830
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19831
if test -z "$ac_sed_cmds"; then
19832
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19834
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19836
ac_sed_frag=`expr $ac_sed_frag + 1`
19838
ac_end=`expr $ac_end + $ac_max_sed_lines`
19841
if test -z "$ac_sed_cmds"; then
21908
if test -n "$CONFIG_FILES"; then
21915
for ac_last_try in false false false false false :; do
21916
cat >conf$$subs.sed <<_ACEOF
21917
SHELL!$SHELL$ac_delim
21918
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21919
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21920
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21921
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21922
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21923
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21924
exec_prefix!$exec_prefix$ac_delim
21925
prefix!$prefix$ac_delim
21926
program_transform_name!$program_transform_name$ac_delim
21927
bindir!$bindir$ac_delim
21928
sbindir!$sbindir$ac_delim
21929
libexecdir!$libexecdir$ac_delim
21930
datarootdir!$datarootdir$ac_delim
21931
datadir!$datadir$ac_delim
21932
sysconfdir!$sysconfdir$ac_delim
21933
sharedstatedir!$sharedstatedir$ac_delim
21934
localstatedir!$localstatedir$ac_delim
21935
includedir!$includedir$ac_delim
21936
oldincludedir!$oldincludedir$ac_delim
21937
docdir!$docdir$ac_delim
21938
infodir!$infodir$ac_delim
21939
htmldir!$htmldir$ac_delim
21940
dvidir!$dvidir$ac_delim
21941
pdfdir!$pdfdir$ac_delim
21942
psdir!$psdir$ac_delim
21943
libdir!$libdir$ac_delim
21944
localedir!$localedir$ac_delim
21945
mandir!$mandir$ac_delim
21946
DEFS!$DEFS$ac_delim
21947
ECHO_C!$ECHO_C$ac_delim
21948
ECHO_N!$ECHO_N$ac_delim
21949
ECHO_T!$ECHO_T$ac_delim
21950
LIBS!$LIBS$ac_delim
21951
build_alias!$build_alias$ac_delim
21952
host_alias!$host_alias$ac_delim
21953
target_alias!$target_alias$ac_delim
21954
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21955
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21956
INSTALL_DATA!$INSTALL_DATA$ac_delim
21957
CYGPATH_W!$CYGPATH_W$ac_delim
21958
PACKAGE!$PACKAGE$ac_delim
21959
VERSION!$VERSION$ac_delim
21960
ACLOCAL!$ACLOCAL$ac_delim
21961
AUTOCONF!$AUTOCONF$ac_delim
21962
AUTOMAKE!$AUTOMAKE$ac_delim
21963
AUTOHEADER!$AUTOHEADER$ac_delim
21964
MAKEINFO!$MAKEINFO$ac_delim
21965
install_sh!$install_sh$ac_delim
21966
STRIP!$STRIP$ac_delim
21967
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21968
mkdir_p!$mkdir_p$ac_delim
21970
SET_MAKE!$SET_MAKE$ac_delim
21971
am__leading_dot!$am__leading_dot$ac_delim
21972
AMTAR!$AMTAR$ac_delim
21973
am__tar!$am__tar$ac_delim
21974
am__untar!$am__untar$ac_delim
21975
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
21976
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
21977
MAINT!$MAINT$ac_delim
21979
CFLAGS!$CFLAGS$ac_delim
21980
LDFLAGS!$LDFLAGS$ac_delim
21981
CPPFLAGS!$CPPFLAGS$ac_delim
21982
ac_ct_CC!$ac_ct_CC$ac_delim
21983
EXEEXT!$EXEEXT$ac_delim
21984
OBJEXT!$OBJEXT$ac_delim
21985
DEPDIR!$DEPDIR$ac_delim
21986
am__include!$am__include$ac_delim
21987
am__quote!$am__quote$ac_delim
21988
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21989
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21990
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21991
CCDEPMODE!$CCDEPMODE$ac_delim
21992
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21993
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21995
GREP!$GREP$ac_delim
21996
EGREP!$EGREP$ac_delim
21997
build!$build$ac_delim
21998
build_cpu!$build_cpu$ac_delim
21999
build_vendor!$build_vendor$ac_delim
22000
build_os!$build_os$ac_delim
22001
host!$host$ac_delim
22002
host_cpu!$host_cpu$ac_delim
22003
host_vendor!$host_vendor$ac_delim
22004
host_os!$host_os$ac_delim
22005
LN_S!$LN_S$ac_delim
22006
ECHO!$ECHO$ac_delim
22008
RANLIB!$RANLIB$ac_delim
22010
CXXFLAGS!$CXXFLAGS$ac_delim
22011
ac_ct_CXX!$ac_ct_CXX$ac_delim
22012
CXXDEPMODE!$CXXDEPMODE$ac_delim
22013
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22016
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22018
elif $ac_last_try; then
22019
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22020
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22021
{ (exit 1); exit 1; }; }
22023
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22027
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22028
if test -n "$ac_eof"; then
22029
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22030
ac_eof=`expr $ac_eof + 1`
22033
cat >>$CONFIG_STATUS <<_ACEOF
22034
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22035
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22038
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22039
s/^/s,@/; s/!/@,|#_!!_#|/
22042
s/'"$ac_delim"'$/,g/; t
22044
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22045
' >>$CONFIG_STATUS <conf$$subs.sed
22046
rm -f conf$$subs.sed
22047
cat >>$CONFIG_STATUS <<_ACEOF
22053
for ac_last_try in false false false false false :; do
22054
cat >conf$$subs.sed <<_ACEOF
22055
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22056
CXXCPP!$CXXCPP$ac_delim
22058
FFLAGS!$FFLAGS$ac_delim
22059
ac_ct_F77!$ac_ct_F77$ac_delim
22060
LIBTOOL!$LIBTOOL$ac_delim
22061
PKG_CONFIG!$PKG_CONFIG$ac_delim
22062
DEP_CFLAGS!$DEP_CFLAGS$ac_delim
22063
DEP_LIBS!$DEP_LIBS$ac_delim
22064
LIBOBJS!$LIBOBJS$ac_delim
22065
LTLIBOBJS!$LTLIBOBJS$ac_delim
22068
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
22070
elif $ac_last_try; then
22071
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22072
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22073
{ (exit 1); exit 1; }; }
22075
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22079
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22080
if test -n "$ac_eof"; then
22081
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22082
ac_eof=`expr $ac_eof + 1`
22085
cat >>$CONFIG_STATUS <<_ACEOF
22086
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22087
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22090
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22091
s/^/s,@/; s/!/@,|#_!!_#|/
22094
s/'"$ac_delim"'$/,g/; t
22096
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22097
' >>$CONFIG_STATUS <conf$$subs.sed
22098
rm -f conf$$subs.sed
22099
cat >>$CONFIG_STATUS <<_ACEOF
22106
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22107
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22108
# trailing colons and then remove the whole line if VPATH becomes empty
22109
# (actually we leave an empty line to preserve line numbers).
22110
if test "x$srcdir" = x.; then
22111
ac_vpsub='/^[ ]*VPATH[ ]*=/{
22112
s/:*\$(srcdir):*/:/
22113
s/:*\${srcdir}:*/:/
22115
s/^\([^=]*=[ ]*\):*/\1/
22121
cat >>$CONFIG_STATUS <<\_ACEOF
19844
22122
fi # test -n "$CONFIG_FILES"
19847
cat >>$CONFIG_STATUS <<\_ACEOF
19848
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19849
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19851
- | *:- | *:-:* ) # input from stdin
19853
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19854
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19855
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19856
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19857
* ) ac_file_in=$ac_file.in ;;
19860
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19861
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22125
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22128
:[FHLC]) ac_mode=$ac_tag; continue;;
22130
case $ac_mode$ac_tag in
22132
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22133
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22134
{ (exit 1); exit 1; }; };;
22135
:[FH]-) ac_tag=-:-;;
22136
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22153
-) ac_f="$tmp/stdin";;
22154
*) # Look for the file first in the build tree, then in the source tree
22155
# (if the path is not absolute). The absolute path cannot be DOS-style,
22156
# because $ac_f cannot contain `:'.
22160
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22162
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22163
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22164
{ (exit 1); exit 1; }; };;
22166
ac_file_inputs="$ac_file_inputs $ac_f"
22169
# Let's still pretend it is `configure' which instantiates (i.e., don't
22170
# use $as_me), people would be surprised to read:
22171
# /* config.h. Generated by config.status. */
22172
configure_input="Generated from "`IFS=:
22173
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22174
if test x"$ac_file" != x-; then
22175
configure_input="$ac_file. $configure_input"
22176
{ echo "$as_me:$LINENO: creating $ac_file" >&5
22177
echo "$as_me: creating $ac_file" >&6;}
22181
*:-:* | *:-) cat >"$tmp/stdin";;
22186
ac_dir=`$as_dirname -- "$ac_file" ||
19862
22187
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19863
22188
X"$ac_file" : 'X\(//\)[^/]' \| \
19864
22189
X"$ac_file" : 'X\(//\)$' \| \
19865
X"$ac_file" : 'X\(/\)' \| \
19866
. : '\(.\)' 2>/dev/null ||
22190
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19867
22191
echo X"$ac_file" |
19868
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19869
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19870
/^X\(\/\/\)$/{ s//\1/; q; }
19871
/^X\(\/\).*/{ s//\1/; q; }
19873
{ if $as_mkdir_p; then
22192
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22196
/^X\(\/\/\)[^/].*/{
22211
-*) as_dir=./$as_dir;;
22213
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19878
while test ! -d "$as_dir"; do
19879
as_dirs="$as_dir $as_dirs"
19880
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22217
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22218
*) as_qdir=$as_dir;;
22220
as_dirs="'$as_qdir' $as_dirs"
22221
as_dir=`$as_dirname -- "$as_dir" ||
19881
22222
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19882
22223
X"$as_dir" : 'X\(//\)[^/]' \| \
19883
22224
X"$as_dir" : 'X\(//\)$' \| \
19884
X"$as_dir" : 'X\(/\)' \| \
19885
. : '\(.\)' 2>/dev/null ||
22225
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19886
22226
echo X"$as_dir" |
19887
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19888
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19889
/^X\(\/\/\)$/{ s//\1/; q; }
19890
/^X\(\/\).*/{ s//\1/; q; }
22227
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22231
/^X\(\/\/\)[^/].*/{
22244
test -d "$as_dir" && break
19893
test ! -n "$as_dirs" || mkdir $as_dirs
19894
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19895
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22246
test -z "$as_dirs" || eval "mkdir $as_dirs"
22247
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22248
echo "$as_me: error: cannot create directory $as_dir" >&2;}
19896
22249
{ (exit 1); exit 1; }; }; }
19898
22250
ac_builddir=.
19900
if test "$ac_dir" != .; then
22253
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19901
22255
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19902
# A "../" for each directory in $ac_dir_suffix.
19903
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19905
ac_dir_suffix= ac_top_builddir=
22256
# A ".." for each directory in $ac_dir_suffix.
22257
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22258
case $ac_top_builddir_sub in
22259
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22260
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22263
ac_abs_top_builddir=$ac_pwd
22264
ac_abs_builddir=$ac_pwd$ac_dir_suffix
22265
# for backward compatibility:
22266
ac_top_builddir=$ac_top_build_prefix
19908
22268
case $srcdir in
19909
.) # No --srcdir option. We are building in place.
22269
.) # We are building in place.
19911
if test -z "$ac_top_builddir"; then
19914
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19916
[\\/]* | ?:[\\/]* ) # Absolute path.
22271
ac_top_srcdir=$ac_top_builddir_sub
22272
ac_abs_top_srcdir=$ac_pwd ;;
22273
[\\/]* | ?:[\\/]* ) # Absolute name.
19917
22274
ac_srcdir=$srcdir$ac_dir_suffix;
19918
ac_top_srcdir=$srcdir ;;
19919
*) # Relative path.
19920
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19921
ac_top_srcdir=$ac_top_builddir$srcdir ;;
19924
# Do not use `cd foo && pwd` to compute absolute paths, because
19925
# the directories may not exist.
19927
.) ac_abs_builddir="$ac_dir";;
19930
.) ac_abs_builddir=`pwd`;;
19931
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19932
*) ac_abs_builddir=`pwd`/"$ac_dir";;
19935
case $ac_abs_builddir in
19936
.) ac_abs_top_builddir=${ac_top_builddir}.;;
19938
case ${ac_top_builddir}. in
19939
.) ac_abs_top_builddir=$ac_abs_builddir;;
19940
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19941
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19944
case $ac_abs_builddir in
19945
.) ac_abs_srcdir=$ac_srcdir;;
19948
.) ac_abs_srcdir=$ac_abs_builddir;;
19949
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19950
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19953
case $ac_abs_builddir in
19954
.) ac_abs_top_srcdir=$ac_top_srcdir;;
19956
case $ac_top_srcdir in
19957
.) ac_abs_top_srcdir=$ac_abs_builddir;;
19958
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19959
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22275
ac_top_srcdir=$srcdir
22276
ac_abs_top_srcdir=$srcdir ;;
22277
*) # Relative name.
22278
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22279
ac_top_srcdir=$ac_top_build_prefix$srcdir
22280
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22282
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19964
22291
case $INSTALL in
19965
22292
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19966
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22293
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19969
# Let's still pretend it is `configure' which instantiates (i.e., don't
19970
# use $as_me), people would be surprised to read:
19971
# /* config.h. Generated by config.status. */
19972
if test x"$ac_file" = x-; then
19975
configure_input="$ac_file. "
19977
configure_input=$configure_input"Generated from `echo $ac_file_in |
19978
sed 's,.*/,,'` by configure."
19980
# First look for the input files in the build tree, otherwise in the
19982
ac_file_inputs=`IFS=:
19983
for f in $ac_file_in; do
19985
-) echo $tmp/stdin ;;
19987
# Absolute (can't be DOS-style, as IFS=:)
19988
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19989
echo "$as_me: error: cannot find input file: $f" >&2;}
19990
{ (exit 1); exit 1; }; }
19993
if test -f "$f"; then
19996
elif test -f "$srcdir/$f"; then
20001
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20002
echo "$as_me: error: cannot find input file: $f" >&2;}
20003
{ (exit 1); exit 1; }; }
20006
done` || { (exit 1); exit 1; }
20008
if test x"$ac_file" != x-; then
20009
{ echo "$as_me:$LINENO: creating $ac_file" >&5
20010
echo "$as_me: creating $ac_file" >&6;}
22297
cat >>$CONFIG_STATUS <<\_ACEOF
22298
# If the template does not know about datarootdir, expand it.
22299
# FIXME: This hack should be removed a few years after 2.60.
22300
ac_datarootdir_hack=; ac_datarootdir_seen=
22302
case `sed -n '/datarootdir/ {
22311
' $ac_file_inputs` in
22312
*datarootdir*) ac_datarootdir_seen=yes;;
22313
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22314
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22315
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22317
cat >>$CONFIG_STATUS <<_ACEOF
22318
ac_datarootdir_hack='
22319
s&@datadir@&$datadir&g
22320
s&@docdir@&$docdir&g
22321
s&@infodir@&$infodir&g
22322
s&@localedir@&$localedir&g
22323
s&@mandir@&$mandir&g
22324
s&\\\${datarootdir}&$datarootdir&g' ;;
22328
# Neutralize VPATH when `$srcdir' = `.'.
22329
# Shell code in configure.ac might set extrasub.
22330
# FIXME: do we really want to maintain this feature?
20014
22331
cat >>$CONFIG_STATUS <<_ACEOF
20015
22332
sed "$ac_vpsub
20018
22335
cat >>$CONFIG_STATUS <<\_ACEOF
20020
22337
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20021
s,@configure_input@,$configure_input,;t t
20022
s,@srcdir@,$ac_srcdir,;t t
20023
s,@abs_srcdir@,$ac_abs_srcdir,;t t
20024
s,@top_srcdir@,$ac_top_srcdir,;t t
20025
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20026
s,@builddir@,$ac_builddir,;t t
20027
s,@abs_builddir@,$ac_abs_builddir,;t t
20028
s,@top_builddir@,$ac_top_builddir,;t t
20029
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20030
s,@INSTALL@,$ac_INSTALL,;t t
20031
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20033
if test x"$ac_file" != x-; then
20034
mv $tmp/out $ac_file
22338
s&@configure_input@&$configure_input&;t t
22339
s&@top_builddir@&$ac_top_builddir_sub&;t t
22340
s&@srcdir@&$ac_srcdir&;t t
22341
s&@abs_srcdir@&$ac_abs_srcdir&;t t
22342
s&@top_srcdir@&$ac_top_srcdir&;t t
22343
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22344
s&@builddir@&$ac_builddir&;t t
22345
s&@abs_builddir@&$ac_abs_builddir&;t t
22346
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22347
s&@INSTALL@&$ac_INSTALL&;t t
22348
$ac_datarootdir_hack
22349
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22351
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22352
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22353
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22354
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22355
which seems to be undefined. Please make sure it is defined." >&5
22356
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22357
which seems to be undefined. Please make sure it is defined." >&2;}
22361
-) cat "$tmp/out"; rm -f "$tmp/out";;
22362
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20042
cat >>$CONFIG_STATUS <<\_ACEOF
20045
# CONFIG_HEADER section.
20048
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20049
# NAME is the cpp macro being defined and VALUE is the value it is being given.
20051
# ac_d sets the value in "#define NAME VALUE" lines.
20052
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20053
ac_dB='[ ].*$,\1#\2'
22371
# Transform confdefs.h into a sed script `conftest.defines', that
22372
# substitutes the proper values into config.h.in to produce config.h.
22373
rm -f conftest.defines conftest.tail
22374
# First, append a space to every undef/define line, to ease matching.
22375
echo 's/$/ /' >conftest.defines
22376
# Then, protect against being on the right side of a sed subst, or in
22377
# an unquoted here document, in config.status. If some macros were
22378
# called several times there might be several #defines for the same
22379
# symbol, which is useless. But do not sort them, since the last
22380
# AC_DEFINE must be honored.
22381
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22382
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22383
# NAME is the cpp macro being defined, VALUE is the value it is being given.
22384
# PARAMS is the parameter list in the macro definition--in most cases, it's
22385
# just an empty string.
22386
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22387
ac_dB='\\)[ (].*,\\1define\\2'
20056
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20057
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20058
ac_uB='$,\1#\2define\3'
20062
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20063
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20065
- | *:- | *:-:* ) # input from stdin
20067
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20068
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20069
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20070
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20071
* ) ac_file_in=$ac_file.in ;;
20074
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20075
echo "$as_me: creating $ac_file" >&6;}
20077
# First look for the input files in the build tree, otherwise in the
20079
ac_file_inputs=`IFS=:
20080
for f in $ac_file_in; do
20082
-) echo $tmp/stdin ;;
20084
# Absolute (can't be DOS-style, as IFS=:)
20085
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20086
echo "$as_me: error: cannot find input file: $f" >&2;}
20087
{ (exit 1); exit 1; }; }
20088
# Do quote $f, to prevent DOS paths from being IFS'd.
20091
if test -f "$f"; then
20094
elif test -f "$srcdir/$f"; then
20099
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20100
echo "$as_me: error: cannot find input file: $f" >&2;}
20101
{ (exit 1); exit 1; }; }
20104
done` || { (exit 1); exit 1; }
20105
# Remove the trailing spaces.
20106
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20110
# Transform confdefs.h into two sed scripts, `conftest.defines' and
20111
# `conftest.undefs', that substitutes the proper values into
20112
# config.h.in to produce config.h. The first handles `#define'
20113
# templates, and the second `#undef' templates.
20114
# And first: Protect against being on the right side of a sed subst in
20115
# config.status. Protect against being in an unquoted here document
20116
# in config.status.
20117
rm -f conftest.defines conftest.undefs
20118
# Using a here document instead of a string reduces the quoting nightmare.
20119
# Putting comments in sed scripts is not portable.
20121
# `end' is used to avoid that the second main sed command (meant for
20122
# 0-ary CPP macros) applies to n-ary macro definitions.
20123
# See the Autoconf documentation for `clear'.
20124
cat >confdef2sed.sed <<\_ACEOF
20129
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20131
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20134
# If some macros were called several times there might be several times
20135
# the same #defines, which is useless. Nevertheless, we may not want to
20136
# sort them, since we want the *last* AC-DEFINE to be honored.
20137
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20138
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20139
rm -f confdef2sed.sed
20141
# This sed command replaces #undef with comments. This is necessary, for
22395
s/^[ ]*#[ ]*define[ ][ ]*//
22400
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22401
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22402
' >>conftest.defines
22404
# Remove the space that was appended to ease matching.
22405
# Then replace #undef with comments. This is necessary, for
20142
22406
# example, in the case of _POSIX_SOURCE, which is predefined and required
20143
22407
# on some systems where configure will not decide to define it.
20144
cat >>conftest.undefs <<\_ACEOF
20145
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22408
# (The regexp can be short, since the line contains either #define or #undef.)
22410
s,^[ #]*u.*,/* & */,' >>conftest.defines
22412
# Break up conftest.defines:
22413
ac_max_sed_lines=50
22415
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22416
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22417
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22419
ac_in='$ac_file_inputs'
22420
ac_out='"$tmp/out1"'
22421
ac_nxt='"$tmp/out2"'
22425
# Write a here document:
22426
cat >>$CONFIG_STATUS <<_ACEOF
22427
# First, check the format of the line:
22428
cat >"\$tmp/defines.sed" <<\\CEOF
22429
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22430
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20148
# Break up conftest.defines because some shells have a limit on the size
20149
# of here documents, and old seds have small limits too (100 cmds).
20150
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20151
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20152
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20153
echo ' :' >>$CONFIG_STATUS
20154
rm -f conftest.tail
20155
while grep . conftest.defines >/dev/null
20157
# Write a limited-size here document to $tmp/defines.sed.
20158
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20159
# Speed up: don't consider the non `#define' lines.
20160
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20161
# Work around the forget-to-reset-the-flag bug.
20162
echo 't clr' >>$CONFIG_STATUS
20163
echo ': clr' >>$CONFIG_STATUS
20164
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22434
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20166
sed -f $tmp/defines.sed $tmp/in >$tmp/out
20168
mv $tmp/out $tmp/in
20170
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22436
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22437
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22438
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22439
grep . conftest.tail >/dev/null || break
20171
22440
rm -f conftest.defines
20172
22441
mv conftest.tail conftest.defines
20174
rm -f conftest.defines
20175
echo ' fi # grep' >>$CONFIG_STATUS
20176
echo >>$CONFIG_STATUS
20178
# Break up conftest.undefs because some shells have a limit on the size
20179
# of here documents, and old seds have small limits too (100 cmds).
20180
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20181
rm -f conftest.tail
20182
while grep . conftest.undefs >/dev/null
20184
# Write a limited-size here document to $tmp/undefs.sed.
20185
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20186
# Speed up: don't consider the non `#undef'
20187
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20188
# Work around the forget-to-reset-the-flag bug.
20189
echo 't clr' >>$CONFIG_STATUS
20190
echo ': clr' >>$CONFIG_STATUS
20191
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20193
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20195
mv $tmp/out $tmp/in
20197
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20198
rm -f conftest.undefs
20199
mv conftest.tail conftest.undefs
20201
rm -f conftest.undefs
22443
rm -f conftest.defines conftest.tail
22445
echo "ac_result=$ac_in" >>$CONFIG_STATUS
20203
22446
cat >>$CONFIG_STATUS <<\_ACEOF
20204
# Let's still pretend it is `configure' which instantiates (i.e., don't
20205
# use $as_me), people would be surprised to read:
20206
# /* config.h. Generated by config.status. */
20207
if test x"$ac_file" = x-; then
20208
echo "/* Generated by configure. */" >$tmp/config.h
20210
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20212
cat $tmp/in >>$tmp/config.h
20214
22447
if test x"$ac_file" != x-; then
20215
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22448
echo "/* $configure_input */" >"$tmp/config.h"
22449
cat "$ac_result" >>"$tmp/config.h"
22450
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20216
22451
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20217
22452
echo "$as_me: $ac_file is unchanged" >&6;}
20219
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20220
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20221
X"$ac_file" : 'X\(//\)[^/]' \| \
20222
X"$ac_file" : 'X\(//\)$' \| \
20223
X"$ac_file" : 'X\(/\)' \| \
20224
. : '\(.\)' 2>/dev/null ||
20226
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20227
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20228
/^X\(\/\/\)$/{ s//\1/; q; }
20229
/^X\(\/\).*/{ s//\1/; q; }
20231
{ if $as_mkdir_p; then
20236
while test ! -d "$as_dir"; do
20237
as_dirs="$as_dir $as_dirs"
20238
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20239
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20240
X"$as_dir" : 'X\(//\)[^/]' \| \
20241
X"$as_dir" : 'X\(//\)$' \| \
20242
X"$as_dir" : 'X\(/\)' \| \
20243
. : '\(.\)' 2>/dev/null ||
20245
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20246
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20247
/^X\(\/\/\)$/{ s//\1/; q; }
20248
/^X\(\/\).*/{ s//\1/; q; }
20251
test ! -n "$as_dirs" || mkdir $as_dirs
20252
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20253
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20254
{ (exit 1); exit 1; }; }; }
20256
22454
rm -f $ac_file
20257
mv $tmp/config.h $ac_file
22455
mv "$tmp/config.h" $ac_file
20261
rm -f $tmp/config.h
22458
echo "/* $configure_input */"
20263
22462
# Compute $ac_file's index in $config_headers.
20264
22463
_am_stamp_count=1
20265
22464
for _am_header in $config_headers :; do