3040
echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3041
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3042
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3043
echo $ECHO_N "(cached) $ECHO_C" >&6
3045
ac_check_lib_save_LIBS=$LIBS
3046
LIBS="-lcposix $LIBS"
3047
cat >conftest.$ac_ext <<_ACEOF
3090
ac_cpp='$CXXCPP $CPPFLAGS'
3091
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3094
if test -n "$ac_tool_prefix"; then
3095
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3097
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3098
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3099
echo "$as_me:$LINENO: checking for $ac_word" >&5
3100
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101
if test "${ac_cv_prog_CXX+set}" = set; then
3102
echo $ECHO_N "(cached) $ECHO_C" >&6
3104
if test -n "$CXX"; then
3105
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111
test -z "$as_dir" && as_dir=.
3112
for ac_exec_ext in '' $ac_executable_extensions; do
3113
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3115
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124
if test -n "$CXX"; then
3125
echo "$as_me:$LINENO: result: $CXX" >&5
3126
echo "${ECHO_T}$CXX" >&6
3128
echo "$as_me:$LINENO: result: no" >&5
3129
echo "${ECHO_T}no" >&6
3132
test -n "$CXX" && break
3135
if test -z "$CXX"; then
3137
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3139
# Extract the first word of "$ac_prog", so it can be a program name with args.
3140
set dummy $ac_prog; ac_word=$2
3141
echo "$as_me:$LINENO: checking for $ac_word" >&5
3142
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3144
echo $ECHO_N "(cached) $ECHO_C" >&6
3146
if test -n "$ac_ct_CXX"; then
3147
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3149
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153
test -z "$as_dir" && as_dir=.
3154
for ac_exec_ext in '' $ac_executable_extensions; do
3155
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156
ac_cv_prog_ac_ct_CXX="$ac_prog"
3157
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3166
if test -n "$ac_ct_CXX"; then
3167
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3168
echo "${ECHO_T}$ac_ct_CXX" >&6
3170
echo "$as_me:$LINENO: result: no" >&5
3171
echo "${ECHO_T}no" >&6
3174
test -n "$ac_ct_CXX" && break
3176
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3182
# Provide some information about the compiler.
3183
echo "$as_me:$LINENO:" \
3184
"checking for C++ compiler version" >&5
3185
ac_compiler=`set X $ac_compile; echo $2`
3186
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3187
(eval $ac_compiler --version </dev/null >&5) 2>&5
3189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190
(exit $ac_status); }
3191
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3192
(eval $ac_compiler -v </dev/null >&5) 2>&5
3194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195
(exit $ac_status); }
3196
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3197
(eval $ac_compiler -V </dev/null >&5) 2>&5
3199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200
(exit $ac_status); }
3202
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3203
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3204
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3205
echo $ECHO_N "(cached) $ECHO_C" >&6
3207
cat >conftest.$ac_ext <<_ACEOF
3048
3208
/* confdefs.h. */
3050
3210
cat confdefs.h >>conftest.$ac_ext
3051
3211
cat >>conftest.$ac_ext <<_ACEOF
3052
3212
/* end confdefs.h. */
3054
/* Override any gcc2 internal prototype to avoid an error. */
3058
/* We use char because int might match the return type of a gcc2
3059
builtin and then its argument prototype would still apply. */
3069
rm -f conftest.$ac_objext conftest$ac_exeext
3070
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071
(eval $ac_link) 2>conftest.er1
3073
grep -v '^ *+' conftest.er1 >conftest.err
3075
cat conftest.err >&5
3076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077
(exit $ac_status); } &&
3078
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083
(exit $ac_status); }; } &&
3084
{ ac_try='test -s conftest$ac_exeext'
3085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089
(exit $ac_status); }; }; then
3090
ac_cv_lib_cposix_strerror=yes
3092
echo "$as_me: failed program was:" >&5
3093
sed 's/^/| /' conftest.$ac_ext >&5
3095
ac_cv_lib_cposix_strerror=no
3097
rm -f conftest.err conftest.$ac_objext \
3098
conftest$ac_exeext conftest.$ac_ext
3099
LIBS=$ac_check_lib_save_LIBS
3101
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3102
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3103
if test $ac_cv_lib_cposix_strerror = yes; then
3104
LIBS="$LIBS -lcposix"
3225
rm -f conftest.$ac_objext
3226
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3227
(eval $ac_compile) 2>conftest.er1
3229
grep -v '^ *+' conftest.er1 >conftest.err
3231
cat conftest.err >&5
3232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233
(exit $ac_status); } &&
3234
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3235
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239
(exit $ac_status); }; } &&
3240
{ ac_try='test -s conftest.$ac_objext'
3241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245
(exit $ac_status); }; }; then
3248
echo "$as_me: failed program was:" >&5
3249
sed 's/^/| /' conftest.$ac_ext >&5
3253
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3254
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3257
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3258
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3259
GXX=`test $ac_compiler_gnu = yes && echo yes`
3260
ac_test_CXXFLAGS=${CXXFLAGS+set}
3261
ac_save_CXXFLAGS=$CXXFLAGS
3263
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3264
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3265
if test "${ac_cv_prog_cxx_g+set}" = set; then
3266
echo $ECHO_N "(cached) $ECHO_C" >&6
3268
cat >conftest.$ac_ext <<_ACEOF
3271
cat confdefs.h >>conftest.$ac_ext
3272
cat >>conftest.$ac_ext <<_ACEOF
3273
/* end confdefs.h. */
3283
rm -f conftest.$ac_objext
3284
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285
(eval $ac_compile) 2>conftest.er1
3287
grep -v '^ *+' conftest.er1 >conftest.err
3289
cat conftest.err >&5
3290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291
(exit $ac_status); } &&
3292
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3293
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297
(exit $ac_status); }; } &&
3298
{ ac_try='test -s conftest.$ac_objext'
3299
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303
(exit $ac_status); }; }; then
3304
ac_cv_prog_cxx_g=yes
3306
echo "$as_me: failed program was:" >&5
3307
sed 's/^/| /' conftest.$ac_ext >&5
3311
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3313
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3314
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3315
if test "$ac_test_CXXFLAGS" = set; then
3316
CXXFLAGS=$ac_save_CXXFLAGS
3317
elif test $ac_cv_prog_cxx_g = yes; then
3318
if test "$GXX" = yes; then
3324
if test "$GXX" = yes; then
3330
for ac_declaration in \
3332
'extern "C" void std::exit (int) throw (); using std::exit;' \
3333
'extern "C" void std::exit (int); using std::exit;' \
3334
'extern "C" void exit (int) throw ();' \
3335
'extern "C" void exit (int);' \
3338
cat >conftest.$ac_ext <<_ACEOF
3341
cat confdefs.h >>conftest.$ac_ext
3342
cat >>conftest.$ac_ext <<_ACEOF
3343
/* end confdefs.h. */
3354
rm -f conftest.$ac_objext
3355
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3356
(eval $ac_compile) 2>conftest.er1
3358
grep -v '^ *+' conftest.er1 >conftest.err
3360
cat conftest.err >&5
3361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362
(exit $ac_status); } &&
3363
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3364
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368
(exit $ac_status); }; } &&
3369
{ ac_try='test -s conftest.$ac_objext'
3370
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374
(exit $ac_status); }; }; then
3377
echo "$as_me: failed program was:" >&5
3378
sed 's/^/| /' conftest.$ac_ext >&5
3382
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3383
cat >conftest.$ac_ext <<_ACEOF
3386
cat confdefs.h >>conftest.$ac_ext
3387
cat >>conftest.$ac_ext <<_ACEOF
3388
/* end confdefs.h. */
3398
rm -f conftest.$ac_objext
3399
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400
(eval $ac_compile) 2>conftest.er1
3402
grep -v '^ *+' conftest.er1 >conftest.err
3404
cat conftest.err >&5
3405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406
(exit $ac_status); } &&
3407
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3408
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412
(exit $ac_status); }; } &&
3413
{ ac_try='test -s conftest.$ac_objext'
3414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418
(exit $ac_status); }; }; then
3421
echo "$as_me: failed program was:" >&5
3422
sed 's/^/| /' conftest.$ac_ext >&5
3425
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428
if test -n "$ac_declaration"; then
3429
echo '#ifdef __cplusplus' >>confdefs.h
3430
echo $ac_declaration >>confdefs.h
3431
echo '#endif' >>confdefs.h
3435
ac_cpp='$CPP $CPPFLAGS'
3436
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440
depcc="$CXX" am_compiler_list=
3442
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3443
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3444
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3445
echo $ECHO_N "(cached) $ECHO_C" >&6
3447
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3448
# We make a subdir and do the tests there. Otherwise we can end up
3449
# making bogus files that we don't know about and never remove. For
3450
# instance it was reported that on HP-UX the gcc test will end up
3451
# making a dummy file named `D' -- because `-MD' means `put the output
3454
# Copy depcomp to subdir because otherwise we won't find it if we're
3455
# using a relative directory.
3456
cp "$am_depcomp" conftest.dir
3458
# We will build objects and dependencies in a subdirectory because
3459
# it helps to detect inapplicable dependency modes. For instance
3460
# both Tru64's cc and ICC support -MD to output dependencies as a
3461
# side effect of compilation, but ICC will put the dependencies in
3462
# the current directory while Tru64 will put them in the object
3466
am_cv_CXX_dependencies_compiler_type=none
3467
if test "$am_compiler_list" = ""; then
3468
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3470
for depmode in $am_compiler_list; do
3471
# Setup a source with many dependencies, because some compilers
3472
# like to wrap large dependency lists on column 80 (with \), and
3473
# we should not choose a depcomp mode which is confused by this.
3475
# We need to recreate these files for each test, as the compiler may
3476
# overwrite some of them when testing with obscure command lines.
3477
# This happens at least with the AIX C compiler.
3479
for i in 1 2 3 4 5 6; do
3480
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3481
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3482
# Solaris 8's {/usr,}/bin/sh.
3483
touch sub/conftst$i.h
3485
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3489
# after this tag, mechanisms are not by side-effect, so they'll
3490
# only be used when explicitly requested
3491
if test "x$enable_dependency_tracking" = xyes; then
3499
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3500
# mode. It turns out that the SunPro C++ compiler does not properly
3501
# handle `-M -o', and we need to detect this.
3502
if depmode=$depmode \
3503
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3504
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3505
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3506
>/dev/null 2>conftest.err &&
3507
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3508
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3509
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3510
# icc doesn't choke on unknown options, it will just issue warnings
3511
# or remarks (even with -Werror). So we grep stderr for any message
3512
# that says an option was ignored or not supported.
3513
# When given -MP, icc 7.0 and 7.1 complain thusly:
3514
# icc: Command line warning: ignoring option '-M'; no argument required
3515
# The diagnosis changed in icc 8.0:
3516
# icc: Command line remark: option '-MP' not supported
3517
if (grep 'ignoring option' conftest.err ||
3518
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3519
am_cv_CXX_dependencies_compiler_type=$depmode
3528
am_cv_CXX_dependencies_compiler_type=none
3532
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3533
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3534
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3539
test "x$enable_dependency_tracking" != xno \
3540
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3541
am__fastdepCXX_TRUE=
3542
am__fastdepCXX_FALSE='#'
3544
am__fastdepCXX_TRUE='#'
3545
am__fastdepCXX_FALSE=
3109
3549
# Find a good install program. We prefer a C program (faster),
3420
3860
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423
echo "$as_me:$LINENO: checking for egrep" >&5
3424
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3425
if test "${ac_cv_prog_egrep+set}" = set; then
3426
echo $ECHO_N "(cached) $ECHO_C" >&6
3428
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3429
then ac_cv_prog_egrep='grep -E'
3430
else ac_cv_prog_egrep='egrep'
3433
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3434
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3435
EGREP=$ac_cv_prog_egrep
3439
echo "$as_me:$LINENO: checking for AIX" >&5
3440
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3441
cat >conftest.$ac_ext <<_ACEOF
3444
cat confdefs.h >>conftest.$ac_ext
3445
cat >>conftest.$ac_ext <<_ACEOF
3446
/* end confdefs.h. */
3452
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3453
$EGREP "yes" >/dev/null 2>&1; then
3454
echo "$as_me:$LINENO: result: yes" >&5
3455
echo "${ECHO_T}yes" >&6
3456
cat >>confdefs.h <<\_ACEOF
3457
#define _ALL_SOURCE 1
3461
echo "$as_me:$LINENO: result: no" >&5
3462
echo "${ECHO_T}no" >&6
3468
cat >>confdefs.h <<\_ACEOF
3469
#define _GNU_SOURCE 1
3474
ac_cpp='$CPP $CPPFLAGS'
3475
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3479
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3480
# On Suns, sometimes $CPP names a directory.
3481
if test -n "$CPP" && test -d "$CPP"; then
3484
if test -z "$CPP"; then
3485
if test "${ac_cv_prog_CPP+set}" = set; then
3486
echo $ECHO_N "(cached) $ECHO_C" >&6
3488
# Double quotes because CPP needs to be expanded
3489
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3492
for ac_c_preproc_warn_flag in '' yes
3494
# Use a header file that comes with gcc, so configuring glibc
3495
# with a fresh cross-compiler works.
3496
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3497
# <limits.h> exists even on freestanding compilers.
3498
# On the NeXT, cc -E runs the code through the compiler's parser,
3499
# not just through cpp. "Syntax error" is here to catch this case.
3500
cat >conftest.$ac_ext <<_ACEOF
3503
cat confdefs.h >>conftest.$ac_ext
3504
cat >>conftest.$ac_ext <<_ACEOF
3505
/* end confdefs.h. */
3507
# include <limits.h>
3509
# include <assert.h>
3513
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3514
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3516
grep -v '^ *+' conftest.er1 >conftest.err
3518
cat conftest.err >&5
3519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520
(exit $ac_status); } >/dev/null; then
3521
if test -s conftest.err; then
3522
ac_cpp_err=$ac_c_preproc_warn_flag
3523
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3530
if test -z "$ac_cpp_err"; then
3533
echo "$as_me: failed program was:" >&5
3534
sed 's/^/| /' conftest.$ac_ext >&5
3536
# Broken: fails on valid input.
3539
rm -f conftest.err conftest.$ac_ext
3541
# OK, works on sane cases. Now check whether non-existent headers
3542
# can be detected and how.
3543
cat >conftest.$ac_ext <<_ACEOF
3546
cat confdefs.h >>conftest.$ac_ext
3547
cat >>conftest.$ac_ext <<_ACEOF
3548
/* end confdefs.h. */
3549
#include <ac_nonexistent.h>
3551
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3552
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3554
grep -v '^ *+' conftest.er1 >conftest.err
3556
cat conftest.err >&5
3557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558
(exit $ac_status); } >/dev/null; then
3559
if test -s conftest.err; then
3560
ac_cpp_err=$ac_c_preproc_warn_flag
3561
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568
if test -z "$ac_cpp_err"; then
3569
# Broken: success on invalid input.
3572
echo "$as_me: failed program was:" >&5
3573
sed 's/^/| /' conftest.$ac_ext >&5
3575
# Passes both tests.
3579
rm -f conftest.err conftest.$ac_ext
3582
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583
rm -f conftest.err conftest.$ac_ext
3584
if $ac_preproc_ok; then
3596
echo "$as_me:$LINENO: result: $CPP" >&5
3597
echo "${ECHO_T}$CPP" >&6
3599
for ac_c_preproc_warn_flag in '' yes
3601
# Use a header file that comes with gcc, so configuring glibc
3602
# with a fresh cross-compiler works.
3603
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604
# <limits.h> exists even on freestanding compilers.
3605
# On the NeXT, cc -E runs the code through the compiler's parser,
3606
# not just through cpp. "Syntax error" is here to catch this case.
3607
cat >conftest.$ac_ext <<_ACEOF
3610
cat confdefs.h >>conftest.$ac_ext
3611
cat >>conftest.$ac_ext <<_ACEOF
3612
/* end confdefs.h. */
3614
# include <limits.h>
3616
# include <assert.h>
3620
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3621
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3623
grep -v '^ *+' conftest.er1 >conftest.err
3625
cat conftest.err >&5
3626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627
(exit $ac_status); } >/dev/null; then
3628
if test -s conftest.err; then
3629
ac_cpp_err=$ac_c_preproc_warn_flag
3630
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3637
if test -z "$ac_cpp_err"; then
3640
echo "$as_me: failed program was:" >&5
3641
sed 's/^/| /' conftest.$ac_ext >&5
3643
# Broken: fails on valid input.
3646
rm -f conftest.err conftest.$ac_ext
3648
# OK, works on sane cases. Now check whether non-existent headers
3649
# can be detected and how.
3650
cat >conftest.$ac_ext <<_ACEOF
3653
cat confdefs.h >>conftest.$ac_ext
3654
cat >>conftest.$ac_ext <<_ACEOF
3655
/* end confdefs.h. */
3656
#include <ac_nonexistent.h>
3658
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3659
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661
grep -v '^ *+' conftest.er1 >conftest.err
3663
cat conftest.err >&5
3664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665
(exit $ac_status); } >/dev/null; then
3666
if test -s conftest.err; then
3667
ac_cpp_err=$ac_c_preproc_warn_flag
3668
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3675
if test -z "$ac_cpp_err"; then
3676
# Broken: success on invalid input.
3679
echo "$as_me: failed program was:" >&5
3680
sed 's/^/| /' conftest.$ac_ext >&5
3682
# Passes both tests.
3686
rm -f conftest.err conftest.$ac_ext
3689
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3690
rm -f conftest.err conftest.$ac_ext
3691
if $ac_preproc_ok; then
3694
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3695
See \`config.log' for more details." >&5
3696
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3697
See \`config.log' for more details." >&2;}
3698
{ (exit 1); exit 1; }; }
3702
ac_cpp='$CPP $CPPFLAGS'
3703
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710
echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3711
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3712
if test "${am_cv_prog_cc_stdc+set}" = set; then
3713
echo $ECHO_N "(cached) $ECHO_C" >&6
3715
am_cv_prog_cc_stdc=no
3717
# Don't try gcc -ansi; that turns off useful extensions and
3718
# breaks some systems' header files.
3719
# AIX -qlanglvl=ansi
3720
# Ultrix and OSF/1 -std1
3721
# HP-UX 10.20 and later -Ae
3722
# HP-UX older versions -Aa -D_HPUX_SOURCE
3723
# SVR4 -Xc -D__EXTENSIONS__
3724
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3726
CC="$ac_save_CC $ac_arg"
3727
cat >conftest.$ac_ext <<_ACEOF
3730
cat confdefs.h >>conftest.$ac_ext
3731
cat >>conftest.$ac_ext <<_ACEOF
3732
/* end confdefs.h. */
3735
#include <sys/types.h>
3736
#include <sys/stat.h>
3737
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3738
struct buf { int x; };
3739
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3740
static char *e (p, i)
3746
static char *f (char * (*g) (char **, int), char **p, ...)
3751
s = g (p, va_arg (v,int));
3755
int test (int i, double x);
3756
struct s1 {int (*f) (int a);};
3757
struct s2 {int (*f) (double a);};
3758
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3766
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3772
rm -f conftest.$ac_objext
3773
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774
(eval $ac_compile) 2>conftest.er1
3776
grep -v '^ *+' conftest.er1 >conftest.err
3778
cat conftest.err >&5
3779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780
(exit $ac_status); } &&
3781
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3782
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786
(exit $ac_status); }; } &&
3787
{ ac_try='test -s conftest.$ac_objext'
3788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792
(exit $ac_status); }; }; then
3793
am_cv_prog_cc_stdc="$ac_arg"; break
3795
echo "$as_me: failed program was:" >&5
3796
sed 's/^/| /' conftest.$ac_ext >&5
3799
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805
if test -z "$am_cv_prog_cc_stdc"; then
3806
echo "$as_me:$LINENO: result: none needed" >&5
3807
echo "${ECHO_T}none needed" >&6
3809
echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3810
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3812
case "x$am_cv_prog_cc_stdc" in
3814
*) CC="$CC $am_cv_prog_cc_stdc" ;;
3817
3865
# Check whether --enable-shared or --disable-shared was given.
3818
3866
if test "${enable_shared+set}" = set; then
4948
5255
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949
5256
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950
5257
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4951
if test -n "$ac_tool_prefix"; then
4952
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4954
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4955
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4956
echo "$as_me:$LINENO: checking for $ac_word" >&5
4957
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958
if test "${ac_cv_prog_CXX+set}" = set; then
4959
echo $ECHO_N "(cached) $ECHO_C" >&6
4961
if test -n "$CXX"; then
4962
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968
test -z "$as_dir" && as_dir=.
4969
for ac_exec_ext in '' $ac_executable_extensions; do
4970
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4972
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4981
if test -n "$CXX"; then
4982
echo "$as_me:$LINENO: result: $CXX" >&5
4983
echo "${ECHO_T}$CXX" >&6
4985
echo "$as_me:$LINENO: result: no" >&5
4986
echo "${ECHO_T}no" >&6
4989
test -n "$CXX" && break
4992
if test -z "$CXX"; then
4994
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4996
# Extract the first word of "$ac_prog", so it can be a program name with args.
4997
set dummy $ac_prog; ac_word=$2
4998
echo "$as_me:$LINENO: checking for $ac_word" >&5
4999
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5000
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5001
echo $ECHO_N "(cached) $ECHO_C" >&6
5003
if test -n "$ac_ct_CXX"; then
5004
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5006
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010
test -z "$as_dir" && as_dir=.
5011
for ac_exec_ext in '' $ac_executable_extensions; do
5012
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013
ac_cv_prog_ac_ct_CXX="$ac_prog"
5014
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5023
if test -n "$ac_ct_CXX"; then
5024
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5025
echo "${ECHO_T}$ac_ct_CXX" >&6
5027
echo "$as_me:$LINENO: result: no" >&5
5028
echo "${ECHO_T}no" >&6
5031
test -n "$ac_ct_CXX" && break
5033
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5039
# Provide some information about the compiler.
5040
echo "$as_me:$LINENO:" \
5041
"checking for C++ compiler version" >&5
5042
ac_compiler=`set X $ac_compile; echo $2`
5043
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5044
(eval $ac_compiler --version </dev/null >&5) 2>&5
5046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047
(exit $ac_status); }
5048
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5049
(eval $ac_compiler -v </dev/null >&5) 2>&5
5051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052
(exit $ac_status); }
5053
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5054
(eval $ac_compiler -V </dev/null >&5) 2>&5
5056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057
(exit $ac_status); }
5059
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5060
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5061
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5062
echo $ECHO_N "(cached) $ECHO_C" >&6
5064
cat >conftest.$ac_ext <<_ACEOF
5067
cat confdefs.h >>conftest.$ac_ext
5068
cat >>conftest.$ac_ext <<_ACEOF
5069
/* end confdefs.h. */
5082
rm -f conftest.$ac_objext
5083
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5084
(eval $ac_compile) 2>conftest.er1
5086
grep -v '^ *+' conftest.er1 >conftest.err
5088
cat conftest.err >&5
5089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090
(exit $ac_status); } &&
5091
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5092
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096
(exit $ac_status); }; } &&
5097
{ ac_try='test -s conftest.$ac_objext'
5098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102
(exit $ac_status); }; }; then
5105
echo "$as_me: failed program was:" >&5
5106
sed 's/^/| /' conftest.$ac_ext >&5
5110
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5111
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5114
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5115
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5116
GXX=`test $ac_compiler_gnu = yes && echo yes`
5117
ac_test_CXXFLAGS=${CXXFLAGS+set}
5118
ac_save_CXXFLAGS=$CXXFLAGS
5120
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5121
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5122
if test "${ac_cv_prog_cxx_g+set}" = set; then
5123
echo $ECHO_N "(cached) $ECHO_C" >&6
5125
cat >conftest.$ac_ext <<_ACEOF
5128
cat confdefs.h >>conftest.$ac_ext
5129
cat >>conftest.$ac_ext <<_ACEOF
5130
/* end confdefs.h. */
5140
rm -f conftest.$ac_objext
5141
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5142
(eval $ac_compile) 2>conftest.er1
5144
grep -v '^ *+' conftest.er1 >conftest.err
5146
cat conftest.err >&5
5147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148
(exit $ac_status); } &&
5149
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154
(exit $ac_status); }; } &&
5155
{ ac_try='test -s conftest.$ac_objext'
5156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160
(exit $ac_status); }; }; then
5161
ac_cv_prog_cxx_g=yes
5163
echo "$as_me: failed program was:" >&5
5164
sed 's/^/| /' conftest.$ac_ext >&5
5168
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5170
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5171
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5172
if test "$ac_test_CXXFLAGS" = set; then
5173
CXXFLAGS=$ac_save_CXXFLAGS
5174
elif test $ac_cv_prog_cxx_g = yes; then
5175
if test "$GXX" = yes; then
5181
if test "$GXX" = yes; then
5187
for ac_declaration in \
5189
'extern "C" void std::exit (int) throw (); using std::exit;' \
5190
'extern "C" void std::exit (int); using std::exit;' \
5191
'extern "C" void exit (int) throw ();' \
5192
'extern "C" void exit (int);' \
5195
cat >conftest.$ac_ext <<_ACEOF
5198
cat confdefs.h >>conftest.$ac_ext
5199
cat >>conftest.$ac_ext <<_ACEOF
5200
/* end confdefs.h. */
5211
rm -f conftest.$ac_objext
5212
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213
(eval $ac_compile) 2>conftest.er1
5215
grep -v '^ *+' conftest.er1 >conftest.err
5217
cat conftest.err >&5
5218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219
(exit $ac_status); } &&
5220
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225
(exit $ac_status); }; } &&
5226
{ ac_try='test -s conftest.$ac_objext'
5227
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231
(exit $ac_status); }; }; then
5234
echo "$as_me: failed program was:" >&5
5235
sed 's/^/| /' conftest.$ac_ext >&5
5239
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5240
cat >conftest.$ac_ext <<_ACEOF
5243
cat confdefs.h >>conftest.$ac_ext
5244
cat >>conftest.$ac_ext <<_ACEOF
5245
/* end confdefs.h. */
5255
rm -f conftest.$ac_objext
5256
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5257
(eval $ac_compile) 2>conftest.er1
5259
grep -v '^ *+' conftest.er1 >conftest.err
5261
cat conftest.err >&5
5262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263
(exit $ac_status); } &&
5264
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269
(exit $ac_status); }; } &&
5270
{ ac_try='test -s conftest.$ac_objext'
5271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275
(exit $ac_status); }; }; then
5278
echo "$as_me: failed program was:" >&5
5279
sed 's/^/| /' conftest.$ac_ext >&5
5282
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5285
if test -n "$ac_declaration"; then
5286
echo '#ifdef __cplusplus' >>confdefs.h
5287
echo $ac_declaration >>confdefs.h
5288
echo '#endif' >>confdefs.h
5292
ac_cpp='$CXXCPP $CPPFLAGS'
5293
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5297
depcc="$CXX" am_compiler_list=
5299
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5300
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5301
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5302
echo $ECHO_N "(cached) $ECHO_C" >&6
5304
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5305
# We make a subdir and do the tests there. Otherwise we can end up
5306
# making bogus files that we don't know about and never remove. For
5307
# instance it was reported that on HP-UX the gcc test will end up
5308
# making a dummy file named `D' -- because `-MD' means `put the output
5311
# Copy depcomp to subdir because otherwise we won't find it if we're
5312
# using a relative directory.
5313
cp "$am_depcomp" conftest.dir
5315
# We will build objects and dependencies in a subdirectory because
5316
# it helps to detect inapplicable dependency modes. For instance
5317
# both Tru64's cc and ICC support -MD to output dependencies as a
5318
# side effect of compilation, but ICC will put the dependencies in
5319
# the current directory while Tru64 will put them in the object
5323
am_cv_CXX_dependencies_compiler_type=none
5324
if test "$am_compiler_list" = ""; then
5325
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5327
for depmode in $am_compiler_list; do
5328
# Setup a source with many dependencies, because some compilers
5329
# like to wrap large dependency lists on column 80 (with \), and
5330
# we should not choose a depcomp mode which is confused by this.
5332
# We need to recreate these files for each test, as the compiler may
5333
# overwrite some of them when testing with obscure command lines.
5334
# This happens at least with the AIX C compiler.
5336
for i in 1 2 3 4 5 6; do
5337
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5340
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5344
# after this tag, mechanisms are not by side-effect, so they'll
5345
# only be used when explicitly requested
5346
if test "x$enable_dependency_tracking" = xyes; then
5354
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5355
# mode. It turns out that the SunPro C++ compiler does not properly
5356
# handle `-M -o', and we need to detect this.
5357
if depmode=$depmode \
5358
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5359
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5360
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5361
>/dev/null 2>conftest.err &&
5362
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5363
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5364
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5365
# icc doesn't choke on unknown options, it will just issue warnings
5366
# (even with -Werror). So we grep stderr for any message
5367
# that says an option was ignored.
5368
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5369
am_cv_CXX_dependencies_compiler_type=$depmode
5378
am_cv_CXX_dependencies_compiler_type=none
5382
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5383
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5384
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5389
test "x$enable_dependency_tracking" != xno \
5390
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5391
am__fastdepCXX_TRUE=
5392
am__fastdepCXX_FALSE='#'
5394
am__fastdepCXX_TRUE='#'
5395
am__fastdepCXX_FALSE=
5400
ac_cpp='$CXXCPP $CPPFLAGS'
5401
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5404
5258
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5405
5259
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5406
5260
if test -z "$CXXCPP"; then
19648
19627
save_cxxflags="$save_cxxflags -fsigned-char"
19650
19629
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19651
CFLAGS=$save_cflags
19652
CXXFLAGS=$save_cxxflags
19655
# Check whether --enable-debug or --disable-debug was given.
19656
if test "${enable_debug+set}" = set; then
19657
enableval="$enable_debug"
19660
# Check whether --enable-debug-gdb or --disable-debug-gdb was given.
19661
if test "${enable_debug_gdb+set}" = set; then
19662
enableval="$enable_debug_gdb"
19665
# Check whether --enable-debug-mem or --disable-debug-mem was given.
19666
if test "${enable_debug_mem+set}" = set; then
19667
enableval="$enable_debug_mem"
19671
# This defines either DEBUG or NDEBUG. We could provide a third
19672
# option where neither are defined.
19674
case ${enable_debug:=yes} in
19677
cat >>confdefs.h <<\_ACEOF
19681
case " $CFLAGS " in
19682
*[\ \ ]-g[\ \ ]*) ;;
19683
*) CFLAGS="$CFLAGS -g" ;;
19686
case ${enable_debug_gdb:=no} in
19687
yes) CFLAGS="$CFLAGS -ggdb" ;;
19690
case ${enable_debug_mem:=no} in
19693
cat >>confdefs.h <<\_ACEOF
19694
#define DEBUG_MEM 1
19698
# We count on this code coming after DEBUG_MEM is defined...
19701
DFLAGS="$DFLAGS DEBUG_MEM"
19702
LDADD="$LDADD -ldmalloc"
19708
enable_debug_gdb=no
19709
enable_debug_mem=no
19711
cat >>confdefs.h <<\_ACEOF
19721
echo "$as_me:$LINENO: checking for GGZ library: libggz" >&5
19630
CFLAGS=$save_cflags
19631
CXXFLAGS=$save_cxxflags
19634
echo "$as_me:$LINENO: checking for GGZ library: libggz" >&5
19722
19635
echo $ECHO_N "checking for GGZ library: libggz... $ECHO_C" >&6
19724
if test "${ggz_cv_path_libggz+set}" = set; then
19637
ac_libggz_includes=NO ac_libggz_libraries=NO
19638
libggz_libraries=""
19642
# Check whether --with-libggz-dir or --without-libggz-dir was given.
19643
if test "${with_libggz_dir+set}" = set; then
19644
withval="$with_libggz_dir"
19645
ac_libggz_includes="$withval"/include
19646
ac_libggz_libraries="$withval"/lib
19650
# Check whether --with-libggz-includes or --without-libggz-includes was given.
19651
if test "${with_libggz_includes+set}" = set; then
19652
withval="$with_libggz_includes"
19653
ac_libggz_includes="$withval"
19657
# Check whether --with-libggz-libraries or --without-libggz-libraries was given.
19658
if test "${with_libggz_libraries+set}" = set; then
19659
withval="$with_libggz_libraries"
19660
ac_libggz_libraries="$withval"
19664
if test "${ac_cv_have_libggz+set}" = set; then
19725
19665
echo $ECHO_N "(cached) $ECHO_C" >&6
19728
ggz_ggz_includes=NO
19729
ggz_ggz_libraries=NO
19732
# Check whether --with-ggz-dir or --without-ggz-dir was given.
19733
if test "${with_ggz_dir+set}" = set; then
19734
withval="$with_ggz_dir"
19735
ggz_ggz_includes="$withval"/include
19736
ggz_ggz_libraries="$withval"/lib
19740
# Check whether --with-ggz-inc or --without-ggz-inc was given.
19741
if test "${with_ggz_inc+set}" = set; then
19742
withval="$with_ggz_inc"
19743
ggz_ggz_includes="$withval"
19746
# Check whether --with-ggz-lib or --without-ggz-lib was given.
19747
if test "${with_ggz_lib+set}" = set; then
19748
withval="$with_ggz_lib"
19749
ggz_ggz_libraries="$withval"
19754
for i in $ggz_ggz_includes $ggz_stdinc; do
19757
if test "x$i" = "x$j"; then
19761
if test "x$i" = "xNO"; then
19764
if test "x$add" = "xyes"; then
19772
for i in $ggz_incdirs;
19776
echo "configure: 19776: $i/$j" >&5
19777
if test -r "$i/$j"; then
19778
echo "taking that" >&5
19785
ggz_ggz_includes="$ggz_incdir"
19789
for i in $ggz_ggz_libraries $ggz_stdlib; do
19792
if test "x$i" = "x$j"; then
19796
if test "x$i" = "xNO"; then
19799
if test "x$add" = "xyes"; then
19807
for i in $ggz_libdirs;
19809
for j in libggz.la;
19811
echo "configure: 19811: $i/$j" >&5
19812
if test -r "$i/$j"; then
19813
echo "taking that" >&5
19820
ggz_ggz_libraries="$ggz_libdir"
19822
if test "$ggz_ggz_includes" = NO || test "$ggz_ggz_libraries" = NO; then
19824
ggz_cv_path_libggz="have_libggz=$have_libggz \
19825
ggz_ggz_includes= \
19826
ggz_ggz_libraries="
19829
ggz_cv_path_libggz="have_libggz=$have_libggz \
19830
ggz_ggz_includes=$ggz_ggz_includes \
19831
ggz_ggz_libraries=$ggz_ggz_libraries"
19837
if test "$ggz_ggz_includes" = NO || test "$ggz_ggz_libraries" = NO; then
19838
if test "xGGZ" = xignore; then
19839
echo "$as_me:$LINENO: result: no (ignored)" >&5
19840
echo "${ECHO_T}no (ignored)" >&6
19843
echo "$as_me:$LINENO: result: no" >&5
19844
echo "${ECHO_T}no" >&6
19845
{ { echo "$as_me:$LINENO: error:
19668
libggz_incdirs="$ac_libggz_includes $ac_ggz_stdinc"
19671
for i in $libggz_incdirs; do
19674
if test "x$i" = "x$j"; then
19678
if test "x$i" = "xNO"; then
19681
if test "x$add" = "xyes"; then
19685
libggz_incdirs=$ret
19687
libggz_header=ggz.h
19691
for i in $libggz_incdirs;
19693
for j in $libggz_header;
19695
echo "configure: 19695: $i/$j" >&5
19696
if test -r "$i/$j"; then
19697
echo "taking that" >&5
19704
ac_libggz_includes="$libggz_incdir"
19706
libggz_libdirs="$ac_libggz_libraries $ac_ggz_stdlib"
19709
for i in $libggz_libdirs; do
19712
if test "x$i" = "x$j"; then
19716
if test "x$i" = "xNO"; then
19719
if test "x$add" = "xyes"; then
19723
libggz_libdirs=$ret
19727
for dir in $libggz_libdirs; do
19728
try="ls -1 $dir/libggz.la $dir/libggz.so"
19729
if test -n "`$try 2> /dev/null`"; then libggz_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
19732
ac_libggz_libraries="$libggz_libdir"
19734
if test "$ac_libggz_includes" = NO || test "$ac_libggz_libraries" = NO; then
19735
ac_cv_have_libggz="have_libggz=no"
19736
ac_libggz_notfound=""
19744
eval "$ac_cv_have_libggz"
19746
if test "$have_libggz" != yes; then
19747
if test "x" = "xignore"; then
19748
echo "$as_me:$LINENO: result: $have_libggz (ignored)" >&5
19749
echo "${ECHO_T}$have_libggz (ignored)" >&6
19751
echo "$as_me:$LINENO: result: $have_libggz" >&5
19752
echo "${ECHO_T}$have_libggz" >&6
19753
if test "x" = "x"; then
19755
{ echo "$as_me:$LINENO: WARNING: no
19846
19756
The library 'libggz' does not seem to be installed correctly.
19847
Headers searched in: $ggz_incdirs
19848
Libraries searched in: $ggz_libdirs
19757
Headers searched in: $libggz_incdirs
19758
Libraries searched in: $libggz_libdirs
19849
19759
Please read QuickStart.GGZ in order to fix this.
19851
echo "$as_me: error:
19761
echo "$as_me: WARNING: no
19852
19762
The library 'libggz' does not seem to be installed correctly.
19853
Headers searched in: $ggz_incdirs
19854
Libraries searched in: $ggz_libdirs
19763
Headers searched in: $libggz_incdirs
19764
Libraries searched in: $libggz_libdirs
19855
19765
Please read QuickStart.GGZ in order to fix this.
19857
{ (exit 1); exit 1; }; }
19861
echo "$as_me:$LINENO: result: $have_libggz (libraries $ggz_ggz_libraries, headers $ggz_ggz_includes)" >&5
19862
echo "${ECHO_T}$have_libggz (libraries $ggz_ggz_libraries, headers $ggz_ggz_includes)" >&6
19866
eval "$ggz_cv_path_libggz"
19868
if test "$have_libggz" != yes; then
19869
if test "x" != xignore; then
19870
: # perform actions given by argument 2.
19874
libggz_libraries="$ggz_ggz_libraries"
19877
libggz_includes="$ggz_ggz_includes"
19880
if test "$ggz_prefix_incdir" != "$libggz_includes"; then
19881
LIBGGZ_INCLUDES="-isystem $libggz_includes"
19885
if test "$ggz_prefix_libdir" != "$libggz_libraries"; then
19886
LIBGGZ_LDFLAGS="-L$libggz_libraries"
19893
# perform actions given by argument 1.
19903
# Check whether --with-replace-ggz or --without-replace-ggz was given.
19904
if test "${with_replace_ggz+set}" = set; then
19905
withval="$with_replace_ggz"
19906
replace_ggz="$withval"
19912
# Check whether --with-ggzconfdir or --without-ggzconfdir was given.
19913
if test "${with_ggzconfdir+set}" = set; then
19914
withval="$with_ggzconfdir"
19915
ggzconfdir="$withval"
19918
if test "x${sysconfdir}" = 'x${prefix}/etc'; then
19919
if test "x${prefix}" = "xNONE"; then
19920
ggzconfdir="${ac_default_prefix}/etc/${replace_ggz}"
19922
ggzconfdir="${prefix}/etc/${replace_ggz}"
19925
ggzconfdir="${sysconfdir}/${replace_ggz}"
19931
cat >>confdefs.h <<_ACEOF
19932
#define GGZCONFDIR "${ggzconfdir}"
19943
# Check whether --with-replace-ggz or --without-replace-ggz was given.
19944
if test "${with_replace_ggz+set}" = set; then
19945
withval="$with_replace_ggz"
19946
replace_ggz="$withval"
19952
# Check whether --with-ggzlibdir or --without-ggzlibdir was given.
19953
if test "${with_ggzlibdir+set}" = set; then
19954
withval="$with_ggzlibdir"
19955
ggzlibdir="$withval"
19958
if test "x${libdir}" = 'x${exec_prefix}/lib'; then
19959
if test "x${exec_prefix}" = "xNONE"; then
19960
if test "x${prefix}" = "xNONE"; then
19961
ggzlibdir="${ac_default_prefix}/lib/${replace_ggz}"
19963
ggzlibdir="${prefix}/lib/${replace_ggz}"
19966
ggzlibdir="${exec_prefix}/lib/${replace_ggz}"
19969
ggzlibdir="${libdir}/${replace_ggz}"
19975
cat >>confdefs.h <<_ACEOF
19976
#define GGZLIBDIR "${ggzlibdir}"
19987
# Check whether --with-replace-ggz or --without-replace-ggz was given.
19988
if test "${with_replace_ggz+set}" = set; then
19989
withval="$with_replace_ggz"
19990
replace_ggz="$withval"
19996
# Check whether --with-ggzdatadir or --without-ggzdatadir was given.
19997
if test "${with_ggzdatadir+set}" = set; then
19998
withval="$with_ggzdatadir"
19999
ggzdatadir="$withval"
20002
if test "x${datadir}" = 'x${prefix}/share'; then
20003
if test "x${prefix}" = "xNONE"; then
20004
ggzdatadir="${ac_default_prefix}/share/${replace_ggz}"
20006
ggzdatadir="${prefix}/share/${replace_ggz}"
20009
ggzdatadir="${datadir}/${replace_ggz}"
20015
cat >>confdefs.h <<_ACEOF
20016
#define GGZDATADIR "${ggzdatadir}"
20025
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20026
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20027
if test "${ac_cv_header_stdc+set}" = set; then
20028
echo $ECHO_N "(cached) $ECHO_C" >&6
20030
cat >conftest.$ac_ext <<_ACEOF
20033
cat confdefs.h >>conftest.$ac_ext
20034
cat >>conftest.$ac_ext <<_ACEOF
20035
/* end confdefs.h. */
20036
#include <stdlib.h>
20037
#include <stdarg.h>
20038
#include <string.h>
20049
rm -f conftest.$ac_objext
20050
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20051
(eval $ac_compile) 2>conftest.er1
20053
grep -v '^ *+' conftest.er1 >conftest.err
20055
cat conftest.err >&5
20056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057
(exit $ac_status); } &&
20058
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060
(eval $ac_try) 2>&5
20062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063
(exit $ac_status); }; } &&
20064
{ ac_try='test -s conftest.$ac_objext'
20065
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066
(eval $ac_try) 2>&5
20068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069
(exit $ac_status); }; }; then
20070
ac_cv_header_stdc=yes
20072
echo "$as_me: failed program was:" >&5
20073
sed 's/^/| /' conftest.$ac_ext >&5
20075
ac_cv_header_stdc=no
20077
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20079
if test $ac_cv_header_stdc = yes; then
20080
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20081
cat >conftest.$ac_ext <<_ACEOF
20084
cat confdefs.h >>conftest.$ac_ext
20085
cat >>conftest.$ac_ext <<_ACEOF
20086
/* end confdefs.h. */
20087
#include <string.h>
20090
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20091
$EGREP "memchr" >/dev/null 2>&1; then
20094
ac_cv_header_stdc=no
20100
if test $ac_cv_header_stdc = yes; then
20101
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20102
cat >conftest.$ac_ext <<_ACEOF
20105
cat confdefs.h >>conftest.$ac_ext
20106
cat >>conftest.$ac_ext <<_ACEOF
20107
/* end confdefs.h. */
20108
#include <stdlib.h>
20111
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20112
$EGREP "free" >/dev/null 2>&1; then
20115
ac_cv_header_stdc=no
20121
if test $ac_cv_header_stdc = yes; then
20122
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20123
if test "$cross_compiling" = yes; then
20126
cat >conftest.$ac_ext <<_ACEOF
20129
cat confdefs.h >>conftest.$ac_ext
20130
cat >>conftest.$ac_ext <<_ACEOF
20131
/* end confdefs.h. */
20133
#if ((' ' & 0x0FF) == 0x020)
20134
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20135
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20137
# define ISLOWER(c) \
20138
(('a' <= (c) && (c) <= 'i') \
20139
|| ('j' <= (c) && (c) <= 'r') \
20140
|| ('s' <= (c) && (c) <= 'z'))
20141
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20144
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20149
for (i = 0; i < 256; i++)
20150
if (XOR (islower (i), ISLOWER (i))
20151
|| toupper (i) != TOUPPER (i))
20156
rm -f conftest$ac_exeext
20157
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20158
(eval $ac_link) 2>&5
20160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163
(eval $ac_try) 2>&5
20165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166
(exit $ac_status); }; }; then
20169
echo "$as_me: program exited with status $ac_status" >&5
20170
echo "$as_me: failed program was:" >&5
20171
sed 's/^/| /' conftest.$ac_ext >&5
20173
( exit $ac_status )
20174
ac_cv_header_stdc=no
20176
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20180
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20181
echo "${ECHO_T}$ac_cv_header_stdc" >&6
20182
if test $ac_cv_header_stdc = yes; then
20184
cat >>confdefs.h <<\_ACEOF
20185
#define STDC_HEADERS 1
19771
# perform actions given by argument 2.
19775
ac_cv_have_libggz="have_libggz=yes \
19776
ac_libggz_includes=$ac_libggz_includes ac_libggz_libraries=$ac_libggz_libraries"
19777
echo "$as_me:$LINENO: result: $have_libggz (libraries $ac_libggz_libraries, headers $ac_libggz_includes)" >&5
19778
echo "${ECHO_T}$have_libggz (libraries $ac_libggz_libraries, headers $ac_libggz_includes)" >&6
19780
libggz_libraries="$ac_libggz_libraries"
19781
libggz_includes="$ac_libggz_includes"
19786
LIBGGZ_INCLUDES="-isystem $libggz_includes"
19787
LIBGGZ_LDFLAGS="-L$libggz_libraries"
19795
# perform actions given by argument 1.
19801
# Extract the first word of "xgettext", so it can be a program name with args.
19802
set dummy xgettext; ac_word=$2
19803
echo "$as_me:$LINENO: checking for $ac_word" >&5
19804
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19805
if test "${ac_cv_path_GETTEXT+set}" = set; then
19806
echo $ECHO_N "(cached) $ECHO_C" >&6
19810
ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
19813
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19814
for as_dir in $PATH
19817
test -z "$as_dir" && as_dir=.
19818
for ac_exec_ext in '' $ac_executable_extensions; do
19819
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19820
ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
19821
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19830
GETTEXT=$ac_cv_path_GETTEXT
19832
if test -n "$GETTEXT"; then
19833
echo "$as_me:$LINENO: result: $GETTEXT" >&5
19834
echo "${ECHO_T}$GETTEXT" >&6
19836
echo "$as_me:$LINENO: result: no" >&5
19837
echo "${ECHO_T}no" >&6
19840
# Extract the first word of "msgfmt", so it can be a program name with args.
19841
set dummy msgfmt; ac_word=$2
19842
echo "$as_me:$LINENO: checking for $ac_word" >&5
19843
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19844
if test "${ac_cv_path_MSGFMT+set}" = set; then
19845
echo $ECHO_N "(cached) $ECHO_C" >&6
19849
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19852
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19853
for as_dir in $PATH
19856
test -z "$as_dir" && as_dir=.
19857
for ac_exec_ext in '' $ac_executable_extensions; do
19858
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19859
ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19860
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19869
MSGFMT=$ac_cv_path_MSGFMT
19871
if test -n "$MSGFMT"; then
19872
echo "$as_me:$LINENO: result: $MSGFMT" >&5
19873
echo "${ECHO_T}$MSGFMT" >&6
19875
echo "$as_me:$LINENO: result: no" >&5
19876
echo "${ECHO_T}no" >&6
19879
# Extract the first word of "msgmerge", so it can be a program name with args.
19880
set dummy msgmerge; ac_word=$2
19881
echo "$as_me:$LINENO: checking for $ac_word" >&5
19882
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19883
if test "${ac_cv_path_MSGMERGE+set}" = set; then
19884
echo $ECHO_N "(cached) $ECHO_C" >&6
19888
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
19891
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19892
for as_dir in $PATH
19895
test -z "$as_dir" && as_dir=.
19896
for ac_exec_ext in '' $ac_executable_extensions; do
19897
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19898
ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
19899
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19908
MSGMERGE=$ac_cv_path_MSGMERGE
19910
if test -n "$MSGMERGE"; then
19911
echo "$as_me:$LINENO: result: $MSGMERGE" >&5
19912
echo "${ECHO_T}$MSGMERGE" >&6
19914
echo "$as_me:$LINENO: result: no" >&5
19915
echo "${ECHO_T}no" >&6
19920
if test "x$GETTEXT" = "x"; then intl=0; fi
19921
if test "x$MSGFMT" = "x"; then intl=0; fi
19922
if test "x$MSGMERGE" = "x"; then intl=0; fi
19926
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
19927
if test "${with_libiconv_prefix+set}" = set; then
19928
withval="$with_libiconv_prefix"
19930
for dir in `echo "$withval" | tr : ' '`; do
19931
if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
19932
if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
19937
echo "$as_me:$LINENO: checking for iconv" >&5
19938
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
19939
if test "${am_cv_func_iconv+set}" = set; then
19940
echo $ECHO_N "(cached) $ECHO_C" >&6
19943
am_cv_func_iconv="no, consider installing GNU libiconv"
19945
cat >conftest.$ac_ext <<_ACEOF
19948
cat confdefs.h >>conftest.$ac_ext
19949
cat >>conftest.$ac_ext <<_ACEOF
19950
/* end confdefs.h. */
19951
#include <stdlib.h>
19956
iconv_t cd = iconv_open("","");
19957
iconv(cd,NULL,NULL,NULL,NULL);
19963
rm -f conftest.$ac_objext conftest$ac_exeext
19964
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19965
(eval $ac_link) 2>conftest.er1
19967
grep -v '^ *+' conftest.er1 >conftest.err
19969
cat conftest.err >&5
19970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971
(exit $ac_status); } &&
19972
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19973
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974
(eval $ac_try) 2>&5
19976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977
(exit $ac_status); }; } &&
19978
{ ac_try='test -s conftest$ac_exeext'
19979
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980
(eval $ac_try) 2>&5
19982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983
(exit $ac_status); }; }; then
19984
am_cv_func_iconv=yes
19986
echo "$as_me: failed program was:" >&5
19987
sed 's/^/| /' conftest.$ac_ext >&5
19990
rm -f conftest.err conftest.$ac_objext \
19991
conftest$ac_exeext conftest.$ac_ext
19992
if test "$am_cv_func_iconv" != yes; then
19993
am_save_LIBS="$LIBS"
19994
LIBS="$LIBS -liconv"
19995
cat >conftest.$ac_ext <<_ACEOF
19998
cat confdefs.h >>conftest.$ac_ext
19999
cat >>conftest.$ac_ext <<_ACEOF
20000
/* end confdefs.h. */
20001
#include <stdlib.h>
20006
iconv_t cd = iconv_open("","");
20007
iconv(cd,NULL,NULL,NULL,NULL);
20013
rm -f conftest.$ac_objext conftest$ac_exeext
20014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20015
(eval $ac_link) 2>conftest.er1
20017
grep -v '^ *+' conftest.er1 >conftest.err
20019
cat conftest.err >&5
20020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021
(exit $ac_status); } &&
20022
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20023
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024
(eval $ac_try) 2>&5
20026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027
(exit $ac_status); }; } &&
20028
{ ac_try='test -s conftest$ac_exeext'
20029
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030
(eval $ac_try) 2>&5
20032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033
(exit $ac_status); }; }; then
20034
am_cv_lib_iconv=yes
20035
am_cv_func_iconv=yes
20037
echo "$as_me: failed program was:" >&5
20038
sed 's/^/| /' conftest.$ac_ext >&5
20041
rm -f conftest.err conftest.$ac_objext \
20042
conftest$ac_exeext conftest.$ac_ext
20043
LIBS="$am_save_LIBS"
20047
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
20048
echo "${ECHO_T}$am_cv_func_iconv" >&6
20049
if test "$am_cv_func_iconv" = yes; then
20051
cat >>confdefs.h <<\_ACEOF
20052
#define HAVE_ICONV 1
20055
echo "$as_me:$LINENO: checking for iconv declaration" >&5
20056
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
20057
if test "${am_cv_proto_iconv+set}" = set; then
20058
echo $ECHO_N "(cached) $ECHO_C" >&6
20061
cat >conftest.$ac_ext <<_ACEOF
20064
cat confdefs.h >>conftest.$ac_ext
20065
cat >>conftest.$ac_ext <<_ACEOF
20066
/* end confdefs.h. */
20068
#include <stdlib.h>
20074
#if defined(__STDC__) || defined(__cplusplus)
20075
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20088
rm -f conftest.$ac_objext
20089
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20090
(eval $ac_compile) 2>conftest.er1
20092
grep -v '^ *+' conftest.er1 >conftest.err
20094
cat conftest.err >&5
20095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096
(exit $ac_status); } &&
20097
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099
(eval $ac_try) 2>&5
20101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102
(exit $ac_status); }; } &&
20103
{ ac_try='test -s conftest.$ac_objext'
20104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105
(eval $ac_try) 2>&5
20107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108
(exit $ac_status); }; }; then
20109
am_cv_proto_iconv_arg1=""
20111
echo "$as_me: failed program was:" >&5
20112
sed 's/^/| /' conftest.$ac_ext >&5
20114
am_cv_proto_iconv_arg1="const"
20116
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20117
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20120
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20121
echo "$as_me:$LINENO: result: ${ac_t:-
20122
}$am_cv_proto_iconv" >&5
20123
echo "${ECHO_T}${ac_t:-
20124
}$am_cv_proto_iconv" >&6
20126
cat >>confdefs.h <<_ACEOF
20127
#define ICONV_CONST $am_cv_proto_iconv_arg1
20132
if test "$am_cv_lib_iconv" = yes; then
20137
LIBS="$LIBICONV $LIBS"
20138
echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
20139
echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
20140
if test "${ac_cv_lib_intl_gettext+set}" = set; then
20141
echo $ECHO_N "(cached) $ECHO_C" >&6
20143
ac_check_lib_save_LIBS=$LIBS
20144
LIBS="-lintl $LIBS"
20145
cat >conftest.$ac_ext <<_ACEOF
20148
cat confdefs.h >>conftest.$ac_ext
20149
cat >>conftest.$ac_ext <<_ACEOF
20150
/* end confdefs.h. */
20152
/* Override any gcc2 internal prototype to avoid an error. */
20156
/* We use char because int might match the return type of a gcc2
20157
builtin and then its argument prototype would still apply. */
20167
rm -f conftest.$ac_objext conftest$ac_exeext
20168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20169
(eval $ac_link) 2>conftest.er1
20171
grep -v '^ *+' conftest.er1 >conftest.err
20173
cat conftest.err >&5
20174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175
(exit $ac_status); } &&
20176
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20177
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178
(eval $ac_try) 2>&5
20180
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181
(exit $ac_status); }; } &&
20182
{ ac_try='test -s conftest$ac_exeext'
20183
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184
(eval $ac_try) 2>&5
20186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187
(exit $ac_status); }; }; then
20188
ac_cv_lib_intl_gettext=yes
20190
echo "$as_me: failed program was:" >&5
20191
sed 's/^/| /' conftest.$ac_ext >&5
20193
ac_cv_lib_intl_gettext=no
20195
rm -f conftest.err conftest.$ac_objext \
20196
conftest$ac_exeext conftest.$ac_ext
20197
LIBS=$ac_check_lib_save_LIBS
20199
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
20200
echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
20201
if test $ac_cv_lib_intl_gettext = yes; then
20202
LIBS="-lintl $LIBS"
20207
for ac_func in gettext ngettext
20209
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20210
echo "$as_me:$LINENO: checking for $ac_func" >&5
20211
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20212
if eval "test \"\${$as_ac_var+set}\" = set"; then
20213
echo $ECHO_N "(cached) $ECHO_C" >&6
20215
cat >conftest.$ac_ext <<_ACEOF
20218
cat confdefs.h >>conftest.$ac_ext
20219
cat >>conftest.$ac_ext <<_ACEOF
20220
/* end confdefs.h. */
20221
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20222
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20223
#define $ac_func innocuous_$ac_func
20225
/* System header to define __stub macros and hopefully few prototypes,
20226
which can conflict with char $ac_func (); below.
20227
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20228
<limits.h> exists even on freestanding compilers. */
20231
# include <limits.h>
20233
# include <assert.h>
20238
/* Override any gcc2 internal prototype to avoid an error. */
20243
/* We use char because int might match the return type of a gcc2
20244
builtin and then its argument prototype would still apply. */
20246
/* The GNU C library defines this for functions which it implements
20247
to always fail with ENOSYS. Some functions are actually named
20248
something starting with __ and the normal name is an alias. */
20249
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20252
char (*f) () = $ac_func;
20261
return f != $ac_func;
20266
rm -f conftest.$ac_objext conftest$ac_exeext
20267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20268
(eval $ac_link) 2>conftest.er1
20270
grep -v '^ *+' conftest.er1 >conftest.err
20272
cat conftest.err >&5
20273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274
(exit $ac_status); } &&
20275
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20276
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277
(eval $ac_try) 2>&5
20279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280
(exit $ac_status); }; } &&
20281
{ ac_try='test -s conftest$ac_exeext'
20282
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283
(eval $ac_try) 2>&5
20285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286
(exit $ac_status); }; }; then
20287
eval "$as_ac_var=yes"
20289
echo "$as_me: failed program was:" >&5
20290
sed 's/^/| /' conftest.$ac_ext >&5
20292
eval "$as_ac_var=no"
20294
rm -f conftest.err conftest.$ac_objext \
20295
conftest$ac_exeext conftest.$ac_ext
20297
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20298
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20299
if test `eval echo '${'$as_ac_var'}'` = yes; then
20300
cat >>confdefs.h <<_ACEOF
20301
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20311
for ac_header in libintl.h locale.h
20313
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20314
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20315
echo "$as_me:$LINENO: checking for $ac_header" >&5
20316
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20317
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20318
echo $ECHO_N "(cached) $ECHO_C" >&6
20320
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20321
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20323
# Is the header compilable?
20324
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20325
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20326
cat >conftest.$ac_ext <<_ACEOF
20329
cat confdefs.h >>conftest.$ac_ext
20330
cat >>conftest.$ac_ext <<_ACEOF
20331
/* end confdefs.h. */
20332
$ac_includes_default
20333
#include <$ac_header>
20335
rm -f conftest.$ac_objext
20336
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20337
(eval $ac_compile) 2>conftest.er1
20339
grep -v '^ *+' conftest.er1 >conftest.err
20341
cat conftest.err >&5
20342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343
(exit $ac_status); } &&
20344
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20345
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346
(eval $ac_try) 2>&5
20348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349
(exit $ac_status); }; } &&
20350
{ ac_try='test -s conftest.$ac_objext'
20351
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352
(eval $ac_try) 2>&5
20354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355
(exit $ac_status); }; }; then
20356
ac_header_compiler=yes
20358
echo "$as_me: failed program was:" >&5
20359
sed 's/^/| /' conftest.$ac_ext >&5
20361
ac_header_compiler=no
20363
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20364
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20365
echo "${ECHO_T}$ac_header_compiler" >&6
20367
# Is the header present?
20368
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20369
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20370
cat >conftest.$ac_ext <<_ACEOF
20373
cat confdefs.h >>conftest.$ac_ext
20374
cat >>conftest.$ac_ext <<_ACEOF
20375
/* end confdefs.h. */
20376
#include <$ac_header>
20378
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20379
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20381
grep -v '^ *+' conftest.er1 >conftest.err
20383
cat conftest.err >&5
20384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385
(exit $ac_status); } >/dev/null; then
20386
if test -s conftest.err; then
20387
ac_cpp_err=$ac_c_preproc_warn_flag
20388
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20395
if test -z "$ac_cpp_err"; then
20396
ac_header_preproc=yes
20398
echo "$as_me: failed program was:" >&5
20399
sed 's/^/| /' conftest.$ac_ext >&5
20401
ac_header_preproc=no
20403
rm -f conftest.err conftest.$ac_ext
20404
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20405
echo "${ECHO_T}$ac_header_preproc" >&6
20407
# So? What about this header?
20408
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20410
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20411
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20412
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20413
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20414
ac_header_preproc=yes
20417
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20418
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20419
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20420
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20421
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20422
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20423
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20424
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20425
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20426
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20427
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20428
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20431
## --------------------------------------------- ##
20432
## Report this to ggz-dev@mail.ggzgamingzone.org ##
20433
## --------------------------------------------- ##
20436
sed "s/^/$as_me: WARNING: /" >&2
20439
echo "$as_me:$LINENO: checking for $ac_header" >&5
20440
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20441
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20442
echo $ECHO_N "(cached) $ECHO_C" >&6
20444
eval "$as_ac_Header=\$ac_header_preproc"
20446
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20447
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20450
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20451
cat >>confdefs.h <<_ACEOF
20452
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20459
if test "$intl" = 0; then
20460
if test "x" = "xignore"; then
20461
{ echo "$as_me:$LINENO: WARNING: Internationalization tools missing. (ignored)" >&5
20462
echo "$as_me: WARNING: Internationalization tools missing. (ignored)" >&2;}
20464
echo "$as_me:$LINENO: result: Internationalization tools missing." >&5
20465
echo "${ECHO_T}Internationalization tools missing." >&6
20466
if test "x" = "x"; then
20467
{ { echo "$as_me:$LINENO: error: Internationalization tools missing." >&5
20468
echo "$as_me: error: Internationalization tools missing." >&2;}
20469
{ (exit 1); exit 1; }; }
20472
# Perform actions given by argument 2.
20476
echo "$as_me:$LINENO: result: Internationalization tools found." >&5
20477
echo "${ECHO_T}Internationalization tools found." >&6
20489
cat >>confdefs.h <<\_ACEOF
20490
#define ENABLE_NLS 1
20494
# Perform actions given by argument 1.
20501
# Check for header files
20502
# ======================
20508
for ac_header in fcntl.h limits.h sys/time.h time.h \
20511
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20512
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20513
echo "$as_me:$LINENO: checking for $ac_header" >&5
20514
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20515
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20516
echo $ECHO_N "(cached) $ECHO_C" >&6
20518
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20519
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20521
# Is the header compilable?
20522
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20523
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20524
cat >conftest.$ac_ext <<_ACEOF
20527
cat confdefs.h >>conftest.$ac_ext
20528
cat >>conftest.$ac_ext <<_ACEOF
20529
/* end confdefs.h. */
20530
$ac_includes_default
20531
#include <$ac_header>
20533
rm -f conftest.$ac_objext
20534
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20535
(eval $ac_compile) 2>conftest.er1
20537
grep -v '^ *+' conftest.er1 >conftest.err
20539
cat conftest.err >&5
20540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541
(exit $ac_status); } &&
20542
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20543
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544
(eval $ac_try) 2>&5
20546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547
(exit $ac_status); }; } &&
20548
{ ac_try='test -s conftest.$ac_objext'
20549
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550
(eval $ac_try) 2>&5
20552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553
(exit $ac_status); }; }; then
20554
ac_header_compiler=yes
20556
echo "$as_me: failed program was:" >&5
20557
sed 's/^/| /' conftest.$ac_ext >&5
20559
ac_header_compiler=no
20561
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20562
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20563
echo "${ECHO_T}$ac_header_compiler" >&6
20565
# Is the header present?
20566
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20567
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20568
cat >conftest.$ac_ext <<_ACEOF
20571
cat confdefs.h >>conftest.$ac_ext
20572
cat >>conftest.$ac_ext <<_ACEOF
20573
/* end confdefs.h. */
20574
#include <$ac_header>
20576
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20577
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20579
grep -v '^ *+' conftest.er1 >conftest.err
20581
cat conftest.err >&5
20582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583
(exit $ac_status); } >/dev/null; then
20584
if test -s conftest.err; then
20585
ac_cpp_err=$ac_c_preproc_warn_flag
20586
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20593
if test -z "$ac_cpp_err"; then
20594
ac_header_preproc=yes
20596
echo "$as_me: failed program was:" >&5
20597
sed 's/^/| /' conftest.$ac_ext >&5
20599
ac_header_preproc=no
20601
rm -f conftest.err conftest.$ac_ext
20602
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20603
echo "${ECHO_T}$ac_header_preproc" >&6
20605
# So? What about this header?
20606
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20608
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20609
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20610
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20611
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20612
ac_header_preproc=yes
20615
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20616
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20617
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20618
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20619
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20620
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20621
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20622
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20623
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20624
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20625
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20626
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20629
## --------------------------------------------- ##
20630
## Report this to ggz-dev@mail.ggzgamingzone.org ##
20631
## --------------------------------------------- ##
20634
sed "s/^/$as_me: WARNING: /" >&2
20637
echo "$as_me:$LINENO: checking for $ac_header" >&5
20638
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20639
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20640
echo $ECHO_N "(cached) $ECHO_C" >&6
20642
eval "$as_ac_Header=\$ac_header_preproc"
20644
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20645
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20648
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20649
cat >>confdefs.h <<_ACEOF
20650
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20654
{ { echo "$as_me:$LINENO: error: cannot find required header file" >&5
20655
echo "$as_me: error: cannot find required header file" >&2;}
20656
{ (exit 1); exit 1; }; }
20664
for ac_header in netdb.h sys/socket.h winsock2.h
20666
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20667
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20668
echo "$as_me:$LINENO: checking for $ac_header" >&5
20669
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20670
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20671
echo $ECHO_N "(cached) $ECHO_C" >&6
20673
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20674
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20676
# Is the header compilable?
20677
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20678
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20679
cat >conftest.$ac_ext <<_ACEOF
20682
cat confdefs.h >>conftest.$ac_ext
20683
cat >>conftest.$ac_ext <<_ACEOF
20684
/* end confdefs.h. */
20685
$ac_includes_default
20686
#include <$ac_header>
20688
rm -f conftest.$ac_objext
20689
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20690
(eval $ac_compile) 2>conftest.er1
20692
grep -v '^ *+' conftest.er1 >conftest.err
20694
cat conftest.err >&5
20695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696
(exit $ac_status); } &&
20697
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20698
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699
(eval $ac_try) 2>&5
20701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702
(exit $ac_status); }; } &&
20703
{ ac_try='test -s conftest.$ac_objext'
20704
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705
(eval $ac_try) 2>&5
20707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708
(exit $ac_status); }; }; then
20709
ac_header_compiler=yes
20711
echo "$as_me: failed program was:" >&5
20712
sed 's/^/| /' conftest.$ac_ext >&5
20714
ac_header_compiler=no
20716
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20717
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20718
echo "${ECHO_T}$ac_header_compiler" >&6
20720
# Is the header present?
20721
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20722
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20723
cat >conftest.$ac_ext <<_ACEOF
20726
cat confdefs.h >>conftest.$ac_ext
20727
cat >>conftest.$ac_ext <<_ACEOF
20728
/* end confdefs.h. */
20729
#include <$ac_header>
20731
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20732
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20734
grep -v '^ *+' conftest.er1 >conftest.err
20736
cat conftest.err >&5
20737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738
(exit $ac_status); } >/dev/null; then
20739
if test -s conftest.err; then
20740
ac_cpp_err=$ac_c_preproc_warn_flag
20741
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20748
if test -z "$ac_cpp_err"; then
20749
ac_header_preproc=yes
20751
echo "$as_me: failed program was:" >&5
20752
sed 's/^/| /' conftest.$ac_ext >&5
20754
ac_header_preproc=no
20756
rm -f conftest.err conftest.$ac_ext
20757
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20758
echo "${ECHO_T}$ac_header_preproc" >&6
20760
# So? What about this header?
20761
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20763
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20764
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20765
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20766
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20767
ac_header_preproc=yes
20770
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20771
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20772
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20773
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20774
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20775
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20776
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20777
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20778
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20779
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20780
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20781
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20784
## --------------------------------------------- ##
20785
## Report this to ggz-dev@mail.ggzgamingzone.org ##
20786
## --------------------------------------------- ##
20789
sed "s/^/$as_me: WARNING: /" >&2
20792
echo "$as_me:$LINENO: checking for $ac_header" >&5
20793
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20794
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20795
echo $ECHO_N "(cached) $ECHO_C" >&6
20797
eval "$as_ac_Header=\$ac_header_preproc"
20799
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20800
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20803
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20804
cat >>confdefs.h <<_ACEOF
20805
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20190
20812
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20191
20813
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20794
21249
rm -f conftest*
20798
echo "$as_me:$LINENO: checking for poll" >&5
20799
echo $ECHO_N "checking for poll... $ECHO_C" >&6
20800
if test "${ac_cv_func_poll+set}" = set; then
20801
echo $ECHO_N "(cached) $ECHO_C" >&6
20803
cat >conftest.$ac_ext <<_ACEOF
20806
cat confdefs.h >>conftest.$ac_ext
20807
cat >>conftest.$ac_ext <<_ACEOF
20808
/* end confdefs.h. */
20809
/* Define poll to an innocuous variant, in case <limits.h> declares poll.
20810
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20811
#define poll innocuous_poll
20813
/* System header to define __stub macros and hopefully few prototypes,
20814
which can conflict with char poll (); below.
20815
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20816
<limits.h> exists even on freestanding compilers. */
20819
# include <limits.h>
20821
# include <assert.h>
20826
/* Override any gcc2 internal prototype to avoid an error. */
20831
/* We use char because int might match the return type of a gcc2
20832
builtin and then its argument prototype would still apply. */
20834
/* The GNU C library defines this for functions which it implements
20835
to always fail with ENOSYS. Some functions are actually named
20836
something starting with __ and the normal name is an alias. */
20837
#if defined (__stub_poll) || defined (__stub___poll)
20840
char (*f) () = poll;
20854
rm -f conftest.$ac_objext conftest$ac_exeext
20855
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20856
(eval $ac_link) 2>conftest.er1
20858
grep -v '^ *+' conftest.er1 >conftest.err
20860
cat conftest.err >&5
20861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862
(exit $ac_status); } &&
20863
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20864
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865
(eval $ac_try) 2>&5
20867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868
(exit $ac_status); }; } &&
20869
{ ac_try='test -s conftest$ac_exeext'
20870
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871
(eval $ac_try) 2>&5
20873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874
(exit $ac_status); }; }; then
20875
ac_cv_func_poll=yes
20877
echo "$as_me: failed program was:" >&5
20878
sed 's/^/| /' conftest.$ac_ext >&5
20882
rm -f conftest.err conftest.$ac_objext \
20883
conftest$ac_exeext conftest.$ac_ext
20885
echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
20886
echo "${ECHO_T}$ac_cv_func_poll" >&6
20890
echo "$as_me:$LINENO: checking for poptGetNextOpt in -lpopt" >&5
20891
echo $ECHO_N "checking for poptGetNextOpt in -lpopt... $ECHO_C" >&6
20892
if test "${ac_cv_lib_popt_poptGetNextOpt+set}" = set; then
20893
echo $ECHO_N "(cached) $ECHO_C" >&6
20895
ac_check_lib_save_LIBS=$LIBS
20896
LIBS="-lpopt $LIBS"
20897
cat >conftest.$ac_ext <<_ACEOF
20900
cat confdefs.h >>conftest.$ac_ext
20901
cat >>conftest.$ac_ext <<_ACEOF
20902
/* end confdefs.h. */
20904
/* Override any gcc2 internal prototype to avoid an error. */
20908
/* We use char because int might match the return type of a gcc2
20909
builtin and then its argument prototype would still apply. */
20910
char poptGetNextOpt ();
20919
rm -f conftest.$ac_objext conftest$ac_exeext
20920
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20921
(eval $ac_link) 2>conftest.er1
20923
grep -v '^ *+' conftest.er1 >conftest.err
20925
cat conftest.err >&5
20926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927
(exit $ac_status); } &&
20928
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20929
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930
(eval $ac_try) 2>&5
20932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933
(exit $ac_status); }; } &&
20934
{ ac_try='test -s conftest$ac_exeext'
20935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936
(eval $ac_try) 2>&5
20938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939
(exit $ac_status); }; }; then
20940
ac_cv_lib_popt_poptGetNextOpt=yes
20942
echo "$as_me: failed program was:" >&5
20943
sed 's/^/| /' conftest.$ac_ext >&5
20945
ac_cv_lib_popt_poptGetNextOpt=no
20947
rm -f conftest.err conftest.$ac_objext \
20948
conftest$ac_exeext conftest.$ac_ext
20949
LIBS=$ac_check_lib_save_LIBS
20951
echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetNextOpt" >&5
20952
echo "${ECHO_T}$ac_cv_lib_popt_poptGetNextOpt" >&6
20953
if test $ac_cv_lib_popt_poptGetNextOpt = yes; then
20954
if test "${ac_cv_header_popt_h+set}" = set; then
20955
echo "$as_me:$LINENO: checking for popt.h" >&5
20956
echo $ECHO_N "checking for popt.h... $ECHO_C" >&6
20957
if test "${ac_cv_header_popt_h+set}" = set; then
20958
echo $ECHO_N "(cached) $ECHO_C" >&6
20960
echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
20961
echo "${ECHO_T}$ac_cv_header_popt_h" >&6
20963
# Is the header compilable?
20964
echo "$as_me:$LINENO: checking popt.h usability" >&5
20965
echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6
20966
cat >conftest.$ac_ext <<_ACEOF
20969
cat confdefs.h >>conftest.$ac_ext
20970
cat >>conftest.$ac_ext <<_ACEOF
20971
/* end confdefs.h. */
20972
$ac_includes_default
20975
rm -f conftest.$ac_objext
20976
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20977
(eval $ac_compile) 2>conftest.er1
20979
grep -v '^ *+' conftest.er1 >conftest.err
20981
cat conftest.err >&5
20982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983
(exit $ac_status); } &&
20984
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20985
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986
(eval $ac_try) 2>&5
20988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989
(exit $ac_status); }; } &&
20990
{ ac_try='test -s conftest.$ac_objext'
20991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992
(eval $ac_try) 2>&5
20994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995
(exit $ac_status); }; }; then
20996
ac_header_compiler=yes
20998
echo "$as_me: failed program was:" >&5
20999
sed 's/^/| /' conftest.$ac_ext >&5
21001
ac_header_compiler=no
21003
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21004
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21005
echo "${ECHO_T}$ac_header_compiler" >&6
21007
# Is the header present?
21008
echo "$as_me:$LINENO: checking popt.h presence" >&5
21009
echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6
21010
cat >conftest.$ac_ext <<_ACEOF
21013
cat confdefs.h >>conftest.$ac_ext
21014
cat >>conftest.$ac_ext <<_ACEOF
21015
/* end confdefs.h. */
21018
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21019
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21021
grep -v '^ *+' conftest.er1 >conftest.err
21023
cat conftest.err >&5
21024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025
(exit $ac_status); } >/dev/null; then
21026
if test -s conftest.err; then
21027
ac_cpp_err=$ac_c_preproc_warn_flag
21028
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21035
if test -z "$ac_cpp_err"; then
21036
ac_header_preproc=yes
21038
echo "$as_me: failed program was:" >&5
21039
sed 's/^/| /' conftest.$ac_ext >&5
21041
ac_header_preproc=no
21043
rm -f conftest.err conftest.$ac_ext
21044
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21045
echo "${ECHO_T}$ac_header_preproc" >&6
21047
# So? What about this header?
21048
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21050
{ echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21051
echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21052
{ echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
21053
echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
21054
ac_header_preproc=yes
21057
{ echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
21058
echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
21059
{ echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
21060
echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
21061
{ echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
21062
echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
21063
{ echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
21064
echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21065
{ echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
21066
echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
21067
{ echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
21068
echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
21071
## -------------------------------------------- ##
21072
## Report this to ggz-dev@lists.sourceforge.org ##
21073
## -------------------------------------------- ##
21076
sed "s/^/$as_me: WARNING: /" >&2
21079
echo "$as_me:$LINENO: checking for popt.h" >&5
21080
echo $ECHO_N "checking for popt.h... $ECHO_C" >&6
21081
if test "${ac_cv_header_popt_h+set}" = set; then
21082
echo $ECHO_N "(cached) $ECHO_C" >&6
21084
ac_cv_header_popt_h=$ac_header_preproc
21086
echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21087
echo "${ECHO_T}$ac_cv_header_popt_h" >&6
21090
if test $ac_cv_header_popt_h = yes; then
21093
{ { echo "$as_me:$LINENO: error: *** Cannot find popt.h header" >&5
21094
echo "$as_me: error: *** Cannot find popt.h header" >&2;}
21095
{ (exit 1); exit 1; }; }
21100
{ { echo "$as_me:$LINENO: error: *** Cannot find popt library" >&5
21101
echo "$as_me: error: *** Cannot find popt library" >&2;}
21102
{ (exit 1); exit 1; }; }
21252
# Add DLL build support for WIN32
21253
# ===============================
21255
if test "$MINGW32" = "yes"; then
21256
LDFLAGS="$LDFLAGS -no-undefined -lws2_32"
21259
# Check for library functions
21260
# ===========================
21267
for ac_func in dup2 strcasecmp strchr strerror \
21270
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21271
echo "$as_me:$LINENO: checking for $ac_func" >&5
21272
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21273
if eval "test \"\${$as_ac_var+set}\" = set"; then
21274
echo $ECHO_N "(cached) $ECHO_C" >&6
21276
cat >conftest.$ac_ext <<_ACEOF
21279
cat confdefs.h >>conftest.$ac_ext
21280
cat >>conftest.$ac_ext <<_ACEOF
21281
/* end confdefs.h. */
21282
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21283
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21284
#define $ac_func innocuous_$ac_func
21286
/* System header to define __stub macros and hopefully few prototypes,
21287
which can conflict with char $ac_func (); below.
21288
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21289
<limits.h> exists even on freestanding compilers. */
21292
# include <limits.h>
21294
# include <assert.h>
21299
/* Override any gcc2 internal prototype to avoid an error. */
21304
/* We use char because int might match the return type of a gcc2
21305
builtin and then its argument prototype would still apply. */
21307
/* The GNU C library defines this for functions which it implements
21308
to always fail with ENOSYS. Some functions are actually named
21309
something starting with __ and the normal name is an alias. */
21310
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21313
char (*f) () = $ac_func;
21322
return f != $ac_func;
21327
rm -f conftest.$ac_objext conftest$ac_exeext
21328
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21329
(eval $ac_link) 2>conftest.er1
21331
grep -v '^ *+' conftest.er1 >conftest.err
21333
cat conftest.err >&5
21334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335
(exit $ac_status); } &&
21336
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338
(eval $ac_try) 2>&5
21340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341
(exit $ac_status); }; } &&
21342
{ ac_try='test -s conftest$ac_exeext'
21343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344
(eval $ac_try) 2>&5
21346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347
(exit $ac_status); }; }; then
21348
eval "$as_ac_var=yes"
21350
echo "$as_me: failed program was:" >&5
21351
sed 's/^/| /' conftest.$ac_ext >&5
21353
eval "$as_ac_var=no"
21355
rm -f conftest.err conftest.$ac_objext \
21356
conftest$ac_exeext conftest.$ac_ext
21358
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21359
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21360
if test `eval echo '${'$as_ac_var'}'` = yes; then
21361
cat >>confdefs.h <<_ACEOF
21362
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21366
{ { echo "$as_me:$LINENO: error: cannot find required function" >&5
21367
echo "$as_me: error: cannot find required function" >&2;}
21368
{ (exit 1); exit 1; }; }
21374
for ac_func in fork select
21376
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21377
echo "$as_me:$LINENO: checking for $ac_func" >&5
21378
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21379
if eval "test \"\${$as_ac_var+set}\" = set"; then
21380
echo $ECHO_N "(cached) $ECHO_C" >&6
21382
cat >conftest.$ac_ext <<_ACEOF
21385
cat confdefs.h >>conftest.$ac_ext
21386
cat >>conftest.$ac_ext <<_ACEOF
21387
/* end confdefs.h. */
21388
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21389
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21390
#define $ac_func innocuous_$ac_func
21392
/* System header to define __stub macros and hopefully few prototypes,
21393
which can conflict with char $ac_func (); below.
21394
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21395
<limits.h> exists even on freestanding compilers. */
21398
# include <limits.h>
21400
# include <assert.h>
21405
/* Override any gcc2 internal prototype to avoid an error. */
21410
/* We use char because int might match the return type of a gcc2
21411
builtin and then its argument prototype would still apply. */
21413
/* The GNU C library defines this for functions which it implements
21414
to always fail with ENOSYS. Some functions are actually named
21415
something starting with __ and the normal name is an alias. */
21416
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21419
char (*f) () = $ac_func;
21428
return f != $ac_func;
21433
rm -f conftest.$ac_objext conftest$ac_exeext
21434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21435
(eval $ac_link) 2>conftest.er1
21437
grep -v '^ *+' conftest.er1 >conftest.err
21439
cat conftest.err >&5
21440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441
(exit $ac_status); } &&
21442
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21443
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444
(eval $ac_try) 2>&5
21446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447
(exit $ac_status); }; } &&
21448
{ ac_try='test -s conftest$ac_exeext'
21449
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450
(eval $ac_try) 2>&5
21452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453
(exit $ac_status); }; }; then
21454
eval "$as_ac_var=yes"
21456
echo "$as_me: failed program was:" >&5
21457
sed 's/^/| /' conftest.$ac_ext >&5
21459
eval "$as_ac_var=no"
21461
rm -f conftest.err conftest.$ac_objext \
21462
conftest$ac_exeext conftest.$ac_ext
21464
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21465
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21466
if test `eval echo '${'$as_ac_var'}'` = yes; then
21467
cat >>confdefs.h <<_ACEOF
21468
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21473
# These fail; dunno why
21481
for ac_func in close hstrerror kill socketpair alarm getenv setenv
21483
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21484
echo "$as_me:$LINENO: checking for $ac_func" >&5
21485
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21486
if eval "test \"\${$as_ac_var+set}\" = set"; then
21487
echo $ECHO_N "(cached) $ECHO_C" >&6
21489
cat >conftest.$ac_ext <<_ACEOF
21492
cat confdefs.h >>conftest.$ac_ext
21493
cat >>conftest.$ac_ext <<_ACEOF
21494
/* end confdefs.h. */
21495
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21496
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21497
#define $ac_func innocuous_$ac_func
21499
/* System header to define __stub macros and hopefully few prototypes,
21500
which can conflict with char $ac_func (); below.
21501
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21502
<limits.h> exists even on freestanding compilers. */
21505
# include <limits.h>
21507
# include <assert.h>
21512
/* Override any gcc2 internal prototype to avoid an error. */
21517
/* We use char because int might match the return type of a gcc2
21518
builtin and then its argument prototype would still apply. */
21520
/* The GNU C library defines this for functions which it implements
21521
to always fail with ENOSYS. Some functions are actually named
21522
something starting with __ and the normal name is an alias. */
21523
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21526
char (*f) () = $ac_func;
21535
return f != $ac_func;
21540
rm -f conftest.$ac_objext conftest$ac_exeext
21541
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21542
(eval $ac_link) 2>conftest.er1
21544
grep -v '^ *+' conftest.er1 >conftest.err
21546
cat conftest.err >&5
21547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548
(exit $ac_status); } &&
21549
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21550
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551
(eval $ac_try) 2>&5
21553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554
(exit $ac_status); }; } &&
21555
{ ac_try='test -s conftest$ac_exeext'
21556
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557
(eval $ac_try) 2>&5
21559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560
(exit $ac_status); }; }; then
21561
eval "$as_ac_var=yes"
21563
echo "$as_me: failed program was:" >&5
21564
sed 's/^/| /' conftest.$ac_ext >&5
21566
eval "$as_ac_var=no"
21568
rm -f conftest.err conftest.$ac_objext \
21569
conftest$ac_exeext conftest.$ac_ext
21571
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21572
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21573
if test `eval echo '${'$as_ac_var'}'` = yes; then
21574
cat >>confdefs.h <<_ACEOF
21575
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21581
echo "$as_me:$LINENO: checking for pid_t" >&5
21582
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21583
if test "${ac_cv_type_pid_t+set}" = set; then
21584
echo $ECHO_N "(cached) $ECHO_C" >&6
21586
cat >conftest.$ac_ext <<_ACEOF
21589
cat confdefs.h >>conftest.$ac_ext
21590
cat >>conftest.$ac_ext <<_ACEOF
21591
/* end confdefs.h. */
21592
$ac_includes_default
21598
if (sizeof (pid_t))
21604
rm -f conftest.$ac_objext
21605
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21606
(eval $ac_compile) 2>conftest.er1
21608
grep -v '^ *+' conftest.er1 >conftest.err
21610
cat conftest.err >&5
21611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612
(exit $ac_status); } &&
21613
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21614
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615
(eval $ac_try) 2>&5
21617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618
(exit $ac_status); }; } &&
21619
{ ac_try='test -s conftest.$ac_objext'
21620
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21621
(eval $ac_try) 2>&5
21623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624
(exit $ac_status); }; }; then
21625
ac_cv_type_pid_t=yes
21627
echo "$as_me: failed program was:" >&5
21628
sed 's/^/| /' conftest.$ac_ext >&5
21630
ac_cv_type_pid_t=no
21632
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21634
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21635
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21636
if test $ac_cv_type_pid_t = yes; then
21640
cat >>confdefs.h <<_ACEOF
21648
for ac_header in unistd.h vfork.h
21650
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21651
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21652
echo "$as_me:$LINENO: checking for $ac_header" >&5
21653
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21654
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21655
echo $ECHO_N "(cached) $ECHO_C" >&6
21657
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21658
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21660
# Is the header compilable?
21661
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21662
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21663
cat >conftest.$ac_ext <<_ACEOF
21666
cat confdefs.h >>conftest.$ac_ext
21667
cat >>conftest.$ac_ext <<_ACEOF
21668
/* end confdefs.h. */
21669
$ac_includes_default
21670
#include <$ac_header>
21672
rm -f conftest.$ac_objext
21673
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21674
(eval $ac_compile) 2>conftest.er1
21676
grep -v '^ *+' conftest.er1 >conftest.err
21678
cat conftest.err >&5
21679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680
(exit $ac_status); } &&
21681
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683
(eval $ac_try) 2>&5
21685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686
(exit $ac_status); }; } &&
21687
{ ac_try='test -s conftest.$ac_objext'
21688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689
(eval $ac_try) 2>&5
21691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692
(exit $ac_status); }; }; then
21693
ac_header_compiler=yes
21695
echo "$as_me: failed program was:" >&5
21696
sed 's/^/| /' conftest.$ac_ext >&5
21698
ac_header_compiler=no
21700
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21701
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21702
echo "${ECHO_T}$ac_header_compiler" >&6
21704
# Is the header present?
21705
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21706
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21707
cat >conftest.$ac_ext <<_ACEOF
21710
cat confdefs.h >>conftest.$ac_ext
21711
cat >>conftest.$ac_ext <<_ACEOF
21712
/* end confdefs.h. */
21713
#include <$ac_header>
21715
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21716
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21718
grep -v '^ *+' conftest.er1 >conftest.err
21720
cat conftest.err >&5
21721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722
(exit $ac_status); } >/dev/null; then
21723
if test -s conftest.err; then
21724
ac_cpp_err=$ac_c_preproc_warn_flag
21725
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21732
if test -z "$ac_cpp_err"; then
21733
ac_header_preproc=yes
21735
echo "$as_me: failed program was:" >&5
21736
sed 's/^/| /' conftest.$ac_ext >&5
21738
ac_header_preproc=no
21740
rm -f conftest.err conftest.$ac_ext
21741
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21742
echo "${ECHO_T}$ac_header_preproc" >&6
21744
# So? What about this header?
21745
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21747
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21748
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21749
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21750
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21751
ac_header_preproc=yes
21754
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21755
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21756
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21757
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21758
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21759
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21760
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21761
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21762
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21763
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21764
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21765
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21768
## --------------------------------------------- ##
21769
## Report this to ggz-dev@mail.ggzgamingzone.org ##
21770
## --------------------------------------------- ##
21773
sed "s/^/$as_me: WARNING: /" >&2
21776
echo "$as_me:$LINENO: checking for $ac_header" >&5
21777
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21778
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21779
echo $ECHO_N "(cached) $ECHO_C" >&6
21781
eval "$as_ac_Header=\$ac_header_preproc"
21783
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21784
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21787
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21788
cat >>confdefs.h <<_ACEOF
21789
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21798
for ac_func in fork vfork
21800
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21801
echo "$as_me:$LINENO: checking for $ac_func" >&5
21802
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21803
if eval "test \"\${$as_ac_var+set}\" = set"; then
21804
echo $ECHO_N "(cached) $ECHO_C" >&6
21806
cat >conftest.$ac_ext <<_ACEOF
21809
cat confdefs.h >>conftest.$ac_ext
21810
cat >>conftest.$ac_ext <<_ACEOF
21811
/* end confdefs.h. */
21812
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21813
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21814
#define $ac_func innocuous_$ac_func
21816
/* System header to define __stub macros and hopefully few prototypes,
21817
which can conflict with char $ac_func (); below.
21818
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21819
<limits.h> exists even on freestanding compilers. */
21822
# include <limits.h>
21824
# include <assert.h>
21829
/* Override any gcc2 internal prototype to avoid an error. */
21834
/* We use char because int might match the return type of a gcc2
21835
builtin and then its argument prototype would still apply. */
21837
/* The GNU C library defines this for functions which it implements
21838
to always fail with ENOSYS. Some functions are actually named
21839
something starting with __ and the normal name is an alias. */
21840
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21843
char (*f) () = $ac_func;
21852
return f != $ac_func;
21857
rm -f conftest.$ac_objext conftest$ac_exeext
21858
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21859
(eval $ac_link) 2>conftest.er1
21861
grep -v '^ *+' conftest.er1 >conftest.err
21863
cat conftest.err >&5
21864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865
(exit $ac_status); } &&
21866
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868
(eval $ac_try) 2>&5
21870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871
(exit $ac_status); }; } &&
21872
{ ac_try='test -s conftest$ac_exeext'
21873
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874
(eval $ac_try) 2>&5
21876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877
(exit $ac_status); }; }; then
21878
eval "$as_ac_var=yes"
21880
echo "$as_me: failed program was:" >&5
21881
sed 's/^/| /' conftest.$ac_ext >&5
21883
eval "$as_ac_var=no"
21885
rm -f conftest.err conftest.$ac_objext \
21886
conftest$ac_exeext conftest.$ac_ext
21888
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21889
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21890
if test `eval echo '${'$as_ac_var'}'` = yes; then
21891
cat >>confdefs.h <<_ACEOF
21892
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21898
if test "x$ac_cv_func_fork" = xyes; then
21899
echo "$as_me:$LINENO: checking for working fork" >&5
21900
echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21901
if test "${ac_cv_func_fork_works+set}" = set; then
21902
echo $ECHO_N "(cached) $ECHO_C" >&6
21904
if test "$cross_compiling" = yes; then
21905
ac_cv_func_fork_works=cross
21907
cat >conftest.$ac_ext <<_ACEOF
21908
/* By Ruediger Kuhlmann. */
21909
#include <sys/types.h>
21911
# include <unistd.h>
21913
/* Some systems only have a dummy stub for fork() */
21921
rm -f conftest$ac_exeext
21922
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21923
(eval $ac_link) 2>&5
21925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21927
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928
(eval $ac_try) 2>&5
21930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931
(exit $ac_status); }; }; then
21932
ac_cv_func_fork_works=yes
21934
echo "$as_me: program exited with status $ac_status" >&5
21935
echo "$as_me: failed program was:" >&5
21936
sed 's/^/| /' conftest.$ac_ext >&5
21938
( exit $ac_status )
21939
ac_cv_func_fork_works=no
21941
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21944
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21945
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21948
ac_cv_func_fork_works=$ac_cv_func_fork
21950
if test "x$ac_cv_func_fork_works" = xcross; then
21952
*-*-amigaos* | *-*-msdosdjgpp*)
21953
# Override, as these systems have only a dummy fork() stub
21954
ac_cv_func_fork_works=no
21957
ac_cv_func_fork_works=yes
21960
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21961
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21963
ac_cv_func_vfork_works=$ac_cv_func_vfork
21964
if test "x$ac_cv_func_vfork" = xyes; then
21965
echo "$as_me:$LINENO: checking for working vfork" >&5
21966
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21967
if test "${ac_cv_func_vfork_works+set}" = set; then
21968
echo $ECHO_N "(cached) $ECHO_C" >&6
21970
if test "$cross_compiling" = yes; then
21971
ac_cv_func_vfork_works=cross
21973
cat >conftest.$ac_ext <<_ACEOF
21976
cat confdefs.h >>conftest.$ac_ext
21977
cat >>conftest.$ac_ext <<_ACEOF
21978
/* end confdefs.h. */
21979
/* Thanks to Paul Eggert for this test. */
21981
#include <stdlib.h>
21982
#include <sys/types.h>
21983
#include <sys/stat.h>
21984
#include <sys/wait.h>
21986
# include <unistd.h>
21989
# include <vfork.h>
21991
/* On some sparc systems, changes by the child to local and incoming
21992
argument registers are propagated back to the parent. The compiler
21993
is told about this with #include <vfork.h>, but some compilers
21994
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21995
static variable whose address is put into a register that is
21996
clobbered by the vfork. */
21999
sparc_address_test (int arg)
22001
sparc_address_test (arg) int arg;
22004
static pid_t child;
22022
pid_t parent = getpid ();
22025
sparc_address_test (0);
22030
/* Here is another test for sparc vfork register problems. This
22031
test uses lots of local variables, at least as many local
22032
variables as main has allocated so far including compiler
22033
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22034
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22035
reuse the register of parent for one of the local variables,
22036
since it will think that parent can't possibly be used any more
22037
in this routine. Assigning to the local variable will thus
22038
munge parent in the parent process. */
22040
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22041
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22042
/* Convince the compiler that p..p7 are live; otherwise, it might
22043
use the same hardware register for all 8 local variables. */
22044
if (p != p1 || p != p2 || p != p3 || p != p4
22045
|| p != p5 || p != p6 || p != p7)
22048
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22049
from child file descriptors. If the child closes a descriptor
22050
before it execs or exits, this munges the parent's descriptor
22051
as well. Test for this by closing stdout in the child. */
22052
_exit(close(fileno(stdout)) != 0);
22057
while (wait(&status) != child)
22060
/* Was there some problem with vforking? */
22063
/* Did the child fail? (This shouldn't happen.) */
22066
/* Did the vfork/compiler bug occur? */
22067
|| parent != getpid()
22069
/* Did the file descriptor bug occur? */
22070
|| fstat(fileno(stdout), &st) != 0
22075
rm -f conftest$ac_exeext
22076
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22077
(eval $ac_link) 2>&5
22079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22081
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082
(eval $ac_try) 2>&5
22084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085
(exit $ac_status); }; }; then
22086
ac_cv_func_vfork_works=yes
22088
echo "$as_me: program exited with status $ac_status" >&5
22089
echo "$as_me: failed program was:" >&5
22090
sed 's/^/| /' conftest.$ac_ext >&5
22092
( exit $ac_status )
22093
ac_cv_func_vfork_works=no
22095
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22098
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22099
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22102
if test "x$ac_cv_func_fork_works" = xcross; then
22103
ac_cv_func_vfork_works=$ac_cv_func_vfork
22104
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22105
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22108
if test "x$ac_cv_func_vfork_works" = xyes; then
22110
cat >>confdefs.h <<\_ACEOF
22111
#define HAVE_WORKING_VFORK 1
22116
cat >>confdefs.h <<\_ACEOF
22121
if test "x$ac_cv_func_fork_works" = xyes; then
22123
cat >>confdefs.h <<\_ACEOF
22124
#define HAVE_WORKING_FORK 1
22129
#AC_FUNC_MALLOC <- this doesn't do what you think it does
22132
for ac_header in sys/select.h sys/socket.h
22134
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22135
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22136
echo "$as_me:$LINENO: checking for $ac_header" >&5
22137
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22138
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22139
echo $ECHO_N "(cached) $ECHO_C" >&6
22141
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22142
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22144
# Is the header compilable?
22145
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22146
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22147
cat >conftest.$ac_ext <<_ACEOF
22150
cat confdefs.h >>conftest.$ac_ext
22151
cat >>conftest.$ac_ext <<_ACEOF
22152
/* end confdefs.h. */
22153
$ac_includes_default
22154
#include <$ac_header>
22156
rm -f conftest.$ac_objext
22157
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22158
(eval $ac_compile) 2>conftest.er1
22160
grep -v '^ *+' conftest.er1 >conftest.err
22162
cat conftest.err >&5
22163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164
(exit $ac_status); } &&
22165
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22166
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167
(eval $ac_try) 2>&5
22169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170
(exit $ac_status); }; } &&
22171
{ ac_try='test -s conftest.$ac_objext'
22172
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173
(eval $ac_try) 2>&5
22175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176
(exit $ac_status); }; }; then
22177
ac_header_compiler=yes
22179
echo "$as_me: failed program was:" >&5
22180
sed 's/^/| /' conftest.$ac_ext >&5
22182
ac_header_compiler=no
22184
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22185
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22186
echo "${ECHO_T}$ac_header_compiler" >&6
22188
# Is the header present?
22189
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22190
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22191
cat >conftest.$ac_ext <<_ACEOF
22194
cat confdefs.h >>conftest.$ac_ext
22195
cat >>conftest.$ac_ext <<_ACEOF
22196
/* end confdefs.h. */
22197
#include <$ac_header>
22199
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22200
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22202
grep -v '^ *+' conftest.er1 >conftest.err
22204
cat conftest.err >&5
22205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206
(exit $ac_status); } >/dev/null; then
22207
if test -s conftest.err; then
22208
ac_cpp_err=$ac_c_preproc_warn_flag
22209
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22216
if test -z "$ac_cpp_err"; then
22217
ac_header_preproc=yes
22219
echo "$as_me: failed program was:" >&5
22220
sed 's/^/| /' conftest.$ac_ext >&5
22222
ac_header_preproc=no
22224
rm -f conftest.err conftest.$ac_ext
22225
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22226
echo "${ECHO_T}$ac_header_preproc" >&6
22228
# So? What about this header?
22229
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22231
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22232
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22233
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22234
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22235
ac_header_preproc=yes
22238
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22239
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22240
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22241
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22242
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22243
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22244
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22245
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22246
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22247
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22248
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22249
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22252
## --------------------------------------------- ##
22253
## Report this to ggz-dev@mail.ggzgamingzone.org ##
22254
## --------------------------------------------- ##
22257
sed "s/^/$as_me: WARNING: /" >&2
22260
echo "$as_me:$LINENO: checking for $ac_header" >&5
22261
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22262
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22263
echo $ECHO_N "(cached) $ECHO_C" >&6
22265
eval "$as_ac_Header=\$ac_header_preproc"
22267
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22268
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22271
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22272
cat >>confdefs.h <<_ACEOF
22273
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22280
echo "$as_me:$LINENO: checking types of arguments for select" >&5
22281
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
22282
if test "${ac_cv_func_select_args+set}" = set; then
22283
echo $ECHO_N "(cached) $ECHO_C" >&6
22285
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22286
for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
22287
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22288
cat >conftest.$ac_ext <<_ACEOF
22291
cat confdefs.h >>conftest.$ac_ext
22292
cat >>conftest.$ac_ext <<_ACEOF
22293
/* end confdefs.h. */
22294
$ac_includes_default
22295
#if HAVE_SYS_SELECT_H
22296
# include <sys/select.h>
22298
#if HAVE_SYS_SOCKET_H
22299
# include <sys/socket.h>
22305
extern int select ($ac_arg1,
22306
$ac_arg234, $ac_arg234, $ac_arg234,
22312
rm -f conftest.$ac_objext
22313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22314
(eval $ac_compile) 2>conftest.er1
22316
grep -v '^ *+' conftest.er1 >conftest.err
22318
cat conftest.err >&5
22319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320
(exit $ac_status); } &&
22321
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22322
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323
(eval $ac_try) 2>&5
22325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326
(exit $ac_status); }; } &&
22327
{ ac_try='test -s conftest.$ac_objext'
22328
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329
(eval $ac_try) 2>&5
22331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332
(exit $ac_status); }; }; then
22333
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22335
echo "$as_me: failed program was:" >&5
22336
sed 's/^/| /' conftest.$ac_ext >&5
22339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22343
# Provide a safe default value.
22344
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22347
echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
22348
echo "${ECHO_T}$ac_cv_func_select_args" >&6
22349
ac_save_IFS=$IFS; IFS=','
22350
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22354
cat >>confdefs.h <<_ACEOF
22355
#define SELECT_TYPE_ARG1 $1
22359
cat >>confdefs.h <<_ACEOF
22360
#define SELECT_TYPE_ARG234 ($2)
22364
cat >>confdefs.h <<_ACEOF
22365
#define SELECT_TYPE_ARG5 ($3)
22371
for ac_func in vprintf
22373
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22374
echo "$as_me:$LINENO: checking for $ac_func" >&5
22375
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22376
if eval "test \"\${$as_ac_var+set}\" = set"; then
22377
echo $ECHO_N "(cached) $ECHO_C" >&6
22379
cat >conftest.$ac_ext <<_ACEOF
22382
cat confdefs.h >>conftest.$ac_ext
22383
cat >>conftest.$ac_ext <<_ACEOF
22384
/* end confdefs.h. */
22385
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22386
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22387
#define $ac_func innocuous_$ac_func
22389
/* System header to define __stub macros and hopefully few prototypes,
22390
which can conflict with char $ac_func (); below.
22391
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22392
<limits.h> exists even on freestanding compilers. */
22395
# include <limits.h>
22397
# include <assert.h>
22402
/* Override any gcc2 internal prototype to avoid an error. */
22407
/* We use char because int might match the return type of a gcc2
22408
builtin and then its argument prototype would still apply. */
22410
/* The GNU C library defines this for functions which it implements
22411
to always fail with ENOSYS. Some functions are actually named
22412
something starting with __ and the normal name is an alias. */
22413
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22416
char (*f) () = $ac_func;
22425
return f != $ac_func;
22430
rm -f conftest.$ac_objext conftest$ac_exeext
22431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22432
(eval $ac_link) 2>conftest.er1
22434
grep -v '^ *+' conftest.er1 >conftest.err
22436
cat conftest.err >&5
22437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438
(exit $ac_status); } &&
22439
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22440
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441
(eval $ac_try) 2>&5
22443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444
(exit $ac_status); }; } &&
22445
{ ac_try='test -s conftest$ac_exeext'
22446
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22447
(eval $ac_try) 2>&5
22449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450
(exit $ac_status); }; }; then
22451
eval "$as_ac_var=yes"
22453
echo "$as_me: failed program was:" >&5
22454
sed 's/^/| /' conftest.$ac_ext >&5
22456
eval "$as_ac_var=no"
22458
rm -f conftest.err conftest.$ac_objext \
22459
conftest$ac_exeext conftest.$ac_ext
22461
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22462
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22463
if test `eval echo '${'$as_ac_var'}'` = yes; then
22464
cat >>confdefs.h <<_ACEOF
22465
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22468
echo "$as_me:$LINENO: checking for _doprnt" >&5
22469
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
22470
if test "${ac_cv_func__doprnt+set}" = set; then
22471
echo $ECHO_N "(cached) $ECHO_C" >&6
22473
cat >conftest.$ac_ext <<_ACEOF
22476
cat confdefs.h >>conftest.$ac_ext
22477
cat >>conftest.$ac_ext <<_ACEOF
22478
/* end confdefs.h. */
22479
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
22480
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22481
#define _doprnt innocuous__doprnt
22483
/* System header to define __stub macros and hopefully few prototypes,
22484
which can conflict with char _doprnt (); below.
22485
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22486
<limits.h> exists even on freestanding compilers. */
22489
# include <limits.h>
22491
# include <assert.h>
22496
/* Override any gcc2 internal prototype to avoid an error. */
22501
/* We use char because int might match the return type of a gcc2
22502
builtin and then its argument prototype would still apply. */
22504
/* The GNU C library defines this for functions which it implements
22505
to always fail with ENOSYS. Some functions are actually named
22506
something starting with __ and the normal name is an alias. */
22507
#if defined (__stub__doprnt) || defined (__stub____doprnt)
22510
char (*f) () = _doprnt;
22519
return f != _doprnt;
22524
rm -f conftest.$ac_objext conftest$ac_exeext
22525
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22526
(eval $ac_link) 2>conftest.er1
22528
grep -v '^ *+' conftest.er1 >conftest.err
22530
cat conftest.err >&5
22531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532
(exit $ac_status); } &&
22533
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22534
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535
(eval $ac_try) 2>&5
22537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538
(exit $ac_status); }; } &&
22539
{ ac_try='test -s conftest$ac_exeext'
22540
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541
(eval $ac_try) 2>&5
22543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544
(exit $ac_status); }; }; then
22545
ac_cv_func__doprnt=yes
22547
echo "$as_me: failed program was:" >&5
22548
sed 's/^/| /' conftest.$ac_ext >&5
22550
ac_cv_func__doprnt=no
22552
rm -f conftest.err conftest.$ac_objext \
22553
conftest$ac_exeext conftest.$ac_ext
22555
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
22556
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
22557
if test $ac_cv_func__doprnt = yes; then
22559
cat >>confdefs.h <<\_ACEOF
22560
#define HAVE_DOPRNT 1
22570
for ac_func in mkdir
22572
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22573
echo "$as_me:$LINENO: checking for $ac_func" >&5
22574
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22575
if eval "test \"\${$as_ac_var+set}\" = set"; then
22576
echo $ECHO_N "(cached) $ECHO_C" >&6
22578
cat >conftest.$ac_ext <<_ACEOF
22581
cat confdefs.h >>conftest.$ac_ext
22582
cat >>conftest.$ac_ext <<_ACEOF
22583
/* end confdefs.h. */
22584
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22585
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22586
#define $ac_func innocuous_$ac_func
22588
/* System header to define __stub macros and hopefully few prototypes,
22589
which can conflict with char $ac_func (); below.
22590
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22591
<limits.h> exists even on freestanding compilers. */
22594
# include <limits.h>
22596
# include <assert.h>
22601
/* Override any gcc2 internal prototype to avoid an error. */
22606
/* We use char because int might match the return type of a gcc2
22607
builtin and then its argument prototype would still apply. */
22609
/* The GNU C library defines this for functions which it implements
22610
to always fail with ENOSYS. Some functions are actually named
22611
something starting with __ and the normal name is an alias. */
22612
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22615
char (*f) () = $ac_func;
22624
return f != $ac_func;
22629
rm -f conftest.$ac_objext conftest$ac_exeext
22630
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22631
(eval $ac_link) 2>conftest.er1
22633
grep -v '^ *+' conftest.er1 >conftest.err
22635
cat conftest.err >&5
22636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637
(exit $ac_status); } &&
22638
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22639
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640
(eval $ac_try) 2>&5
22642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643
(exit $ac_status); }; } &&
22644
{ ac_try='test -s conftest$ac_exeext'
22645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646
(eval $ac_try) 2>&5
22648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649
(exit $ac_status); }; }; then
22650
eval "$as_ac_var=yes"
22652
echo "$as_me: failed program was:" >&5
22653
sed 's/^/| /' conftest.$ac_ext >&5
22655
eval "$as_ac_var=no"
22657
rm -f conftest.err conftest.$ac_objext \
22658
conftest$ac_exeext conftest.$ac_ext
22660
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22661
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22662
if test `eval echo '${'$as_ac_var'}'` = yes; then
22663
cat >>confdefs.h <<_ACEOF
22664
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22670
echo "$as_me:$LINENO: checking whether mkdir takes only one argument" >&5
22671
echo $ECHO_N "checking whether mkdir takes only one argument... $ECHO_C" >&6
22672
if test "${cv_mkdir_takes_one_arg+set}" = set; then
22673
echo $ECHO_N "(cached) $ECHO_C" >&6
22675
cv_mkdir_takes_one_arg=no
22676
if test $ac_cv_func_mkdir = yes; then
22677
cat >conftest.$ac_ext <<_ACEOF
22680
cat confdefs.h >>conftest.$ac_ext
22681
cat >>conftest.$ac_ext <<_ACEOF
22682
/* end confdefs.h. */
22694
rm -f conftest.$ac_objext
22695
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22696
(eval $ac_compile) 2>conftest.er1
22698
grep -v '^ *+' conftest.er1 >conftest.err
22700
cat conftest.err >&5
22701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702
(exit $ac_status); } &&
22703
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22704
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705
(eval $ac_try) 2>&5
22707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708
(exit $ac_status); }; } &&
22709
{ ac_try='test -s conftest.$ac_objext'
22710
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711
(eval $ac_try) 2>&5
22713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714
(exit $ac_status); }; }; then
22715
cv_mkdir_takes_one_arg=yes
22717
echo "$as_me: failed program was:" >&5
22718
sed 's/^/| /' conftest.$ac_ext >&5
22720
cv_mkdir_takes_one_arg=no
22723
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22728
echo "$as_me:$LINENO: result: $cv_mkdir_takes_one_arg" >&5
22729
echo "${ECHO_T}$cv_mkdir_takes_one_arg" >&6
22730
if test $cv_mkdir_takes_one_arg = yes; then
22732
cat >>confdefs.h <<\_ACEOF
22733
#define MKDIR_TAKES_ONE_ARG 1
22739
if test "$MINGW32" = "yes"; then
22740
LIBS="$LIBS -lws2_32"
21107
22746
echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21108
22747
echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21109
22748
if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then