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

Comparing IO-AIO/configure (file contents):
Revision 1.14 by root, Fri Apr 6 11:39:25 2012 UTC vs.
Revision 1.15 by root, Tue Apr 10 05:01:34 2012 UTC

1983 1983
1984 1984
1985ac_config_headers="$ac_config_headers libeio/config.h" 1985ac_config_headers="$ac_config_headers libeio/config.h"
1986 1986
1987 1987
1988
1988ac_ext=c 1989ac_ext=c
1989ac_cpp='$CPP $CPPFLAGS' 1990ac_cpp='$CPP $CPPFLAGS'
1990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1991ac_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'
1992ac_compiler_gnu=$ac_cv_c_compiler_gnu 1993ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775ac_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'
2776ac_compiler_gnu=$ac_cv_c_compiler_gnu 2777ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777 2778
2778 2779
2779
2780ac_ext=c 2780ac_ext=c
2781ac_cpp='$CPP $CPPFLAGS' 2781ac_cpp='$CPP $CPPFLAGS'
2782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 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' 2783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784ac_compiler_gnu=$ac_cv_c_compiler_gnu 2784ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172fi 3172fi
3173 3173
3174done 3174done
3175 3175
3176 3176
3177for ac_header in linux/fs.h linux/fiemap.h
3178do :
3179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3180ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3181if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3182 cat >>confdefs.h <<_ACEOF
3183#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3184_ACEOF
3185 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=
3186fi 3183fi
3187 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
3188done 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
3189 3778
3190 3779
3191for ac_header in stdint.h sys/syscall.h sys/prctl.h 3780for ac_header in stdint.h sys/syscall.h sys/prctl.h
3192do : 3781do :
3193 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3516$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h 4105$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
3517 4106
3518 4107
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
3520$as_echo_n "checking for fallocate... " >&6; } 4109$as_echo_n "checking for fallocate... " >&6; }
3521if test "${ac_cv_fallocate+set}" = set; then : 4110if test "${ac_cv_flinux_allocate+set}" = set; then :
3522 $as_echo_n "(cached) " >&6 4111 $as_echo_n "(cached) " >&6
3523else 4112else
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h. */ 4114/* end confdefs.h. */
3526 4115
3536 return 0; 4125 return 0;
3537} 4126}
3538 4127
3539_ACEOF 4128_ACEOF
3540if ac_fn_c_try_link "$LINENO"; then : 4129if ac_fn_c_try_link "$LINENO"; then :
3541 ac_cv_fallocate=yes 4130 ac_cv_linux_fallocate=yes
3542else 4131else
3543 ac_cv_fallocate=no 4132 ac_cv_linux_fallocate=no
3544fi 4133fi
3545rm -f core conftest.err conftest.$ac_objext \ 4134rm -f core conftest.err conftest.$ac_objext \
3546 conftest$ac_exeext conftest.$ac_ext 4135 conftest$ac_exeext conftest.$ac_ext
3547fi 4136fi
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fallocate" >&5 4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flinux_allocate" >&5
3549$as_echo "$ac_cv_fallocate" >&6; } 4138$as_echo "$ac_cv_flinux_allocate" >&6; }
3550test $ac_cv_fallocate = yes && 4139test $ac_cv_linux_fallocate = yes &&
3551$as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h 4140$as_echo "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h
3552 4141
3553 4142
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5
3555$as_echo_n "checking for sys_syncfs... " >&6; } 4144$as_echo_n "checking for sys_syncfs... " >&6; }
3556if test "${ac_cv_sys_syncfs+set}" = set; then : 4145if test "${ac_cv_sys_syncfs+set}" = set; then :
3678fi 4267fi
3679{ $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
3680$as_echo "$ac_cv_posix_fadvise" >&6; } 4269$as_echo "$ac_cv_posix_fadvise" >&6; }
3681test $ac_cv_posix_fadvise = yes && 4270test $ac_cv_posix_fadvise = yes &&
3682$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
3683 4319
3684 4320
3685 4321
3686 4322
3687cat >confcache <<\_ACEOF 4323cat >confcache <<\_ACEOF

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines