ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
(Generate patch)

Comparing IO-AIO/configure (file contents):
Revision 1.9 by root, Wed Dec 1 07:30:38 2010 UTC vs.
Revision 1.15 by root, Tue Apr 10 05:01:34 2012 UTC

168fi 168fi
169test x\$exitcode = x0 || exit 1" 169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
174 if (eval "$as_required") 2>/dev/null; then : 175 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes 176 as_have_required=yes
176else 177else
177 as_have_required=no 178 as_have_required=no
178fi 179fi
552PACKAGE_STRING= 553PACKAGE_STRING=
553PACKAGE_BUGREPORT= 554PACKAGE_BUGREPORT=
554PACKAGE_URL= 555PACKAGE_URL=
555 556
556ac_unique_file="libeio/eio.h" 557ac_unique_file="libeio/eio.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
561#ifdef HAVE_SYS_TYPES_H
562# include <sys/types.h>
563#endif
564#ifdef HAVE_SYS_STAT_H
565# include <sys/stat.h>
566#endif
567#ifdef STDC_HEADERS
568# include <stdlib.h>
569# include <stddef.h>
570#else
571# ifdef HAVE_STDLIB_H
572# include <stdlib.h>
573# endif
574#endif
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
581#ifdef HAVE_STRINGS_H
582# include <strings.h>
583#endif
584#ifdef HAVE_INTTYPES_H
585# include <inttypes.h>
586#endif
587#ifdef HAVE_STDINT_H
588# include <stdint.h>
589#endif
590#ifdef HAVE_UNISTD_H
591# include <unistd.h>
592#endif"
593
557ac_subst_vars='LTLIBOBJS 594ac_subst_vars='LTLIBOBJS
558LIBOBJS 595LIBOBJS
596EGREP
597GREP
598CPP
559OBJEXT 599OBJEXT
560EXEEXT 600EXEEXT
561ac_ct_CC 601ac_ct_CC
562CPPFLAGS 602CPPFLAGS
563LDFLAGS 603LDFLAGS
610target_alias 650target_alias
611CC 651CC
612CFLAGS 652CFLAGS
613LDFLAGS 653LDFLAGS
614LIBS 654LIBS
615CPPFLAGS' 655CPPFLAGS
656CPP'
616 657
617 658
618# Initialize some variables set by options. 659# Initialize some variables set by options.
619ac_init_help= 660ac_init_help=
620ac_init_version=false 661ac_init_version=false
1224 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1265 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1225 nonstandard directory <lib dir> 1266 nonstandard directory <lib dir>
1226 LIBS libraries to pass to the linker, e.g. -l<library> 1267 LIBS libraries to pass to the linker, e.g. -l<library>
1227 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1268 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1228 you have headers in a nonstandard directory <include dir> 1269 you have headers in a nonstandard directory <include dir>
1270 CPP C preprocessor
1229 1271
1230Use these variables to override the choices made by `configure' or to help 1272Use these variables to override the choices made by `configure' or to help
1231it to find libraries and programs with nonstandard names/locations. 1273it to find libraries and programs with nonstandard names/locations.
1232 1274
1233Report bugs to the package provider. 1275Report bugs to the package provider.
1342fi 1384fi
1343 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1385 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1344 as_fn_set_status $ac_retval 1386 as_fn_set_status $ac_retval
1345 1387
1346} # ac_fn_c_try_compile 1388} # ac_fn_c_try_compile
1389
1390# ac_fn_c_try_cpp LINENO
1391# ----------------------
1392# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1393ac_fn_c_try_cpp ()
1394{
1395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1396 if { { ac_try="$ac_cpp conftest.$ac_ext"
1397case "(($ac_try" in
1398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1399 *) ac_try_echo=$ac_try;;
1400esac
1401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1402$as_echo "$ac_try_echo"; } >&5
1403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1404 ac_status=$?
1405 if test -s conftest.err; then
1406 grep -v '^ *+' conftest.err >conftest.er1
1407 cat conftest.er1 >&5
1408 mv -f conftest.er1 conftest.err
1409 fi
1410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1411 test $ac_status = 0; } > conftest.i && {
1412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1413 test ! -s conftest.err
1414 }; then :
1415 ac_retval=0
1416else
1417 $as_echo "$as_me: failed program was:" >&5
1418sed 's/^/| /' conftest.$ac_ext >&5
1419
1420 ac_retval=1
1421fi
1422 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1423 as_fn_set_status $ac_retval
1424
1425} # ac_fn_c_try_cpp
1426
1427# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1428# -------------------------------------------------------
1429# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1430# the include files in INCLUDES and setting the cache variable VAR
1431# accordingly.
1432ac_fn_c_check_header_mongrel ()
1433{
1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435 if eval "test \"\${$3+set}\"" = set; then :
1436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1437$as_echo_n "checking for $2... " >&6; }
1438if eval "test \"\${$3+set}\"" = set; then :
1439 $as_echo_n "(cached) " >&6
1440fi
1441eval ac_res=\$$3
1442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1443$as_echo "$ac_res" >&6; }
1444else
1445 # Is the header compilable?
1446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1447$as_echo_n "checking $2 usability... " >&6; }
1448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1449/* end confdefs.h. */
1450$4
1451#include <$2>
1452_ACEOF
1453if ac_fn_c_try_compile "$LINENO"; then :
1454 ac_header_compiler=yes
1455else
1456 ac_header_compiler=no
1457fi
1458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1460$as_echo "$ac_header_compiler" >&6; }
1461
1462# Is the header present?
1463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1464$as_echo_n "checking $2 presence... " >&6; }
1465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1466/* end confdefs.h. */
1467#include <$2>
1468_ACEOF
1469if ac_fn_c_try_cpp "$LINENO"; then :
1470 ac_header_preproc=yes
1471else
1472 ac_header_preproc=no
1473fi
1474rm -f conftest.err conftest.i conftest.$ac_ext
1475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1476$as_echo "$ac_header_preproc" >&6; }
1477
1478# So? What about this header?
1479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1480 yes:no: )
1481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1482$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1484$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1485 ;;
1486 no:yes:* )
1487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1488$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1490$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1492$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1494$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1496$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1497 ;;
1498esac
1499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1500$as_echo_n "checking for $2... " >&6; }
1501if eval "test \"\${$3+set}\"" = set; then :
1502 $as_echo_n "(cached) " >&6
1503else
1504 eval "$3=\$ac_header_compiler"
1505fi
1506eval ac_res=\$$3
1507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1508$as_echo "$ac_res" >&6; }
1509fi
1510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1511
1512} # ac_fn_c_check_header_mongrel
1513
1514# ac_fn_c_try_run LINENO
1515# ----------------------
1516# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1517# that executables *can* be run.
1518ac_fn_c_try_run ()
1519{
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 if { { ac_try="$ac_link"
1522case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525esac
1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527$as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_link") 2>&5
1529 ac_status=$?
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1532 { { case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535esac
1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537$as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_try") 2>&5
1539 ac_status=$?
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; }; }; then :
1542 ac_retval=0
1543else
1544 $as_echo "$as_me: program exited with status $ac_status" >&5
1545 $as_echo "$as_me: failed program was:" >&5
1546sed 's/^/| /' conftest.$ac_ext >&5
1547
1548 ac_retval=$ac_status
1549fi
1550 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552 as_fn_set_status $ac_retval
1553
1554} # ac_fn_c_try_run
1555
1556# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1557# -------------------------------------------------------
1558# Tests whether HEADER exists and can be compiled using the include files in
1559# INCLUDES, setting the cache variable VAR accordingly.
1560ac_fn_c_check_header_compile ()
1561{
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1564$as_echo_n "checking for $2... " >&6; }
1565if eval "test \"\${$3+set}\"" = set; then :
1566 $as_echo_n "(cached) " >&6
1567else
1568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569/* end confdefs.h. */
1570$4
1571#include <$2>
1572_ACEOF
1573if ac_fn_c_try_compile "$LINENO"; then :
1574 eval "$3=yes"
1575else
1576 eval "$3=no"
1577fi
1578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1579fi
1580eval ac_res=\$$3
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1582$as_echo "$ac_res" >&6; }
1583 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1584
1585} # ac_fn_c_check_header_compile
1347 1586
1348# ac_fn_c_try_link LINENO 1587# ac_fn_c_try_link LINENO
1349# ----------------------- 1588# -----------------------
1350# Try to link conftest.$ac_ext, and return whether this succeeded. 1589# Try to link conftest.$ac_ext, and return whether this succeeded.
1351ac_fn_c_try_link () 1590ac_fn_c_try_link ()
1744 1983
1745 1984
1746ac_config_headers="$ac_config_headers libeio/config.h" 1985ac_config_headers="$ac_config_headers libeio/config.h"
1747 1986
1748 1987
1988
1749ac_ext=c 1989ac_ext=c
1750ac_cpp='$CPP $CPPFLAGS' 1990ac_cpp='$CPP $CPPFLAGS'
1751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1753ac_compiler_gnu=$ac_cv_c_compiler_gnu 1993ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu 2777ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538 2778
2539 2779
2780ac_ext=c
2781ac_cpp='$CPP $CPPFLAGS'
2782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2786$as_echo_n "checking how to run the C preprocessor... " >&6; }
2787# On Suns, sometimes $CPP names a directory.
2788if test -n "$CPP" && test -d "$CPP"; then
2789 CPP=
2790fi
2791if test -z "$CPP"; then
2792 if test "${ac_cv_prog_CPP+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2794else
2795 # Double quotes because CPP needs to be expanded
2796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2797 do
2798 ac_preproc_ok=false
2799for ac_c_preproc_warn_flag in '' yes
2800do
2801 # Use a header file that comes with gcc, so configuring glibc
2802 # with a fresh cross-compiler works.
2803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2804 # <limits.h> exists even on freestanding compilers.
2805 # On the NeXT, cc -E runs the code through the compiler's parser,
2806 # not just through cpp. "Syntax error" is here to catch this case.
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808/* end confdefs.h. */
2809#ifdef __STDC__
2810# include <limits.h>
2811#else
2812# include <assert.h>
2813#endif
2814 Syntax error
2815_ACEOF
2816if ac_fn_c_try_cpp "$LINENO"; then :
2817
2818else
2819 # Broken: fails on valid input.
2820continue
2821fi
2822rm -f conftest.err conftest.i conftest.$ac_ext
2823
2824 # OK, works on sane cases. Now check whether nonexistent headers
2825 # can be detected and how.
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827/* end confdefs.h. */
2828#include <ac_nonexistent.h>
2829_ACEOF
2830if ac_fn_c_try_cpp "$LINENO"; then :
2831 # Broken: success on invalid input.
2832continue
2833else
2834 # Passes both tests.
2835ac_preproc_ok=:
2836break
2837fi
2838rm -f conftest.err conftest.i conftest.$ac_ext
2839
2840done
2841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2842rm -f conftest.i conftest.err conftest.$ac_ext
2843if $ac_preproc_ok; then :
2844 break
2845fi
2846
2847 done
2848 ac_cv_prog_CPP=$CPP
2849
2850fi
2851 CPP=$ac_cv_prog_CPP
2852else
2853 ac_cv_prog_CPP=$CPP
2854fi
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2856$as_echo "$CPP" >&6; }
2857ac_preproc_ok=false
2858for ac_c_preproc_warn_flag in '' yes
2859do
2860 # Use a header file that comes with gcc, so configuring glibc
2861 # with a fresh cross-compiler works.
2862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2863 # <limits.h> exists even on freestanding compilers.
2864 # On the NeXT, cc -E runs the code through the compiler's parser,
2865 # not just through cpp. "Syntax error" is here to catch this case.
2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867/* end confdefs.h. */
2868#ifdef __STDC__
2869# include <limits.h>
2870#else
2871# include <assert.h>
2872#endif
2873 Syntax error
2874_ACEOF
2875if ac_fn_c_try_cpp "$LINENO"; then :
2876
2877else
2878 # Broken: fails on valid input.
2879continue
2880fi
2881rm -f conftest.err conftest.i conftest.$ac_ext
2882
2883 # OK, works on sane cases. Now check whether nonexistent headers
2884 # can be detected and how.
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886/* end confdefs.h. */
2887#include <ac_nonexistent.h>
2888_ACEOF
2889if ac_fn_c_try_cpp "$LINENO"; then :
2890 # Broken: success on invalid input.
2891continue
2892else
2893 # Passes both tests.
2894ac_preproc_ok=:
2895break
2896fi
2897rm -f conftest.err conftest.i conftest.$ac_ext
2898
2899done
2900# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901rm -f conftest.i conftest.err conftest.$ac_ext
2902if $ac_preproc_ok; then :
2903
2904else
2905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2907as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2908See \`config.log' for more details" "$LINENO" 5 ; }
2909fi
2910
2911ac_ext=c
2912ac_cpp='$CPP $CPPFLAGS'
2913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916
2917
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2919$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2920if test "${ac_cv_path_GREP+set}" = set; then :
2921 $as_echo_n "(cached) " >&6
2922else
2923 if test -z "$GREP"; then
2924 ac_path_GREP_found=false
2925 # Loop through the user's path and test for each of PROGNAME-LIST
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_prog in grep ggrep; do
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2934 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2935# Check for GNU ac_path_GREP and select it if it is found.
2936 # Check for GNU $ac_path_GREP
2937case `"$ac_path_GREP" --version 2>&1` in
2938*GNU*)
2939 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2940*)
2941 ac_count=0
2942 $as_echo_n 0123456789 >"conftest.in"
2943 while :
2944 do
2945 cat "conftest.in" "conftest.in" >"conftest.tmp"
2946 mv "conftest.tmp" "conftest.in"
2947 cp "conftest.in" "conftest.nl"
2948 $as_echo 'GREP' >> "conftest.nl"
2949 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2951 as_fn_arith $ac_count + 1 && ac_count=$as_val
2952 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2953 # Best one so far, save it but keep looking for a better one
2954 ac_cv_path_GREP="$ac_path_GREP"
2955 ac_path_GREP_max=$ac_count
2956 fi
2957 # 10*(2^10) chars as input seems more than enough
2958 test $ac_count -gt 10 && break
2959 done
2960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2961esac
2962
2963 $ac_path_GREP_found && break 3
2964 done
2965 done
2966 done
2967IFS=$as_save_IFS
2968 if test -z "$ac_cv_path_GREP"; then
2969 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2970 fi
2971else
2972 ac_cv_path_GREP=$GREP
2973fi
2974
2975fi
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
2977$as_echo "$ac_cv_path_GREP" >&6; }
2978 GREP="$ac_cv_path_GREP"
2979
2980
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
2982$as_echo_n "checking for egrep... " >&6; }
2983if test "${ac_cv_path_EGREP+set}" = set; then :
2984 $as_echo_n "(cached) " >&6
2985else
2986 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2987 then ac_cv_path_EGREP="$GREP -E"
2988 else
2989 if test -z "$EGREP"; then
2990 ac_path_EGREP_found=false
2991 # Loop through the user's path and test for each of PROGNAME-LIST
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_prog in egrep; do
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3000 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3001# Check for GNU ac_path_EGREP and select it if it is found.
3002 # Check for GNU $ac_path_EGREP
3003case `"$ac_path_EGREP" --version 2>&1` in
3004*GNU*)
3005 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3006*)
3007 ac_count=0
3008 $as_echo_n 0123456789 >"conftest.in"
3009 while :
3010 do
3011 cat "conftest.in" "conftest.in" >"conftest.tmp"
3012 mv "conftest.tmp" "conftest.in"
3013 cp "conftest.in" "conftest.nl"
3014 $as_echo 'EGREP' >> "conftest.nl"
3015 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3017 as_fn_arith $ac_count + 1 && ac_count=$as_val
3018 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3019 # Best one so far, save it but keep looking for a better one
3020 ac_cv_path_EGREP="$ac_path_EGREP"
3021 ac_path_EGREP_max=$ac_count
3022 fi
3023 # 10*(2^10) chars as input seems more than enough
3024 test $ac_count -gt 10 && break
3025 done
3026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3027esac
3028
3029 $ac_path_EGREP_found && break 3
3030 done
3031 done
3032 done
3033IFS=$as_save_IFS
3034 if test -z "$ac_cv_path_EGREP"; then
3035 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3036 fi
3037else
3038 ac_cv_path_EGREP=$EGREP
3039fi
3040
3041 fi
3042fi
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3044$as_echo "$ac_cv_path_EGREP" >&6; }
3045 EGREP="$ac_cv_path_EGREP"
3046
3047
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3049$as_echo_n "checking for ANSI C header files... " >&6; }
3050if test "${ac_cv_header_stdc+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3052else
3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054/* end confdefs.h. */
3055#include <stdlib.h>
3056#include <stdarg.h>
3057#include <string.h>
3058#include <float.h>
3059
3060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
3068if ac_fn_c_try_compile "$LINENO"; then :
3069 ac_cv_header_stdc=yes
3070else
3071 ac_cv_header_stdc=no
3072fi
3073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074
3075if test $ac_cv_header_stdc = yes; then
3076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078/* end confdefs.h. */
3079#include <string.h>
3080
3081_ACEOF
3082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3083 $EGREP "memchr" >/dev/null 2>&1; then :
3084
3085else
3086 ac_cv_header_stdc=no
3087fi
3088rm -f conftest*
3089
3090fi
3091
3092if test $ac_cv_header_stdc = yes; then
3093 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095/* end confdefs.h. */
3096#include <stdlib.h>
3097
3098_ACEOF
3099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3100 $EGREP "free" >/dev/null 2>&1; then :
3101
3102else
3103 ac_cv_header_stdc=no
3104fi
3105rm -f conftest*
3106
3107fi
3108
3109if test $ac_cv_header_stdc = yes; then
3110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3111 if test "$cross_compiling" = yes; then :
3112 :
3113else
3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115/* end confdefs.h. */
3116#include <ctype.h>
3117#include <stdlib.h>
3118#if ((' ' & 0x0FF) == 0x020)
3119# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3120# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3121#else
3122# define ISLOWER(c) \
3123 (('a' <= (c) && (c) <= 'i') \
3124 || ('j' <= (c) && (c) <= 'r') \
3125 || ('s' <= (c) && (c) <= 'z'))
3126# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3127#endif
3128
3129#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3130int
3131main ()
3132{
3133 int i;
3134 for (i = 0; i < 256; i++)
3135 if (XOR (islower (i), ISLOWER (i))
3136 || toupper (i) != TOUPPER (i))
3137 return 2;
3138 return 0;
3139}
3140_ACEOF
3141if ac_fn_c_try_run "$LINENO"; then :
3142
3143else
3144 ac_cv_header_stdc=no
3145fi
3146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3147 conftest.$ac_objext conftest.beam conftest.$ac_ext
3148fi
3149
3150fi
3151fi
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3153$as_echo "$ac_cv_header_stdc" >&6; }
3154if test $ac_cv_header_stdc = yes; then
3155
3156$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3157
3158fi
3159
3160# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3161for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3162 inttypes.h stdint.h unistd.h
3163do :
3164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3165ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3166"
3167if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3168 cat >>confdefs.h <<_ACEOF
3169#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3170_ACEOF
3171
3172fi
3173
3174done
3175
3176
3177
3178 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3179if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3180 MINIX=yes
3181else
3182 MINIX=
3183fi
3184
3185
3186 if test "$MINIX" = yes; then
3187
3188$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3189
3190
3191$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3192
3193
3194$as_echo "#define _MINIX 1" >>confdefs.h
3195
3196 fi
3197
3198
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3200$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3201if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3202 $as_echo_n "(cached) " >&6
3203else
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205/* end confdefs.h. */
3206
3207# define __EXTENSIONS__ 1
3208 $ac_includes_default
3209int
3210main ()
3211{
3212
3213 ;
3214 return 0;
3215}
3216_ACEOF
3217if ac_fn_c_try_compile "$LINENO"; then :
3218 ac_cv_safe_to_define___extensions__=yes
3219else
3220 ac_cv_safe_to_define___extensions__=no
3221fi
3222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223fi
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3225$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3226 test $ac_cv_safe_to_define___extensions__ = yes &&
3227 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3228
3229 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3230
3231 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3232
3233 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3234
3235 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3236
3237
3238
3239ac_ext=c
3240ac_cpp='$CPP $CPPFLAGS'
3241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3246set dummy ${ac_tool_prefix}gcc; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
3249if test "${ac_cv_prog_CC+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266done
3267 done
3268IFS=$as_save_IFS
3269
3270fi
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275$as_echo "$CC" >&6; }
3276else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279fi
3280
3281
3282fi
3283if test -z "$ac_cv_prog_CC"; then
3284 ac_ct_CC=$CC
3285 # Extract the first word of "gcc", so it can be a program name with args.
3286set dummy gcc; ac_word=$2
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288$as_echo_n "checking for $ac_word... " >&6; }
3289if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3291else
3292 if test -n "$ac_ct_CC"; then
3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3294else
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH
3297do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_ac_ct_CC="gcc"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306done
3307 done
3308IFS=$as_save_IFS
3309
3310fi
3311fi
3312ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313if test -n "$ac_ct_CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3315$as_echo "$ac_ct_CC" >&6; }
3316else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319fi
3320
3321 if test "x$ac_ct_CC" = x; then
3322 CC=""
3323 else
3324 case $cross_compiling:$ac_tool_warned in
3325yes:)
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3328ac_tool_warned=yes ;;
3329esac
3330 CC=$ac_ct_CC
3331 fi
3332else
3333 CC="$ac_cv_prog_CC"
3334fi
3335
3336if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3339set dummy ${ac_tool_prefix}cc; ac_word=$2
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341$as_echo_n "checking for $ac_word... " >&6; }
3342if test "${ac_cv_prog_CC+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3344else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_prog_CC="${ac_tool_prefix}cc"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359done
3360 done
3361IFS=$as_save_IFS
3362
3363fi
3364fi
3365CC=$ac_cv_prog_CC
3366if test -n "$CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368$as_echo "$CC" >&6; }
3369else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371$as_echo "no" >&6; }
3372fi
3373
3374
3375 fi
3376fi
3377if test -z "$CC"; then
3378 # Extract the first word of "cc", so it can be a program name with args.
3379set dummy cc; ac_word=$2
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381$as_echo_n "checking for $ac_word... " >&6; }
3382if test "${ac_cv_prog_CC+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3384else
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC="$CC" # Let the user override the test.
3387else
3388 ac_prog_rejected=no
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3397 ac_prog_rejected=yes
3398 continue
3399 fi
3400 ac_cv_prog_CC="cc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404done
3405 done
3406IFS=$as_save_IFS
3407
3408if test $ac_prog_rejected = yes; then
3409 # We found a bogon in the path, so make sure we never use it.
3410 set dummy $ac_cv_prog_CC
3411 shift
3412 if test $# != 0; then
3413 # We chose a different compiler from the bogus one.
3414 # However, it has the same basename, so the bogon will be chosen
3415 # first if we set CC to just the basename; use the full file name.
3416 shift
3417 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3418 fi
3419fi
3420fi
3421fi
3422CC=$ac_cv_prog_CC
3423if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425$as_echo "$CC" >&6; }
3426else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428$as_echo "no" >&6; }
3429fi
3430
3431
3432fi
3433if test -z "$CC"; then
3434 if test -n "$ac_tool_prefix"; then
3435 for ac_prog in cl.exe
3436 do
3437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3438set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440$as_echo_n "checking for $ac_word... " >&6; }
3441if test "${ac_cv_prog_CC+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3443else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446else
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458done
3459 done
3460IFS=$as_save_IFS
3461
3462fi
3463fi
3464CC=$ac_cv_prog_CC
3465if test -n "$CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467$as_echo "$CC" >&6; }
3468else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470$as_echo "no" >&6; }
3471fi
3472
3473
3474 test -n "$CC" && break
3475 done
3476fi
3477if test -z "$CC"; then
3478 ac_ct_CC=$CC
3479 for ac_prog in cl.exe
3480do
3481 # Extract the first word of "$ac_prog", so it can be a program name with args.
3482set dummy $ac_prog; ac_word=$2
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484$as_echo_n "checking for $ac_word... " >&6; }
3485if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
3487else
3488 if test -n "$ac_ct_CC"; then
3489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3490else
3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH
3493do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498 ac_cv_prog_ac_ct_CC="$ac_prog"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502done
3503 done
3504IFS=$as_save_IFS
3505
3506fi
3507fi
3508ac_ct_CC=$ac_cv_prog_ac_ct_CC
3509if test -n "$ac_ct_CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3511$as_echo "$ac_ct_CC" >&6; }
3512else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514$as_echo "no" >&6; }
3515fi
3516
3517
3518 test -n "$ac_ct_CC" && break
3519done
3520
3521 if test "x$ac_ct_CC" = x; then
3522 CC=""
3523 else
3524 case $cross_compiling:$ac_tool_warned in
3525yes:)
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3528ac_tool_warned=yes ;;
3529esac
3530 CC=$ac_ct_CC
3531 fi
3532fi
3533
3534fi
3535
3536
3537test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539as_fn_error $? "no acceptable C compiler found in \$PATH
3540See \`config.log' for more details" "$LINENO" 5 ; }
3541
3542# Provide some information about the compiler.
3543$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3544set X $ac_compile
3545ac_compiler=$2
3546for ac_option in --version -v -V -qversion; do
3547 { { ac_try="$ac_compiler $ac_option >&5"
3548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
3552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553$as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3555 ac_status=$?
3556 if test -s conftest.err; then
3557 sed '10a\
3558... rest of stderr output deleted ...
3559 10q' conftest.err >conftest.er1
3560 cat conftest.er1 >&5
3561 fi
3562 rm -f conftest.er1 conftest.err
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }
3565done
3566
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3568$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3569if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3571else
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573/* end confdefs.h. */
3574
3575int
3576main ()
3577{
3578#ifndef __GNUC__
3579 choke me
3580#endif
3581
3582 ;
3583 return 0;
3584}
3585_ACEOF
3586if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_compiler_gnu=yes
3588else
3589 ac_compiler_gnu=no
3590fi
3591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592ac_cv_c_compiler_gnu=$ac_compiler_gnu
3593
3594fi
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3596$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3597if test $ac_compiler_gnu = yes; then
3598 GCC=yes
3599else
3600 GCC=
3601fi
3602ac_test_CFLAGS=${CFLAGS+set}
3603ac_save_CFLAGS=$CFLAGS
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3605$as_echo_n "checking whether $CC accepts -g... " >&6; }
3606if test "${ac_cv_prog_cc_g+set}" = set; then :
3607 $as_echo_n "(cached) " >&6
3608else
3609 ac_save_c_werror_flag=$ac_c_werror_flag
3610 ac_c_werror_flag=yes
3611 ac_cv_prog_cc_g=no
3612 CFLAGS="-g"
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614/* end confdefs.h. */
3615
3616int
3617main ()
3618{
3619
3620 ;
3621 return 0;
3622}
3623_ACEOF
3624if ac_fn_c_try_compile "$LINENO"; then :
3625 ac_cv_prog_cc_g=yes
3626else
3627 CFLAGS=""
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h. */
3630
3631int
3632main ()
3633{
3634
3635 ;
3636 return 0;
3637}
3638_ACEOF
3639if ac_fn_c_try_compile "$LINENO"; then :
3640
3641else
3642 ac_c_werror_flag=$ac_save_c_werror_flag
3643 CFLAGS="-g"
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645/* end confdefs.h. */
3646
3647int
3648main ()
3649{
3650
3651 ;
3652 return 0;
3653}
3654_ACEOF
3655if ac_fn_c_try_compile "$LINENO"; then :
3656 ac_cv_prog_cc_g=yes
3657fi
3658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659fi
3660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661fi
3662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 ac_c_werror_flag=$ac_save_c_werror_flag
3664fi
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3666$as_echo "$ac_cv_prog_cc_g" >&6; }
3667if test "$ac_test_CFLAGS" = set; then
3668 CFLAGS=$ac_save_CFLAGS
3669elif test $ac_cv_prog_cc_g = yes; then
3670 if test "$GCC" = yes; then
3671 CFLAGS="-g -O2"
3672 else
3673 CFLAGS="-g"
3674 fi
3675else
3676 if test "$GCC" = yes; then
3677 CFLAGS="-O2"
3678 else
3679 CFLAGS=
3680 fi
3681fi
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3683$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3684if test "${ac_cv_prog_cc_c89+set}" = set; then :
3685 $as_echo_n "(cached) " >&6
3686else
3687 ac_cv_prog_cc_c89=no
3688ac_save_CC=$CC
3689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h. */
3691#include <stdarg.h>
3692#include <stdio.h>
3693#include <sys/types.h>
3694#include <sys/stat.h>
3695/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3696struct buf { int x; };
3697FILE * (*rcsopen) (struct buf *, struct stat *, int);
3698static char *e (p, i)
3699 char **p;
3700 int i;
3701{
3702 return p[i];
3703}
3704static char *f (char * (*g) (char **, int), char **p, ...)
3705{
3706 char *s;
3707 va_list v;
3708 va_start (v,p);
3709 s = g (p, va_arg (v,int));
3710 va_end (v);
3711 return s;
3712}
3713
3714/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3715 function prototypes and stuff, but not '\xHH' hex character constants.
3716 These don't provoke an error unfortunately, instead are silently treated
3717 as 'x'. The following induces an error, until -std is added to get
3718 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3719 array size at least. It's necessary to write '\x00'==0 to get something
3720 that's true only with -std. */
3721int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3722
3723/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3724 inside strings and character constants. */
3725#define FOO(x) 'x'
3726int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3727
3728int test (int i, double x);
3729struct s1 {int (*f) (int a);};
3730struct s2 {int (*f) (double a);};
3731int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3732int argc;
3733char **argv;
3734int
3735main ()
3736{
3737return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3738 ;
3739 return 0;
3740}
3741_ACEOF
3742for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3743 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3744do
3745 CC="$ac_save_CC $ac_arg"
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_cv_prog_cc_c89=$ac_arg
3748fi
3749rm -f core conftest.err conftest.$ac_objext
3750 test "x$ac_cv_prog_cc_c89" != "xno" && break
3751done
3752rm -f conftest.$ac_ext
3753CC=$ac_save_CC
3754
3755fi
3756# AC_CACHE_VAL
3757case "x$ac_cv_prog_cc_c89" in
3758 x)
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3760$as_echo "none needed" >&6; } ;;
3761 xno)
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3763$as_echo "unsupported" >&6; } ;;
3764 *)
3765 CC="$CC $ac_cv_prog_cc_c89"
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3767$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3768esac
3769if test "x$ac_cv_prog_cc_c89" != xno; then :
3770
3771fi
3772
3773ac_ext=c
3774ac_cpp='$CPP $CPPFLAGS'
3775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778
3779
3780for ac_header in stdint.h sys/syscall.h sys/prctl.h
3781do :
3782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3783ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3784if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3785 cat >>confdefs.h <<_ACEOF
3786#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3787_ACEOF
3788
3789fi
3790
3791done
3792
2540 3793
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
2542$as_echo_n "checking for library containing pthread_create... " >&6; } 3795$as_echo_n "checking for library containing pthread_create... " >&6; }
2543if test "${ac_cv_search_pthread_create+set}" = set; then : 3796if test "${ac_cv_search_pthread_create+set}" = set; then :
2544 $as_echo_n "(cached) " >&6 3797 $as_echo_n "(cached) " >&6
2850$as_echo "$ac_cv_sync_file_range" >&6; } 4103$as_echo "$ac_cv_sync_file_range" >&6; }
2851test $ac_cv_sync_file_range = yes && 4104test $ac_cv_sync_file_range = yes &&
2852$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h 4105$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
2853 4106
2854 4107
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
4109$as_echo_n "checking for fallocate... " >&6; }
4110if test "${ac_cv_flinux_allocate+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4112else
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114/* end confdefs.h. */
4115
4116#include <fcntl.h>
4117int main (void)
4118{
4119 int fd = 0;
4120 int mode = 0;
4121 off_t offset = 1;
4122 off_t len = 1;
4123 int res;
4124 res = fallocate (fd, mode, offset, len);
4125 return 0;
4126}
4127
4128_ACEOF
4129if ac_fn_c_try_link "$LINENO"; then :
4130 ac_cv_linux_fallocate=yes
4131else
4132 ac_cv_linux_fallocate=no
4133fi
4134rm -f core conftest.err conftest.$ac_objext \
4135 conftest$ac_exeext conftest.$ac_ext
4136fi
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flinux_allocate" >&5
4138$as_echo "$ac_cv_flinux_allocate" >&6; }
4139test $ac_cv_linux_fallocate = yes &&
4140$as_echo "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h
4141
4142
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5
4144$as_echo_n "checking for sys_syncfs... " >&6; }
4145if test "${ac_cv_sys_syncfs+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147else
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149/* end confdefs.h. */
4150
4151#include <unistd.h>
4152#include <sys/syscall.h>
4153int main (void)
4154{
4155 int res = syscall (__NR_syncfs, (int)0);
4156}
4157
4158_ACEOF
4159if ac_fn_c_try_link "$LINENO"; then :
4160 ac_cv_sys_syncfs=yes
4161else
4162 ac_cv_sys_syncfs=no
4163fi
4164rm -f core conftest.err conftest.$ac_objext \
4165 conftest$ac_exeext conftest.$ac_ext
4166fi
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5
4168$as_echo "$ac_cv_sys_syncfs" >&6; }
4169test $ac_cv_sys_syncfs = yes &&
4170$as_echo "#define HAVE_SYS_SYNCFS 1" >>confdefs.h
4171
4172
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5
4174$as_echo_n "checking for prctl_set_name... " >&6; }
4175if test "${ac_cv_prctl_set_name+set}" = set; then :
4176 $as_echo_n "(cached) " >&6
4177else
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179/* end confdefs.h. */
4180
4181#include <sys/prctl.h>
4182int main (void)
4183{
4184 char name = "test123";
4185 int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0);
4186}
4187
4188_ACEOF
4189if ac_fn_c_try_link "$LINENO"; then :
4190 ac_cv_prctl_set_name=yes
4191else
4192 ac_cv_prctl_set_name=no
4193fi
4194rm -f core conftest.err conftest.$ac_objext \
4195 conftest$ac_exeext conftest.$ac_ext
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5
4198$as_echo "$ac_cv_prctl_set_name" >&6; }
4199test $ac_cv_prctl_set_name = yes &&
4200$as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h
4201
2855 4202
2856 4203
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5
2858$as_echo_n "checking for posix_madvise... " >&6; } 4205$as_echo_n "checking for posix_madvise... " >&6; }
2859if test "${ac_cv_posix_madvise+set}" = set; then : 4206if test "${ac_cv_posix_madvise+set}" = set; then :
2920fi 4267fi
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5
2922$as_echo "$ac_cv_posix_fadvise" >&6; } 4269$as_echo "$ac_cv_posix_fadvise" >&6; }
2923test $ac_cv_posix_fadvise = yes && 4270test $ac_cv_posix_fadvise = yes &&
2924$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h 4271$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
4272
4273
4274for ac_header in linux/fs.h linux/fiemap.h
4275do :
4276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4278if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4279 cat >>confdefs.h <<_ACEOF
4280#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4281_ACEOF
4282
4283fi
4284
4285done
4286
4287
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5
4289$as_echo_n "checking for splice, vmsplice and tee... " >&6; }
4290if test "${ac_cv_linux_splice+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4292else
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294/* end confdefs.h. */
4295
4296#include <fcntl.h>
4297int main (void)
4298{
4299 ssize_t res;
4300 res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE);
4301 res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK);
4302 res = vmsplice ((int)0, (struct iovec *)0, 0, SPLICE_F_NONBLOCK | SPLICE_F_GIFT);
4303 return 0;
4304}
4305
4306_ACEOF
4307if ac_fn_c_try_link "$LINENO"; then :
4308 ac_cv_linux_splice=yes
4309else
4310 ac_cv_linux_splice=no
4311fi
4312rm -f core conftest.err conftest.$ac_objext \
4313 conftest$ac_exeext conftest.$ac_ext
4314fi
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_splice" >&5
4316$as_echo "$ac_cv_linux_splice" >&6; }
4317test $ac_cv_linux_splice = yes &&
4318$as_echo "#define HAVE_LINUX_SPLICE 1" >>confdefs.h
4319
4320
2925 4321
2926 4322
2927cat >confcache <<\_ACEOF 4323cat >confcache <<\_ACEOF
2928# This file is a shell script that caches the results of configure 4324# This file is a shell script that caches the results of configure
2929# tests run on this system so they can be shared between configure 4325# tests run on this system so they can be shared between configure

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines