Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1287:dac8f363f1fe
prev1284:0db0a5e72698
next1293:36123decfb24
author nkeynes
date Sun Jul 01 13:20:34 2012 +1000 (8 years ago)
permissions -rw-r--r--
last change Add support for Nokia N900
- Generic support for EGL with GTK
- Workaround for nokia bug with egl config
Based on patch from guinux, thanks!
file annotate diff log raw
1.1 --- a/configure Tue Apr 17 21:35:38 2012 +1000
1.2 +++ b/configure Sun Jul 01 13:20:34 2012 +1000
1.3 @@ -682,16 +682,6 @@
1.4 host_cpu
1.5 host_vendor
1.6 host_os
1.7 -ANT
1.8 -ANDROID_ABI
1.9 -ANDROID_SDK_HOME
1.10 -ANDROID_NDK_HOME
1.11 -ANDROID_SDK_VERSION
1.12 -ANDROID_NDK_VERSION
1.13 -ANDROID_GDBSERVER
1.14 -GDB
1.15 -GUI_ANDROID_TRUE
1.16 -GUI_ANDROID_FALSE
1.17 CC
1.18 CFLAGS
1.19 LDFLAGS
1.20 @@ -738,6 +728,15 @@
1.21 am__fastdepOBJC_FALSE
1.22 POD2MAN
1.23 POD2HTML
1.24 +ANT
1.25 +ANDROID_ABI
1.26 +ANDROID_SDK_HOME
1.27 +ANDROID_NDK_HOME
1.28 +ANDROID_SDK_VERSION
1.29 +ANDROID_NDK_VERSION
1.30 +ANDROID_GDBSERVER
1.31 +GUI_ANDROID_TRUE
1.32 +GUI_ANDROID_FALSE
1.33 GUI_COCOA_TRUE
1.34 GUI_COCOA_FALSE
1.35 SOEXT
1.36 @@ -768,6 +767,8 @@
1.37 VIDEO_GLX_FALSE
1.38 VIDEO_NSGL_TRUE
1.39 VIDEO_NSGL_FALSE
1.40 +VIDEO_EGL_TRUE
1.41 +VIDEO_EGL_FALSE
1.42 BUILD_SH4X86_TRUE
1.43 BUILD_SH4X86_FALSE
1.44 AUDIO_OSX_TRUE
1.45 @@ -1465,17 +1466,18 @@
1.46 Optional Packages:
1.47 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1.48 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.49 - --with-android=SDK Specify the location of the Android SDK
1.50 - --with-android-ndk=NDK Specify the location of the Android NDK
1.51 - --with-android-version Specify target Android SDK version
1.52 - --with-android-version Specify target Android NDK version
1.53 - --with-android-abi Specify target Android ABI
1.54 --with-osmesa Build with the osmesa GL library (software
1.55 rendering)
1.56 --with-gtk Build with the GTK UI. Default on X11 systems
1.57 --with-esd Build with support for the ESounD audio system
1.58 --with-pulse Build with support for the PulseAudio audio system
1.59 --with-sdl Build with support for SDL audio
1.60 + --with-sysroot=SYSROOT Build using an alternate sysroot
1.61 + --with-android=SDK Specify the location of the Android SDK
1.62 + --with-android-ndk=NDK Specify the location of the Android NDK
1.63 + --with-android-version Specify target Android SDK version
1.64 + --with-android-version Specify target Android NDK version
1.65 + --with-android-abi Specify target Android ABI
1.66
1.67 Some influential environment variables:
1.68 CC C compiler command
1.69 @@ -2530,6 +2532,6245 @@
1.70
1.71
1.72
1.73 +DEPDIR="${am__leading_dot}deps"
1.74 +
1.75 +ac_config_commands="$ac_config_commands depfiles"
1.76 +
1.77 +
1.78 +am_make=${MAKE-make}
1.79 +cat > confinc << 'END'
1.80 +am__doit:
1.81 + @echo done
1.82 +.PHONY: am__doit
1.83 +END
1.84 +# If we don't find an include directive, just comment out the code.
1.85 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1.86 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
1.87 +am__include="#"
1.88 +am__quote=
1.89 +_am_result=none
1.90 +# First try GNU make style include.
1.91 +echo "include confinc" > confmf
1.92 +# We grep out `Entering directory' and `Leaving directory'
1.93 +# messages which can occur if `w' ends up in MAKEFLAGS.
1.94 +# In particular we don't look at `^make:' because GNU make might
1.95 +# be invoked under some other name (usually "gmake"), in which
1.96 +# case it prints its new name instead of `make'.
1.97 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1.98 + am__include=include
1.99 + am__quote=
1.100 + _am_result=GNU
1.101 +fi
1.102 +# Now try BSD make style include.
1.103 +if test "$am__include" = "#"; then
1.104 + echo '.include "confinc"' > confmf
1.105 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1.106 + am__include=.include
1.107 + am__quote="\""
1.108 + _am_result=BSD
1.109 + fi
1.110 +fi
1.111 +
1.112 +
1.113 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
1.114 +echo "${ECHO_T}$_am_result" >&6; }
1.115 +rm -f confinc confmf
1.116 +
1.117 +# Check whether --enable-dependency-tracking was given.
1.118 +if test "${enable_dependency_tracking+set}" = set; then
1.119 + enableval=$enable_dependency_tracking;
1.120 +fi
1.121 +
1.122 +if test "x$enable_dependency_tracking" != xno; then
1.123 + am_depcomp="$ac_aux_dir/depcomp"
1.124 + AMDEPBACKSLASH='\'
1.125 +fi
1.126 +
1.127 +
1.128 +if test "x$enable_dependency_tracking" != xno; then
1.129 + AMDEP_TRUE=
1.130 + AMDEP_FALSE='#'
1.131 +else
1.132 + AMDEP_TRUE='#'
1.133 + AMDEP_FALSE=
1.134 +fi
1.135 +
1.136 +
1.137 +
1.138 +ac_ext=c
1.139 +ac_cpp='$CPP $CPPFLAGS'
1.140 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.141 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.142 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.143 +if test -n "$ac_tool_prefix"; then
1.144 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.145 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.146 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.147 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.148 +if test "${ac_cv_prog_CC+set}" = set; then
1.149 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.150 +else
1.151 + if test -n "$CC"; then
1.152 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.153 +else
1.154 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.155 +for as_dir in $PATH
1.156 +do
1.157 + IFS=$as_save_IFS
1.158 + test -z "$as_dir" && as_dir=.
1.159 + for ac_exec_ext in '' $ac_executable_extensions; do
1.160 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.161 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.162 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.163 + break 2
1.164 + fi
1.165 +done
1.166 +done
1.167 +IFS=$as_save_IFS
1.168 +
1.169 +fi
1.170 +fi
1.171 +CC=$ac_cv_prog_CC
1.172 +if test -n "$CC"; then
1.173 + { echo "$as_me:$LINENO: result: $CC" >&5
1.174 +echo "${ECHO_T}$CC" >&6; }
1.175 +else
1.176 + { echo "$as_me:$LINENO: result: no" >&5
1.177 +echo "${ECHO_T}no" >&6; }
1.178 +fi
1.179 +
1.180 +
1.181 +fi
1.182 +if test -z "$ac_cv_prog_CC"; then
1.183 + ac_ct_CC=$CC
1.184 + # Extract the first word of "gcc", so it can be a program name with args.
1.185 +set dummy gcc; ac_word=$2
1.186 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.187 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.188 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.189 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.190 +else
1.191 + if test -n "$ac_ct_CC"; then
1.192 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.193 +else
1.194 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.195 +for as_dir in $PATH
1.196 +do
1.197 + IFS=$as_save_IFS
1.198 + test -z "$as_dir" && as_dir=.
1.199 + for ac_exec_ext in '' $ac_executable_extensions; do
1.200 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.201 + ac_cv_prog_ac_ct_CC="gcc"
1.202 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.203 + break 2
1.204 + fi
1.205 +done
1.206 +done
1.207 +IFS=$as_save_IFS
1.208 +
1.209 +fi
1.210 +fi
1.211 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.212 +if test -n "$ac_ct_CC"; then
1.213 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.214 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.215 +else
1.216 + { echo "$as_me:$LINENO: result: no" >&5
1.217 +echo "${ECHO_T}no" >&6; }
1.218 +fi
1.219 +
1.220 + if test "x$ac_ct_CC" = x; then
1.221 + CC=""
1.222 + else
1.223 + case $cross_compiling:$ac_tool_warned in
1.224 +yes:)
1.225 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.226 +whose name does not start with the host triplet. If you think this
1.227 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.228 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.229 +whose name does not start with the host triplet. If you think this
1.230 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.231 +ac_tool_warned=yes ;;
1.232 +esac
1.233 + CC=$ac_ct_CC
1.234 + fi
1.235 +else
1.236 + CC="$ac_cv_prog_CC"
1.237 +fi
1.238 +
1.239 +if test -z "$CC"; then
1.240 + if test -n "$ac_tool_prefix"; then
1.241 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.242 +set dummy ${ac_tool_prefix}cc; ac_word=$2
1.243 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.244 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.245 +if test "${ac_cv_prog_CC+set}" = set; then
1.246 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.247 +else
1.248 + if test -n "$CC"; then
1.249 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.250 +else
1.251 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.252 +for as_dir in $PATH
1.253 +do
1.254 + IFS=$as_save_IFS
1.255 + test -z "$as_dir" && as_dir=.
1.256 + for ac_exec_ext in '' $ac_executable_extensions; do
1.257 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.258 + ac_cv_prog_CC="${ac_tool_prefix}cc"
1.259 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.260 + break 2
1.261 + fi
1.262 +done
1.263 +done
1.264 +IFS=$as_save_IFS
1.265 +
1.266 +fi
1.267 +fi
1.268 +CC=$ac_cv_prog_CC
1.269 +if test -n "$CC"; then
1.270 + { echo "$as_me:$LINENO: result: $CC" >&5
1.271 +echo "${ECHO_T}$CC" >&6; }
1.272 +else
1.273 + { echo "$as_me:$LINENO: result: no" >&5
1.274 +echo "${ECHO_T}no" >&6; }
1.275 +fi
1.276 +
1.277 +
1.278 + fi
1.279 +fi
1.280 +if test -z "$CC"; then
1.281 + # Extract the first word of "cc", so it can be a program name with args.
1.282 +set dummy cc; ac_word=$2
1.283 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.284 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.285 +if test "${ac_cv_prog_CC+set}" = set; then
1.286 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.287 +else
1.288 + if test -n "$CC"; then
1.289 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.290 +else
1.291 + ac_prog_rejected=no
1.292 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.293 +for as_dir in $PATH
1.294 +do
1.295 + IFS=$as_save_IFS
1.296 + test -z "$as_dir" && as_dir=.
1.297 + for ac_exec_ext in '' $ac_executable_extensions; do
1.298 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.299 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.300 + ac_prog_rejected=yes
1.301 + continue
1.302 + fi
1.303 + ac_cv_prog_CC="cc"
1.304 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.305 + break 2
1.306 + fi
1.307 +done
1.308 +done
1.309 +IFS=$as_save_IFS
1.310 +
1.311 +if test $ac_prog_rejected = yes; then
1.312 + # We found a bogon in the path, so make sure we never use it.
1.313 + set dummy $ac_cv_prog_CC
1.314 + shift
1.315 + if test $# != 0; then
1.316 + # We chose a different compiler from the bogus one.
1.317 + # However, it has the same basename, so the bogon will be chosen
1.318 + # first if we set CC to just the basename; use the full file name.
1.319 + shift
1.320 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.321 + fi
1.322 +fi
1.323 +fi
1.324 +fi
1.325 +CC=$ac_cv_prog_CC
1.326 +if test -n "$CC"; then
1.327 + { echo "$as_me:$LINENO: result: $CC" >&5
1.328 +echo "${ECHO_T}$CC" >&6; }
1.329 +else
1.330 + { echo "$as_me:$LINENO: result: no" >&5
1.331 +echo "${ECHO_T}no" >&6; }
1.332 +fi
1.333 +
1.334 +
1.335 +fi
1.336 +if test -z "$CC"; then
1.337 + if test -n "$ac_tool_prefix"; then
1.338 + for ac_prog in cl.exe
1.339 + do
1.340 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.341 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.342 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.343 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.344 +if test "${ac_cv_prog_CC+set}" = set; then
1.345 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.346 +else
1.347 + if test -n "$CC"; then
1.348 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.349 +else
1.350 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.351 +for as_dir in $PATH
1.352 +do
1.353 + IFS=$as_save_IFS
1.354 + test -z "$as_dir" && as_dir=.
1.355 + for ac_exec_ext in '' $ac_executable_extensions; do
1.356 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.357 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.358 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.359 + break 2
1.360 + fi
1.361 +done
1.362 +done
1.363 +IFS=$as_save_IFS
1.364 +
1.365 +fi
1.366 +fi
1.367 +CC=$ac_cv_prog_CC
1.368 +if test -n "$CC"; then
1.369 + { echo "$as_me:$LINENO: result: $CC" >&5
1.370 +echo "${ECHO_T}$CC" >&6; }
1.371 +else
1.372 + { echo "$as_me:$LINENO: result: no" >&5
1.373 +echo "${ECHO_T}no" >&6; }
1.374 +fi
1.375 +
1.376 +
1.377 + test -n "$CC" && break
1.378 + done
1.379 +fi
1.380 +if test -z "$CC"; then
1.381 + ac_ct_CC=$CC
1.382 + for ac_prog in cl.exe
1.383 +do
1.384 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.385 +set dummy $ac_prog; ac_word=$2
1.386 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.387 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.388 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.389 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.390 +else
1.391 + if test -n "$ac_ct_CC"; then
1.392 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.393 +else
1.394 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.395 +for as_dir in $PATH
1.396 +do
1.397 + IFS=$as_save_IFS
1.398 + test -z "$as_dir" && as_dir=.
1.399 + for ac_exec_ext in '' $ac_executable_extensions; do
1.400 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.401 + ac_cv_prog_ac_ct_CC="$ac_prog"
1.402 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.403 + break 2
1.404 + fi
1.405 +done
1.406 +done
1.407 +IFS=$as_save_IFS
1.408 +
1.409 +fi
1.410 +fi
1.411 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.412 +if test -n "$ac_ct_CC"; then
1.413 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.414 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.415 +else
1.416 + { echo "$as_me:$LINENO: result: no" >&5
1.417 +echo "${ECHO_T}no" >&6; }
1.418 +fi
1.419 +
1.420 +
1.421 + test -n "$ac_ct_CC" && break
1.422 +done
1.423 +
1.424 + if test "x$ac_ct_CC" = x; then
1.425 + CC=""
1.426 + else
1.427 + case $cross_compiling:$ac_tool_warned in
1.428 +yes:)
1.429 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.430 +whose name does not start with the host triplet. If you think this
1.431 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.432 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.433 +whose name does not start with the host triplet. If you think this
1.434 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.435 +ac_tool_warned=yes ;;
1.436 +esac
1.437 + CC=$ac_ct_CC
1.438 + fi
1.439 +fi
1.440 +
1.441 +fi
1.442 +
1.443 +
1.444 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.445 +See \`config.log' for more details." >&5
1.446 +echo "$as_me: error: no acceptable C compiler found in \$PATH
1.447 +See \`config.log' for more details." >&2;}
1.448 + { (exit 1); exit 1; }; }
1.449 +
1.450 +# Provide some information about the compiler.
1.451 +echo "$as_me:$LINENO: checking for C compiler version" >&5
1.452 +ac_compiler=`set X $ac_compile; echo $2`
1.453 +{ (ac_try="$ac_compiler --version >&5"
1.454 +case "(($ac_try" in
1.455 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.456 + *) ac_try_echo=$ac_try;;
1.457 +esac
1.458 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.459 + (eval "$ac_compiler --version >&5") 2>&5
1.460 + ac_status=$?
1.461 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.462 + (exit $ac_status); }
1.463 +{ (ac_try="$ac_compiler -v >&5"
1.464 +case "(($ac_try" in
1.465 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.466 + *) ac_try_echo=$ac_try;;
1.467 +esac
1.468 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.469 + (eval "$ac_compiler -v >&5") 2>&5
1.470 + ac_status=$?
1.471 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.472 + (exit $ac_status); }
1.473 +{ (ac_try="$ac_compiler -V >&5"
1.474 +case "(($ac_try" in
1.475 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.476 + *) ac_try_echo=$ac_try;;
1.477 +esac
1.478 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.479 + (eval "$ac_compiler -V >&5") 2>&5
1.480 + ac_status=$?
1.481 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.482 + (exit $ac_status); }
1.483 +
1.484 +cat >conftest.$ac_ext <<_ACEOF
1.485 +/* confdefs.h. */
1.486 +_ACEOF
1.487 +cat confdefs.h >>conftest.$ac_ext
1.488 +cat >>conftest.$ac_ext <<_ACEOF
1.489 +/* end confdefs.h. */
1.490 +
1.491 +int
1.492 +main ()
1.493 +{
1.494 +
1.495 + ;
1.496 + return 0;
1.497 +}
1.498 +_ACEOF
1.499 +ac_clean_files_save=$ac_clean_files
1.500 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.501 +# Try to create an executable without -o first, disregard a.out.
1.502 +# It will help us diagnose broken compilers, and finding out an intuition
1.503 +# of exeext.
1.504 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1.505 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.506 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.507 +#
1.508 +# List of possible output files, starting from the most likely.
1.509 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1.510 +# only as a last resort. b.out is created by i960 compilers.
1.511 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1.512 +#
1.513 +# The IRIX 6 linker writes into existing files which may not be
1.514 +# executable, retaining their permissions. Remove them first so a
1.515 +# subsequent execution test works.
1.516 +ac_rmfiles=
1.517 +for ac_file in $ac_files
1.518 +do
1.519 + case $ac_file in
1.520 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.521 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1.522 + esac
1.523 +done
1.524 +rm -f $ac_rmfiles
1.525 +
1.526 +if { (ac_try="$ac_link_default"
1.527 +case "(($ac_try" in
1.528 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.529 + *) ac_try_echo=$ac_try;;
1.530 +esac
1.531 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.532 + (eval "$ac_link_default") 2>&5
1.533 + ac_status=$?
1.534 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.535 + (exit $ac_status); }; then
1.536 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
1.537 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
1.538 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
1.539 +# so that the user can short-circuit this test for compilers unknown to
1.540 +# Autoconf.
1.541 +for ac_file in $ac_files ''
1.542 +do
1.543 + test -f "$ac_file" || continue
1.544 + case $ac_file in
1.545 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.546 + ;;
1.547 + [ab].out )
1.548 + # We found the default executable, but exeext='' is most
1.549 + # certainly right.
1.550 + break;;
1.551 + *.* )
1.552 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1.553 + then :; else
1.554 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.555 + fi
1.556 + # We set ac_cv_exeext here because the later test for it is not
1.557 + # safe: cross compilers may not add the suffix if given an `-o'
1.558 + # argument, so we may need to know it at that point already.
1.559 + # Even if this section looks crufty: it has the advantage of
1.560 + # actually working.
1.561 + break;;
1.562 + * )
1.563 + break;;
1.564 + esac
1.565 +done
1.566 +test "$ac_cv_exeext" = no && ac_cv_exeext=
1.567 +
1.568 +else
1.569 + ac_file=''
1.570 +fi
1.571 +
1.572 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
1.573 +echo "${ECHO_T}$ac_file" >&6; }
1.574 +if test -z "$ac_file"; then
1.575 + echo "$as_me: failed program was:" >&5
1.576 +sed 's/^/| /' conftest.$ac_ext >&5
1.577 +
1.578 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1.579 +See \`config.log' for more details." >&5
1.580 +echo "$as_me: error: C compiler cannot create executables
1.581 +See \`config.log' for more details." >&2;}
1.582 + { (exit 77); exit 77; }; }
1.583 +fi
1.584 +
1.585 +ac_exeext=$ac_cv_exeext
1.586 +
1.587 +# Check that the compiler produces executables we can run. If not, either
1.588 +# the compiler is broken, or we cross compile.
1.589 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1.590 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.591 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1.592 +# If not cross compiling, check that we can run a simple program.
1.593 +if test "$cross_compiling" != yes; then
1.594 + if { ac_try='./$ac_file'
1.595 + { (case "(($ac_try" in
1.596 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.597 + *) ac_try_echo=$ac_try;;
1.598 +esac
1.599 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.600 + (eval "$ac_try") 2>&5
1.601 + ac_status=$?
1.602 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.603 + (exit $ac_status); }; }; then
1.604 + cross_compiling=no
1.605 + else
1.606 + if test "$cross_compiling" = maybe; then
1.607 + cross_compiling=yes
1.608 + else
1.609 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.610 +If you meant to cross compile, use \`--host'.
1.611 +See \`config.log' for more details." >&5
1.612 +echo "$as_me: error: cannot run C compiled programs.
1.613 +If you meant to cross compile, use \`--host'.
1.614 +See \`config.log' for more details." >&2;}
1.615 + { (exit 1); exit 1; }; }
1.616 + fi
1.617 + fi
1.618 +fi
1.619 +{ echo "$as_me:$LINENO: result: yes" >&5
1.620 +echo "${ECHO_T}yes" >&6; }
1.621 +
1.622 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.623 +ac_clean_files=$ac_clean_files_save
1.624 +# Check that the compiler produces executables we can run. If not, either
1.625 +# the compiler is broken, or we cross compile.
1.626 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1.627 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
1.628 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
1.629 +echo "${ECHO_T}$cross_compiling" >&6; }
1.630 +
1.631 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
1.632 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
1.633 +if { (ac_try="$ac_link"
1.634 +case "(($ac_try" in
1.635 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.636 + *) ac_try_echo=$ac_try;;
1.637 +esac
1.638 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.639 + (eval "$ac_link") 2>&5
1.640 + ac_status=$?
1.641 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.642 + (exit $ac_status); }; then
1.643 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
1.644 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1.645 +# work properly (i.e., refer to `conftest.exe'), while it won't with
1.646 +# `rm'.
1.647 +for ac_file in conftest.exe conftest conftest.*; do
1.648 + test -f "$ac_file" || continue
1.649 + case $ac_file in
1.650 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.651 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.652 + break;;
1.653 + * ) break;;
1.654 + esac
1.655 +done
1.656 +else
1.657 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1.658 +See \`config.log' for more details." >&5
1.659 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1.660 +See \`config.log' for more details." >&2;}
1.661 + { (exit 1); exit 1; }; }
1.662 +fi
1.663 +
1.664 +rm -f conftest$ac_cv_exeext
1.665 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1.666 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.667 +
1.668 +rm -f conftest.$ac_ext
1.669 +EXEEXT=$ac_cv_exeext
1.670 +ac_exeext=$EXEEXT
1.671 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
1.672 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.673 +if test "${ac_cv_objext+set}" = set; then
1.674 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.675 +else
1.676 + cat >conftest.$ac_ext <<_ACEOF
1.677 +/* confdefs.h. */
1.678 +_ACEOF
1.679 +cat confdefs.h >>conftest.$ac_ext
1.680 +cat >>conftest.$ac_ext <<_ACEOF
1.681 +/* end confdefs.h. */
1.682 +
1.683 +int
1.684 +main ()
1.685 +{
1.686 +
1.687 + ;
1.688 + return 0;
1.689 +}
1.690 +_ACEOF
1.691 +rm -f conftest.o conftest.obj
1.692 +if { (ac_try="$ac_compile"
1.693 +case "(($ac_try" in
1.694 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.695 + *) ac_try_echo=$ac_try;;
1.696 +esac
1.697 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.698 + (eval "$ac_compile") 2>&5
1.699 + ac_status=$?
1.700 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.701 + (exit $ac_status); }; then
1.702 + for ac_file in conftest.o conftest.obj conftest.*; do
1.703 + test -f "$ac_file" || continue;
1.704 + case $ac_file in
1.705 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.706 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1.707 + break;;
1.708 + esac
1.709 +done
1.710 +else
1.711 + echo "$as_me: failed program was:" >&5
1.712 +sed 's/^/| /' conftest.$ac_ext >&5
1.713 +
1.714 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1.715 +See \`config.log' for more details." >&5
1.716 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
1.717 +See \`config.log' for more details." >&2;}
1.718 + { (exit 1); exit 1; }; }
1.719 +fi
1.720 +
1.721 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.722 +fi
1.723 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1.724 +echo "${ECHO_T}$ac_cv_objext" >&6; }
1.725 +OBJEXT=$ac_cv_objext
1.726 +ac_objext=$OBJEXT
1.727 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.728 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.729 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.730 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.731 +else
1.732 + cat >conftest.$ac_ext <<_ACEOF
1.733 +/* confdefs.h. */
1.734 +_ACEOF
1.735 +cat confdefs.h >>conftest.$ac_ext
1.736 +cat >>conftest.$ac_ext <<_ACEOF
1.737 +/* end confdefs.h. */
1.738 +
1.739 +int
1.740 +main ()
1.741 +{
1.742 +#ifndef __GNUC__
1.743 + choke me
1.744 +#endif
1.745 +
1.746 + ;
1.747 + return 0;
1.748 +}
1.749 +_ACEOF
1.750 +rm -f conftest.$ac_objext
1.751 +if { (ac_try="$ac_compile"
1.752 +case "(($ac_try" in
1.753 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.754 + *) ac_try_echo=$ac_try;;
1.755 +esac
1.756 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.757 + (eval "$ac_compile") 2>conftest.er1
1.758 + ac_status=$?
1.759 + grep -v '^ *+' conftest.er1 >conftest.err
1.760 + rm -f conftest.er1
1.761 + cat conftest.err >&5
1.762 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.763 + (exit $ac_status); } && {
1.764 + test -z "$ac_c_werror_flag" ||
1.765 + test ! -s conftest.err
1.766 + } && test -s conftest.$ac_objext; then
1.767 + ac_compiler_gnu=yes
1.768 +else
1.769 + echo "$as_me: failed program was:" >&5
1.770 +sed 's/^/| /' conftest.$ac_ext >&5
1.771 +
1.772 + ac_compiler_gnu=no
1.773 +fi
1.774 +
1.775 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.776 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.777 +
1.778 +fi
1.779 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.780 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.781 +GCC=`test $ac_compiler_gnu = yes && echo yes`
1.782 +ac_test_CFLAGS=${CFLAGS+set}
1.783 +ac_save_CFLAGS=$CFLAGS
1.784 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.785 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.786 +if test "${ac_cv_prog_cc_g+set}" = set; then
1.787 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.788 +else
1.789 + ac_save_c_werror_flag=$ac_c_werror_flag
1.790 + ac_c_werror_flag=yes
1.791 + ac_cv_prog_cc_g=no
1.792 + CFLAGS="-g"
1.793 + cat >conftest.$ac_ext <<_ACEOF
1.794 +/* confdefs.h. */
1.795 +_ACEOF
1.796 +cat confdefs.h >>conftest.$ac_ext
1.797 +cat >>conftest.$ac_ext <<_ACEOF
1.798 +/* end confdefs.h. */
1.799 +
1.800 +int
1.801 +main ()
1.802 +{
1.803 +
1.804 + ;
1.805 + return 0;
1.806 +}
1.807 +_ACEOF
1.808 +rm -f conftest.$ac_objext
1.809 +if { (ac_try="$ac_compile"
1.810 +case "(($ac_try" in
1.811 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.812 + *) ac_try_echo=$ac_try;;
1.813 +esac
1.814 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.815 + (eval "$ac_compile") 2>conftest.er1
1.816 + ac_status=$?
1.817 + grep -v '^ *+' conftest.er1 >conftest.err
1.818 + rm -f conftest.er1
1.819 + cat conftest.err >&5
1.820 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.821 + (exit $ac_status); } && {
1.822 + test -z "$ac_c_werror_flag" ||
1.823 + test ! -s conftest.err
1.824 + } && test -s conftest.$ac_objext; then
1.825 + ac_cv_prog_cc_g=yes
1.826 +else
1.827 + echo "$as_me: failed program was:" >&5
1.828 +sed 's/^/| /' conftest.$ac_ext >&5
1.829 +
1.830 + CFLAGS=""
1.831 + cat >conftest.$ac_ext <<_ACEOF
1.832 +/* confdefs.h. */
1.833 +_ACEOF
1.834 +cat confdefs.h >>conftest.$ac_ext
1.835 +cat >>conftest.$ac_ext <<_ACEOF
1.836 +/* end confdefs.h. */
1.837 +
1.838 +int
1.839 +main ()
1.840 +{
1.841 +
1.842 + ;
1.843 + return 0;
1.844 +}
1.845 +_ACEOF
1.846 +rm -f conftest.$ac_objext
1.847 +if { (ac_try="$ac_compile"
1.848 +case "(($ac_try" in
1.849 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.850 + *) ac_try_echo=$ac_try;;
1.851 +esac
1.852 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.853 + (eval "$ac_compile") 2>conftest.er1
1.854 + ac_status=$?
1.855 + grep -v '^ *+' conftest.er1 >conftest.err
1.856 + rm -f conftest.er1
1.857 + cat conftest.err >&5
1.858 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.859 + (exit $ac_status); } && {
1.860 + test -z "$ac_c_werror_flag" ||
1.861 + test ! -s conftest.err
1.862 + } && test -s conftest.$ac_objext; then
1.863 + :
1.864 +else
1.865 + echo "$as_me: failed program was:" >&5
1.866 +sed 's/^/| /' conftest.$ac_ext >&5
1.867 +
1.868 + ac_c_werror_flag=$ac_save_c_werror_flag
1.869 + CFLAGS="-g"
1.870 + cat >conftest.$ac_ext <<_ACEOF
1.871 +/* confdefs.h. */
1.872 +_ACEOF
1.873 +cat confdefs.h >>conftest.$ac_ext
1.874 +cat >>conftest.$ac_ext <<_ACEOF
1.875 +/* end confdefs.h. */
1.876 +
1.877 +int
1.878 +main ()
1.879 +{
1.880 +
1.881 + ;
1.882 + return 0;
1.883 +}
1.884 +_ACEOF
1.885 +rm -f conftest.$ac_objext
1.886 +if { (ac_try="$ac_compile"
1.887 +case "(($ac_try" in
1.888 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.889 + *) ac_try_echo=$ac_try;;
1.890 +esac
1.891 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.892 + (eval "$ac_compile") 2>conftest.er1
1.893 + ac_status=$?
1.894 + grep -v '^ *+' conftest.er1 >conftest.err
1.895 + rm -f conftest.er1
1.896 + cat conftest.err >&5
1.897 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.898 + (exit $ac_status); } && {
1.899 + test -z "$ac_c_werror_flag" ||
1.900 + test ! -s conftest.err
1.901 + } && test -s conftest.$ac_objext; then
1.902 + ac_cv_prog_cc_g=yes
1.903 +else
1.904 + echo "$as_me: failed program was:" >&5
1.905 +sed 's/^/| /' conftest.$ac_ext >&5
1.906 +
1.907 +
1.908 +fi
1.909 +
1.910 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.911 +fi
1.912 +
1.913 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.914 +fi
1.915 +
1.916 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.917 + ac_c_werror_flag=$ac_save_c_werror_flag
1.918 +fi
1.919 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.920 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.921 +if test "$ac_test_CFLAGS" = set; then
1.922 + CFLAGS=$ac_save_CFLAGS
1.923 +elif test $ac_cv_prog_cc_g = yes; then
1.924 + if test "$GCC" = yes; then
1.925 + CFLAGS="-g -O2"
1.926 + else
1.927 + CFLAGS="-g"
1.928 + fi
1.929 +else
1.930 + if test "$GCC" = yes; then
1.931 + CFLAGS="-O2"
1.932 + else
1.933 + CFLAGS=
1.934 + fi
1.935 +fi
1.936 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1.937 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1.938 +if test "${ac_cv_prog_cc_c89+set}" = set; then
1.939 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.940 +else
1.941 + ac_cv_prog_cc_c89=no
1.942 +ac_save_CC=$CC
1.943 +cat >conftest.$ac_ext <<_ACEOF
1.944 +/* confdefs.h. */
1.945 +_ACEOF
1.946 +cat confdefs.h >>conftest.$ac_ext
1.947 +cat >>conftest.$ac_ext <<_ACEOF
1.948 +/* end confdefs.h. */
1.949 +#include <stdarg.h>
1.950 +#include <stdio.h>
1.951 +#include <sys/types.h>
1.952 +#include <sys/stat.h>
1.953 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.954 +struct buf { int x; };
1.955 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.956 +static char *e (p, i)
1.957 + char **p;
1.958 + int i;
1.959 +{
1.960 + return p[i];
1.961 +}
1.962 +static char *f (char * (*g) (char **, int), char **p, ...)
1.963 +{
1.964 + char *s;
1.965 + va_list v;
1.966 + va_start (v,p);
1.967 + s = g (p, va_arg (v,int));
1.968 + va_end (v);
1.969 + return s;
1.970 +}
1.971 +
1.972 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.973 + function prototypes and stuff, but not '\xHH' hex character constants.
1.974 + These don't provoke an error unfortunately, instead are silently treated
1.975 + as 'x'. The following induces an error, until -std is added to get
1.976 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.977 + array size at least. It's necessary to write '\x00'==0 to get something
1.978 + that's true only with -std. */
1.979 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.980 +
1.981 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.982 + inside strings and character constants. */
1.983 +#define FOO(x) 'x'
1.984 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.985 +
1.986 +int test (int i, double x);
1.987 +struct s1 {int (*f) (int a);};
1.988 +struct s2 {int (*f) (double a);};
1.989 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.990 +int argc;
1.991 +char **argv;
1.992 +int
1.993 +main ()
1.994 +{
1.995 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.996 + ;
1.997 + return 0;
1.998 +}
1.999 +_ACEOF
1.1000 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.1001 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1002 +do
1.1003 + CC="$ac_save_CC $ac_arg"
1.1004 + rm -f conftest.$ac_objext
1.1005 +if { (ac_try="$ac_compile"
1.1006 +case "(($ac_try" in
1.1007 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1008 + *) ac_try_echo=$ac_try;;
1.1009 +esac
1.1010 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1011 + (eval "$ac_compile") 2>conftest.er1
1.1012 + ac_status=$?
1.1013 + grep -v '^ *+' conftest.er1 >conftest.err
1.1014 + rm -f conftest.er1
1.1015 + cat conftest.err >&5
1.1016 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1017 + (exit $ac_status); } && {
1.1018 + test -z "$ac_c_werror_flag" ||
1.1019 + test ! -s conftest.err
1.1020 + } && test -s conftest.$ac_objext; then
1.1021 + ac_cv_prog_cc_c89=$ac_arg
1.1022 +else
1.1023 + echo "$as_me: failed program was:" >&5
1.1024 +sed 's/^/| /' conftest.$ac_ext >&5
1.1025 +
1.1026 +
1.1027 +fi
1.1028 +
1.1029 +rm -f core conftest.err conftest.$ac_objext
1.1030 + test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1031 +done
1.1032 +rm -f conftest.$ac_ext
1.1033 +CC=$ac_save_CC
1.1034 +
1.1035 +fi
1.1036 +# AC_CACHE_VAL
1.1037 +case "x$ac_cv_prog_cc_c89" in
1.1038 + x)
1.1039 + { echo "$as_me:$LINENO: result: none needed" >&5
1.1040 +echo "${ECHO_T}none needed" >&6; } ;;
1.1041 + xno)
1.1042 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.1043 +echo "${ECHO_T}unsupported" >&6; } ;;
1.1044 + *)
1.1045 + CC="$CC $ac_cv_prog_cc_c89"
1.1046 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.1047 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.1048 +esac
1.1049 +
1.1050 +
1.1051 +ac_ext=c
1.1052 +ac_cpp='$CPP $CPPFLAGS'
1.1053 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.1054 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.1055 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1056 +
1.1057 +depcc="$CC" am_compiler_list=
1.1058 +
1.1059 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.1060 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.1061 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.1062 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1063 +else
1.1064 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.1065 + # We make a subdir and do the tests there. Otherwise we can end up
1.1066 + # making bogus files that we don't know about and never remove. For
1.1067 + # instance it was reported that on HP-UX the gcc test will end up
1.1068 + # making a dummy file named `D' -- because `-MD' means `put the output
1.1069 + # in D'.
1.1070 + mkdir conftest.dir
1.1071 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.1072 + # using a relative directory.
1.1073 + cp "$am_depcomp" conftest.dir
1.1074 + cd conftest.dir
1.1075 + # We will build objects and dependencies in a subdirectory because
1.1076 + # it helps to detect inapplicable dependency modes. For instance
1.1077 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.1078 + # side effect of compilation, but ICC will put the dependencies in
1.1079 + # the current directory while Tru64 will put them in the object
1.1080 + # directory.
1.1081 + mkdir sub
1.1082 +
1.1083 + am_cv_CC_dependencies_compiler_type=none
1.1084 + if test "$am_compiler_list" = ""; then
1.1085 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1086 + fi
1.1087 + for depmode in $am_compiler_list; do
1.1088 + # Setup a source with many dependencies, because some compilers
1.1089 + # like to wrap large dependency lists on column 80 (with \), and
1.1090 + # we should not choose a depcomp mode which is confused by this.
1.1091 + #
1.1092 + # We need to recreate these files for each test, as the compiler may
1.1093 + # overwrite some of them when testing with obscure command lines.
1.1094 + # This happens at least with the AIX C compiler.
1.1095 + : > sub/conftest.c
1.1096 + for i in 1 2 3 4 5 6; do
1.1097 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.1098 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.1099 + # Solaris 8's {/usr,}/bin/sh.
1.1100 + touch sub/conftst$i.h
1.1101 + done
1.1102 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.1103 +
1.1104 + case $depmode in
1.1105 + nosideeffect)
1.1106 + # after this tag, mechanisms are not by side-effect, so they'll
1.1107 + # only be used when explicitly requested
1.1108 + if test "x$enable_dependency_tracking" = xyes; then
1.1109 + continue
1.1110 + else
1.1111 + break
1.1112 + fi
1.1113 + ;;
1.1114 + none) break ;;
1.1115 + esac
1.1116 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.1117 + # mode. It turns out that the SunPro C++ compiler does not properly
1.1118 + # handle `-M -o', and we need to detect this.
1.1119 + if depmode=$depmode \
1.1120 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.1121 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.1122 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.1123 + >/dev/null 2>conftest.err &&
1.1124 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.1125 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.1126 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.1127 + # icc doesn't choke on unknown options, it will just issue warnings
1.1128 + # or remarks (even with -Werror). So we grep stderr for any message
1.1129 + # that says an option was ignored or not supported.
1.1130 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.1131 + # icc: Command line warning: ignoring option '-M'; no argument required
1.1132 + # The diagnosis changed in icc 8.0:
1.1133 + # icc: Command line remark: option '-MP' not supported
1.1134 + if (grep 'ignoring option' conftest.err ||
1.1135 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.1136 + am_cv_CC_dependencies_compiler_type=$depmode
1.1137 + break
1.1138 + fi
1.1139 + fi
1.1140 + done
1.1141 +
1.1142 + cd ..
1.1143 + rm -rf conftest.dir
1.1144 +else
1.1145 + am_cv_CC_dependencies_compiler_type=none
1.1146 +fi
1.1147 +
1.1148 +fi
1.1149 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.1150 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.1151 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.1152 +
1.1153 +
1.1154 +
1.1155 +if
1.1156 + test "x$enable_dependency_tracking" != xno \
1.1157 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.1158 + am__fastdepCC_TRUE=
1.1159 + am__fastdepCC_FALSE='#'
1.1160 +else
1.1161 + am__fastdepCC_TRUE='#'
1.1162 + am__fastdepCC_FALSE=
1.1163 +fi
1.1164 +
1.1165 +
1.1166 +
1.1167 +
1.1168 + { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
1.1169 +echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
1.1170 +if test "${ac_cv_lib_cposix_strerror+set}" = set; then
1.1171 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1172 +else
1.1173 + ac_check_lib_save_LIBS=$LIBS
1.1174 +LIBS="-lcposix $LIBS"
1.1175 +cat >conftest.$ac_ext <<_ACEOF
1.1176 +/* confdefs.h. */
1.1177 +_ACEOF
1.1178 +cat confdefs.h >>conftest.$ac_ext
1.1179 +cat >>conftest.$ac_ext <<_ACEOF
1.1180 +/* end confdefs.h. */
1.1181 +
1.1182 +/* Override any GCC internal prototype to avoid an error.
1.1183 + Use char because int might match the return type of a GCC
1.1184 + builtin and then its argument prototype would still apply. */
1.1185 +#ifdef __cplusplus
1.1186 +extern "C"
1.1187 +#endif
1.1188 +char strerror ();
1.1189 +int
1.1190 +main ()
1.1191 +{
1.1192 +return strerror ();
1.1193 + ;
1.1194 + return 0;
1.1195 +}
1.1196 +_ACEOF
1.1197 +rm -f conftest.$ac_objext conftest$ac_exeext
1.1198 +if { (ac_try="$ac_link"
1.1199 +case "(($ac_try" in
1.1200 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1201 + *) ac_try_echo=$ac_try;;
1.1202 +esac
1.1203 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1204 + (eval "$ac_link") 2>conftest.er1
1.1205 + ac_status=$?
1.1206 + grep -v '^ *+' conftest.er1 >conftest.err
1.1207 + rm -f conftest.er1
1.1208 + cat conftest.err >&5
1.1209 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1210 + (exit $ac_status); } && {
1.1211 + test -z "$ac_c_werror_flag" ||
1.1212 + test ! -s conftest.err
1.1213 + } && test -s conftest$ac_exeext &&
1.1214 + $as_test_x conftest$ac_exeext; then
1.1215 + ac_cv_lib_cposix_strerror=yes
1.1216 +else
1.1217 + echo "$as_me: failed program was:" >&5
1.1218 +sed 's/^/| /' conftest.$ac_ext >&5
1.1219 +
1.1220 + ac_cv_lib_cposix_strerror=no
1.1221 +fi
1.1222 +
1.1223 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.1224 + conftest$ac_exeext conftest.$ac_ext
1.1225 +LIBS=$ac_check_lib_save_LIBS
1.1226 +fi
1.1227 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
1.1228 +echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
1.1229 +if test $ac_cv_lib_cposix_strerror = yes; then
1.1230 + LIBS="$LIBS -lcposix"
1.1231 +fi
1.1232 +
1.1233 +
1.1234 +
1.1235 +ac_ext=c
1.1236 +ac_cpp='$CPP $CPPFLAGS'
1.1237 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.1238 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.1239 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1240 +if test -n "$ac_tool_prefix"; then
1.1241 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.1242 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1243 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1244 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1245 +if test "${ac_cv_prog_CC+set}" = set; then
1.1246 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1247 +else
1.1248 + if test -n "$CC"; then
1.1249 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.1250 +else
1.1251 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1252 +for as_dir in $PATH
1.1253 +do
1.1254 + IFS=$as_save_IFS
1.1255 + test -z "$as_dir" && as_dir=.
1.1256 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1257 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1258 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.1259 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1260 + break 2
1.1261 + fi
1.1262 +done
1.1263 +done
1.1264 +IFS=$as_save_IFS
1.1265 +
1.1266 +fi
1.1267 +fi
1.1268 +CC=$ac_cv_prog_CC
1.1269 +if test -n "$CC"; then
1.1270 + { echo "$as_me:$LINENO: result: $CC" >&5
1.1271 +echo "${ECHO_T}$CC" >&6; }
1.1272 +else
1.1273 + { echo "$as_me:$LINENO: result: no" >&5
1.1274 +echo "${ECHO_T}no" >&6; }
1.1275 +fi
1.1276 +
1.1277 +
1.1278 +fi
1.1279 +if test -z "$ac_cv_prog_CC"; then
1.1280 + ac_ct_CC=$CC
1.1281 + # Extract the first word of "gcc", so it can be a program name with args.
1.1282 +set dummy gcc; ac_word=$2
1.1283 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1284 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1285 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.1286 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1287 +else
1.1288 + if test -n "$ac_ct_CC"; then
1.1289 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1290 +else
1.1291 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1292 +for as_dir in $PATH
1.1293 +do
1.1294 + IFS=$as_save_IFS
1.1295 + test -z "$as_dir" && as_dir=.
1.1296 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1297 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1298 + ac_cv_prog_ac_ct_CC="gcc"
1.1299 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1300 + break 2
1.1301 + fi
1.1302 +done
1.1303 +done
1.1304 +IFS=$as_save_IFS
1.1305 +
1.1306 +fi
1.1307 +fi
1.1308 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.1309 +if test -n "$ac_ct_CC"; then
1.1310 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.1311 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1312 +else
1.1313 + { echo "$as_me:$LINENO: result: no" >&5
1.1314 +echo "${ECHO_T}no" >&6; }
1.1315 +fi
1.1316 +
1.1317 + if test "x$ac_ct_CC" = x; then
1.1318 + CC=""
1.1319 + else
1.1320 + case $cross_compiling:$ac_tool_warned in
1.1321 +yes:)
1.1322 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1323 +whose name does not start with the host triplet. If you think this
1.1324 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1325 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1326 +whose name does not start with the host triplet. If you think this
1.1327 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.1328 +ac_tool_warned=yes ;;
1.1329 +esac
1.1330 + CC=$ac_ct_CC
1.1331 + fi
1.1332 +else
1.1333 + CC="$ac_cv_prog_CC"
1.1334 +fi
1.1335 +
1.1336 +if test -z "$CC"; then
1.1337 + if test -n "$ac_tool_prefix"; then
1.1338 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1339 +set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1340 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1341 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1342 +if test "${ac_cv_prog_CC+set}" = set; then
1.1343 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1344 +else
1.1345 + if test -n "$CC"; then
1.1346 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.1347 +else
1.1348 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1349 +for as_dir in $PATH
1.1350 +do
1.1351 + IFS=$as_save_IFS
1.1352 + test -z "$as_dir" && as_dir=.
1.1353 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1354 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1355 + ac_cv_prog_CC="${ac_tool_prefix}cc"
1.1356 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1357 + break 2
1.1358 + fi
1.1359 +done
1.1360 +done
1.1361 +IFS=$as_save_IFS
1.1362 +
1.1363 +fi
1.1364 +fi
1.1365 +CC=$ac_cv_prog_CC
1.1366 +if test -n "$CC"; then
1.1367 + { echo "$as_me:$LINENO: result: $CC" >&5
1.1368 +echo "${ECHO_T}$CC" >&6; }
1.1369 +else
1.1370 + { echo "$as_me:$LINENO: result: no" >&5
1.1371 +echo "${ECHO_T}no" >&6; }
1.1372 +fi
1.1373 +
1.1374 +
1.1375 + fi
1.1376 +fi
1.1377 +if test -z "$CC"; then
1.1378 + # Extract the first word of "cc", so it can be a program name with args.
1.1379 +set dummy cc; ac_word=$2
1.1380 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1381 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1382 +if test "${ac_cv_prog_CC+set}" = set; then
1.1383 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1384 +else
1.1385 + if test -n "$CC"; then
1.1386 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.1387 +else
1.1388 + ac_prog_rejected=no
1.1389 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1390 +for as_dir in $PATH
1.1391 +do
1.1392 + IFS=$as_save_IFS
1.1393 + test -z "$as_dir" && as_dir=.
1.1394 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1395 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1396 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.1397 + ac_prog_rejected=yes
1.1398 + continue
1.1399 + fi
1.1400 + ac_cv_prog_CC="cc"
1.1401 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1402 + break 2
1.1403 + fi
1.1404 +done
1.1405 +done
1.1406 +IFS=$as_save_IFS
1.1407 +
1.1408 +if test $ac_prog_rejected = yes; then
1.1409 + # We found a bogon in the path, so make sure we never use it.
1.1410 + set dummy $ac_cv_prog_CC
1.1411 + shift
1.1412 + if test $# != 0; then
1.1413 + # We chose a different compiler from the bogus one.
1.1414 + # However, it has the same basename, so the bogon will be chosen
1.1415 + # first if we set CC to just the basename; use the full file name.
1.1416 + shift
1.1417 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1418 + fi
1.1419 +fi
1.1420 +fi
1.1421 +fi
1.1422 +CC=$ac_cv_prog_CC
1.1423 +if test -n "$CC"; then
1.1424 + { echo "$as_me:$LINENO: result: $CC" >&5
1.1425 +echo "${ECHO_T}$CC" >&6; }
1.1426 +else
1.1427 + { echo "$as_me:$LINENO: result: no" >&5
1.1428 +echo "${ECHO_T}no" >&6; }
1.1429 +fi
1.1430 +
1.1431 +
1.1432 +fi
1.1433 +if test -z "$CC"; then
1.1434 + if test -n "$ac_tool_prefix"; then
1.1435 + for ac_prog in cl.exe
1.1436 + do
1.1437 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.1438 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1439 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1440 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1441 +if test "${ac_cv_prog_CC+set}" = set; then
1.1442 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1443 +else
1.1444 + if test -n "$CC"; then
1.1445 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.1446 +else
1.1447 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1448 +for as_dir in $PATH
1.1449 +do
1.1450 + IFS=$as_save_IFS
1.1451 + test -z "$as_dir" && as_dir=.
1.1452 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1453 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1454 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.1455 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1456 + break 2
1.1457 + fi
1.1458 +done
1.1459 +done
1.1460 +IFS=$as_save_IFS
1.1461 +
1.1462 +fi
1.1463 +fi
1.1464 +CC=$ac_cv_prog_CC
1.1465 +if test -n "$CC"; then
1.1466 + { echo "$as_me:$LINENO: result: $CC" >&5
1.1467 +echo "${ECHO_T}$CC" >&6; }
1.1468 +else
1.1469 + { echo "$as_me:$LINENO: result: no" >&5
1.1470 +echo "${ECHO_T}no" >&6; }
1.1471 +fi
1.1472 +
1.1473 +
1.1474 + test -n "$CC" && break
1.1475 + done
1.1476 +fi
1.1477 +if test -z "$CC"; then
1.1478 + ac_ct_CC=$CC
1.1479 + for ac_prog in cl.exe
1.1480 +do
1.1481 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1482 +set dummy $ac_prog; ac_word=$2
1.1483 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1484 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1485 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.1486 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1487 +else
1.1488 + if test -n "$ac_ct_CC"; then
1.1489 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1490 +else
1.1491 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1492 +for as_dir in $PATH
1.1493 +do
1.1494 + IFS=$as_save_IFS
1.1495 + test -z "$as_dir" && as_dir=.
1.1496 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1497 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1498 + ac_cv_prog_ac_ct_CC="$ac_prog"
1.1499 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1500 + break 2
1.1501 + fi
1.1502 +done
1.1503 +done
1.1504 +IFS=$as_save_IFS
1.1505 +
1.1506 +fi
1.1507 +fi
1.1508 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.1509 +if test -n "$ac_ct_CC"; then
1.1510 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.1511 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1512 +else
1.1513 + { echo "$as_me:$LINENO: result: no" >&5
1.1514 +echo "${ECHO_T}no" >&6; }
1.1515 +fi
1.1516 +
1.1517 +
1.1518 + test -n "$ac_ct_CC" && break
1.1519 +done
1.1520 +
1.1521 + if test "x$ac_ct_CC" = x; then
1.1522 + CC=""
1.1523 + else
1.1524 + case $cross_compiling:$ac_tool_warned in
1.1525 +yes:)
1.1526 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1527 +whose name does not start with the host triplet. If you think this
1.1528 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1529 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1530 +whose name does not start with the host triplet. If you think this
1.1531 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.1532 +ac_tool_warned=yes ;;
1.1533 +esac
1.1534 + CC=$ac_ct_CC
1.1535 + fi
1.1536 +fi
1.1537 +
1.1538 +fi
1.1539 +
1.1540 +
1.1541 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.1542 +See \`config.log' for more details." >&5
1.1543 +echo "$as_me: error: no acceptable C compiler found in \$PATH
1.1544 +See \`config.log' for more details." >&2;}
1.1545 + { (exit 1); exit 1; }; }
1.1546 +
1.1547 +# Provide some information about the compiler.
1.1548 +echo "$as_me:$LINENO: checking for C compiler version" >&5
1.1549 +ac_compiler=`set X $ac_compile; echo $2`
1.1550 +{ (ac_try="$ac_compiler --version >&5"
1.1551 +case "(($ac_try" in
1.1552 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1553 + *) ac_try_echo=$ac_try;;
1.1554 +esac
1.1555 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1556 + (eval "$ac_compiler --version >&5") 2>&5
1.1557 + ac_status=$?
1.1558 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1559 + (exit $ac_status); }
1.1560 +{ (ac_try="$ac_compiler -v >&5"
1.1561 +case "(($ac_try" in
1.1562 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1563 + *) ac_try_echo=$ac_try;;
1.1564 +esac
1.1565 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1566 + (eval "$ac_compiler -v >&5") 2>&5
1.1567 + ac_status=$?
1.1568 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1569 + (exit $ac_status); }
1.1570 +{ (ac_try="$ac_compiler -V >&5"
1.1571 +case "(($ac_try" in
1.1572 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1573 + *) ac_try_echo=$ac_try;;
1.1574 +esac
1.1575 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1576 + (eval "$ac_compiler -V >&5") 2>&5
1.1577 + ac_status=$?
1.1578 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1579 + (exit $ac_status); }
1.1580 +
1.1581 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.1582 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.1583 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.1584 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1585 +else
1.1586 + cat >conftest.$ac_ext <<_ACEOF
1.1587 +/* confdefs.h. */
1.1588 +_ACEOF
1.1589 +cat confdefs.h >>conftest.$ac_ext
1.1590 +cat >>conftest.$ac_ext <<_ACEOF
1.1591 +/* end confdefs.h. */
1.1592 +
1.1593 +int
1.1594 +main ()
1.1595 +{
1.1596 +#ifndef __GNUC__
1.1597 + choke me
1.1598 +#endif
1.1599 +
1.1600 + ;
1.1601 + return 0;
1.1602 +}
1.1603 +_ACEOF
1.1604 +rm -f conftest.$ac_objext
1.1605 +if { (ac_try="$ac_compile"
1.1606 +case "(($ac_try" in
1.1607 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1608 + *) ac_try_echo=$ac_try;;
1.1609 +esac
1.1610 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1611 + (eval "$ac_compile") 2>conftest.er1
1.1612 + ac_status=$?
1.1613 + grep -v '^ *+' conftest.er1 >conftest.err
1.1614 + rm -f conftest.er1
1.1615 + cat conftest.err >&5
1.1616 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1617 + (exit $ac_status); } && {
1.1618 + test -z "$ac_c_werror_flag" ||
1.1619 + test ! -s conftest.err
1.1620 + } && test -s conftest.$ac_objext; then
1.1621 + ac_compiler_gnu=yes
1.1622 +else
1.1623 + echo "$as_me: failed program was:" >&5
1.1624 +sed 's/^/| /' conftest.$ac_ext >&5
1.1625 +
1.1626 + ac_compiler_gnu=no
1.1627 +fi
1.1628 +
1.1629 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1630 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.1631 +
1.1632 +fi
1.1633 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.1634 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.1635 +GCC=`test $ac_compiler_gnu = yes && echo yes`
1.1636 +ac_test_CFLAGS=${CFLAGS+set}
1.1637 +ac_save_CFLAGS=$CFLAGS
1.1638 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.1639 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.1640 +if test "${ac_cv_prog_cc_g+set}" = set; then
1.1641 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1642 +else
1.1643 + ac_save_c_werror_flag=$ac_c_werror_flag
1.1644 + ac_c_werror_flag=yes
1.1645 + ac_cv_prog_cc_g=no
1.1646 + CFLAGS="-g"
1.1647 + cat >conftest.$ac_ext <<_ACEOF
1.1648 +/* confdefs.h. */
1.1649 +_ACEOF
1.1650 +cat confdefs.h >>conftest.$ac_ext
1.1651 +cat >>conftest.$ac_ext <<_ACEOF
1.1652 +/* end confdefs.h. */
1.1653 +
1.1654 +int
1.1655 +main ()
1.1656 +{
1.1657 +
1.1658 + ;
1.1659 + return 0;
1.1660 +}
1.1661 +_ACEOF
1.1662 +rm -f conftest.$ac_objext
1.1663 +if { (ac_try="$ac_compile"
1.1664 +case "(($ac_try" in
1.1665 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1666 + *) ac_try_echo=$ac_try;;
1.1667 +esac
1.1668 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1669 + (eval "$ac_compile") 2>conftest.er1
1.1670 + ac_status=$?
1.1671 + grep -v '^ *+' conftest.er1 >conftest.err
1.1672 + rm -f conftest.er1
1.1673 + cat conftest.err >&5
1.1674 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1675 + (exit $ac_status); } && {
1.1676 + test -z "$ac_c_werror_flag" ||
1.1677 + test ! -s conftest.err
1.1678 + } && test -s conftest.$ac_objext; then
1.1679 + ac_cv_prog_cc_g=yes
1.1680 +else
1.1681 + echo "$as_me: failed program was:" >&5
1.1682 +sed 's/^/| /' conftest.$ac_ext >&5
1.1683 +
1.1684 + CFLAGS=""
1.1685 + cat >conftest.$ac_ext <<_ACEOF
1.1686 +/* confdefs.h. */
1.1687 +_ACEOF
1.1688 +cat confdefs.h >>conftest.$ac_ext
1.1689 +cat >>conftest.$ac_ext <<_ACEOF
1.1690 +/* end confdefs.h. */
1.1691 +
1.1692 +int
1.1693 +main ()
1.1694 +{
1.1695 +
1.1696 + ;
1.1697 + return 0;
1.1698 +}
1.1699 +_ACEOF
1.1700 +rm -f conftest.$ac_objext
1.1701 +if { (ac_try="$ac_compile"
1.1702 +case "(($ac_try" in
1.1703 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1704 + *) ac_try_echo=$ac_try;;
1.1705 +esac
1.1706 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1707 + (eval "$ac_compile") 2>conftest.er1
1.1708 + ac_status=$?
1.1709 + grep -v '^ *+' conftest.er1 >conftest.err
1.1710 + rm -f conftest.er1
1.1711 + cat conftest.err >&5
1.1712 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1713 + (exit $ac_status); } && {
1.1714 + test -z "$ac_c_werror_flag" ||
1.1715 + test ! -s conftest.err
1.1716 + } && test -s conftest.$ac_objext; then
1.1717 + :
1.1718 +else
1.1719 + echo "$as_me: failed program was:" >&5
1.1720 +sed 's/^/| /' conftest.$ac_ext >&5
1.1721 +
1.1722 + ac_c_werror_flag=$ac_save_c_werror_flag
1.1723 + CFLAGS="-g"
1.1724 + cat >conftest.$ac_ext <<_ACEOF
1.1725 +/* confdefs.h. */
1.1726 +_ACEOF
1.1727 +cat confdefs.h >>conftest.$ac_ext
1.1728 +cat >>conftest.$ac_ext <<_ACEOF
1.1729 +/* end confdefs.h. */
1.1730 +
1.1731 +int
1.1732 +main ()
1.1733 +{
1.1734 +
1.1735 + ;
1.1736 + return 0;
1.1737 +}
1.1738 +_ACEOF
1.1739 +rm -f conftest.$ac_objext
1.1740 +if { (ac_try="$ac_compile"
1.1741 +case "(($ac_try" in
1.1742 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1743 + *) ac_try_echo=$ac_try;;
1.1744 +esac
1.1745 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1746 + (eval "$ac_compile") 2>conftest.er1
1.1747 + ac_status=$?
1.1748 + grep -v '^ *+' conftest.er1 >conftest.err
1.1749 + rm -f conftest.er1
1.1750 + cat conftest.err >&5
1.1751 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1752 + (exit $ac_status); } && {
1.1753 + test -z "$ac_c_werror_flag" ||
1.1754 + test ! -s conftest.err
1.1755 + } && test -s conftest.$ac_objext; then
1.1756 + ac_cv_prog_cc_g=yes
1.1757 +else
1.1758 + echo "$as_me: failed program was:" >&5
1.1759 +sed 's/^/| /' conftest.$ac_ext >&5
1.1760 +
1.1761 +
1.1762 +fi
1.1763 +
1.1764 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1765 +fi
1.1766 +
1.1767 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1768 +fi
1.1769 +
1.1770 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1771 + ac_c_werror_flag=$ac_save_c_werror_flag
1.1772 +fi
1.1773 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.1774 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.1775 +if test "$ac_test_CFLAGS" = set; then
1.1776 + CFLAGS=$ac_save_CFLAGS
1.1777 +elif test $ac_cv_prog_cc_g = yes; then
1.1778 + if test "$GCC" = yes; then
1.1779 + CFLAGS="-g -O2"
1.1780 + else
1.1781 + CFLAGS="-g"
1.1782 + fi
1.1783 +else
1.1784 + if test "$GCC" = yes; then
1.1785 + CFLAGS="-O2"
1.1786 + else
1.1787 + CFLAGS=
1.1788 + fi
1.1789 +fi
1.1790 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1.1791 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1.1792 +if test "${ac_cv_prog_cc_c89+set}" = set; then
1.1793 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1794 +else
1.1795 + ac_cv_prog_cc_c89=no
1.1796 +ac_save_CC=$CC
1.1797 +cat >conftest.$ac_ext <<_ACEOF
1.1798 +/* confdefs.h. */
1.1799 +_ACEOF
1.1800 +cat confdefs.h >>conftest.$ac_ext
1.1801 +cat >>conftest.$ac_ext <<_ACEOF
1.1802 +/* end confdefs.h. */
1.1803 +#include <stdarg.h>
1.1804 +#include <stdio.h>
1.1805 +#include <sys/types.h>
1.1806 +#include <sys/stat.h>
1.1807 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.1808 +struct buf { int x; };
1.1809 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.1810 +static char *e (p, i)
1.1811 + char **p;
1.1812 + int i;
1.1813 +{
1.1814 + return p[i];
1.1815 +}
1.1816 +static char *f (char * (*g) (char **, int), char **p, ...)
1.1817 +{
1.1818 + char *s;
1.1819 + va_list v;
1.1820 + va_start (v,p);
1.1821 + s = g (p, va_arg (v,int));
1.1822 + va_end (v);
1.1823 + return s;
1.1824 +}
1.1825 +
1.1826 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.1827 + function prototypes and stuff, but not '\xHH' hex character constants.
1.1828 + These don't provoke an error unfortunately, instead are silently treated
1.1829 + as 'x'. The following induces an error, until -std is added to get
1.1830 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.1831 + array size at least. It's necessary to write '\x00'==0 to get something
1.1832 + that's true only with -std. */
1.1833 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.1834 +
1.1835 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.1836 + inside strings and character constants. */
1.1837 +#define FOO(x) 'x'
1.1838 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1839 +
1.1840 +int test (int i, double x);
1.1841 +struct s1 {int (*f) (int a);};
1.1842 +struct s2 {int (*f) (double a);};
1.1843 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.1844 +int argc;
1.1845 +char **argv;
1.1846 +int
1.1847 +main ()
1.1848 +{
1.1849 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.1850 + ;
1.1851 + return 0;
1.1852 +}
1.1853 +_ACEOF
1.1854 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.1855 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1856 +do
1.1857 + CC="$ac_save_CC $ac_arg"
1.1858 + rm -f conftest.$ac_objext
1.1859 +if { (ac_try="$ac_compile"
1.1860 +case "(($ac_try" in
1.1861 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1862 + *) ac_try_echo=$ac_try;;
1.1863 +esac
1.1864 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1865 + (eval "$ac_compile") 2>conftest.er1
1.1866 + ac_status=$?
1.1867 + grep -v '^ *+' conftest.er1 >conftest.err
1.1868 + rm -f conftest.er1
1.1869 + cat conftest.err >&5
1.1870 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1871 + (exit $ac_status); } && {
1.1872 + test -z "$ac_c_werror_flag" ||
1.1873 + test ! -s conftest.err
1.1874 + } && test -s conftest.$ac_objext; then
1.1875 + ac_cv_prog_cc_c89=$ac_arg
1.1876 +else
1.1877 + echo "$as_me: failed program was:" >&5
1.1878 +sed 's/^/| /' conftest.$ac_ext >&5
1.1879 +
1.1880 +
1.1881 +fi
1.1882 +
1.1883 +rm -f core conftest.err conftest.$ac_objext
1.1884 + test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1885 +done
1.1886 +rm -f conftest.$ac_ext
1.1887 +CC=$ac_save_CC
1.1888 +
1.1889 +fi
1.1890 +# AC_CACHE_VAL
1.1891 +case "x$ac_cv_prog_cc_c89" in
1.1892 + x)
1.1893 + { echo "$as_me:$LINENO: result: none needed" >&5
1.1894 +echo "${ECHO_T}none needed" >&6; } ;;
1.1895 + xno)
1.1896 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.1897 +echo "${ECHO_T}unsupported" >&6; } ;;
1.1898 + *)
1.1899 + CC="$CC $ac_cv_prog_cc_c89"
1.1900 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.1901 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.1902 +esac
1.1903 +
1.1904 +
1.1905 +ac_ext=c
1.1906 +ac_cpp='$CPP $CPPFLAGS'
1.1907 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.1908 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.1909 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1910 +
1.1911 +depcc="$CC" am_compiler_list=
1.1912 +
1.1913 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.1914 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.1915 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.1916 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1917 +else
1.1918 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.1919 + # We make a subdir and do the tests there. Otherwise we can end up
1.1920 + # making bogus files that we don't know about and never remove. For
1.1921 + # instance it was reported that on HP-UX the gcc test will end up
1.1922 + # making a dummy file named `D' -- because `-MD' means `put the output
1.1923 + # in D'.
1.1924 + mkdir conftest.dir
1.1925 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.1926 + # using a relative directory.
1.1927 + cp "$am_depcomp" conftest.dir
1.1928 + cd conftest.dir
1.1929 + # We will build objects and dependencies in a subdirectory because
1.1930 + # it helps to detect inapplicable dependency modes. For instance
1.1931 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.1932 + # side effect of compilation, but ICC will put the dependencies in
1.1933 + # the current directory while Tru64 will put them in the object
1.1934 + # directory.
1.1935 + mkdir sub
1.1936 +
1.1937 + am_cv_CC_dependencies_compiler_type=none
1.1938 + if test "$am_compiler_list" = ""; then
1.1939 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1940 + fi
1.1941 + for depmode in $am_compiler_list; do
1.1942 + # Setup a source with many dependencies, because some compilers
1.1943 + # like to wrap large dependency lists on column 80 (with \), and
1.1944 + # we should not choose a depcomp mode which is confused by this.
1.1945 + #
1.1946 + # We need to recreate these files for each test, as the compiler may
1.1947 + # overwrite some of them when testing with obscure command lines.
1.1948 + # This happens at least with the AIX C compiler.
1.1949 + : > sub/conftest.c
1.1950 + for i in 1 2 3 4 5 6; do
1.1951 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.1952 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.1953 + # Solaris 8's {/usr,}/bin/sh.
1.1954 + touch sub/conftst$i.h
1.1955 + done
1.1956 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.1957 +
1.1958 + case $depmode in
1.1959 + nosideeffect)
1.1960 + # after this tag, mechanisms are not by side-effect, so they'll
1.1961 + # only be used when explicitly requested
1.1962 + if test "x$enable_dependency_tracking" = xyes; then
1.1963 + continue
1.1964 + else
1.1965 + break
1.1966 + fi
1.1967 + ;;
1.1968 + none) break ;;
1.1969 + esac
1.1970 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.1971 + # mode. It turns out that the SunPro C++ compiler does not properly
1.1972 + # handle `-M -o', and we need to detect this.
1.1973 + if depmode=$depmode \
1.1974 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.1975 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.1976 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.1977 + >/dev/null 2>conftest.err &&
1.1978 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.1979 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.1980 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.1981 + # icc doesn't choke on unknown options, it will just issue warnings
1.1982 + # or remarks (even with -Werror). So we grep stderr for any message
1.1983 + # that says an option was ignored or not supported.
1.1984 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.1985 + # icc: Command line warning: ignoring option '-M'; no argument required
1.1986 + # The diagnosis changed in icc 8.0:
1.1987 + # icc: Command line remark: option '-MP' not supported
1.1988 + if (grep 'ignoring option' conftest.err ||
1.1989 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.1990 + am_cv_CC_dependencies_compiler_type=$depmode
1.1991 + break
1.1992 + fi
1.1993 + fi
1.1994 + done
1.1995 +
1.1996 + cd ..
1.1997 + rm -rf conftest.dir
1.1998 +else
1.1999 + am_cv_CC_dependencies_compiler_type=none
1.2000 +fi
1.2001 +
1.2002 +fi
1.2003 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.2004 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.2005 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.2006 +
1.2007 +
1.2008 +
1.2009 +if
1.2010 + test "x$enable_dependency_tracking" != xno \
1.2011 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.2012 + am__fastdepCC_TRUE=
1.2013 + am__fastdepCC_FALSE='#'
1.2014 +else
1.2015 + am__fastdepCC_TRUE='#'
1.2016 + am__fastdepCC_FALSE=
1.2017 +fi
1.2018 +
1.2019 +
1.2020 +ac_ext=c
1.2021 +ac_cpp='$CPP $CPPFLAGS'
1.2022 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.2023 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.2024 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.2025 +if test -n "$ac_tool_prefix"; then
1.2026 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.2027 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.2028 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2029 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.2030 +if test "${ac_cv_prog_CC+set}" = set; then
1.2031 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2032 +else
1.2033 + if test -n "$CC"; then
1.2034 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.2035 +else
1.2036 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2037 +for as_dir in $PATH
1.2038 +do
1.2039 + IFS=$as_save_IFS
1.2040 + test -z "$as_dir" && as_dir=.
1.2041 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2042 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2043 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.2044 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2045 + break 2
1.2046 + fi
1.2047 +done
1.2048 +done
1.2049 +IFS=$as_save_IFS
1.2050 +
1.2051 +fi
1.2052 +fi
1.2053 +CC=$ac_cv_prog_CC
1.2054 +if test -n "$CC"; then
1.2055 + { echo "$as_me:$LINENO: result: $CC" >&5
1.2056 +echo "${ECHO_T}$CC" >&6; }
1.2057 +else
1.2058 + { echo "$as_me:$LINENO: result: no" >&5
1.2059 +echo "${ECHO_T}no" >&6; }
1.2060 +fi
1.2061 +
1.2062 +
1.2063 +fi
1.2064 +if test -z "$ac_cv_prog_CC"; then
1.2065 + ac_ct_CC=$CC
1.2066 + # Extract the first word of "gcc", so it can be a program name with args.
1.2067 +set dummy gcc; ac_word=$2
1.2068 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2069 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.2070 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.2071 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2072 +else
1.2073 + if test -n "$ac_ct_CC"; then
1.2074 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.2075 +else
1.2076 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2077 +for as_dir in $PATH
1.2078 +do
1.2079 + IFS=$as_save_IFS
1.2080 + test -z "$as_dir" && as_dir=.
1.2081 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2082 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2083 + ac_cv_prog_ac_ct_CC="gcc"
1.2084 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2085 + break 2
1.2086 + fi
1.2087 +done
1.2088 +done
1.2089 +IFS=$as_save_IFS
1.2090 +
1.2091 +fi
1.2092 +fi
1.2093 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.2094 +if test -n "$ac_ct_CC"; then
1.2095 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.2096 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.2097 +else
1.2098 + { echo "$as_me:$LINENO: result: no" >&5
1.2099 +echo "${ECHO_T}no" >&6; }
1.2100 +fi
1.2101 +
1.2102 + if test "x$ac_ct_CC" = x; then
1.2103 + CC=""
1.2104 + else
1.2105 + case $cross_compiling:$ac_tool_warned in
1.2106 +yes:)
1.2107 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.2108 +whose name does not start with the host triplet. If you think this
1.2109 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.2110 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.2111 +whose name does not start with the host triplet. If you think this
1.2112 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.2113 +ac_tool_warned=yes ;;
1.2114 +esac
1.2115 + CC=$ac_ct_CC
1.2116 + fi
1.2117 +else
1.2118 + CC="$ac_cv_prog_CC"
1.2119 +fi
1.2120 +
1.2121 +if test -z "$CC"; then
1.2122 + if test -n "$ac_tool_prefix"; then
1.2123 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.2124 +set dummy ${ac_tool_prefix}cc; ac_word=$2
1.2125 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2126 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.2127 +if test "${ac_cv_prog_CC+set}" = set; then
1.2128 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2129 +else
1.2130 + if test -n "$CC"; then
1.2131 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.2132 +else
1.2133 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2134 +for as_dir in $PATH
1.2135 +do
1.2136 + IFS=$as_save_IFS
1.2137 + test -z "$as_dir" && as_dir=.
1.2138 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2139 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2140 + ac_cv_prog_CC="${ac_tool_prefix}cc"
1.2141 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2142 + break 2
1.2143 + fi
1.2144 +done
1.2145 +done
1.2146 +IFS=$as_save_IFS
1.2147 +
1.2148 +fi
1.2149 +fi
1.2150 +CC=$ac_cv_prog_CC
1.2151 +if test -n "$CC"; then
1.2152 + { echo "$as_me:$LINENO: result: $CC" >&5
1.2153 +echo "${ECHO_T}$CC" >&6; }
1.2154 +else
1.2155 + { echo "$as_me:$LINENO: result: no" >&5
1.2156 +echo "${ECHO_T}no" >&6; }
1.2157 +fi
1.2158 +
1.2159 +
1.2160 + fi
1.2161 +fi
1.2162 +if test -z "$CC"; then
1.2163 + # Extract the first word of "cc", so it can be a program name with args.
1.2164 +set dummy cc; ac_word=$2
1.2165 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2166 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.2167 +if test "${ac_cv_prog_CC+set}" = set; then
1.2168 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2169 +else
1.2170 + if test -n "$CC"; then
1.2171 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.2172 +else
1.2173 + ac_prog_rejected=no
1.2174 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2175 +for as_dir in $PATH
1.2176 +do
1.2177 + IFS=$as_save_IFS
1.2178 + test -z "$as_dir" && as_dir=.
1.2179 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2180 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2181 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.2182 + ac_prog_rejected=yes
1.2183 + continue
1.2184 + fi
1.2185 + ac_cv_prog_CC="cc"
1.2186 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2187 + break 2
1.2188 + fi
1.2189 +done
1.2190 +done
1.2191 +IFS=$as_save_IFS
1.2192 +
1.2193 +if test $ac_prog_rejected = yes; then
1.2194 + # We found a bogon in the path, so make sure we never use it.
1.2195 + set dummy $ac_cv_prog_CC
1.2196 + shift
1.2197 + if test $# != 0; then
1.2198 + # We chose a different compiler from the bogus one.
1.2199 + # However, it has the same basename, so the bogon will be chosen
1.2200 + # first if we set CC to just the basename; use the full file name.
1.2201 + shift
1.2202 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.2203 + fi
1.2204 +fi
1.2205 +fi
1.2206 +fi
1.2207 +CC=$ac_cv_prog_CC
1.2208 +if test -n "$CC"; then
1.2209 + { echo "$as_me:$LINENO: result: $CC" >&5
1.2210 +echo "${ECHO_T}$CC" >&6; }
1.2211 +else
1.2212 + { echo "$as_me:$LINENO: result: no" >&5
1.2213 +echo "${ECHO_T}no" >&6; }
1.2214 +fi
1.2215 +
1.2216 +
1.2217 +fi
1.2218 +if test -z "$CC"; then
1.2219 + if test -n "$ac_tool_prefix"; then
1.2220 + for ac_prog in cl.exe
1.2221 + do
1.2222 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.2223 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.2224 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2225 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.2226 +if test "${ac_cv_prog_CC+set}" = set; then
1.2227 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2228 +else
1.2229 + if test -n "$CC"; then
1.2230 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.2231 +else
1.2232 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2233 +for as_dir in $PATH
1.2234 +do
1.2235 + IFS=$as_save_IFS
1.2236 + test -z "$as_dir" && as_dir=.
1.2237 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2238 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2239 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.2240 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2241 + break 2
1.2242 + fi
1.2243 +done
1.2244 +done
1.2245 +IFS=$as_save_IFS
1.2246 +
1.2247 +fi
1.2248 +fi
1.2249 +CC=$ac_cv_prog_CC
1.2250 +if test -n "$CC"; then
1.2251 + { echo "$as_me:$LINENO: result: $CC" >&5
1.2252 +echo "${ECHO_T}$CC" >&6; }
1.2253 +else
1.2254 + { echo "$as_me:$LINENO: result: no" >&5
1.2255 +echo "${ECHO_T}no" >&6; }
1.2256 +fi
1.2257 +
1.2258 +
1.2259 + test -n "$CC" && break
1.2260 + done
1.2261 +fi
1.2262 +if test -z "$CC"; then
1.2263 + ac_ct_CC=$CC
1.2264 + for ac_prog in cl.exe
1.2265 +do
1.2266 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.2267 +set dummy $ac_prog; ac_word=$2
1.2268 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2269 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.2270 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.2271 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2272 +else
1.2273 + if test -n "$ac_ct_CC"; then
1.2274 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.2275 +else
1.2276 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2277 +for as_dir in $PATH
1.2278 +do
1.2279 + IFS=$as_save_IFS
1.2280 + test -z "$as_dir" && as_dir=.
1.2281 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2282 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2283 + ac_cv_prog_ac_ct_CC="$ac_prog"
1.2284 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2285 + break 2
1.2286 + fi
1.2287 +done
1.2288 +done
1.2289 +IFS=$as_save_IFS
1.2290 +
1.2291 +fi
1.2292 +fi
1.2293 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.2294 +if test -n "$ac_ct_CC"; then
1.2295 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.2296 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.2297 +else
1.2298 + { echo "$as_me:$LINENO: result: no" >&5
1.2299 +echo "${ECHO_T}no" >&6; }
1.2300 +fi
1.2301 +
1.2302 +
1.2303 + test -n "$ac_ct_CC" && break
1.2304 +done
1.2305 +
1.2306 + if test "x$ac_ct_CC" = x; then
1.2307 + CC=""
1.2308 + else
1.2309 + case $cross_compiling:$ac_tool_warned in
1.2310 +yes:)
1.2311 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.2312 +whose name does not start with the host triplet. If you think this
1.2313 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.2314 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.2315 +whose name does not start with the host triplet. If you think this
1.2316 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.2317 +ac_tool_warned=yes ;;
1.2318 +esac
1.2319 + CC=$ac_ct_CC
1.2320 + fi
1.2321 +fi
1.2322 +
1.2323 +fi
1.2324 +
1.2325 +
1.2326 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.2327 +See \`config.log' for more details." >&5
1.2328 +echo "$as_me: error: no acceptable C compiler found in \$PATH
1.2329 +See \`config.log' for more details." >&2;}
1.2330 + { (exit 1); exit 1; }; }
1.2331 +
1.2332 +# Provide some information about the compiler.
1.2333 +echo "$as_me:$LINENO: checking for C compiler version" >&5
1.2334 +ac_compiler=`set X $ac_compile; echo $2`
1.2335 +{ (ac_try="$ac_compiler --version >&5"
1.2336 +case "(($ac_try" in
1.2337 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2338 + *) ac_try_echo=$ac_try;;
1.2339 +esac
1.2340 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2341 + (eval "$ac_compiler --version >&5") 2>&5
1.2342 + ac_status=$?
1.2343 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2344 + (exit $ac_status); }
1.2345 +{ (ac_try="$ac_compiler -v >&5"
1.2346 +case "(($ac_try" in
1.2347 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2348 + *) ac_try_echo=$ac_try;;
1.2349 +esac
1.2350 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2351 + (eval "$ac_compiler -v >&5") 2>&5
1.2352 + ac_status=$?
1.2353 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2354 + (exit $ac_status); }
1.2355 +{ (ac_try="$ac_compiler -V >&5"
1.2356 +case "(($ac_try" in
1.2357 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2358 + *) ac_try_echo=$ac_try;;
1.2359 +esac
1.2360 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2361 + (eval "$ac_compiler -V >&5") 2>&5
1.2362 + ac_status=$?
1.2363 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2364 + (exit $ac_status); }
1.2365 +
1.2366 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.2367 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.2368 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.2369 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2370 +else
1.2371 + cat >conftest.$ac_ext <<_ACEOF
1.2372 +/* confdefs.h. */
1.2373 +_ACEOF
1.2374 +cat confdefs.h >>conftest.$ac_ext
1.2375 +cat >>conftest.$ac_ext <<_ACEOF
1.2376 +/* end confdefs.h. */
1.2377 +
1.2378 +int
1.2379 +main ()
1.2380 +{
1.2381 +#ifndef __GNUC__
1.2382 + choke me
1.2383 +#endif
1.2384 +
1.2385 + ;
1.2386 + return 0;
1.2387 +}
1.2388 +_ACEOF
1.2389 +rm -f conftest.$ac_objext
1.2390 +if { (ac_try="$ac_compile"
1.2391 +case "(($ac_try" in
1.2392 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2393 + *) ac_try_echo=$ac_try;;
1.2394 +esac
1.2395 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2396 + (eval "$ac_compile") 2>conftest.er1
1.2397 + ac_status=$?
1.2398 + grep -v '^ *+' conftest.er1 >conftest.err
1.2399 + rm -f conftest.er1
1.2400 + cat conftest.err >&5
1.2401 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2402 + (exit $ac_status); } && {
1.2403 + test -z "$ac_c_werror_flag" ||
1.2404 + test ! -s conftest.err
1.2405 + } && test -s conftest.$ac_objext; then
1.2406 + ac_compiler_gnu=yes
1.2407 +else
1.2408 + echo "$as_me: failed program was:" >&5
1.2409 +sed 's/^/| /' conftest.$ac_ext >&5
1.2410 +
1.2411 + ac_compiler_gnu=no
1.2412 +fi
1.2413 +
1.2414 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.2415 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.2416 +
1.2417 +fi
1.2418 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.2419 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.2420 +GCC=`test $ac_compiler_gnu = yes && echo yes`
1.2421 +ac_test_CFLAGS=${CFLAGS+set}
1.2422 +ac_save_CFLAGS=$CFLAGS
1.2423 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.2424 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.2425 +if test "${ac_cv_prog_cc_g+set}" = set; then
1.2426 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2427 +else
1.2428 + ac_save_c_werror_flag=$ac_c_werror_flag
1.2429 + ac_c_werror_flag=yes
1.2430 + ac_cv_prog_cc_g=no
1.2431 + CFLAGS="-g"
1.2432 + cat >conftest.$ac_ext <<_ACEOF
1.2433 +/* confdefs.h. */
1.2434 +_ACEOF
1.2435 +cat confdefs.h >>conftest.$ac_ext
1.2436 +cat >>conftest.$ac_ext <<_ACEOF
1.2437 +/* end confdefs.h. */
1.2438 +
1.2439 +int
1.2440 +main ()
1.2441 +{
1.2442 +
1.2443 + ;
1.2444 + return 0;
1.2445 +}
1.2446 +_ACEOF
1.2447 +rm -f conftest.$ac_objext
1.2448 +if { (ac_try="$ac_compile"
1.2449 +case "(($ac_try" in
1.2450 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2451 + *) ac_try_echo=$ac_try;;
1.2452 +esac
1.2453 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2454 + (eval "$ac_compile") 2>conftest.er1
1.2455 + ac_status=$?
1.2456 + grep -v '^ *+' conftest.er1 >conftest.err
1.2457 + rm -f conftest.er1
1.2458 + cat conftest.err >&5
1.2459 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2460 + (exit $ac_status); } && {
1.2461 + test -z "$ac_c_werror_flag" ||
1.2462 + test ! -s conftest.err
1.2463 + } && test -s conftest.$ac_objext; then
1.2464 + ac_cv_prog_cc_g=yes
1.2465 +else
1.2466 + echo "$as_me: failed program was:" >&5
1.2467 +sed 's/^/| /' conftest.$ac_ext >&5
1.2468 +
1.2469 + CFLAGS=""
1.2470 + cat >conftest.$ac_ext <<_ACEOF
1.2471 +/* confdefs.h. */
1.2472 +_ACEOF
1.2473 +cat confdefs.h >>conftest.$ac_ext
1.2474 +cat >>conftest.$ac_ext <<_ACEOF
1.2475 +/* end confdefs.h. */
1.2476 +
1.2477 +int
1.2478 +main ()
1.2479 +{
1.2480 +
1.2481 + ;
1.2482 + return 0;
1.2483 +}
1.2484 +_ACEOF
1.2485 +rm -f conftest.$ac_objext
1.2486 +if { (ac_try="$ac_compile"
1.2487 +case "(($ac_try" in
1.2488 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2489 + *) ac_try_echo=$ac_try;;
1.2490 +esac
1.2491 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2492 + (eval "$ac_compile") 2>conftest.er1
1.2493 + ac_status=$?
1.2494 + grep -v '^ *+' conftest.er1 >conftest.err
1.2495 + rm -f conftest.er1
1.2496 + cat conftest.err >&5
1.2497 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2498 + (exit $ac_status); } && {
1.2499 + test -z "$ac_c_werror_flag" ||
1.2500 + test ! -s conftest.err
1.2501 + } && test -s conftest.$ac_objext; then
1.2502 + :
1.2503 +else
1.2504 + echo "$as_me: failed program was:" >&5
1.2505 +sed 's/^/| /' conftest.$ac_ext >&5
1.2506 +
1.2507 + ac_c_werror_flag=$ac_save_c_werror_flag
1.2508 + CFLAGS="-g"
1.2509 + cat >conftest.$ac_ext <<_ACEOF
1.2510 +/* confdefs.h. */
1.2511 +_ACEOF
1.2512 +cat confdefs.h >>conftest.$ac_ext
1.2513 +cat >>conftest.$ac_ext <<_ACEOF
1.2514 +/* end confdefs.h. */
1.2515 +
1.2516 +int
1.2517 +main ()
1.2518 +{
1.2519 +
1.2520 + ;
1.2521 + return 0;
1.2522 +}
1.2523 +_ACEOF
1.2524 +rm -f conftest.$ac_objext
1.2525 +if { (ac_try="$ac_compile"
1.2526 +case "(($ac_try" in
1.2527 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2528 + *) ac_try_echo=$ac_try;;
1.2529 +esac
1.2530 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2531 + (eval "$ac_compile") 2>conftest.er1
1.2532 + ac_status=$?
1.2533 + grep -v '^ *+' conftest.er1 >conftest.err
1.2534 + rm -f conftest.er1
1.2535 + cat conftest.err >&5
1.2536 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2537 + (exit $ac_status); } && {
1.2538 + test -z "$ac_c_werror_flag" ||
1.2539 + test ! -s conftest.err
1.2540 + } && test -s conftest.$ac_objext; then
1.2541 + ac_cv_prog_cc_g=yes
1.2542 +else
1.2543 + echo "$as_me: failed program was:" >&5
1.2544 +sed 's/^/| /' conftest.$ac_ext >&5
1.2545 +
1.2546 +
1.2547 +fi
1.2548 +
1.2549 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.2550 +fi
1.2551 +
1.2552 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.2553 +fi
1.2554 +
1.2555 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.2556 + ac_c_werror_flag=$ac_save_c_werror_flag
1.2557 +fi
1.2558 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.2559 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.2560 +if test "$ac_test_CFLAGS" = set; then
1.2561 + CFLAGS=$ac_save_CFLAGS
1.2562 +elif test $ac_cv_prog_cc_g = yes; then
1.2563 + if test "$GCC" = yes; then
1.2564 + CFLAGS="-g -O2"
1.2565 + else
1.2566 + CFLAGS="-g"
1.2567 + fi
1.2568 +else
1.2569 + if test "$GCC" = yes; then
1.2570 + CFLAGS="-O2"
1.2571 + else
1.2572 + CFLAGS=
1.2573 + fi
1.2574 +fi
1.2575 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1.2576 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1.2577 +if test "${ac_cv_prog_cc_c89+set}" = set; then
1.2578 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2579 +else
1.2580 + ac_cv_prog_cc_c89=no
1.2581 +ac_save_CC=$CC
1.2582 +cat >conftest.$ac_ext <<_ACEOF
1.2583 +/* confdefs.h. */
1.2584 +_ACEOF
1.2585 +cat confdefs.h >>conftest.$ac_ext
1.2586 +cat >>conftest.$ac_ext <<_ACEOF
1.2587 +/* end confdefs.h. */
1.2588 +#include <stdarg.h>
1.2589 +#include <stdio.h>
1.2590 +#include <sys/types.h>
1.2591 +#include <sys/stat.h>
1.2592 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.2593 +struct buf { int x; };
1.2594 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.2595 +static char *e (p, i)
1.2596 + char **p;
1.2597 + int i;
1.2598 +{
1.2599 + return p[i];
1.2600 +}
1.2601 +static char *f (char * (*g) (char **, int), char **p, ...)
1.2602 +{
1.2603 + char *s;
1.2604 + va_list v;
1.2605 + va_start (v,p);
1.2606 + s = g (p, va_arg (v,int));
1.2607 + va_end (v);
1.2608 + return s;
1.2609 +}
1.2610 +
1.2611 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.2612 + function prototypes and stuff, but not '\xHH' hex character constants.
1.2613 + These don't provoke an error unfortunately, instead are silently treated
1.2614 + as 'x'. The following induces an error, until -std is added to get
1.2615 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.2616 + array size at least. It's necessary to write '\x00'==0 to get something
1.2617 + that's true only with -std. */
1.2618 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.2619 +
1.2620 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.2621 + inside strings and character constants. */
1.2622 +#define FOO(x) 'x'
1.2623 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.2624 +
1.2625 +int test (int i, double x);
1.2626 +struct s1 {int (*f) (int a);};
1.2627 +struct s2 {int (*f) (double a);};
1.2628 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.2629 +int argc;
1.2630 +char **argv;
1.2631 +int
1.2632 +main ()
1.2633 +{
1.2634 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.2635 + ;
1.2636 + return 0;
1.2637 +}
1.2638 +_ACEOF
1.2639 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.2640 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.2641 +do
1.2642 + CC="$ac_save_CC $ac_arg"
1.2643 + rm -f conftest.$ac_objext
1.2644 +if { (ac_try="$ac_compile"
1.2645 +case "(($ac_try" in
1.2646 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2647 + *) ac_try_echo=$ac_try;;
1.2648 +esac
1.2649 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2650 + (eval "$ac_compile") 2>conftest.er1
1.2651 + ac_status=$?
1.2652 + grep -v '^ *+' conftest.er1 >conftest.err
1.2653 + rm -f conftest.er1
1.2654 + cat conftest.err >&5
1.2655 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2656 + (exit $ac_status); } && {
1.2657 + test -z "$ac_c_werror_flag" ||
1.2658 + test ! -s conftest.err
1.2659 + } && test -s conftest.$ac_objext; then
1.2660 + ac_cv_prog_cc_c89=$ac_arg
1.2661 +else
1.2662 + echo "$as_me: failed program was:" >&5
1.2663 +sed 's/^/| /' conftest.$ac_ext >&5
1.2664 +
1.2665 +
1.2666 +fi
1.2667 +
1.2668 +rm -f core conftest.err conftest.$ac_objext
1.2669 + test "x$ac_cv_prog_cc_c89" != "xno" && break
1.2670 +done
1.2671 +rm -f conftest.$ac_ext
1.2672 +CC=$ac_save_CC
1.2673 +
1.2674 +fi
1.2675 +# AC_CACHE_VAL
1.2676 +case "x$ac_cv_prog_cc_c89" in
1.2677 + x)
1.2678 + { echo "$as_me:$LINENO: result: none needed" >&5
1.2679 +echo "${ECHO_T}none needed" >&6; } ;;
1.2680 + xno)
1.2681 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.2682 +echo "${ECHO_T}unsupported" >&6; } ;;
1.2683 + *)
1.2684 + CC="$CC $ac_cv_prog_cc_c89"
1.2685 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.2686 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.2687 +esac
1.2688 +
1.2689 +
1.2690 +ac_ext=c
1.2691 +ac_cpp='$CPP $CPPFLAGS'
1.2692 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.2693 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.2694 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.2695 +
1.2696 +depcc="$CC" am_compiler_list=
1.2697 +
1.2698 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.2699 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.2700 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.2701 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2702 +else
1.2703 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.2704 + # We make a subdir and do the tests there. Otherwise we can end up
1.2705 + # making bogus files that we don't know about and never remove. For
1.2706 + # instance it was reported that on HP-UX the gcc test will end up
1.2707 + # making a dummy file named `D' -- because `-MD' means `put the output
1.2708 + # in D'.
1.2709 + mkdir conftest.dir
1.2710 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.2711 + # using a relative directory.
1.2712 + cp "$am_depcomp" conftest.dir
1.2713 + cd conftest.dir
1.2714 + # We will build objects and dependencies in a subdirectory because
1.2715 + # it helps to detect inapplicable dependency modes. For instance
1.2716 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.2717 + # side effect of compilation, but ICC will put the dependencies in
1.2718 + # the current directory while Tru64 will put them in the object
1.2719 + # directory.
1.2720 + mkdir sub
1.2721 +
1.2722 + am_cv_CC_dependencies_compiler_type=none
1.2723 + if test "$am_compiler_list" = ""; then
1.2724 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.2725 + fi
1.2726 + for depmode in $am_compiler_list; do
1.2727 + # Setup a source with many dependencies, because some compilers
1.2728 + # like to wrap large dependency lists on column 80 (with \), and
1.2729 + # we should not choose a depcomp mode which is confused by this.
1.2730 + #
1.2731 + # We need to recreate these files for each test, as the compiler may
1.2732 + # overwrite some of them when testing with obscure command lines.
1.2733 + # This happens at least with the AIX C compiler.
1.2734 + : > sub/conftest.c
1.2735 + for i in 1 2 3 4 5 6; do
1.2736 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.2737 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.2738 + # Solaris 8's {/usr,}/bin/sh.
1.2739 + touch sub/conftst$i.h
1.2740 + done
1.2741 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.2742 +
1.2743 + case $depmode in
1.2744 + nosideeffect)
1.2745 + # after this tag, mechanisms are not by side-effect, so they'll
1.2746 + # only be used when explicitly requested
1.2747 + if test "x$enable_dependency_tracking" = xyes; then
1.2748 + continue
1.2749 + else
1.2750 + break
1.2751 + fi
1.2752 + ;;
1.2753 + none) break ;;
1.2754 + esac
1.2755 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.2756 + # mode. It turns out that the SunPro C++ compiler does not properly
1.2757 + # handle `-M -o', and we need to detect this.
1.2758 + if depmode=$depmode \
1.2759 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.2760 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.2761 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.2762 + >/dev/null 2>conftest.err &&
1.2763 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.2764 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.2765 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.2766 + # icc doesn't choke on unknown options, it will just issue warnings
1.2767 + # or remarks (even with -Werror). So we grep stderr for any message
1.2768 + # that says an option was ignored or not supported.
1.2769 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.2770 + # icc: Command line warning: ignoring option '-M'; no argument required
1.2771 + # The diagnosis changed in icc 8.0:
1.2772 + # icc: Command line remark: option '-MP' not supported
1.2773 + if (grep 'ignoring option' conftest.err ||
1.2774 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.2775 + am_cv_CC_dependencies_compiler_type=$depmode
1.2776 + break
1.2777 + fi
1.2778 + fi
1.2779 + done
1.2780 +
1.2781 + cd ..
1.2782 + rm -rf conftest.dir
1.2783 +else
1.2784 + am_cv_CC_dependencies_compiler_type=none
1.2785 +fi
1.2786 +
1.2787 +fi
1.2788 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.2789 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.2790 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.2791 +
1.2792 +
1.2793 +
1.2794 +if
1.2795 + test "x$enable_dependency_tracking" != xno \
1.2796 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.2797 + am__fastdepCC_TRUE=
1.2798 + am__fastdepCC_FALSE='#'
1.2799 +else
1.2800 + am__fastdepCC_TRUE='#'
1.2801 + am__fastdepCC_FALSE=
1.2802 +fi
1.2803 +
1.2804 +
1.2805 +
1.2806 +am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
1.2807 +
1.2808 +ac_ext=c
1.2809 +ac_cpp='$CPP $CPPFLAGS'
1.2810 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.2811 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.2812 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.2813 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.2814 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.2815 +# On Suns, sometimes $CPP names a directory.
1.2816 +if test -n "$CPP" && test -d "$CPP"; then
1.2817 + CPP=
1.2818 +fi
1.2819 +if test -z "$CPP"; then
1.2820 + if test "${ac_cv_prog_CPP+set}" = set; then
1.2821 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2822 +else
1.2823 + # Double quotes because CPP needs to be expanded
1.2824 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1.2825 + do
1.2826 + ac_preproc_ok=false
1.2827 +for ac_c_preproc_warn_flag in '' yes
1.2828 +do
1.2829 + # Use a header file that comes with gcc, so configuring glibc
1.2830 + # with a fresh cross-compiler works.
1.2831 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.2832 + # <limits.h> exists even on freestanding compilers.
1.2833 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.2834 + # not just through cpp. "Syntax error" is here to catch this case.
1.2835 + cat >conftest.$ac_ext <<_ACEOF
1.2836 +/* confdefs.h. */
1.2837 +_ACEOF
1.2838 +cat confdefs.h >>conftest.$ac_ext
1.2839 +cat >>conftest.$ac_ext <<_ACEOF
1.2840 +/* end confdefs.h. */
1.2841 +#ifdef __STDC__
1.2842 +# include <limits.h>
1.2843 +#else
1.2844 +# include <assert.h>
1.2845 +#endif
1.2846 + Syntax error
1.2847 +_ACEOF
1.2848 +if { (ac_try="$ac_cpp conftest.$ac_ext"
1.2849 +case "(($ac_try" in
1.2850 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2851 + *) ac_try_echo=$ac_try;;
1.2852 +esac
1.2853 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2854 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.2855 + ac_status=$?
1.2856 + grep -v '^ *+' conftest.er1 >conftest.err
1.2857 + rm -f conftest.er1
1.2858 + cat conftest.err >&5
1.2859 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2860 + (exit $ac_status); } >/dev/null && {
1.2861 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.2862 + test ! -s conftest.err
1.2863 + }; then
1.2864 + :
1.2865 +else
1.2866 + echo "$as_me: failed program was:" >&5
1.2867 +sed 's/^/| /' conftest.$ac_ext >&5
1.2868 +
1.2869 + # Broken: fails on valid input.
1.2870 +continue
1.2871 +fi
1.2872 +
1.2873 +rm -f conftest.err conftest.$ac_ext
1.2874 +
1.2875 + # OK, works on sane cases. Now check whether nonexistent headers
1.2876 + # can be detected and how.
1.2877 + cat >conftest.$ac_ext <<_ACEOF
1.2878 +/* confdefs.h. */
1.2879 +_ACEOF
1.2880 +cat confdefs.h >>conftest.$ac_ext
1.2881 +cat >>conftest.$ac_ext <<_ACEOF
1.2882 +/* end confdefs.h. */
1.2883 +#include <ac_nonexistent.h>
1.2884 +_ACEOF
1.2885 +if { (ac_try="$ac_cpp conftest.$ac_ext"
1.2886 +case "(($ac_try" in
1.2887 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2888 + *) ac_try_echo=$ac_try;;
1.2889 +esac
1.2890 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2891 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.2892 + ac_status=$?
1.2893 + grep -v '^ *+' conftest.er1 >conftest.err
1.2894 + rm -f conftest.er1
1.2895 + cat conftest.err >&5
1.2896 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2897 + (exit $ac_status); } >/dev/null && {
1.2898 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.2899 + test ! -s conftest.err
1.2900 + }; then
1.2901 + # Broken: success on invalid input.
1.2902 +continue
1.2903 +else
1.2904 + echo "$as_me: failed program was:" >&5
1.2905 +sed 's/^/| /' conftest.$ac_ext >&5
1.2906 +
1.2907 + # Passes both tests.
1.2908 +ac_preproc_ok=:
1.2909 +break
1.2910 +fi
1.2911 +
1.2912 +rm -f conftest.err conftest.$ac_ext
1.2913 +
1.2914 +done
1.2915 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.2916 +rm -f conftest.err conftest.$ac_ext
1.2917 +if $ac_preproc_ok; then
1.2918 + break
1.2919 +fi
1.2920 +
1.2921 + done
1.2922 + ac_cv_prog_CPP=$CPP
1.2923 +
1.2924 +fi
1.2925 + CPP=$ac_cv_prog_CPP
1.2926 +else
1.2927 + ac_cv_prog_CPP=$CPP
1.2928 +fi
1.2929 +{ echo "$as_me:$LINENO: result: $CPP" >&5
1.2930 +echo "${ECHO_T}$CPP" >&6; }
1.2931 +ac_preproc_ok=false
1.2932 +for ac_c_preproc_warn_flag in '' yes
1.2933 +do
1.2934 + # Use a header file that comes with gcc, so configuring glibc
1.2935 + # with a fresh cross-compiler works.
1.2936 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.2937 + # <limits.h> exists even on freestanding compilers.
1.2938 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.2939 + # not just through cpp. "Syntax error" is here to catch this case.
1.2940 + cat >conftest.$ac_ext <<_ACEOF
1.2941 +/* confdefs.h. */
1.2942 +_ACEOF
1.2943 +cat confdefs.h >>conftest.$ac_ext
1.2944 +cat >>conftest.$ac_ext <<_ACEOF
1.2945 +/* end confdefs.h. */
1.2946 +#ifdef __STDC__
1.2947 +# include <limits.h>
1.2948 +#else
1.2949 +# include <assert.h>
1.2950 +#endif
1.2951 + Syntax error
1.2952 +_ACEOF
1.2953 +if { (ac_try="$ac_cpp conftest.$ac_ext"
1.2954 +case "(($ac_try" in
1.2955 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2956 + *) ac_try_echo=$ac_try;;
1.2957 +esac
1.2958 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2959 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.2960 + ac_status=$?
1.2961 + grep -v '^ *+' conftest.er1 >conftest.err
1.2962 + rm -f conftest.er1
1.2963 + cat conftest.err >&5
1.2964 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2965 + (exit $ac_status); } >/dev/null && {
1.2966 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.2967 + test ! -s conftest.err
1.2968 + }; then
1.2969 + :
1.2970 +else
1.2971 + echo "$as_me: failed program was:" >&5
1.2972 +sed 's/^/| /' conftest.$ac_ext >&5
1.2973 +
1.2974 + # Broken: fails on valid input.
1.2975 +continue
1.2976 +fi
1.2977 +
1.2978 +rm -f conftest.err conftest.$ac_ext
1.2979 +
1.2980 + # OK, works on sane cases. Now check whether nonexistent headers
1.2981 + # can be detected and how.
1.2982 + cat >conftest.$ac_ext <<_ACEOF
1.2983 +/* confdefs.h. */
1.2984 +_ACEOF
1.2985 +cat confdefs.h >>conftest.$ac_ext
1.2986 +cat >>conftest.$ac_ext <<_ACEOF
1.2987 +/* end confdefs.h. */
1.2988 +#include <ac_nonexistent.h>
1.2989 +_ACEOF
1.2990 +if { (ac_try="$ac_cpp conftest.$ac_ext"
1.2991 +case "(($ac_try" in
1.2992 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2993 + *) ac_try_echo=$ac_try;;
1.2994 +esac
1.2995 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2996 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.2997 + ac_status=$?
1.2998 + grep -v '^ *+' conftest.er1 >conftest.err
1.2999 + rm -f conftest.er1
1.3000 + cat conftest.err >&5
1.3001 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3002 + (exit $ac_status); } >/dev/null && {
1.3003 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.3004 + test ! -s conftest.err
1.3005 + }; then
1.3006 + # Broken: success on invalid input.
1.3007 +continue
1.3008 +else
1.3009 + echo "$as_me: failed program was:" >&5
1.3010 +sed 's/^/| /' conftest.$ac_ext >&5
1.3011 +
1.3012 + # Passes both tests.
1.3013 +ac_preproc_ok=:
1.3014 +break
1.3015 +fi
1.3016 +
1.3017 +rm -f conftest.err conftest.$ac_ext
1.3018 +
1.3019 +done
1.3020 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.3021 +rm -f conftest.err conftest.$ac_ext
1.3022 +if $ac_preproc_ok; then
1.3023 + :
1.3024 +else
1.3025 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1.3026 +See \`config.log' for more details." >&5
1.3027 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1.3028 +See \`config.log' for more details." >&2;}
1.3029 + { (exit 1); exit 1; }; }
1.3030 +fi
1.3031 +
1.3032 +ac_ext=c
1.3033 +ac_cpp='$CPP $CPPFLAGS'
1.3034 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.3035 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.3036 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.3037 +
1.3038 +
1.3039 +ac_main_cc="$CC"
1.3040 +test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
1.3041 +
1.3042 +if test -z "$CC_FOR_BUILD"; then
1.3043 + if test "$#" = yes; then
1.3044 + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
1.3045 +See \`config.log' for more details." >&5
1.3046 +echo "$as_me: error: cannot run test program while cross compiling
1.3047 +See \`config.log' for more details." >&2;}
1.3048 + { (exit 1); exit 1; }; }
1.3049 +else
1.3050 + cat >conftest.$ac_ext <<_ACEOF
1.3051 +int main(){return 0;}
1.3052 +_ACEOF
1.3053 +rm -f conftest$ac_exeext
1.3054 +if { (ac_try="$ac_link"
1.3055 +case "(($ac_try" in
1.3056 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3057 + *) ac_try_echo=$ac_try;;
1.3058 +esac
1.3059 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3060 + (eval "$ac_link") 2>&5
1.3061 + ac_status=$?
1.3062 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3063 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.3064 + { (case "(($ac_try" in
1.3065 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3066 + *) ac_try_echo=$ac_try;;
1.3067 +esac
1.3068 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3069 + (eval "$ac_try") 2>&5
1.3070 + ac_status=$?
1.3071 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3072 + (exit $ac_status); }; }; then
1.3073 + CC_FOR_BUILD="$CC"
1.3074 +else
1.3075 + echo "$as_me: program exited with status $ac_status" >&5
1.3076 +echo "$as_me: failed program was:" >&5
1.3077 +sed 's/^/| /' conftest.$ac_ext >&5
1.3078 +
1.3079 +fi
1.3080 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.3081 +fi
1.3082 +
1.3083 +
1.3084 +fi
1.3085 +
1.3086 +
1.3087 +ac_ext=c
1.3088 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.3089 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.3090 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.3091 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.3092 +if test -n "$ac_build_tool_prefix"; then
1.3093 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.3094 +set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
1.3095 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.3096 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.3097 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
1.3098 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3099 +else
1.3100 + if test -n "$CC_FOR_BUILD"; then
1.3101 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
1.3102 +else
1.3103 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.3104 +for as_dir in $PATH
1.3105 +do
1.3106 + IFS=$as_save_IFS
1.3107 + test -z "$as_dir" && as_dir=.
1.3108 + for ac_exec_ext in '' $ac_executable_extensions; do
1.3109 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.3110 + ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
1.3111 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3112 + break 2
1.3113 + fi
1.3114 +done
1.3115 +done
1.3116 +IFS=$as_save_IFS
1.3117 +
1.3118 +fi
1.3119 +fi
1.3120 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
1.3121 +if test -n "$CC_FOR_BUILD"; then
1.3122 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
1.3123 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
1.3124 +else
1.3125 + { echo "$as_me:$LINENO: result: no" >&5
1.3126 +echo "${ECHO_T}no" >&6; }
1.3127 +fi
1.3128 +
1.3129 +
1.3130 +fi
1.3131 +if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
1.3132 + ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
1.3133 + # Extract the first word of "gcc", so it can be a program name with args.
1.3134 +set dummy gcc; ac_word=$2
1.3135 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.3136 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.3137 +if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
1.3138 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3139 +else
1.3140 + if test -n "$ac_ct_CC_FOR_BUILD"; then
1.3141 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
1.3142 +else
1.3143 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.3144 +for as_dir in $PATH
1.3145 +do
1.3146 + IFS=$as_save_IFS
1.3147 + test -z "$as_dir" && as_dir=.
1.3148 + for ac_exec_ext in '' $ac_executable_extensions; do
1.3149 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.3150 + ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
1.3151 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3152 + break 2
1.3153 + fi
1.3154 +done
1.3155 +done
1.3156 +IFS=$as_save_IFS
1.3157 +
1.3158 +fi
1.3159 +fi
1.3160 +ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
1.3161 +if test -n "$ac_ct_CC_FOR_BUILD"; then
1.3162 + { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
1.3163 +echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
1.3164 +else
1.3165 + { echo "$as_me:$LINENO: result: no" >&5
1.3166 +echo "${ECHO_T}no" >&6; }
1.3167 +fi
1.3168 +
1.3169 + if test "x$ac_ct_CC_FOR_BUILD" = x; then
1.3170 + CC_FOR_BUILD=""
1.3171 + else
1.3172 + case $#:$ac_tool_warned in
1.3173 +yes:)
1.3174 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.3175 +whose name does not start with the build triplet. If you think this
1.3176 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.3177 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.3178 +whose name does not start with the build triplet. If you think this
1.3179 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.3180 +ac_tool_warned=yes ;;
1.3181 +esac
1.3182 + CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
1.3183 + fi
1.3184 +else
1.3185 + CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
1.3186 +fi
1.3187 +
1.3188 +if test -z "$CC_FOR_BUILD"; then
1.3189 + if test -n "$ac_build_tool_prefix"; then
1.3190 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.3191 +set dummy ${ac_build_tool_prefix}cc; ac_word=$2
1.3192 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.3193 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.3194 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
1.3195 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3196 +else
1.3197 + if test -n "$CC_FOR_BUILD"; then
1.3198 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
1.3199 +else
1.3200 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.3201 +for as_dir in $PATH
1.3202 +do
1.3203 + IFS=$as_save_IFS
1.3204 + test -z "$as_dir" && as_dir=.
1.3205 + for ac_exec_ext in '' $ac_executable_extensions; do
1.3206 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.3207 + ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
1.3208 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3209 + break 2
1.3210 + fi
1.3211 +done
1.3212 +done
1.3213 +IFS=$as_save_IFS
1.3214 +
1.3215 +fi
1.3216 +fi
1.3217 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
1.3218 +if test -n "$CC_FOR_BUILD"; then
1.3219 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
1.3220 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
1.3221 +else
1.3222 + { echo "$as_me:$LINENO: result: no" >&5
1.3223 +echo "${ECHO_T}no" >&6; }
1.3224 +fi
1.3225 +
1.3226 +
1.3227 + fi
1.3228 +fi
1.3229 +if test -z "$CC_FOR_BUILD"; then
1.3230 + # Extract the first word of "cc", so it can be a program name with args.
1.3231 +set dummy cc; ac_word=$2
1.3232 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.3233 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.3234 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
1.3235 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3236 +else
1.3237 + if test -n "$CC_FOR_BUILD"; then
1.3238 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
1.3239 +else
1.3240 + ac_prog_rejected=no
1.3241 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.3242 +for as_dir in $PATH
1.3243 +do
1.3244 + IFS=$as_save_IFS
1.3245 + test -z "$as_dir" && as_dir=.
1.3246 + for ac_exec_ext in '' $ac_executable_extensions; do
1.3247 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.3248 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.3249 + ac_prog_rejected=yes
1.3250 + continue
1.3251 + fi
1.3252 + ac_cv_prog_CC_FOR_BUILD="cc"
1.3253 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3254 + break 2
1.3255 + fi
1.3256 +done
1.3257 +done
1.3258 +IFS=$as_save_IFS
1.3259 +
1.3260 +if test $ac_prog_rejected = yes; then
1.3261 + # We found a bogon in the path, so make sure we never use it.
1.3262 + set dummy $ac_cv_prog_CC_FOR_BUILD
1.3263 + shift
1.3264 + if test $# != 0; then
1.3265 + # We chose a different compiler from the bogus one.
1.3266 + # However, it has the same basename, so the bogon will be chosen
1.3267 + # first if we set CC_FOR_BUILD to just the basename; use the full file name.
1.3268 + shift
1.3269 + ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
1.3270 + fi
1.3271 +fi
1.3272 +fi
1.3273 +fi
1.3274 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
1.3275 +if test -n "$CC_FOR_BUILD"; then
1.3276 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
1.3277 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
1.3278 +else
1.3279 + { echo "$as_me:$LINENO: result: no" >&5
1.3280 +echo "${ECHO_T}no" >&6; }
1.3281 +fi
1.3282 +
1.3283 +
1.3284 +fi
1.3285 +if test -z "$CC_FOR_BUILD"; then
1.3286 + if test -n "$ac_build_tool_prefix"; then
1.3287 + for ac_prog in cl.exe
1.3288 + do
1.3289 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.3290 +set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
1.3291 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.3292 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.3293 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
1.3294 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3295 +else
1.3296 + if test -n "$CC_FOR_BUILD"; then
1.3297 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
1.3298 +else
1.3299 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.3300 +for as_dir in $PATH
1.3301 +do
1.3302 + IFS=$as_save_IFS
1.3303 + test -z "$as_dir" && as_dir=.
1.3304 + for ac_exec_ext in '' $ac_executable_extensions; do
1.3305 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.3306 + ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
1.3307 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3308 + break 2
1.3309 + fi
1.3310 +done
1.3311 +done
1.3312 +IFS=$as_save_IFS
1.3313 +
1.3314 +fi
1.3315 +fi
1.3316 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
1.3317 +if test -n "$CC_FOR_BUILD"; then
1.3318 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
1.3319 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
1.3320 +else
1.3321 + { echo "$as_me:$LINENO: result: no" >&5
1.3322 +echo "${ECHO_T}no" >&6; }
1.3323 +fi
1.3324 +
1.3325 +
1.3326 + test -n "$CC_FOR_BUILD" && break
1.3327 + done
1.3328 +fi
1.3329 +if test -z "$CC_FOR_BUILD"; then
1.3330 + ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
1.3331 + for ac_prog in cl.exe
1.3332 +do
1.3333 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.3334 +set dummy $ac_prog; ac_word=$2
1.3335 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.3336 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.3337 +if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
1.3338 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3339 +else
1.3340 + if test -n "$ac_ct_CC_FOR_BUILD"; then
1.3341 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
1.3342 +else
1.3343 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.3344 +for as_dir in $PATH
1.3345 +do
1.3346 + IFS=$as_save_IFS
1.3347 + test -z "$as_dir" && as_dir=.
1.3348 + for ac_exec_ext in '' $ac_executable_extensions; do
1.3349 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.3350 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
1.3351 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.3352 + break 2
1.3353 + fi
1.3354 +done
1.3355 +done
1.3356 +IFS=$as_save_IFS
1.3357 +
1.3358 +fi
1.3359 +fi
1.3360 +ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
1.3361 +if test -n "$ac_ct_CC_FOR_BUILD"; then
1.3362 + { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
1.3363 +echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
1.3364 +else
1.3365 + { echo "$as_me:$LINENO: result: no" >&5
1.3366 +echo "${ECHO_T}no" >&6; }
1.3367 +fi
1.3368 +
1.3369 +
1.3370 + test -n "$ac_ct_CC_FOR_BUILD" && break
1.3371 +done
1.3372 +
1.3373 + if test "x$ac_ct_CC_FOR_BUILD" = x; then
1.3374 + CC_FOR_BUILD=""
1.3375 + else
1.3376 + case $#:$ac_tool_warned in
1.3377 +yes:)
1.3378 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.3379 +whose name does not start with the build triplet. If you think this
1.3380 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.3381 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.3382 +whose name does not start with the build triplet. If you think this
1.3383 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.3384 +ac_tool_warned=yes ;;
1.3385 +esac
1.3386 + CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
1.3387 + fi
1.3388 +fi
1.3389 +
1.3390 +fi
1.3391 +
1.3392 +
1.3393 +test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.3394 +See \`config.log' for more details." >&5
1.3395 +echo "$as_me: error: no acceptable C compiler found in \$PATH
1.3396 +See \`config.log' for more details." >&2;}
1.3397 + { (exit 1); exit 1; }; }
1.3398 +
1.3399 +# Provide some information about the compiler.
1.3400 +echo "$as_me:$LINENO: checking for C compiler version" >&5
1.3401 +ac_compiler=`set X $ac_build_compile; echo $2`
1.3402 +{ (ac_try="$ac_compiler --version >&5"
1.3403 +case "(($ac_try" in
1.3404 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3405 + *) ac_try_echo=$ac_try;;
1.3406 +esac
1.3407 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3408 + (eval "$ac_compiler --version >&5") 2>&5
1.3409 + ac_status=$?
1.3410 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3411 + (exit $ac_status); }
1.3412 +{ (ac_try="$ac_compiler -v >&5"
1.3413 +case "(($ac_try" in
1.3414 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3415 + *) ac_try_echo=$ac_try;;
1.3416 +esac
1.3417 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3418 + (eval "$ac_compiler -v >&5") 2>&5
1.3419 + ac_status=$?
1.3420 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3421 + (exit $ac_status); }
1.3422 +{ (ac_try="$ac_compiler -V >&5"
1.3423 +case "(($ac_try" in
1.3424 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3425 + *) ac_try_echo=$ac_try;;
1.3426 +esac
1.3427 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3428 + (eval "$ac_compiler -V >&5") 2>&5
1.3429 + ac_status=$?
1.3430 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3431 + (exit $ac_status); }
1.3432 +
1.3433 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.3434 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.3435 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.3436 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3437 +else
1.3438 + cat >conftest.$ac_ext <<_ACEOF
1.3439 +/* confdefs.h. */
1.3440 +_ACEOF
1.3441 +cat confdefs.h >>conftest.$ac_ext
1.3442 +cat >>conftest.$ac_ext <<_ACEOF
1.3443 +/* end confdefs.h. */
1.3444 +
1.3445 +int
1.3446 +main ()
1.3447 +{
1.3448 +#ifndef __GNUC__
1.3449 + choke me
1.3450 +#endif
1.3451 +
1.3452 + ;
1.3453 + return 0;
1.3454 +}
1.3455 +_ACEOF
1.3456 +rm -f conftest.$ac_build_objext
1.3457 +if { (ac_try="$ac_build_compile"
1.3458 +case "(($ac_try" in
1.3459 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3460 + *) ac_try_echo=$ac_try;;
1.3461 +esac
1.3462 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3463 + (eval "$ac_build_compile") 2>conftest.er1
1.3464 + ac_status=$?
1.3465 + grep -v '^ *+' conftest.er1 >conftest.err
1.3466 + rm -f conftest.er1
1.3467 + cat conftest.err >&5
1.3468 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3469 + (exit $ac_status); } && {
1.3470 + test -z "$ac_c_werror_flag" ||
1.3471 + test ! -s conftest.err
1.3472 + } && test -s conftest.$ac_build_objext; then
1.3473 + ac_build_compiler_gnu=yes
1.3474 +else
1.3475 + echo "$as_me: failed program was:" >&5
1.3476 +sed 's/^/| /' conftest.$ac_ext >&5
1.3477 +
1.3478 + ac_build_compiler_gnu=no
1.3479 +fi
1.3480 +
1.3481 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
1.3482 +ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
1.3483 +
1.3484 +fi
1.3485 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.3486 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.3487 +GCC=`test $ac_build_compiler_gnu = yes && echo yes`
1.3488 +ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
1.3489 +ac_save_CFLAGS=$CFLAGS_FOR_BUILD
1.3490 +{ echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
1.3491 +echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
1.3492 +if test "${ac_cv_build_prog_cc_g+set}" = set; then
1.3493 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3494 +else
1.3495 + ac_save_c_werror_flag=$ac_c_werror_flag
1.3496 + ac_c_werror_flag=yes
1.3497 + ac_cv_build_prog_cc_g=no
1.3498 + CFLAGS_FOR_BUILD="-g"
1.3499 + cat >conftest.$ac_ext <<_ACEOF
1.3500 +/* confdefs.h. */
1.3501 +_ACEOF
1.3502 +cat confdefs.h >>conftest.$ac_ext
1.3503 +cat >>conftest.$ac_ext <<_ACEOF
1.3504 +/* end confdefs.h. */
1.3505 +
1.3506 +int
1.3507 +main ()
1.3508 +{
1.3509 +
1.3510 + ;
1.3511 + return 0;
1.3512 +}
1.3513 +_ACEOF
1.3514 +rm -f conftest.$ac_build_objext
1.3515 +if { (ac_try="$ac_build_compile"
1.3516 +case "(($ac_try" in
1.3517 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3518 + *) ac_try_echo=$ac_try;;
1.3519 +esac
1.3520 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3521 + (eval "$ac_build_compile") 2>conftest.er1
1.3522 + ac_status=$?
1.3523 + grep -v '^ *+' conftest.er1 >conftest.err
1.3524 + rm -f conftest.er1
1.3525 + cat conftest.err >&5
1.3526 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3527 + (exit $ac_status); } && {
1.3528 + test -z "$ac_c_werror_flag" ||
1.3529 + test ! -s conftest.err
1.3530 + } && test -s conftest.$ac_build_objext; then
1.3531 + ac_cv_build_prog_cc_g=yes
1.3532 +else
1.3533 + echo "$as_me: failed program was:" >&5
1.3534 +sed 's/^/| /' conftest.$ac_ext >&5
1.3535 +
1.3536 + CFLAGS_FOR_BUILD=""
1.3537 + cat >conftest.$ac_ext <<_ACEOF
1.3538 +/* confdefs.h. */
1.3539 +_ACEOF
1.3540 +cat confdefs.h >>conftest.$ac_ext
1.3541 +cat >>conftest.$ac_ext <<_ACEOF
1.3542 +/* end confdefs.h. */
1.3543 +
1.3544 +int
1.3545 +main ()
1.3546 +{
1.3547 +
1.3548 + ;
1.3549 + return 0;
1.3550 +}
1.3551 +_ACEOF
1.3552 +rm -f conftest.$ac_build_objext
1.3553 +if { (ac_try="$ac_build_compile"
1.3554 +case "(($ac_try" in
1.3555 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3556 + *) ac_try_echo=$ac_try;;
1.3557 +esac
1.3558 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3559 + (eval "$ac_build_compile") 2>conftest.er1
1.3560 + ac_status=$?
1.3561 + grep -v '^ *+' conftest.er1 >conftest.err
1.3562 + rm -f conftest.er1
1.3563 + cat conftest.err >&5
1.3564 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3565 + (exit $ac_status); } && {
1.3566 + test -z "$ac_c_werror_flag" ||
1.3567 + test ! -s conftest.err
1.3568 + } && test -s conftest.$ac_build_objext; then
1.3569 + :
1.3570 +else
1.3571 + echo "$as_me: failed program was:" >&5
1.3572 +sed 's/^/| /' conftest.$ac_ext >&5
1.3573 +
1.3574 + ac_c_werror_flag=$ac_save_c_werror_flag
1.3575 + CFLAGS_FOR_BUILD="-g"
1.3576 + cat >conftest.$ac_ext <<_ACEOF
1.3577 +/* confdefs.h. */
1.3578 +_ACEOF
1.3579 +cat confdefs.h >>conftest.$ac_ext
1.3580 +cat >>conftest.$ac_ext <<_ACEOF
1.3581 +/* end confdefs.h. */
1.3582 +
1.3583 +int
1.3584 +main ()
1.3585 +{
1.3586 +
1.3587 + ;
1.3588 + return 0;
1.3589 +}
1.3590 +_ACEOF
1.3591 +rm -f conftest.$ac_build_objext
1.3592 +if { (ac_try="$ac_build_compile"
1.3593 +case "(($ac_try" in
1.3594 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3595 + *) ac_try_echo=$ac_try;;
1.3596 +esac
1.3597 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3598 + (eval "$ac_build_compile") 2>conftest.er1
1.3599 + ac_status=$?
1.3600 + grep -v '^ *+' conftest.er1 >conftest.err
1.3601 + rm -f conftest.er1
1.3602 + cat conftest.err >&5
1.3603 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3604 + (exit $ac_status); } && {
1.3605 + test -z "$ac_c_werror_flag" ||
1.3606 + test ! -s conftest.err
1.3607 + } && test -s conftest.$ac_build_objext; then
1.3608 + ac_cv_build_prog_cc_g=yes
1.3609 +else
1.3610 + echo "$as_me: failed program was:" >&5
1.3611 +sed 's/^/| /' conftest.$ac_ext >&5
1.3612 +
1.3613 +
1.3614 +fi
1.3615 +
1.3616 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
1.3617 +fi
1.3618 +
1.3619 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
1.3620 +fi
1.3621 +
1.3622 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
1.3623 + ac_c_werror_flag=$ac_save_c_werror_flag
1.3624 +fi
1.3625 +{ echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
1.3626 +echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
1.3627 +if test "$ac_test_CFLAGS" = set; then
1.3628 + CFLAGS_FOR_BUILD=$ac_save_CFLAGS
1.3629 +elif test $ac_cv_build_prog_cc_g = yes; then
1.3630 + if test "$GCC" = yes; then
1.3631 + CFLAGS_FOR_BUILD="-g -O2"
1.3632 + else
1.3633 + CFLAGS_FOR_BUILD="-g"
1.3634 + fi
1.3635 +else
1.3636 + if test "$GCC" = yes; then
1.3637 + CFLAGS_FOR_BUILD="-O2"
1.3638 + else
1.3639 + CFLAGS_FOR_BUILD=
1.3640 + fi
1.3641 +fi
1.3642 +{ echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
1.3643 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
1.3644 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.3645 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3646 +else
1.3647 + ac_cv_build_prog_cc_stdc=no
1.3648 +ac_save_CC=$CC_FOR_BUILD
1.3649 +cat >conftest.$ac_ext <<_ACEOF
1.3650 +/* confdefs.h. */
1.3651 +_ACEOF
1.3652 +cat confdefs.h >>conftest.$ac_ext
1.3653 +cat >>conftest.$ac_ext <<_ACEOF
1.3654 +/* end confdefs.h. */
1.3655 +#include <stdarg.h>
1.3656 +#include <stdio.h>
1.3657 +#include <sys/types.h>
1.3658 +#include <sys/stat.h>
1.3659 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.3660 +struct buf { int x; };
1.3661 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.3662 +static char *e (p, i)
1.3663 + char **p;
1.3664 + int i;
1.3665 +{
1.3666 + return p[i];
1.3667 +}
1.3668 +static char *f (char * (*g) (char **, int), char **p, ...)
1.3669 +{
1.3670 + char *s;
1.3671 + va_list v;
1.3672 + va_start (v,p);
1.3673 + s = g (p, va_arg (v,int));
1.3674 + va_end (v);
1.3675 + return s;
1.3676 +}
1.3677 +
1.3678 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.3679 + function prototypes and stuff, but not '\xHH' hex character constants.
1.3680 + These don't provoke an error unfortunately, instead are silently treated
1.3681 + as 'x'. The following induces an error, until -std is added to get
1.3682 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.3683 + array size at least. It's necessary to write '\x00'==0 to get something
1.3684 + that's true only with -std. */
1.3685 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.3686 +
1.3687 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.3688 + inside strings and character constants. */
1.3689 +#define FOO(x) 'x'
1.3690 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.3691 +
1.3692 +int test (int i, double x);
1.3693 +struct s1 {int (*f) (int a);};
1.3694 +struct s2 {int (*f) (double a);};
1.3695 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.3696 +int argc;
1.3697 +char **argv;
1.3698 +int
1.3699 +main ()
1.3700 +{
1.3701 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.3702 + ;
1.3703 + return 0;
1.3704 +}
1.3705 +_ACEOF
1.3706 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.3707 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.3708 +do
1.3709 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
1.3710 + rm -f conftest.$ac_build_objext
1.3711 +if { (ac_try="$ac_build_compile"
1.3712 +case "(($ac_try" in
1.3713 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3714 + *) ac_try_echo=$ac_try;;
1.3715 +esac
1.3716 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3717 + (eval "$ac_build_compile") 2>conftest.er1
1.3718 + ac_status=$?
1.3719 + grep -v '^ *+' conftest.er1 >conftest.err
1.3720 + rm -f conftest.er1
1.3721 + cat conftest.err >&5
1.3722 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3723 + (exit $ac_status); } && {
1.3724 + test -z "$ac_c_werror_flag" ||
1.3725 + test ! -s conftest.err
1.3726 + } && test -s conftest.$ac_build_objext; then
1.3727 + ac_cv_build_prog_cc_stdc=$ac_arg
1.3728 +else
1.3729 + echo "$as_me: failed program was:" >&5
1.3730 +sed 's/^/| /' conftest.$ac_ext >&5
1.3731 +
1.3732 +
1.3733 +fi
1.3734 +
1.3735 +rm -f core conftest.err conftest.$ac_build_objext
1.3736 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
1.3737 +done
1.3738 +rm -f conftest.$ac_ext
1.3739 +CC_FOR_BUILD=$ac_save_CC
1.3740 +
1.3741 +fi
1.3742 +# AC_CACHE_VAL
1.3743 +case "x$ac_cv_build_prog_cc_stdc" in
1.3744 + x)
1.3745 + { echo "$as_me:$LINENO: result: none needed" >&5
1.3746 +echo "${ECHO_T}none needed" >&6; } ;;
1.3747 + xno)
1.3748 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.3749 +echo "${ECHO_T}unsupported" >&6; } ;;
1.3750 + *)
1.3751 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
1.3752 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.3753 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.3754 +esac
1.3755 +
1.3756 +
1.3757 +ac_ext=c
1.3758 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.3759 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.3760 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.3761 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.3762 +
1.3763 +depcc="$CC_FOR_BUILD" am_compiler_list=
1.3764 +
1.3765 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.3766 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.3767 +if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
1.3768 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3769 +else
1.3770 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.3771 + # We make a subdir and do the tests there. Otherwise we can end up
1.3772 + # making bogus files that we don't know about and never remove. For
1.3773 + # instance it was reported that on HP-UX the gcc test will end up
1.3774 + # making a dummy file named `D' -- because `-MD' means `put the output
1.3775 + # in D'.
1.3776 + mkdir conftest.dir
1.3777 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.3778 + # using a relative directory.
1.3779 + cp "$am_depcomp" conftest.dir
1.3780 + cd conftest.dir
1.3781 + # We will build objects and dependencies in a subdirectory because
1.3782 + # it helps to detect inapplicable dependency modes. For instance
1.3783 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.3784 + # side effect of compilation, but ICC will put the dependencies in
1.3785 + # the current directory while Tru64 will put them in the object
1.3786 + # directory.
1.3787 + mkdir sub
1.3788 +
1.3789 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
1.3790 + if test "$am_compiler_list" = ""; then
1.3791 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.3792 + fi
1.3793 + for depmode in $am_compiler_list; do
1.3794 + # Setup a source with many dependencies, because some compilers
1.3795 + # like to wrap large dependency lists on column 80 (with \), and
1.3796 + # we should not choose a depcomp mode which is confused by this.
1.3797 + #
1.3798 + # We need to recreate these files for each test, as the compiler may
1.3799 + # overwrite some of them when testing with obscure command lines.
1.3800 + # This happens at least with the AIX C compiler.
1.3801 + : > sub/conftest.c
1.3802 + for i in 1 2 3 4 5 6; do
1.3803 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.3804 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.3805 + # Solaris 8's {/usr,}/bin/sh.
1.3806 + touch sub/conftst$i.h
1.3807 + done
1.3808 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.3809 +
1.3810 + case $depmode in
1.3811 + nosideeffect)
1.3812 + # after this tag, mechanisms are not by side-effect, so they'll
1.3813 + # only be used when explicitly requested
1.3814 + if test "x$enable_dependency_tracking" = xyes; then
1.3815 + continue
1.3816 + else
1.3817 + break
1.3818 + fi
1.3819 + ;;
1.3820 + none) break ;;
1.3821 + esac
1.3822 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.3823 + # mode. It turns out that the SunPro C++ compiler does not properly
1.3824 + # handle `-M -o', and we need to detect this.
1.3825 + if depmode=$depmode \
1.3826 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.3827 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.3828 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.3829 + >/dev/null 2>conftest.err &&
1.3830 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.3831 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.3832 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.3833 + # icc doesn't choke on unknown options, it will just issue warnings
1.3834 + # or remarks (even with -Werror). So we grep stderr for any message
1.3835 + # that says an option was ignored or not supported.
1.3836 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.3837 + # icc: Command line warning: ignoring option '-M'; no argument required
1.3838 + # The diagnosis changed in icc 8.0:
1.3839 + # icc: Command line remark: option '-MP' not supported
1.3840 + if (grep 'ignoring option' conftest.err ||
1.3841 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.3842 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
1.3843 + break
1.3844 + fi
1.3845 + fi
1.3846 + done
1.3847 +
1.3848 + cd ..
1.3849 + rm -rf conftest.dir
1.3850 +else
1.3851 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
1.3852 +fi
1.3853 +
1.3854 +fi
1.3855 +{ echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
1.3856 +echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
1.3857 +CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
1.3858 +
1.3859 +
1.3860 +
1.3861 +if
1.3862 + test "x$enable_dependency_tracking" != xno \
1.3863 + && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
1.3864 + am__fastdepCC_FOR_BUILD_TRUE=
1.3865 + am__fastdepCC_FOR_BUILD_FALSE='#'
1.3866 +else
1.3867 + am__fastdepCC_FOR_BUILD_TRUE='#'
1.3868 + am__fastdepCC_FOR_BUILD_FALSE=
1.3869 +fi
1.3870 +
1.3871 +
1.3872 + case $ac_cv_build_prog_cc_stdc in
1.3873 + no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
1.3874 + *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
1.3875 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
1.3876 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.3877 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3878 +else
1.3879 + ac_cv_build_prog_cc_stdc=no
1.3880 +ac_save_CC=$CC_FOR_BUILD
1.3881 +cat >conftest.$ac_ext <<_ACEOF
1.3882 +/* confdefs.h. */
1.3883 +_ACEOF
1.3884 +cat confdefs.h >>conftest.$ac_ext
1.3885 +cat >>conftest.$ac_ext <<_ACEOF
1.3886 +/* end confdefs.h. */
1.3887 +#include <stdarg.h>
1.3888 +#include <stdbool.h>
1.3889 +#include <stdlib.h>
1.3890 +#include <wchar.h>
1.3891 +#include <stdio.h>
1.3892 +
1.3893 +// Check varargs macros. These examples are taken from C99 6.10.3.5.
1.3894 +#define debug(...) fprintf (stderr, __VA_ARGS__)
1.3895 +#define showlist(...) puts (#__VA_ARGS__)
1.3896 +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1.3897 +static void
1.3898 +test_varargs_macros (void)
1.3899 +{
1.3900 + int x = 1234;
1.3901 + int y = 5678;
1.3902 + debug ("Flag");
1.3903 + debug ("X = %d\n", x);
1.3904 + showlist (The first, second, and third items.);
1.3905 + report (x>y, "x is %d but y is %d", x, y);
1.3906 +}
1.3907 +
1.3908 +// Check long long types.
1.3909 +#define BIG64 18446744073709551615ull
1.3910 +#define BIG32 4294967295ul
1.3911 +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1.3912 +#if !BIG_OK
1.3913 + your preprocessor is broken;
1.3914 +#endif
1.3915 +#if BIG_OK
1.3916 +#else
1.3917 + your preprocessor is broken;
1.3918 +#endif
1.3919 +static long long int bignum = -9223372036854775807LL;
1.3920 +static unsigned long long int ubignum = BIG64;
1.3921 +
1.3922 +struct incomplete_array
1.3923 +{
1.3924 + int datasize;
1.3925 + double data[];
1.3926 +};
1.3927 +
1.3928 +struct named_init {
1.3929 + int number;
1.3930 + const wchar_t *name;
1.3931 + double average;
1.3932 +};
1.3933 +
1.3934 +typedef const char *ccp;
1.3935 +
1.3936 +static inline int
1.3937 +test_restrict (ccp restrict text)
1.3938 +{
1.3939 + // See if C++-style comments work.
1.3940 + // Iterate through items via the restricted pointer.
1.3941 + // Also check for declarations in for loops.
1.3942 + for (unsigned int i = 0; *(text+i) != '\0'; ++i)
1.3943 + continue;
1.3944 + return 0;
1.3945 +}
1.3946 +
1.3947 +// Check varargs and va_copy.
1.3948 +static void
1.3949 +test_varargs (const char *format, ...)
1.3950 +{
1.3951 + va_list args;
1.3952 + va_start (args, format);
1.3953 + va_list args_copy;
1.3954 + va_copy (args_copy, args);
1.3955 +
1.3956 + const char *str;
1.3957 + int number;
1.3958 + float fnumber;
1.3959 +
1.3960 + while (*format)
1.3961 + {
1.3962 + switch (*format++)
1.3963 + {
1.3964 + case 's': // string
1.3965 + str = va_arg (args_copy, const char *);
1.3966 + break;
1.3967 + case 'd': // int
1.3968 + number = va_arg (args_copy, int);
1.3969 + break;
1.3970 + case 'f': // float
1.3971 + fnumber = va_arg (args_copy, double);
1.3972 + break;
1.3973 + default:
1.3974 + break;
1.3975 + }
1.3976 + }
1.3977 + va_end (args_copy);
1.3978 + va_end (args);
1.3979 +}
1.3980 +
1.3981 +int
1.3982 +main ()
1.3983 +{
1.3984 +
1.3985 + // Check bool.
1.3986 + _Bool success = false;
1.3987 +
1.3988 + // Check restrict.
1.3989 + if (test_restrict ("String literal") == 0)
1.3990 + success = true;
1.3991 + char *restrict newvar = "Another string";
1.3992 +
1.3993 + // Check varargs.
1.3994 + test_varargs ("s, d' f .", "string", 65, 34.234);
1.3995 + test_varargs_macros ();
1.3996 +
1.3997 + // Check flexible array members.
1.3998 + struct incomplete_array *ia =
1.3999 + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
1.4000 + ia->datasize = 10;
1.4001 + for (int i = 0; i < ia->datasize; ++i)
1.4002 + ia->data[i] = i * 1.234;
1.4003 +
1.4004 + // Check named initializers.
1.4005 + struct named_init ni = {
1.4006 + .number = 34,
1.4007 + .name = L"Test wide string",
1.4008 + .average = 543.34343,
1.4009 + };
1.4010 +
1.4011 + ni.number = 58;
1.4012 +
1.4013 + int dynamic_array[ni.number];
1.4014 + dynamic_array[ni.number - 1] = 543;
1.4015 +
1.4016 + // work around unused variable warnings
1.4017 + return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
1.4018 + || dynamic_array[ni.number - 1] != 543);
1.4019 +
1.4020 + ;
1.4021 + return 0;
1.4022 +}
1.4023 +_ACEOF
1.4024 +for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
1.4025 +do
1.4026 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
1.4027 + rm -f conftest.$ac_build_objext
1.4028 +if { (ac_try="$ac_build_compile"
1.4029 +case "(($ac_try" in
1.4030 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4031 + *) ac_try_echo=$ac_try;;
1.4032 +esac
1.4033 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4034 + (eval "$ac_build_compile") 2>conftest.er1
1.4035 + ac_status=$?
1.4036 + grep -v '^ *+' conftest.er1 >conftest.err
1.4037 + rm -f conftest.er1
1.4038 + cat conftest.err >&5
1.4039 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4040 + (exit $ac_status); } && {
1.4041 + test -z "$ac_c_werror_flag" ||
1.4042 + test ! -s conftest.err
1.4043 + } && test -s conftest.$ac_build_objext; then
1.4044 + ac_cv_build_prog_cc_stdc=$ac_arg
1.4045 +else
1.4046 + echo "$as_me: failed program was:" >&5
1.4047 +sed 's/^/| /' conftest.$ac_ext >&5
1.4048 +
1.4049 +
1.4050 +fi
1.4051 +
1.4052 +rm -f core conftest.err conftest.$ac_build_objext
1.4053 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
1.4054 +done
1.4055 +rm -f conftest.$ac_ext
1.4056 +CC_FOR_BUILD=$ac_save_CC
1.4057 +
1.4058 +fi
1.4059 +# AC_CACHE_VAL
1.4060 +case "x$ac_cv_build_prog_cc_stdc" in
1.4061 + x)
1.4062 + { echo "$as_me:$LINENO: result: none needed" >&5
1.4063 +echo "${ECHO_T}none needed" >&6; } ;;
1.4064 + xno)
1.4065 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.4066 +echo "${ECHO_T}unsupported" >&6; } ;;
1.4067 + *)
1.4068 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
1.4069 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.4070 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.4071 +esac
1.4072 +if test "x$ac_cv_build_prog_cc_stdc" != xno; then
1.4073 + ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
1.4074 +else
1.4075 + { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
1.4076 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
1.4077 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.4078 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4079 +else
1.4080 + ac_cv_build_prog_cc_stdc=no
1.4081 +ac_save_CC=$CC_FOR_BUILD
1.4082 +cat >conftest.$ac_ext <<_ACEOF
1.4083 +/* confdefs.h. */
1.4084 +_ACEOF
1.4085 +cat confdefs.h >>conftest.$ac_ext
1.4086 +cat >>conftest.$ac_ext <<_ACEOF
1.4087 +/* end confdefs.h. */
1.4088 +#include <stdarg.h>
1.4089 +#include <stdio.h>
1.4090 +#include <sys/types.h>
1.4091 +#include <sys/stat.h>
1.4092 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.4093 +struct buf { int x; };
1.4094 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.4095 +static char *e (p, i)
1.4096 + char **p;
1.4097 + int i;
1.4098 +{
1.4099 + return p[i];
1.4100 +}
1.4101 +static char *f (char * (*g) (char **, int), char **p, ...)
1.4102 +{
1.4103 + char *s;
1.4104 + va_list v;
1.4105 + va_start (v,p);
1.4106 + s = g (p, va_arg (v,int));
1.4107 + va_end (v);
1.4108 + return s;
1.4109 +}
1.4110 +
1.4111 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.4112 + function prototypes and stuff, but not '\xHH' hex character constants.
1.4113 + These don't provoke an error unfortunately, instead are silently treated
1.4114 + as 'x'. The following induces an error, until -std is added to get
1.4115 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.4116 + array size at least. It's necessary to write '\x00'==0 to get something
1.4117 + that's true only with -std. */
1.4118 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.4119 +
1.4120 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.4121 + inside strings and character constants. */
1.4122 +#define FOO(x) 'x'
1.4123 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.4124 +
1.4125 +int test (int i, double x);
1.4126 +struct s1 {int (*f) (int a);};
1.4127 +struct s2 {int (*f) (double a);};
1.4128 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.4129 +int argc;
1.4130 +char **argv;
1.4131 +int
1.4132 +main ()
1.4133 +{
1.4134 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.4135 + ;
1.4136 + return 0;
1.4137 +}
1.4138 +_ACEOF
1.4139 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.4140 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.4141 +do
1.4142 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
1.4143 + rm -f conftest.$ac_build_objext
1.4144 +if { (ac_try="$ac_build_compile"
1.4145 +case "(($ac_try" in
1.4146 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4147 + *) ac_try_echo=$ac_try;;
1.4148 +esac
1.4149 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4150 + (eval "$ac_build_compile") 2>conftest.er1
1.4151 + ac_status=$?
1.4152 + grep -v '^ *+' conftest.er1 >conftest.err
1.4153 + rm -f conftest.er1
1.4154 + cat conftest.err >&5
1.4155 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4156 + (exit $ac_status); } && {
1.4157 + test -z "$ac_c_werror_flag" ||
1.4158 + test ! -s conftest.err
1.4159 + } && test -s conftest.$ac_build_objext; then
1.4160 + ac_cv_build_prog_cc_stdc=$ac_arg
1.4161 +else
1.4162 + echo "$as_me: failed program was:" >&5
1.4163 +sed 's/^/| /' conftest.$ac_ext >&5
1.4164 +
1.4165 +
1.4166 +fi
1.4167 +
1.4168 +rm -f core conftest.err conftest.$ac_build_objext
1.4169 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
1.4170 +done
1.4171 +rm -f conftest.$ac_ext
1.4172 +CC_FOR_BUILD=$ac_save_CC
1.4173 +
1.4174 +fi
1.4175 +# AC_CACHE_VAL
1.4176 +case "x$ac_cv_build_prog_cc_stdc" in
1.4177 + x)
1.4178 + { echo "$as_me:$LINENO: result: none needed" >&5
1.4179 +echo "${ECHO_T}none needed" >&6; } ;;
1.4180 + xno)
1.4181 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.4182 +echo "${ECHO_T}unsupported" >&6; } ;;
1.4183 + *)
1.4184 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
1.4185 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.4186 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.4187 +esac
1.4188 +if test "x$ac_cv_build_prog_cc_stdc" != xno; then
1.4189 + ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
1.4190 +else
1.4191 + ac_cv_build_prog_cc_stdc=no
1.4192 +fi
1.4193 +
1.4194 +
1.4195 +fi
1.4196 +
1.4197 + ;;
1.4198 +esac
1.4199 + { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
1.4200 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
1.4201 + if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.4202 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4203 +fi
1.4204 +
1.4205 + case $ac_cv_build_prog_cc_stdc in
1.4206 + no) { echo "$as_me:$LINENO: result: unsupported" >&5
1.4207 +echo "${ECHO_T}unsupported" >&6; } ;;
1.4208 + '') { echo "$as_me:$LINENO: result: none needed" >&5
1.4209 +echo "${ECHO_T}none needed" >&6; } ;;
1.4210 + *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.4211 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.4212 +esac
1.4213 +
1.4214 +
1.4215 +ac_ext=c
1.4216 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.4217 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.4218 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.4219 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.4220 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.4221 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.4222 +# On Suns, sometimes $CPP names a directory.
1.4223 +if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
1.4224 + CPP_FOR_BUILD=
1.4225 +fi
1.4226 +if test -z "$CPP_FOR_BUILD"; then
1.4227 + if test "${ac_cv_build_prog_CPP+set}" = set; then
1.4228 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4229 +else
1.4230 + # Double quotes because CPP needs to be expanded
1.4231 + for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
1.4232 + do
1.4233 + ac_preproc_ok=false
1.4234 +for ac_c_preproc_warn_flag in '' yes
1.4235 +do
1.4236 + # Use a header file that comes with gcc, so configuring glibc
1.4237 + # with a fresh cross-compiler works.
1.4238 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.4239 + # <limits.h> exists even on freestanding compilers.
1.4240 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.4241 + # not just through cpp. "Syntax error" is here to catch this case.
1.4242 + cat >conftest.$ac_ext <<_ACEOF
1.4243 +/* confdefs.h. */
1.4244 +_ACEOF
1.4245 +cat confdefs.h >>conftest.$ac_ext
1.4246 +cat >>conftest.$ac_ext <<_ACEOF
1.4247 +/* end confdefs.h. */
1.4248 +#ifdef __STDC__
1.4249 +# include <limits.h>
1.4250 +#else
1.4251 +# include <assert.h>
1.4252 +#endif
1.4253 + Syntax error
1.4254 +_ACEOF
1.4255 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.4256 +case "(($ac_try" in
1.4257 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4258 + *) ac_try_echo=$ac_try;;
1.4259 +esac
1.4260 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4261 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.4262 + ac_status=$?
1.4263 + grep -v '^ *+' conftest.er1 >conftest.err
1.4264 + rm -f conftest.er1
1.4265 + cat conftest.err >&5
1.4266 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4267 + (exit $ac_status); } >/dev/null && {
1.4268 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.4269 + test ! -s conftest.err
1.4270 + }; then
1.4271 + :
1.4272 +else
1.4273 + echo "$as_me: failed program was:" >&5
1.4274 +sed 's/^/| /' conftest.$ac_ext >&5
1.4275 +
1.4276 + # Broken: fails on valid input.
1.4277 +continue
1.4278 +fi
1.4279 +
1.4280 +rm -f conftest.err conftest.$ac_ext
1.4281 +
1.4282 + # OK, works on sane cases. Now check whether nonexistent headers
1.4283 + # can be detected and how.
1.4284 + cat >conftest.$ac_ext <<_ACEOF
1.4285 +/* confdefs.h. */
1.4286 +_ACEOF
1.4287 +cat confdefs.h >>conftest.$ac_ext
1.4288 +cat >>conftest.$ac_ext <<_ACEOF
1.4289 +/* end confdefs.h. */
1.4290 +#include <ac_nonexistent.h>
1.4291 +_ACEOF
1.4292 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.4293 +case "(($ac_try" in
1.4294 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4295 + *) ac_try_echo=$ac_try;;
1.4296 +esac
1.4297 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4298 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.4299 + ac_status=$?
1.4300 + grep -v '^ *+' conftest.er1 >conftest.err
1.4301 + rm -f conftest.er1
1.4302 + cat conftest.err >&5
1.4303 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4304 + (exit $ac_status); } >/dev/null && {
1.4305 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.4306 + test ! -s conftest.err
1.4307 + }; then
1.4308 + # Broken: success on invalid input.
1.4309 +continue
1.4310 +else
1.4311 + echo "$as_me: failed program was:" >&5
1.4312 +sed 's/^/| /' conftest.$ac_ext >&5
1.4313 +
1.4314 + # Passes both tests.
1.4315 +ac_preproc_ok=:
1.4316 +break
1.4317 +fi
1.4318 +
1.4319 +rm -f conftest.err conftest.$ac_ext
1.4320 +
1.4321 +done
1.4322 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.4323 +rm -f conftest.err conftest.$ac_ext
1.4324 +if $ac_preproc_ok; then
1.4325 + break
1.4326 +fi
1.4327 +
1.4328 + done
1.4329 + ac_cv_build_prog_CPP=$CPP_FOR_BUILD
1.4330 +
1.4331 +fi
1.4332 + CPP_FOR_BUILD=$ac_cv_build_prog_CPP
1.4333 +else
1.4334 + ac_cv_build_prog_CPP=$CPP_FOR_BUILD
1.4335 +fi
1.4336 +{ echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
1.4337 +echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
1.4338 +ac_preproc_ok=false
1.4339 +for ac_c_preproc_warn_flag in '' yes
1.4340 +do
1.4341 + # Use a header file that comes with gcc, so configuring glibc
1.4342 + # with a fresh cross-compiler works.
1.4343 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.4344 + # <limits.h> exists even on freestanding compilers.
1.4345 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.4346 + # not just through cpp. "Syntax error" is here to catch this case.
1.4347 + cat >conftest.$ac_ext <<_ACEOF
1.4348 +/* confdefs.h. */
1.4349 +_ACEOF
1.4350 +cat confdefs.h >>conftest.$ac_ext
1.4351 +cat >>conftest.$ac_ext <<_ACEOF
1.4352 +/* end confdefs.h. */
1.4353 +#ifdef __STDC__
1.4354 +# include <limits.h>
1.4355 +#else
1.4356 +# include <assert.h>
1.4357 +#endif
1.4358 + Syntax error
1.4359 +_ACEOF
1.4360 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.4361 +case "(($ac_try" in
1.4362 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4363 + *) ac_try_echo=$ac_try;;
1.4364 +esac
1.4365 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4366 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.4367 + ac_status=$?
1.4368 + grep -v '^ *+' conftest.er1 >conftest.err
1.4369 + rm -f conftest.er1
1.4370 + cat conftest.err >&5
1.4371 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4372 + (exit $ac_status); } >/dev/null && {
1.4373 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.4374 + test ! -s conftest.err
1.4375 + }; then
1.4376 + :
1.4377 +else
1.4378 + echo "$as_me: failed program was:" >&5
1.4379 +sed 's/^/| /' conftest.$ac_ext >&5
1.4380 +
1.4381 + # Broken: fails on valid input.
1.4382 +continue
1.4383 +fi
1.4384 +
1.4385 +rm -f conftest.err conftest.$ac_ext
1.4386 +
1.4387 + # OK, works on sane cases. Now check whether nonexistent headers
1.4388 + # can be detected and how.
1.4389 + cat >conftest.$ac_ext <<_ACEOF
1.4390 +/* confdefs.h. */
1.4391 +_ACEOF
1.4392 +cat confdefs.h >>conftest.$ac_ext
1.4393 +cat >>conftest.$ac_ext <<_ACEOF
1.4394 +/* end confdefs.h. */
1.4395 +#include <ac_nonexistent.h>
1.4396 +_ACEOF
1.4397 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.4398 +case "(($ac_try" in
1.4399 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4400 + *) ac_try_echo=$ac_try;;
1.4401 +esac
1.4402 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4403 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.4404 + ac_status=$?
1.4405 + grep -v '^ *+' conftest.er1 >conftest.err
1.4406 + rm -f conftest.er1
1.4407 + cat conftest.err >&5
1.4408 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4409 + (exit $ac_status); } >/dev/null && {
1.4410 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.4411 + test ! -s conftest.err
1.4412 + }; then
1.4413 + # Broken: success on invalid input.
1.4414 +continue
1.4415 +else
1.4416 + echo "$as_me: failed program was:" >&5
1.4417 +sed 's/^/| /' conftest.$ac_ext >&5
1.4418 +
1.4419 + # Passes both tests.
1.4420 +ac_preproc_ok=:
1.4421 +break
1.4422 +fi
1.4423 +
1.4424 +rm -f conftest.err conftest.$ac_ext
1.4425 +
1.4426 +done
1.4427 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.4428 +rm -f conftest.err conftest.$ac_ext
1.4429 +if $ac_preproc_ok; then
1.4430 + :
1.4431 +else
1.4432 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
1.4433 +See \`config.log' for more details." >&5
1.4434 +echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
1.4435 +See \`config.log' for more details." >&2;}
1.4436 + { (exit 1); exit 1; }; }
1.4437 +fi
1.4438 +
1.4439 +ac_ext=c
1.4440 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.4441 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.4442 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.4443 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.4444 +
1.4445 +
1.4446 +
1.4447 +
1.4448 +BUILD_EXEEXT=$ac_build_exeext
1.4449 +BUILD_OBJEXT=$ac_build_objext
1.4450 +
1.4451 +ac_ext=m
1.4452 +ac_cpp='$OBJCPP $CPPFLAGS'
1.4453 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.4454 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.4455 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu
1.4456 +if test -n "$ac_tool_prefix"; then
1.4457 + for ac_prog in gcc objcc objc cc CC
1.4458 + do
1.4459 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.4460 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.4461 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.4462 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4463 +if test "${ac_cv_prog_OBJC+set}" = set; then
1.4464 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4465 +else
1.4466 + if test -n "$OBJC"; then
1.4467 + ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
1.4468 +else
1.4469 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4470 +for as_dir in $PATH
1.4471 +do
1.4472 + IFS=$as_save_IFS
1.4473 + test -z "$as_dir" && as_dir=.
1.4474 + for ac_exec_ext in '' $ac_executable_extensions; do
1.4475 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4476 + ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
1.4477 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.4478 + break 2
1.4479 + fi
1.4480 +done
1.4481 +done
1.4482 +IFS=$as_save_IFS
1.4483 +
1.4484 +fi
1.4485 +fi
1.4486 +OBJC=$ac_cv_prog_OBJC
1.4487 +if test -n "$OBJC"; then
1.4488 + { echo "$as_me:$LINENO: result: $OBJC" >&5
1.4489 +echo "${ECHO_T}$OBJC" >&6; }
1.4490 +else
1.4491 + { echo "$as_me:$LINENO: result: no" >&5
1.4492 +echo "${ECHO_T}no" >&6; }
1.4493 +fi
1.4494 +
1.4495 +
1.4496 + test -n "$OBJC" && break
1.4497 + done
1.4498 +fi
1.4499 +if test -z "$OBJC"; then
1.4500 + ac_ct_OBJC=$OBJC
1.4501 + for ac_prog in gcc objcc objc cc CC
1.4502 +do
1.4503 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.4504 +set dummy $ac_prog; ac_word=$2
1.4505 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.4506 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4507 +if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
1.4508 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4509 +else
1.4510 + if test -n "$ac_ct_OBJC"; then
1.4511 + ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
1.4512 +else
1.4513 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4514 +for as_dir in $PATH
1.4515 +do
1.4516 + IFS=$as_save_IFS
1.4517 + test -z "$as_dir" && as_dir=.
1.4518 + for ac_exec_ext in '' $ac_executable_extensions; do
1.4519 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4520 + ac_cv_prog_ac_ct_OBJC="$ac_prog"
1.4521 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.4522 + break 2
1.4523 + fi
1.4524 +done
1.4525 +done
1.4526 +IFS=$as_save_IFS
1.4527 +
1.4528 +fi
1.4529 +fi
1.4530 +ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
1.4531 +if test -n "$ac_ct_OBJC"; then
1.4532 + { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
1.4533 +echo "${ECHO_T}$ac_ct_OBJC" >&6; }
1.4534 +else
1.4535 + { echo "$as_me:$LINENO: result: no" >&5
1.4536 +echo "${ECHO_T}no" >&6; }
1.4537 +fi
1.4538 +
1.4539 +
1.4540 + test -n "$ac_ct_OBJC" && break
1.4541 +done
1.4542 +
1.4543 + if test "x$ac_ct_OBJC" = x; then
1.4544 + OBJC="gcc"
1.4545 + else
1.4546 + case $cross_compiling:$ac_tool_warned in
1.4547 +yes:)
1.4548 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.4549 +whose name does not start with the host triplet. If you think this
1.4550 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.4551 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.4552 +whose name does not start with the host triplet. If you think this
1.4553 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.4554 +ac_tool_warned=yes ;;
1.4555 +esac
1.4556 + OBJC=$ac_ct_OBJC
1.4557 + fi
1.4558 +fi
1.4559 +
1.4560 +# Provide some information about the compiler.
1.4561 +echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
1.4562 +ac_compiler=`set X $ac_compile; echo $2`
1.4563 +{ (ac_try="$ac_compiler --version >&5"
1.4564 +case "(($ac_try" in
1.4565 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4566 + *) ac_try_echo=$ac_try;;
1.4567 +esac
1.4568 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4569 + (eval "$ac_compiler --version >&5") 2>&5
1.4570 + ac_status=$?
1.4571 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4572 + (exit $ac_status); }
1.4573 +{ (ac_try="$ac_compiler -v >&5"
1.4574 +case "(($ac_try" in
1.4575 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4576 + *) ac_try_echo=$ac_try;;
1.4577 +esac
1.4578 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4579 + (eval "$ac_compiler -v >&5") 2>&5
1.4580 + ac_status=$?
1.4581 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4582 + (exit $ac_status); }
1.4583 +{ (ac_try="$ac_compiler -V >&5"
1.4584 +case "(($ac_try" in
1.4585 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4586 + *) ac_try_echo=$ac_try;;
1.4587 +esac
1.4588 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4589 + (eval "$ac_compiler -V >&5") 2>&5
1.4590 + ac_status=$?
1.4591 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4592 + (exit $ac_status); }
1.4593 +
1.4594 +{ echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
1.4595 +echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
1.4596 +if test "${ac_cv_objc_compiler_gnu+set}" = set; then
1.4597 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4598 +else
1.4599 + cat >conftest.$ac_ext <<_ACEOF
1.4600 +/* confdefs.h. */
1.4601 +_ACEOF
1.4602 +cat confdefs.h >>conftest.$ac_ext
1.4603 +cat >>conftest.$ac_ext <<_ACEOF
1.4604 +/* end confdefs.h. */
1.4605 +
1.4606 +int
1.4607 +main ()
1.4608 +{
1.4609 +#ifndef __GNUC__
1.4610 + choke me
1.4611 +#endif
1.4612 +
1.4613 + ;
1.4614 + return 0;
1.4615 +}
1.4616 +_ACEOF
1.4617 +rm -f conftest.$ac_objext
1.4618 +if { (ac_try="$ac_compile"
1.4619 +case "(($ac_try" in
1.4620 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4621 + *) ac_try_echo=$ac_try;;
1.4622 +esac
1.4623 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4624 + (eval "$ac_compile") 2>conftest.er1
1.4625 + ac_status=$?
1.4626 + grep -v '^ *+' conftest.er1 >conftest.err
1.4627 + rm -f conftest.er1
1.4628 + cat conftest.err >&5
1.4629 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4630 + (exit $ac_status); } && {
1.4631 + test -z "$ac_objc_werror_flag" ||
1.4632 + test ! -s conftest.err
1.4633 + } && test -s conftest.$ac_objext; then
1.4634 + ac_compiler_gnu=yes
1.4635 +else
1.4636 + echo "$as_me: failed program was:" >&5
1.4637 +sed 's/^/| /' conftest.$ac_ext >&5
1.4638 +
1.4639 + ac_compiler_gnu=no
1.4640 +fi
1.4641 +
1.4642 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.4643 +ac_cv_objc_compiler_gnu=$ac_compiler_gnu
1.4644 +
1.4645 +fi
1.4646 +{ echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
1.4647 +echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
1.4648 +GOBJC=`test $ac_compiler_gnu = yes && echo yes`
1.4649 +ac_test_OBJCFLAGS=${OBJCFLAGS+set}
1.4650 +ac_save_OBJCFLAGS=$OBJCFLAGS
1.4651 +{ echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
1.4652 +echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
1.4653 +if test "${ac_cv_prog_objc_g+set}" = set; then
1.4654 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4655 +else
1.4656 + ac_save_objc_werror_flag=$ac_objc_werror_flag
1.4657 + ac_objc_werror_flag=yes
1.4658 + ac_cv_prog_objc_g=no
1.4659 + OBJCFLAGS="-g"
1.4660 + cat >conftest.$ac_ext <<_ACEOF
1.4661 +/* confdefs.h. */
1.4662 +_ACEOF
1.4663 +cat confdefs.h >>conftest.$ac_ext
1.4664 +cat >>conftest.$ac_ext <<_ACEOF
1.4665 +/* end confdefs.h. */
1.4666 +
1.4667 +int
1.4668 +main ()
1.4669 +{
1.4670 +
1.4671 + ;
1.4672 + return 0;
1.4673 +}
1.4674 +_ACEOF
1.4675 +rm -f conftest.$ac_objext
1.4676 +if { (ac_try="$ac_compile"
1.4677 +case "(($ac_try" in
1.4678 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4679 + *) ac_try_echo=$ac_try;;
1.4680 +esac
1.4681 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4682 + (eval "$ac_compile") 2>conftest.er1
1.4683 + ac_status=$?
1.4684 + grep -v '^ *+' conftest.er1 >conftest.err
1.4685 + rm -f conftest.er1
1.4686 + cat conftest.err >&5
1.4687 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4688 + (exit $ac_status); } && {
1.4689 + test -z "$ac_objc_werror_flag" ||
1.4690 + test ! -s conftest.err
1.4691 + } && test -s conftest.$ac_objext; then
1.4692 + ac_cv_prog_objc_g=yes
1.4693 +else
1.4694 + echo "$as_me: failed program was:" >&5
1.4695 +sed 's/^/| /' conftest.$ac_ext >&5
1.4696 +
1.4697 + OBJCFLAGS=""
1.4698 + cat >conftest.$ac_ext <<_ACEOF
1.4699 +/* confdefs.h. */
1.4700 +_ACEOF
1.4701 +cat confdefs.h >>conftest.$ac_ext
1.4702 +cat >>conftest.$ac_ext <<_ACEOF
1.4703 +/* end confdefs.h. */
1.4704 +
1.4705 +int
1.4706 +main ()
1.4707 +{
1.4708 +
1.4709 + ;
1.4710 + return 0;
1.4711 +}
1.4712 +_ACEOF
1.4713 +rm -f conftest.$ac_objext
1.4714 +if { (ac_try="$ac_compile"
1.4715 +case "(($ac_try" in
1.4716 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4717 + *) ac_try_echo=$ac_try;;
1.4718 +esac
1.4719 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4720 + (eval "$ac_compile") 2>conftest.er1
1.4721 + ac_status=$?
1.4722 + grep -v '^ *+' conftest.er1 >conftest.err
1.4723 + rm -f conftest.er1
1.4724 + cat conftest.err >&5
1.4725 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4726 + (exit $ac_status); } && {
1.4727 + test -z "$ac_objc_werror_flag" ||
1.4728 + test ! -s conftest.err
1.4729 + } && test -s conftest.$ac_objext; then
1.4730 + :
1.4731 +else
1.4732 + echo "$as_me: failed program was:" >&5
1.4733 +sed 's/^/| /' conftest.$ac_ext >&5
1.4734 +
1.4735 + ac_objc_werror_flag=$ac_save_objc_werror_flag
1.4736 + OBJCFLAGS="-g"
1.4737 + cat >conftest.$ac_ext <<_ACEOF
1.4738 +/* confdefs.h. */
1.4739 +_ACEOF
1.4740 +cat confdefs.h >>conftest.$ac_ext
1.4741 +cat >>conftest.$ac_ext <<_ACEOF
1.4742 +/* end confdefs.h. */
1.4743 +
1.4744 +int
1.4745 +main ()
1.4746 +{
1.4747 +
1.4748 + ;
1.4749 + return 0;
1.4750 +}
1.4751 +_ACEOF
1.4752 +rm -f conftest.$ac_objext
1.4753 +if { (ac_try="$ac_compile"
1.4754 +case "(($ac_try" in
1.4755 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.4756 + *) ac_try_echo=$ac_try;;
1.4757 +esac
1.4758 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.4759 + (eval "$ac_compile") 2>conftest.er1
1.4760 + ac_status=$?
1.4761 + grep -v '^ *+' conftest.er1 >conftest.err
1.4762 + rm -f conftest.er1
1.4763 + cat conftest.err >&5
1.4764 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4765 + (exit $ac_status); } && {
1.4766 + test -z "$ac_objc_werror_flag" ||
1.4767 + test ! -s conftest.err
1.4768 + } && test -s conftest.$ac_objext; then
1.4769 + ac_cv_prog_objc_g=yes
1.4770 +else
1.4771 + echo "$as_me: failed program was:" >&5
1.4772 +sed 's/^/| /' conftest.$ac_ext >&5
1.4773 +
1.4774 +
1.4775 +fi
1.4776 +
1.4777 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.4778 +fi
1.4779 +
1.4780 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.4781 +fi
1.4782 +
1.4783 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.4784 + ac_objc_werror_flag=$ac_save_objc_werror_flag
1.4785 +fi
1.4786 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
1.4787 +echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
1.4788 +if test "$ac_test_OBJCFLAGS" = set; then
1.4789 + OBJCFLAGS=$ac_save_OBJCFLAGS
1.4790 +elif test $ac_cv_prog_objc_g = yes; then
1.4791 + if test "$GOBJC" = yes; then
1.4792 + OBJCFLAGS="-g -O2"
1.4793 + else
1.4794 + OBJCFLAGS="-g"
1.4795 + fi
1.4796 +else
1.4797 + if test "$GOBJC" = yes; then
1.4798 + OBJCFLAGS="-O2"
1.4799 + else
1.4800 + OBJCFLAGS=
1.4801 + fi
1.4802 +fi
1.4803 +ac_ext=c
1.4804 +ac_cpp='$CPP $CPPFLAGS'
1.4805 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.4806 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.4807 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.4808 +
1.4809 +{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
1.4810 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
1.4811 +if test "${ac_cv_path_SED+set}" = set; then
1.4812 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4813 +else
1.4814 + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
1.4815 + for ac_i in 1 2 3 4 5 6 7; do
1.4816 + ac_script="$ac_script$as_nl$ac_script"
1.4817 + done
1.4818 + echo "$ac_script" | sed 99q >conftest.sed
1.4819 + $as_unset ac_script || ac_script=
1.4820 + # Extract the first word of "sed gsed" to use in msg output
1.4821 +if test -z "$SED"; then
1.4822 +set dummy sed gsed; ac_prog_name=$2
1.4823 +if test "${ac_cv_path_SED+set}" = set; then
1.4824 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4825 +else
1.4826 + ac_path_SED_found=false
1.4827 +# Loop through the user's path and test for each of PROGNAME-LIST
1.4828 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4829 +for as_dir in $PATH
1.4830 +do
1.4831 + IFS=$as_save_IFS
1.4832 + test -z "$as_dir" && as_dir=.
1.4833 + for ac_prog in sed gsed; do
1.4834 + for ac_exec_ext in '' $ac_executable_extensions; do
1.4835 + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.4836 + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
1.4837 + # Check for GNU ac_path_SED and select it if it is found.
1.4838 + # Check for GNU $ac_path_SED
1.4839 +case `"$ac_path_SED" --version 2>&1` in
1.4840 +*GNU*)
1.4841 + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
1.4842 +*)
1.4843 + ac_count=0
1.4844 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
1.4845 + while :
1.4846 + do
1.4847 + cat "conftest.in" "conftest.in" >"conftest.tmp"
1.4848 + mv "conftest.tmp" "conftest.in"
1.4849 + cp "conftest.in" "conftest.nl"
1.4850 + echo '' >> "conftest.nl"
1.4851 + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
1.4852 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.4853 + ac_count=`expr $ac_count + 1`
1.4854 + if test $ac_count -gt ${ac_path_SED_max-0}; then
1.4855 + # Best one so far, save it but keep looking for a better one
1.4856 + ac_cv_path_SED="$ac_path_SED"
1.4857 + ac_path_SED_max=$ac_count
1.4858 + fi
1.4859 + # 10*(2^10) chars as input seems more than enough
1.4860 + test $ac_count -gt 10 && break
1.4861 + done
1.4862 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.4863 +esac
1.4864 +
1.4865 +
1.4866 + $ac_path_SED_found && break 3
1.4867 + done
1.4868 +done
1.4869 +
1.4870 +done
1.4871 +IFS=$as_save_IFS
1.4872 +
1.4873 +
1.4874 +fi
1.4875 +
1.4876 +SED="$ac_cv_path_SED"
1.4877 +if test -z "$SED"; then
1.4878 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
1.4879 +echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
1.4880 + { (exit 1); exit 1; }; }
1.4881 +fi
1.4882 +
1.4883 +else
1.4884 + ac_cv_path_SED=$SED
1.4885 +fi
1.4886 +
1.4887 +fi
1.4888 +{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
1.4889 +echo "${ECHO_T}$ac_cv_path_SED" >&6; }
1.4890 + SED="$ac_cv_path_SED"
1.4891 + rm -f conftest.sed
1.4892 +
1.4893 +# By default we simply use the C compiler to build assembly code.
1.4894 +
1.4895 +test "${CCAS+set}" = set || CCAS=$CC
1.4896 +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
1.4897 +
1.4898 +
1.4899 +
1.4900 +if test -n "$ac_tool_prefix"; then
1.4901 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1.4902 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.4903 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.4904 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4905 +if test "${ac_cv_prog_RANLIB+set}" = set; then
1.4906 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4907 +else
1.4908 + if test -n "$RANLIB"; then
1.4909 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.4910 +else
1.4911 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4912 +for as_dir in $PATH
1.4913 +do
1.4914 + IFS=$as_save_IFS
1.4915 + test -z "$as_dir" && as_dir=.
1.4916 + for ac_exec_ext in '' $ac_executable_extensions; do
1.4917 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4918 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.4919 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.4920 + break 2
1.4921 + fi
1.4922 +done
1.4923 +done
1.4924 +IFS=$as_save_IFS
1.4925 +
1.4926 +fi
1.4927 +fi
1.4928 +RANLIB=$ac_cv_prog_RANLIB
1.4929 +if test -n "$RANLIB"; then
1.4930 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
1.4931 +echo "${ECHO_T}$RANLIB" >&6; }
1.4932 +else
1.4933 + { echo "$as_me:$LINENO: result: no" >&5
1.4934 +echo "${ECHO_T}no" >&6; }
1.4935 +fi
1.4936 +
1.4937 +
1.4938 +fi
1.4939 +if test -z "$ac_cv_prog_RANLIB"; then
1.4940 + ac_ct_RANLIB=$RANLIB
1.4941 + # Extract the first word of "ranlib", so it can be a program name with args.
1.4942 +set dummy ranlib; ac_word=$2
1.4943 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.4944 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4945 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1.4946 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4947 +else
1.4948 + if test -n "$ac_ct_RANLIB"; then
1.4949 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.4950 +else
1.4951 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4952 +for as_dir in $PATH
1.4953 +do
1.4954 + IFS=$as_save_IFS
1.4955 + test -z "$as_dir" && as_dir=.
1.4956 + for ac_exec_ext in '' $ac_executable_extensions; do
1.4957 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4958 + ac_cv_prog_ac_ct_RANLIB="ranlib"
1.4959 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.4960 + break 2
1.4961 + fi
1.4962 +done
1.4963 +done
1.4964 +IFS=$as_save_IFS
1.4965 +
1.4966 +fi
1.4967 +fi
1.4968 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1.4969 +if test -n "$ac_ct_RANLIB"; then
1.4970 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1.4971 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
1.4972 +else
1.4973 + { echo "$as_me:$LINENO: result: no" >&5
1.4974 +echo "${ECHO_T}no" >&6; }
1.4975 +fi
1.4976 +
1.4977 + if test "x$ac_ct_RANLIB" = x; then
1.4978 + RANLIB=":"
1.4979 + else
1.4980 + case $cross_compiling:$ac_tool_warned in
1.4981 +yes:)
1.4982 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.4983 +whose name does not start with the host triplet. If you think this
1.4984 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.4985 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.4986 +whose name does not start with the host triplet. If you think this
1.4987 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.4988 +ac_tool_warned=yes ;;
1.4989 +esac
1.4990 + RANLIB=$ac_ct_RANLIB
1.4991 + fi
1.4992 +else
1.4993 + RANLIB="$ac_cv_prog_RANLIB"
1.4994 +fi
1.4995 +
1.4996 +
1.4997 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
1.4998 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
1.4999 +if test "${ac_cv_path_GREP+set}" = set; then
1.5000 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5001 +else
1.5002 + # Extract the first word of "grep ggrep" to use in msg output
1.5003 +if test -z "$GREP"; then
1.5004 +set dummy grep ggrep; ac_prog_name=$2
1.5005 +if test "${ac_cv_path_GREP+set}" = set; then
1.5006 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5007 +else
1.5008 + ac_path_GREP_found=false
1.5009 +# Loop through the user's path and test for each of PROGNAME-LIST
1.5010 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.5011 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1.5012 +do
1.5013 + IFS=$as_save_IFS
1.5014 + test -z "$as_dir" && as_dir=.
1.5015 + for ac_prog in grep ggrep; do
1.5016 + for ac_exec_ext in '' $ac_executable_extensions; do
1.5017 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.5018 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
1.5019 + # Check for GNU ac_path_GREP and select it if it is found.
1.5020 + # Check for GNU $ac_path_GREP
1.5021 +case `"$ac_path_GREP" --version 2>&1` in
1.5022 +*GNU*)
1.5023 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
1.5024 +*)
1.5025 + ac_count=0
1.5026 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
1.5027 + while :
1.5028 + do
1.5029 + cat "conftest.in" "conftest.in" >"conftest.tmp"
1.5030 + mv "conftest.tmp" "conftest.in"
1.5031 + cp "conftest.in" "conftest.nl"
1.5032 + echo 'GREP' >> "conftest.nl"
1.5033 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
1.5034 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.5035 + ac_count=`expr $ac_count + 1`
1.5036 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
1.5037 + # Best one so far, save it but keep looking for a better one
1.5038 + ac_cv_path_GREP="$ac_path_GREP"
1.5039 + ac_path_GREP_max=$ac_count
1.5040 + fi
1.5041 + # 10*(2^10) chars as input seems more than enough
1.5042 + test $ac_count -gt 10 && break
1.5043 + done
1.5044 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.5045 +esac
1.5046 +
1.5047 +
1.5048 + $ac_path_GREP_found && break 3
1.5049 + done
1.5050 +done
1.5051 +
1.5052 +done
1.5053 +IFS=$as_save_IFS
1.5054 +
1.5055 +
1.5056 +fi
1.5057 +
1.5058 +GREP="$ac_cv_path_GREP"
1.5059 +if test -z "$GREP"; then
1.5060 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
1.5061 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1.5062 + { (exit 1); exit 1; }; }
1.5063 +fi
1.5064 +
1.5065 +else
1.5066 + ac_cv_path_GREP=$GREP
1.5067 +fi
1.5068 +
1.5069 +
1.5070 +fi
1.5071 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
1.5072 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
1.5073 + GREP="$ac_cv_path_GREP"
1.5074 +
1.5075 +
1.5076 +{ echo "$as_me:$LINENO: checking for egrep" >&5
1.5077 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
1.5078 +if test "${ac_cv_path_EGREP+set}" = set; then
1.5079 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5080 +else
1.5081 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1.5082 + then ac_cv_path_EGREP="$GREP -E"
1.5083 + else
1.5084 + # Extract the first word of "egrep" to use in msg output
1.5085 +if test -z "$EGREP"; then
1.5086 +set dummy egrep; ac_prog_name=$2
1.5087 +if test "${ac_cv_path_EGREP+set}" = set; then
1.5088 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5089 +else
1.5090 + ac_path_EGREP_found=false
1.5091 +# Loop through the user's path and test for each of PROGNAME-LIST
1.5092 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.5093 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1.5094 +do
1.5095 + IFS=$as_save_IFS
1.5096 + test -z "$as_dir" && as_dir=.
1.5097 + for ac_prog in egrep; do
1.5098 + for ac_exec_ext in '' $ac_executable_extensions; do
1.5099 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.5100 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
1.5101 + # Check for GNU ac_path_EGREP and select it if it is found.
1.5102 + # Check for GNU $ac_path_EGREP
1.5103 +case `"$ac_path_EGREP" --version 2>&1` in
1.5104 +*GNU*)
1.5105 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
1.5106 +*)
1.5107 + ac_count=0
1.5108 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
1.5109 + while :
1.5110 + do
1.5111 + cat "conftest.in" "conftest.in" >"conftest.tmp"
1.5112 + mv "conftest.tmp" "conftest.in"
1.5113 + cp "conftest.in" "conftest.nl"
1.5114 + echo 'EGREP' >> "conftest.nl"
1.5115 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
1.5116 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.5117 + ac_count=`expr $ac_count + 1`
1.5118 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
1.5119 + # Best one so far, save it but keep looking for a better one
1.5120 + ac_cv_path_EGREP="$ac_path_EGREP"
1.5121 + ac_path_EGREP_max=$ac_count
1.5122 + fi
1.5123 + # 10*(2^10) chars as input seems more than enough
1.5124 + test $ac_count -gt 10 && break
1.5125 + done
1.5126 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1.5127 +esac
1.5128 +
1.5129 +
1.5130 + $ac_path_EGREP_found && break 3
1.5131 + done
1.5132 +done
1.5133 +
1.5134 +done
1.5135 +IFS=$as_save_IFS
1.5136 +
1.5137 +
1.5138 +fi
1.5139 +
1.5140 +EGREP="$ac_cv_path_EGREP"
1.5141 +if test -z "$EGREP"; then
1.5142 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
1.5143 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1.5144 + { (exit 1); exit 1; }; }
1.5145 +fi
1.5146 +
1.5147 +else
1.5148 + ac_cv_path_EGREP=$EGREP
1.5149 +fi
1.5150 +
1.5151 +
1.5152 + fi
1.5153 +fi
1.5154 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
1.5155 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
1.5156 + EGREP="$ac_cv_path_EGREP"
1.5157 +
1.5158 +
1.5159 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.5160 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.5161 +if test "${ac_cv_header_stdc+set}" = set; then
1.5162 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5163 +else
1.5164 + cat >conftest.$ac_ext <<_ACEOF
1.5165 +/* confdefs.h. */
1.5166 +_ACEOF
1.5167 +cat confdefs.h >>conftest.$ac_ext
1.5168 +cat >>conftest.$ac_ext <<_ACEOF
1.5169 +/* end confdefs.h. */
1.5170 +#include <stdlib.h>
1.5171 +#include <stdarg.h>
1.5172 +#include <string.h>
1.5173 +#include <float.h>
1.5174 +
1.5175 +int
1.5176 +main ()
1.5177 +{
1.5178 +
1.5179 + ;
1.5180 + return 0;
1.5181 +}
1.5182 +_ACEOF
1.5183 +rm -f conftest.$ac_objext
1.5184 +if { (ac_try="$ac_compile"
1.5185 +case "(($ac_try" in
1.5186 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5187 + *) ac_try_echo=$ac_try;;
1.5188 +esac
1.5189 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5190 + (eval "$ac_compile") 2>conftest.er1
1.5191 + ac_status=$?
1.5192 + grep -v '^ *+' conftest.er1 >conftest.err
1.5193 + rm -f conftest.er1
1.5194 + cat conftest.err >&5
1.5195 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5196 + (exit $ac_status); } && {
1.5197 + test -z "$ac_c_werror_flag" ||
1.5198 + test ! -s conftest.err
1.5199 + } && test -s conftest.$ac_objext; then
1.5200 + ac_cv_header_stdc=yes
1.5201 +else
1.5202 + echo "$as_me: failed program was:" >&5
1.5203 +sed 's/^/| /' conftest.$ac_ext >&5
1.5204 +
1.5205 + ac_cv_header_stdc=no
1.5206 +fi
1.5207 +
1.5208 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5209 +
1.5210 +if test $ac_cv_header_stdc = yes; then
1.5211 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.5212 + cat >conftest.$ac_ext <<_ACEOF
1.5213 +/* confdefs.h. */
1.5214 +_ACEOF
1.5215 +cat confdefs.h >>conftest.$ac_ext
1.5216 +cat >>conftest.$ac_ext <<_ACEOF
1.5217 +/* end confdefs.h. */
1.5218 +#include <string.h>
1.5219 +
1.5220 +_ACEOF
1.5221 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.5222 + $EGREP "memchr" >/dev/null 2>&1; then
1.5223 + :
1.5224 +else
1.5225 + ac_cv_header_stdc=no
1.5226 +fi
1.5227 +rm -f conftest*
1.5228 +
1.5229 +fi
1.5230 +
1.5231 +if test $ac_cv_header_stdc = yes; then
1.5232 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.5233 + cat >conftest.$ac_ext <<_ACEOF
1.5234 +/* confdefs.h. */
1.5235 +_ACEOF
1.5236 +cat confdefs.h >>conftest.$ac_ext
1.5237 +cat >>conftest.$ac_ext <<_ACEOF
1.5238 +/* end confdefs.h. */
1.5239 +#include <stdlib.h>
1.5240 +
1.5241 +_ACEOF
1.5242 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.5243 + $EGREP "free" >/dev/null 2>&1; then
1.5244 + :
1.5245 +else
1.5246 + ac_cv_header_stdc=no
1.5247 +fi
1.5248 +rm -f conftest*
1.5249 +
1.5250 +fi
1.5251 +
1.5252 +if test $ac_cv_header_stdc = yes; then
1.5253 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.5254 + if test "$cross_compiling" = yes; then
1.5255 + :
1.5256 +else
1.5257 + cat >conftest.$ac_ext <<_ACEOF
1.5258 +/* confdefs.h. */
1.5259 +_ACEOF
1.5260 +cat confdefs.h >>conftest.$ac_ext
1.5261 +cat >>conftest.$ac_ext <<_ACEOF
1.5262 +/* end confdefs.h. */
1.5263 +#include <ctype.h>
1.5264 +#include <stdlib.h>
1.5265 +#if ((' ' & 0x0FF) == 0x020)
1.5266 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1.5267 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1.5268 +#else
1.5269 +# define ISLOWER(c) \
1.5270 + (('a' <= (c) && (c) <= 'i') \
1.5271 + || ('j' <= (c) && (c) <= 'r') \
1.5272 + || ('s' <= (c) && (c) <= 'z'))
1.5273 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1.5274 +#endif
1.5275 +
1.5276 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.5277 +int
1.5278 +main ()
1.5279 +{
1.5280 + int i;
1.5281 + for (i = 0; i < 256; i++)
1.5282 + if (XOR (islower (i), ISLOWER (i))
1.5283 + || toupper (i) != TOUPPER (i))
1.5284 + return 2;
1.5285 + return 0;
1.5286 +}
1.5287 +_ACEOF
1.5288 +rm -f conftest$ac_exeext
1.5289 +if { (ac_try="$ac_link"
1.5290 +case "(($ac_try" in
1.5291 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5292 + *) ac_try_echo=$ac_try;;
1.5293 +esac
1.5294 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5295 + (eval "$ac_link") 2>&5
1.5296 + ac_status=$?
1.5297 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5298 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.5299 + { (case "(($ac_try" in
1.5300 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5301 + *) ac_try_echo=$ac_try;;
1.5302 +esac
1.5303 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5304 + (eval "$ac_try") 2>&5
1.5305 + ac_status=$?
1.5306 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5307 + (exit $ac_status); }; }; then
1.5308 + :
1.5309 +else
1.5310 + echo "$as_me: program exited with status $ac_status" >&5
1.5311 +echo "$as_me: failed program was:" >&5
1.5312 +sed 's/^/| /' conftest.$ac_ext >&5
1.5313 +
1.5314 +( exit $ac_status )
1.5315 +ac_cv_header_stdc=no
1.5316 +fi
1.5317 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.5318 +fi
1.5319 +
1.5320 +
1.5321 +fi
1.5322 +fi
1.5323 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1.5324 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.5325 +if test $ac_cv_header_stdc = yes; then
1.5326 +
1.5327 +cat >>confdefs.h <<\_ACEOF
1.5328 +#define STDC_HEADERS 1
1.5329 +_ACEOF
1.5330 +
1.5331 +fi
1.5332 +
1.5333 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.5334 +
1.5335 +
1.5336 +
1.5337 +
1.5338 +
1.5339 +
1.5340 +
1.5341 +
1.5342 +
1.5343 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.5344 + inttypes.h stdint.h unistd.h
1.5345 +do
1.5346 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.5347 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
1.5348 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
1.5349 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.5350 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5351 +else
1.5352 + cat >conftest.$ac_ext <<_ACEOF
1.5353 +/* confdefs.h. */
1.5354 +_ACEOF
1.5355 +cat confdefs.h >>conftest.$ac_ext
1.5356 +cat >>conftest.$ac_ext <<_ACEOF
1.5357 +/* end confdefs.h. */
1.5358 +$ac_includes_default
1.5359 +
1.5360 +#include <$ac_header>
1.5361 +_ACEOF
1.5362 +rm -f conftest.$ac_objext
1.5363 +if { (ac_try="$ac_compile"
1.5364 +case "(($ac_try" in
1.5365 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5366 + *) ac_try_echo=$ac_try;;
1.5367 +esac
1.5368 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5369 + (eval "$ac_compile") 2>conftest.er1
1.5370 + ac_status=$?
1.5371 + grep -v '^ *+' conftest.er1 >conftest.err
1.5372 + rm -f conftest.er1
1.5373 + cat conftest.err >&5
1.5374 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5375 + (exit $ac_status); } && {
1.5376 + test -z "$ac_c_werror_flag" ||
1.5377 + test ! -s conftest.err
1.5378 + } && test -s conftest.$ac_objext; then
1.5379 + eval "$as_ac_Header=yes"
1.5380 +else
1.5381 + echo "$as_me: failed program was:" >&5
1.5382 +sed 's/^/| /' conftest.$ac_ext >&5
1.5383 +
1.5384 + eval "$as_ac_Header=no"
1.5385 +fi
1.5386 +
1.5387 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5388 +fi
1.5389 +ac_res=`eval echo '${'$as_ac_Header'}'`
1.5390 + { echo "$as_me:$LINENO: result: $ac_res" >&5
1.5391 +echo "${ECHO_T}$ac_res" >&6; }
1.5392 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.5393 + cat >>confdefs.h <<_ACEOF
1.5394 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.5395 +_ACEOF
1.5396 +
1.5397 +fi
1.5398 +
1.5399 +done
1.5400 +
1.5401 +
1.5402 +{ echo "$as_me:$LINENO: checking for void *" >&5
1.5403 +echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
1.5404 +if test "${ac_cv_type_void_p+set}" = set; then
1.5405 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5406 +else
1.5407 + cat >conftest.$ac_ext <<_ACEOF
1.5408 +/* confdefs.h. */
1.5409 +_ACEOF
1.5410 +cat confdefs.h >>conftest.$ac_ext
1.5411 +cat >>conftest.$ac_ext <<_ACEOF
1.5412 +/* end confdefs.h. */
1.5413 +$ac_includes_default
1.5414 +typedef void * ac__type_new_;
1.5415 +int
1.5416 +main ()
1.5417 +{
1.5418 +if ((ac__type_new_ *) 0)
1.5419 + return 0;
1.5420 +if (sizeof (ac__type_new_))
1.5421 + return 0;
1.5422 + ;
1.5423 + return 0;
1.5424 +}
1.5425 +_ACEOF
1.5426 +rm -f conftest.$ac_objext
1.5427 +if { (ac_try="$ac_compile"
1.5428 +case "(($ac_try" in
1.5429 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5430 + *) ac_try_echo=$ac_try;;
1.5431 +esac
1.5432 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5433 + (eval "$ac_compile") 2>conftest.er1
1.5434 + ac_status=$?
1.5435 + grep -v '^ *+' conftest.er1 >conftest.err
1.5436 + rm -f conftest.er1
1.5437 + cat conftest.err >&5
1.5438 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5439 + (exit $ac_status); } && {
1.5440 + test -z "$ac_c_werror_flag" ||
1.5441 + test ! -s conftest.err
1.5442 + } && test -s conftest.$ac_objext; then
1.5443 + ac_cv_type_void_p=yes
1.5444 +else
1.5445 + echo "$as_me: failed program was:" >&5
1.5446 +sed 's/^/| /' conftest.$ac_ext >&5
1.5447 +
1.5448 + ac_cv_type_void_p=no
1.5449 +fi
1.5450 +
1.5451 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5452 +fi
1.5453 +{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
1.5454 +echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
1.5455 +
1.5456 +# The cast to long int works around a bug in the HP C Compiler
1.5457 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
1.5458 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
1.5459 +# This bug is HP SR number 8606223364.
1.5460 +{ echo "$as_me:$LINENO: checking size of void *" >&5
1.5461 +echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
1.5462 +if test "${ac_cv_sizeof_void_p+set}" = set; then
1.5463 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5464 +else
1.5465 + if test "$cross_compiling" = yes; then
1.5466 + # Depending upon the size, compute the lo and hi bounds.
1.5467 +cat >conftest.$ac_ext <<_ACEOF
1.5468 +/* confdefs.h. */
1.5469 +_ACEOF
1.5470 +cat confdefs.h >>conftest.$ac_ext
1.5471 +cat >>conftest.$ac_ext <<_ACEOF
1.5472 +/* end confdefs.h. */
1.5473 +$ac_includes_default
1.5474 + typedef void * ac__type_sizeof_;
1.5475 +int
1.5476 +main ()
1.5477 +{
1.5478 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.5479 +test_array [0] = 0
1.5480 +
1.5481 + ;
1.5482 + return 0;
1.5483 +}
1.5484 +_ACEOF
1.5485 +rm -f conftest.$ac_objext
1.5486 +if { (ac_try="$ac_compile"
1.5487 +case "(($ac_try" in
1.5488 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5489 + *) ac_try_echo=$ac_try;;
1.5490 +esac
1.5491 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5492 + (eval "$ac_compile") 2>conftest.er1
1.5493 + ac_status=$?
1.5494 + grep -v '^ *+' conftest.er1 >conftest.err
1.5495 + rm -f conftest.er1
1.5496 + cat conftest.err >&5
1.5497 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5498 + (exit $ac_status); } && {
1.5499 + test -z "$ac_c_werror_flag" ||
1.5500 + test ! -s conftest.err
1.5501 + } && test -s conftest.$ac_objext; then
1.5502 + ac_lo=0 ac_mid=0
1.5503 + while :; do
1.5504 + cat >conftest.$ac_ext <<_ACEOF
1.5505 +/* confdefs.h. */
1.5506 +_ACEOF
1.5507 +cat confdefs.h >>conftest.$ac_ext
1.5508 +cat >>conftest.$ac_ext <<_ACEOF
1.5509 +/* end confdefs.h. */
1.5510 +$ac_includes_default
1.5511 + typedef void * ac__type_sizeof_;
1.5512 +int
1.5513 +main ()
1.5514 +{
1.5515 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.5516 +test_array [0] = 0
1.5517 +
1.5518 + ;
1.5519 + return 0;
1.5520 +}
1.5521 +_ACEOF
1.5522 +rm -f conftest.$ac_objext
1.5523 +if { (ac_try="$ac_compile"
1.5524 +case "(($ac_try" in
1.5525 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5526 + *) ac_try_echo=$ac_try;;
1.5527 +esac
1.5528 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5529 + (eval "$ac_compile") 2>conftest.er1
1.5530 + ac_status=$?
1.5531 + grep -v '^ *+' conftest.er1 >conftest.err
1.5532 + rm -f conftest.er1
1.5533 + cat conftest.err >&5
1.5534 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5535 + (exit $ac_status); } && {
1.5536 + test -z "$ac_c_werror_flag" ||
1.5537 + test ! -s conftest.err
1.5538 + } && test -s conftest.$ac_objext; then
1.5539 + ac_hi=$ac_mid; break
1.5540 +else
1.5541 + echo "$as_me: failed program was:" >&5
1.5542 +sed 's/^/| /' conftest.$ac_ext >&5
1.5543 +
1.5544 + ac_lo=`expr $ac_mid + 1`
1.5545 + if test $ac_lo -le $ac_mid; then
1.5546 + ac_lo= ac_hi=
1.5547 + break
1.5548 + fi
1.5549 + ac_mid=`expr 2 '*' $ac_mid + 1`
1.5550 +fi
1.5551 +
1.5552 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5553 + done
1.5554 +else
1.5555 + echo "$as_me: failed program was:" >&5
1.5556 +sed 's/^/| /' conftest.$ac_ext >&5
1.5557 +
1.5558 + cat >conftest.$ac_ext <<_ACEOF
1.5559 +/* confdefs.h. */
1.5560 +_ACEOF
1.5561 +cat confdefs.h >>conftest.$ac_ext
1.5562 +cat >>conftest.$ac_ext <<_ACEOF
1.5563 +/* end confdefs.h. */
1.5564 +$ac_includes_default
1.5565 + typedef void * ac__type_sizeof_;
1.5566 +int
1.5567 +main ()
1.5568 +{
1.5569 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.5570 +test_array [0] = 0
1.5571 +
1.5572 + ;
1.5573 + return 0;
1.5574 +}
1.5575 +_ACEOF
1.5576 +rm -f conftest.$ac_objext
1.5577 +if { (ac_try="$ac_compile"
1.5578 +case "(($ac_try" in
1.5579 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5580 + *) ac_try_echo=$ac_try;;
1.5581 +esac
1.5582 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5583 + (eval "$ac_compile") 2>conftest.er1
1.5584 + ac_status=$?
1.5585 + grep -v '^ *+' conftest.er1 >conftest.err
1.5586 + rm -f conftest.er1
1.5587 + cat conftest.err >&5
1.5588 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5589 + (exit $ac_status); } && {
1.5590 + test -z "$ac_c_werror_flag" ||
1.5591 + test ! -s conftest.err
1.5592 + } && test -s conftest.$ac_objext; then
1.5593 + ac_hi=-1 ac_mid=-1
1.5594 + while :; do
1.5595 + cat >conftest.$ac_ext <<_ACEOF
1.5596 +/* confdefs.h. */
1.5597 +_ACEOF
1.5598 +cat confdefs.h >>conftest.$ac_ext
1.5599 +cat >>conftest.$ac_ext <<_ACEOF
1.5600 +/* end confdefs.h. */
1.5601 +$ac_includes_default
1.5602 + typedef void * ac__type_sizeof_;
1.5603 +int
1.5604 +main ()
1.5605 +{
1.5606 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
1.5607 +test_array [0] = 0
1.5608 +
1.5609 + ;
1.5610 + return 0;
1.5611 +}
1.5612 +_ACEOF
1.5613 +rm -f conftest.$ac_objext
1.5614 +if { (ac_try="$ac_compile"
1.5615 +case "(($ac_try" in
1.5616 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5617 + *) ac_try_echo=$ac_try;;
1.5618 +esac
1.5619 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5620 + (eval "$ac_compile") 2>conftest.er1
1.5621 + ac_status=$?
1.5622 + grep -v '^ *+' conftest.er1 >conftest.err
1.5623 + rm -f conftest.er1
1.5624 + cat conftest.err >&5
1.5625 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5626 + (exit $ac_status); } && {
1.5627 + test -z "$ac_c_werror_flag" ||
1.5628 + test ! -s conftest.err
1.5629 + } && test -s conftest.$ac_objext; then
1.5630 + ac_lo=$ac_mid; break
1.5631 +else
1.5632 + echo "$as_me: failed program was:" >&5
1.5633 +sed 's/^/| /' conftest.$ac_ext >&5
1.5634 +
1.5635 + ac_hi=`expr '(' $ac_mid ')' - 1`
1.5636 + if test $ac_mid -le $ac_hi; then
1.5637 + ac_lo= ac_hi=
1.5638 + break
1.5639 + fi
1.5640 + ac_mid=`expr 2 '*' $ac_mid`
1.5641 +fi
1.5642 +
1.5643 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5644 + done
1.5645 +else
1.5646 + echo "$as_me: failed program was:" >&5
1.5647 +sed 's/^/| /' conftest.$ac_ext >&5
1.5648 +
1.5649 + ac_lo= ac_hi=
1.5650 +fi
1.5651 +
1.5652 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5653 +fi
1.5654 +
1.5655 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5656 +# Binary search between lo and hi bounds.
1.5657 +while test "x$ac_lo" != "x$ac_hi"; do
1.5658 + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
1.5659 + cat >conftest.$ac_ext <<_ACEOF
1.5660 +/* confdefs.h. */
1.5661 +_ACEOF
1.5662 +cat confdefs.h >>conftest.$ac_ext
1.5663 +cat >>conftest.$ac_ext <<_ACEOF
1.5664 +/* end confdefs.h. */
1.5665 +$ac_includes_default
1.5666 + typedef void * ac__type_sizeof_;
1.5667 +int
1.5668 +main ()
1.5669 +{
1.5670 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
1.5671 +test_array [0] = 0
1.5672 +
1.5673 + ;
1.5674 + return 0;
1.5675 +}
1.5676 +_ACEOF
1.5677 +rm -f conftest.$ac_objext
1.5678 +if { (ac_try="$ac_compile"
1.5679 +case "(($ac_try" in
1.5680 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5681 + *) ac_try_echo=$ac_try;;
1.5682 +esac
1.5683 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5684 + (eval "$ac_compile") 2>conftest.er1
1.5685 + ac_status=$?
1.5686 + grep -v '^ *+' conftest.er1 >conftest.err
1.5687 + rm -f conftest.er1
1.5688 + cat conftest.err >&5
1.5689 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5690 + (exit $ac_status); } && {
1.5691 + test -z "$ac_c_werror_flag" ||
1.5692 + test ! -s conftest.err
1.5693 + } && test -s conftest.$ac_objext; then
1.5694 + ac_hi=$ac_mid
1.5695 +else
1.5696 + echo "$as_me: failed program was:" >&5
1.5697 +sed 's/^/| /' conftest.$ac_ext >&5
1.5698 +
1.5699 + ac_lo=`expr '(' $ac_mid ')' + 1`
1.5700 +fi
1.5701 +
1.5702 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5703 +done
1.5704 +case $ac_lo in
1.5705 +?*) ac_cv_sizeof_void_p=$ac_lo;;
1.5706 +'') if test "$ac_cv_type_void_p" = yes; then
1.5707 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
1.5708 +See \`config.log' for more details." >&5
1.5709 +echo "$as_me: error: cannot compute sizeof (void *)
1.5710 +See \`config.log' for more details." >&2;}
1.5711 + { (exit 77); exit 77; }; }
1.5712 + else
1.5713 + ac_cv_sizeof_void_p=0
1.5714 + fi ;;
1.5715 +esac
1.5716 +else
1.5717 + cat >conftest.$ac_ext <<_ACEOF
1.5718 +/* confdefs.h. */
1.5719 +_ACEOF
1.5720 +cat confdefs.h >>conftest.$ac_ext
1.5721 +cat >>conftest.$ac_ext <<_ACEOF
1.5722 +/* end confdefs.h. */
1.5723 +$ac_includes_default
1.5724 + typedef void * ac__type_sizeof_;
1.5725 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.5726 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
1.5727 +#include <stdio.h>
1.5728 +#include <stdlib.h>
1.5729 +int
1.5730 +main ()
1.5731 +{
1.5732 +
1.5733 + FILE *f = fopen ("conftest.val", "w");
1.5734 + if (! f)
1.5735 + return 1;
1.5736 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
1.5737 + {
1.5738 + long int i = longval ();
1.5739 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
1.5740 + return 1;
1.5741 + fprintf (f, "%ld\n", i);
1.5742 + }
1.5743 + else
1.5744 + {
1.5745 + unsigned long int i = ulongval ();
1.5746 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
1.5747 + return 1;
1.5748 + fprintf (f, "%lu\n", i);
1.5749 + }
1.5750 + return ferror (f) || fclose (f) != 0;
1.5751 +
1.5752 + ;
1.5753 + return 0;
1.5754 +}
1.5755 +_ACEOF
1.5756 +rm -f conftest$ac_exeext
1.5757 +if { (ac_try="$ac_link"
1.5758 +case "(($ac_try" in
1.5759 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5760 + *) ac_try_echo=$ac_try;;
1.5761 +esac
1.5762 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5763 + (eval "$ac_link") 2>&5
1.5764 + ac_status=$?
1.5765 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5766 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.5767 + { (case "(($ac_try" in
1.5768 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5769 + *) ac_try_echo=$ac_try;;
1.5770 +esac
1.5771 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5772 + (eval "$ac_try") 2>&5
1.5773 + ac_status=$?
1.5774 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5775 + (exit $ac_status); }; }; then
1.5776 + ac_cv_sizeof_void_p=`cat conftest.val`
1.5777 +else
1.5778 + echo "$as_me: program exited with status $ac_status" >&5
1.5779 +echo "$as_me: failed program was:" >&5
1.5780 +sed 's/^/| /' conftest.$ac_ext >&5
1.5781 +
1.5782 +( exit $ac_status )
1.5783 +if test "$ac_cv_type_void_p" = yes; then
1.5784 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
1.5785 +See \`config.log' for more details." >&5
1.5786 +echo "$as_me: error: cannot compute sizeof (void *)
1.5787 +See \`config.log' for more details." >&2;}
1.5788 + { (exit 77); exit 77; }; }
1.5789 + else
1.5790 + ac_cv_sizeof_void_p=0
1.5791 + fi
1.5792 +fi
1.5793 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.5794 +fi
1.5795 +rm -f conftest.val
1.5796 +fi
1.5797 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
1.5798 +echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
1.5799 +
1.5800 +
1.5801 +
1.5802 +cat >>confdefs.h <<_ACEOF
1.5803 +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.5804 +_ACEOF
1.5805 +
1.5806 +
1.5807 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.5808 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.5809 +if test "${ac_cv_header_stdc+set}" = set; then
1.5810 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5811 +else
1.5812 + cat >conftest.$ac_ext <<_ACEOF
1.5813 +/* confdefs.h. */
1.5814 +_ACEOF
1.5815 +cat confdefs.h >>conftest.$ac_ext
1.5816 +cat >>conftest.$ac_ext <<_ACEOF
1.5817 +/* end confdefs.h. */
1.5818 +#include <stdlib.h>
1.5819 +#include <stdarg.h>
1.5820 +#include <string.h>
1.5821 +#include <float.h>
1.5822 +
1.5823 +int
1.5824 +main ()
1.5825 +{
1.5826 +
1.5827 + ;
1.5828 + return 0;
1.5829 +}
1.5830 +_ACEOF
1.5831 +rm -f conftest.$ac_objext
1.5832 +if { (ac_try="$ac_compile"
1.5833 +case "(($ac_try" in
1.5834 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5835 + *) ac_try_echo=$ac_try;;
1.5836 +esac
1.5837 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5838 + (eval "$ac_compile") 2>conftest.er1
1.5839 + ac_status=$?
1.5840 + grep -v '^ *+' conftest.er1 >conftest.err
1.5841 + rm -f conftest.er1
1.5842 + cat conftest.err >&5
1.5843 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5844 + (exit $ac_status); } && {
1.5845 + test -z "$ac_c_werror_flag" ||
1.5846 + test ! -s conftest.err
1.5847 + } && test -s conftest.$ac_objext; then
1.5848 + ac_cv_header_stdc=yes
1.5849 +else
1.5850 + echo "$as_me: failed program was:" >&5
1.5851 +sed 's/^/| /' conftest.$ac_ext >&5
1.5852 +
1.5853 + ac_cv_header_stdc=no
1.5854 +fi
1.5855 +
1.5856 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.5857 +
1.5858 +if test $ac_cv_header_stdc = yes; then
1.5859 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.5860 + cat >conftest.$ac_ext <<_ACEOF
1.5861 +/* confdefs.h. */
1.5862 +_ACEOF
1.5863 +cat confdefs.h >>conftest.$ac_ext
1.5864 +cat >>conftest.$ac_ext <<_ACEOF
1.5865 +/* end confdefs.h. */
1.5866 +#include <string.h>
1.5867 +
1.5868 +_ACEOF
1.5869 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.5870 + $EGREP "memchr" >/dev/null 2>&1; then
1.5871 + :
1.5872 +else
1.5873 + ac_cv_header_stdc=no
1.5874 +fi
1.5875 +rm -f conftest*
1.5876 +
1.5877 +fi
1.5878 +
1.5879 +if test $ac_cv_header_stdc = yes; then
1.5880 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.5881 + cat >conftest.$ac_ext <<_ACEOF
1.5882 +/* confdefs.h. */
1.5883 +_ACEOF
1.5884 +cat confdefs.h >>conftest.$ac_ext
1.5885 +cat >>conftest.$ac_ext <<_ACEOF
1.5886 +/* end confdefs.h. */
1.5887 +#include <stdlib.h>
1.5888 +
1.5889 +_ACEOF
1.5890 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.5891 + $EGREP "free" >/dev/null 2>&1; then
1.5892 + :
1.5893 +else
1.5894 + ac_cv_header_stdc=no
1.5895 +fi
1.5896 +rm -f conftest*
1.5897 +
1.5898 +fi
1.5899 +
1.5900 +if test $ac_cv_header_stdc = yes; then
1.5901 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.5902 + if test "$cross_compiling" = yes; then
1.5903 + :
1.5904 +else
1.5905 + cat >conftest.$ac_ext <<_ACEOF
1.5906 +/* confdefs.h. */
1.5907 +_ACEOF
1.5908 +cat confdefs.h >>conftest.$ac_ext
1.5909 +cat >>conftest.$ac_ext <<_ACEOF
1.5910 +/* end confdefs.h. */
1.5911 +#include <ctype.h>
1.5912 +#include <stdlib.h>
1.5913 +#if ((' ' & 0x0FF) == 0x020)
1.5914 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1.5915 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1.5916 +#else
1.5917 +# define ISLOWER(c) \
1.5918 + (('a' <= (c) && (c) <= 'i') \
1.5919 + || ('j' <= (c) && (c) <= 'r') \
1.5920 + || ('s' <= (c) && (c) <= 'z'))
1.5921 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1.5922 +#endif
1.5923 +
1.5924 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.5925 +int
1.5926 +main ()
1.5927 +{
1.5928 + int i;
1.5929 + for (i = 0; i < 256; i++)
1.5930 + if (XOR (islower (i), ISLOWER (i))
1.5931 + || toupper (i) != TOUPPER (i))
1.5932 + return 2;
1.5933 + return 0;
1.5934 +}
1.5935 +_ACEOF
1.5936 +rm -f conftest$ac_exeext
1.5937 +if { (ac_try="$ac_link"
1.5938 +case "(($ac_try" in
1.5939 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5940 + *) ac_try_echo=$ac_try;;
1.5941 +esac
1.5942 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5943 + (eval "$ac_link") 2>&5
1.5944 + ac_status=$?
1.5945 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5946 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.5947 + { (case "(($ac_try" in
1.5948 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.5949 + *) ac_try_echo=$ac_try;;
1.5950 +esac
1.5951 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.5952 + (eval "$ac_try") 2>&5
1.5953 + ac_status=$?
1.5954 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5955 + (exit $ac_status); }; }; then
1.5956 + :
1.5957 +else
1.5958 + echo "$as_me: program exited with status $ac_status" >&5
1.5959 +echo "$as_me: failed program was:" >&5
1.5960 +sed 's/^/| /' conftest.$ac_ext >&5
1.5961 +
1.5962 +( exit $ac_status )
1.5963 +ac_cv_header_stdc=no
1.5964 +fi
1.5965 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.5966 +fi
1.5967 +
1.5968 +
1.5969 +fi
1.5970 +fi
1.5971 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1.5972 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.5973 +if test $ac_cv_header_stdc = yes; then
1.5974 +
1.5975 +cat >>confdefs.h <<\_ACEOF
1.5976 +#define STDC_HEADERS 1
1.5977 +_ACEOF
1.5978 +
1.5979 +fi
1.5980 +
1.5981 +
1.5982 +
1.5983 +depcc="$OBJC" am_compiler_list='gcc3 gcc'
1.5984 +
1.5985 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.5986 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.5987 +if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
1.5988 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5989 +else
1.5990 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.5991 + # We make a subdir and do the tests there. Otherwise we can end up
1.5992 + # making bogus files that we don't know about and never remove. For
1.5993 + # instance it was reported that on HP-UX the gcc test will end up
1.5994 + # making a dummy file named `D' -- because `-MD' means `put the output
1.5995 + # in D'.
1.5996 + mkdir conftest.dir
1.5997 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.5998 + # using a relative directory.
1.5999 + cp "$am_depcomp" conftest.dir
1.6000 + cd conftest.dir
1.6001 + # We will build objects and dependencies in a subdirectory because
1.6002 + # it helps to detect inapplicable dependency modes. For instance
1.6003 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.6004 + # side effect of compilation, but ICC will put the dependencies in
1.6005 + # the current directory while Tru64 will put them in the object
1.6006 + # directory.
1.6007 + mkdir sub
1.6008 +
1.6009 + am_cv_OBJC_dependencies_compiler_type=none
1.6010 + if test "$am_compiler_list" = ""; then
1.6011 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.6012 + fi
1.6013 + for depmode in $am_compiler_list; do
1.6014 + # Setup a source with many dependencies, because some compilers
1.6015 + # like to wrap large dependency lists on column 80 (with \), and
1.6016 + # we should not choose a depcomp mode which is confused by this.
1.6017 + #
1.6018 + # We need to recreate these files for each test, as the compiler may
1.6019 + # overwrite some of them when testing with obscure command lines.
1.6020 + # This happens at least with the AIX C compiler.
1.6021 + : > sub/conftest.c
1.6022 + for i in 1 2 3 4 5 6; do
1.6023 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.6024 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.6025 + # Solaris 8's {/usr,}/bin/sh.
1.6026 + touch sub/conftst$i.h
1.6027 + done
1.6028 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.6029 +
1.6030 + case $depmode in
1.6031 + nosideeffect)
1.6032 + # after this tag, mechanisms are not by side-effect, so they'll
1.6033 + # only be used when explicitly requested
1.6034 + if test "x$enable_dependency_tracking" = xyes; then
1.6035 + continue
1.6036 + else
1.6037 + break
1.6038 + fi
1.6039 + ;;
1.6040 + none) break ;;
1.6041 + esac
1.6042 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.6043 + # mode. It turns out that the SunPro C++ compiler does not properly
1.6044 + # handle `-M -o', and we need to detect this.
1.6045 + if depmode=$depmode \
1.6046 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.6047 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.6048 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.6049 + >/dev/null 2>conftest.err &&
1.6050 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.6051 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.6052 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.6053 + # icc doesn't choke on unknown options, it will just issue warnings
1.6054 + # or remarks (even with -Werror). So we grep stderr for any message
1.6055 + # that says an option was ignored or not supported.
1.6056 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.6057 + # icc: Command line warning: ignoring option '-M'; no argument required
1.6058 + # The diagnosis changed in icc 8.0:
1.6059 + # icc: Command line remark: option '-MP' not supported
1.6060 + if (grep 'ignoring option' conftest.err ||
1.6061 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.6062 + am_cv_OBJC_dependencies_compiler_type=$depmode
1.6063 + break
1.6064 + fi
1.6065 + fi
1.6066 + done
1.6067 +
1.6068 + cd ..
1.6069 + rm -rf conftest.dir
1.6070 +else
1.6071 + am_cv_OBJC_dependencies_compiler_type=none
1.6072 +fi
1.6073 +
1.6074 +fi
1.6075 +{ echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
1.6076 +echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
1.6077 +OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
1.6078 +
1.6079 +
1.6080 +
1.6081 +if
1.6082 + test "x$enable_dependency_tracking" != xno \
1.6083 + && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
1.6084 + am__fastdepOBJC_TRUE=
1.6085 + am__fastdepOBJC_FALSE='#'
1.6086 +else
1.6087 + am__fastdepOBJC_TRUE='#'
1.6088 + am__fastdepOBJC_FALSE=
1.6089 +fi
1.6090 +
1.6091 +
1.6092 +
1.6093 +# Extract the first word of "pod2man", so it can be a program name with args.
1.6094 +set dummy pod2man; ac_word=$2
1.6095 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6096 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6097 +if test "${ac_cv_path_POD2MAN+set}" = set; then
1.6098 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.6099 +else
1.6100 + case $POD2MAN in
1.6101 + [\\/]* | ?:[\\/]*)
1.6102 + ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
1.6103 + ;;
1.6104 + *)
1.6105 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6106 +for as_dir in $PATH
1.6107 +do
1.6108 + IFS=$as_save_IFS
1.6109 + test -z "$as_dir" && as_dir=.
1.6110 + for ac_exec_ext in '' $ac_executable_extensions; do
1.6111 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6112 + ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
1.6113 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6114 + break 2
1.6115 + fi
1.6116 +done
1.6117 +done
1.6118 +IFS=$as_save_IFS
1.6119 +
1.6120 + ;;
1.6121 +esac
1.6122 +fi
1.6123 +POD2MAN=$ac_cv_path_POD2MAN
1.6124 +if test -n "$POD2MAN"; then
1.6125 + { echo "$as_me:$LINENO: result: $POD2MAN" >&5
1.6126 +echo "${ECHO_T}$POD2MAN" >&6; }
1.6127 +else
1.6128 + { echo "$as_me:$LINENO: result: no" >&5
1.6129 +echo "${ECHO_T}no" >&6; }
1.6130 +fi
1.6131 +
1.6132 +
1.6133 +# Extract the first word of "pod2html", so it can be a program name with args.
1.6134 +set dummy pod2html; ac_word=$2
1.6135 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6136 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6137 +if test "${ac_cv_path_POD2HTML+set}" = set; then
1.6138 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.6139 +else
1.6140 + case $POD2HTML in
1.6141 + [\\/]* | ?:[\\/]*)
1.6142 + ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
1.6143 + ;;
1.6144 + *)
1.6145 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6146 +for as_dir in $PATH
1.6147 +do
1.6148 + IFS=$as_save_IFS
1.6149 + test -z "$as_dir" && as_dir=.
1.6150 + for ac_exec_ext in '' $ac_executable_extensions; do
1.6151 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6152 + ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
1.6153 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6154 + break 2
1.6155 + fi
1.6156 +done
1.6157 +done
1.6158 +IFS=$as_save_IFS
1.6159 +
1.6160 + ;;
1.6161 +esac
1.6162 +fi
1.6163 +POD2HTML=$ac_cv_path_POD2HTML
1.6164 +if test -n "$POD2HTML"; then
1.6165 + { echo "$as_me:$LINENO: result: $POD2HTML" >&5
1.6166 +echo "${ECHO_T}$POD2HTML" >&6; }
1.6167 +else
1.6168 + { echo "$as_me:$LINENO: result: no" >&5
1.6169 +echo "${ECHO_T}no" >&6; }
1.6170 +fi
1.6171 +
1.6172 +
1.6173 +
1.6174 +
1.6175 +cat >>confdefs.h <<_ACEOF
1.6176 +#define BUILD_SED_PROG "${SED}"
1.6177 +_ACEOF
1.6178 +
1.6179 +
1.6180 +cat >>confdefs.h <<_ACEOF
1.6181 +#define BUILD_CPP_PROG "${CPP}"
1.6182 +_ACEOF
1.6183 +
1.6184 +
1.6185 +
1.6186 +# Check whether --enable-strict-warn was given.
1.6187 +if test "${enable_strict_warn+set}" = set; then
1.6188 + enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
1.6189 + enable_strictwarn=yes
1.6190 + fi
1.6191 +fi
1.6192 +
1.6193 +# Check whether --enable-translator was given.
1.6194 +if test "${enable_translator+set}" = set; then
1.6195 + enableval=$enable_translator; true
1.6196 +else
1.6197 + enable_translator=yes
1.6198 +fi
1.6199 +
1.6200 +# Check whether --enable-optimized was given.
1.6201 +if test "${enable_optimized+set}" = set; then
1.6202 + enableval=$enable_optimized; true
1.6203 +else
1.6204 + enable_optimized=yes
1.6205 +fi
1.6206 +
1.6207 +# Check whether --enable-shared was given.
1.6208 +if test "${enable_shared+set}" = set; then
1.6209 + enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
1.6210 +else
1.6211 + enable_shared=cond
1.6212 +fi
1.6213 +
1.6214 +# Check whether --enable-profiled was given.
1.6215 +if test "${enable_profiled+set}" = set; then
1.6216 + enableval=$enable_profiled; if test "$enableval" == "yes"; then
1.6217 + enable_profiled=yes;
1.6218 + fi
1.6219 +fi
1.6220 +
1.6221 +# Check whether --enable-trace was given.
1.6222 +if test "${enable_trace+set}" = set; then
1.6223 + enableval=$enable_trace; if test "$enableval" == "yes"; then
1.6224 +
1.6225 +cat >>confdefs.h <<\_ACEOF
1.6226 +#define ENABLE_TRACE_IO 1
1.6227 +_ACEOF
1.6228 +
1.6229 + fi
1.6230 +fi
1.6231 +
1.6232 +# Check whether --enable-watch was given.
1.6233 +if test "${enable_watch+set}" = set; then
1.6234 + enableval=$enable_watch; if test "$enableval" == "yes"; then
1.6235 +
1.6236 +cat >>confdefs.h <<\_ACEOF
1.6237 +#define ENABLE_WATCH 1
1.6238 +_ACEOF
1.6239 +
1.6240 + fi
1.6241 +fi
1.6242 +
1.6243 +# Check whether --enable-sh4stats was given.
1.6244 +if test "${enable_sh4stats+set}" = set; then
1.6245 + enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
1.6246 +
1.6247 +cat >>confdefs.h <<\_ACEOF
1.6248 +#define ENABLE_SH4STATS 1
1.6249 +_ACEOF
1.6250 +
1.6251 + fi
1.6252 +fi
1.6253 +
1.6254 +
1.6255 +# Check whether --with-osmesa was given.
1.6256 +if test "${with_osmesa+set}" = set; then
1.6257 + withval=$with_osmesa;
1.6258 +else
1.6259 + with_osmesa=no
1.6260 +fi
1.6261 +
1.6262 +
1.6263 +# Check whether --with-gtk was given.
1.6264 +if test "${with_gtk+set}" = set; then
1.6265 + withval=$with_gtk; with_gtk=yes
1.6266 +else
1.6267 + with_gtk=x11
1.6268 +fi
1.6269 +
1.6270 +
1.6271 +# Check whether --with-esd was given.
1.6272 +if test "${with_esd+set}" = set; then
1.6273 + withval=$with_esd;
1.6274 +fi
1.6275 +
1.6276 +
1.6277 +# Check whether --with-pulse was given.
1.6278 +if test "${with_pulse+set}" = set; then
1.6279 + withval=$with_pulse;
1.6280 +fi
1.6281 +
1.6282 +
1.6283 +# Check whether --with-sdl was given.
1.6284 +if test "${with_sdl+set}" = set; then
1.6285 + withval=$with_sdl;
1.6286 +fi
1.6287 +
1.6288 +
1.6289 +
1.6290 +# Check whether --with-sysroot was given.
1.6291 +if test "${with_sysroot+set}" = set; then
1.6292 + withval=$with_sysroot;
1.6293 + if test -d "$with_sysroot/lib/pkgconfig"; then
1.6294 + LDFLAGS="$LDFLAGS -L$with_sysroot/lib"
1.6295 + CPPFLAGS="$CPPFLAGS -I$with_sysroot/include"
1.6296 + BUILD_PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
1.6297 + TARGET_PKG_CONFIG_LIBDIR="$with_sysroot/lib/pkgconfig"
1.6298 + PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR"
1.6299 + export PKG_CONFIG_LIBDIR;
1.6300 + else
1.6301 + { { echo "$as_me:$LINENO: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
1.6302 +See \`config.log' for more details." >&5
1.6303 +echo "$as_me: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
1.6304 +See \`config.log' for more details." >&2;}
1.6305 + { (exit 1); exit 1; }; }
1.6306 + fi
1.6307 +
1.6308 +fi
1.6309 +
1.6310 +
1.6311 +
1.6312
1.6313
1.6314 # Check whether --with-android was given.
1.6315 @@ -2748,7 +8989,6 @@
1.6316 CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
1.6317 LD="$ANDROID_NDK_BIN/${host_alias}-ld"
1.6318 AR="$ANDROID_NDK_BIN/${host_alias}-ar"
1.6319 - GDB="$ANDROID_NDK_BIN/${host_alias}-gdb"
1.6320 RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
1.6321 STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
1.6322 OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
1.6323 @@ -2763,7 +9003,6 @@
1.6324
1.6325
1.6326
1.6327 -
1.6328 ANDROID_BUILD=yes
1.6329 cross_compiling=yes
1.6330 fi
1.6331 @@ -2781,6234 +9020,11 @@
1.6332
1.6333
1.6334
1.6335 -DEPDIR="${am__leading_dot}deps"
1.6336 -
1.6337 -ac_config_commands="$ac_config_commands depfiles"
1.6338 -
1.6339 -
1.6340 -am_make=${MAKE-make}
1.6341 -cat > confinc << 'END'
1.6342 -am__doit:
1.6343 - @echo done
1.6344 -.PHONY: am__doit
1.6345 -END
1.6346 -# If we don't find an include directive, just comment out the code.
1.6347 -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1.6348 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
1.6349 -am__include="#"
1.6350 -am__quote=
1.6351 -_am_result=none
1.6352 -# First try GNU make style include.
1.6353 -echo "include confinc" > confmf
1.6354 -# We grep out `Entering directory' and `Leaving directory'
1.6355 -# messages which can occur if `w' ends up in MAKEFLAGS.
1.6356 -# In particular we don't look at `^make:' because GNU make might
1.6357 -# be invoked under some other name (usually "gmake"), in which
1.6358 -# case it prints its new name instead of `make'.
1.6359 -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1.6360 - am__include=include
1.6361 - am__quote=
1.6362 - _am_result=GNU
1.6363 -fi
1.6364 -# Now try BSD make style include.
1.6365 -if test "$am__include" = "#"; then
1.6366 - echo '.include "confinc"' > confmf
1.6367 - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1.6368 - am__include=.include
1.6369 - am__quote="\""
1.6370 - _am_result=BSD
1.6371 - fi
1.6372 -fi
1.6373 -
1.6374 -
1.6375 -{ echo "$as_me:$LINENO: result: $_am_result" >&5
1.6376 -echo "${ECHO_T}$_am_result" >&6; }
1.6377 -rm -f confinc confmf
1.6378 -
1.6379 -# Check whether --enable-dependency-tracking was given.
1.6380 -if test "${enable_dependency_tracking+set}" = set; then
1.6381 - enableval=$enable_dependency_tracking;
1.6382 -fi
1.6383 -
1.6384 -if test "x$enable_dependency_tracking" != xno; then
1.6385 - am_depcomp="$ac_aux_dir/depcomp"
1.6386 - AMDEPBACKSLASH='\'
1.6387 -fi
1.6388 -
1.6389 -
1.6390 -if test "x$enable_dependency_tracking" != xno; then
1.6391 - AMDEP_TRUE=
1.6392 - AMDEP_FALSE='#'
1.6393 -else
1.6394 - AMDEP_TRUE='#'
1.6395 - AMDEP_FALSE=
1.6396 -fi
1.6397 -
1.6398 -
1.6399 -
1.6400 -ac_ext=c
1.6401 -ac_cpp='$CPP $CPPFLAGS'
1.6402 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.6403 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.6404 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.6405 -if test -n "$ac_tool_prefix"; then
1.6406 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.6407 -set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.6408 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6409 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6410 -if test "${ac_cv_prog_CC+set}" = set; then
1.6411 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6412 -else
1.6413 - if test -n "$CC"; then
1.6414 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.6415 -else
1.6416 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6417 -for as_dir in $PATH
1.6418 -do
1.6419 - IFS=$as_save_IFS
1.6420 - test -z "$as_dir" && as_dir=.
1.6421 - for ac_exec_ext in '' $ac_executable_extensions; do
1.6422 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6423 - ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.6424 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6425 - break 2
1.6426 - fi
1.6427 -done
1.6428 -done
1.6429 -IFS=$as_save_IFS
1.6430 -
1.6431 -fi
1.6432 -fi
1.6433 -CC=$ac_cv_prog_CC
1.6434 -if test -n "$CC"; then
1.6435 - { echo "$as_me:$LINENO: result: $CC" >&5
1.6436 -echo "${ECHO_T}$CC" >&6; }
1.6437 -else
1.6438 - { echo "$as_me:$LINENO: result: no" >&5
1.6439 -echo "${ECHO_T}no" >&6; }
1.6440 -fi
1.6441 -
1.6442 -
1.6443 -fi
1.6444 -if test -z "$ac_cv_prog_CC"; then
1.6445 - ac_ct_CC=$CC
1.6446 - # Extract the first word of "gcc", so it can be a program name with args.
1.6447 -set dummy gcc; ac_word=$2
1.6448 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6449 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6450 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.6451 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6452 -else
1.6453 - if test -n "$ac_ct_CC"; then
1.6454 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.6455 -else
1.6456 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6457 -for as_dir in $PATH
1.6458 -do
1.6459 - IFS=$as_save_IFS
1.6460 - test -z "$as_dir" && as_dir=.
1.6461 - for ac_exec_ext in '' $ac_executable_extensions; do
1.6462 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6463 - ac_cv_prog_ac_ct_CC="gcc"
1.6464 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6465 - break 2
1.6466 - fi
1.6467 -done
1.6468 -done
1.6469 -IFS=$as_save_IFS
1.6470 -
1.6471 -fi
1.6472 -fi
1.6473 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.6474 -if test -n "$ac_ct_CC"; then
1.6475 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.6476 -echo "${ECHO_T}$ac_ct_CC" >&6; }
1.6477 -else
1.6478 - { echo "$as_me:$LINENO: result: no" >&5
1.6479 -echo "${ECHO_T}no" >&6; }
1.6480 -fi
1.6481 -
1.6482 - if test "x$ac_ct_CC" = x; then
1.6483 - CC=""
1.6484 - else
1.6485 - case $cross_compiling:$ac_tool_warned in
1.6486 -yes:)
1.6487 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.6488 -whose name does not start with the host triplet. If you think this
1.6489 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.6490 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.6491 -whose name does not start with the host triplet. If you think this
1.6492 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.6493 -ac_tool_warned=yes ;;
1.6494 -esac
1.6495 - CC=$ac_ct_CC
1.6496 - fi
1.6497 -else
1.6498 - CC="$ac_cv_prog_CC"
1.6499 -fi
1.6500 -
1.6501 -if test -z "$CC"; then
1.6502 - if test -n "$ac_tool_prefix"; then
1.6503 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.6504 -set dummy ${ac_tool_prefix}cc; ac_word=$2
1.6505 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6506 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6507 -if test "${ac_cv_prog_CC+set}" = set; then
1.6508 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6509 -else
1.6510 - if test -n "$CC"; then
1.6511 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.6512 -else
1.6513 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6514 -for as_dir in $PATH
1.6515 -do
1.6516 - IFS=$as_save_IFS
1.6517 - test -z "$as_dir" && as_dir=.
1.6518 - for ac_exec_ext in '' $ac_executable_extensions; do
1.6519 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6520 - ac_cv_prog_CC="${ac_tool_prefix}cc"
1.6521 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6522 - break 2
1.6523 - fi
1.6524 -done
1.6525 -done
1.6526 -IFS=$as_save_IFS
1.6527 -
1.6528 -fi
1.6529 -fi
1.6530 -CC=$ac_cv_prog_CC
1.6531 -if test -n "$CC"; then
1.6532 - { echo "$as_me:$LINENO: result: $CC" >&5
1.6533 -echo "${ECHO_T}$CC" >&6; }
1.6534 -else
1.6535 - { echo "$as_me:$LINENO: result: no" >&5
1.6536 -echo "${ECHO_T}no" >&6; }
1.6537 -fi
1.6538 -
1.6539 -
1.6540 - fi
1.6541 -fi
1.6542 -if test -z "$CC"; then
1.6543 - # Extract the first word of "cc", so it can be a program name with args.
1.6544 -set dummy cc; ac_word=$2
1.6545 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6546 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6547 -if test "${ac_cv_prog_CC+set}" = set; then
1.6548 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6549 -else
1.6550 - if test -n "$CC"; then
1.6551 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.6552 -else
1.6553 - ac_prog_rejected=no
1.6554 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6555 -for as_dir in $PATH
1.6556 -do
1.6557 - IFS=$as_save_IFS
1.6558 - test -z "$as_dir" && as_dir=.
1.6559 - for ac_exec_ext in '' $ac_executable_extensions; do
1.6560 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6561 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.6562 - ac_prog_rejected=yes
1.6563 - continue
1.6564 - fi
1.6565 - ac_cv_prog_CC="cc"
1.6566 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6567 - break 2
1.6568 - fi
1.6569 -done
1.6570 -done
1.6571 -IFS=$as_save_IFS
1.6572 -
1.6573 -if test $ac_prog_rejected = yes; then
1.6574 - # We found a bogon in the path, so make sure we never use it.
1.6575 - set dummy $ac_cv_prog_CC
1.6576 - shift
1.6577 - if test $# != 0; then
1.6578 - # We chose a different compiler from the bogus one.
1.6579 - # However, it has the same basename, so the bogon will be chosen
1.6580 - # first if we set CC to just the basename; use the full file name.
1.6581 - shift
1.6582 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.6583 - fi
1.6584 -fi
1.6585 -fi
1.6586 -fi
1.6587 -CC=$ac_cv_prog_CC
1.6588 -if test -n "$CC"; then
1.6589 - { echo "$as_me:$LINENO: result: $CC" >&5
1.6590 -echo "${ECHO_T}$CC" >&6; }
1.6591 -else
1.6592 - { echo "$as_me:$LINENO: result: no" >&5
1.6593 -echo "${ECHO_T}no" >&6; }
1.6594 -fi
1.6595 -
1.6596 -
1.6597 -fi
1.6598 -if test -z "$CC"; then
1.6599 - if test -n "$ac_tool_prefix"; then
1.6600 - for ac_prog in cl.exe
1.6601 - do
1.6602 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.6603 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.6604 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6605 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6606 -if test "${ac_cv_prog_CC+set}" = set; then
1.6607 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6608 -else
1.6609 - if test -n "$CC"; then
1.6610 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.6611 -else
1.6612 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6613 -for as_dir in $PATH
1.6614 -do
1.6615 - IFS=$as_save_IFS
1.6616 - test -z "$as_dir" && as_dir=.
1.6617 - for ac_exec_ext in '' $ac_executable_extensions; do
1.6618 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6619 - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.6620 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6621 - break 2
1.6622 - fi
1.6623 -done
1.6624 -done
1.6625 -IFS=$as_save_IFS
1.6626 -
1.6627 -fi
1.6628 -fi
1.6629 -CC=$ac_cv_prog_CC
1.6630 -if test -n "$CC"; then
1.6631 - { echo "$as_me:$LINENO: result: $CC" >&5
1.6632 -echo "${ECHO_T}$CC" >&6; }
1.6633 -else
1.6634 - { echo "$as_me:$LINENO: result: no" >&5
1.6635 -echo "${ECHO_T}no" >&6; }
1.6636 -fi
1.6637 -
1.6638 -
1.6639 - test -n "$CC" && break
1.6640 - done
1.6641 -fi
1.6642 -if test -z "$CC"; then
1.6643 - ac_ct_CC=$CC
1.6644 - for ac_prog in cl.exe
1.6645 -do
1.6646 - # Extract the first word of "$ac_prog", so it can be a program name with args.
1.6647 -set dummy $ac_prog; ac_word=$2
1.6648 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6649 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.6650 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.6651 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6652 -else
1.6653 - if test -n "$ac_ct_CC"; then
1.6654 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.6655 -else
1.6656 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6657 -for as_dir in $PATH
1.6658 -do
1.6659 - IFS=$as_save_IFS
1.6660 - test -z "$as_dir" && as_dir=.
1.6661 - for ac_exec_ext in '' $ac_executable_extensions; do
1.6662 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.6663 - ac_cv_prog_ac_ct_CC="$ac_prog"
1.6664 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6665 - break 2
1.6666 - fi
1.6667 -done
1.6668 -done
1.6669 -IFS=$as_save_IFS
1.6670 -
1.6671 -fi
1.6672 -fi
1.6673 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.6674 -if test -n "$ac_ct_CC"; then
1.6675 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.6676 -echo "${ECHO_T}$ac_ct_CC" >&6; }
1.6677 -else
1.6678 - { echo "$as_me:$LINENO: result: no" >&5
1.6679 -echo "${ECHO_T}no" >&6; }
1.6680 -fi
1.6681 -
1.6682 -
1.6683 - test -n "$ac_ct_CC" && break
1.6684 -done
1.6685 -
1.6686 - if test "x$ac_ct_CC" = x; then
1.6687 - CC=""
1.6688 - else
1.6689 - case $cross_compiling:$ac_tool_warned in
1.6690 -yes:)
1.6691 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.6692 -whose name does not start with the host triplet. If you think this
1.6693 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.6694 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.6695 -whose name does not start with the host triplet. If you think this
1.6696 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.6697 -ac_tool_warned=yes ;;
1.6698 -esac
1.6699 - CC=$ac_ct_CC
1.6700 - fi
1.6701 -fi
1.6702 -
1.6703 -fi
1.6704 -
1.6705 -
1.6706 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.6707 -See \`config.log' for more details." >&5
1.6708 -echo "$as_me: error: no acceptable C compiler found in \$PATH
1.6709 -See \`config.log' for more details." >&2;}
1.6710 - { (exit 1); exit 1; }; }
1.6711 -
1.6712 -# Provide some information about the compiler.
1.6713 -echo "$as_me:$LINENO: checking for C compiler version" >&5
1.6714 -ac_compiler=`set X $ac_compile; echo $2`
1.6715 -{ (ac_try="$ac_compiler --version >&5"
1.6716 -case "(($ac_try" in
1.6717 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6718 - *) ac_try_echo=$ac_try;;
1.6719 -esac
1.6720 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6721 - (eval "$ac_compiler --version >&5") 2>&5
1.6722 - ac_status=$?
1.6723 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6724 - (exit $ac_status); }
1.6725 -{ (ac_try="$ac_compiler -v >&5"
1.6726 -case "(($ac_try" in
1.6727 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6728 - *) ac_try_echo=$ac_try;;
1.6729 -esac
1.6730 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6731 - (eval "$ac_compiler -v >&5") 2>&5
1.6732 - ac_status=$?
1.6733 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6734 - (exit $ac_status); }
1.6735 -{ (ac_try="$ac_compiler -V >&5"
1.6736 -case "(($ac_try" in
1.6737 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6738 - *) ac_try_echo=$ac_try;;
1.6739 -esac
1.6740 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6741 - (eval "$ac_compiler -V >&5") 2>&5
1.6742 - ac_status=$?
1.6743 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6744 - (exit $ac_status); }
1.6745 -
1.6746 -cat >conftest.$ac_ext <<_ACEOF
1.6747 -/* confdefs.h. */
1.6748 -_ACEOF
1.6749 -cat confdefs.h >>conftest.$ac_ext
1.6750 -cat >>conftest.$ac_ext <<_ACEOF
1.6751 -/* end confdefs.h. */
1.6752 -
1.6753 -int
1.6754 -main ()
1.6755 -{
1.6756 -
1.6757 - ;
1.6758 - return 0;
1.6759 -}
1.6760 -_ACEOF
1.6761 -ac_clean_files_save=$ac_clean_files
1.6762 -ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.6763 -# Try to create an executable without -o first, disregard a.out.
1.6764 -# It will help us diagnose broken compilers, and finding out an intuition
1.6765 -# of exeext.
1.6766 -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1.6767 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.6768 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.6769 -#
1.6770 -# List of possible output files, starting from the most likely.
1.6771 -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1.6772 -# only as a last resort. b.out is created by i960 compilers.
1.6773 -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1.6774 -#
1.6775 -# The IRIX 6 linker writes into existing files which may not be
1.6776 -# executable, retaining their permissions. Remove them first so a
1.6777 -# subsequent execution test works.
1.6778 -ac_rmfiles=
1.6779 -for ac_file in $ac_files
1.6780 -do
1.6781 - case $ac_file in
1.6782 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.6783 - * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1.6784 - esac
1.6785 -done
1.6786 -rm -f $ac_rmfiles
1.6787 -
1.6788 -if { (ac_try="$ac_link_default"
1.6789 -case "(($ac_try" in
1.6790 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6791 - *) ac_try_echo=$ac_try;;
1.6792 -esac
1.6793 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6794 - (eval "$ac_link_default") 2>&5
1.6795 - ac_status=$?
1.6796 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6797 - (exit $ac_status); }; then
1.6798 - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
1.6799 -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
1.6800 -# in a Makefile. We should not override ac_cv_exeext if it was cached,
1.6801 -# so that the user can short-circuit this test for compilers unknown to
1.6802 -# Autoconf.
1.6803 -for ac_file in $ac_files ''
1.6804 -do
1.6805 - test -f "$ac_file" || continue
1.6806 - case $ac_file in
1.6807 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.6808 - ;;
1.6809 - [ab].out )
1.6810 - # We found the default executable, but exeext='' is most
1.6811 - # certainly right.
1.6812 - break;;
1.6813 - *.* )
1.6814 - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1.6815 - then :; else
1.6816 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.6817 - fi
1.6818 - # We set ac_cv_exeext here because the later test for it is not
1.6819 - # safe: cross compilers may not add the suffix if given an `-o'
1.6820 - # argument, so we may need to know it at that point already.
1.6821 - # Even if this section looks crufty: it has the advantage of
1.6822 - # actually working.
1.6823 - break;;
1.6824 - * )
1.6825 - break;;
1.6826 - esac
1.6827 -done
1.6828 -test "$ac_cv_exeext" = no && ac_cv_exeext=
1.6829 -
1.6830 -else
1.6831 - ac_file=''
1.6832 -fi
1.6833 -
1.6834 -{ echo "$as_me:$LINENO: result: $ac_file" >&5
1.6835 -echo "${ECHO_T}$ac_file" >&6; }
1.6836 -if test -z "$ac_file"; then
1.6837 - echo "$as_me: failed program was:" >&5
1.6838 -sed 's/^/| /' conftest.$ac_ext >&5
1.6839 -
1.6840 -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1.6841 -See \`config.log' for more details." >&5
1.6842 -echo "$as_me: error: C compiler cannot create executables
1.6843 -See \`config.log' for more details." >&2;}
1.6844 - { (exit 77); exit 77; }; }
1.6845 -fi
1.6846 -
1.6847 -ac_exeext=$ac_cv_exeext
1.6848 -
1.6849 -# Check that the compiler produces executables we can run. If not, either
1.6850 -# the compiler is broken, or we cross compile.
1.6851 -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1.6852 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.6853 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1.6854 -# If not cross compiling, check that we can run a simple program.
1.6855 -if test "$cross_compiling" != yes; then
1.6856 - if { ac_try='./$ac_file'
1.6857 - { (case "(($ac_try" in
1.6858 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6859 - *) ac_try_echo=$ac_try;;
1.6860 -esac
1.6861 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6862 - (eval "$ac_try") 2>&5
1.6863 - ac_status=$?
1.6864 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6865 - (exit $ac_status); }; }; then
1.6866 - cross_compiling=no
1.6867 - else
1.6868 - if test "$cross_compiling" = maybe; then
1.6869 - cross_compiling=yes
1.6870 - else
1.6871 - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.6872 -If you meant to cross compile, use \`--host'.
1.6873 -See \`config.log' for more details." >&5
1.6874 -echo "$as_me: error: cannot run C compiled programs.
1.6875 -If you meant to cross compile, use \`--host'.
1.6876 -See \`config.log' for more details." >&2;}
1.6877 - { (exit 1); exit 1; }; }
1.6878 - fi
1.6879 - fi
1.6880 -fi
1.6881 -{ echo "$as_me:$LINENO: result: yes" >&5
1.6882 -echo "${ECHO_T}yes" >&6; }
1.6883 -
1.6884 -rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.6885 -ac_clean_files=$ac_clean_files_save
1.6886 -# Check that the compiler produces executables we can run. If not, either
1.6887 -# the compiler is broken, or we cross compile.
1.6888 -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1.6889 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
1.6890 -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
1.6891 -echo "${ECHO_T}$cross_compiling" >&6; }
1.6892 -
1.6893 -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
1.6894 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
1.6895 -if { (ac_try="$ac_link"
1.6896 -case "(($ac_try" in
1.6897 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6898 - *) ac_try_echo=$ac_try;;
1.6899 -esac
1.6900 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6901 - (eval "$ac_link") 2>&5
1.6902 - ac_status=$?
1.6903 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6904 - (exit $ac_status); }; then
1.6905 - # If both `conftest.exe' and `conftest' are `present' (well, observable)
1.6906 -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1.6907 -# work properly (i.e., refer to `conftest.exe'), while it won't with
1.6908 -# `rm'.
1.6909 -for ac_file in conftest.exe conftest conftest.*; do
1.6910 - test -f "$ac_file" || continue
1.6911 - case $ac_file in
1.6912 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.6913 - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.6914 - break;;
1.6915 - * ) break;;
1.6916 - esac
1.6917 -done
1.6918 -else
1.6919 - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1.6920 -See \`config.log' for more details." >&5
1.6921 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1.6922 -See \`config.log' for more details." >&2;}
1.6923 - { (exit 1); exit 1; }; }
1.6924 -fi
1.6925 -
1.6926 -rm -f conftest$ac_cv_exeext
1.6927 -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1.6928 -echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.6929 -
1.6930 -rm -f conftest.$ac_ext
1.6931 -EXEEXT=$ac_cv_exeext
1.6932 -ac_exeext=$EXEEXT
1.6933 -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
1.6934 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.6935 -if test "${ac_cv_objext+set}" = set; then
1.6936 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6937 -else
1.6938 - cat >conftest.$ac_ext <<_ACEOF
1.6939 -/* confdefs.h. */
1.6940 -_ACEOF
1.6941 -cat confdefs.h >>conftest.$ac_ext
1.6942 -cat >>conftest.$ac_ext <<_ACEOF
1.6943 -/* end confdefs.h. */
1.6944 -
1.6945 -int
1.6946 -main ()
1.6947 -{
1.6948 -
1.6949 - ;
1.6950 - return 0;
1.6951 -}
1.6952 -_ACEOF
1.6953 -rm -f conftest.o conftest.obj
1.6954 -if { (ac_try="$ac_compile"
1.6955 -case "(($ac_try" in
1.6956 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.6957 - *) ac_try_echo=$ac_try;;
1.6958 -esac
1.6959 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.6960 - (eval "$ac_compile") 2>&5
1.6961 - ac_status=$?
1.6962 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.6963 - (exit $ac_status); }; then
1.6964 - for ac_file in conftest.o conftest.obj conftest.*; do
1.6965 - test -f "$ac_file" || continue;
1.6966 - case $ac_file in
1.6967 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.6968 - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1.6969 - break;;
1.6970 - esac
1.6971 -done
1.6972 -else
1.6973 - echo "$as_me: failed program was:" >&5
1.6974 -sed 's/^/| /' conftest.$ac_ext >&5
1.6975 -
1.6976 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1.6977 -See \`config.log' for more details." >&5
1.6978 -echo "$as_me: error: cannot compute suffix of object files: cannot compile
1.6979 -See \`config.log' for more details." >&2;}
1.6980 - { (exit 1); exit 1; }; }
1.6981 -fi
1.6982 -
1.6983 -rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.6984 -fi
1.6985 -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1.6986 -echo "${ECHO_T}$ac_cv_objext" >&6; }
1.6987 -OBJEXT=$ac_cv_objext
1.6988 -ac_objext=$OBJEXT
1.6989 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.6990 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.6991 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.6992 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.6993 -else
1.6994 - cat >conftest.$ac_ext <<_ACEOF
1.6995 -/* confdefs.h. */
1.6996 -_ACEOF
1.6997 -cat confdefs.h >>conftest.$ac_ext
1.6998 -cat >>conftest.$ac_ext <<_ACEOF
1.6999 -/* end confdefs.h. */
1.7000 -
1.7001 -int
1.7002 -main ()
1.7003 -{
1.7004 -#ifndef __GNUC__
1.7005 - choke me
1.7006 -#endif
1.7007 -
1.7008 - ;
1.7009 - return 0;
1.7010 -}
1.7011 -_ACEOF
1.7012 -rm -f conftest.$ac_objext
1.7013 -if { (ac_try="$ac_compile"
1.7014 -case "(($ac_try" in
1.7015 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7016 - *) ac_try_echo=$ac_try;;
1.7017 -esac
1.7018 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7019 - (eval "$ac_compile") 2>conftest.er1
1.7020 - ac_status=$?
1.7021 - grep -v '^ *+' conftest.er1 >conftest.err
1.7022 - rm -f conftest.er1
1.7023 - cat conftest.err >&5
1.7024 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7025 - (exit $ac_status); } && {
1.7026 - test -z "$ac_c_werror_flag" ||
1.7027 - test ! -s conftest.err
1.7028 - } && test -s conftest.$ac_objext; then
1.7029 - ac_compiler_gnu=yes
1.7030 -else
1.7031 - echo "$as_me: failed program was:" >&5
1.7032 -sed 's/^/| /' conftest.$ac_ext >&5
1.7033 -
1.7034 - ac_compiler_gnu=no
1.7035 -fi
1.7036 -
1.7037 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.7038 -ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.7039 -
1.7040 -fi
1.7041 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.7042 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.7043 -GCC=`test $ac_compiler_gnu = yes && echo yes`
1.7044 -ac_test_CFLAGS=${CFLAGS+set}
1.7045 -ac_save_CFLAGS=$CFLAGS
1.7046 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.7047 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.7048 -if test "${ac_cv_prog_cc_g+set}" = set; then
1.7049 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7050 -else
1.7051 - ac_save_c_werror_flag=$ac_c_werror_flag
1.7052 - ac_c_werror_flag=yes
1.7053 - ac_cv_prog_cc_g=no
1.7054 - CFLAGS="-g"
1.7055 - cat >conftest.$ac_ext <<_ACEOF
1.7056 -/* confdefs.h. */
1.7057 -_ACEOF
1.7058 -cat confdefs.h >>conftest.$ac_ext
1.7059 -cat >>conftest.$ac_ext <<_ACEOF
1.7060 -/* end confdefs.h. */
1.7061 -
1.7062 -int
1.7063 -main ()
1.7064 -{
1.7065 -
1.7066 - ;
1.7067 - return 0;
1.7068 -}
1.7069 -_ACEOF
1.7070 -rm -f conftest.$ac_objext
1.7071 -if { (ac_try="$ac_compile"
1.7072 -case "(($ac_try" in
1.7073 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7074 - *) ac_try_echo=$ac_try;;
1.7075 -esac
1.7076 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7077 - (eval "$ac_compile") 2>conftest.er1
1.7078 - ac_status=$?
1.7079 - grep -v '^ *+' conftest.er1 >conftest.err
1.7080 - rm -f conftest.er1
1.7081 - cat conftest.err >&5
1.7082 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7083 - (exit $ac_status); } && {
1.7084 - test -z "$ac_c_werror_flag" ||
1.7085 - test ! -s conftest.err
1.7086 - } && test -s conftest.$ac_objext; then
1.7087 - ac_cv_prog_cc_g=yes
1.7088 -else
1.7089 - echo "$as_me: failed program was:" >&5
1.7090 -sed 's/^/| /' conftest.$ac_ext >&5
1.7091 -
1.7092 - CFLAGS=""
1.7093 - cat >conftest.$ac_ext <<_ACEOF
1.7094 -/* confdefs.h. */
1.7095 -_ACEOF
1.7096 -cat confdefs.h >>conftest.$ac_ext
1.7097 -cat >>conftest.$ac_ext <<_ACEOF
1.7098 -/* end confdefs.h. */
1.7099 -
1.7100 -int
1.7101 -main ()
1.7102 -{
1.7103 -
1.7104 - ;
1.7105 - return 0;
1.7106 -}
1.7107 -_ACEOF
1.7108 -rm -f conftest.$ac_objext
1.7109 -if { (ac_try="$ac_compile"
1.7110 -case "(($ac_try" in
1.7111 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7112 - *) ac_try_echo=$ac_try;;
1.7113 -esac
1.7114 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7115 - (eval "$ac_compile") 2>conftest.er1
1.7116 - ac_status=$?
1.7117 - grep -v '^ *+' conftest.er1 >conftest.err
1.7118 - rm -f conftest.er1
1.7119 - cat conftest.err >&5
1.7120 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7121 - (exit $ac_status); } && {
1.7122 - test -z "$ac_c_werror_flag" ||
1.7123 - test ! -s conftest.err
1.7124 - } && test -s conftest.$ac_objext; then
1.7125 - :
1.7126 -else
1.7127 - echo "$as_me: failed program was:" >&5
1.7128 -sed 's/^/| /' conftest.$ac_ext >&5
1.7129 -
1.7130 - ac_c_werror_flag=$ac_save_c_werror_flag
1.7131 - CFLAGS="-g"
1.7132 - cat >conftest.$ac_ext <<_ACEOF
1.7133 -/* confdefs.h. */
1.7134 -_ACEOF
1.7135 -cat confdefs.h >>conftest.$ac_ext
1.7136 -cat >>conftest.$ac_ext <<_ACEOF
1.7137 -/* end confdefs.h. */
1.7138 -
1.7139 -int
1.7140 -main ()
1.7141 -{
1.7142 -
1.7143 - ;
1.7144 - return 0;
1.7145 -}
1.7146 -_ACEOF
1.7147 -rm -f conftest.$ac_objext
1.7148 -if { (ac_try="$ac_compile"
1.7149 -case "(($ac_try" in
1.7150 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7151 - *) ac_try_echo=$ac_try;;
1.7152 -esac
1.7153 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7154 - (eval "$ac_compile") 2>conftest.er1
1.7155 - ac_status=$?
1.7156 - grep -v '^ *+' conftest.er1 >conftest.err
1.7157 - rm -f conftest.er1
1.7158 - cat conftest.err >&5
1.7159 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7160 - (exit $ac_status); } && {
1.7161 - test -z "$ac_c_werror_flag" ||
1.7162 - test ! -s conftest.err
1.7163 - } && test -s conftest.$ac_objext; then
1.7164 - ac_cv_prog_cc_g=yes
1.7165 -else
1.7166 - echo "$as_me: failed program was:" >&5
1.7167 -sed 's/^/| /' conftest.$ac_ext >&5
1.7168 -
1.7169 -
1.7170 -fi
1.7171 -
1.7172 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.7173 -fi
1.7174 -
1.7175 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.7176 -fi
1.7177 -
1.7178 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.7179 - ac_c_werror_flag=$ac_save_c_werror_flag
1.7180 -fi
1.7181 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.7182 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.7183 -if test "$ac_test_CFLAGS" = set; then
1.7184 - CFLAGS=$ac_save_CFLAGS
1.7185 -elif test $ac_cv_prog_cc_g = yes; then
1.7186 - if test "$GCC" = yes; then
1.7187 - CFLAGS="-g -O2"
1.7188 - else
1.7189 - CFLAGS="-g"
1.7190 - fi
1.7191 -else
1.7192 - if test "$GCC" = yes; then
1.7193 - CFLAGS="-O2"
1.7194 - else
1.7195 - CFLAGS=
1.7196 - fi
1.7197 -fi
1.7198 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1.7199 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1.7200 -if test "${ac_cv_prog_cc_c89+set}" = set; then
1.7201 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7202 -else
1.7203 - ac_cv_prog_cc_c89=no
1.7204 -ac_save_CC=$CC
1.7205 -cat >conftest.$ac_ext <<_ACEOF
1.7206 -/* confdefs.h. */
1.7207 -_ACEOF
1.7208 -cat confdefs.h >>conftest.$ac_ext
1.7209 -cat >>conftest.$ac_ext <<_ACEOF
1.7210 -/* end confdefs.h. */
1.7211 -#include <stdarg.h>
1.7212 -#include <stdio.h>
1.7213 -#include <sys/types.h>
1.7214 -#include <sys/stat.h>
1.7215 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.7216 -struct buf { int x; };
1.7217 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.7218 -static char *e (p, i)
1.7219 - char **p;
1.7220 - int i;
1.7221 -{
1.7222 - return p[i];
1.7223 -}
1.7224 -static char *f (char * (*g) (char **, int), char **p, ...)
1.7225 -{
1.7226 - char *s;
1.7227 - va_list v;
1.7228 - va_start (v,p);
1.7229 - s = g (p, va_arg (v,int));
1.7230 - va_end (v);
1.7231 - return s;
1.7232 -}
1.7233 -
1.7234 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.7235 - function prototypes and stuff, but not '\xHH' hex character constants.
1.7236 - These don't provoke an error unfortunately, instead are silently treated
1.7237 - as 'x'. The following induces an error, until -std is added to get
1.7238 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.7239 - array size at least. It's necessary to write '\x00'==0 to get something
1.7240 - that's true only with -std. */
1.7241 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.7242 -
1.7243 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.7244 - inside strings and character constants. */
1.7245 -#define FOO(x) 'x'
1.7246 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.7247 -
1.7248 -int test (int i, double x);
1.7249 -struct s1 {int (*f) (int a);};
1.7250 -struct s2 {int (*f) (double a);};
1.7251 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.7252 -int argc;
1.7253 -char **argv;
1.7254 -int
1.7255 -main ()
1.7256 -{
1.7257 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.7258 - ;
1.7259 - return 0;
1.7260 -}
1.7261 -_ACEOF
1.7262 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.7263 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.7264 -do
1.7265 - CC="$ac_save_CC $ac_arg"
1.7266 - rm -f conftest.$ac_objext
1.7267 -if { (ac_try="$ac_compile"
1.7268 -case "(($ac_try" in
1.7269 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7270 - *) ac_try_echo=$ac_try;;
1.7271 -esac
1.7272 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7273 - (eval "$ac_compile") 2>conftest.er1
1.7274 - ac_status=$?
1.7275 - grep -v '^ *+' conftest.er1 >conftest.err
1.7276 - rm -f conftest.er1
1.7277 - cat conftest.err >&5
1.7278 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7279 - (exit $ac_status); } && {
1.7280 - test -z "$ac_c_werror_flag" ||
1.7281 - test ! -s conftest.err
1.7282 - } && test -s conftest.$ac_objext; then
1.7283 - ac_cv_prog_cc_c89=$ac_arg
1.7284 -else
1.7285 - echo "$as_me: failed program was:" >&5
1.7286 -sed 's/^/| /' conftest.$ac_ext >&5
1.7287 -
1.7288 -
1.7289 -fi
1.7290 -
1.7291 -rm -f core conftest.err conftest.$ac_objext
1.7292 - test "x$ac_cv_prog_cc_c89" != "xno" && break
1.7293 -done
1.7294 -rm -f conftest.$ac_ext
1.7295 -CC=$ac_save_CC
1.7296 -
1.7297 -fi
1.7298 -# AC_CACHE_VAL
1.7299 -case "x$ac_cv_prog_cc_c89" in
1.7300 - x)
1.7301 - { echo "$as_me:$LINENO: result: none needed" >&5
1.7302 -echo "${ECHO_T}none needed" >&6; } ;;
1.7303 - xno)
1.7304 - { echo "$as_me:$LINENO: result: unsupported" >&5
1.7305 -echo "${ECHO_T}unsupported" >&6; } ;;
1.7306 - *)
1.7307 - CC="$CC $ac_cv_prog_cc_c89"
1.7308 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.7309 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.7310 -esac
1.7311 -
1.7312 -
1.7313 -ac_ext=c
1.7314 -ac_cpp='$CPP $CPPFLAGS'
1.7315 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.7316 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.7317 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.7318 -
1.7319 -depcc="$CC" am_compiler_list=
1.7320 -
1.7321 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.7322 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.7323 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.7324 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7325 -else
1.7326 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.7327 - # We make a subdir and do the tests there. Otherwise we can end up
1.7328 - # making bogus files that we don't know about and never remove. For
1.7329 - # instance it was reported that on HP-UX the gcc test will end up
1.7330 - # making a dummy file named `D' -- because `-MD' means `put the output
1.7331 - # in D'.
1.7332 - mkdir conftest.dir
1.7333 - # Copy depcomp to subdir because otherwise we won't find it if we're
1.7334 - # using a relative directory.
1.7335 - cp "$am_depcomp" conftest.dir
1.7336 - cd conftest.dir
1.7337 - # We will build objects and dependencies in a subdirectory because
1.7338 - # it helps to detect inapplicable dependency modes. For instance
1.7339 - # both Tru64's cc and ICC support -MD to output dependencies as a
1.7340 - # side effect of compilation, but ICC will put the dependencies in
1.7341 - # the current directory while Tru64 will put them in the object
1.7342 - # directory.
1.7343 - mkdir sub
1.7344 -
1.7345 - am_cv_CC_dependencies_compiler_type=none
1.7346 - if test "$am_compiler_list" = ""; then
1.7347 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.7348 - fi
1.7349 - for depmode in $am_compiler_list; do
1.7350 - # Setup a source with many dependencies, because some compilers
1.7351 - # like to wrap large dependency lists on column 80 (with \), and
1.7352 - # we should not choose a depcomp mode which is confused by this.
1.7353 - #
1.7354 - # We need to recreate these files for each test, as the compiler may
1.7355 - # overwrite some of them when testing with obscure command lines.
1.7356 - # This happens at least with the AIX C compiler.
1.7357 - : > sub/conftest.c
1.7358 - for i in 1 2 3 4 5 6; do
1.7359 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.7360 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.7361 - # Solaris 8's {/usr,}/bin/sh.
1.7362 - touch sub/conftst$i.h
1.7363 - done
1.7364 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.7365 -
1.7366 - case $depmode in
1.7367 - nosideeffect)
1.7368 - # after this tag, mechanisms are not by side-effect, so they'll
1.7369 - # only be used when explicitly requested
1.7370 - if test "x$enable_dependency_tracking" = xyes; then
1.7371 - continue
1.7372 - else
1.7373 - break
1.7374 - fi
1.7375 - ;;
1.7376 - none) break ;;
1.7377 - esac
1.7378 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.7379 - # mode. It turns out that the SunPro C++ compiler does not properly
1.7380 - # handle `-M -o', and we need to detect this.
1.7381 - if depmode=$depmode \
1.7382 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.7383 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.7384 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.7385 - >/dev/null 2>conftest.err &&
1.7386 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.7387 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.7388 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.7389 - # icc doesn't choke on unknown options, it will just issue warnings
1.7390 - # or remarks (even with -Werror). So we grep stderr for any message
1.7391 - # that says an option was ignored or not supported.
1.7392 - # When given -MP, icc 7.0 and 7.1 complain thusly:
1.7393 - # icc: Command line warning: ignoring option '-M'; no argument required
1.7394 - # The diagnosis changed in icc 8.0:
1.7395 - # icc: Command line remark: option '-MP' not supported
1.7396 - if (grep 'ignoring option' conftest.err ||
1.7397 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.7398 - am_cv_CC_dependencies_compiler_type=$depmode
1.7399 - break
1.7400 - fi
1.7401 - fi
1.7402 - done
1.7403 -
1.7404 - cd ..
1.7405 - rm -rf conftest.dir
1.7406 -else
1.7407 - am_cv_CC_dependencies_compiler_type=none
1.7408 -fi
1.7409 -
1.7410 -fi
1.7411 -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.7412 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.7413 -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.7414 -
1.7415 -
1.7416 -
1.7417 -if
1.7418 - test "x$enable_dependency_tracking" != xno \
1.7419 - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.7420 - am__fastdepCC_TRUE=
1.7421 - am__fastdepCC_FALSE='#'
1.7422 -else
1.7423 - am__fastdepCC_TRUE='#'
1.7424 - am__fastdepCC_FALSE=
1.7425 -fi
1.7426 -
1.7427 -
1.7428 -
1.7429 -
1.7430 - { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
1.7431 -echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
1.7432 -if test "${ac_cv_lib_cposix_strerror+set}" = set; then
1.7433 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7434 -else
1.7435 - ac_check_lib_save_LIBS=$LIBS
1.7436 -LIBS="-lcposix $LIBS"
1.7437 -cat >conftest.$ac_ext <<_ACEOF
1.7438 -/* confdefs.h. */
1.7439 -_ACEOF
1.7440 -cat confdefs.h >>conftest.$ac_ext
1.7441 -cat >>conftest.$ac_ext <<_ACEOF
1.7442 -/* end confdefs.h. */
1.7443 -
1.7444 -/* Override any GCC internal prototype to avoid an error.
1.7445 - Use char because int might match the return type of a GCC
1.7446 - builtin and then its argument prototype would still apply. */
1.7447 -#ifdef __cplusplus
1.7448 -extern "C"
1.7449 -#endif
1.7450 -char strerror ();
1.7451 -int
1.7452 -main ()
1.7453 -{
1.7454 -return strerror ();
1.7455 - ;
1.7456 - return 0;
1.7457 -}
1.7458 -_ACEOF
1.7459 -rm -f conftest.$ac_objext conftest$ac_exeext
1.7460 -if { (ac_try="$ac_link"
1.7461 -case "(($ac_try" in
1.7462 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7463 - *) ac_try_echo=$ac_try;;
1.7464 -esac
1.7465 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7466 - (eval "$ac_link") 2>conftest.er1
1.7467 - ac_status=$?
1.7468 - grep -v '^ *+' conftest.er1 >conftest.err
1.7469 - rm -f conftest.er1
1.7470 - cat conftest.err >&5
1.7471 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7472 - (exit $ac_status); } && {
1.7473 - test -z "$ac_c_werror_flag" ||
1.7474 - test ! -s conftest.err
1.7475 - } && test -s conftest$ac_exeext &&
1.7476 - $as_test_x conftest$ac_exeext; then
1.7477 - ac_cv_lib_cposix_strerror=yes
1.7478 -else
1.7479 - echo "$as_me: failed program was:" >&5
1.7480 -sed 's/^/| /' conftest.$ac_ext >&5
1.7481 -
1.7482 - ac_cv_lib_cposix_strerror=no
1.7483 -fi
1.7484 -
1.7485 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.7486 - conftest$ac_exeext conftest.$ac_ext
1.7487 -LIBS=$ac_check_lib_save_LIBS
1.7488 -fi
1.7489 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
1.7490 -echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
1.7491 -if test $ac_cv_lib_cposix_strerror = yes; then
1.7492 - LIBS="$LIBS -lcposix"
1.7493 -fi
1.7494 -
1.7495 -
1.7496 -
1.7497 -ac_ext=c
1.7498 -ac_cpp='$CPP $CPPFLAGS'
1.7499 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.7500 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.7501 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.7502 -if test -n "$ac_tool_prefix"; then
1.7503 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.7504 -set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.7505 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.7506 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.7507 -if test "${ac_cv_prog_CC+set}" = set; then
1.7508 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7509 -else
1.7510 - if test -n "$CC"; then
1.7511 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.7512 -else
1.7513 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.7514 -for as_dir in $PATH
1.7515 -do
1.7516 - IFS=$as_save_IFS
1.7517 - test -z "$as_dir" && as_dir=.
1.7518 - for ac_exec_ext in '' $ac_executable_extensions; do
1.7519 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.7520 - ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.7521 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.7522 - break 2
1.7523 - fi
1.7524 -done
1.7525 -done
1.7526 -IFS=$as_save_IFS
1.7527 -
1.7528 -fi
1.7529 -fi
1.7530 -CC=$ac_cv_prog_CC
1.7531 -if test -n "$CC"; then
1.7532 - { echo "$as_me:$LINENO: result: $CC" >&5
1.7533 -echo "${ECHO_T}$CC" >&6; }
1.7534 -else
1.7535 - { echo "$as_me:$LINENO: result: no" >&5
1.7536 -echo "${ECHO_T}no" >&6; }
1.7537 -fi
1.7538 -
1.7539 -
1.7540 -fi
1.7541 -if test -z "$ac_cv_prog_CC"; then
1.7542 - ac_ct_CC=$CC
1.7543 - # Extract the first word of "gcc", so it can be a program name with args.
1.7544 -set dummy gcc; ac_word=$2
1.7545 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.7546 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.7547 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.7548 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7549 -else
1.7550 - if test -n "$ac_ct_CC"; then
1.7551 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.7552 -else
1.7553 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.7554 -for as_dir in $PATH
1.7555 -do
1.7556 - IFS=$as_save_IFS
1.7557 - test -z "$as_dir" && as_dir=.
1.7558 - for ac_exec_ext in '' $ac_executable_extensions; do
1.7559 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.7560 - ac_cv_prog_ac_ct_CC="gcc"
1.7561 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.7562 - break 2
1.7563 - fi
1.7564 -done
1.7565 -done
1.7566 -IFS=$as_save_IFS
1.7567 -
1.7568 -fi
1.7569 -fi
1.7570 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.7571 -if test -n "$ac_ct_CC"; then
1.7572 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.7573 -echo "${ECHO_T}$ac_ct_CC" >&6; }
1.7574 -else
1.7575 - { echo "$as_me:$LINENO: result: no" >&5
1.7576 -echo "${ECHO_T}no" >&6; }
1.7577 -fi
1.7578 -
1.7579 - if test "x$ac_ct_CC" = x; then
1.7580 - CC=""
1.7581 - else
1.7582 - case $cross_compiling:$ac_tool_warned in
1.7583 -yes:)
1.7584 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.7585 -whose name does not start with the host triplet. If you think this
1.7586 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.7587 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.7588 -whose name does not start with the host triplet. If you think this
1.7589 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.7590 -ac_tool_warned=yes ;;
1.7591 -esac
1.7592 - CC=$ac_ct_CC
1.7593 - fi
1.7594 -else
1.7595 - CC="$ac_cv_prog_CC"
1.7596 -fi
1.7597 -
1.7598 -if test -z "$CC"; then
1.7599 - if test -n "$ac_tool_prefix"; then
1.7600 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.7601 -set dummy ${ac_tool_prefix}cc; ac_word=$2
1.7602 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.7603 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.7604 -if test "${ac_cv_prog_CC+set}" = set; then
1.7605 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7606 -else
1.7607 - if test -n "$CC"; then
1.7608 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.7609 -else
1.7610 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.7611 -for as_dir in $PATH
1.7612 -do
1.7613 - IFS=$as_save_IFS
1.7614 - test -z "$as_dir" && as_dir=.
1.7615 - for ac_exec_ext in '' $ac_executable_extensions; do
1.7616 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.7617 - ac_cv_prog_CC="${ac_tool_prefix}cc"
1.7618 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.7619 - break 2
1.7620 - fi
1.7621 -done
1.7622 -done
1.7623 -IFS=$as_save_IFS
1.7624 -
1.7625 -fi
1.7626 -fi
1.7627 -CC=$ac_cv_prog_CC
1.7628 -if test -n "$CC"; then
1.7629 - { echo "$as_me:$LINENO: result: $CC" >&5
1.7630 -echo "${ECHO_T}$CC" >&6; }
1.7631 -else
1.7632 - { echo "$as_me:$LINENO: result: no" >&5
1.7633 -echo "${ECHO_T}no" >&6; }
1.7634 -fi
1.7635 -
1.7636 -
1.7637 - fi
1.7638 -fi
1.7639 -if test -z "$CC"; then
1.7640 - # Extract the first word of "cc", so it can be a program name with args.
1.7641 -set dummy cc; ac_word=$2
1.7642 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.7643 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.7644 -if test "${ac_cv_prog_CC+set}" = set; then
1.7645 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7646 -else
1.7647 - if test -n "$CC"; then
1.7648 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.7649 -else
1.7650 - ac_prog_rejected=no
1.7651 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.7652 -for as_dir in $PATH
1.7653 -do
1.7654 - IFS=$as_save_IFS
1.7655 - test -z "$as_dir" && as_dir=.
1.7656 - for ac_exec_ext in '' $ac_executable_extensions; do
1.7657 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.7658 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.7659 - ac_prog_rejected=yes
1.7660 - continue
1.7661 - fi
1.7662 - ac_cv_prog_CC="cc"
1.7663 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.7664 - break 2
1.7665 - fi
1.7666 -done
1.7667 -done
1.7668 -IFS=$as_save_IFS
1.7669 -
1.7670 -if test $ac_prog_rejected = yes; then
1.7671 - # We found a bogon in the path, so make sure we never use it.
1.7672 - set dummy $ac_cv_prog_CC
1.7673 - shift
1.7674 - if test $# != 0; then
1.7675 - # We chose a different compiler from the bogus one.
1.7676 - # However, it has the same basename, so the bogon will be chosen
1.7677 - # first if we set CC to just the basename; use the full file name.
1.7678 - shift
1.7679 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.7680 - fi
1.7681 -fi
1.7682 -fi
1.7683 -fi
1.7684 -CC=$ac_cv_prog_CC
1.7685 -if test -n "$CC"; then
1.7686 - { echo "$as_me:$LINENO: result: $CC" >&5
1.7687 -echo "${ECHO_T}$CC" >&6; }
1.7688 -else
1.7689 - { echo "$as_me:$LINENO: result: no" >&5
1.7690 -echo "${ECHO_T}no" >&6; }
1.7691 -fi
1.7692 -
1.7693 -
1.7694 -fi
1.7695 -if test -z "$CC"; then
1.7696 - if test -n "$ac_tool_prefix"; then
1.7697 - for ac_prog in cl.exe
1.7698 - do
1.7699 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.7700 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.7701 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.7702 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.7703 -if test "${ac_cv_prog_CC+set}" = set; then
1.7704 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7705 -else
1.7706 - if test -n "$CC"; then
1.7707 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.7708 -else
1.7709 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.7710 -for as_dir in $PATH
1.7711 -do
1.7712 - IFS=$as_save_IFS
1.7713 - test -z "$as_dir" && as_dir=.
1.7714 - for ac_exec_ext in '' $ac_executable_extensions; do
1.7715 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.7716 - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.7717 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.7718 - break 2
1.7719 - fi
1.7720 -done
1.7721 -done
1.7722 -IFS=$as_save_IFS
1.7723 -
1.7724 -fi
1.7725 -fi
1.7726 -CC=$ac_cv_prog_CC
1.7727 -if test -n "$CC"; then
1.7728 - { echo "$as_me:$LINENO: result: $CC" >&5
1.7729 -echo "${ECHO_T}$CC" >&6; }
1.7730 -else
1.7731 - { echo "$as_me:$LINENO: result: no" >&5
1.7732 -echo "${ECHO_T}no" >&6; }
1.7733 -fi
1.7734 -
1.7735 -
1.7736 - test -n "$CC" && break
1.7737 - done
1.7738 -fi
1.7739 -if test -z "$CC"; then
1.7740 - ac_ct_CC=$CC
1.7741 - for ac_prog in cl.exe
1.7742 -do
1.7743 - # Extract the first word of "$ac_prog", so it can be a program name with args.
1.7744 -set dummy $ac_prog; ac_word=$2
1.7745 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.7746 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.7747 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.7748 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7749 -else
1.7750 - if test -n "$ac_ct_CC"; then
1.7751 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.7752 -else
1.7753 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.7754 -for as_dir in $PATH
1.7755 -do
1.7756 - IFS=$as_save_IFS
1.7757 - test -z "$as_dir" && as_dir=.
1.7758 - for ac_exec_ext in '' $ac_executable_extensions; do
1.7759 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.7760 - ac_cv_prog_ac_ct_CC="$ac_prog"
1.7761 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.7762 - break 2
1.7763 - fi
1.7764 -done
1.7765 -done
1.7766 -IFS=$as_save_IFS
1.7767 -
1.7768 -fi
1.7769 -fi
1.7770 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.7771 -if test -n "$ac_ct_CC"; then
1.7772 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.7773 -echo "${ECHO_T}$ac_ct_CC" >&6; }
1.7774 -else
1.7775 - { echo "$as_me:$LINENO: result: no" >&5
1.7776 -echo "${ECHO_T}no" >&6; }
1.7777 -fi
1.7778 -
1.7779 -
1.7780 - test -n "$ac_ct_CC" && break
1.7781 -done
1.7782 -
1.7783 - if test "x$ac_ct_CC" = x; then
1.7784 - CC=""
1.7785 - else
1.7786 - case $cross_compiling:$ac_tool_warned in
1.7787 -yes:)
1.7788 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.7789 -whose name does not start with the host triplet. If you think this
1.7790 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.7791 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.7792 -whose name does not start with the host triplet. If you think this
1.7793 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.7794 -ac_tool_warned=yes ;;
1.7795 -esac
1.7796 - CC=$ac_ct_CC
1.7797 - fi
1.7798 -fi
1.7799 -
1.7800 -fi
1.7801 -
1.7802 -
1.7803 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.7804 -See \`config.log' for more details." >&5
1.7805 -echo "$as_me: error: no acceptable C compiler found in \$PATH
1.7806 -See \`config.log' for more details." >&2;}
1.7807 - { (exit 1); exit 1; }; }
1.7808 -
1.7809 -# Provide some information about the compiler.
1.7810 -echo "$as_me:$LINENO: checking for C compiler version" >&5
1.7811 -ac_compiler=`set X $ac_compile; echo $2`
1.7812 -{ (ac_try="$ac_compiler --version >&5"
1.7813 -case "(($ac_try" in
1.7814 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7815 - *) ac_try_echo=$ac_try;;
1.7816 -esac
1.7817 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7818 - (eval "$ac_compiler --version >&5") 2>&5
1.7819 - ac_status=$?
1.7820 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7821 - (exit $ac_status); }
1.7822 -{ (ac_try="$ac_compiler -v >&5"
1.7823 -case "(($ac_try" in
1.7824 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7825 - *) ac_try_echo=$ac_try;;
1.7826 -esac
1.7827 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7828 - (eval "$ac_compiler -v >&5") 2>&5
1.7829 - ac_status=$?
1.7830 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7831 - (exit $ac_status); }
1.7832 -{ (ac_try="$ac_compiler -V >&5"
1.7833 -case "(($ac_try" in
1.7834 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7835 - *) ac_try_echo=$ac_try;;
1.7836 -esac
1.7837 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7838 - (eval "$ac_compiler -V >&5") 2>&5
1.7839 - ac_status=$?
1.7840 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7841 - (exit $ac_status); }
1.7842 -
1.7843 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.7844 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.7845 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.7846 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7847 -else
1.7848 - cat >conftest.$ac_ext <<_ACEOF
1.7849 -/* confdefs.h. */
1.7850 -_ACEOF
1.7851 -cat confdefs.h >>conftest.$ac_ext
1.7852 -cat >>conftest.$ac_ext <<_ACEOF
1.7853 -/* end confdefs.h. */
1.7854 -
1.7855 -int
1.7856 -main ()
1.7857 -{
1.7858 -#ifndef __GNUC__
1.7859 - choke me
1.7860 -#endif
1.7861 -
1.7862 - ;
1.7863 - return 0;
1.7864 -}
1.7865 -_ACEOF
1.7866 -rm -f conftest.$ac_objext
1.7867 -if { (ac_try="$ac_compile"
1.7868 -case "(($ac_try" in
1.7869 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7870 - *) ac_try_echo=$ac_try;;
1.7871 -esac
1.7872 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7873 - (eval "$ac_compile") 2>conftest.er1
1.7874 - ac_status=$?
1.7875 - grep -v '^ *+' conftest.er1 >conftest.err
1.7876 - rm -f conftest.er1
1.7877 - cat conftest.err >&5
1.7878 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7879 - (exit $ac_status); } && {
1.7880 - test -z "$ac_c_werror_flag" ||
1.7881 - test ! -s conftest.err
1.7882 - } && test -s conftest.$ac_objext; then
1.7883 - ac_compiler_gnu=yes
1.7884 -else
1.7885 - echo "$as_me: failed program was:" >&5
1.7886 -sed 's/^/| /' conftest.$ac_ext >&5
1.7887 -
1.7888 - ac_compiler_gnu=no
1.7889 -fi
1.7890 -
1.7891 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.7892 -ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.7893 -
1.7894 -fi
1.7895 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.7896 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.7897 -GCC=`test $ac_compiler_gnu = yes && echo yes`
1.7898 -ac_test_CFLAGS=${CFLAGS+set}
1.7899 -ac_save_CFLAGS=$CFLAGS
1.7900 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.7901 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.7902 -if test "${ac_cv_prog_cc_g+set}" = set; then
1.7903 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.7904 -else
1.7905 - ac_save_c_werror_flag=$ac_c_werror_flag
1.7906 - ac_c_werror_flag=yes
1.7907 - ac_cv_prog_cc_g=no
1.7908 - CFLAGS="-g"
1.7909 - cat >conftest.$ac_ext <<_ACEOF
1.7910 -/* confdefs.h. */
1.7911 -_ACEOF
1.7912 -cat confdefs.h >>conftest.$ac_ext
1.7913 -cat >>conftest.$ac_ext <<_ACEOF
1.7914 -/* end confdefs.h. */
1.7915 -
1.7916 -int
1.7917 -main ()
1.7918 -{
1.7919 -
1.7920 - ;
1.7921 - return 0;
1.7922 -}
1.7923 -_ACEOF
1.7924 -rm -f conftest.$ac_objext
1.7925 -if { (ac_try="$ac_compile"
1.7926 -case "(($ac_try" in
1.7927 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7928 - *) ac_try_echo=$ac_try;;
1.7929 -esac
1.7930 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7931 - (eval "$ac_compile") 2>conftest.er1
1.7932 - ac_status=$?
1.7933 - grep -v '^ *+' conftest.er1 >conftest.err
1.7934 - rm -f conftest.er1
1.7935 - cat conftest.err >&5
1.7936 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7937 - (exit $ac_status); } && {
1.7938 - test -z "$ac_c_werror_flag" ||
1.7939 - test ! -s conftest.err
1.7940 - } && test -s conftest.$ac_objext; then
1.7941 - ac_cv_prog_cc_g=yes
1.7942 -else
1.7943 - echo "$as_me: failed program was:" >&5
1.7944 -sed 's/^/| /' conftest.$ac_ext >&5
1.7945 -
1.7946 - CFLAGS=""
1.7947 - cat >conftest.$ac_ext <<_ACEOF
1.7948 -/* confdefs.h. */
1.7949 -_ACEOF
1.7950 -cat confdefs.h >>conftest.$ac_ext
1.7951 -cat >>conftest.$ac_ext <<_ACEOF
1.7952 -/* end confdefs.h. */
1.7953 -
1.7954 -int
1.7955 -main ()
1.7956 -{
1.7957 -
1.7958 - ;
1.7959 - return 0;
1.7960 -}
1.7961 -_ACEOF
1.7962 -rm -f conftest.$ac_objext
1.7963 -if { (ac_try="$ac_compile"
1.7964 -case "(($ac_try" in
1.7965 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.7966 - *) ac_try_echo=$ac_try;;
1.7967 -esac
1.7968 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.7969 - (eval "$ac_compile") 2>conftest.er1
1.7970 - ac_status=$?
1.7971 - grep -v '^ *+' conftest.er1 >conftest.err
1.7972 - rm -f conftest.er1
1.7973 - cat conftest.err >&5
1.7974 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7975 - (exit $ac_status); } && {
1.7976 - test -z "$ac_c_werror_flag" ||
1.7977 - test ! -s conftest.err
1.7978 - } && test -s conftest.$ac_objext; then
1.7979 - :
1.7980 -else
1.7981 - echo "$as_me: failed program was:" >&5
1.7982 -sed 's/^/| /' conftest.$ac_ext >&5
1.7983 -
1.7984 - ac_c_werror_flag=$ac_save_c_werror_flag
1.7985 - CFLAGS="-g"
1.7986 - cat >conftest.$ac_ext <<_ACEOF
1.7987 -/* confdefs.h. */
1.7988 -_ACEOF
1.7989 -cat confdefs.h >>conftest.$ac_ext
1.7990 -cat >>conftest.$ac_ext <<_ACEOF
1.7991 -/* end confdefs.h. */
1.7992 -
1.7993 -int
1.7994 -main ()
1.7995 -{
1.7996 -
1.7997 - ;
1.7998 - return 0;
1.7999 -}
1.8000 -_ACEOF
1.8001 -rm -f conftest.$ac_objext
1.8002 -if { (ac_try="$ac_compile"
1.8003 -case "(($ac_try" in
1.8004 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.8005 - *) ac_try_echo=$ac_try;;
1.8006 -esac
1.8007 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.8008 - (eval "$ac_compile") 2>conftest.er1
1.8009 - ac_status=$?
1.8010 - grep -v '^ *+' conftest.er1 >conftest.err
1.8011 - rm -f conftest.er1
1.8012 - cat conftest.err >&5
1.8013 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8014 - (exit $ac_status); } && {
1.8015 - test -z "$ac_c_werror_flag" ||
1.8016 - test ! -s conftest.err
1.8017 - } && test -s conftest.$ac_objext; then
1.8018 - ac_cv_prog_cc_g=yes
1.8019 -else
1.8020 - echo "$as_me: failed program was:" >&5
1.8021 -sed 's/^/| /' conftest.$ac_ext >&5
1.8022 -
1.8023 -
1.8024 -fi
1.8025 -
1.8026 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.8027 -fi
1.8028 -
1.8029 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.8030 -fi
1.8031 -
1.8032 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.8033 - ac_c_werror_flag=$ac_save_c_werror_flag
1.8034 -fi
1.8035 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.8036 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.8037 -if test "$ac_test_CFLAGS" = set; then
1.8038 - CFLAGS=$ac_save_CFLAGS
1.8039 -elif test $ac_cv_prog_cc_g = yes; then
1.8040 - if test "$GCC" = yes; then
1.8041 - CFLAGS="-g -O2"
1.8042 - else
1.8043 - CFLAGS="-g"
1.8044 - fi
1.8045 -else
1.8046 - if test "$GCC" = yes; then
1.8047 - CFLAGS="-O2"
1.8048 - else
1.8049 - CFLAGS=
1.8050 - fi
1.8051 -fi
1.8052 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1.8053 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1.8054 -if test "${ac_cv_prog_cc_c89+set}" = set; then
1.8055 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8056 -else
1.8057 - ac_cv_prog_cc_c89=no
1.8058 -ac_save_CC=$CC
1.8059 -cat >conftest.$ac_ext <<_ACEOF
1.8060 -/* confdefs.h. */
1.8061 -_ACEOF
1.8062 -cat confdefs.h >>conftest.$ac_ext
1.8063 -cat >>conftest.$ac_ext <<_ACEOF
1.8064 -/* end confdefs.h. */
1.8065 -#include <stdarg.h>
1.8066 -#include <stdio.h>
1.8067 -#include <sys/types.h>
1.8068 -#include <sys/stat.h>
1.8069 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.8070 -struct buf { int x; };
1.8071 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.8072 -static char *e (p, i)
1.8073 - char **p;
1.8074 - int i;
1.8075 -{
1.8076 - return p[i];
1.8077 -}
1.8078 -static char *f (char * (*g) (char **, int), char **p, ...)
1.8079 -{
1.8080 - char *s;
1.8081 - va_list v;
1.8082 - va_start (v,p);
1.8083 - s = g (p, va_arg (v,int));
1.8084 - va_end (v);
1.8085 - return s;
1.8086 -}
1.8087 -
1.8088 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.8089 - function prototypes and stuff, but not '\xHH' hex character constants.
1.8090 - These don't provoke an error unfortunately, instead are silently treated
1.8091 - as 'x'. The following induces an error, until -std is added to get
1.8092 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.8093 - array size at least. It's necessary to write '\x00'==0 to get something
1.8094 - that's true only with -std. */
1.8095 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.8096 -
1.8097 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.8098 - inside strings and character constants. */
1.8099 -#define FOO(x) 'x'
1.8100 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.8101 -
1.8102 -int test (int i, double x);
1.8103 -struct s1 {int (*f) (int a);};
1.8104 -struct s2 {int (*f) (double a);};
1.8105 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.8106 -int argc;
1.8107 -char **argv;
1.8108 -int
1.8109 -main ()
1.8110 -{
1.8111 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.8112 - ;
1.8113 - return 0;
1.8114 -}
1.8115 -_ACEOF
1.8116 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.8117 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.8118 -do
1.8119 - CC="$ac_save_CC $ac_arg"
1.8120 - rm -f conftest.$ac_objext
1.8121 -if { (ac_try="$ac_compile"
1.8122 -case "(($ac_try" in
1.8123 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.8124 - *) ac_try_echo=$ac_try;;
1.8125 -esac
1.8126 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.8127 - (eval "$ac_compile") 2>conftest.er1
1.8128 - ac_status=$?
1.8129 - grep -v '^ *+' conftest.er1 >conftest.err
1.8130 - rm -f conftest.er1
1.8131 - cat conftest.err >&5
1.8132 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8133 - (exit $ac_status); } && {
1.8134 - test -z "$ac_c_werror_flag" ||
1.8135 - test ! -s conftest.err
1.8136 - } && test -s conftest.$ac_objext; then
1.8137 - ac_cv_prog_cc_c89=$ac_arg
1.8138 -else
1.8139 - echo "$as_me: failed program was:" >&5
1.8140 -sed 's/^/| /' conftest.$ac_ext >&5
1.8141 -
1.8142 -
1.8143 -fi
1.8144 -
1.8145 -rm -f core conftest.err conftest.$ac_objext
1.8146 - test "x$ac_cv_prog_cc_c89" != "xno" && break
1.8147 -done
1.8148 -rm -f conftest.$ac_ext
1.8149 -CC=$ac_save_CC
1.8150 -
1.8151 -fi
1.8152 -# AC_CACHE_VAL
1.8153 -case "x$ac_cv_prog_cc_c89" in
1.8154 - x)
1.8155 - { echo "$as_me:$LINENO: result: none needed" >&5
1.8156 -echo "${ECHO_T}none needed" >&6; } ;;
1.8157 - xno)
1.8158 - { echo "$as_me:$LINENO: result: unsupported" >&5
1.8159 -echo "${ECHO_T}unsupported" >&6; } ;;
1.8160 - *)
1.8161 - CC="$CC $ac_cv_prog_cc_c89"
1.8162 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.8163 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.8164 -esac
1.8165 -
1.8166 -
1.8167 -ac_ext=c
1.8168 -ac_cpp='$CPP $CPPFLAGS'
1.8169 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.8170 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.8171 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.8172 -
1.8173 -depcc="$CC" am_compiler_list=
1.8174 -
1.8175 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.8176 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.8177 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.8178 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.8179 -else
1.8180 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.8181 - # We make a subdir and do the tests there. Otherwise we can end up
1.8182 - # making bogus files that we don't know about and never remove. For
1.8183 - # instance it was reported that on HP-UX the gcc test will end up
1.8184 - # making a dummy file named `D' -- because `-MD' means `put the output
1.8185 - # in D'.