Search
lxdream.org :: lxdream :: r1287:dac8f363f1fe
lxdream 0.9.1
released Jun 29
Download Now
changeset1287:dac8f363f1fe
parent1286:8376a612a79d
child1288:fdb8f59143c7
authornkeynes
dateSun Jul 01 13:20:34 2012 +1000 (7 years ago)
Add support for Nokia N900
- Generic support for EGL with GTK
- Workaround for nokia bug with egl config
Based on patch from guinux, thanks!
Makefile.in
configure
configure.in
src/Makefile.am
src/Makefile.in
src/drivers/gl_sl.c
src/drivers/video_egl.c
src/drivers/video_egl.h
src/drivers/video_gtk.c
src/pvr2/glutil.h
src/tools/Makefile.am
src/tools/Makefile.in
1.1 --- a/Makefile.in Sun Jul 01 13:19:27 2012 +1000
1.2 +++ b/Makefile.in Sun Jul 01 13:20:34 2012 +1000
1.3 @@ -240,6 +240,8 @@
1.4 STRIP = @STRIP@
1.5 USE_NLS = @USE_NLS@
1.6 VERSION = @VERSION@
1.7 +VIDEO_EGL_FALSE = @VIDEO_EGL_FALSE@
1.8 +VIDEO_EGL_TRUE = @VIDEO_EGL_TRUE@
1.9 VIDEO_GLX_FALSE = @VIDEO_GLX_FALSE@
1.10 VIDEO_GLX_TRUE = @VIDEO_GLX_TRUE@
1.11 VIDEO_NSGL_FALSE = @VIDEO_NSGL_FALSE@
2.1 --- a/configure Sun Jul 01 13:19:27 2012 +1000
2.2 +++ b/configure Sun Jul 01 13:20:34 2012 +1000
2.3 @@ -682,16 +682,6 @@
2.4 host_cpu
2.5 host_vendor
2.6 host_os
2.7 -ANT
2.8 -ANDROID_ABI
2.9 -ANDROID_SDK_HOME
2.10 -ANDROID_NDK_HOME
2.11 -ANDROID_SDK_VERSION
2.12 -ANDROID_NDK_VERSION
2.13 -ANDROID_GDBSERVER
2.14 -GDB
2.15 -GUI_ANDROID_TRUE
2.16 -GUI_ANDROID_FALSE
2.17 CC
2.18 CFLAGS
2.19 LDFLAGS
2.20 @@ -738,6 +728,15 @@
2.21 am__fastdepOBJC_FALSE
2.22 POD2MAN
2.23 POD2HTML
2.24 +ANT
2.25 +ANDROID_ABI
2.26 +ANDROID_SDK_HOME
2.27 +ANDROID_NDK_HOME
2.28 +ANDROID_SDK_VERSION
2.29 +ANDROID_NDK_VERSION
2.30 +ANDROID_GDBSERVER
2.31 +GUI_ANDROID_TRUE
2.32 +GUI_ANDROID_FALSE
2.33 GUI_COCOA_TRUE
2.34 GUI_COCOA_FALSE
2.35 SOEXT
2.36 @@ -768,6 +767,8 @@
2.37 VIDEO_GLX_FALSE
2.38 VIDEO_NSGL_TRUE
2.39 VIDEO_NSGL_FALSE
2.40 +VIDEO_EGL_TRUE
2.41 +VIDEO_EGL_FALSE
2.42 BUILD_SH4X86_TRUE
2.43 BUILD_SH4X86_FALSE
2.44 AUDIO_OSX_TRUE
2.45 @@ -1465,17 +1466,18 @@
2.46 Optional Packages:
2.47 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2.48 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2.49 - --with-android=SDK Specify the location of the Android SDK
2.50 - --with-android-ndk=NDK Specify the location of the Android NDK
2.51 - --with-android-version Specify target Android SDK version
2.52 - --with-android-version Specify target Android NDK version
2.53 - --with-android-abi Specify target Android ABI
2.54 --with-osmesa Build with the osmesa GL library (software
2.55 rendering)
2.56 --with-gtk Build with the GTK UI. Default on X11 systems
2.57 --with-esd Build with support for the ESounD audio system
2.58 --with-pulse Build with support for the PulseAudio audio system
2.59 --with-sdl Build with support for SDL audio
2.60 + --with-sysroot=SYSROOT Build using an alternate sysroot
2.61 + --with-android=SDK Specify the location of the Android SDK
2.62 + --with-android-ndk=NDK Specify the location of the Android NDK
2.63 + --with-android-version Specify target Android SDK version
2.64 + --with-android-version Specify target Android NDK version
2.65 + --with-android-abi Specify target Android ABI
2.66
2.67 Some influential environment variables:
2.68 CC C compiler command
2.69 @@ -2530,6 +2532,6245 @@
2.70
2.71
2.72
2.73 +DEPDIR="${am__leading_dot}deps"
2.74 +
2.75 +ac_config_commands="$ac_config_commands depfiles"
2.76 +
2.77 +
2.78 +am_make=${MAKE-make}
2.79 +cat > confinc << 'END'
2.80 +am__doit:
2.81 + @echo done
2.82 +.PHONY: am__doit
2.83 +END
2.84 +# If we don't find an include directive, just comment out the code.
2.85 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2.86 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2.87 +am__include="#"
2.88 +am__quote=
2.89 +_am_result=none
2.90 +# First try GNU make style include.
2.91 +echo "include confinc" > confmf
2.92 +# We grep out `Entering directory' and `Leaving directory'
2.93 +# messages which can occur if `w' ends up in MAKEFLAGS.
2.94 +# In particular we don't look at `^make:' because GNU make might
2.95 +# be invoked under some other name (usually "gmake"), in which
2.96 +# case it prints its new name instead of `make'.
2.97 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2.98 + am__include=include
2.99 + am__quote=
2.100 + _am_result=GNU
2.101 +fi
2.102 +# Now try BSD make style include.
2.103 +if test "$am__include" = "#"; then
2.104 + echo '.include "confinc"' > confmf
2.105 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2.106 + am__include=.include
2.107 + am__quote="\""
2.108 + _am_result=BSD
2.109 + fi
2.110 +fi
2.111 +
2.112 +
2.113 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
2.114 +echo "${ECHO_T}$_am_result" >&6; }
2.115 +rm -f confinc confmf
2.116 +
2.117 +# Check whether --enable-dependency-tracking was given.
2.118 +if test "${enable_dependency_tracking+set}" = set; then
2.119 + enableval=$enable_dependency_tracking;
2.120 +fi
2.121 +
2.122 +if test "x$enable_dependency_tracking" != xno; then
2.123 + am_depcomp="$ac_aux_dir/depcomp"
2.124 + AMDEPBACKSLASH='\'
2.125 +fi
2.126 +
2.127 +
2.128 +if test "x$enable_dependency_tracking" != xno; then
2.129 + AMDEP_TRUE=
2.130 + AMDEP_FALSE='#'
2.131 +else
2.132 + AMDEP_TRUE='#'
2.133 + AMDEP_FALSE=
2.134 +fi
2.135 +
2.136 +
2.137 +
2.138 +ac_ext=c
2.139 +ac_cpp='$CPP $CPPFLAGS'
2.140 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.141 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.142 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.143 +if test -n "$ac_tool_prefix"; then
2.144 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.145 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
2.146 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.147 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.148 +if test "${ac_cv_prog_CC+set}" = set; then
2.149 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.150 +else
2.151 + if test -n "$CC"; then
2.152 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.153 +else
2.154 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.155 +for as_dir in $PATH
2.156 +do
2.157 + IFS=$as_save_IFS
2.158 + test -z "$as_dir" && as_dir=.
2.159 + for ac_exec_ext in '' $ac_executable_extensions; do
2.160 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.161 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
2.162 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.163 + break 2
2.164 + fi
2.165 +done
2.166 +done
2.167 +IFS=$as_save_IFS
2.168 +
2.169 +fi
2.170 +fi
2.171 +CC=$ac_cv_prog_CC
2.172 +if test -n "$CC"; then
2.173 + { echo "$as_me:$LINENO: result: $CC" >&5
2.174 +echo "${ECHO_T}$CC" >&6; }
2.175 +else
2.176 + { echo "$as_me:$LINENO: result: no" >&5
2.177 +echo "${ECHO_T}no" >&6; }
2.178 +fi
2.179 +
2.180 +
2.181 +fi
2.182 +if test -z "$ac_cv_prog_CC"; then
2.183 + ac_ct_CC=$CC
2.184 + # Extract the first word of "gcc", so it can be a program name with args.
2.185 +set dummy gcc; ac_word=$2
2.186 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.187 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.188 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.189 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.190 +else
2.191 + if test -n "$ac_ct_CC"; then
2.192 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.193 +else
2.194 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.195 +for as_dir in $PATH
2.196 +do
2.197 + IFS=$as_save_IFS
2.198 + test -z "$as_dir" && as_dir=.
2.199 + for ac_exec_ext in '' $ac_executable_extensions; do
2.200 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.201 + ac_cv_prog_ac_ct_CC="gcc"
2.202 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.203 + break 2
2.204 + fi
2.205 +done
2.206 +done
2.207 +IFS=$as_save_IFS
2.208 +
2.209 +fi
2.210 +fi
2.211 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.212 +if test -n "$ac_ct_CC"; then
2.213 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.214 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2.215 +else
2.216 + { echo "$as_me:$LINENO: result: no" >&5
2.217 +echo "${ECHO_T}no" >&6; }
2.218 +fi
2.219 +
2.220 + if test "x$ac_ct_CC" = x; then
2.221 + CC=""
2.222 + else
2.223 + case $cross_compiling:$ac_tool_warned in
2.224 +yes:)
2.225 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.226 +whose name does not start with the host triplet. If you think this
2.227 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.228 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.229 +whose name does not start with the host triplet. If you think this
2.230 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.231 +ac_tool_warned=yes ;;
2.232 +esac
2.233 + CC=$ac_ct_CC
2.234 + fi
2.235 +else
2.236 + CC="$ac_cv_prog_CC"
2.237 +fi
2.238 +
2.239 +if test -z "$CC"; then
2.240 + if test -n "$ac_tool_prefix"; then
2.241 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.242 +set dummy ${ac_tool_prefix}cc; ac_word=$2
2.243 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.244 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.245 +if test "${ac_cv_prog_CC+set}" = set; then
2.246 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.247 +else
2.248 + if test -n "$CC"; then
2.249 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.250 +else
2.251 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.252 +for as_dir in $PATH
2.253 +do
2.254 + IFS=$as_save_IFS
2.255 + test -z "$as_dir" && as_dir=.
2.256 + for ac_exec_ext in '' $ac_executable_extensions; do
2.257 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.258 + ac_cv_prog_CC="${ac_tool_prefix}cc"
2.259 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.260 + break 2
2.261 + fi
2.262 +done
2.263 +done
2.264 +IFS=$as_save_IFS
2.265 +
2.266 +fi
2.267 +fi
2.268 +CC=$ac_cv_prog_CC
2.269 +if test -n "$CC"; then
2.270 + { echo "$as_me:$LINENO: result: $CC" >&5
2.271 +echo "${ECHO_T}$CC" >&6; }
2.272 +else
2.273 + { echo "$as_me:$LINENO: result: no" >&5
2.274 +echo "${ECHO_T}no" >&6; }
2.275 +fi
2.276 +
2.277 +
2.278 + fi
2.279 +fi
2.280 +if test -z "$CC"; then
2.281 + # Extract the first word of "cc", so it can be a program name with args.
2.282 +set dummy cc; ac_word=$2
2.283 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.284 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.285 +if test "${ac_cv_prog_CC+set}" = set; then
2.286 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.287 +else
2.288 + if test -n "$CC"; then
2.289 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.290 +else
2.291 + ac_prog_rejected=no
2.292 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.293 +for as_dir in $PATH
2.294 +do
2.295 + IFS=$as_save_IFS
2.296 + test -z "$as_dir" && as_dir=.
2.297 + for ac_exec_ext in '' $ac_executable_extensions; do
2.298 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.299 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.300 + ac_prog_rejected=yes
2.301 + continue
2.302 + fi
2.303 + ac_cv_prog_CC="cc"
2.304 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.305 + break 2
2.306 + fi
2.307 +done
2.308 +done
2.309 +IFS=$as_save_IFS
2.310 +
2.311 +if test $ac_prog_rejected = yes; then
2.312 + # We found a bogon in the path, so make sure we never use it.
2.313 + set dummy $ac_cv_prog_CC
2.314 + shift
2.315 + if test $# != 0; then
2.316 + # We chose a different compiler from the bogus one.
2.317 + # However, it has the same basename, so the bogon will be chosen
2.318 + # first if we set CC to just the basename; use the full file name.
2.319 + shift
2.320 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2.321 + fi
2.322 +fi
2.323 +fi
2.324 +fi
2.325 +CC=$ac_cv_prog_CC
2.326 +if test -n "$CC"; then
2.327 + { echo "$as_me:$LINENO: result: $CC" >&5
2.328 +echo "${ECHO_T}$CC" >&6; }
2.329 +else
2.330 + { echo "$as_me:$LINENO: result: no" >&5
2.331 +echo "${ECHO_T}no" >&6; }
2.332 +fi
2.333 +
2.334 +
2.335 +fi
2.336 +if test -z "$CC"; then
2.337 + if test -n "$ac_tool_prefix"; then
2.338 + for ac_prog in cl.exe
2.339 + do
2.340 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.341 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.342 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.343 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.344 +if test "${ac_cv_prog_CC+set}" = set; then
2.345 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.346 +else
2.347 + if test -n "$CC"; then
2.348 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.349 +else
2.350 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.351 +for as_dir in $PATH
2.352 +do
2.353 + IFS=$as_save_IFS
2.354 + test -z "$as_dir" && as_dir=.
2.355 + for ac_exec_ext in '' $ac_executable_extensions; do
2.356 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.357 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2.358 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.359 + break 2
2.360 + fi
2.361 +done
2.362 +done
2.363 +IFS=$as_save_IFS
2.364 +
2.365 +fi
2.366 +fi
2.367 +CC=$ac_cv_prog_CC
2.368 +if test -n "$CC"; then
2.369 + { echo "$as_me:$LINENO: result: $CC" >&5
2.370 +echo "${ECHO_T}$CC" >&6; }
2.371 +else
2.372 + { echo "$as_me:$LINENO: result: no" >&5
2.373 +echo "${ECHO_T}no" >&6; }
2.374 +fi
2.375 +
2.376 +
2.377 + test -n "$CC" && break
2.378 + done
2.379 +fi
2.380 +if test -z "$CC"; then
2.381 + ac_ct_CC=$CC
2.382 + for ac_prog in cl.exe
2.383 +do
2.384 + # Extract the first word of "$ac_prog", so it can be a program name with args.
2.385 +set dummy $ac_prog; ac_word=$2
2.386 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.387 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.388 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.389 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.390 +else
2.391 + if test -n "$ac_ct_CC"; then
2.392 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.393 +else
2.394 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.395 +for as_dir in $PATH
2.396 +do
2.397 + IFS=$as_save_IFS
2.398 + test -z "$as_dir" && as_dir=.
2.399 + for ac_exec_ext in '' $ac_executable_extensions; do
2.400 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.401 + ac_cv_prog_ac_ct_CC="$ac_prog"
2.402 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.403 + break 2
2.404 + fi
2.405 +done
2.406 +done
2.407 +IFS=$as_save_IFS
2.408 +
2.409 +fi
2.410 +fi
2.411 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.412 +if test -n "$ac_ct_CC"; then
2.413 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.414 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2.415 +else
2.416 + { echo "$as_me:$LINENO: result: no" >&5
2.417 +echo "${ECHO_T}no" >&6; }
2.418 +fi
2.419 +
2.420 +
2.421 + test -n "$ac_ct_CC" && break
2.422 +done
2.423 +
2.424 + if test "x$ac_ct_CC" = x; then
2.425 + CC=""
2.426 + else
2.427 + case $cross_compiling:$ac_tool_warned in
2.428 +yes:)
2.429 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.430 +whose name does not start with the host triplet. If you think this
2.431 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.432 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.433 +whose name does not start with the host triplet. If you think this
2.434 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.435 +ac_tool_warned=yes ;;
2.436 +esac
2.437 + CC=$ac_ct_CC
2.438 + fi
2.439 +fi
2.440 +
2.441 +fi
2.442 +
2.443 +
2.444 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.445 +See \`config.log' for more details." >&5
2.446 +echo "$as_me: error: no acceptable C compiler found in \$PATH
2.447 +See \`config.log' for more details." >&2;}
2.448 + { (exit 1); exit 1; }; }
2.449 +
2.450 +# Provide some information about the compiler.
2.451 +echo "$as_me:$LINENO: checking for C compiler version" >&5
2.452 +ac_compiler=`set X $ac_compile; echo $2`
2.453 +{ (ac_try="$ac_compiler --version >&5"
2.454 +case "(($ac_try" in
2.455 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.456 + *) ac_try_echo=$ac_try;;
2.457 +esac
2.458 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.459 + (eval "$ac_compiler --version >&5") 2>&5
2.460 + ac_status=$?
2.461 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.462 + (exit $ac_status); }
2.463 +{ (ac_try="$ac_compiler -v >&5"
2.464 +case "(($ac_try" in
2.465 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.466 + *) ac_try_echo=$ac_try;;
2.467 +esac
2.468 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.469 + (eval "$ac_compiler -v >&5") 2>&5
2.470 + ac_status=$?
2.471 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.472 + (exit $ac_status); }
2.473 +{ (ac_try="$ac_compiler -V >&5"
2.474 +case "(($ac_try" in
2.475 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.476 + *) ac_try_echo=$ac_try;;
2.477 +esac
2.478 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.479 + (eval "$ac_compiler -V >&5") 2>&5
2.480 + ac_status=$?
2.481 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.482 + (exit $ac_status); }
2.483 +
2.484 +cat >conftest.$ac_ext <<_ACEOF
2.485 +/* confdefs.h. */
2.486 +_ACEOF
2.487 +cat confdefs.h >>conftest.$ac_ext
2.488 +cat >>conftest.$ac_ext <<_ACEOF
2.489 +/* end confdefs.h. */
2.490 +
2.491 +int
2.492 +main ()
2.493 +{
2.494 +
2.495 + ;
2.496 + return 0;
2.497 +}
2.498 +_ACEOF
2.499 +ac_clean_files_save=$ac_clean_files
2.500 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
2.501 +# Try to create an executable without -o first, disregard a.out.
2.502 +# It will help us diagnose broken compilers, and finding out an intuition
2.503 +# of exeext.
2.504 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2.505 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2.506 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2.507 +#
2.508 +# List of possible output files, starting from the most likely.
2.509 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2.510 +# only as a last resort. b.out is created by i960 compilers.
2.511 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2.512 +#
2.513 +# The IRIX 6 linker writes into existing files which may not be
2.514 +# executable, retaining their permissions. Remove them first so a
2.515 +# subsequent execution test works.
2.516 +ac_rmfiles=
2.517 +for ac_file in $ac_files
2.518 +do
2.519 + case $ac_file in
2.520 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2.521 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2.522 + esac
2.523 +done
2.524 +rm -f $ac_rmfiles
2.525 +
2.526 +if { (ac_try="$ac_link_default"
2.527 +case "(($ac_try" in
2.528 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.529 + *) ac_try_echo=$ac_try;;
2.530 +esac
2.531 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.532 + (eval "$ac_link_default") 2>&5
2.533 + ac_status=$?
2.534 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.535 + (exit $ac_status); }; then
2.536 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2.537 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2.538 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
2.539 +# so that the user can short-circuit this test for compilers unknown to
2.540 +# Autoconf.
2.541 +for ac_file in $ac_files ''
2.542 +do
2.543 + test -f "$ac_file" || continue
2.544 + case $ac_file in
2.545 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2.546 + ;;
2.547 + [ab].out )
2.548 + # We found the default executable, but exeext='' is most
2.549 + # certainly right.
2.550 + break;;
2.551 + *.* )
2.552 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2.553 + then :; else
2.554 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2.555 + fi
2.556 + # We set ac_cv_exeext here because the later test for it is not
2.557 + # safe: cross compilers may not add the suffix if given an `-o'
2.558 + # argument, so we may need to know it at that point already.
2.559 + # Even if this section looks crufty: it has the advantage of
2.560 + # actually working.
2.561 + break;;
2.562 + * )
2.563 + break;;
2.564 + esac
2.565 +done
2.566 +test "$ac_cv_exeext" = no && ac_cv_exeext=
2.567 +
2.568 +else
2.569 + ac_file=''
2.570 +fi
2.571 +
2.572 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
2.573 +echo "${ECHO_T}$ac_file" >&6; }
2.574 +if test -z "$ac_file"; then
2.575 + echo "$as_me: failed program was:" >&5
2.576 +sed 's/^/| /' conftest.$ac_ext >&5
2.577 +
2.578 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2.579 +See \`config.log' for more details." >&5
2.580 +echo "$as_me: error: C compiler cannot create executables
2.581 +See \`config.log' for more details." >&2;}
2.582 + { (exit 77); exit 77; }; }
2.583 +fi
2.584 +
2.585 +ac_exeext=$ac_cv_exeext
2.586 +
2.587 +# Check that the compiler produces executables we can run. If not, either
2.588 +# the compiler is broken, or we cross compile.
2.589 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2.590 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2.591 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2.592 +# If not cross compiling, check that we can run a simple program.
2.593 +if test "$cross_compiling" != yes; then
2.594 + if { ac_try='./$ac_file'
2.595 + { (case "(($ac_try" in
2.596 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.597 + *) ac_try_echo=$ac_try;;
2.598 +esac
2.599 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.600 + (eval "$ac_try") 2>&5
2.601 + ac_status=$?
2.602 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.603 + (exit $ac_status); }; }; then
2.604 + cross_compiling=no
2.605 + else
2.606 + if test "$cross_compiling" = maybe; then
2.607 + cross_compiling=yes
2.608 + else
2.609 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2.610 +If you meant to cross compile, use \`--host'.
2.611 +See \`config.log' for more details." >&5
2.612 +echo "$as_me: error: cannot run C compiled programs.
2.613 +If you meant to cross compile, use \`--host'.
2.614 +See \`config.log' for more details." >&2;}
2.615 + { (exit 1); exit 1; }; }
2.616 + fi
2.617 + fi
2.618 +fi
2.619 +{ echo "$as_me:$LINENO: result: yes" >&5
2.620 +echo "${ECHO_T}yes" >&6; }
2.621 +
2.622 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
2.623 +ac_clean_files=$ac_clean_files_save
2.624 +# Check that the compiler produces executables we can run. If not, either
2.625 +# the compiler is broken, or we cross compile.
2.626 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2.627 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2.628 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2.629 +echo "${ECHO_T}$cross_compiling" >&6; }
2.630 +
2.631 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2.632 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2.633 +if { (ac_try="$ac_link"
2.634 +case "(($ac_try" in
2.635 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.636 + *) ac_try_echo=$ac_try;;
2.637 +esac
2.638 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.639 + (eval "$ac_link") 2>&5
2.640 + ac_status=$?
2.641 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.642 + (exit $ac_status); }; then
2.643 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
2.644 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2.645 +# work properly (i.e., refer to `conftest.exe'), while it won't with
2.646 +# `rm'.
2.647 +for ac_file in conftest.exe conftest conftest.*; do
2.648 + test -f "$ac_file" || continue
2.649 + case $ac_file in
2.650 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2.651 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2.652 + break;;
2.653 + * ) break;;
2.654 + esac
2.655 +done
2.656 +else
2.657 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2.658 +See \`config.log' for more details." >&5
2.659 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2.660 +See \`config.log' for more details." >&2;}
2.661 + { (exit 1); exit 1; }; }
2.662 +fi
2.663 +
2.664 +rm -f conftest$ac_cv_exeext
2.665 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2.666 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
2.667 +
2.668 +rm -f conftest.$ac_ext
2.669 +EXEEXT=$ac_cv_exeext
2.670 +ac_exeext=$EXEEXT
2.671 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2.672 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2.673 +if test "${ac_cv_objext+set}" = set; then
2.674 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.675 +else
2.676 + cat >conftest.$ac_ext <<_ACEOF
2.677 +/* confdefs.h. */
2.678 +_ACEOF
2.679 +cat confdefs.h >>conftest.$ac_ext
2.680 +cat >>conftest.$ac_ext <<_ACEOF
2.681 +/* end confdefs.h. */
2.682 +
2.683 +int
2.684 +main ()
2.685 +{
2.686 +
2.687 + ;
2.688 + return 0;
2.689 +}
2.690 +_ACEOF
2.691 +rm -f conftest.o conftest.obj
2.692 +if { (ac_try="$ac_compile"
2.693 +case "(($ac_try" in
2.694 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.695 + *) ac_try_echo=$ac_try;;
2.696 +esac
2.697 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.698 + (eval "$ac_compile") 2>&5
2.699 + ac_status=$?
2.700 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.701 + (exit $ac_status); }; then
2.702 + for ac_file in conftest.o conftest.obj conftest.*; do
2.703 + test -f "$ac_file" || continue;
2.704 + case $ac_file in
2.705 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2.706 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2.707 + break;;
2.708 + esac
2.709 +done
2.710 +else
2.711 + echo "$as_me: failed program was:" >&5
2.712 +sed 's/^/| /' conftest.$ac_ext >&5
2.713 +
2.714 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2.715 +See \`config.log' for more details." >&5
2.716 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
2.717 +See \`config.log' for more details." >&2;}
2.718 + { (exit 1); exit 1; }; }
2.719 +fi
2.720 +
2.721 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
2.722 +fi
2.723 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2.724 +echo "${ECHO_T}$ac_cv_objext" >&6; }
2.725 +OBJEXT=$ac_cv_objext
2.726 +ac_objext=$OBJEXT
2.727 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.728 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.729 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.730 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.731 +else
2.732 + cat >conftest.$ac_ext <<_ACEOF
2.733 +/* confdefs.h. */
2.734 +_ACEOF
2.735 +cat confdefs.h >>conftest.$ac_ext
2.736 +cat >>conftest.$ac_ext <<_ACEOF
2.737 +/* end confdefs.h. */
2.738 +
2.739 +int
2.740 +main ()
2.741 +{
2.742 +#ifndef __GNUC__
2.743 + choke me
2.744 +#endif
2.745 +
2.746 + ;
2.747 + return 0;
2.748 +}
2.749 +_ACEOF
2.750 +rm -f conftest.$ac_objext
2.751 +if { (ac_try="$ac_compile"
2.752 +case "(($ac_try" in
2.753 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.754 + *) ac_try_echo=$ac_try;;
2.755 +esac
2.756 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.757 + (eval "$ac_compile") 2>conftest.er1
2.758 + ac_status=$?
2.759 + grep -v '^ *+' conftest.er1 >conftest.err
2.760 + rm -f conftest.er1
2.761 + cat conftest.err >&5
2.762 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.763 + (exit $ac_status); } && {
2.764 + test -z "$ac_c_werror_flag" ||
2.765 + test ! -s conftest.err
2.766 + } && test -s conftest.$ac_objext; then
2.767 + ac_compiler_gnu=yes
2.768 +else
2.769 + echo "$as_me: failed program was:" >&5
2.770 +sed 's/^/| /' conftest.$ac_ext >&5
2.771 +
2.772 + ac_compiler_gnu=no
2.773 +fi
2.774 +
2.775 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.776 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
2.777 +
2.778 +fi
2.779 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.780 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.781 +GCC=`test $ac_compiler_gnu = yes && echo yes`
2.782 +ac_test_CFLAGS=${CFLAGS+set}
2.783 +ac_save_CFLAGS=$CFLAGS
2.784 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2.785 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2.786 +if test "${ac_cv_prog_cc_g+set}" = set; then
2.787 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.788 +else
2.789 + ac_save_c_werror_flag=$ac_c_werror_flag
2.790 + ac_c_werror_flag=yes
2.791 + ac_cv_prog_cc_g=no
2.792 + CFLAGS="-g"
2.793 + cat >conftest.$ac_ext <<_ACEOF
2.794 +/* confdefs.h. */
2.795 +_ACEOF
2.796 +cat confdefs.h >>conftest.$ac_ext
2.797 +cat >>conftest.$ac_ext <<_ACEOF
2.798 +/* end confdefs.h. */
2.799 +
2.800 +int
2.801 +main ()
2.802 +{
2.803 +
2.804 + ;
2.805 + return 0;
2.806 +}
2.807 +_ACEOF
2.808 +rm -f conftest.$ac_objext
2.809 +if { (ac_try="$ac_compile"
2.810 +case "(($ac_try" in
2.811 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.812 + *) ac_try_echo=$ac_try;;
2.813 +esac
2.814 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.815 + (eval "$ac_compile") 2>conftest.er1
2.816 + ac_status=$?
2.817 + grep -v '^ *+' conftest.er1 >conftest.err
2.818 + rm -f conftest.er1
2.819 + cat conftest.err >&5
2.820 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.821 + (exit $ac_status); } && {
2.822 + test -z "$ac_c_werror_flag" ||
2.823 + test ! -s conftest.err
2.824 + } && test -s conftest.$ac_objext; then
2.825 + ac_cv_prog_cc_g=yes
2.826 +else
2.827 + echo "$as_me: failed program was:" >&5
2.828 +sed 's/^/| /' conftest.$ac_ext >&5
2.829 +
2.830 + CFLAGS=""
2.831 + cat >conftest.$ac_ext <<_ACEOF
2.832 +/* confdefs.h. */
2.833 +_ACEOF
2.834 +cat confdefs.h >>conftest.$ac_ext
2.835 +cat >>conftest.$ac_ext <<_ACEOF
2.836 +/* end confdefs.h. */
2.837 +
2.838 +int
2.839 +main ()
2.840 +{
2.841 +
2.842 + ;
2.843 + return 0;
2.844 +}
2.845 +_ACEOF
2.846 +rm -f conftest.$ac_objext
2.847 +if { (ac_try="$ac_compile"
2.848 +case "(($ac_try" in
2.849 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.850 + *) ac_try_echo=$ac_try;;
2.851 +esac
2.852 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.853 + (eval "$ac_compile") 2>conftest.er1
2.854 + ac_status=$?
2.855 + grep -v '^ *+' conftest.er1 >conftest.err
2.856 + rm -f conftest.er1
2.857 + cat conftest.err >&5
2.858 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.859 + (exit $ac_status); } && {
2.860 + test -z "$ac_c_werror_flag" ||
2.861 + test ! -s conftest.err
2.862 + } && test -s conftest.$ac_objext; then
2.863 + :
2.864 +else
2.865 + echo "$as_me: failed program was:" >&5
2.866 +sed 's/^/| /' conftest.$ac_ext >&5
2.867 +
2.868 + ac_c_werror_flag=$ac_save_c_werror_flag
2.869 + CFLAGS="-g"
2.870 + cat >conftest.$ac_ext <<_ACEOF
2.871 +/* confdefs.h. */
2.872 +_ACEOF
2.873 +cat confdefs.h >>conftest.$ac_ext
2.874 +cat >>conftest.$ac_ext <<_ACEOF
2.875 +/* end confdefs.h. */
2.876 +
2.877 +int
2.878 +main ()
2.879 +{
2.880 +
2.881 + ;
2.882 + return 0;
2.883 +}
2.884 +_ACEOF
2.885 +rm -f conftest.$ac_objext
2.886 +if { (ac_try="$ac_compile"
2.887 +case "(($ac_try" in
2.888 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.889 + *) ac_try_echo=$ac_try;;
2.890 +esac
2.891 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.892 + (eval "$ac_compile") 2>conftest.er1
2.893 + ac_status=$?
2.894 + grep -v '^ *+' conftest.er1 >conftest.err
2.895 + rm -f conftest.er1
2.896 + cat conftest.err >&5
2.897 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.898 + (exit $ac_status); } && {
2.899 + test -z "$ac_c_werror_flag" ||
2.900 + test ! -s conftest.err
2.901 + } && test -s conftest.$ac_objext; then
2.902 + ac_cv_prog_cc_g=yes
2.903 +else
2.904 + echo "$as_me: failed program was:" >&5
2.905 +sed 's/^/| /' conftest.$ac_ext >&5
2.906 +
2.907 +
2.908 +fi
2.909 +
2.910 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.911 +fi
2.912 +
2.913 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.914 +fi
2.915 +
2.916 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.917 + ac_c_werror_flag=$ac_save_c_werror_flag
2.918 +fi
2.919 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2.920 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2.921 +if test "$ac_test_CFLAGS" = set; then
2.922 + CFLAGS=$ac_save_CFLAGS
2.923 +elif test $ac_cv_prog_cc_g = yes; then
2.924 + if test "$GCC" = yes; then
2.925 + CFLAGS="-g -O2"
2.926 + else
2.927 + CFLAGS="-g"
2.928 + fi
2.929 +else
2.930 + if test "$GCC" = yes; then
2.931 + CFLAGS="-O2"
2.932 + else
2.933 + CFLAGS=
2.934 + fi
2.935 +fi
2.936 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2.937 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2.938 +if test "${ac_cv_prog_cc_c89+set}" = set; then
2.939 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.940 +else
2.941 + ac_cv_prog_cc_c89=no
2.942 +ac_save_CC=$CC
2.943 +cat >conftest.$ac_ext <<_ACEOF
2.944 +/* confdefs.h. */
2.945 +_ACEOF
2.946 +cat confdefs.h >>conftest.$ac_ext
2.947 +cat >>conftest.$ac_ext <<_ACEOF
2.948 +/* end confdefs.h. */
2.949 +#include <stdarg.h>
2.950 +#include <stdio.h>
2.951 +#include <sys/types.h>
2.952 +#include <sys/stat.h>
2.953 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.954 +struct buf { int x; };
2.955 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.956 +static char *e (p, i)
2.957 + char **p;
2.958 + int i;
2.959 +{
2.960 + return p[i];
2.961 +}
2.962 +static char *f (char * (*g) (char **, int), char **p, ...)
2.963 +{
2.964 + char *s;
2.965 + va_list v;
2.966 + va_start (v,p);
2.967 + s = g (p, va_arg (v,int));
2.968 + va_end (v);
2.969 + return s;
2.970 +}
2.971 +
2.972 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.973 + function prototypes and stuff, but not '\xHH' hex character constants.
2.974 + These don't provoke an error unfortunately, instead are silently treated
2.975 + as 'x'. The following induces an error, until -std is added to get
2.976 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.977 + array size at least. It's necessary to write '\x00'==0 to get something
2.978 + that's true only with -std. */
2.979 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.980 +
2.981 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.982 + inside strings and character constants. */
2.983 +#define FOO(x) 'x'
2.984 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.985 +
2.986 +int test (int i, double x);
2.987 +struct s1 {int (*f) (int a);};
2.988 +struct s2 {int (*f) (double a);};
2.989 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.990 +int argc;
2.991 +char **argv;
2.992 +int
2.993 +main ()
2.994 +{
2.995 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.996 + ;
2.997 + return 0;
2.998 +}
2.999 +_ACEOF
2.1000 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.1001 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.1002 +do
2.1003 + CC="$ac_save_CC $ac_arg"
2.1004 + rm -f conftest.$ac_objext
2.1005 +if { (ac_try="$ac_compile"
2.1006 +case "(($ac_try" in
2.1007 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1008 + *) ac_try_echo=$ac_try;;
2.1009 +esac
2.1010 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1011 + (eval "$ac_compile") 2>conftest.er1
2.1012 + ac_status=$?
2.1013 + grep -v '^ *+' conftest.er1 >conftest.err
2.1014 + rm -f conftest.er1
2.1015 + cat conftest.err >&5
2.1016 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1017 + (exit $ac_status); } && {
2.1018 + test -z "$ac_c_werror_flag" ||
2.1019 + test ! -s conftest.err
2.1020 + } && test -s conftest.$ac_objext; then
2.1021 + ac_cv_prog_cc_c89=$ac_arg
2.1022 +else
2.1023 + echo "$as_me: failed program was:" >&5
2.1024 +sed 's/^/| /' conftest.$ac_ext >&5
2.1025 +
2.1026 +
2.1027 +fi
2.1028 +
2.1029 +rm -f core conftest.err conftest.$ac_objext
2.1030 + test "x$ac_cv_prog_cc_c89" != "xno" && break
2.1031 +done
2.1032 +rm -f conftest.$ac_ext
2.1033 +CC=$ac_save_CC
2.1034 +
2.1035 +fi
2.1036 +# AC_CACHE_VAL
2.1037 +case "x$ac_cv_prog_cc_c89" in
2.1038 + x)
2.1039 + { echo "$as_me:$LINENO: result: none needed" >&5
2.1040 +echo "${ECHO_T}none needed" >&6; } ;;
2.1041 + xno)
2.1042 + { echo "$as_me:$LINENO: result: unsupported" >&5
2.1043 +echo "${ECHO_T}unsupported" >&6; } ;;
2.1044 + *)
2.1045 + CC="$CC $ac_cv_prog_cc_c89"
2.1046 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2.1047 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2.1048 +esac
2.1049 +
2.1050 +
2.1051 +ac_ext=c
2.1052 +ac_cpp='$CPP $CPPFLAGS'
2.1053 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.1054 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.1055 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.1056 +
2.1057 +depcc="$CC" am_compiler_list=
2.1058 +
2.1059 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.1060 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.1061 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2.1062 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1063 +else
2.1064 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.1065 + # We make a subdir and do the tests there. Otherwise we can end up
2.1066 + # making bogus files that we don't know about and never remove. For
2.1067 + # instance it was reported that on HP-UX the gcc test will end up
2.1068 + # making a dummy file named `D' -- because `-MD' means `put the output
2.1069 + # in D'.
2.1070 + mkdir conftest.dir
2.1071 + # Copy depcomp to subdir because otherwise we won't find it if we're
2.1072 + # using a relative directory.
2.1073 + cp "$am_depcomp" conftest.dir
2.1074 + cd conftest.dir
2.1075 + # We will build objects and dependencies in a subdirectory because
2.1076 + # it helps to detect inapplicable dependency modes. For instance
2.1077 + # both Tru64's cc and ICC support -MD to output dependencies as a
2.1078 + # side effect of compilation, but ICC will put the dependencies in
2.1079 + # the current directory while Tru64 will put them in the object
2.1080 + # directory.
2.1081 + mkdir sub
2.1082 +
2.1083 + am_cv_CC_dependencies_compiler_type=none
2.1084 + if test "$am_compiler_list" = ""; then
2.1085 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.1086 + fi
2.1087 + for depmode in $am_compiler_list; do
2.1088 + # Setup a source with many dependencies, because some compilers
2.1089 + # like to wrap large dependency lists on column 80 (with \), and
2.1090 + # we should not choose a depcomp mode which is confused by this.
2.1091 + #
2.1092 + # We need to recreate these files for each test, as the compiler may
2.1093 + # overwrite some of them when testing with obscure command lines.
2.1094 + # This happens at least with the AIX C compiler.
2.1095 + : > sub/conftest.c
2.1096 + for i in 1 2 3 4 5 6; do
2.1097 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.1098 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.1099 + # Solaris 8's {/usr,}/bin/sh.
2.1100 + touch sub/conftst$i.h
2.1101 + done
2.1102 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.1103 +
2.1104 + case $depmode in
2.1105 + nosideeffect)
2.1106 + # after this tag, mechanisms are not by side-effect, so they'll
2.1107 + # only be used when explicitly requested
2.1108 + if test "x$enable_dependency_tracking" = xyes; then
2.1109 + continue
2.1110 + else
2.1111 + break
2.1112 + fi
2.1113 + ;;
2.1114 + none) break ;;
2.1115 + esac
2.1116 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.1117 + # mode. It turns out that the SunPro C++ compiler does not properly
2.1118 + # handle `-M -o', and we need to detect this.
2.1119 + if depmode=$depmode \
2.1120 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.1121 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.1122 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.1123 + >/dev/null 2>conftest.err &&
2.1124 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.1125 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.1126 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.1127 + # icc doesn't choke on unknown options, it will just issue warnings
2.1128 + # or remarks (even with -Werror). So we grep stderr for any message
2.1129 + # that says an option was ignored or not supported.
2.1130 + # When given -MP, icc 7.0 and 7.1 complain thusly:
2.1131 + # icc: Command line warning: ignoring option '-M'; no argument required
2.1132 + # The diagnosis changed in icc 8.0:
2.1133 + # icc: Command line remark: option '-MP' not supported
2.1134 + if (grep 'ignoring option' conftest.err ||
2.1135 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.1136 + am_cv_CC_dependencies_compiler_type=$depmode
2.1137 + break
2.1138 + fi
2.1139 + fi
2.1140 + done
2.1141 +
2.1142 + cd ..
2.1143 + rm -rf conftest.dir
2.1144 +else
2.1145 + am_cv_CC_dependencies_compiler_type=none
2.1146 +fi
2.1147 +
2.1148 +fi
2.1149 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2.1150 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2.1151 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2.1152 +
2.1153 +
2.1154 +
2.1155 +if
2.1156 + test "x$enable_dependency_tracking" != xno \
2.1157 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2.1158 + am__fastdepCC_TRUE=
2.1159 + am__fastdepCC_FALSE='#'
2.1160 +else
2.1161 + am__fastdepCC_TRUE='#'
2.1162 + am__fastdepCC_FALSE=
2.1163 +fi
2.1164 +
2.1165 +
2.1166 +
2.1167 +
2.1168 + { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2.1169 +echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
2.1170 +if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2.1171 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1172 +else
2.1173 + ac_check_lib_save_LIBS=$LIBS
2.1174 +LIBS="-lcposix $LIBS"
2.1175 +cat >conftest.$ac_ext <<_ACEOF
2.1176 +/* confdefs.h. */
2.1177 +_ACEOF
2.1178 +cat confdefs.h >>conftest.$ac_ext
2.1179 +cat >>conftest.$ac_ext <<_ACEOF
2.1180 +/* end confdefs.h. */
2.1181 +
2.1182 +/* Override any GCC internal prototype to avoid an error.
2.1183 + Use char because int might match the return type of a GCC
2.1184 + builtin and then its argument prototype would still apply. */
2.1185 +#ifdef __cplusplus
2.1186 +extern "C"
2.1187 +#endif
2.1188 +char strerror ();
2.1189 +int
2.1190 +main ()
2.1191 +{
2.1192 +return strerror ();
2.1193 + ;
2.1194 + return 0;
2.1195 +}
2.1196 +_ACEOF
2.1197 +rm -f conftest.$ac_objext conftest$ac_exeext
2.1198 +if { (ac_try="$ac_link"
2.1199 +case "(($ac_try" in
2.1200 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1201 + *) ac_try_echo=$ac_try;;
2.1202 +esac
2.1203 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1204 + (eval "$ac_link") 2>conftest.er1
2.1205 + ac_status=$?
2.1206 + grep -v '^ *+' conftest.er1 >conftest.err
2.1207 + rm -f conftest.er1
2.1208 + cat conftest.err >&5
2.1209 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1210 + (exit $ac_status); } && {
2.1211 + test -z "$ac_c_werror_flag" ||
2.1212 + test ! -s conftest.err
2.1213 + } && test -s conftest$ac_exeext &&
2.1214 + $as_test_x conftest$ac_exeext; then
2.1215 + ac_cv_lib_cposix_strerror=yes
2.1216 +else
2.1217 + echo "$as_me: failed program was:" >&5
2.1218 +sed 's/^/| /' conftest.$ac_ext >&5
2.1219 +
2.1220 + ac_cv_lib_cposix_strerror=no
2.1221 +fi
2.1222 +
2.1223 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2.1224 + conftest$ac_exeext conftest.$ac_ext
2.1225 +LIBS=$ac_check_lib_save_LIBS
2.1226 +fi
2.1227 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2.1228 +echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
2.1229 +if test $ac_cv_lib_cposix_strerror = yes; then
2.1230 + LIBS="$LIBS -lcposix"
2.1231 +fi
2.1232 +
2.1233 +
2.1234 +
2.1235 +ac_ext=c
2.1236 +ac_cpp='$CPP $CPPFLAGS'
2.1237 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.1238 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.1239 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.1240 +if test -n "$ac_tool_prefix"; then
2.1241 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.1242 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
2.1243 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.1244 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.1245 +if test "${ac_cv_prog_CC+set}" = set; then
2.1246 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1247 +else
2.1248 + if test -n "$CC"; then
2.1249 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.1250 +else
2.1251 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.1252 +for as_dir in $PATH
2.1253 +do
2.1254 + IFS=$as_save_IFS
2.1255 + test -z "$as_dir" && as_dir=.
2.1256 + for ac_exec_ext in '' $ac_executable_extensions; do
2.1257 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.1258 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
2.1259 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.1260 + break 2
2.1261 + fi
2.1262 +done
2.1263 +done
2.1264 +IFS=$as_save_IFS
2.1265 +
2.1266 +fi
2.1267 +fi
2.1268 +CC=$ac_cv_prog_CC
2.1269 +if test -n "$CC"; then
2.1270 + { echo "$as_me:$LINENO: result: $CC" >&5
2.1271 +echo "${ECHO_T}$CC" >&6; }
2.1272 +else
2.1273 + { echo "$as_me:$LINENO: result: no" >&5
2.1274 +echo "${ECHO_T}no" >&6; }
2.1275 +fi
2.1276 +
2.1277 +
2.1278 +fi
2.1279 +if test -z "$ac_cv_prog_CC"; then
2.1280 + ac_ct_CC=$CC
2.1281 + # Extract the first word of "gcc", so it can be a program name with args.
2.1282 +set dummy gcc; ac_word=$2
2.1283 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.1284 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.1285 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.1286 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1287 +else
2.1288 + if test -n "$ac_ct_CC"; then
2.1289 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.1290 +else
2.1291 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.1292 +for as_dir in $PATH
2.1293 +do
2.1294 + IFS=$as_save_IFS
2.1295 + test -z "$as_dir" && as_dir=.
2.1296 + for ac_exec_ext in '' $ac_executable_extensions; do
2.1297 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.1298 + ac_cv_prog_ac_ct_CC="gcc"
2.1299 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.1300 + break 2
2.1301 + fi
2.1302 +done
2.1303 +done
2.1304 +IFS=$as_save_IFS
2.1305 +
2.1306 +fi
2.1307 +fi
2.1308 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.1309 +if test -n "$ac_ct_CC"; then
2.1310 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.1311 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2.1312 +else
2.1313 + { echo "$as_me:$LINENO: result: no" >&5
2.1314 +echo "${ECHO_T}no" >&6; }
2.1315 +fi
2.1316 +
2.1317 + if test "x$ac_ct_CC" = x; then
2.1318 + CC=""
2.1319 + else
2.1320 + case $cross_compiling:$ac_tool_warned in
2.1321 +yes:)
2.1322 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.1323 +whose name does not start with the host triplet. If you think this
2.1324 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.1325 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.1326 +whose name does not start with the host triplet. If you think this
2.1327 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.1328 +ac_tool_warned=yes ;;
2.1329 +esac
2.1330 + CC=$ac_ct_CC
2.1331 + fi
2.1332 +else
2.1333 + CC="$ac_cv_prog_CC"
2.1334 +fi
2.1335 +
2.1336 +if test -z "$CC"; then
2.1337 + if test -n "$ac_tool_prefix"; then
2.1338 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.1339 +set dummy ${ac_tool_prefix}cc; ac_word=$2
2.1340 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.1341 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.1342 +if test "${ac_cv_prog_CC+set}" = set; then
2.1343 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1344 +else
2.1345 + if test -n "$CC"; then
2.1346 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.1347 +else
2.1348 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.1349 +for as_dir in $PATH
2.1350 +do
2.1351 + IFS=$as_save_IFS
2.1352 + test -z "$as_dir" && as_dir=.
2.1353 + for ac_exec_ext in '' $ac_executable_extensions; do
2.1354 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.1355 + ac_cv_prog_CC="${ac_tool_prefix}cc"
2.1356 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.1357 + break 2
2.1358 + fi
2.1359 +done
2.1360 +done
2.1361 +IFS=$as_save_IFS
2.1362 +
2.1363 +fi
2.1364 +fi
2.1365 +CC=$ac_cv_prog_CC
2.1366 +if test -n "$CC"; then
2.1367 + { echo "$as_me:$LINENO: result: $CC" >&5
2.1368 +echo "${ECHO_T}$CC" >&6; }
2.1369 +else
2.1370 + { echo "$as_me:$LINENO: result: no" >&5
2.1371 +echo "${ECHO_T}no" >&6; }
2.1372 +fi
2.1373 +
2.1374 +
2.1375 + fi
2.1376 +fi
2.1377 +if test -z "$CC"; then
2.1378 + # Extract the first word of "cc", so it can be a program name with args.
2.1379 +set dummy cc; ac_word=$2
2.1380 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.1381 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.1382 +if test "${ac_cv_prog_CC+set}" = set; then
2.1383 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1384 +else
2.1385 + if test -n "$CC"; then
2.1386 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.1387 +else
2.1388 + ac_prog_rejected=no
2.1389 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.1390 +for as_dir in $PATH
2.1391 +do
2.1392 + IFS=$as_save_IFS
2.1393 + test -z "$as_dir" && as_dir=.
2.1394 + for ac_exec_ext in '' $ac_executable_extensions; do
2.1395 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.1396 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.1397 + ac_prog_rejected=yes
2.1398 + continue
2.1399 + fi
2.1400 + ac_cv_prog_CC="cc"
2.1401 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.1402 + break 2
2.1403 + fi
2.1404 +done
2.1405 +done
2.1406 +IFS=$as_save_IFS
2.1407 +
2.1408 +if test $ac_prog_rejected = yes; then
2.1409 + # We found a bogon in the path, so make sure we never use it.
2.1410 + set dummy $ac_cv_prog_CC
2.1411 + shift
2.1412 + if test $# != 0; then
2.1413 + # We chose a different compiler from the bogus one.
2.1414 + # However, it has the same basename, so the bogon will be chosen
2.1415 + # first if we set CC to just the basename; use the full file name.
2.1416 + shift
2.1417 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2.1418 + fi
2.1419 +fi
2.1420 +fi
2.1421 +fi
2.1422 +CC=$ac_cv_prog_CC
2.1423 +if test -n "$CC"; then
2.1424 + { echo "$as_me:$LINENO: result: $CC" >&5
2.1425 +echo "${ECHO_T}$CC" >&6; }
2.1426 +else
2.1427 + { echo "$as_me:$LINENO: result: no" >&5
2.1428 +echo "${ECHO_T}no" >&6; }
2.1429 +fi
2.1430 +
2.1431 +
2.1432 +fi
2.1433 +if test -z "$CC"; then
2.1434 + if test -n "$ac_tool_prefix"; then
2.1435 + for ac_prog in cl.exe
2.1436 + do
2.1437 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.1438 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.1439 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.1440 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.1441 +if test "${ac_cv_prog_CC+set}" = set; then
2.1442 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1443 +else
2.1444 + if test -n "$CC"; then
2.1445 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.1446 +else
2.1447 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.1448 +for as_dir in $PATH
2.1449 +do
2.1450 + IFS=$as_save_IFS
2.1451 + test -z "$as_dir" && as_dir=.
2.1452 + for ac_exec_ext in '' $ac_executable_extensions; do
2.1453 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.1454 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2.1455 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.1456 + break 2
2.1457 + fi
2.1458 +done
2.1459 +done
2.1460 +IFS=$as_save_IFS
2.1461 +
2.1462 +fi
2.1463 +fi
2.1464 +CC=$ac_cv_prog_CC
2.1465 +if test -n "$CC"; then
2.1466 + { echo "$as_me:$LINENO: result: $CC" >&5
2.1467 +echo "${ECHO_T}$CC" >&6; }
2.1468 +else
2.1469 + { echo "$as_me:$LINENO: result: no" >&5
2.1470 +echo "${ECHO_T}no" >&6; }
2.1471 +fi
2.1472 +
2.1473 +
2.1474 + test -n "$CC" && break
2.1475 + done
2.1476 +fi
2.1477 +if test -z "$CC"; then
2.1478 + ac_ct_CC=$CC
2.1479 + for ac_prog in cl.exe
2.1480 +do
2.1481 + # Extract the first word of "$ac_prog", so it can be a program name with args.
2.1482 +set dummy $ac_prog; ac_word=$2
2.1483 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.1484 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.1485 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.1486 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1487 +else
2.1488 + if test -n "$ac_ct_CC"; then
2.1489 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.1490 +else
2.1491 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.1492 +for as_dir in $PATH
2.1493 +do
2.1494 + IFS=$as_save_IFS
2.1495 + test -z "$as_dir" && as_dir=.
2.1496 + for ac_exec_ext in '' $ac_executable_extensions; do
2.1497 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.1498 + ac_cv_prog_ac_ct_CC="$ac_prog"
2.1499 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.1500 + break 2
2.1501 + fi
2.1502 +done
2.1503 +done
2.1504 +IFS=$as_save_IFS
2.1505 +
2.1506 +fi
2.1507 +fi
2.1508 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.1509 +if test -n "$ac_ct_CC"; then
2.1510 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.1511 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2.1512 +else
2.1513 + { echo "$as_me:$LINENO: result: no" >&5
2.1514 +echo "${ECHO_T}no" >&6; }
2.1515 +fi
2.1516 +
2.1517 +
2.1518 + test -n "$ac_ct_CC" && break
2.1519 +done
2.1520 +
2.1521 + if test "x$ac_ct_CC" = x; then
2.1522 + CC=""
2.1523 + else
2.1524 + case $cross_compiling:$ac_tool_warned in
2.1525 +yes:)
2.1526 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.1527 +whose name does not start with the host triplet. If you think this
2.1528 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.1529 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.1530 +whose name does not start with the host triplet. If you think this
2.1531 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.1532 +ac_tool_warned=yes ;;
2.1533 +esac
2.1534 + CC=$ac_ct_CC
2.1535 + fi
2.1536 +fi
2.1537 +
2.1538 +fi
2.1539 +
2.1540 +
2.1541 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.1542 +See \`config.log' for more details." >&5
2.1543 +echo "$as_me: error: no acceptable C compiler found in \$PATH
2.1544 +See \`config.log' for more details." >&2;}
2.1545 + { (exit 1); exit 1; }; }
2.1546 +
2.1547 +# Provide some information about the compiler.
2.1548 +echo "$as_me:$LINENO: checking for C compiler version" >&5
2.1549 +ac_compiler=`set X $ac_compile; echo $2`
2.1550 +{ (ac_try="$ac_compiler --version >&5"
2.1551 +case "(($ac_try" in
2.1552 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1553 + *) ac_try_echo=$ac_try;;
2.1554 +esac
2.1555 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1556 + (eval "$ac_compiler --version >&5") 2>&5
2.1557 + ac_status=$?
2.1558 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1559 + (exit $ac_status); }
2.1560 +{ (ac_try="$ac_compiler -v >&5"
2.1561 +case "(($ac_try" in
2.1562 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1563 + *) ac_try_echo=$ac_try;;
2.1564 +esac
2.1565 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1566 + (eval "$ac_compiler -v >&5") 2>&5
2.1567 + ac_status=$?
2.1568 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1569 + (exit $ac_status); }
2.1570 +{ (ac_try="$ac_compiler -V >&5"
2.1571 +case "(($ac_try" in
2.1572 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1573 + *) ac_try_echo=$ac_try;;
2.1574 +esac
2.1575 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1576 + (eval "$ac_compiler -V >&5") 2>&5
2.1577 + ac_status=$?
2.1578 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1579 + (exit $ac_status); }
2.1580 +
2.1581 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.1582 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.1583 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.1584 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1585 +else
2.1586 + cat >conftest.$ac_ext <<_ACEOF
2.1587 +/* confdefs.h. */
2.1588 +_ACEOF
2.1589 +cat confdefs.h >>conftest.$ac_ext
2.1590 +cat >>conftest.$ac_ext <<_ACEOF
2.1591 +/* end confdefs.h. */
2.1592 +
2.1593 +int
2.1594 +main ()
2.1595 +{
2.1596 +#ifndef __GNUC__
2.1597 + choke me
2.1598 +#endif
2.1599 +
2.1600 + ;
2.1601 + return 0;
2.1602 +}
2.1603 +_ACEOF
2.1604 +rm -f conftest.$ac_objext
2.1605 +if { (ac_try="$ac_compile"
2.1606 +case "(($ac_try" in
2.1607 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1608 + *) ac_try_echo=$ac_try;;
2.1609 +esac
2.1610 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1611 + (eval "$ac_compile") 2>conftest.er1
2.1612 + ac_status=$?
2.1613 + grep -v '^ *+' conftest.er1 >conftest.err
2.1614 + rm -f conftest.er1
2.1615 + cat conftest.err >&5
2.1616 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1617 + (exit $ac_status); } && {
2.1618 + test -z "$ac_c_werror_flag" ||
2.1619 + test ! -s conftest.err
2.1620 + } && test -s conftest.$ac_objext; then
2.1621 + ac_compiler_gnu=yes
2.1622 +else
2.1623 + echo "$as_me: failed program was:" >&5
2.1624 +sed 's/^/| /' conftest.$ac_ext >&5
2.1625 +
2.1626 + ac_compiler_gnu=no
2.1627 +fi
2.1628 +
2.1629 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.1630 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
2.1631 +
2.1632 +fi
2.1633 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.1634 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.1635 +GCC=`test $ac_compiler_gnu = yes && echo yes`
2.1636 +ac_test_CFLAGS=${CFLAGS+set}
2.1637 +ac_save_CFLAGS=$CFLAGS
2.1638 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2.1639 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2.1640 +if test "${ac_cv_prog_cc_g+set}" = set; then
2.1641 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1642 +else
2.1643 + ac_save_c_werror_flag=$ac_c_werror_flag
2.1644 + ac_c_werror_flag=yes
2.1645 + ac_cv_prog_cc_g=no
2.1646 + CFLAGS="-g"
2.1647 + cat >conftest.$ac_ext <<_ACEOF
2.1648 +/* confdefs.h. */
2.1649 +_ACEOF
2.1650 +cat confdefs.h >>conftest.$ac_ext
2.1651 +cat >>conftest.$ac_ext <<_ACEOF
2.1652 +/* end confdefs.h. */
2.1653 +
2.1654 +int
2.1655 +main ()
2.1656 +{
2.1657 +
2.1658 + ;
2.1659 + return 0;
2.1660 +}
2.1661 +_ACEOF
2.1662 +rm -f conftest.$ac_objext
2.1663 +if { (ac_try="$ac_compile"
2.1664 +case "(($ac_try" in
2.1665 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1666 + *) ac_try_echo=$ac_try;;
2.1667 +esac
2.1668 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1669 + (eval "$ac_compile") 2>conftest.er1
2.1670 + ac_status=$?
2.1671 + grep -v '^ *+' conftest.er1 >conftest.err
2.1672 + rm -f conftest.er1
2.1673 + cat conftest.err >&5
2.1674 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1675 + (exit $ac_status); } && {
2.1676 + test -z "$ac_c_werror_flag" ||
2.1677 + test ! -s conftest.err
2.1678 + } && test -s conftest.$ac_objext; then
2.1679 + ac_cv_prog_cc_g=yes
2.1680 +else
2.1681 + echo "$as_me: failed program was:" >&5
2.1682 +sed 's/^/| /' conftest.$ac_ext >&5
2.1683 +
2.1684 + CFLAGS=""
2.1685 + cat >conftest.$ac_ext <<_ACEOF
2.1686 +/* confdefs.h. */
2.1687 +_ACEOF
2.1688 +cat confdefs.h >>conftest.$ac_ext
2.1689 +cat >>conftest.$ac_ext <<_ACEOF
2.1690 +/* end confdefs.h. */
2.1691 +
2.1692 +int
2.1693 +main ()
2.1694 +{
2.1695 +
2.1696 + ;
2.1697 + return 0;
2.1698 +}
2.1699 +_ACEOF
2.1700 +rm -f conftest.$ac_objext
2.1701 +if { (ac_try="$ac_compile"
2.1702 +case "(($ac_try" in
2.1703 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1704 + *) ac_try_echo=$ac_try;;
2.1705 +esac
2.1706 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1707 + (eval "$ac_compile") 2>conftest.er1
2.1708 + ac_status=$?
2.1709 + grep -v '^ *+' conftest.er1 >conftest.err
2.1710 + rm -f conftest.er1
2.1711 + cat conftest.err >&5
2.1712 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1713 + (exit $ac_status); } && {
2.1714 + test -z "$ac_c_werror_flag" ||
2.1715 + test ! -s conftest.err
2.1716 + } && test -s conftest.$ac_objext; then
2.1717 + :
2.1718 +else
2.1719 + echo "$as_me: failed program was:" >&5
2.1720 +sed 's/^/| /' conftest.$ac_ext >&5
2.1721 +
2.1722 + ac_c_werror_flag=$ac_save_c_werror_flag
2.1723 + CFLAGS="-g"
2.1724 + cat >conftest.$ac_ext <<_ACEOF
2.1725 +/* confdefs.h. */
2.1726 +_ACEOF
2.1727 +cat confdefs.h >>conftest.$ac_ext
2.1728 +cat >>conftest.$ac_ext <<_ACEOF
2.1729 +/* end confdefs.h. */
2.1730 +
2.1731 +int
2.1732 +main ()
2.1733 +{
2.1734 +
2.1735 + ;
2.1736 + return 0;
2.1737 +}
2.1738 +_ACEOF
2.1739 +rm -f conftest.$ac_objext
2.1740 +if { (ac_try="$ac_compile"
2.1741 +case "(($ac_try" in
2.1742 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1743 + *) ac_try_echo=$ac_try;;
2.1744 +esac
2.1745 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1746 + (eval "$ac_compile") 2>conftest.er1
2.1747 + ac_status=$?
2.1748 + grep -v '^ *+' conftest.er1 >conftest.err
2.1749 + rm -f conftest.er1
2.1750 + cat conftest.err >&5
2.1751 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1752 + (exit $ac_status); } && {
2.1753 + test -z "$ac_c_werror_flag" ||
2.1754 + test ! -s conftest.err
2.1755 + } && test -s conftest.$ac_objext; then
2.1756 + ac_cv_prog_cc_g=yes
2.1757 +else
2.1758 + echo "$as_me: failed program was:" >&5
2.1759 +sed 's/^/| /' conftest.$ac_ext >&5
2.1760 +
2.1761 +
2.1762 +fi
2.1763 +
2.1764 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.1765 +fi
2.1766 +
2.1767 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.1768 +fi
2.1769 +
2.1770 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.1771 + ac_c_werror_flag=$ac_save_c_werror_flag
2.1772 +fi
2.1773 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2.1774 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2.1775 +if test "$ac_test_CFLAGS" = set; then
2.1776 + CFLAGS=$ac_save_CFLAGS
2.1777 +elif test $ac_cv_prog_cc_g = yes; then
2.1778 + if test "$GCC" = yes; then
2.1779 + CFLAGS="-g -O2"
2.1780 + else
2.1781 + CFLAGS="-g"
2.1782 + fi
2.1783 +else
2.1784 + if test "$GCC" = yes; then
2.1785 + CFLAGS="-O2"
2.1786 + else
2.1787 + CFLAGS=
2.1788 + fi
2.1789 +fi
2.1790 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2.1791 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2.1792 +if test "${ac_cv_prog_cc_c89+set}" = set; then
2.1793 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1794 +else
2.1795 + ac_cv_prog_cc_c89=no
2.1796 +ac_save_CC=$CC
2.1797 +cat >conftest.$ac_ext <<_ACEOF
2.1798 +/* confdefs.h. */
2.1799 +_ACEOF
2.1800 +cat confdefs.h >>conftest.$ac_ext
2.1801 +cat >>conftest.$ac_ext <<_ACEOF
2.1802 +/* end confdefs.h. */
2.1803 +#include <stdarg.h>
2.1804 +#include <stdio.h>
2.1805 +#include <sys/types.h>
2.1806 +#include <sys/stat.h>
2.1807 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.1808 +struct buf { int x; };
2.1809 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.1810 +static char *e (p, i)
2.1811 + char **p;
2.1812 + int i;
2.1813 +{
2.1814 + return p[i];
2.1815 +}
2.1816 +static char *f (char * (*g) (char **, int), char **p, ...)
2.1817 +{
2.1818 + char *s;
2.1819 + va_list v;
2.1820 + va_start (v,p);
2.1821 + s = g (p, va_arg (v,int));
2.1822 + va_end (v);
2.1823 + return s;
2.1824 +}
2.1825 +
2.1826 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.1827 + function prototypes and stuff, but not '\xHH' hex character constants.
2.1828 + These don't provoke an error unfortunately, instead are silently treated
2.1829 + as 'x'. The following induces an error, until -std is added to get
2.1830 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.1831 + array size at least. It's necessary to write '\x00'==0 to get something
2.1832 + that's true only with -std. */
2.1833 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.1834 +
2.1835 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.1836 + inside strings and character constants. */
2.1837 +#define FOO(x) 'x'
2.1838 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.1839 +
2.1840 +int test (int i, double x);
2.1841 +struct s1 {int (*f) (int a);};
2.1842 +struct s2 {int (*f) (double a);};
2.1843 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.1844 +int argc;
2.1845 +char **argv;
2.1846 +int
2.1847 +main ()
2.1848 +{
2.1849 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.1850 + ;
2.1851 + return 0;
2.1852 +}
2.1853 +_ACEOF
2.1854 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.1855 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.1856 +do
2.1857 + CC="$ac_save_CC $ac_arg"
2.1858 + rm -f conftest.$ac_objext
2.1859 +if { (ac_try="$ac_compile"
2.1860 +case "(($ac_try" in
2.1861 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.1862 + *) ac_try_echo=$ac_try;;
2.1863 +esac
2.1864 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.1865 + (eval "$ac_compile") 2>conftest.er1
2.1866 + ac_status=$?
2.1867 + grep -v '^ *+' conftest.er1 >conftest.err
2.1868 + rm -f conftest.er1
2.1869 + cat conftest.err >&5
2.1870 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.1871 + (exit $ac_status); } && {
2.1872 + test -z "$ac_c_werror_flag" ||
2.1873 + test ! -s conftest.err
2.1874 + } && test -s conftest.$ac_objext; then
2.1875 + ac_cv_prog_cc_c89=$ac_arg
2.1876 +else
2.1877 + echo "$as_me: failed program was:" >&5
2.1878 +sed 's/^/| /' conftest.$ac_ext >&5
2.1879 +
2.1880 +
2.1881 +fi
2.1882 +
2.1883 +rm -f core conftest.err conftest.$ac_objext
2.1884 + test "x$ac_cv_prog_cc_c89" != "xno" && break
2.1885 +done
2.1886 +rm -f conftest.$ac_ext
2.1887 +CC=$ac_save_CC
2.1888 +
2.1889 +fi
2.1890 +# AC_CACHE_VAL
2.1891 +case "x$ac_cv_prog_cc_c89" in
2.1892 + x)
2.1893 + { echo "$as_me:$LINENO: result: none needed" >&5
2.1894 +echo "${ECHO_T}none needed" >&6; } ;;
2.1895 + xno)
2.1896 + { echo "$as_me:$LINENO: result: unsupported" >&5
2.1897 +echo "${ECHO_T}unsupported" >&6; } ;;
2.1898 + *)
2.1899 + CC="$CC $ac_cv_prog_cc_c89"
2.1900 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2.1901 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2.1902 +esac
2.1903 +
2.1904 +
2.1905 +ac_ext=c
2.1906 +ac_cpp='$CPP $CPPFLAGS'
2.1907 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.1908 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.1909 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.1910 +
2.1911 +depcc="$CC" am_compiler_list=
2.1912 +
2.1913 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.1914 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.1915 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2.1916 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.1917 +else
2.1918 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.1919 + # We make a subdir and do the tests there. Otherwise we can end up
2.1920 + # making bogus files that we don't know about and never remove. For
2.1921 + # instance it was reported that on HP-UX the gcc test will end up
2.1922 + # making a dummy file named `D' -- because `-MD' means `put the output
2.1923 + # in D'.
2.1924 + mkdir conftest.dir
2.1925 + # Copy depcomp to subdir because otherwise we won't find it if we're
2.1926 + # using a relative directory.
2.1927 + cp "$am_depcomp" conftest.dir
2.1928 + cd conftest.dir
2.1929 + # We will build objects and dependencies in a subdirectory because
2.1930 + # it helps to detect inapplicable dependency modes. For instance
2.1931 + # both Tru64's cc and ICC support -MD to output dependencies as a
2.1932 + # side effect of compilation, but ICC will put the dependencies in
2.1933 + # the current directory while Tru64 will put them in the object
2.1934 + # directory.
2.1935 + mkdir sub
2.1936 +
2.1937 + am_cv_CC_dependencies_compiler_type=none
2.1938 + if test "$am_compiler_list" = ""; then
2.1939 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.1940 + fi
2.1941 + for depmode in $am_compiler_list; do
2.1942 + # Setup a source with many dependencies, because some compilers
2.1943 + # like to wrap large dependency lists on column 80 (with \), and
2.1944 + # we should not choose a depcomp mode which is confused by this.
2.1945 + #
2.1946 + # We need to recreate these files for each test, as the compiler may
2.1947 + # overwrite some of them when testing with obscure command lines.
2.1948 + # This happens at least with the AIX C compiler.
2.1949 + : > sub/conftest.c
2.1950 + for i in 1 2 3 4 5 6; do
2.1951 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.1952 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.1953 + # Solaris 8's {/usr,}/bin/sh.
2.1954 + touch sub/conftst$i.h
2.1955 + done
2.1956 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.1957 +
2.1958 + case $depmode in
2.1959 + nosideeffect)
2.1960 + # after this tag, mechanisms are not by side-effect, so they'll
2.1961 + # only be used when explicitly requested
2.1962 + if test "x$enable_dependency_tracking" = xyes; then
2.1963 + continue
2.1964 + else
2.1965 + break
2.1966 + fi
2.1967 + ;;
2.1968 + none) break ;;
2.1969 + esac
2.1970 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.1971 + # mode. It turns out that the SunPro C++ compiler does not properly
2.1972 + # handle `-M -o', and we need to detect this.
2.1973 + if depmode=$depmode \
2.1974 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.1975 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.1976 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.1977 + >/dev/null 2>conftest.err &&
2.1978 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.1979 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.1980 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.1981 + # icc doesn't choke on unknown options, it will just issue warnings
2.1982 + # or remarks (even with -Werror). So we grep stderr for any message
2.1983 + # that says an option was ignored or not supported.
2.1984 + # When given -MP, icc 7.0 and 7.1 complain thusly:
2.1985 + # icc: Command line warning: ignoring option '-M'; no argument required
2.1986 + # The diagnosis changed in icc 8.0:
2.1987 + # icc: Command line remark: option '-MP' not supported
2.1988 + if (grep 'ignoring option' conftest.err ||
2.1989 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.1990 + am_cv_CC_dependencies_compiler_type=$depmode
2.1991 + break
2.1992 + fi
2.1993 + fi
2.1994 + done
2.1995 +
2.1996 + cd ..
2.1997 + rm -rf conftest.dir
2.1998 +else
2.1999 + am_cv_CC_dependencies_compiler_type=none
2.2000 +fi
2.2001 +
2.2002 +fi
2.2003 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2.2004 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2.2005 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2.2006 +
2.2007 +
2.2008 +
2.2009 +if
2.2010 + test "x$enable_dependency_tracking" != xno \
2.2011 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2.2012 + am__fastdepCC_TRUE=
2.2013 + am__fastdepCC_FALSE='#'
2.2014 +else
2.2015 + am__fastdepCC_TRUE='#'
2.2016 + am__fastdepCC_FALSE=
2.2017 +fi
2.2018 +
2.2019 +
2.2020 +ac_ext=c
2.2021 +ac_cpp='$CPP $CPPFLAGS'
2.2022 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.2023 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.2024 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.2025 +if test -n "$ac_tool_prefix"; then
2.2026 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.2027 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
2.2028 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.2029 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.2030 +if test "${ac_cv_prog_CC+set}" = set; then
2.2031 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2032 +else
2.2033 + if test -n "$CC"; then
2.2034 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.2035 +else
2.2036 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.2037 +for as_dir in $PATH
2.2038 +do
2.2039 + IFS=$as_save_IFS
2.2040 + test -z "$as_dir" && as_dir=.
2.2041 + for ac_exec_ext in '' $ac_executable_extensions; do
2.2042 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.2043 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
2.2044 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.2045 + break 2
2.2046 + fi
2.2047 +done
2.2048 +done
2.2049 +IFS=$as_save_IFS
2.2050 +
2.2051 +fi
2.2052 +fi
2.2053 +CC=$ac_cv_prog_CC
2.2054 +if test -n "$CC"; then
2.2055 + { echo "$as_me:$LINENO: result: $CC" >&5
2.2056 +echo "${ECHO_T}$CC" >&6; }
2.2057 +else
2.2058 + { echo "$as_me:$LINENO: result: no" >&5
2.2059 +echo "${ECHO_T}no" >&6; }
2.2060 +fi
2.2061 +
2.2062 +
2.2063 +fi
2.2064 +if test -z "$ac_cv_prog_CC"; then
2.2065 + ac_ct_CC=$CC
2.2066 + # Extract the first word of "gcc", so it can be a program name with args.
2.2067 +set dummy gcc; ac_word=$2
2.2068 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.2069 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.2070 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.2071 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2072 +else
2.2073 + if test -n "$ac_ct_CC"; then
2.2074 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.2075 +else
2.2076 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.2077 +for as_dir in $PATH
2.2078 +do
2.2079 + IFS=$as_save_IFS
2.2080 + test -z "$as_dir" && as_dir=.
2.2081 + for ac_exec_ext in '' $ac_executable_extensions; do
2.2082 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.2083 + ac_cv_prog_ac_ct_CC="gcc"
2.2084 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.2085 + break 2
2.2086 + fi
2.2087 +done
2.2088 +done
2.2089 +IFS=$as_save_IFS
2.2090 +
2.2091 +fi
2.2092 +fi
2.2093 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.2094 +if test -n "$ac_ct_CC"; then
2.2095 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.2096 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2.2097 +else
2.2098 + { echo "$as_me:$LINENO: result: no" >&5
2.2099 +echo "${ECHO_T}no" >&6; }
2.2100 +fi
2.2101 +
2.2102 + if test "x$ac_ct_CC" = x; then
2.2103 + CC=""
2.2104 + else
2.2105 + case $cross_compiling:$ac_tool_warned in
2.2106 +yes:)
2.2107 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.2108 +whose name does not start with the host triplet. If you think this
2.2109 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.2110 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.2111 +whose name does not start with the host triplet. If you think this
2.2112 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.2113 +ac_tool_warned=yes ;;
2.2114 +esac
2.2115 + CC=$ac_ct_CC
2.2116 + fi
2.2117 +else
2.2118 + CC="$ac_cv_prog_CC"
2.2119 +fi
2.2120 +
2.2121 +if test -z "$CC"; then
2.2122 + if test -n "$ac_tool_prefix"; then
2.2123 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.2124 +set dummy ${ac_tool_prefix}cc; ac_word=$2
2.2125 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.2126 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.2127 +if test "${ac_cv_prog_CC+set}" = set; then
2.2128 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2129 +else
2.2130 + if test -n "$CC"; then
2.2131 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.2132 +else
2.2133 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.2134 +for as_dir in $PATH
2.2135 +do
2.2136 + IFS=$as_save_IFS
2.2137 + test -z "$as_dir" && as_dir=.
2.2138 + for ac_exec_ext in '' $ac_executable_extensions; do
2.2139 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.2140 + ac_cv_prog_CC="${ac_tool_prefix}cc"
2.2141 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.2142 + break 2
2.2143 + fi
2.2144 +done
2.2145 +done
2.2146 +IFS=$as_save_IFS
2.2147 +
2.2148 +fi
2.2149 +fi
2.2150 +CC=$ac_cv_prog_CC
2.2151 +if test -n "$CC"; then
2.2152 + { echo "$as_me:$LINENO: result: $CC" >&5
2.2153 +echo "${ECHO_T}$CC" >&6; }
2.2154 +else
2.2155 + { echo "$as_me:$LINENO: result: no" >&5
2.2156 +echo "${ECHO_T}no" >&6; }
2.2157 +fi
2.2158 +
2.2159 +
2.2160 + fi
2.2161 +fi
2.2162 +if test -z "$CC"; then
2.2163 + # Extract the first word of "cc", so it can be a program name with args.
2.2164 +set dummy cc; ac_word=$2
2.2165 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.2166 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.2167 +if test "${ac_cv_prog_CC+set}" = set; then
2.2168 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2169 +else
2.2170 + if test -n "$CC"; then
2.2171 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.2172 +else
2.2173 + ac_prog_rejected=no
2.2174 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.2175 +for as_dir in $PATH
2.2176 +do
2.2177 + IFS=$as_save_IFS
2.2178 + test -z "$as_dir" && as_dir=.
2.2179 + for ac_exec_ext in '' $ac_executable_extensions; do
2.2180 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.2181 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.2182 + ac_prog_rejected=yes
2.2183 + continue
2.2184 + fi
2.2185 + ac_cv_prog_CC="cc"
2.2186 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.2187 + break 2
2.2188 + fi
2.2189 +done
2.2190 +done
2.2191 +IFS=$as_save_IFS
2.2192 +
2.2193 +if test $ac_prog_rejected = yes; then
2.2194 + # We found a bogon in the path, so make sure we never use it.
2.2195 + set dummy $ac_cv_prog_CC
2.2196 + shift
2.2197 + if test $# != 0; then
2.2198 + # We chose a different compiler from the bogus one.
2.2199 + # However, it has the same basename, so the bogon will be chosen
2.2200 + # first if we set CC to just the basename; use the full file name.
2.2201 + shift
2.2202 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2.2203 + fi
2.2204 +fi
2.2205 +fi
2.2206 +fi
2.2207 +CC=$ac_cv_prog_CC
2.2208 +if test -n "$CC"; then
2.2209 + { echo "$as_me:$LINENO: result: $CC" >&5
2.2210 +echo "${ECHO_T}$CC" >&6; }
2.2211 +else
2.2212 + { echo "$as_me:$LINENO: result: no" >&5
2.2213 +echo "${ECHO_T}no" >&6; }
2.2214 +fi
2.2215 +
2.2216 +
2.2217 +fi
2.2218 +if test -z "$CC"; then
2.2219 + if test -n "$ac_tool_prefix"; then
2.2220 + for ac_prog in cl.exe
2.2221 + do
2.2222 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.2223 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.2224 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.2225 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.2226 +if test "${ac_cv_prog_CC+set}" = set; then
2.2227 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2228 +else
2.2229 + if test -n "$CC"; then
2.2230 + ac_cv_prog_CC="$CC" # Let the user override the test.
2.2231 +else
2.2232 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.2233 +for as_dir in $PATH
2.2234 +do
2.2235 + IFS=$as_save_IFS
2.2236 + test -z "$as_dir" && as_dir=.
2.2237 + for ac_exec_ext in '' $ac_executable_extensions; do
2.2238 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.2239 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2.2240 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.2241 + break 2
2.2242 + fi
2.2243 +done
2.2244 +done
2.2245 +IFS=$as_save_IFS
2.2246 +
2.2247 +fi
2.2248 +fi
2.2249 +CC=$ac_cv_prog_CC
2.2250 +if test -n "$CC"; then
2.2251 + { echo "$as_me:$LINENO: result: $CC" >&5
2.2252 +echo "${ECHO_T}$CC" >&6; }
2.2253 +else
2.2254 + { echo "$as_me:$LINENO: result: no" >&5
2.2255 +echo "${ECHO_T}no" >&6; }
2.2256 +fi
2.2257 +
2.2258 +
2.2259 + test -n "$CC" && break
2.2260 + done
2.2261 +fi
2.2262 +if test -z "$CC"; then
2.2263 + ac_ct_CC=$CC
2.2264 + for ac_prog in cl.exe
2.2265 +do
2.2266 + # Extract the first word of "$ac_prog", so it can be a program name with args.
2.2267 +set dummy $ac_prog; ac_word=$2
2.2268 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.2269 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.2270 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.2271 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2272 +else
2.2273 + if test -n "$ac_ct_CC"; then
2.2274 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.2275 +else
2.2276 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.2277 +for as_dir in $PATH
2.2278 +do
2.2279 + IFS=$as_save_IFS
2.2280 + test -z "$as_dir" && as_dir=.
2.2281 + for ac_exec_ext in '' $ac_executable_extensions; do
2.2282 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.2283 + ac_cv_prog_ac_ct_CC="$ac_prog"
2.2284 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.2285 + break 2
2.2286 + fi
2.2287 +done
2.2288 +done
2.2289 +IFS=$as_save_IFS
2.2290 +
2.2291 +fi
2.2292 +fi
2.2293 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.2294 +if test -n "$ac_ct_CC"; then
2.2295 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.2296 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2.2297 +else
2.2298 + { echo "$as_me:$LINENO: result: no" >&5
2.2299 +echo "${ECHO_T}no" >&6; }
2.2300 +fi
2.2301 +
2.2302 +
2.2303 + test -n "$ac_ct_CC" && break
2.2304 +done
2.2305 +
2.2306 + if test "x$ac_ct_CC" = x; then
2.2307 + CC=""
2.2308 + else
2.2309 + case $cross_compiling:$ac_tool_warned in
2.2310 +yes:)
2.2311 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.2312 +whose name does not start with the host triplet. If you think this
2.2313 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.2314 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.2315 +whose name does not start with the host triplet. If you think this
2.2316 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.2317 +ac_tool_warned=yes ;;
2.2318 +esac
2.2319 + CC=$ac_ct_CC
2.2320 + fi
2.2321 +fi
2.2322 +
2.2323 +fi
2.2324 +
2.2325 +
2.2326 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.2327 +See \`config.log' for more details." >&5
2.2328 +echo "$as_me: error: no acceptable C compiler found in \$PATH
2.2329 +See \`config.log' for more details." >&2;}
2.2330 + { (exit 1); exit 1; }; }
2.2331 +
2.2332 +# Provide some information about the compiler.
2.2333 +echo "$as_me:$LINENO: checking for C compiler version" >&5
2.2334 +ac_compiler=`set X $ac_compile; echo $2`
2.2335 +{ (ac_try="$ac_compiler --version >&5"
2.2336 +case "(($ac_try" in
2.2337 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2338 + *) ac_try_echo=$ac_try;;
2.2339 +esac
2.2340 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2341 + (eval "$ac_compiler --version >&5") 2>&5
2.2342 + ac_status=$?
2.2343 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2344 + (exit $ac_status); }
2.2345 +{ (ac_try="$ac_compiler -v >&5"
2.2346 +case "(($ac_try" in
2.2347 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2348 + *) ac_try_echo=$ac_try;;
2.2349 +esac
2.2350 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2351 + (eval "$ac_compiler -v >&5") 2>&5
2.2352 + ac_status=$?
2.2353 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2354 + (exit $ac_status); }
2.2355 +{ (ac_try="$ac_compiler -V >&5"
2.2356 +case "(($ac_try" in
2.2357 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2358 + *) ac_try_echo=$ac_try;;
2.2359 +esac
2.2360 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2361 + (eval "$ac_compiler -V >&5") 2>&5
2.2362 + ac_status=$?
2.2363 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2364 + (exit $ac_status); }
2.2365 +
2.2366 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.2367 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.2368 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.2369 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2370 +else
2.2371 + cat >conftest.$ac_ext <<_ACEOF
2.2372 +/* confdefs.h. */
2.2373 +_ACEOF
2.2374 +cat confdefs.h >>conftest.$ac_ext
2.2375 +cat >>conftest.$ac_ext <<_ACEOF
2.2376 +/* end confdefs.h. */
2.2377 +
2.2378 +int
2.2379 +main ()
2.2380 +{
2.2381 +#ifndef __GNUC__
2.2382 + choke me
2.2383 +#endif
2.2384 +
2.2385 + ;
2.2386 + return 0;
2.2387 +}
2.2388 +_ACEOF
2.2389 +rm -f conftest.$ac_objext
2.2390 +if { (ac_try="$ac_compile"
2.2391 +case "(($ac_try" in
2.2392 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2393 + *) ac_try_echo=$ac_try;;
2.2394 +esac
2.2395 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2396 + (eval "$ac_compile") 2>conftest.er1
2.2397 + ac_status=$?
2.2398 + grep -v '^ *+' conftest.er1 >conftest.err
2.2399 + rm -f conftest.er1
2.2400 + cat conftest.err >&5
2.2401 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2402 + (exit $ac_status); } && {
2.2403 + test -z "$ac_c_werror_flag" ||
2.2404 + test ! -s conftest.err
2.2405 + } && test -s conftest.$ac_objext; then
2.2406 + ac_compiler_gnu=yes
2.2407 +else
2.2408 + echo "$as_me: failed program was:" >&5
2.2409 +sed 's/^/| /' conftest.$ac_ext >&5
2.2410 +
2.2411 + ac_compiler_gnu=no
2.2412 +fi
2.2413 +
2.2414 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.2415 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
2.2416 +
2.2417 +fi
2.2418 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.2419 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.2420 +GCC=`test $ac_compiler_gnu = yes && echo yes`
2.2421 +ac_test_CFLAGS=${CFLAGS+set}
2.2422 +ac_save_CFLAGS=$CFLAGS
2.2423 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2.2424 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2.2425 +if test "${ac_cv_prog_cc_g+set}" = set; then
2.2426 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2427 +else
2.2428 + ac_save_c_werror_flag=$ac_c_werror_flag
2.2429 + ac_c_werror_flag=yes
2.2430 + ac_cv_prog_cc_g=no
2.2431 + CFLAGS="-g"
2.2432 + cat >conftest.$ac_ext <<_ACEOF
2.2433 +/* confdefs.h. */
2.2434 +_ACEOF
2.2435 +cat confdefs.h >>conftest.$ac_ext
2.2436 +cat >>conftest.$ac_ext <<_ACEOF
2.2437 +/* end confdefs.h. */
2.2438 +
2.2439 +int
2.2440 +main ()
2.2441 +{
2.2442 +
2.2443 + ;
2.2444 + return 0;
2.2445 +}
2.2446 +_ACEOF
2.2447 +rm -f conftest.$ac_objext
2.2448 +if { (ac_try="$ac_compile"
2.2449 +case "(($ac_try" in
2.2450 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2451 + *) ac_try_echo=$ac_try;;
2.2452 +esac
2.2453 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2454 + (eval "$ac_compile") 2>conftest.er1
2.2455 + ac_status=$?
2.2456 + grep -v '^ *+' conftest.er1 >conftest.err
2.2457 + rm -f conftest.er1
2.2458 + cat conftest.err >&5
2.2459 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2460 + (exit $ac_status); } && {
2.2461 + test -z "$ac_c_werror_flag" ||
2.2462 + test ! -s conftest.err
2.2463 + } && test -s conftest.$ac_objext; then
2.2464 + ac_cv_prog_cc_g=yes
2.2465 +else
2.2466 + echo "$as_me: failed program was:" >&5
2.2467 +sed 's/^/| /' conftest.$ac_ext >&5
2.2468 +
2.2469 + CFLAGS=""
2.2470 + cat >conftest.$ac_ext <<_ACEOF
2.2471 +/* confdefs.h. */
2.2472 +_ACEOF
2.2473 +cat confdefs.h >>conftest.$ac_ext
2.2474 +cat >>conftest.$ac_ext <<_ACEOF
2.2475 +/* end confdefs.h. */
2.2476 +
2.2477 +int
2.2478 +main ()
2.2479 +{
2.2480 +
2.2481 + ;
2.2482 + return 0;
2.2483 +}
2.2484 +_ACEOF
2.2485 +rm -f conftest.$ac_objext
2.2486 +if { (ac_try="$ac_compile"
2.2487 +case "(($ac_try" in
2.2488 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2489 + *) ac_try_echo=$ac_try;;
2.2490 +esac
2.2491 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2492 + (eval "$ac_compile") 2>conftest.er1
2.2493 + ac_status=$?
2.2494 + grep -v '^ *+' conftest.er1 >conftest.err
2.2495 + rm -f conftest.er1
2.2496 + cat conftest.err >&5
2.2497 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2498 + (exit $ac_status); } && {
2.2499 + test -z "$ac_c_werror_flag" ||
2.2500 + test ! -s conftest.err
2.2501 + } && test -s conftest.$ac_objext; then
2.2502 + :
2.2503 +else
2.2504 + echo "$as_me: failed program was:" >&5
2.2505 +sed 's/^/| /' conftest.$ac_ext >&5
2.2506 +
2.2507 + ac_c_werror_flag=$ac_save_c_werror_flag
2.2508 + CFLAGS="-g"
2.2509 + cat >conftest.$ac_ext <<_ACEOF
2.2510 +/* confdefs.h. */
2.2511 +_ACEOF
2.2512 +cat confdefs.h >>conftest.$ac_ext
2.2513 +cat >>conftest.$ac_ext <<_ACEOF
2.2514 +/* end confdefs.h. */
2.2515 +
2.2516 +int
2.2517 +main ()
2.2518 +{
2.2519 +
2.2520 + ;
2.2521 + return 0;
2.2522 +}
2.2523 +_ACEOF
2.2524 +rm -f conftest.$ac_objext
2.2525 +if { (ac_try="$ac_compile"
2.2526 +case "(($ac_try" in
2.2527 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2528 + *) ac_try_echo=$ac_try;;
2.2529 +esac
2.2530 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2531 + (eval "$ac_compile") 2>conftest.er1
2.2532 + ac_status=$?
2.2533 + grep -v '^ *+' conftest.er1 >conftest.err
2.2534 + rm -f conftest.er1
2.2535 + cat conftest.err >&5
2.2536 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2537 + (exit $ac_status); } && {
2.2538 + test -z "$ac_c_werror_flag" ||
2.2539 + test ! -s conftest.err
2.2540 + } && test -s conftest.$ac_objext; then
2.2541 + ac_cv_prog_cc_g=yes
2.2542 +else
2.2543 + echo "$as_me: failed program was:" >&5
2.2544 +sed 's/^/| /' conftest.$ac_ext >&5
2.2545 +
2.2546 +
2.2547 +fi
2.2548 +
2.2549 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.2550 +fi
2.2551 +
2.2552 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.2553 +fi
2.2554 +
2.2555 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.2556 + ac_c_werror_flag=$ac_save_c_werror_flag
2.2557 +fi
2.2558 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2.2559 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2.2560 +if test "$ac_test_CFLAGS" = set; then
2.2561 + CFLAGS=$ac_save_CFLAGS
2.2562 +elif test $ac_cv_prog_cc_g = yes; then
2.2563 + if test "$GCC" = yes; then
2.2564 + CFLAGS="-g -O2"
2.2565 + else
2.2566 + CFLAGS="-g"
2.2567 + fi
2.2568 +else
2.2569 + if test "$GCC" = yes; then
2.2570 + CFLAGS="-O2"
2.2571 + else
2.2572 + CFLAGS=
2.2573 + fi
2.2574 +fi
2.2575 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2.2576 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2.2577 +if test "${ac_cv_prog_cc_c89+set}" = set; then
2.2578 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2579 +else
2.2580 + ac_cv_prog_cc_c89=no
2.2581 +ac_save_CC=$CC
2.2582 +cat >conftest.$ac_ext <<_ACEOF
2.2583 +/* confdefs.h. */
2.2584 +_ACEOF
2.2585 +cat confdefs.h >>conftest.$ac_ext
2.2586 +cat >>conftest.$ac_ext <<_ACEOF
2.2587 +/* end confdefs.h. */
2.2588 +#include <stdarg.h>
2.2589 +#include <stdio.h>
2.2590 +#include <sys/types.h>
2.2591 +#include <sys/stat.h>
2.2592 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.2593 +struct buf { int x; };
2.2594 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.2595 +static char *e (p, i)
2.2596 + char **p;
2.2597 + int i;
2.2598 +{
2.2599 + return p[i];
2.2600 +}
2.2601 +static char *f (char * (*g) (char **, int), char **p, ...)
2.2602 +{
2.2603 + char *s;
2.2604 + va_list v;
2.2605 + va_start (v,p);
2.2606 + s = g (p, va_arg (v,int));
2.2607 + va_end (v);
2.2608 + return s;
2.2609 +}
2.2610 +
2.2611 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.2612 + function prototypes and stuff, but not '\xHH' hex character constants.
2.2613 + These don't provoke an error unfortunately, instead are silently treated
2.2614 + as 'x'. The following induces an error, until -std is added to get
2.2615 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.2616 + array size at least. It's necessary to write '\x00'==0 to get something
2.2617 + that's true only with -std. */
2.2618 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.2619 +
2.2620 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.2621 + inside strings and character constants. */
2.2622 +#define FOO(x) 'x'
2.2623 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.2624 +
2.2625 +int test (int i, double x);
2.2626 +struct s1 {int (*f) (int a);};
2.2627 +struct s2 {int (*f) (double a);};
2.2628 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.2629 +int argc;
2.2630 +char **argv;
2.2631 +int
2.2632 +main ()
2.2633 +{
2.2634 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.2635 + ;
2.2636 + return 0;
2.2637 +}
2.2638 +_ACEOF
2.2639 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.2640 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.2641 +do
2.2642 + CC="$ac_save_CC $ac_arg"
2.2643 + rm -f conftest.$ac_objext
2.2644 +if { (ac_try="$ac_compile"
2.2645 +case "(($ac_try" in
2.2646 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2647 + *) ac_try_echo=$ac_try;;
2.2648 +esac
2.2649 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2650 + (eval "$ac_compile") 2>conftest.er1
2.2651 + ac_status=$?
2.2652 + grep -v '^ *+' conftest.er1 >conftest.err
2.2653 + rm -f conftest.er1
2.2654 + cat conftest.err >&5
2.2655 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2656 + (exit $ac_status); } && {
2.2657 + test -z "$ac_c_werror_flag" ||
2.2658 + test ! -s conftest.err
2.2659 + } && test -s conftest.$ac_objext; then
2.2660 + ac_cv_prog_cc_c89=$ac_arg
2.2661 +else
2.2662 + echo "$as_me: failed program was:" >&5
2.2663 +sed 's/^/| /' conftest.$ac_ext >&5
2.2664 +
2.2665 +
2.2666 +fi
2.2667 +
2.2668 +rm -f core conftest.err conftest.$ac_objext
2.2669 + test "x$ac_cv_prog_cc_c89" != "xno" && break
2.2670 +done
2.2671 +rm -f conftest.$ac_ext
2.2672 +CC=$ac_save_CC
2.2673 +
2.2674 +fi
2.2675 +# AC_CACHE_VAL
2.2676 +case "x$ac_cv_prog_cc_c89" in
2.2677 + x)
2.2678 + { echo "$as_me:$LINENO: result: none needed" >&5
2.2679 +echo "${ECHO_T}none needed" >&6; } ;;
2.2680 + xno)
2.2681 + { echo "$as_me:$LINENO: result: unsupported" >&5
2.2682 +echo "${ECHO_T}unsupported" >&6; } ;;
2.2683 + *)
2.2684 + CC="$CC $ac_cv_prog_cc_c89"
2.2685 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2.2686 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2.2687 +esac
2.2688 +
2.2689 +
2.2690 +ac_ext=c
2.2691 +ac_cpp='$CPP $CPPFLAGS'
2.2692 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.2693 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.2694 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.2695 +
2.2696 +depcc="$CC" am_compiler_list=
2.2697 +
2.2698 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.2699 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.2700 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2.2701 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2702 +else
2.2703 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.2704 + # We make a subdir and do the tests there. Otherwise we can end up
2.2705 + # making bogus files that we don't know about and never remove. For
2.2706 + # instance it was reported that on HP-UX the gcc test will end up
2.2707 + # making a dummy file named `D' -- because `-MD' means `put the output
2.2708 + # in D'.
2.2709 + mkdir conftest.dir
2.2710 + # Copy depcomp to subdir because otherwise we won't find it if we're
2.2711 + # using a relative directory.
2.2712 + cp "$am_depcomp" conftest.dir
2.2713 + cd conftest.dir
2.2714 + # We will build objects and dependencies in a subdirectory because
2.2715 + # it helps to detect inapplicable dependency modes. For instance
2.2716 + # both Tru64's cc and ICC support -MD to output dependencies as a
2.2717 + # side effect of compilation, but ICC will put the dependencies in
2.2718 + # the current directory while Tru64 will put them in the object
2.2719 + # directory.
2.2720 + mkdir sub
2.2721 +
2.2722 + am_cv_CC_dependencies_compiler_type=none
2.2723 + if test "$am_compiler_list" = ""; then
2.2724 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.2725 + fi
2.2726 + for depmode in $am_compiler_list; do
2.2727 + # Setup a source with many dependencies, because some compilers
2.2728 + # like to wrap large dependency lists on column 80 (with \), and
2.2729 + # we should not choose a depcomp mode which is confused by this.
2.2730 + #
2.2731 + # We need to recreate these files for each test, as the compiler may
2.2732 + # overwrite some of them when testing with obscure command lines.
2.2733 + # This happens at least with the AIX C compiler.
2.2734 + : > sub/conftest.c
2.2735 + for i in 1 2 3 4 5 6; do
2.2736 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.2737 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.2738 + # Solaris 8's {/usr,}/bin/sh.
2.2739 + touch sub/conftst$i.h
2.2740 + done
2.2741 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.2742 +
2.2743 + case $depmode in
2.2744 + nosideeffect)
2.2745 + # after this tag, mechanisms are not by side-effect, so they'll
2.2746 + # only be used when explicitly requested
2.2747 + if test "x$enable_dependency_tracking" = xyes; then
2.2748 + continue
2.2749 + else
2.2750 + break
2.2751 + fi
2.2752 + ;;
2.2753 + none) break ;;
2.2754 + esac
2.2755 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.2756 + # mode. It turns out that the SunPro C++ compiler does not properly
2.2757 + # handle `-M -o', and we need to detect this.
2.2758 + if depmode=$depmode \
2.2759 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.2760 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.2761 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.2762 + >/dev/null 2>conftest.err &&
2.2763 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.2764 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.2765 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.2766 + # icc doesn't choke on unknown options, it will just issue warnings
2.2767 + # or remarks (even with -Werror). So we grep stderr for any message
2.2768 + # that says an option was ignored or not supported.
2.2769 + # When given -MP, icc 7.0 and 7.1 complain thusly:
2.2770 + # icc: Command line warning: ignoring option '-M'; no argument required
2.2771 + # The diagnosis changed in icc 8.0:
2.2772 + # icc: Command line remark: option '-MP' not supported
2.2773 + if (grep 'ignoring option' conftest.err ||
2.2774 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.2775 + am_cv_CC_dependencies_compiler_type=$depmode
2.2776 + break
2.2777 + fi
2.2778 + fi
2.2779 + done
2.2780 +
2.2781 + cd ..
2.2782 + rm -rf conftest.dir
2.2783 +else
2.2784 + am_cv_CC_dependencies_compiler_type=none
2.2785 +fi
2.2786 +
2.2787 +fi
2.2788 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2.2789 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2.2790 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2.2791 +
2.2792 +
2.2793 +
2.2794 +if
2.2795 + test "x$enable_dependency_tracking" != xno \
2.2796 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2.2797 + am__fastdepCC_TRUE=
2.2798 + am__fastdepCC_FALSE='#'
2.2799 +else
2.2800 + am__fastdepCC_TRUE='#'
2.2801 + am__fastdepCC_FALSE=
2.2802 +fi
2.2803 +
2.2804 +
2.2805 +
2.2806 +am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
2.2807 +
2.2808 +ac_ext=c
2.2809 +ac_cpp='$CPP $CPPFLAGS'
2.2810 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.2811 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.2812 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.2813 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2.2814 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2.2815 +# On Suns, sometimes $CPP names a directory.
2.2816 +if test -n "$CPP" && test -d "$CPP"; then
2.2817 + CPP=
2.2818 +fi
2.2819 +if test -z "$CPP"; then
2.2820 + if test "${ac_cv_prog_CPP+set}" = set; then
2.2821 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.2822 +else
2.2823 + # Double quotes because CPP needs to be expanded
2.2824 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2.2825 + do
2.2826 + ac_preproc_ok=false
2.2827 +for ac_c_preproc_warn_flag in '' yes
2.2828 +do
2.2829 + # Use a header file that comes with gcc, so configuring glibc
2.2830 + # with a fresh cross-compiler works.
2.2831 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2.2832 + # <limits.h> exists even on freestanding compilers.
2.2833 + # On the NeXT, cc -E runs the code through the compiler's parser,
2.2834 + # not just through cpp. "Syntax error" is here to catch this case.
2.2835 + cat >conftest.$ac_ext <<_ACEOF
2.2836 +/* confdefs.h. */
2.2837 +_ACEOF
2.2838 +cat confdefs.h >>conftest.$ac_ext
2.2839 +cat >>conftest.$ac_ext <<_ACEOF
2.2840 +/* end confdefs.h. */
2.2841 +#ifdef __STDC__
2.2842 +# include <limits.h>
2.2843 +#else
2.2844 +# include <assert.h>
2.2845 +#endif
2.2846 + Syntax error
2.2847 +_ACEOF
2.2848 +if { (ac_try="$ac_cpp conftest.$ac_ext"
2.2849 +case "(($ac_try" in
2.2850 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2851 + *) ac_try_echo=$ac_try;;
2.2852 +esac
2.2853 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2854 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2.2855 + ac_status=$?
2.2856 + grep -v '^ *+' conftest.er1 >conftest.err
2.2857 + rm -f conftest.er1
2.2858 + cat conftest.err >&5
2.2859 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2860 + (exit $ac_status); } >/dev/null && {
2.2861 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.2862 + test ! -s conftest.err
2.2863 + }; then
2.2864 + :
2.2865 +else
2.2866 + echo "$as_me: failed program was:" >&5
2.2867 +sed 's/^/| /' conftest.$ac_ext >&5
2.2868 +
2.2869 + # Broken: fails on valid input.
2.2870 +continue
2.2871 +fi
2.2872 +
2.2873 +rm -f conftest.err conftest.$ac_ext
2.2874 +
2.2875 + # OK, works on sane cases. Now check whether nonexistent headers
2.2876 + # can be detected and how.
2.2877 + cat >conftest.$ac_ext <<_ACEOF
2.2878 +/* confdefs.h. */
2.2879 +_ACEOF
2.2880 +cat confdefs.h >>conftest.$ac_ext
2.2881 +cat >>conftest.$ac_ext <<_ACEOF
2.2882 +/* end confdefs.h. */
2.2883 +#include <ac_nonexistent.h>
2.2884 +_ACEOF
2.2885 +if { (ac_try="$ac_cpp conftest.$ac_ext"
2.2886 +case "(($ac_try" in
2.2887 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2888 + *) ac_try_echo=$ac_try;;
2.2889 +esac
2.2890 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2891 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2.2892 + ac_status=$?
2.2893 + grep -v '^ *+' conftest.er1 >conftest.err
2.2894 + rm -f conftest.er1
2.2895 + cat conftest.err >&5
2.2896 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2897 + (exit $ac_status); } >/dev/null && {
2.2898 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.2899 + test ! -s conftest.err
2.2900 + }; then
2.2901 + # Broken: success on invalid input.
2.2902 +continue
2.2903 +else
2.2904 + echo "$as_me: failed program was:" >&5
2.2905 +sed 's/^/| /' conftest.$ac_ext >&5
2.2906 +
2.2907 + # Passes both tests.
2.2908 +ac_preproc_ok=:
2.2909 +break
2.2910 +fi
2.2911 +
2.2912 +rm -f conftest.err conftest.$ac_ext
2.2913 +
2.2914 +done
2.2915 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2.2916 +rm -f conftest.err conftest.$ac_ext
2.2917 +if $ac_preproc_ok; then
2.2918 + break
2.2919 +fi
2.2920 +
2.2921 + done
2.2922 + ac_cv_prog_CPP=$CPP
2.2923 +
2.2924 +fi
2.2925 + CPP=$ac_cv_prog_CPP
2.2926 +else
2.2927 + ac_cv_prog_CPP=$CPP
2.2928 +fi
2.2929 +{ echo "$as_me:$LINENO: result: $CPP" >&5
2.2930 +echo "${ECHO_T}$CPP" >&6; }
2.2931 +ac_preproc_ok=false
2.2932 +for ac_c_preproc_warn_flag in '' yes
2.2933 +do
2.2934 + # Use a header file that comes with gcc, so configuring glibc
2.2935 + # with a fresh cross-compiler works.
2.2936 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2.2937 + # <limits.h> exists even on freestanding compilers.
2.2938 + # On the NeXT, cc -E runs the code through the compiler's parser,
2.2939 + # not just through cpp. "Syntax error" is here to catch this case.
2.2940 + cat >conftest.$ac_ext <<_ACEOF
2.2941 +/* confdefs.h. */
2.2942 +_ACEOF
2.2943 +cat confdefs.h >>conftest.$ac_ext
2.2944 +cat >>conftest.$ac_ext <<_ACEOF
2.2945 +/* end confdefs.h. */
2.2946 +#ifdef __STDC__
2.2947 +# include <limits.h>
2.2948 +#else
2.2949 +# include <assert.h>
2.2950 +#endif
2.2951 + Syntax error
2.2952 +_ACEOF
2.2953 +if { (ac_try="$ac_cpp conftest.$ac_ext"
2.2954 +case "(($ac_try" in
2.2955 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2956 + *) ac_try_echo=$ac_try;;
2.2957 +esac
2.2958 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2959 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2.2960 + ac_status=$?
2.2961 + grep -v '^ *+' conftest.er1 >conftest.err
2.2962 + rm -f conftest.er1
2.2963 + cat conftest.err >&5
2.2964 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.2965 + (exit $ac_status); } >/dev/null && {
2.2966 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.2967 + test ! -s conftest.err
2.2968 + }; then
2.2969 + :
2.2970 +else
2.2971 + echo "$as_me: failed program was:" >&5
2.2972 +sed 's/^/| /' conftest.$ac_ext >&5
2.2973 +
2.2974 + # Broken: fails on valid input.
2.2975 +continue
2.2976 +fi
2.2977 +
2.2978 +rm -f conftest.err conftest.$ac_ext
2.2979 +
2.2980 + # OK, works on sane cases. Now check whether nonexistent headers
2.2981 + # can be detected and how.
2.2982 + cat >conftest.$ac_ext <<_ACEOF
2.2983 +/* confdefs.h. */
2.2984 +_ACEOF
2.2985 +cat confdefs.h >>conftest.$ac_ext
2.2986 +cat >>conftest.$ac_ext <<_ACEOF
2.2987 +/* end confdefs.h. */
2.2988 +#include <ac_nonexistent.h>
2.2989 +_ACEOF
2.2990 +if { (ac_try="$ac_cpp conftest.$ac_ext"
2.2991 +case "(($ac_try" in
2.2992 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.2993 + *) ac_try_echo=$ac_try;;
2.2994 +esac
2.2995 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.2996 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2.2997 + ac_status=$?
2.2998 + grep -v '^ *+' conftest.er1 >conftest.err
2.2999 + rm -f conftest.er1
2.3000 + cat conftest.err >&5
2.3001 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3002 + (exit $ac_status); } >/dev/null && {
2.3003 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.3004 + test ! -s conftest.err
2.3005 + }; then
2.3006 + # Broken: success on invalid input.
2.3007 +continue
2.3008 +else
2.3009 + echo "$as_me: failed program was:" >&5
2.3010 +sed 's/^/| /' conftest.$ac_ext >&5
2.3011 +
2.3012 + # Passes both tests.
2.3013 +ac_preproc_ok=:
2.3014 +break
2.3015 +fi
2.3016 +
2.3017 +rm -f conftest.err conftest.$ac_ext
2.3018 +
2.3019 +done
2.3020 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2.3021 +rm -f conftest.err conftest.$ac_ext
2.3022 +if $ac_preproc_ok; then
2.3023 + :
2.3024 +else
2.3025 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2.3026 +See \`config.log' for more details." >&5
2.3027 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2.3028 +See \`config.log' for more details." >&2;}
2.3029 + { (exit 1); exit 1; }; }
2.3030 +fi
2.3031 +
2.3032 +ac_ext=c
2.3033 +ac_cpp='$CPP $CPPFLAGS'
2.3034 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.3035 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.3036 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.3037 +
2.3038 +
2.3039 +ac_main_cc="$CC"
2.3040 +test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
2.3041 +
2.3042 +if test -z "$CC_FOR_BUILD"; then
2.3043 + if test "$#" = yes; then
2.3044 + { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2.3045 +See \`config.log' for more details." >&5
2.3046 +echo "$as_me: error: cannot run test program while cross compiling
2.3047 +See \`config.log' for more details." >&2;}
2.3048 + { (exit 1); exit 1; }; }
2.3049 +else
2.3050 + cat >conftest.$ac_ext <<_ACEOF
2.3051 +int main(){return 0;}
2.3052 +_ACEOF
2.3053 +rm -f conftest$ac_exeext
2.3054 +if { (ac_try="$ac_link"
2.3055 +case "(($ac_try" in
2.3056 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3057 + *) ac_try_echo=$ac_try;;
2.3058 +esac
2.3059 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3060 + (eval "$ac_link") 2>&5
2.3061 + ac_status=$?
2.3062 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3063 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2.3064 + { (case "(($ac_try" in
2.3065 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3066 + *) ac_try_echo=$ac_try;;
2.3067 +esac
2.3068 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3069 + (eval "$ac_try") 2>&5
2.3070 + ac_status=$?
2.3071 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3072 + (exit $ac_status); }; }; then
2.3073 + CC_FOR_BUILD="$CC"
2.3074 +else
2.3075 + echo "$as_me: program exited with status $ac_status" >&5
2.3076 +echo "$as_me: failed program was:" >&5
2.3077 +sed 's/^/| /' conftest.$ac_ext >&5
2.3078 +
2.3079 +fi
2.3080 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2.3081 +fi
2.3082 +
2.3083 +
2.3084 +fi
2.3085 +
2.3086 +
2.3087 +ac_ext=c
2.3088 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
2.3089 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
2.3090 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.3091 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
2.3092 +if test -n "$ac_build_tool_prefix"; then
2.3093 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.3094 +set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
2.3095 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.3096 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.3097 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
2.3098 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3099 +else
2.3100 + if test -n "$CC_FOR_BUILD"; then
2.3101 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
2.3102 +else
2.3103 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.3104 +for as_dir in $PATH
2.3105 +do
2.3106 + IFS=$as_save_IFS
2.3107 + test -z "$as_dir" && as_dir=.
2.3108 + for ac_exec_ext in '' $ac_executable_extensions; do
2.3109 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.3110 + ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
2.3111 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.3112 + break 2
2.3113 + fi
2.3114 +done
2.3115 +done
2.3116 +IFS=$as_save_IFS
2.3117 +
2.3118 +fi
2.3119 +fi
2.3120 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
2.3121 +if test -n "$CC_FOR_BUILD"; then
2.3122 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
2.3123 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
2.3124 +else
2.3125 + { echo "$as_me:$LINENO: result: no" >&5
2.3126 +echo "${ECHO_T}no" >&6; }
2.3127 +fi
2.3128 +
2.3129 +
2.3130 +fi
2.3131 +if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
2.3132 + ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
2.3133 + # Extract the first word of "gcc", so it can be a program name with args.
2.3134 +set dummy gcc; ac_word=$2
2.3135 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.3136 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.3137 +if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
2.3138 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3139 +else
2.3140 + if test -n "$ac_ct_CC_FOR_BUILD"; then
2.3141 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
2.3142 +else
2.3143 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.3144 +for as_dir in $PATH
2.3145 +do
2.3146 + IFS=$as_save_IFS
2.3147 + test -z "$as_dir" && as_dir=.
2.3148 + for ac_exec_ext in '' $ac_executable_extensions; do
2.3149 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.3150 + ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
2.3151 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.3152 + break 2
2.3153 + fi
2.3154 +done
2.3155 +done
2.3156 +IFS=$as_save_IFS
2.3157 +
2.3158 +fi
2.3159 +fi
2.3160 +ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
2.3161 +if test -n "$ac_ct_CC_FOR_BUILD"; then
2.3162 + { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
2.3163 +echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
2.3164 +else
2.3165 + { echo "$as_me:$LINENO: result: no" >&5
2.3166 +echo "${ECHO_T}no" >&6; }
2.3167 +fi
2.3168 +
2.3169 + if test "x$ac_ct_CC_FOR_BUILD" = x; then
2.3170 + CC_FOR_BUILD=""
2.3171 + else
2.3172 + case $#:$ac_tool_warned in
2.3173 +yes:)
2.3174 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.3175 +whose name does not start with the build triplet. If you think this
2.3176 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.3177 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.3178 +whose name does not start with the build triplet. If you think this
2.3179 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.3180 +ac_tool_warned=yes ;;
2.3181 +esac
2.3182 + CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
2.3183 + fi
2.3184 +else
2.3185 + CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
2.3186 +fi
2.3187 +
2.3188 +if test -z "$CC_FOR_BUILD"; then
2.3189 + if test -n "$ac_build_tool_prefix"; then
2.3190 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.3191 +set dummy ${ac_build_tool_prefix}cc; ac_word=$2
2.3192 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.3193 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.3194 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
2.3195 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3196 +else
2.3197 + if test -n "$CC_FOR_BUILD"; then
2.3198 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
2.3199 +else
2.3200 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.3201 +for as_dir in $PATH
2.3202 +do
2.3203 + IFS=$as_save_IFS
2.3204 + test -z "$as_dir" && as_dir=.
2.3205 + for ac_exec_ext in '' $ac_executable_extensions; do
2.3206 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.3207 + ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
2.3208 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.3209 + break 2
2.3210 + fi
2.3211 +done
2.3212 +done
2.3213 +IFS=$as_save_IFS
2.3214 +
2.3215 +fi
2.3216 +fi
2.3217 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
2.3218 +if test -n "$CC_FOR_BUILD"; then
2.3219 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
2.3220 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
2.3221 +else
2.3222 + { echo "$as_me:$LINENO: result: no" >&5
2.3223 +echo "${ECHO_T}no" >&6; }
2.3224 +fi
2.3225 +
2.3226 +
2.3227 + fi
2.3228 +fi
2.3229 +if test -z "$CC_FOR_BUILD"; then
2.3230 + # Extract the first word of "cc", so it can be a program name with args.
2.3231 +set dummy cc; ac_word=$2
2.3232 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.3233 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.3234 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
2.3235 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3236 +else
2.3237 + if test -n "$CC_FOR_BUILD"; then
2.3238 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
2.3239 +else
2.3240 + ac_prog_rejected=no
2.3241 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.3242 +for as_dir in $PATH
2.3243 +do
2.3244 + IFS=$as_save_IFS
2.3245 + test -z "$as_dir" && as_dir=.
2.3246 + for ac_exec_ext in '' $ac_executable_extensions; do
2.3247 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.3248 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.3249 + ac_prog_rejected=yes
2.3250 + continue
2.3251 + fi
2.3252 + ac_cv_prog_CC_FOR_BUILD="cc"
2.3253 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.3254 + break 2
2.3255 + fi
2.3256 +done
2.3257 +done
2.3258 +IFS=$as_save_IFS
2.3259 +
2.3260 +if test $ac_prog_rejected = yes; then
2.3261 + # We found a bogon in the path, so make sure we never use it.
2.3262 + set dummy $ac_cv_prog_CC_FOR_BUILD
2.3263 + shift
2.3264 + if test $# != 0; then
2.3265 + # We chose a different compiler from the bogus one.
2.3266 + # However, it has the same basename, so the bogon will be chosen
2.3267 + # first if we set CC_FOR_BUILD to just the basename; use the full file name.
2.3268 + shift
2.3269 + ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
2.3270 + fi
2.3271 +fi
2.3272 +fi
2.3273 +fi
2.3274 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
2.3275 +if test -n "$CC_FOR_BUILD"; then
2.3276 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
2.3277 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
2.3278 +else
2.3279 + { echo "$as_me:$LINENO: result: no" >&5
2.3280 +echo "${ECHO_T}no" >&6; }
2.3281 +fi
2.3282 +
2.3283 +
2.3284 +fi
2.3285 +if test -z "$CC_FOR_BUILD"; then
2.3286 + if test -n "$ac_build_tool_prefix"; then
2.3287 + for ac_prog in cl.exe
2.3288 + do
2.3289 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.3290 +set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
2.3291 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.3292 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.3293 +if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
2.3294 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3295 +else
2.3296 + if test -n "$CC_FOR_BUILD"; then
2.3297 + ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
2.3298 +else
2.3299 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.3300 +for as_dir in $PATH
2.3301 +do
2.3302 + IFS=$as_save_IFS
2.3303 + test -z "$as_dir" && as_dir=.
2.3304 + for ac_exec_ext in '' $ac_executable_extensions; do
2.3305 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.3306 + ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
2.3307 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.3308 + break 2
2.3309 + fi
2.3310 +done
2.3311 +done
2.3312 +IFS=$as_save_IFS
2.3313 +
2.3314 +fi
2.3315 +fi
2.3316 +CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
2.3317 +if test -n "$CC_FOR_BUILD"; then
2.3318 + { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
2.3319 +echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
2.3320 +else
2.3321 + { echo "$as_me:$LINENO: result: no" >&5
2.3322 +echo "${ECHO_T}no" >&6; }
2.3323 +fi
2.3324 +
2.3325 +
2.3326 + test -n "$CC_FOR_BUILD" && break
2.3327 + done
2.3328 +fi
2.3329 +if test -z "$CC_FOR_BUILD"; then
2.3330 + ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
2.3331 + for ac_prog in cl.exe
2.3332 +do
2.3333 + # Extract the first word of "$ac_prog", so it can be a program name with args.
2.3334 +set dummy $ac_prog; ac_word=$2
2.3335 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.3336 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.3337 +if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
2.3338 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3339 +else
2.3340 + if test -n "$ac_ct_CC_FOR_BUILD"; then
2.3341 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
2.3342 +else
2.3343 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.3344 +for as_dir in $PATH
2.3345 +do
2.3346 + IFS=$as_save_IFS
2.3347 + test -z "$as_dir" && as_dir=.
2.3348 + for ac_exec_ext in '' $ac_executable_extensions; do
2.3349 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.3350 + ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
2.3351 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.3352 + break 2
2.3353 + fi
2.3354 +done
2.3355 +done
2.3356 +IFS=$as_save_IFS
2.3357 +
2.3358 +fi
2.3359 +fi
2.3360 +ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
2.3361 +if test -n "$ac_ct_CC_FOR_BUILD"; then
2.3362 + { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
2.3363 +echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
2.3364 +else
2.3365 + { echo "$as_me:$LINENO: result: no" >&5
2.3366 +echo "${ECHO_T}no" >&6; }
2.3367 +fi
2.3368 +
2.3369 +
2.3370 + test -n "$ac_ct_CC_FOR_BUILD" && break
2.3371 +done
2.3372 +
2.3373 + if test "x$ac_ct_CC_FOR_BUILD" = x; then
2.3374 + CC_FOR_BUILD=""
2.3375 + else
2.3376 + case $#:$ac_tool_warned in
2.3377 +yes:)
2.3378 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.3379 +whose name does not start with the build triplet. If you think this
2.3380 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.3381 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.3382 +whose name does not start with the build triplet. If you think this
2.3383 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.3384 +ac_tool_warned=yes ;;
2.3385 +esac
2.3386 + CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
2.3387 + fi
2.3388 +fi
2.3389 +
2.3390 +fi
2.3391 +
2.3392 +
2.3393 +test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.3394 +See \`config.log' for more details." >&5
2.3395 +echo "$as_me: error: no acceptable C compiler found in \$PATH
2.3396 +See \`config.log' for more details." >&2;}
2.3397 + { (exit 1); exit 1; }; }
2.3398 +
2.3399 +# Provide some information about the compiler.
2.3400 +echo "$as_me:$LINENO: checking for C compiler version" >&5
2.3401 +ac_compiler=`set X $ac_build_compile; echo $2`
2.3402 +{ (ac_try="$ac_compiler --version >&5"
2.3403 +case "(($ac_try" in
2.3404 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3405 + *) ac_try_echo=$ac_try;;
2.3406 +esac
2.3407 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3408 + (eval "$ac_compiler --version >&5") 2>&5
2.3409 + ac_status=$?
2.3410 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3411 + (exit $ac_status); }
2.3412 +{ (ac_try="$ac_compiler -v >&5"
2.3413 +case "(($ac_try" in
2.3414 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3415 + *) ac_try_echo=$ac_try;;
2.3416 +esac
2.3417 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3418 + (eval "$ac_compiler -v >&5") 2>&5
2.3419 + ac_status=$?
2.3420 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3421 + (exit $ac_status); }
2.3422 +{ (ac_try="$ac_compiler -V >&5"
2.3423 +case "(($ac_try" in
2.3424 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3425 + *) ac_try_echo=$ac_try;;
2.3426 +esac
2.3427 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3428 + (eval "$ac_compiler -V >&5") 2>&5
2.3429 + ac_status=$?
2.3430 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3431 + (exit $ac_status); }
2.3432 +
2.3433 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.3434 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.3435 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.3436 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3437 +else
2.3438 + cat >conftest.$ac_ext <<_ACEOF
2.3439 +/* confdefs.h. */
2.3440 +_ACEOF
2.3441 +cat confdefs.h >>conftest.$ac_ext
2.3442 +cat >>conftest.$ac_ext <<_ACEOF
2.3443 +/* end confdefs.h. */
2.3444 +
2.3445 +int
2.3446 +main ()
2.3447 +{
2.3448 +#ifndef __GNUC__
2.3449 + choke me
2.3450 +#endif
2.3451 +
2.3452 + ;
2.3453 + return 0;
2.3454 +}
2.3455 +_ACEOF
2.3456 +rm -f conftest.$ac_build_objext
2.3457 +if { (ac_try="$ac_build_compile"
2.3458 +case "(($ac_try" in
2.3459 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3460 + *) ac_try_echo=$ac_try;;
2.3461 +esac
2.3462 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3463 + (eval "$ac_build_compile") 2>conftest.er1
2.3464 + ac_status=$?
2.3465 + grep -v '^ *+' conftest.er1 >conftest.err
2.3466 + rm -f conftest.er1
2.3467 + cat conftest.err >&5
2.3468 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3469 + (exit $ac_status); } && {
2.3470 + test -z "$ac_c_werror_flag" ||
2.3471 + test ! -s conftest.err
2.3472 + } && test -s conftest.$ac_build_objext; then
2.3473 + ac_build_compiler_gnu=yes
2.3474 +else
2.3475 + echo "$as_me: failed program was:" >&5
2.3476 +sed 's/^/| /' conftest.$ac_ext >&5
2.3477 +
2.3478 + ac_build_compiler_gnu=no
2.3479 +fi
2.3480 +
2.3481 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
2.3482 +ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
2.3483 +
2.3484 +fi
2.3485 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.3486 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.3487 +GCC=`test $ac_build_compiler_gnu = yes && echo yes`
2.3488 +ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
2.3489 +ac_save_CFLAGS=$CFLAGS_FOR_BUILD
2.3490 +{ echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
2.3491 +echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
2.3492 +if test "${ac_cv_build_prog_cc_g+set}" = set; then
2.3493 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3494 +else
2.3495 + ac_save_c_werror_flag=$ac_c_werror_flag
2.3496 + ac_c_werror_flag=yes
2.3497 + ac_cv_build_prog_cc_g=no
2.3498 + CFLAGS_FOR_BUILD="-g"
2.3499 + cat >conftest.$ac_ext <<_ACEOF
2.3500 +/* confdefs.h. */
2.3501 +_ACEOF
2.3502 +cat confdefs.h >>conftest.$ac_ext
2.3503 +cat >>conftest.$ac_ext <<_ACEOF
2.3504 +/* end confdefs.h. */
2.3505 +
2.3506 +int
2.3507 +main ()
2.3508 +{
2.3509 +
2.3510 + ;
2.3511 + return 0;
2.3512 +}
2.3513 +_ACEOF
2.3514 +rm -f conftest.$ac_build_objext
2.3515 +if { (ac_try="$ac_build_compile"
2.3516 +case "(($ac_try" in
2.3517 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3518 + *) ac_try_echo=$ac_try;;
2.3519 +esac
2.3520 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3521 + (eval "$ac_build_compile") 2>conftest.er1
2.3522 + ac_status=$?
2.3523 + grep -v '^ *+' conftest.er1 >conftest.err
2.3524 + rm -f conftest.er1
2.3525 + cat conftest.err >&5
2.3526 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3527 + (exit $ac_status); } && {
2.3528 + test -z "$ac_c_werror_flag" ||
2.3529 + test ! -s conftest.err
2.3530 + } && test -s conftest.$ac_build_objext; then
2.3531 + ac_cv_build_prog_cc_g=yes
2.3532 +else
2.3533 + echo "$as_me: failed program was:" >&5
2.3534 +sed 's/^/| /' conftest.$ac_ext >&5
2.3535 +
2.3536 + CFLAGS_FOR_BUILD=""
2.3537 + cat >conftest.$ac_ext <<_ACEOF
2.3538 +/* confdefs.h. */
2.3539 +_ACEOF
2.3540 +cat confdefs.h >>conftest.$ac_ext
2.3541 +cat >>conftest.$ac_ext <<_ACEOF
2.3542 +/* end confdefs.h. */
2.3543 +
2.3544 +int
2.3545 +main ()
2.3546 +{
2.3547 +
2.3548 + ;
2.3549 + return 0;
2.3550 +}
2.3551 +_ACEOF
2.3552 +rm -f conftest.$ac_build_objext
2.3553 +if { (ac_try="$ac_build_compile"
2.3554 +case "(($ac_try" in
2.3555 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3556 + *) ac_try_echo=$ac_try;;
2.3557 +esac
2.3558 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3559 + (eval "$ac_build_compile") 2>conftest.er1
2.3560 + ac_status=$?
2.3561 + grep -v '^ *+' conftest.er1 >conftest.err
2.3562 + rm -f conftest.er1
2.3563 + cat conftest.err >&5
2.3564 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3565 + (exit $ac_status); } && {
2.3566 + test -z "$ac_c_werror_flag" ||
2.3567 + test ! -s conftest.err
2.3568 + } && test -s conftest.$ac_build_objext; then
2.3569 + :
2.3570 +else
2.3571 + echo "$as_me: failed program was:" >&5
2.3572 +sed 's/^/| /' conftest.$ac_ext >&5
2.3573 +
2.3574 + ac_c_werror_flag=$ac_save_c_werror_flag
2.3575 + CFLAGS_FOR_BUILD="-g"
2.3576 + cat >conftest.$ac_ext <<_ACEOF
2.3577 +/* confdefs.h. */
2.3578 +_ACEOF
2.3579 +cat confdefs.h >>conftest.$ac_ext
2.3580 +cat >>conftest.$ac_ext <<_ACEOF
2.3581 +/* end confdefs.h. */
2.3582 +
2.3583 +int
2.3584 +main ()
2.3585 +{
2.3586 +
2.3587 + ;
2.3588 + return 0;
2.3589 +}
2.3590 +_ACEOF
2.3591 +rm -f conftest.$ac_build_objext
2.3592 +if { (ac_try="$ac_build_compile"
2.3593 +case "(($ac_try" in
2.3594 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3595 + *) ac_try_echo=$ac_try;;
2.3596 +esac
2.3597 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3598 + (eval "$ac_build_compile") 2>conftest.er1
2.3599 + ac_status=$?
2.3600 + grep -v '^ *+' conftest.er1 >conftest.err
2.3601 + rm -f conftest.er1
2.3602 + cat conftest.err >&5
2.3603 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3604 + (exit $ac_status); } && {
2.3605 + test -z "$ac_c_werror_flag" ||
2.3606 + test ! -s conftest.err
2.3607 + } && test -s conftest.$ac_build_objext; then
2.3608 + ac_cv_build_prog_cc_g=yes
2.3609 +else
2.3610 + echo "$as_me: failed program was:" >&5
2.3611 +sed 's/^/| /' conftest.$ac_ext >&5
2.3612 +
2.3613 +
2.3614 +fi
2.3615 +
2.3616 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
2.3617 +fi
2.3618 +
2.3619 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
2.3620 +fi
2.3621 +
2.3622 +rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
2.3623 + ac_c_werror_flag=$ac_save_c_werror_flag
2.3624 +fi
2.3625 +{ echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
2.3626 +echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
2.3627 +if test "$ac_test_CFLAGS" = set; then
2.3628 + CFLAGS_FOR_BUILD=$ac_save_CFLAGS
2.3629 +elif test $ac_cv_build_prog_cc_g = yes; then
2.3630 + if test "$GCC" = yes; then
2.3631 + CFLAGS_FOR_BUILD="-g -O2"
2.3632 + else
2.3633 + CFLAGS_FOR_BUILD="-g"
2.3634 + fi
2.3635 +else
2.3636 + if test "$GCC" = yes; then
2.3637 + CFLAGS_FOR_BUILD="-O2"
2.3638 + else
2.3639 + CFLAGS_FOR_BUILD=
2.3640 + fi
2.3641 +fi
2.3642 +{ echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
2.3643 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
2.3644 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
2.3645 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3646 +else
2.3647 + ac_cv_build_prog_cc_stdc=no
2.3648 +ac_save_CC=$CC_FOR_BUILD
2.3649 +cat >conftest.$ac_ext <<_ACEOF
2.3650 +/* confdefs.h. */
2.3651 +_ACEOF
2.3652 +cat confdefs.h >>conftest.$ac_ext
2.3653 +cat >>conftest.$ac_ext <<_ACEOF
2.3654 +/* end confdefs.h. */
2.3655 +#include <stdarg.h>
2.3656 +#include <stdio.h>
2.3657 +#include <sys/types.h>
2.3658 +#include <sys/stat.h>
2.3659 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.3660 +struct buf { int x; };
2.3661 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.3662 +static char *e (p, i)
2.3663 + char **p;
2.3664 + int i;
2.3665 +{
2.3666 + return p[i];
2.3667 +}
2.3668 +static char *f (char * (*g) (char **, int), char **p, ...)
2.3669 +{
2.3670 + char *s;
2.3671 + va_list v;
2.3672 + va_start (v,p);
2.3673 + s = g (p, va_arg (v,int));
2.3674 + va_end (v);
2.3675 + return s;
2.3676 +}
2.3677 +
2.3678 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.3679 + function prototypes and stuff, but not '\xHH' hex character constants.
2.3680 + These don't provoke an error unfortunately, instead are silently treated
2.3681 + as 'x'. The following induces an error, until -std is added to get
2.3682 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.3683 + array size at least. It's necessary to write '\x00'==0 to get something
2.3684 + that's true only with -std. */
2.3685 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.3686 +
2.3687 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.3688 + inside strings and character constants. */
2.3689 +#define FOO(x) 'x'
2.3690 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.3691 +
2.3692 +int test (int i, double x);
2.3693 +struct s1 {int (*f) (int a);};
2.3694 +struct s2 {int (*f) (double a);};
2.3695 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.3696 +int argc;
2.3697 +char **argv;
2.3698 +int
2.3699 +main ()
2.3700 +{
2.3701 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.3702 + ;
2.3703 + return 0;
2.3704 +}
2.3705 +_ACEOF
2.3706 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.3707 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.3708 +do
2.3709 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
2.3710 + rm -f conftest.$ac_build_objext
2.3711 +if { (ac_try="$ac_build_compile"
2.3712 +case "(($ac_try" in
2.3713 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.3714 + *) ac_try_echo=$ac_try;;
2.3715 +esac
2.3716 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.3717 + (eval "$ac_build_compile") 2>conftest.er1
2.3718 + ac_status=$?
2.3719 + grep -v '^ *+' conftest.er1 >conftest.err
2.3720 + rm -f conftest.er1
2.3721 + cat conftest.err >&5
2.3722 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.3723 + (exit $ac_status); } && {
2.3724 + test -z "$ac_c_werror_flag" ||
2.3725 + test ! -s conftest.err
2.3726 + } && test -s conftest.$ac_build_objext; then
2.3727 + ac_cv_build_prog_cc_stdc=$ac_arg
2.3728 +else
2.3729 + echo "$as_me: failed program was:" >&5
2.3730 +sed 's/^/| /' conftest.$ac_ext >&5
2.3731 +
2.3732 +
2.3733 +fi
2.3734 +
2.3735 +rm -f core conftest.err conftest.$ac_build_objext
2.3736 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
2.3737 +done
2.3738 +rm -f conftest.$ac_ext
2.3739 +CC_FOR_BUILD=$ac_save_CC
2.3740 +
2.3741 +fi
2.3742 +# AC_CACHE_VAL
2.3743 +case "x$ac_cv_build_prog_cc_stdc" in
2.3744 + x)
2.3745 + { echo "$as_me:$LINENO: result: none needed" >&5
2.3746 +echo "${ECHO_T}none needed" >&6; } ;;
2.3747 + xno)
2.3748 + { echo "$as_me:$LINENO: result: unsupported" >&5
2.3749 +echo "${ECHO_T}unsupported" >&6; } ;;
2.3750 + *)
2.3751 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
2.3752 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
2.3753 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
2.3754 +esac
2.3755 +
2.3756 +
2.3757 +ac_ext=c
2.3758 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
2.3759 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
2.3760 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.3761 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
2.3762 +
2.3763 +depcc="$CC_FOR_BUILD" am_compiler_list=
2.3764 +
2.3765 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.3766 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.3767 +if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
2.3768 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3769 +else
2.3770 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.3771 + # We make a subdir and do the tests there. Otherwise we can end up
2.3772 + # making bogus files that we don't know about and never remove. For
2.3773 + # instance it was reported that on HP-UX the gcc test will end up
2.3774 + # making a dummy file named `D' -- because `-MD' means `put the output
2.3775 + # in D'.
2.3776 + mkdir conftest.dir
2.3777 + # Copy depcomp to subdir because otherwise we won't find it if we're
2.3778 + # using a relative directory.
2.3779 + cp "$am_depcomp" conftest.dir
2.3780 + cd conftest.dir
2.3781 + # We will build objects and dependencies in a subdirectory because
2.3782 + # it helps to detect inapplicable dependency modes. For instance
2.3783 + # both Tru64's cc and ICC support -MD to output dependencies as a
2.3784 + # side effect of compilation, but ICC will put the dependencies in
2.3785 + # the current directory while Tru64 will put them in the object
2.3786 + # directory.
2.3787 + mkdir sub
2.3788 +
2.3789 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
2.3790 + if test "$am_compiler_list" = ""; then
2.3791 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.3792 + fi
2.3793 + for depmode in $am_compiler_list; do
2.3794 + # Setup a source with many dependencies, because some compilers
2.3795 + # like to wrap large dependency lists on column 80 (with \), and
2.3796 + # we should not choose a depcomp mode which is confused by this.
2.3797 + #
2.3798 + # We need to recreate these files for each test, as the compiler may
2.3799 + # overwrite some of them when testing with obscure command lines.
2.3800 + # This happens at least with the AIX C compiler.
2.3801 + : > sub/conftest.c
2.3802 + for i in 1 2 3 4 5 6; do
2.3803 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.3804 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.3805 + # Solaris 8's {/usr,}/bin/sh.
2.3806 + touch sub/conftst$i.h
2.3807 + done
2.3808 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.3809 +
2.3810 + case $depmode in
2.3811 + nosideeffect)
2.3812 + # after this tag, mechanisms are not by side-effect, so they'll
2.3813 + # only be used when explicitly requested
2.3814 + if test "x$enable_dependency_tracking" = xyes; then
2.3815 + continue
2.3816 + else
2.3817 + break
2.3818 + fi
2.3819 + ;;
2.3820 + none) break ;;
2.3821 + esac
2.3822 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.3823 + # mode. It turns out that the SunPro C++ compiler does not properly
2.3824 + # handle `-M -o', and we need to detect this.
2.3825 + if depmode=$depmode \
2.3826 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.3827 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.3828 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.3829 + >/dev/null 2>conftest.err &&
2.3830 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.3831 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.3832 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.3833 + # icc doesn't choke on unknown options, it will just issue warnings
2.3834 + # or remarks (even with -Werror). So we grep stderr for any message
2.3835 + # that says an option was ignored or not supported.
2.3836 + # When given -MP, icc 7.0 and 7.1 complain thusly:
2.3837 + # icc: Command line warning: ignoring option '-M'; no argument required
2.3838 + # The diagnosis changed in icc 8.0:
2.3839 + # icc: Command line remark: option '-MP' not supported
2.3840 + if (grep 'ignoring option' conftest.err ||
2.3841 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.3842 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
2.3843 + break
2.3844 + fi
2.3845 + fi
2.3846 + done
2.3847 +
2.3848 + cd ..
2.3849 + rm -rf conftest.dir
2.3850 +else
2.3851 + am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
2.3852 +fi
2.3853 +
2.3854 +fi
2.3855 +{ echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
2.3856 +echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
2.3857 +CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
2.3858 +
2.3859 +
2.3860 +
2.3861 +if
2.3862 + test "x$enable_dependency_tracking" != xno \
2.3863 + && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
2.3864 + am__fastdepCC_FOR_BUILD_TRUE=
2.3865 + am__fastdepCC_FOR_BUILD_FALSE='#'
2.3866 +else
2.3867 + am__fastdepCC_FOR_BUILD_TRUE='#'
2.3868 + am__fastdepCC_FOR_BUILD_FALSE=
2.3869 +fi
2.3870 +
2.3871 +
2.3872 + case $ac_cv_build_prog_cc_stdc in
2.3873 + no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
2.3874 + *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
2.3875 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
2.3876 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
2.3877 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.3878 +else
2.3879 + ac_cv_build_prog_cc_stdc=no
2.3880 +ac_save_CC=$CC_FOR_BUILD
2.3881 +cat >conftest.$ac_ext <<_ACEOF
2.3882 +/* confdefs.h. */
2.3883 +_ACEOF
2.3884 +cat confdefs.h >>conftest.$ac_ext
2.3885 +cat >>conftest.$ac_ext <<_ACEOF
2.3886 +/* end confdefs.h. */
2.3887 +#include <stdarg.h>
2.3888 +#include <stdbool.h>
2.3889 +#include <stdlib.h>
2.3890 +#include <wchar.h>
2.3891 +#include <stdio.h>
2.3892 +
2.3893 +// Check varargs macros. These examples are taken from C99 6.10.3.5.
2.3894 +#define debug(...) fprintf (stderr, __VA_ARGS__)
2.3895 +#define showlist(...) puts (#__VA_ARGS__)
2.3896 +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2.3897 +static void
2.3898 +test_varargs_macros (void)
2.3899 +{
2.3900 + int x = 1234;
2.3901 + int y = 5678;
2.3902 + debug ("Flag");
2.3903 + debug ("X = %d\n", x);
2.3904 + showlist (The first, second, and third items.);
2.3905 + report (x>y, "x is %d but y is %d", x, y);
2.3906 +}
2.3907 +
2.3908 +// Check long long types.
2.3909 +#define BIG64 18446744073709551615ull
2.3910 +#define BIG32 4294967295ul
2.3911 +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2.3912 +#if !BIG_OK
2.3913 + your preprocessor is broken;
2.3914 +#endif
2.3915 +#if BIG_OK
2.3916 +#else
2.3917 + your preprocessor is broken;
2.3918 +#endif
2.3919 +static long long int bignum = -9223372036854775807LL;
2.3920 +static unsigned long long int ubignum = BIG64;
2.3921 +
2.3922 +struct incomplete_array
2.3923 +{
2.3924 + int datasize;
2.3925 + double data[];
2.3926 +};
2.3927 +
2.3928 +struct named_init {
2.3929 + int number;
2.3930 + const wchar_t *name;
2.3931 + double average;
2.3932 +};
2.3933 +
2.3934 +typedef const char *ccp;
2.3935 +
2.3936 +static inline int
2.3937 +test_restrict (ccp restrict text)
2.3938 +{
2.3939 + // See if C++-style comments work.
2.3940 + // Iterate through items via the restricted pointer.
2.3941 + // Also check for declarations in for loops.
2.3942 + for (unsigned int i = 0; *(text+i) != '\0'; ++i)
2.3943 + continue;
2.3944 + return 0;
2.3945 +}
2.3946 +
2.3947 +// Check varargs and va_copy.
2.3948 +static void
2.3949 +test_varargs (const char *format, ...)
2.3950 +{
2.3951 + va_list args;
2.3952 + va_start (args, format);
2.3953 + va_list args_copy;
2.3954 + va_copy (args_copy, args);
2.3955 +
2.3956 + const char *str;
2.3957 + int number;
2.3958 + float fnumber;
2.3959 +
2.3960 + while (*format)
2.3961 + {
2.3962 + switch (*format++)
2.3963 + {
2.3964 + case 's': // string
2.3965 + str = va_arg (args_copy, const char *);
2.3966 + break;
2.3967 + case 'd': // int
2.3968 + number = va_arg (args_copy, int);
2.3969 + break;
2.3970 + case 'f': // float
2.3971 + fnumber = va_arg (args_copy, double);
2.3972 + break;
2.3973 + default:
2.3974 + break;
2.3975 + }
2.3976 + }
2.3977 + va_end (args_copy);
2.3978 + va_end (args);
2.3979 +}
2.3980 +
2.3981 +int
2.3982 +main ()
2.3983 +{
2.3984 +
2.3985 + // Check bool.
2.3986 + _Bool success = false;
2.3987 +
2.3988 + // Check restrict.
2.3989 + if (test_restrict ("String literal") == 0)
2.3990 + success = true;
2.3991 + char *restrict newvar = "Another string";
2.3992 +
2.3993 + // Check varargs.
2.3994 + test_varargs ("s, d' f .", "string", 65, 34.234);
2.3995 + test_varargs_macros ();
2.3996 +
2.3997 + // Check flexible array members.
2.3998 + struct incomplete_array *ia =
2.3999 + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2.4000 + ia->datasize = 10;
2.4001 + for (int i = 0; i < ia->datasize; ++i)
2.4002 + ia->data[i] = i * 1.234;
2.4003 +
2.4004 + // Check named initializers.
2.4005 + struct named_init ni = {
2.4006 + .number = 34,
2.4007 + .name = L"Test wide string",
2.4008 + .average = 543.34343,
2.4009 + };
2.4010 +
2.4011 + ni.number = 58;
2.4012 +
2.4013 + int dynamic_array[ni.number];
2.4014 + dynamic_array[ni.number - 1] = 543;
2.4015 +
2.4016 + // work around unused variable warnings
2.4017 + return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
2.4018 + || dynamic_array[ni.number - 1] != 543);
2.4019 +
2.4020 + ;
2.4021 + return 0;
2.4022 +}
2.4023 +_ACEOF
2.4024 +for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
2.4025 +do
2.4026 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
2.4027 + rm -f conftest.$ac_build_objext
2.4028 +if { (ac_try="$ac_build_compile"
2.4029 +case "(($ac_try" in
2.4030 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4031 + *) ac_try_echo=$ac_try;;
2.4032 +esac
2.4033 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4034 + (eval "$ac_build_compile") 2>conftest.er1
2.4035 + ac_status=$?
2.4036 + grep -v '^ *+' conftest.er1 >conftest.err
2.4037 + rm -f conftest.er1
2.4038 + cat conftest.err >&5
2.4039 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4040 + (exit $ac_status); } && {
2.4041 + test -z "$ac_c_werror_flag" ||
2.4042 + test ! -s conftest.err
2.4043 + } && test -s conftest.$ac_build_objext; then
2.4044 + ac_cv_build_prog_cc_stdc=$ac_arg
2.4045 +else
2.4046 + echo "$as_me: failed program was:" >&5
2.4047 +sed 's/^/| /' conftest.$ac_ext >&5
2.4048 +
2.4049 +
2.4050 +fi
2.4051 +
2.4052 +rm -f core conftest.err conftest.$ac_build_objext
2.4053 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
2.4054 +done
2.4055 +rm -f conftest.$ac_ext
2.4056 +CC_FOR_BUILD=$ac_save_CC
2.4057 +
2.4058 +fi
2.4059 +# AC_CACHE_VAL
2.4060 +case "x$ac_cv_build_prog_cc_stdc" in
2.4061 + x)
2.4062 + { echo "$as_me:$LINENO: result: none needed" >&5
2.4063 +echo "${ECHO_T}none needed" >&6; } ;;
2.4064 + xno)
2.4065 + { echo "$as_me:$LINENO: result: unsupported" >&5
2.4066 +echo "${ECHO_T}unsupported" >&6; } ;;
2.4067 + *)
2.4068 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
2.4069 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
2.4070 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
2.4071 +esac
2.4072 +if test "x$ac_cv_build_prog_cc_stdc" != xno; then
2.4073 + ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
2.4074 +else
2.4075 + { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
2.4076 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
2.4077 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
2.4078 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4079 +else
2.4080 + ac_cv_build_prog_cc_stdc=no
2.4081 +ac_save_CC=$CC_FOR_BUILD
2.4082 +cat >conftest.$ac_ext <<_ACEOF
2.4083 +/* confdefs.h. */
2.4084 +_ACEOF
2.4085 +cat confdefs.h >>conftest.$ac_ext
2.4086 +cat >>conftest.$ac_ext <<_ACEOF
2.4087 +/* end confdefs.h. */
2.4088 +#include <stdarg.h>
2.4089 +#include <stdio.h>
2.4090 +#include <sys/types.h>
2.4091 +#include <sys/stat.h>
2.4092 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.4093 +struct buf { int x; };
2.4094 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.4095 +static char *e (p, i)
2.4096 + char **p;
2.4097 + int i;
2.4098 +{
2.4099 + return p[i];
2.4100 +}
2.4101 +static char *f (char * (*g) (char **, int), char **p, ...)
2.4102 +{
2.4103 + char *s;
2.4104 + va_list v;
2.4105 + va_start (v,p);
2.4106 + s = g (p, va_arg (v,int));
2.4107 + va_end (v);
2.4108 + return s;
2.4109 +}
2.4110 +
2.4111 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.4112 + function prototypes and stuff, but not '\xHH' hex character constants.
2.4113 + These don't provoke an error unfortunately, instead are silently treated
2.4114 + as 'x'. The following induces an error, until -std is added to get
2.4115 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.4116 + array size at least. It's necessary to write '\x00'==0 to get something
2.4117 + that's true only with -std. */
2.4118 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.4119 +
2.4120 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.4121 + inside strings and character constants. */
2.4122 +#define FOO(x) 'x'
2.4123 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.4124 +
2.4125 +int test (int i, double x);
2.4126 +struct s1 {int (*f) (int a);};
2.4127 +struct s2 {int (*f) (double a);};
2.4128 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.4129 +int argc;
2.4130 +char **argv;
2.4131 +int
2.4132 +main ()
2.4133 +{
2.4134 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.4135 + ;
2.4136 + return 0;
2.4137 +}
2.4138 +_ACEOF
2.4139 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.4140 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.4141 +do
2.4142 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
2.4143 + rm -f conftest.$ac_build_objext
2.4144 +if { (ac_try="$ac_build_compile"
2.4145 +case "(($ac_try" in
2.4146 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4147 + *) ac_try_echo=$ac_try;;
2.4148 +esac
2.4149 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4150 + (eval "$ac_build_compile") 2>conftest.er1
2.4151 + ac_status=$?
2.4152 + grep -v '^ *+' conftest.er1 >conftest.err
2.4153 + rm -f conftest.er1
2.4154 + cat conftest.err >&5
2.4155 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4156 + (exit $ac_status); } && {
2.4157 + test -z "$ac_c_werror_flag" ||
2.4158 + test ! -s conftest.err
2.4159 + } && test -s conftest.$ac_build_objext; then
2.4160 + ac_cv_build_prog_cc_stdc=$ac_arg
2.4161 +else
2.4162 + echo "$as_me: failed program was:" >&5
2.4163 +sed 's/^/| /' conftest.$ac_ext >&5
2.4164 +
2.4165 +
2.4166 +fi
2.4167 +
2.4168 +rm -f core conftest.err conftest.$ac_build_objext
2.4169 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
2.4170 +done
2.4171 +rm -f conftest.$ac_ext
2.4172 +CC_FOR_BUILD=$ac_save_CC
2.4173 +
2.4174 +fi
2.4175 +# AC_CACHE_VAL
2.4176 +case "x$ac_cv_build_prog_cc_stdc" in
2.4177 + x)
2.4178 + { echo "$as_me:$LINENO: result: none needed" >&5
2.4179 +echo "${ECHO_T}none needed" >&6; } ;;
2.4180 + xno)
2.4181 + { echo "$as_me:$LINENO: result: unsupported" >&5
2.4182 +echo "${ECHO_T}unsupported" >&6; } ;;
2.4183 + *)
2.4184 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
2.4185 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
2.4186 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
2.4187 +esac
2.4188 +if test "x$ac_cv_build_prog_cc_stdc" != xno; then
2.4189 + ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
2.4190 +else
2.4191 + ac_cv_build_prog_cc_stdc=no
2.4192 +fi
2.4193 +
2.4194 +
2.4195 +fi
2.4196 +
2.4197 + ;;
2.4198 +esac
2.4199 + { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
2.4200 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
2.4201 + if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
2.4202 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4203 +fi
2.4204 +
2.4205 + case $ac_cv_build_prog_cc_stdc in
2.4206 + no) { echo "$as_me:$LINENO: result: unsupported" >&5
2.4207 +echo "${ECHO_T}unsupported" >&6; } ;;
2.4208 + '') { echo "$as_me:$LINENO: result: none needed" >&5
2.4209 +echo "${ECHO_T}none needed" >&6; } ;;
2.4210 + *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
2.4211 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
2.4212 +esac
2.4213 +
2.4214 +
2.4215 +ac_ext=c
2.4216 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
2.4217 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
2.4218 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.4219 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
2.4220 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2.4221 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2.4222 +# On Suns, sometimes $CPP names a directory.
2.4223 +if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
2.4224 + CPP_FOR_BUILD=
2.4225 +fi
2.4226 +if test -z "$CPP_FOR_BUILD"; then
2.4227 + if test "${ac_cv_build_prog_CPP+set}" = set; then
2.4228 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4229 +else
2.4230 + # Double quotes because CPP needs to be expanded
2.4231 + for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
2.4232 + do
2.4233 + ac_preproc_ok=false
2.4234 +for ac_c_preproc_warn_flag in '' yes
2.4235 +do
2.4236 + # Use a header file that comes with gcc, so configuring glibc
2.4237 + # with a fresh cross-compiler works.
2.4238 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2.4239 + # <limits.h> exists even on freestanding compilers.
2.4240 + # On the NeXT, cc -E runs the code through the compiler's parser,
2.4241 + # not just through cpp. "Syntax error" is here to catch this case.
2.4242 + cat >conftest.$ac_ext <<_ACEOF
2.4243 +/* confdefs.h. */
2.4244 +_ACEOF
2.4245 +cat confdefs.h >>conftest.$ac_ext
2.4246 +cat >>conftest.$ac_ext <<_ACEOF
2.4247 +/* end confdefs.h. */
2.4248 +#ifdef __STDC__
2.4249 +# include <limits.h>
2.4250 +#else
2.4251 +# include <assert.h>
2.4252 +#endif
2.4253 + Syntax error
2.4254 +_ACEOF
2.4255 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
2.4256 +case "(($ac_try" in
2.4257 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4258 + *) ac_try_echo=$ac_try;;
2.4259 +esac
2.4260 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4261 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
2.4262 + ac_status=$?
2.4263 + grep -v '^ *+' conftest.er1 >conftest.err
2.4264 + rm -f conftest.er1
2.4265 + cat conftest.err >&5
2.4266 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4267 + (exit $ac_status); } >/dev/null && {
2.4268 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.4269 + test ! -s conftest.err
2.4270 + }; then
2.4271 + :
2.4272 +else
2.4273 + echo "$as_me: failed program was:" >&5
2.4274 +sed 's/^/| /' conftest.$ac_ext >&5
2.4275 +
2.4276 + # Broken: fails on valid input.
2.4277 +continue
2.4278 +fi
2.4279 +
2.4280 +rm -f conftest.err conftest.$ac_ext
2.4281 +
2.4282 + # OK, works on sane cases. Now check whether nonexistent headers
2.4283 + # can be detected and how.
2.4284 + cat >conftest.$ac_ext <<_ACEOF
2.4285 +/* confdefs.h. */
2.4286 +_ACEOF
2.4287 +cat confdefs.h >>conftest.$ac_ext
2.4288 +cat >>conftest.$ac_ext <<_ACEOF
2.4289 +/* end confdefs.h. */
2.4290 +#include <ac_nonexistent.h>
2.4291 +_ACEOF
2.4292 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
2.4293 +case "(($ac_try" in
2.4294 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4295 + *) ac_try_echo=$ac_try;;
2.4296 +esac
2.4297 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4298 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
2.4299 + ac_status=$?
2.4300 + grep -v '^ *+' conftest.er1 >conftest.err
2.4301 + rm -f conftest.er1
2.4302 + cat conftest.err >&5
2.4303 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4304 + (exit $ac_status); } >/dev/null && {
2.4305 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.4306 + test ! -s conftest.err
2.4307 + }; then
2.4308 + # Broken: success on invalid input.
2.4309 +continue
2.4310 +else
2.4311 + echo "$as_me: failed program was:" >&5
2.4312 +sed 's/^/| /' conftest.$ac_ext >&5
2.4313 +
2.4314 + # Passes both tests.
2.4315 +ac_preproc_ok=:
2.4316 +break
2.4317 +fi
2.4318 +
2.4319 +rm -f conftest.err conftest.$ac_ext
2.4320 +
2.4321 +done
2.4322 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2.4323 +rm -f conftest.err conftest.$ac_ext
2.4324 +if $ac_preproc_ok; then
2.4325 + break
2.4326 +fi
2.4327 +
2.4328 + done
2.4329 + ac_cv_build_prog_CPP=$CPP_FOR_BUILD
2.4330 +
2.4331 +fi
2.4332 + CPP_FOR_BUILD=$ac_cv_build_prog_CPP
2.4333 +else
2.4334 + ac_cv_build_prog_CPP=$CPP_FOR_BUILD
2.4335 +fi
2.4336 +{ echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
2.4337 +echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
2.4338 +ac_preproc_ok=false
2.4339 +for ac_c_preproc_warn_flag in '' yes
2.4340 +do
2.4341 + # Use a header file that comes with gcc, so configuring glibc
2.4342 + # with a fresh cross-compiler works.
2.4343 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2.4344 + # <limits.h> exists even on freestanding compilers.
2.4345 + # On the NeXT, cc -E runs the code through the compiler's parser,
2.4346 + # not just through cpp. "Syntax error" is here to catch this case.
2.4347 + cat >conftest.$ac_ext <<_ACEOF
2.4348 +/* confdefs.h. */
2.4349 +_ACEOF
2.4350 +cat confdefs.h >>conftest.$ac_ext
2.4351 +cat >>conftest.$ac_ext <<_ACEOF
2.4352 +/* end confdefs.h. */
2.4353 +#ifdef __STDC__
2.4354 +# include <limits.h>
2.4355 +#else
2.4356 +# include <assert.h>
2.4357 +#endif
2.4358 + Syntax error
2.4359 +_ACEOF
2.4360 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
2.4361 +case "(($ac_try" in
2.4362 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4363 + *) ac_try_echo=$ac_try;;
2.4364 +esac
2.4365 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4366 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
2.4367 + ac_status=$?
2.4368 + grep -v '^ *+' conftest.er1 >conftest.err
2.4369 + rm -f conftest.er1
2.4370 + cat conftest.err >&5
2.4371 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4372 + (exit $ac_status); } >/dev/null && {
2.4373 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.4374 + test ! -s conftest.err
2.4375 + }; then
2.4376 + :
2.4377 +else
2.4378 + echo "$as_me: failed program was:" >&5
2.4379 +sed 's/^/| /' conftest.$ac_ext >&5
2.4380 +
2.4381 + # Broken: fails on valid input.
2.4382 +continue
2.4383 +fi
2.4384 +
2.4385 +rm -f conftest.err conftest.$ac_ext
2.4386 +
2.4387 + # OK, works on sane cases. Now check whether nonexistent headers
2.4388 + # can be detected and how.
2.4389 + cat >conftest.$ac_ext <<_ACEOF
2.4390 +/* confdefs.h. */
2.4391 +_ACEOF
2.4392 +cat confdefs.h >>conftest.$ac_ext
2.4393 +cat >>conftest.$ac_ext <<_ACEOF
2.4394 +/* end confdefs.h. */
2.4395 +#include <ac_nonexistent.h>
2.4396 +_ACEOF
2.4397 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
2.4398 +case "(($ac_try" in
2.4399 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4400 + *) ac_try_echo=$ac_try;;
2.4401 +esac
2.4402 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4403 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
2.4404 + ac_status=$?
2.4405 + grep -v '^ *+' conftest.er1 >conftest.err
2.4406 + rm -f conftest.er1
2.4407 + cat conftest.err >&5
2.4408 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4409 + (exit $ac_status); } >/dev/null && {
2.4410 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2.4411 + test ! -s conftest.err
2.4412 + }; then
2.4413 + # Broken: success on invalid input.
2.4414 +continue
2.4415 +else
2.4416 + echo "$as_me: failed program was:" >&5
2.4417 +sed 's/^/| /' conftest.$ac_ext >&5
2.4418 +
2.4419 + # Passes both tests.
2.4420 +ac_preproc_ok=:
2.4421 +break
2.4422 +fi
2.4423 +
2.4424 +rm -f conftest.err conftest.$ac_ext
2.4425 +
2.4426 +done
2.4427 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2.4428 +rm -f conftest.err conftest.$ac_ext
2.4429 +if $ac_preproc_ok; then
2.4430 + :
2.4431 +else
2.4432 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
2.4433 +See \`config.log' for more details." >&5
2.4434 +echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
2.4435 +See \`config.log' for more details." >&2;}
2.4436 + { (exit 1); exit 1; }; }
2.4437 +fi
2.4438 +
2.4439 +ac_ext=c
2.4440 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
2.4441 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
2.4442 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.4443 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
2.4444 +
2.4445 +
2.4446 +
2.4447 +
2.4448 +BUILD_EXEEXT=$ac_build_exeext
2.4449 +BUILD_OBJEXT=$ac_build_objext
2.4450 +
2.4451 +ac_ext=m
2.4452 +ac_cpp='$OBJCPP $CPPFLAGS'
2.4453 +ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.4454 +ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.4455 +ac_compiler_gnu=$ac_cv_objc_compiler_gnu
2.4456 +if test -n "$ac_tool_prefix"; then
2.4457 + for ac_prog in gcc objcc objc cc CC
2.4458 + do
2.4459 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.4460 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.4461 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.4462 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.4463 +if test "${ac_cv_prog_OBJC+set}" = set; then
2.4464 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4465 +else
2.4466 + if test -n "$OBJC"; then
2.4467 + ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
2.4468 +else
2.4469 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.4470 +for as_dir in $PATH
2.4471 +do
2.4472 + IFS=$as_save_IFS
2.4473 + test -z "$as_dir" && as_dir=.
2.4474 + for ac_exec_ext in '' $ac_executable_extensions; do
2.4475 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.4476 + ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
2.4477 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.4478 + break 2
2.4479 + fi
2.4480 +done
2.4481 +done
2.4482 +IFS=$as_save_IFS
2.4483 +
2.4484 +fi
2.4485 +fi
2.4486 +OBJC=$ac_cv_prog_OBJC
2.4487 +if test -n "$OBJC"; then
2.4488 + { echo "$as_me:$LINENO: result: $OBJC" >&5
2.4489 +echo "${ECHO_T}$OBJC" >&6; }
2.4490 +else
2.4491 + { echo "$as_me:$LINENO: result: no" >&5
2.4492 +echo "${ECHO_T}no" >&6; }
2.4493 +fi
2.4494 +
2.4495 +
2.4496 + test -n "$OBJC" && break
2.4497 + done
2.4498 +fi
2.4499 +if test -z "$OBJC"; then
2.4500 + ac_ct_OBJC=$OBJC
2.4501 + for ac_prog in gcc objcc objc cc CC
2.4502 +do
2.4503 + # Extract the first word of "$ac_prog", so it can be a program name with args.
2.4504 +set dummy $ac_prog; ac_word=$2
2.4505 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.4506 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.4507 +if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
2.4508 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4509 +else
2.4510 + if test -n "$ac_ct_OBJC"; then
2.4511 + ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
2.4512 +else
2.4513 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.4514 +for as_dir in $PATH
2.4515 +do
2.4516 + IFS=$as_save_IFS
2.4517 + test -z "$as_dir" && as_dir=.
2.4518 + for ac_exec_ext in '' $ac_executable_extensions; do
2.4519 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.4520 + ac_cv_prog_ac_ct_OBJC="$ac_prog"
2.4521 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.4522 + break 2
2.4523 + fi
2.4524 +done
2.4525 +done
2.4526 +IFS=$as_save_IFS
2.4527 +
2.4528 +fi
2.4529 +fi
2.4530 +ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
2.4531 +if test -n "$ac_ct_OBJC"; then
2.4532 + { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
2.4533 +echo "${ECHO_T}$ac_ct_OBJC" >&6; }
2.4534 +else
2.4535 + { echo "$as_me:$LINENO: result: no" >&5
2.4536 +echo "${ECHO_T}no" >&6; }
2.4537 +fi
2.4538 +
2.4539 +
2.4540 + test -n "$ac_ct_OBJC" && break
2.4541 +done
2.4542 +
2.4543 + if test "x$ac_ct_OBJC" = x; then
2.4544 + OBJC="gcc"
2.4545 + else
2.4546 + case $cross_compiling:$ac_tool_warned in
2.4547 +yes:)
2.4548 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.4549 +whose name does not start with the host triplet. If you think this
2.4550 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.4551 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.4552 +whose name does not start with the host triplet. If you think this
2.4553 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.4554 +ac_tool_warned=yes ;;
2.4555 +esac
2.4556 + OBJC=$ac_ct_OBJC
2.4557 + fi
2.4558 +fi
2.4559 +
2.4560 +# Provide some information about the compiler.
2.4561 +echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
2.4562 +ac_compiler=`set X $ac_compile; echo $2`
2.4563 +{ (ac_try="$ac_compiler --version >&5"
2.4564 +case "(($ac_try" in
2.4565 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4566 + *) ac_try_echo=$ac_try;;
2.4567 +esac
2.4568 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4569 + (eval "$ac_compiler --version >&5") 2>&5
2.4570 + ac_status=$?
2.4571 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4572 + (exit $ac_status); }
2.4573 +{ (ac_try="$ac_compiler -v >&5"
2.4574 +case "(($ac_try" in
2.4575 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4576 + *) ac_try_echo=$ac_try;;
2.4577 +esac
2.4578 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4579 + (eval "$ac_compiler -v >&5") 2>&5
2.4580 + ac_status=$?
2.4581 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4582 + (exit $ac_status); }
2.4583 +{ (ac_try="$ac_compiler -V >&5"
2.4584 +case "(($ac_try" in
2.4585 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4586 + *) ac_try_echo=$ac_try;;
2.4587 +esac
2.4588 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4589 + (eval "$ac_compiler -V >&5") 2>&5
2.4590 + ac_status=$?
2.4591 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4592 + (exit $ac_status); }
2.4593 +
2.4594 +{ echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
2.4595 +echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
2.4596 +if test "${ac_cv_objc_compiler_gnu+set}" = set; then
2.4597 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4598 +else
2.4599 + cat >conftest.$ac_ext <<_ACEOF
2.4600 +/* confdefs.h. */
2.4601 +_ACEOF
2.4602 +cat confdefs.h >>conftest.$ac_ext
2.4603 +cat >>conftest.$ac_ext <<_ACEOF
2.4604 +/* end confdefs.h. */
2.4605 +
2.4606 +int
2.4607 +main ()
2.4608 +{
2.4609 +#ifndef __GNUC__
2.4610 + choke me
2.4611 +#endif
2.4612 +
2.4613 + ;
2.4614 + return 0;
2.4615 +}
2.4616 +_ACEOF
2.4617 +rm -f conftest.$ac_objext
2.4618 +if { (ac_try="$ac_compile"
2.4619 +case "(($ac_try" in
2.4620 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4621 + *) ac_try_echo=$ac_try;;
2.4622 +esac
2.4623 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4624 + (eval "$ac_compile") 2>conftest.er1
2.4625 + ac_status=$?
2.4626 + grep -v '^ *+' conftest.er1 >conftest.err
2.4627 + rm -f conftest.er1
2.4628 + cat conftest.err >&5
2.4629 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4630 + (exit $ac_status); } && {
2.4631 + test -z "$ac_objc_werror_flag" ||
2.4632 + test ! -s conftest.err
2.4633 + } && test -s conftest.$ac_objext; then
2.4634 + ac_compiler_gnu=yes
2.4635 +else
2.4636 + echo "$as_me: failed program was:" >&5
2.4637 +sed 's/^/| /' conftest.$ac_ext >&5
2.4638 +
2.4639 + ac_compiler_gnu=no
2.4640 +fi
2.4641 +
2.4642 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.4643 +ac_cv_objc_compiler_gnu=$ac_compiler_gnu
2.4644 +
2.4645 +fi
2.4646 +{ echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
2.4647 +echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
2.4648 +GOBJC=`test $ac_compiler_gnu = yes && echo yes`
2.4649 +ac_test_OBJCFLAGS=${OBJCFLAGS+set}
2.4650 +ac_save_OBJCFLAGS=$OBJCFLAGS
2.4651 +{ echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
2.4652 +echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
2.4653 +if test "${ac_cv_prog_objc_g+set}" = set; then
2.4654 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4655 +else
2.4656 + ac_save_objc_werror_flag=$ac_objc_werror_flag
2.4657 + ac_objc_werror_flag=yes
2.4658 + ac_cv_prog_objc_g=no
2.4659 + OBJCFLAGS="-g"
2.4660 + cat >conftest.$ac_ext <<_ACEOF
2.4661 +/* confdefs.h. */
2.4662 +_ACEOF
2.4663 +cat confdefs.h >>conftest.$ac_ext
2.4664 +cat >>conftest.$ac_ext <<_ACEOF
2.4665 +/* end confdefs.h. */
2.4666 +
2.4667 +int
2.4668 +main ()
2.4669 +{
2.4670 +
2.4671 + ;
2.4672 + return 0;
2.4673 +}
2.4674 +_ACEOF
2.4675 +rm -f conftest.$ac_objext
2.4676 +if { (ac_try="$ac_compile"
2.4677 +case "(($ac_try" in
2.4678 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4679 + *) ac_try_echo=$ac_try;;
2.4680 +esac
2.4681 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4682 + (eval "$ac_compile") 2>conftest.er1
2.4683 + ac_status=$?
2.4684 + grep -v '^ *+' conftest.er1 >conftest.err
2.4685 + rm -f conftest.er1
2.4686 + cat conftest.err >&5
2.4687 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4688 + (exit $ac_status); } && {
2.4689 + test -z "$ac_objc_werror_flag" ||
2.4690 + test ! -s conftest.err
2.4691 + } && test -s conftest.$ac_objext; then
2.4692 + ac_cv_prog_objc_g=yes
2.4693 +else
2.4694 + echo "$as_me: failed program was:" >&5
2.4695 +sed 's/^/| /' conftest.$ac_ext >&5
2.4696 +
2.4697 + OBJCFLAGS=""
2.4698 + cat >conftest.$ac_ext <<_ACEOF
2.4699 +/* confdefs.h. */
2.4700 +_ACEOF
2.4701 +cat confdefs.h >>conftest.$ac_ext
2.4702 +cat >>conftest.$ac_ext <<_ACEOF
2.4703 +/* end confdefs.h. */
2.4704 +
2.4705 +int
2.4706 +main ()
2.4707 +{
2.4708 +
2.4709 + ;
2.4710 + return 0;
2.4711 +}
2.4712 +_ACEOF
2.4713 +rm -f conftest.$ac_objext
2.4714 +if { (ac_try="$ac_compile"
2.4715 +case "(($ac_try" in
2.4716 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4717 + *) ac_try_echo=$ac_try;;
2.4718 +esac
2.4719 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4720 + (eval "$ac_compile") 2>conftest.er1
2.4721 + ac_status=$?
2.4722 + grep -v '^ *+' conftest.er1 >conftest.err
2.4723 + rm -f conftest.er1
2.4724 + cat conftest.err >&5
2.4725 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4726 + (exit $ac_status); } && {
2.4727 + test -z "$ac_objc_werror_flag" ||
2.4728 + test ! -s conftest.err
2.4729 + } && test -s conftest.$ac_objext; then
2.4730 + :
2.4731 +else
2.4732 + echo "$as_me: failed program was:" >&5
2.4733 +sed 's/^/| /' conftest.$ac_ext >&5
2.4734 +
2.4735 + ac_objc_werror_flag=$ac_save_objc_werror_flag
2.4736 + OBJCFLAGS="-g"
2.4737 + cat >conftest.$ac_ext <<_ACEOF
2.4738 +/* confdefs.h. */
2.4739 +_ACEOF
2.4740 +cat confdefs.h >>conftest.$ac_ext
2.4741 +cat >>conftest.$ac_ext <<_ACEOF
2.4742 +/* end confdefs.h. */
2.4743 +
2.4744 +int
2.4745 +main ()
2.4746 +{
2.4747 +
2.4748 + ;
2.4749 + return 0;
2.4750 +}
2.4751 +_ACEOF
2.4752 +rm -f conftest.$ac_objext
2.4753 +if { (ac_try="$ac_compile"
2.4754 +case "(($ac_try" in
2.4755 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.4756 + *) ac_try_echo=$ac_try;;
2.4757 +esac
2.4758 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.4759 + (eval "$ac_compile") 2>conftest.er1
2.4760 + ac_status=$?
2.4761 + grep -v '^ *+' conftest.er1 >conftest.err
2.4762 + rm -f conftest.er1
2.4763 + cat conftest.err >&5
2.4764 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.4765 + (exit $ac_status); } && {
2.4766 + test -z "$ac_objc_werror_flag" ||
2.4767 + test ! -s conftest.err
2.4768 + } && test -s conftest.$ac_objext; then
2.4769 + ac_cv_prog_objc_g=yes
2.4770 +else
2.4771 + echo "$as_me: failed program was:" >&5
2.4772 +sed 's/^/| /' conftest.$ac_ext >&5
2.4773 +
2.4774 +
2.4775 +fi
2.4776 +
2.4777 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.4778 +fi
2.4779 +
2.4780 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.4781 +fi
2.4782 +
2.4783 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.4784 + ac_objc_werror_flag=$ac_save_objc_werror_flag
2.4785 +fi
2.4786 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
2.4787 +echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
2.4788 +if test "$ac_test_OBJCFLAGS" = set; then
2.4789 + OBJCFLAGS=$ac_save_OBJCFLAGS
2.4790 +elif test $ac_cv_prog_objc_g = yes; then
2.4791 + if test "$GOBJC" = yes; then
2.4792 + OBJCFLAGS="-g -O2"
2.4793 + else
2.4794 + OBJCFLAGS="-g"
2.4795 + fi
2.4796 +else
2.4797 + if test "$GOBJC" = yes; then
2.4798 + OBJCFLAGS="-O2"
2.4799 + else
2.4800 + OBJCFLAGS=
2.4801 + fi
2.4802 +fi
2.4803 +ac_ext=c
2.4804 +ac_cpp='$CPP $CPPFLAGS'
2.4805 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.4806 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.4807 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.4808 +
2.4809 +{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2.4810 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
2.4811 +if test "${ac_cv_path_SED+set}" = set; then
2.4812 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4813 +else
2.4814 + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2.4815 + for ac_i in 1 2 3 4 5 6 7; do
2.4816 + ac_script="$ac_script$as_nl$ac_script"
2.4817 + done
2.4818 + echo "$ac_script" | sed 99q >conftest.sed
2.4819 + $as_unset ac_script || ac_script=
2.4820 + # Extract the first word of "sed gsed" to use in msg output
2.4821 +if test -z "$SED"; then
2.4822 +set dummy sed gsed; ac_prog_name=$2
2.4823 +if test "${ac_cv_path_SED+set}" = set; then
2.4824 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4825 +else
2.4826 + ac_path_SED_found=false
2.4827 +# Loop through the user's path and test for each of PROGNAME-LIST
2.4828 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.4829 +for as_dir in $PATH
2.4830 +do
2.4831 + IFS=$as_save_IFS
2.4832 + test -z "$as_dir" && as_dir=.
2.4833 + for ac_prog in sed gsed; do
2.4834 + for ac_exec_ext in '' $ac_executable_extensions; do
2.4835 + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2.4836 + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2.4837 + # Check for GNU ac_path_SED and select it if it is found.
2.4838 + # Check for GNU $ac_path_SED
2.4839 +case `"$ac_path_SED" --version 2>&1` in
2.4840 +*GNU*)
2.4841 + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2.4842 +*)
2.4843 + ac_count=0
2.4844 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2.4845 + while :
2.4846 + do
2.4847 + cat "conftest.in" "conftest.in" >"conftest.tmp"
2.4848 + mv "conftest.tmp" "conftest.in"
2.4849 + cp "conftest.in" "conftest.nl"
2.4850 + echo '' >> "conftest.nl"
2.4851 + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2.4852 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2.4853 + ac_count=`expr $ac_count + 1`
2.4854 + if test $ac_count -gt ${ac_path_SED_max-0}; then
2.4855 + # Best one so far, save it but keep looking for a better one
2.4856 + ac_cv_path_SED="$ac_path_SED"
2.4857 + ac_path_SED_max=$ac_count
2.4858 + fi
2.4859 + # 10*(2^10) chars as input seems more than enough
2.4860 + test $ac_count -gt 10 && break
2.4861 + done
2.4862 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2.4863 +esac
2.4864 +
2.4865 +
2.4866 + $ac_path_SED_found && break 3
2.4867 + done
2.4868 +done
2.4869 +
2.4870 +done
2.4871 +IFS=$as_save_IFS
2.4872 +
2.4873 +
2.4874 +fi
2.4875 +
2.4876 +SED="$ac_cv_path_SED"
2.4877 +if test -z "$SED"; then
2.4878 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
2.4879 +echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
2.4880 + { (exit 1); exit 1; }; }
2.4881 +fi
2.4882 +
2.4883 +else
2.4884 + ac_cv_path_SED=$SED
2.4885 +fi
2.4886 +
2.4887 +fi
2.4888 +{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2.4889 +echo "${ECHO_T}$ac_cv_path_SED" >&6; }
2.4890 + SED="$ac_cv_path_SED"
2.4891 + rm -f conftest.sed
2.4892 +
2.4893 +# By default we simply use the C compiler to build assembly code.
2.4894 +
2.4895 +test "${CCAS+set}" = set || CCAS=$CC
2.4896 +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2.4897 +
2.4898 +
2.4899 +
2.4900 +if test -n "$ac_tool_prefix"; then
2.4901 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2.4902 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2.4903 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.4904 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.4905 +if test "${ac_cv_prog_RANLIB+set}" = set; then
2.4906 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4907 +else
2.4908 + if test -n "$RANLIB"; then
2.4909 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2.4910 +else
2.4911 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.4912 +for as_dir in $PATH
2.4913 +do
2.4914 + IFS=$as_save_IFS
2.4915 + test -z "$as_dir" && as_dir=.
2.4916 + for ac_exec_ext in '' $ac_executable_extensions; do
2.4917 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.4918 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2.4919 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.4920 + break 2
2.4921 + fi
2.4922 +done
2.4923 +done
2.4924 +IFS=$as_save_IFS
2.4925 +
2.4926 +fi
2.4927 +fi
2.4928 +RANLIB=$ac_cv_prog_RANLIB
2.4929 +if test -n "$RANLIB"; then
2.4930 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
2.4931 +echo "${ECHO_T}$RANLIB" >&6; }
2.4932 +else
2.4933 + { echo "$as_me:$LINENO: result: no" >&5
2.4934 +echo "${ECHO_T}no" >&6; }
2.4935 +fi
2.4936 +
2.4937 +
2.4938 +fi
2.4939 +if test -z "$ac_cv_prog_RANLIB"; then
2.4940 + ac_ct_RANLIB=$RANLIB
2.4941 + # Extract the first word of "ranlib", so it can be a program name with args.
2.4942 +set dummy ranlib; ac_word=$2
2.4943 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.4944 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.4945 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2.4946 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.4947 +else
2.4948 + if test -n "$ac_ct_RANLIB"; then
2.4949 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2.4950 +else
2.4951 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.4952 +for as_dir in $PATH
2.4953 +do
2.4954 + IFS=$as_save_IFS
2.4955 + test -z "$as_dir" && as_dir=.
2.4956 + for ac_exec_ext in '' $ac_executable_extensions; do
2.4957 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.4958 + ac_cv_prog_ac_ct_RANLIB="ranlib"
2.4959 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.4960 + break 2
2.4961 + fi
2.4962 +done
2.4963 +done
2.4964 +IFS=$as_save_IFS
2.4965 +
2.4966 +fi
2.4967 +fi
2.4968 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2.4969 +if test -n "$ac_ct_RANLIB"; then
2.4970 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2.4971 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2.4972 +else
2.4973 + { echo "$as_me:$LINENO: result: no" >&5
2.4974 +echo "${ECHO_T}no" >&6; }
2.4975 +fi
2.4976 +
2.4977 + if test "x$ac_ct_RANLIB" = x; then
2.4978 + RANLIB=":"
2.4979 + else
2.4980 + case $cross_compiling:$ac_tool_warned in
2.4981 +yes:)
2.4982 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.4983 +whose name does not start with the host triplet. If you think this
2.4984 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2.4985 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.4986 +whose name does not start with the host triplet. If you think this
2.4987 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.4988 +ac_tool_warned=yes ;;
2.4989 +esac
2.4990 + RANLIB=$ac_ct_RANLIB
2.4991 + fi
2.4992 +else
2.4993 + RANLIB="$ac_cv_prog_RANLIB"
2.4994 +fi
2.4995 +
2.4996 +
2.4997 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2.4998 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2.4999 +if test "${ac_cv_path_GREP+set}" = set; then
2.5000 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5001 +else
2.5002 + # Extract the first word of "grep ggrep" to use in msg output
2.5003 +if test -z "$GREP"; then
2.5004 +set dummy grep ggrep; ac_prog_name=$2
2.5005 +if test "${ac_cv_path_GREP+set}" = set; then
2.5006 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5007 +else
2.5008 + ac_path_GREP_found=false
2.5009 +# Loop through the user's path and test for each of PROGNAME-LIST
2.5010 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.5011 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2.5012 +do
2.5013 + IFS=$as_save_IFS
2.5014 + test -z "$as_dir" && as_dir=.
2.5015 + for ac_prog in grep ggrep; do
2.5016 + for ac_exec_ext in '' $ac_executable_extensions; do
2.5017 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2.5018 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2.5019 + # Check for GNU ac_path_GREP and select it if it is found.
2.5020 + # Check for GNU $ac_path_GREP
2.5021 +case `"$ac_path_GREP" --version 2>&1` in
2.5022 +*GNU*)
2.5023 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2.5024 +*)
2.5025 + ac_count=0
2.5026 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2.5027 + while :
2.5028 + do
2.5029 + cat "conftest.in" "conftest.in" >"conftest.tmp"
2.5030 + mv "conftest.tmp" "conftest.in"
2.5031 + cp "conftest.in" "conftest.nl"
2.5032 + echo 'GREP' >> "conftest.nl"
2.5033 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2.5034 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2.5035 + ac_count=`expr $ac_count + 1`
2.5036 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
2.5037 + # Best one so far, save it but keep looking for a better one
2.5038 + ac_cv_path_GREP="$ac_path_GREP"
2.5039 + ac_path_GREP_max=$ac_count
2.5040 + fi
2.5041 + # 10*(2^10) chars as input seems more than enough
2.5042 + test $ac_count -gt 10 && break
2.5043 + done
2.5044 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2.5045 +esac
2.5046 +
2.5047 +
2.5048 + $ac_path_GREP_found && break 3
2.5049 + done
2.5050 +done
2.5051 +
2.5052 +done
2.5053 +IFS=$as_save_IFS
2.5054 +
2.5055 +
2.5056 +fi
2.5057 +
2.5058 +GREP="$ac_cv_path_GREP"
2.5059 +if test -z "$GREP"; then
2.5060 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2.5061 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2.5062 + { (exit 1); exit 1; }; }
2.5063 +fi
2.5064 +
2.5065 +else
2.5066 + ac_cv_path_GREP=$GREP
2.5067 +fi
2.5068 +
2.5069 +
2.5070 +fi
2.5071 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2.5072 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
2.5073 + GREP="$ac_cv_path_GREP"
2.5074 +
2.5075 +
2.5076 +{ echo "$as_me:$LINENO: checking for egrep" >&5
2.5077 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
2.5078 +if test "${ac_cv_path_EGREP+set}" = set; then
2.5079 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5080 +else
2.5081 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2.5082 + then ac_cv_path_EGREP="$GREP -E"
2.5083 + else
2.5084 + # Extract the first word of "egrep" to use in msg output
2.5085 +if test -z "$EGREP"; then
2.5086 +set dummy egrep; ac_prog_name=$2
2.5087 +if test "${ac_cv_path_EGREP+set}" = set; then
2.5088 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5089 +else
2.5090 + ac_path_EGREP_found=false
2.5091 +# Loop through the user's path and test for each of PROGNAME-LIST
2.5092 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.5093 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2.5094 +do
2.5095 + IFS=$as_save_IFS
2.5096 + test -z "$as_dir" && as_dir=.
2.5097 + for ac_prog in egrep; do
2.5098 + for ac_exec_ext in '' $ac_executable_extensions; do
2.5099 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2.5100 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2.5101 + # Check for GNU ac_path_EGREP and select it if it is found.
2.5102 + # Check for GNU $ac_path_EGREP
2.5103 +case `"$ac_path_EGREP" --version 2>&1` in
2.5104 +*GNU*)
2.5105 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2.5106 +*)
2.5107 + ac_count=0
2.5108 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2.5109 + while :
2.5110 + do
2.5111 + cat "conftest.in" "conftest.in" >"conftest.tmp"
2.5112 + mv "conftest.tmp" "conftest.in"
2.5113 + cp "conftest.in" "conftest.nl"
2.5114 + echo 'EGREP' >> "conftest.nl"
2.5115 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2.5116 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2.5117 + ac_count=`expr $ac_count + 1`
2.5118 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2.5119 + # Best one so far, save it but keep looking for a better one
2.5120 + ac_cv_path_EGREP="$ac_path_EGREP"
2.5121 + ac_path_EGREP_max=$ac_count
2.5122 + fi
2.5123 + # 10*(2^10) chars as input seems more than enough
2.5124 + test $ac_count -gt 10 && break
2.5125 + done
2.5126 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2.5127 +esac
2.5128 +
2.5129 +
2.5130 + $ac_path_EGREP_found && break 3
2.5131 + done
2.5132 +done
2.5133 +
2.5134 +done
2.5135 +IFS=$as_save_IFS
2.5136 +
2.5137 +
2.5138 +fi
2.5139 +
2.5140 +EGREP="$ac_cv_path_EGREP"
2.5141 +if test -z "$EGREP"; then
2.5142 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2.5143 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2.5144 + { (exit 1); exit 1; }; }
2.5145 +fi
2.5146 +
2.5147 +else
2.5148 + ac_cv_path_EGREP=$EGREP
2.5149 +fi
2.5150 +
2.5151 +
2.5152 + fi
2.5153 +fi
2.5154 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
2.5155 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
2.5156 + EGREP="$ac_cv_path_EGREP"
2.5157 +
2.5158 +
2.5159 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2.5160 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
2.5161 +if test "${ac_cv_header_stdc+set}" = set; then
2.5162 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5163 +else
2.5164 + cat >conftest.$ac_ext <<_ACEOF
2.5165 +/* confdefs.h. */
2.5166 +_ACEOF
2.5167 +cat confdefs.h >>conftest.$ac_ext
2.5168 +cat >>conftest.$ac_ext <<_ACEOF
2.5169 +/* end confdefs.h. */
2.5170 +#include <stdlib.h>
2.5171 +#include <stdarg.h>
2.5172 +#include <string.h>
2.5173 +#include <float.h>
2.5174 +
2.5175 +int
2.5176 +main ()
2.5177 +{
2.5178 +
2.5179 + ;
2.5180 + return 0;
2.5181 +}
2.5182 +_ACEOF
2.5183 +rm -f conftest.$ac_objext
2.5184 +if { (ac_try="$ac_compile"
2.5185 +case "(($ac_try" in
2.5186 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5187 + *) ac_try_echo=$ac_try;;
2.5188 +esac
2.5189 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5190 + (eval "$ac_compile") 2>conftest.er1
2.5191 + ac_status=$?
2.5192 + grep -v '^ *+' conftest.er1 >conftest.err
2.5193 + rm -f conftest.er1
2.5194 + cat conftest.err >&5
2.5195 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5196 + (exit $ac_status); } && {
2.5197 + test -z "$ac_c_werror_flag" ||
2.5198 + test ! -s conftest.err
2.5199 + } && test -s conftest.$ac_objext; then
2.5200 + ac_cv_header_stdc=yes
2.5201 +else
2.5202 + echo "$as_me: failed program was:" >&5
2.5203 +sed 's/^/| /' conftest.$ac_ext >&5
2.5204 +
2.5205 + ac_cv_header_stdc=no
2.5206 +fi
2.5207 +
2.5208 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5209 +
2.5210 +if test $ac_cv_header_stdc = yes; then
2.5211 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2.5212 + cat >conftest.$ac_ext <<_ACEOF
2.5213 +/* confdefs.h. */
2.5214 +_ACEOF
2.5215 +cat confdefs.h >>conftest.$ac_ext
2.5216 +cat >>conftest.$ac_ext <<_ACEOF
2.5217 +/* end confdefs.h. */
2.5218 +#include <string.h>
2.5219 +
2.5220 +_ACEOF
2.5221 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2.5222 + $EGREP "memchr" >/dev/null 2>&1; then
2.5223 + :
2.5224 +else
2.5225 + ac_cv_header_stdc=no
2.5226 +fi
2.5227 +rm -f conftest*
2.5228 +
2.5229 +fi
2.5230 +
2.5231 +if test $ac_cv_header_stdc = yes; then
2.5232 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2.5233 + cat >conftest.$ac_ext <<_ACEOF
2.5234 +/* confdefs.h. */
2.5235 +_ACEOF
2.5236 +cat confdefs.h >>conftest.$ac_ext
2.5237 +cat >>conftest.$ac_ext <<_ACEOF
2.5238 +/* end confdefs.h. */
2.5239 +#include <stdlib.h>
2.5240 +
2.5241 +_ACEOF
2.5242 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2.5243 + $EGREP "free" >/dev/null 2>&1; then
2.5244 + :
2.5245 +else
2.5246 + ac_cv_header_stdc=no
2.5247 +fi
2.5248 +rm -f conftest*
2.5249 +
2.5250 +fi
2.5251 +
2.5252 +if test $ac_cv_header_stdc = yes; then
2.5253 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2.5254 + if test "$cross_compiling" = yes; then
2.5255 + :
2.5256 +else
2.5257 + cat >conftest.$ac_ext <<_ACEOF
2.5258 +/* confdefs.h. */
2.5259 +_ACEOF
2.5260 +cat confdefs.h >>conftest.$ac_ext
2.5261 +cat >>conftest.$ac_ext <<_ACEOF
2.5262 +/* end confdefs.h. */
2.5263 +#include <ctype.h>
2.5264 +#include <stdlib.h>
2.5265 +#if ((' ' & 0x0FF) == 0x020)
2.5266 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2.5267 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2.5268 +#else
2.5269 +# define ISLOWER(c) \
2.5270 + (('a' <= (c) && (c) <= 'i') \
2.5271 + || ('j' <= (c) && (c) <= 'r') \
2.5272 + || ('s' <= (c) && (c) <= 'z'))
2.5273 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2.5274 +#endif
2.5275 +
2.5276 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2.5277 +int
2.5278 +main ()
2.5279 +{
2.5280 + int i;
2.5281 + for (i = 0; i < 256; i++)
2.5282 + if (XOR (islower (i), ISLOWER (i))
2.5283 + || toupper (i) != TOUPPER (i))
2.5284 + return 2;
2.5285 + return 0;
2.5286 +}
2.5287 +_ACEOF
2.5288 +rm -f conftest$ac_exeext
2.5289 +if { (ac_try="$ac_link"
2.5290 +case "(($ac_try" in
2.5291 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5292 + *) ac_try_echo=$ac_try;;
2.5293 +esac
2.5294 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5295 + (eval "$ac_link") 2>&5
2.5296 + ac_status=$?
2.5297 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5298 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2.5299 + { (case "(($ac_try" in
2.5300 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5301 + *) ac_try_echo=$ac_try;;
2.5302 +esac
2.5303 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5304 + (eval "$ac_try") 2>&5
2.5305 + ac_status=$?
2.5306 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5307 + (exit $ac_status); }; }; then
2.5308 + :
2.5309 +else
2.5310 + echo "$as_me: program exited with status $ac_status" >&5
2.5311 +echo "$as_me: failed program was:" >&5
2.5312 +sed 's/^/| /' conftest.$ac_ext >&5
2.5313 +
2.5314 +( exit $ac_status )
2.5315 +ac_cv_header_stdc=no
2.5316 +fi
2.5317 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2.5318 +fi
2.5319 +
2.5320 +
2.5321 +fi
2.5322 +fi
2.5323 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2.5324 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
2.5325 +if test $ac_cv_header_stdc = yes; then
2.5326 +
2.5327 +cat >>confdefs.h <<\_ACEOF
2.5328 +#define STDC_HEADERS 1
2.5329 +_ACEOF
2.5330 +
2.5331 +fi
2.5332 +
2.5333 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2.5334 +
2.5335 +
2.5336 +
2.5337 +
2.5338 +
2.5339 +
2.5340 +
2.5341 +
2.5342 +
2.5343 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2.5344 + inttypes.h stdint.h unistd.h
2.5345 +do
2.5346 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2.5347 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
2.5348 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
2.5349 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2.5350 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5351 +else
2.5352 + cat >conftest.$ac_ext <<_ACEOF
2.5353 +/* confdefs.h. */
2.5354 +_ACEOF
2.5355 +cat confdefs.h >>conftest.$ac_ext
2.5356 +cat >>conftest.$ac_ext <<_ACEOF
2.5357 +/* end confdefs.h. */
2.5358 +$ac_includes_default
2.5359 +
2.5360 +#include <$ac_header>
2.5361 +_ACEOF
2.5362 +rm -f conftest.$ac_objext
2.5363 +if { (ac_try="$ac_compile"
2.5364 +case "(($ac_try" in
2.5365 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5366 + *) ac_try_echo=$ac_try;;
2.5367 +esac
2.5368 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5369 + (eval "$ac_compile") 2>conftest.er1
2.5370 + ac_status=$?
2.5371 + grep -v '^ *+' conftest.er1 >conftest.err
2.5372 + rm -f conftest.er1
2.5373 + cat conftest.err >&5
2.5374 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5375 + (exit $ac_status); } && {
2.5376 + test -z "$ac_c_werror_flag" ||
2.5377 + test ! -s conftest.err
2.5378 + } && test -s conftest.$ac_objext; then
2.5379 + eval "$as_ac_Header=yes"
2.5380 +else
2.5381 + echo "$as_me: failed program was:" >&5
2.5382 +sed 's/^/| /' conftest.$ac_ext >&5
2.5383 +
2.5384 + eval "$as_ac_Header=no"
2.5385 +fi
2.5386 +
2.5387 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5388 +fi
2.5389 +ac_res=`eval echo '${'$as_ac_Header'}'`
2.5390 + { echo "$as_me:$LINENO: result: $ac_res" >&5
2.5391 +echo "${ECHO_T}$ac_res" >&6; }
2.5392 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
2.5393 + cat >>confdefs.h <<_ACEOF
2.5394 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2.5395 +_ACEOF
2.5396 +
2.5397 +fi
2.5398 +
2.5399 +done
2.5400 +
2.5401 +
2.5402 +{ echo "$as_me:$LINENO: checking for void *" >&5
2.5403 +echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
2.5404 +if test "${ac_cv_type_void_p+set}" = set; then
2.5405 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5406 +else
2.5407 + cat >conftest.$ac_ext <<_ACEOF
2.5408 +/* confdefs.h. */
2.5409 +_ACEOF
2.5410 +cat confdefs.h >>conftest.$ac_ext
2.5411 +cat >>conftest.$ac_ext <<_ACEOF
2.5412 +/* end confdefs.h. */
2.5413 +$ac_includes_default
2.5414 +typedef void * ac__type_new_;
2.5415 +int
2.5416 +main ()
2.5417 +{
2.5418 +if ((ac__type_new_ *) 0)
2.5419 + return 0;
2.5420 +if (sizeof (ac__type_new_))
2.5421 + return 0;
2.5422 + ;
2.5423 + return 0;
2.5424 +}
2.5425 +_ACEOF
2.5426 +rm -f conftest.$ac_objext
2.5427 +if { (ac_try="$ac_compile"
2.5428 +case "(($ac_try" in
2.5429 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5430 + *) ac_try_echo=$ac_try;;
2.5431 +esac
2.5432 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5433 + (eval "$ac_compile") 2>conftest.er1
2.5434 + ac_status=$?
2.5435 + grep -v '^ *+' conftest.er1 >conftest.err
2.5436 + rm -f conftest.er1
2.5437 + cat conftest.err >&5
2.5438 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5439 + (exit $ac_status); } && {
2.5440 + test -z "$ac_c_werror_flag" ||
2.5441 + test ! -s conftest.err
2.5442 + } && test -s conftest.$ac_objext; then
2.5443 + ac_cv_type_void_p=yes
2.5444 +else
2.5445 + echo "$as_me: failed program was:" >&5
2.5446 +sed 's/^/| /' conftest.$ac_ext >&5
2.5447 +
2.5448 + ac_cv_type_void_p=no
2.5449 +fi
2.5450 +
2.5451 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5452 +fi
2.5453 +{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
2.5454 +echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
2.5455 +
2.5456 +# The cast to long int works around a bug in the HP C Compiler
2.5457 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2.5458 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2.5459 +# This bug is HP SR number 8606223364.
2.5460 +{ echo "$as_me:$LINENO: checking size of void *" >&5
2.5461 +echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
2.5462 +if test "${ac_cv_sizeof_void_p+set}" = set; then
2.5463 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5464 +else
2.5465 + if test "$cross_compiling" = yes; then
2.5466 + # Depending upon the size, compute the lo and hi bounds.
2.5467 +cat >conftest.$ac_ext <<_ACEOF
2.5468 +/* confdefs.h. */
2.5469 +_ACEOF
2.5470 +cat confdefs.h >>conftest.$ac_ext
2.5471 +cat >>conftest.$ac_ext <<_ACEOF
2.5472 +/* end confdefs.h. */
2.5473 +$ac_includes_default
2.5474 + typedef void * ac__type_sizeof_;
2.5475 +int
2.5476 +main ()
2.5477 +{
2.5478 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
2.5479 +test_array [0] = 0
2.5480 +
2.5481 + ;
2.5482 + return 0;
2.5483 +}
2.5484 +_ACEOF
2.5485 +rm -f conftest.$ac_objext
2.5486 +if { (ac_try="$ac_compile"
2.5487 +case "(($ac_try" in
2.5488 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5489 + *) ac_try_echo=$ac_try;;
2.5490 +esac
2.5491 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5492 + (eval "$ac_compile") 2>conftest.er1
2.5493 + ac_status=$?
2.5494 + grep -v '^ *+' conftest.er1 >conftest.err
2.5495 + rm -f conftest.er1
2.5496 + cat conftest.err >&5
2.5497 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5498 + (exit $ac_status); } && {
2.5499 + test -z "$ac_c_werror_flag" ||
2.5500 + test ! -s conftest.err
2.5501 + } && test -s conftest.$ac_objext; then
2.5502 + ac_lo=0 ac_mid=0
2.5503 + while :; do
2.5504 + cat >conftest.$ac_ext <<_ACEOF
2.5505 +/* confdefs.h. */
2.5506 +_ACEOF
2.5507 +cat confdefs.h >>conftest.$ac_ext
2.5508 +cat >>conftest.$ac_ext <<_ACEOF
2.5509 +/* end confdefs.h. */
2.5510 +$ac_includes_default
2.5511 + typedef void * ac__type_sizeof_;
2.5512 +int
2.5513 +main ()
2.5514 +{
2.5515 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
2.5516 +test_array [0] = 0
2.5517 +
2.5518 + ;
2.5519 + return 0;
2.5520 +}
2.5521 +_ACEOF
2.5522 +rm -f conftest.$ac_objext
2.5523 +if { (ac_try="$ac_compile"
2.5524 +case "(($ac_try" in
2.5525 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5526 + *) ac_try_echo=$ac_try;;
2.5527 +esac
2.5528 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5529 + (eval "$ac_compile") 2>conftest.er1
2.5530 + ac_status=$?
2.5531 + grep -v '^ *+' conftest.er1 >conftest.err
2.5532 + rm -f conftest.er1
2.5533 + cat conftest.err >&5
2.5534 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5535 + (exit $ac_status); } && {
2.5536 + test -z "$ac_c_werror_flag" ||
2.5537 + test ! -s conftest.err
2.5538 + } && test -s conftest.$ac_objext; then
2.5539 + ac_hi=$ac_mid; break
2.5540 +else
2.5541 + echo "$as_me: failed program was:" >&5
2.5542 +sed 's/^/| /' conftest.$ac_ext >&5
2.5543 +
2.5544 + ac_lo=`expr $ac_mid + 1`
2.5545 + if test $ac_lo -le $ac_mid; then
2.5546 + ac_lo= ac_hi=
2.5547 + break
2.5548 + fi
2.5549 + ac_mid=`expr 2 '*' $ac_mid + 1`
2.5550 +fi
2.5551 +
2.5552 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5553 + done
2.5554 +else
2.5555 + echo "$as_me: failed program was:" >&5
2.5556 +sed 's/^/| /' conftest.$ac_ext >&5
2.5557 +
2.5558 + cat >conftest.$ac_ext <<_ACEOF
2.5559 +/* confdefs.h. */
2.5560 +_ACEOF
2.5561 +cat confdefs.h >>conftest.$ac_ext
2.5562 +cat >>conftest.$ac_ext <<_ACEOF
2.5563 +/* end confdefs.h. */
2.5564 +$ac_includes_default
2.5565 + typedef void * ac__type_sizeof_;
2.5566 +int
2.5567 +main ()
2.5568 +{
2.5569 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
2.5570 +test_array [0] = 0
2.5571 +
2.5572 + ;
2.5573 + return 0;
2.5574 +}
2.5575 +_ACEOF
2.5576 +rm -f conftest.$ac_objext
2.5577 +if { (ac_try="$ac_compile"
2.5578 +case "(($ac_try" in
2.5579 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5580 + *) ac_try_echo=$ac_try;;
2.5581 +esac
2.5582 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5583 + (eval "$ac_compile") 2>conftest.er1
2.5584 + ac_status=$?
2.5585 + grep -v '^ *+' conftest.er1 >conftest.err
2.5586 + rm -f conftest.er1
2.5587 + cat conftest.err >&5
2.5588 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5589 + (exit $ac_status); } && {
2.5590 + test -z "$ac_c_werror_flag" ||
2.5591 + test ! -s conftest.err
2.5592 + } && test -s conftest.$ac_objext; then
2.5593 + ac_hi=-1 ac_mid=-1
2.5594 + while :; do
2.5595 + cat >conftest.$ac_ext <<_ACEOF
2.5596 +/* confdefs.h. */
2.5597 +_ACEOF
2.5598 +cat confdefs.h >>conftest.$ac_ext
2.5599 +cat >>conftest.$ac_ext <<_ACEOF
2.5600 +/* end confdefs.h. */
2.5601 +$ac_includes_default
2.5602 + typedef void * ac__type_sizeof_;
2.5603 +int
2.5604 +main ()
2.5605 +{
2.5606 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
2.5607 +test_array [0] = 0
2.5608 +
2.5609 + ;
2.5610 + return 0;
2.5611 +}
2.5612 +_ACEOF
2.5613 +rm -f conftest.$ac_objext
2.5614 +if { (ac_try="$ac_compile"
2.5615 +case "(($ac_try" in
2.5616 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5617 + *) ac_try_echo=$ac_try;;
2.5618 +esac
2.5619 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5620 + (eval "$ac_compile") 2>conftest.er1
2.5621 + ac_status=$?
2.5622 + grep -v '^ *+' conftest.er1 >conftest.err
2.5623 + rm -f conftest.er1
2.5624 + cat conftest.err >&5
2.5625 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5626 + (exit $ac_status); } && {
2.5627 + test -z "$ac_c_werror_flag" ||
2.5628 + test ! -s conftest.err
2.5629 + } && test -s conftest.$ac_objext; then
2.5630 + ac_lo=$ac_mid; break
2.5631 +else
2.5632 + echo "$as_me: failed program was:" >&5
2.5633 +sed 's/^/| /' conftest.$ac_ext >&5
2.5634 +
2.5635 + ac_hi=`expr '(' $ac_mid ')' - 1`
2.5636 + if test $ac_mid -le $ac_hi; then
2.5637 + ac_lo= ac_hi=
2.5638 + break
2.5639 + fi
2.5640 + ac_mid=`expr 2 '*' $ac_mid`
2.5641 +fi
2.5642 +
2.5643 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5644 + done
2.5645 +else
2.5646 + echo "$as_me: failed program was:" >&5
2.5647 +sed 's/^/| /' conftest.$ac_ext >&5
2.5648 +
2.5649 + ac_lo= ac_hi=
2.5650 +fi
2.5651 +
2.5652 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5653 +fi
2.5654 +
2.5655 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5656 +# Binary search between lo and hi bounds.
2.5657 +while test "x$ac_lo" != "x$ac_hi"; do
2.5658 + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2.5659 + cat >conftest.$ac_ext <<_ACEOF
2.5660 +/* confdefs.h. */
2.5661 +_ACEOF
2.5662 +cat confdefs.h >>conftest.$ac_ext
2.5663 +cat >>conftest.$ac_ext <<_ACEOF
2.5664 +/* end confdefs.h. */
2.5665 +$ac_includes_default
2.5666 + typedef void * ac__type_sizeof_;
2.5667 +int
2.5668 +main ()
2.5669 +{
2.5670 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
2.5671 +test_array [0] = 0
2.5672 +
2.5673 + ;
2.5674 + return 0;
2.5675 +}
2.5676 +_ACEOF
2.5677 +rm -f conftest.$ac_objext
2.5678 +if { (ac_try="$ac_compile"
2.5679 +case "(($ac_try" in
2.5680 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5681 + *) ac_try_echo=$ac_try;;
2.5682 +esac
2.5683 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5684 + (eval "$ac_compile") 2>conftest.er1
2.5685 + ac_status=$?
2.5686 + grep -v '^ *+' conftest.er1 >conftest.err
2.5687 + rm -f conftest.er1
2.5688 + cat conftest.err >&5
2.5689 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5690 + (exit $ac_status); } && {
2.5691 + test -z "$ac_c_werror_flag" ||
2.5692 + test ! -s conftest.err
2.5693 + } && test -s conftest.$ac_objext; then
2.5694 + ac_hi=$ac_mid
2.5695 +else
2.5696 + echo "$as_me: failed program was:" >&5
2.5697 +sed 's/^/| /' conftest.$ac_ext >&5
2.5698 +
2.5699 + ac_lo=`expr '(' $ac_mid ')' + 1`
2.5700 +fi
2.5701 +
2.5702 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5703 +done
2.5704 +case $ac_lo in
2.5705 +?*) ac_cv_sizeof_void_p=$ac_lo;;
2.5706 +'') if test "$ac_cv_type_void_p" = yes; then
2.5707 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
2.5708 +See \`config.log' for more details." >&5
2.5709 +echo "$as_me: error: cannot compute sizeof (void *)
2.5710 +See \`config.log' for more details." >&2;}
2.5711 + { (exit 77); exit 77; }; }
2.5712 + else
2.5713 + ac_cv_sizeof_void_p=0
2.5714 + fi ;;
2.5715 +esac
2.5716 +else
2.5717 + cat >conftest.$ac_ext <<_ACEOF
2.5718 +/* confdefs.h. */
2.5719 +_ACEOF
2.5720 +cat confdefs.h >>conftest.$ac_ext
2.5721 +cat >>conftest.$ac_ext <<_ACEOF
2.5722 +/* end confdefs.h. */
2.5723 +$ac_includes_default
2.5724 + typedef void * ac__type_sizeof_;
2.5725 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
2.5726 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
2.5727 +#include <stdio.h>
2.5728 +#include <stdlib.h>
2.5729 +int
2.5730 +main ()
2.5731 +{
2.5732 +
2.5733 + FILE *f = fopen ("conftest.val", "w");
2.5734 + if (! f)
2.5735 + return 1;
2.5736 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
2.5737 + {
2.5738 + long int i = longval ();
2.5739 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
2.5740 + return 1;
2.5741 + fprintf (f, "%ld\n", i);
2.5742 + }
2.5743 + else
2.5744 + {
2.5745 + unsigned long int i = ulongval ();
2.5746 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
2.5747 + return 1;
2.5748 + fprintf (f, "%lu\n", i);
2.5749 + }
2.5750 + return ferror (f) || fclose (f) != 0;
2.5751 +
2.5752 + ;
2.5753 + return 0;
2.5754 +}
2.5755 +_ACEOF
2.5756 +rm -f conftest$ac_exeext
2.5757 +if { (ac_try="$ac_link"
2.5758 +case "(($ac_try" in
2.5759 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5760 + *) ac_try_echo=$ac_try;;
2.5761 +esac
2.5762 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5763 + (eval "$ac_link") 2>&5
2.5764 + ac_status=$?
2.5765 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5766 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2.5767 + { (case "(($ac_try" in
2.5768 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5769 + *) ac_try_echo=$ac_try;;
2.5770 +esac
2.5771 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5772 + (eval "$ac_try") 2>&5
2.5773 + ac_status=$?
2.5774 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5775 + (exit $ac_status); }; }; then
2.5776 + ac_cv_sizeof_void_p=`cat conftest.val`
2.5777 +else
2.5778 + echo "$as_me: program exited with status $ac_status" >&5
2.5779 +echo "$as_me: failed program was:" >&5
2.5780 +sed 's/^/| /' conftest.$ac_ext >&5
2.5781 +
2.5782 +( exit $ac_status )
2.5783 +if test "$ac_cv_type_void_p" = yes; then
2.5784 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
2.5785 +See \`config.log' for more details." >&5
2.5786 +echo "$as_me: error: cannot compute sizeof (void *)
2.5787 +See \`config.log' for more details." >&2;}
2.5788 + { (exit 77); exit 77; }; }
2.5789 + else
2.5790 + ac_cv_sizeof_void_p=0
2.5791 + fi
2.5792 +fi
2.5793 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2.5794 +fi
2.5795 +rm -f conftest.val
2.5796 +fi
2.5797 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
2.5798 +echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
2.5799 +
2.5800 +
2.5801 +
2.5802 +cat >>confdefs.h <<_ACEOF
2.5803 +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2.5804 +_ACEOF
2.5805 +
2.5806 +
2.5807 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2.5808 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
2.5809 +if test "${ac_cv_header_stdc+set}" = set; then
2.5810 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5811 +else
2.5812 + cat >conftest.$ac_ext <<_ACEOF
2.5813 +/* confdefs.h. */
2.5814 +_ACEOF
2.5815 +cat confdefs.h >>conftest.$ac_ext
2.5816 +cat >>conftest.$ac_ext <<_ACEOF
2.5817 +/* end confdefs.h. */
2.5818 +#include <stdlib.h>
2.5819 +#include <stdarg.h>
2.5820 +#include <string.h>
2.5821 +#include <float.h>
2.5822 +
2.5823 +int
2.5824 +main ()
2.5825 +{
2.5826 +
2.5827 + ;
2.5828 + return 0;
2.5829 +}
2.5830 +_ACEOF
2.5831 +rm -f conftest.$ac_objext
2.5832 +if { (ac_try="$ac_compile"
2.5833 +case "(($ac_try" in
2.5834 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5835 + *) ac_try_echo=$ac_try;;
2.5836 +esac
2.5837 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5838 + (eval "$ac_compile") 2>conftest.er1
2.5839 + ac_status=$?
2.5840 + grep -v '^ *+' conftest.er1 >conftest.err
2.5841 + rm -f conftest.er1
2.5842 + cat conftest.err >&5
2.5843 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5844 + (exit $ac_status); } && {
2.5845 + test -z "$ac_c_werror_flag" ||
2.5846 + test ! -s conftest.err
2.5847 + } && test -s conftest.$ac_objext; then
2.5848 + ac_cv_header_stdc=yes
2.5849 +else
2.5850 + echo "$as_me: failed program was:" >&5
2.5851 +sed 's/^/| /' conftest.$ac_ext >&5
2.5852 +
2.5853 + ac_cv_header_stdc=no
2.5854 +fi
2.5855 +
2.5856 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.5857 +
2.5858 +if test $ac_cv_header_stdc = yes; then
2.5859 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2.5860 + cat >conftest.$ac_ext <<_ACEOF
2.5861 +/* confdefs.h. */
2.5862 +_ACEOF
2.5863 +cat confdefs.h >>conftest.$ac_ext
2.5864 +cat >>conftest.$ac_ext <<_ACEOF
2.5865 +/* end confdefs.h. */
2.5866 +#include <string.h>
2.5867 +
2.5868 +_ACEOF
2.5869 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2.5870 + $EGREP "memchr" >/dev/null 2>&1; then
2.5871 + :
2.5872 +else
2.5873 + ac_cv_header_stdc=no
2.5874 +fi
2.5875 +rm -f conftest*
2.5876 +
2.5877 +fi
2.5878 +
2.5879 +if test $ac_cv_header_stdc = yes; then
2.5880 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2.5881 + cat >conftest.$ac_ext <<_ACEOF
2.5882 +/* confdefs.h. */
2.5883 +_ACEOF
2.5884 +cat confdefs.h >>conftest.$ac_ext
2.5885 +cat >>conftest.$ac_ext <<_ACEOF
2.5886 +/* end confdefs.h. */
2.5887 +#include <stdlib.h>
2.5888 +
2.5889 +_ACEOF
2.5890 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2.5891 + $EGREP "free" >/dev/null 2>&1; then
2.5892 + :
2.5893 +else
2.5894 + ac_cv_header_stdc=no
2.5895 +fi
2.5896 +rm -f conftest*
2.5897 +
2.5898 +fi
2.5899 +
2.5900 +if test $ac_cv_header_stdc = yes; then
2.5901 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2.5902 + if test "$cross_compiling" = yes; then
2.5903 + :
2.5904 +else
2.5905 + cat >conftest.$ac_ext <<_ACEOF
2.5906 +/* confdefs.h. */
2.5907 +_ACEOF
2.5908 +cat confdefs.h >>conftest.$ac_ext
2.5909 +cat >>conftest.$ac_ext <<_ACEOF
2.5910 +/* end confdefs.h. */
2.5911 +#include <ctype.h>
2.5912 +#include <stdlib.h>
2.5913 +#if ((' ' & 0x0FF) == 0x020)
2.5914 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2.5915 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2.5916 +#else
2.5917 +# define ISLOWER(c) \
2.5918 + (('a' <= (c) && (c) <= 'i') \
2.5919 + || ('j' <= (c) && (c) <= 'r') \
2.5920 + || ('s' <= (c) && (c) <= 'z'))
2.5921 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2.5922 +#endif
2.5923 +
2.5924 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2.5925 +int
2.5926 +main ()
2.5927 +{
2.5928 + int i;
2.5929 + for (i = 0; i < 256; i++)
2.5930 + if (XOR (islower (i), ISLOWER (i))
2.5931 + || toupper (i) != TOUPPER (i))
2.5932 + return 2;
2.5933 + return 0;
2.5934 +}
2.5935 +_ACEOF
2.5936 +rm -f conftest$ac_exeext
2.5937 +if { (ac_try="$ac_link"
2.5938 +case "(($ac_try" in
2.5939 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5940 + *) ac_try_echo=$ac_try;;
2.5941 +esac
2.5942 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5943 + (eval "$ac_link") 2>&5
2.5944 + ac_status=$?
2.5945 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5946 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2.5947 + { (case "(($ac_try" in
2.5948 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.5949 + *) ac_try_echo=$ac_try;;
2.5950 +esac
2.5951 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.5952 + (eval "$ac_try") 2>&5
2.5953 + ac_status=$?
2.5954 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.5955 + (exit $ac_status); }; }; then
2.5956 + :
2.5957 +else
2.5958 + echo "$as_me: program exited with status $ac_status" >&5
2.5959 +echo "$as_me: failed program was:" >&5
2.5960 +sed 's/^/| /' conftest.$ac_ext >&5
2.5961 +
2.5962 +( exit $ac_status )
2.5963 +ac_cv_header_stdc=no
2.5964 +fi
2.5965 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2.5966 +fi
2.5967 +
2.5968 +
2.5969 +fi
2.5970 +fi
2.5971 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2.5972 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
2.5973 +if test $ac_cv_header_stdc = yes; then
2.5974 +
2.5975 +cat >>confdefs.h <<\_ACEOF
2.5976 +#define STDC_HEADERS 1
2.5977 +_ACEOF
2.5978 +
2.5979 +fi
2.5980 +
2.5981 +
2.5982 +
2.5983 +depcc="$OBJC" am_compiler_list='gcc3 gcc'
2.5984 +
2.5985 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.5986 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.5987 +if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
2.5988 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.5989 +else
2.5990 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.5991 + # We make a subdir and do the tests there. Otherwise we can end up
2.5992 + # making bogus files that we don't know about and never remove. For
2.5993 + # instance it was reported that on HP-UX the gcc test will end up
2.5994 + # making a dummy file named `D' -- because `-MD' means `put the output
2.5995 + # in D'.
2.5996 + mkdir conftest.dir
2.5997 + # Copy depcomp to subdir because otherwise we won't find it if we're
2.5998 + # using a relative directory.
2.5999 + cp "$am_depcomp" conftest.dir
2.6000 + cd conftest.dir
2.6001 + # We will build objects and dependencies in a subdirectory because
2.6002 + # it helps to detect inapplicable dependency modes. For instance
2.6003 + # both Tru64's cc and ICC support -MD to output dependencies as a
2.6004 + # side effect of compilation, but ICC will put the dependencies in
2.6005 + # the current directory while Tru64 will put them in the object
2.6006 + # directory.
2.6007 + mkdir sub
2.6008 +
2.6009 + am_cv_OBJC_dependencies_compiler_type=none
2.6010 + if test "$am_compiler_list" = ""; then
2.6011 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.6012 + fi
2.6013 + for depmode in $am_compiler_list; do
2.6014 + # Setup a source with many dependencies, because some compilers
2.6015 + # like to wrap large dependency lists on column 80 (with \), and
2.6016 + # we should not choose a depcomp mode which is confused by this.
2.6017 + #
2.6018 + # We need to recreate these files for each test, as the compiler may
2.6019 + # overwrite some of them when testing with obscure command lines.
2.6020 + # This happens at least with the AIX C compiler.
2.6021 + : > sub/conftest.c
2.6022 + for i in 1 2 3 4 5 6; do
2.6023 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.6024 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.6025 + # Solaris 8's {/usr,}/bin/sh.
2.6026 + touch sub/conftst$i.h
2.6027 + done
2.6028 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.6029 +
2.6030 + case $depmode in
2.6031 + nosideeffect)
2.6032 + # after this tag, mechanisms are not by side-effect, so they'll
2.6033 + # only be used when explicitly requested
2.6034 + if test "x$enable_dependency_tracking" = xyes; then
2.6035 + continue
2.6036 + else
2.6037 + break
2.6038 + fi
2.6039 + ;;
2.6040 + none) break ;;
2.6041 + esac
2.6042 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.6043 + # mode. It turns out that the SunPro C++ compiler does not properly
2.6044 + # handle `-M -o', and we need to detect this.
2.6045 + if depmode=$depmode \
2.6046 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.6047 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.6048 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.6049 + >/dev/null 2>conftest.err &&
2.6050 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.6051 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.6052 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.6053 + # icc doesn't choke on unknown options, it will just issue warnings
2.6054 + # or remarks (even with -Werror). So we grep stderr for any message
2.6055 + # that says an option was ignored or not supported.
2.6056 + # When given -MP, icc 7.0 and 7.1 complain thusly:
2.6057 + # icc: Command line warning: ignoring option '-M'; no argument required
2.6058 + # The diagnosis changed in icc 8.0:
2.6059 + # icc: Command line remark: option '-MP' not supported
2.6060 + if (grep 'ignoring option' conftest.err ||
2.6061 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.6062 + am_cv_OBJC_dependencies_compiler_type=$depmode
2.6063 + break
2.6064 + fi
2.6065 + fi
2.6066 + done
2.6067 +
2.6068 + cd ..
2.6069 + rm -rf conftest.dir
2.6070 +else
2.6071 + am_cv_OBJC_dependencies_compiler_type=none
2.6072 +fi
2.6073 +
2.6074 +fi
2.6075 +{ echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
2.6076 +echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
2.6077 +OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
2.6078 +
2.6079 +
2.6080 +
2.6081 +if
2.6082 + test "x$enable_dependency_tracking" != xno \
2.6083 + && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
2.6084 + am__fastdepOBJC_TRUE=
2.6085 + am__fastdepOBJC_FALSE='#'
2.6086 +else
2.6087 + am__fastdepOBJC_TRUE='#'
2.6088 + am__fastdepOBJC_FALSE=
2.6089 +fi
2.6090 +
2.6091 +
2.6092 +
2.6093 +# Extract the first word of "pod2man", so it can be a program name with args.
2.6094 +set dummy pod2man; ac_word=$2
2.6095 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6096 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6097 +if test "${ac_cv_path_POD2MAN+set}" = set; then
2.6098 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.6099 +else
2.6100 + case $POD2MAN in
2.6101 + [\\/]* | ?:[\\/]*)
2.6102 + ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
2.6103 + ;;
2.6104 + *)
2.6105 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6106 +for as_dir in $PATH
2.6107 +do
2.6108 + IFS=$as_save_IFS
2.6109 + test -z "$as_dir" && as_dir=.
2.6110 + for ac_exec_ext in '' $ac_executable_extensions; do
2.6111 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6112 + ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
2.6113 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6114 + break 2
2.6115 + fi
2.6116 +done
2.6117 +done
2.6118 +IFS=$as_save_IFS
2.6119 +
2.6120 + ;;
2.6121 +esac
2.6122 +fi
2.6123 +POD2MAN=$ac_cv_path_POD2MAN
2.6124 +if test -n "$POD2MAN"; then
2.6125 + { echo "$as_me:$LINENO: result: $POD2MAN" >&5
2.6126 +echo "${ECHO_T}$POD2MAN" >&6; }
2.6127 +else
2.6128 + { echo "$as_me:$LINENO: result: no" >&5
2.6129 +echo "${ECHO_T}no" >&6; }
2.6130 +fi
2.6131 +
2.6132 +
2.6133 +# Extract the first word of "pod2html", so it can be a program name with args.
2.6134 +set dummy pod2html; ac_word=$2
2.6135 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6136 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6137 +if test "${ac_cv_path_POD2HTML+set}" = set; then
2.6138 + echo $ECHO_N "(cached) $ECHO_C" >&6
2.6139 +else
2.6140 + case $POD2HTML in
2.6141 + [\\/]* | ?:[\\/]*)
2.6142 + ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
2.6143 + ;;
2.6144 + *)
2.6145 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6146 +for as_dir in $PATH
2.6147 +do
2.6148 + IFS=$as_save_IFS
2.6149 + test -z "$as_dir" && as_dir=.
2.6150 + for ac_exec_ext in '' $ac_executable_extensions; do
2.6151 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6152 + ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
2.6153 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6154 + break 2
2.6155 + fi
2.6156 +done
2.6157 +done
2.6158 +IFS=$as_save_IFS
2.6159 +
2.6160 + ;;
2.6161 +esac
2.6162 +fi
2.6163 +POD2HTML=$ac_cv_path_POD2HTML
2.6164 +if test -n "$POD2HTML"; then
2.6165 + { echo "$as_me:$LINENO: result: $POD2HTML" >&5
2.6166 +echo "${ECHO_T}$POD2HTML" >&6; }
2.6167 +else
2.6168 + { echo "$as_me:$LINENO: result: no" >&5
2.6169 +echo "${ECHO_T}no" >&6; }
2.6170 +fi
2.6171 +
2.6172 +
2.6173 +
2.6174 +
2.6175 +cat >>confdefs.h <<_ACEOF
2.6176 +#define BUILD_SED_PROG "${SED}"
2.6177 +_ACEOF
2.6178 +
2.6179 +
2.6180 +cat >>confdefs.h <<_ACEOF
2.6181 +#define BUILD_CPP_PROG "${CPP}"
2.6182 +_ACEOF
2.6183 +
2.6184 +
2.6185 +
2.6186 +# Check whether --enable-strict-warn was given.
2.6187 +if test "${enable_strict_warn+set}" = set; then
2.6188 + enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
2.6189 + enable_strictwarn=yes
2.6190 + fi
2.6191 +fi
2.6192 +
2.6193 +# Check whether --enable-translator was given.
2.6194 +if test "${enable_translator+set}" = set; then
2.6195 + enableval=$enable_translator; true
2.6196 +else
2.6197 + enable_translator=yes
2.6198 +fi
2.6199 +
2.6200 +# Check whether --enable-optimized was given.
2.6201 +if test "${enable_optimized+set}" = set; then
2.6202 + enableval=$enable_optimized; true
2.6203 +else
2.6204 + enable_optimized=yes
2.6205 +fi
2.6206 +
2.6207 +# Check whether --enable-shared was given.
2.6208 +if test "${enable_shared+set}" = set; then
2.6209 + enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
2.6210 +else
2.6211 + enable_shared=cond
2.6212 +fi
2.6213 +
2.6214 +# Check whether --enable-profiled was given.
2.6215 +if test "${enable_profiled+set}" = set; then
2.6216 + enableval=$enable_profiled; if test "$enableval" == "yes"; then
2.6217 + enable_profiled=yes;
2.6218 + fi
2.6219 +fi
2.6220 +
2.6221 +# Check whether --enable-trace was given.
2.6222 +if test "${enable_trace+set}" = set; then
2.6223 + enableval=$enable_trace; if test "$enableval" == "yes"; then
2.6224 +
2.6225 +cat >>confdefs.h <<\_ACEOF
2.6226 +#define ENABLE_TRACE_IO 1
2.6227 +_ACEOF
2.6228 +
2.6229 + fi
2.6230 +fi
2.6231 +
2.6232 +# Check whether --enable-watch was given.
2.6233 +if test "${enable_watch+set}" = set; then
2.6234 + enableval=$enable_watch; if test "$enableval" == "yes"; then
2.6235 +
2.6236 +cat >>confdefs.h <<\_ACEOF
2.6237 +#define ENABLE_WATCH 1
2.6238 +_ACEOF
2.6239 +
2.6240 + fi
2.6241 +fi
2.6242 +
2.6243 +# Check whether --enable-sh4stats was given.
2.6244 +if test "${enable_sh4stats+set}" = set; then
2.6245 + enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
2.6246 +
2.6247 +cat >>confdefs.h <<\_ACEOF
2.6248 +#define ENABLE_SH4STATS 1
2.6249 +_ACEOF
2.6250 +
2.6251 + fi
2.6252 +fi
2.6253 +
2.6254 +
2.6255 +# Check whether --with-osmesa was given.
2.6256 +if test "${with_osmesa+set}" = set; then
2.6257 + withval=$with_osmesa;
2.6258 +else
2.6259 + with_osmesa=no
2.6260 +fi
2.6261 +
2.6262 +
2.6263 +# Check whether --with-gtk was given.
2.6264 +if test "${with_gtk+set}" = set; then
2.6265 + withval=$with_gtk; with_gtk=yes
2.6266 +else
2.6267 + with_gtk=x11
2.6268 +fi
2.6269 +
2.6270 +
2.6271 +# Check whether --with-esd was given.
2.6272 +if test "${with_esd+set}" = set; then
2.6273 + withval=$with_esd;
2.6274 +fi
2.6275 +
2.6276 +
2.6277 +# Check whether --with-pulse was given.
2.6278 +if test "${with_pulse+set}" = set; then
2.6279 + withval=$with_pulse;
2.6280 +fi
2.6281 +
2.6282 +
2.6283 +# Check whether --with-sdl was given.
2.6284 +if test "${with_sdl+set}" = set; then
2.6285 + withval=$with_sdl;
2.6286 +fi
2.6287 +
2.6288 +
2.6289 +
2.6290 +# Check whether --with-sysroot was given.
2.6291 +if test "${with_sysroot+set}" = set; then
2.6292 + withval=$with_sysroot;
2.6293 + if test -d "$with_sysroot/lib/pkgconfig"; then
2.6294 + LDFLAGS="$LDFLAGS -L$with_sysroot/lib"
2.6295 + CPPFLAGS="$CPPFLAGS -I$with_sysroot/include"
2.6296 + BUILD_PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
2.6297 + TARGET_PKG_CONFIG_LIBDIR="$with_sysroot/lib/pkgconfig"
2.6298 + PKG_CONFIG_LIBDIR="$TARGET_PKG_CONFIG_LIBDIR"
2.6299 + export PKG_CONFIG_LIBDIR;
2.6300 + else
2.6301 + { { echo "$as_me:$LINENO: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
2.6302 +See \`config.log' for more details." >&5
2.6303 +echo "$as_me: error: pkg-config directory $with_sysroot/lib/pkgconfig not found, when using --with-sysroot=$with_sysroot option
2.6304 +See \`config.log' for more details." >&2;}
2.6305 + { (exit 1); exit 1; }; }
2.6306 + fi
2.6307 +
2.6308 +fi
2.6309 +
2.6310 +
2.6311 +
2.6312
2.6313
2.6314 # Check whether --with-android was given.
2.6315 @@ -2748,7 +8989,6 @@
2.6316 CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
2.6317 LD="$ANDROID_NDK_BIN/${host_alias}-ld"
2.6318 AR="$ANDROID_NDK_BIN/${host_alias}-ar"
2.6319 - GDB="$ANDROID_NDK_BIN/${host_alias}-gdb"
2.6320 RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
2.6321 STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
2.6322 OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
2.6323 @@ -2763,7 +9003,6 @@
2.6324
2.6325
2.6326
2.6327 -
2.6328 ANDROID_BUILD=yes
2.6329 cross_compiling=yes
2.6330 fi
2.6331 @@ -2781,6234 +9020,11 @@
2.6332
2.6333
2.6334
2.6335 -DEPDIR="${am__leading_dot}deps"
2.6336 -
2.6337 -ac_config_commands="$ac_config_commands depfiles"
2.6338 -
2.6339 -
2.6340 -am_make=${MAKE-make}
2.6341 -cat > confinc << 'END'
2.6342 -am__doit:
2.6343 - @echo done
2.6344 -.PHONY: am__doit
2.6345 -END
2.6346 -# If we don't find an include directive, just comment out the code.
2.6347 -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2.6348 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2.6349 -am__include="#"
2.6350 -am__quote=
2.6351 -_am_result=none
2.6352 -# First try GNU make style include.
2.6353 -echo "include confinc" > confmf
2.6354 -# We grep out `Entering directory' and `Leaving directory'
2.6355 -# messages which can occur if `w' ends up in MAKEFLAGS.
2.6356 -# In particular we don't look at `^make:' because GNU make might
2.6357 -# be invoked under some other name (usually "gmake"), in which
2.6358 -# case it prints its new name instead of `make'.
2.6359 -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2.6360 - am__include=include
2.6361 - am__quote=
2.6362 - _am_result=GNU
2.6363 -fi
2.6364 -# Now try BSD make style include.
2.6365 -if test "$am__include" = "#"; then
2.6366 - echo '.include "confinc"' > confmf
2.6367 - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2.6368 - am__include=.include
2.6369 - am__quote="\""
2.6370 - _am_result=BSD
2.6371 - fi
2.6372 -fi
2.6373 -
2.6374 -
2.6375 -{ echo "$as_me:$LINENO: result: $_am_result" >&5
2.6376 -echo "${ECHO_T}$_am_result" >&6; }
2.6377 -rm -f confinc confmf
2.6378 -
2.6379 -# Check whether --enable-dependency-tracking was given.
2.6380 -if test "${enable_dependency_tracking+set}" = set; then
2.6381 - enableval=$enable_dependency_tracking;
2.6382 -fi
2.6383 -
2.6384 -if test "x$enable_dependency_tracking" != xno; then
2.6385 - am_depcomp="$ac_aux_dir/depcomp"
2.6386 - AMDEPBACKSLASH='\'
2.6387 -fi
2.6388 -
2.6389 -
2.6390 -if test "x$enable_dependency_tracking" != xno; then
2.6391 - AMDEP_TRUE=
2.6392 - AMDEP_FALSE='#'
2.6393 -else
2.6394 - AMDEP_TRUE='#'
2.6395 - AMDEP_FALSE=
2.6396 -fi
2.6397 -
2.6398 -
2.6399 -
2.6400 -ac_ext=c
2.6401 -ac_cpp='$CPP $CPPFLAGS'
2.6402 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.6403 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.6404 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.6405 -if test -n "$ac_tool_prefix"; then
2.6406 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.6407 -set dummy ${ac_tool_prefix}gcc; ac_word=$2
2.6408 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6409 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6410 -if test "${ac_cv_prog_CC+set}" = set; then
2.6411 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6412 -else
2.6413 - if test -n "$CC"; then
2.6414 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.6415 -else
2.6416 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6417 -for as_dir in $PATH
2.6418 -do
2.6419 - IFS=$as_save_IFS
2.6420 - test -z "$as_dir" && as_dir=.
2.6421 - for ac_exec_ext in '' $ac_executable_extensions; do
2.6422 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6423 - ac_cv_prog_CC="${ac_tool_prefix}gcc"
2.6424 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6425 - break 2
2.6426 - fi
2.6427 -done
2.6428 -done
2.6429 -IFS=$as_save_IFS
2.6430 -
2.6431 -fi
2.6432 -fi
2.6433 -CC=$ac_cv_prog_CC
2.6434 -if test -n "$CC"; then
2.6435 - { echo "$as_me:$LINENO: result: $CC" >&5
2.6436 -echo "${ECHO_T}$CC" >&6; }
2.6437 -else
2.6438 - { echo "$as_me:$LINENO: result: no" >&5
2.6439 -echo "${ECHO_T}no" >&6; }
2.6440 -fi
2.6441 -
2.6442 -
2.6443 -fi
2.6444 -if test -z "$ac_cv_prog_CC"; then
2.6445 - ac_ct_CC=$CC
2.6446 - # Extract the first word of "gcc", so it can be a program name with args.
2.6447 -set dummy gcc; ac_word=$2
2.6448 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6449 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6450 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.6451 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6452 -else
2.6453 - if test -n "$ac_ct_CC"; then
2.6454 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.6455 -else
2.6456 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6457 -for as_dir in $PATH
2.6458 -do
2.6459 - IFS=$as_save_IFS
2.6460 - test -z "$as_dir" && as_dir=.
2.6461 - for ac_exec_ext in '' $ac_executable_extensions; do
2.6462 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6463 - ac_cv_prog_ac_ct_CC="gcc"
2.6464 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6465 - break 2
2.6466 - fi
2.6467 -done
2.6468 -done
2.6469 -IFS=$as_save_IFS
2.6470 -
2.6471 -fi
2.6472 -fi
2.6473 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.6474 -if test -n "$ac_ct_CC"; then
2.6475 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.6476 -echo "${ECHO_T}$ac_ct_CC" >&6; }
2.6477 -else
2.6478 - { echo "$as_me:$LINENO: result: no" >&5
2.6479 -echo "${ECHO_T}no" >&6; }
2.6480 -fi
2.6481 -
2.6482 - if test "x$ac_ct_CC" = x; then
2.6483 - CC=""
2.6484 - else
2.6485 - case $cross_compiling:$ac_tool_warned in
2.6486 -yes:)
2.6487 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.6488 -whose name does not start with the host triplet. If you think this
2.6489 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.6490 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.6491 -whose name does not start with the host triplet. If you think this
2.6492 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.6493 -ac_tool_warned=yes ;;
2.6494 -esac
2.6495 - CC=$ac_ct_CC
2.6496 - fi
2.6497 -else
2.6498 - CC="$ac_cv_prog_CC"
2.6499 -fi
2.6500 -
2.6501 -if test -z "$CC"; then
2.6502 - if test -n "$ac_tool_prefix"; then
2.6503 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.6504 -set dummy ${ac_tool_prefix}cc; ac_word=$2
2.6505 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6506 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6507 -if test "${ac_cv_prog_CC+set}" = set; then
2.6508 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6509 -else
2.6510 - if test -n "$CC"; then
2.6511 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.6512 -else
2.6513 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6514 -for as_dir in $PATH
2.6515 -do
2.6516 - IFS=$as_save_IFS
2.6517 - test -z "$as_dir" && as_dir=.
2.6518 - for ac_exec_ext in '' $ac_executable_extensions; do
2.6519 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6520 - ac_cv_prog_CC="${ac_tool_prefix}cc"
2.6521 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6522 - break 2
2.6523 - fi
2.6524 -done
2.6525 -done
2.6526 -IFS=$as_save_IFS
2.6527 -
2.6528 -fi
2.6529 -fi
2.6530 -CC=$ac_cv_prog_CC
2.6531 -if test -n "$CC"; then
2.6532 - { echo "$as_me:$LINENO: result: $CC" >&5
2.6533 -echo "${ECHO_T}$CC" >&6; }
2.6534 -else
2.6535 - { echo "$as_me:$LINENO: result: no" >&5
2.6536 -echo "${ECHO_T}no" >&6; }
2.6537 -fi
2.6538 -
2.6539 -
2.6540 - fi
2.6541 -fi
2.6542 -if test -z "$CC"; then
2.6543 - # Extract the first word of "cc", so it can be a program name with args.
2.6544 -set dummy cc; ac_word=$2
2.6545 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6546 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6547 -if test "${ac_cv_prog_CC+set}" = set; then
2.6548 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6549 -else
2.6550 - if test -n "$CC"; then
2.6551 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.6552 -else
2.6553 - ac_prog_rejected=no
2.6554 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6555 -for as_dir in $PATH
2.6556 -do
2.6557 - IFS=$as_save_IFS
2.6558 - test -z "$as_dir" && as_dir=.
2.6559 - for ac_exec_ext in '' $ac_executable_extensions; do
2.6560 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6561 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.6562 - ac_prog_rejected=yes
2.6563 - continue
2.6564 - fi
2.6565 - ac_cv_prog_CC="cc"
2.6566 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6567 - break 2
2.6568 - fi
2.6569 -done
2.6570 -done
2.6571 -IFS=$as_save_IFS
2.6572 -
2.6573 -if test $ac_prog_rejected = yes; then
2.6574 - # We found a bogon in the path, so make sure we never use it.
2.6575 - set dummy $ac_cv_prog_CC
2.6576 - shift
2.6577 - if test $# != 0; then
2.6578 - # We chose a different compiler from the bogus one.
2.6579 - # However, it has the same basename, so the bogon will be chosen
2.6580 - # first if we set CC to just the basename; use the full file name.
2.6581 - shift
2.6582 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2.6583 - fi
2.6584 -fi
2.6585 -fi
2.6586 -fi
2.6587 -CC=$ac_cv_prog_CC
2.6588 -if test -n "$CC"; then
2.6589 - { echo "$as_me:$LINENO: result: $CC" >&5
2.6590 -echo "${ECHO_T}$CC" >&6; }
2.6591 -else
2.6592 - { echo "$as_me:$LINENO: result: no" >&5
2.6593 -echo "${ECHO_T}no" >&6; }
2.6594 -fi
2.6595 -
2.6596 -
2.6597 -fi
2.6598 -if test -z "$CC"; then
2.6599 - if test -n "$ac_tool_prefix"; then
2.6600 - for ac_prog in cl.exe
2.6601 - do
2.6602 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.6603 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.6604 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6605 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6606 -if test "${ac_cv_prog_CC+set}" = set; then
2.6607 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6608 -else
2.6609 - if test -n "$CC"; then
2.6610 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.6611 -else
2.6612 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6613 -for as_dir in $PATH
2.6614 -do
2.6615 - IFS=$as_save_IFS
2.6616 - test -z "$as_dir" && as_dir=.
2.6617 - for ac_exec_ext in '' $ac_executable_extensions; do
2.6618 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6619 - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2.6620 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6621 - break 2
2.6622 - fi
2.6623 -done
2.6624 -done
2.6625 -IFS=$as_save_IFS
2.6626 -
2.6627 -fi
2.6628 -fi
2.6629 -CC=$ac_cv_prog_CC
2.6630 -if test -n "$CC"; then
2.6631 - { echo "$as_me:$LINENO: result: $CC" >&5
2.6632 -echo "${ECHO_T}$CC" >&6; }
2.6633 -else
2.6634 - { echo "$as_me:$LINENO: result: no" >&5
2.6635 -echo "${ECHO_T}no" >&6; }
2.6636 -fi
2.6637 -
2.6638 -
2.6639 - test -n "$CC" && break
2.6640 - done
2.6641 -fi
2.6642 -if test -z "$CC"; then
2.6643 - ac_ct_CC=$CC
2.6644 - for ac_prog in cl.exe
2.6645 -do
2.6646 - # Extract the first word of "$ac_prog", so it can be a program name with args.
2.6647 -set dummy $ac_prog; ac_word=$2
2.6648 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.6649 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.6650 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.6651 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6652 -else
2.6653 - if test -n "$ac_ct_CC"; then
2.6654 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.6655 -else
2.6656 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.6657 -for as_dir in $PATH
2.6658 -do
2.6659 - IFS=$as_save_IFS
2.6660 - test -z "$as_dir" && as_dir=.
2.6661 - for ac_exec_ext in '' $ac_executable_extensions; do
2.6662 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.6663 - ac_cv_prog_ac_ct_CC="$ac_prog"
2.6664 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.6665 - break 2
2.6666 - fi
2.6667 -done
2.6668 -done
2.6669 -IFS=$as_save_IFS
2.6670 -
2.6671 -fi
2.6672 -fi
2.6673 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.6674 -if test -n "$ac_ct_CC"; then
2.6675 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.6676 -echo "${ECHO_T}$ac_ct_CC" >&6; }
2.6677 -else
2.6678 - { echo "$as_me:$LINENO: result: no" >&5
2.6679 -echo "${ECHO_T}no" >&6; }
2.6680 -fi
2.6681 -
2.6682 -
2.6683 - test -n "$ac_ct_CC" && break
2.6684 -done
2.6685 -
2.6686 - if test "x$ac_ct_CC" = x; then
2.6687 - CC=""
2.6688 - else
2.6689 - case $cross_compiling:$ac_tool_warned in
2.6690 -yes:)
2.6691 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.6692 -whose name does not start with the host triplet. If you think this
2.6693 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.6694 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.6695 -whose name does not start with the host triplet. If you think this
2.6696 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.6697 -ac_tool_warned=yes ;;
2.6698 -esac
2.6699 - CC=$ac_ct_CC
2.6700 - fi
2.6701 -fi
2.6702 -
2.6703 -fi
2.6704 -
2.6705 -
2.6706 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.6707 -See \`config.log' for more details." >&5
2.6708 -echo "$as_me: error: no acceptable C compiler found in \$PATH
2.6709 -See \`config.log' for more details." >&2;}
2.6710 - { (exit 1); exit 1; }; }
2.6711 -
2.6712 -# Provide some information about the compiler.
2.6713 -echo "$as_me:$LINENO: checking for C compiler version" >&5
2.6714 -ac_compiler=`set X $ac_compile; echo $2`
2.6715 -{ (ac_try="$ac_compiler --version >&5"
2.6716 -case "(($ac_try" in
2.6717 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6718 - *) ac_try_echo=$ac_try;;
2.6719 -esac
2.6720 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6721 - (eval "$ac_compiler --version >&5") 2>&5
2.6722 - ac_status=$?
2.6723 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6724 - (exit $ac_status); }
2.6725 -{ (ac_try="$ac_compiler -v >&5"
2.6726 -case "(($ac_try" in
2.6727 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6728 - *) ac_try_echo=$ac_try;;
2.6729 -esac
2.6730 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6731 - (eval "$ac_compiler -v >&5") 2>&5
2.6732 - ac_status=$?
2.6733 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6734 - (exit $ac_status); }
2.6735 -{ (ac_try="$ac_compiler -V >&5"
2.6736 -case "(($ac_try" in
2.6737 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6738 - *) ac_try_echo=$ac_try;;
2.6739 -esac
2.6740 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6741 - (eval "$ac_compiler -V >&5") 2>&5
2.6742 - ac_status=$?
2.6743 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6744 - (exit $ac_status); }
2.6745 -
2.6746 -cat >conftest.$ac_ext <<_ACEOF
2.6747 -/* confdefs.h. */
2.6748 -_ACEOF
2.6749 -cat confdefs.h >>conftest.$ac_ext
2.6750 -cat >>conftest.$ac_ext <<_ACEOF
2.6751 -/* end confdefs.h. */
2.6752 -
2.6753 -int
2.6754 -main ()
2.6755 -{
2.6756 -
2.6757 - ;
2.6758 - return 0;
2.6759 -}
2.6760 -_ACEOF
2.6761 -ac_clean_files_save=$ac_clean_files
2.6762 -ac_clean_files="$ac_clean_files a.out a.exe b.out"
2.6763 -# Try to create an executable without -o first, disregard a.out.
2.6764 -# It will help us diagnose broken compilers, and finding out an intuition
2.6765 -# of exeext.
2.6766 -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2.6767 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2.6768 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2.6769 -#
2.6770 -# List of possible output files, starting from the most likely.
2.6771 -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2.6772 -# only as a last resort. b.out is created by i960 compilers.
2.6773 -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2.6774 -#
2.6775 -# The IRIX 6 linker writes into existing files which may not be
2.6776 -# executable, retaining their permissions. Remove them first so a
2.6777 -# subsequent execution test works.
2.6778 -ac_rmfiles=
2.6779 -for ac_file in $ac_files
2.6780 -do
2.6781 - case $ac_file in
2.6782 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2.6783 - * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2.6784 - esac
2.6785 -done
2.6786 -rm -f $ac_rmfiles
2.6787 -
2.6788 -if { (ac_try="$ac_link_default"
2.6789 -case "(($ac_try" in
2.6790 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6791 - *) ac_try_echo=$ac_try;;
2.6792 -esac
2.6793 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6794 - (eval "$ac_link_default") 2>&5
2.6795 - ac_status=$?
2.6796 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6797 - (exit $ac_status); }; then
2.6798 - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2.6799 -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2.6800 -# in a Makefile. We should not override ac_cv_exeext if it was cached,
2.6801 -# so that the user can short-circuit this test for compilers unknown to
2.6802 -# Autoconf.
2.6803 -for ac_file in $ac_files ''
2.6804 -do
2.6805 - test -f "$ac_file" || continue
2.6806 - case $ac_file in
2.6807 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2.6808 - ;;
2.6809 - [ab].out )
2.6810 - # We found the default executable, but exeext='' is most
2.6811 - # certainly right.
2.6812 - break;;
2.6813 - *.* )
2.6814 - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2.6815 - then :; else
2.6816 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2.6817 - fi
2.6818 - # We set ac_cv_exeext here because the later test for it is not
2.6819 - # safe: cross compilers may not add the suffix if given an `-o'
2.6820 - # argument, so we may need to know it at that point already.
2.6821 - # Even if this section looks crufty: it has the advantage of
2.6822 - # actually working.
2.6823 - break;;
2.6824 - * )
2.6825 - break;;
2.6826 - esac
2.6827 -done
2.6828 -test "$ac_cv_exeext" = no && ac_cv_exeext=
2.6829 -
2.6830 -else
2.6831 - ac_file=''
2.6832 -fi
2.6833 -
2.6834 -{ echo "$as_me:$LINENO: result: $ac_file" >&5
2.6835 -echo "${ECHO_T}$ac_file" >&6; }
2.6836 -if test -z "$ac_file"; then
2.6837 - echo "$as_me: failed program was:" >&5
2.6838 -sed 's/^/| /' conftest.$ac_ext >&5
2.6839 -
2.6840 -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2.6841 -See \`config.log' for more details." >&5
2.6842 -echo "$as_me: error: C compiler cannot create executables
2.6843 -See \`config.log' for more details." >&2;}
2.6844 - { (exit 77); exit 77; }; }
2.6845 -fi
2.6846 -
2.6847 -ac_exeext=$ac_cv_exeext
2.6848 -
2.6849 -# Check that the compiler produces executables we can run. If not, either
2.6850 -# the compiler is broken, or we cross compile.
2.6851 -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2.6852 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2.6853 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2.6854 -# If not cross compiling, check that we can run a simple program.
2.6855 -if test "$cross_compiling" != yes; then
2.6856 - if { ac_try='./$ac_file'
2.6857 - { (case "(($ac_try" in
2.6858 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6859 - *) ac_try_echo=$ac_try;;
2.6860 -esac
2.6861 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6862 - (eval "$ac_try") 2>&5
2.6863 - ac_status=$?
2.6864 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6865 - (exit $ac_status); }; }; then
2.6866 - cross_compiling=no
2.6867 - else
2.6868 - if test "$cross_compiling" = maybe; then
2.6869 - cross_compiling=yes
2.6870 - else
2.6871 - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2.6872 -If you meant to cross compile, use \`--host'.
2.6873 -See \`config.log' for more details." >&5
2.6874 -echo "$as_me: error: cannot run C compiled programs.
2.6875 -If you meant to cross compile, use \`--host'.
2.6876 -See \`config.log' for more details." >&2;}
2.6877 - { (exit 1); exit 1; }; }
2.6878 - fi
2.6879 - fi
2.6880 -fi
2.6881 -{ echo "$as_me:$LINENO: result: yes" >&5
2.6882 -echo "${ECHO_T}yes" >&6; }
2.6883 -
2.6884 -rm -f a.out a.exe conftest$ac_cv_exeext b.out
2.6885 -ac_clean_files=$ac_clean_files_save
2.6886 -# Check that the compiler produces executables we can run. If not, either
2.6887 -# the compiler is broken, or we cross compile.
2.6888 -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2.6889 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2.6890 -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2.6891 -echo "${ECHO_T}$cross_compiling" >&6; }
2.6892 -
2.6893 -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2.6894 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2.6895 -if { (ac_try="$ac_link"
2.6896 -case "(($ac_try" in
2.6897 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6898 - *) ac_try_echo=$ac_try;;
2.6899 -esac
2.6900 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6901 - (eval "$ac_link") 2>&5
2.6902 - ac_status=$?
2.6903 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6904 - (exit $ac_status); }; then
2.6905 - # If both `conftest.exe' and `conftest' are `present' (well, observable)
2.6906 -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2.6907 -# work properly (i.e., refer to `conftest.exe'), while it won't with
2.6908 -# `rm'.
2.6909 -for ac_file in conftest.exe conftest conftest.*; do
2.6910 - test -f "$ac_file" || continue
2.6911 - case $ac_file in
2.6912 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2.6913 - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2.6914 - break;;
2.6915 - * ) break;;
2.6916 - esac
2.6917 -done
2.6918 -else
2.6919 - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2.6920 -See \`config.log' for more details." >&5
2.6921 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2.6922 -See \`config.log' for more details." >&2;}
2.6923 - { (exit 1); exit 1; }; }
2.6924 -fi
2.6925 -
2.6926 -rm -f conftest$ac_cv_exeext
2.6927 -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2.6928 -echo "${ECHO_T}$ac_cv_exeext" >&6; }
2.6929 -
2.6930 -rm -f conftest.$ac_ext
2.6931 -EXEEXT=$ac_cv_exeext
2.6932 -ac_exeext=$EXEEXT
2.6933 -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2.6934 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2.6935 -if test "${ac_cv_objext+set}" = set; then
2.6936 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6937 -else
2.6938 - cat >conftest.$ac_ext <<_ACEOF
2.6939 -/* confdefs.h. */
2.6940 -_ACEOF
2.6941 -cat confdefs.h >>conftest.$ac_ext
2.6942 -cat >>conftest.$ac_ext <<_ACEOF
2.6943 -/* end confdefs.h. */
2.6944 -
2.6945 -int
2.6946 -main ()
2.6947 -{
2.6948 -
2.6949 - ;
2.6950 - return 0;
2.6951 -}
2.6952 -_ACEOF
2.6953 -rm -f conftest.o conftest.obj
2.6954 -if { (ac_try="$ac_compile"
2.6955 -case "(($ac_try" in
2.6956 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.6957 - *) ac_try_echo=$ac_try;;
2.6958 -esac
2.6959 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.6960 - (eval "$ac_compile") 2>&5
2.6961 - ac_status=$?
2.6962 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.6963 - (exit $ac_status); }; then
2.6964 - for ac_file in conftest.o conftest.obj conftest.*; do
2.6965 - test -f "$ac_file" || continue;
2.6966 - case $ac_file in
2.6967 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2.6968 - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2.6969 - break;;
2.6970 - esac
2.6971 -done
2.6972 -else
2.6973 - echo "$as_me: failed program was:" >&5
2.6974 -sed 's/^/| /' conftest.$ac_ext >&5
2.6975 -
2.6976 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2.6977 -See \`config.log' for more details." >&5
2.6978 -echo "$as_me: error: cannot compute suffix of object files: cannot compile
2.6979 -See \`config.log' for more details." >&2;}
2.6980 - { (exit 1); exit 1; }; }
2.6981 -fi
2.6982 -
2.6983 -rm -f conftest.$ac_cv_objext conftest.$ac_ext
2.6984 -fi
2.6985 -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2.6986 -echo "${ECHO_T}$ac_cv_objext" >&6; }
2.6987 -OBJEXT=$ac_cv_objext
2.6988 -ac_objext=$OBJEXT
2.6989 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.6990 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.6991 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.6992 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.6993 -else
2.6994 - cat >conftest.$ac_ext <<_ACEOF
2.6995 -/* confdefs.h. */
2.6996 -_ACEOF
2.6997 -cat confdefs.h >>conftest.$ac_ext
2.6998 -cat >>conftest.$ac_ext <<_ACEOF
2.6999 -/* end confdefs.h. */
2.7000 -
2.7001 -int
2.7002 -main ()
2.7003 -{
2.7004 -#ifndef __GNUC__
2.7005 - choke me
2.7006 -#endif
2.7007 -
2.7008 - ;
2.7009 - return 0;
2.7010 -}
2.7011 -_ACEOF
2.7012 -rm -f conftest.$ac_objext
2.7013 -if { (ac_try="$ac_compile"
2.7014 -case "(($ac_try" in
2.7015 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7016 - *) ac_try_echo=$ac_try;;
2.7017 -esac
2.7018 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7019 - (eval "$ac_compile") 2>conftest.er1
2.7020 - ac_status=$?
2.7021 - grep -v '^ *+' conftest.er1 >conftest.err
2.7022 - rm -f conftest.er1
2.7023 - cat conftest.err >&5
2.7024 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7025 - (exit $ac_status); } && {
2.7026 - test -z "$ac_c_werror_flag" ||
2.7027 - test ! -s conftest.err
2.7028 - } && test -s conftest.$ac_objext; then
2.7029 - ac_compiler_gnu=yes
2.7030 -else
2.7031 - echo "$as_me: failed program was:" >&5
2.7032 -sed 's/^/| /' conftest.$ac_ext >&5
2.7033 -
2.7034 - ac_compiler_gnu=no
2.7035 -fi
2.7036 -
2.7037 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.7038 -ac_cv_c_compiler_gnu=$ac_compiler_gnu
2.7039 -
2.7040 -fi
2.7041 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.7042 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.7043 -GCC=`test $ac_compiler_gnu = yes && echo yes`
2.7044 -ac_test_CFLAGS=${CFLAGS+set}
2.7045 -ac_save_CFLAGS=$CFLAGS
2.7046 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2.7047 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2.7048 -if test "${ac_cv_prog_cc_g+set}" = set; then
2.7049 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7050 -else
2.7051 - ac_save_c_werror_flag=$ac_c_werror_flag
2.7052 - ac_c_werror_flag=yes
2.7053 - ac_cv_prog_cc_g=no
2.7054 - CFLAGS="-g"
2.7055 - cat >conftest.$ac_ext <<_ACEOF
2.7056 -/* confdefs.h. */
2.7057 -_ACEOF
2.7058 -cat confdefs.h >>conftest.$ac_ext
2.7059 -cat >>conftest.$ac_ext <<_ACEOF
2.7060 -/* end confdefs.h. */
2.7061 -
2.7062 -int
2.7063 -main ()
2.7064 -{
2.7065 -
2.7066 - ;
2.7067 - return 0;
2.7068 -}
2.7069 -_ACEOF
2.7070 -rm -f conftest.$ac_objext
2.7071 -if { (ac_try="$ac_compile"
2.7072 -case "(($ac_try" in
2.7073 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7074 - *) ac_try_echo=$ac_try;;
2.7075 -esac
2.7076 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7077 - (eval "$ac_compile") 2>conftest.er1
2.7078 - ac_status=$?
2.7079 - grep -v '^ *+' conftest.er1 >conftest.err
2.7080 - rm -f conftest.er1
2.7081 - cat conftest.err >&5
2.7082 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7083 - (exit $ac_status); } && {
2.7084 - test -z "$ac_c_werror_flag" ||
2.7085 - test ! -s conftest.err
2.7086 - } && test -s conftest.$ac_objext; then
2.7087 - ac_cv_prog_cc_g=yes
2.7088 -else
2.7089 - echo "$as_me: failed program was:" >&5
2.7090 -sed 's/^/| /' conftest.$ac_ext >&5
2.7091 -
2.7092 - CFLAGS=""
2.7093 - cat >conftest.$ac_ext <<_ACEOF
2.7094 -/* confdefs.h. */
2.7095 -_ACEOF
2.7096 -cat confdefs.h >>conftest.$ac_ext
2.7097 -cat >>conftest.$ac_ext <<_ACEOF
2.7098 -/* end confdefs.h. */
2.7099 -
2.7100 -int
2.7101 -main ()
2.7102 -{
2.7103 -
2.7104 - ;
2.7105 - return 0;
2.7106 -}
2.7107 -_ACEOF
2.7108 -rm -f conftest.$ac_objext
2.7109 -if { (ac_try="$ac_compile"
2.7110 -case "(($ac_try" in
2.7111 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7112 - *) ac_try_echo=$ac_try;;
2.7113 -esac
2.7114 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7115 - (eval "$ac_compile") 2>conftest.er1
2.7116 - ac_status=$?
2.7117 - grep -v '^ *+' conftest.er1 >conftest.err
2.7118 - rm -f conftest.er1
2.7119 - cat conftest.err >&5
2.7120 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7121 - (exit $ac_status); } && {
2.7122 - test -z "$ac_c_werror_flag" ||
2.7123 - test ! -s conftest.err
2.7124 - } && test -s conftest.$ac_objext; then
2.7125 - :
2.7126 -else
2.7127 - echo "$as_me: failed program was:" >&5
2.7128 -sed 's/^/| /' conftest.$ac_ext >&5
2.7129 -
2.7130 - ac_c_werror_flag=$ac_save_c_werror_flag
2.7131 - CFLAGS="-g"
2.7132 - cat >conftest.$ac_ext <<_ACEOF
2.7133 -/* confdefs.h. */
2.7134 -_ACEOF
2.7135 -cat confdefs.h >>conftest.$ac_ext
2.7136 -cat >>conftest.$ac_ext <<_ACEOF
2.7137 -/* end confdefs.h. */
2.7138 -
2.7139 -int
2.7140 -main ()
2.7141 -{
2.7142 -
2.7143 - ;
2.7144 - return 0;
2.7145 -}
2.7146 -_ACEOF
2.7147 -rm -f conftest.$ac_objext
2.7148 -if { (ac_try="$ac_compile"
2.7149 -case "(($ac_try" in
2.7150 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7151 - *) ac_try_echo=$ac_try;;
2.7152 -esac
2.7153 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7154 - (eval "$ac_compile") 2>conftest.er1
2.7155 - ac_status=$?
2.7156 - grep -v '^ *+' conftest.er1 >conftest.err
2.7157 - rm -f conftest.er1
2.7158 - cat conftest.err >&5
2.7159 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7160 - (exit $ac_status); } && {
2.7161 - test -z "$ac_c_werror_flag" ||
2.7162 - test ! -s conftest.err
2.7163 - } && test -s conftest.$ac_objext; then
2.7164 - ac_cv_prog_cc_g=yes
2.7165 -else
2.7166 - echo "$as_me: failed program was:" >&5
2.7167 -sed 's/^/| /' conftest.$ac_ext >&5
2.7168 -
2.7169 -
2.7170 -fi
2.7171 -
2.7172 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.7173 -fi
2.7174 -
2.7175 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.7176 -fi
2.7177 -
2.7178 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.7179 - ac_c_werror_flag=$ac_save_c_werror_flag
2.7180 -fi
2.7181 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2.7182 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2.7183 -if test "$ac_test_CFLAGS" = set; then
2.7184 - CFLAGS=$ac_save_CFLAGS
2.7185 -elif test $ac_cv_prog_cc_g = yes; then
2.7186 - if test "$GCC" = yes; then
2.7187 - CFLAGS="-g -O2"
2.7188 - else
2.7189 - CFLAGS="-g"
2.7190 - fi
2.7191 -else
2.7192 - if test "$GCC" = yes; then
2.7193 - CFLAGS="-O2"
2.7194 - else
2.7195 - CFLAGS=
2.7196 - fi
2.7197 -fi
2.7198 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2.7199 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2.7200 -if test "${ac_cv_prog_cc_c89+set}" = set; then
2.7201 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7202 -else
2.7203 - ac_cv_prog_cc_c89=no
2.7204 -ac_save_CC=$CC
2.7205 -cat >conftest.$ac_ext <<_ACEOF
2.7206 -/* confdefs.h. */
2.7207 -_ACEOF
2.7208 -cat confdefs.h >>conftest.$ac_ext
2.7209 -cat >>conftest.$ac_ext <<_ACEOF
2.7210 -/* end confdefs.h. */
2.7211 -#include <stdarg.h>
2.7212 -#include <stdio.h>
2.7213 -#include <sys/types.h>
2.7214 -#include <sys/stat.h>
2.7215 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.7216 -struct buf { int x; };
2.7217 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.7218 -static char *e (p, i)
2.7219 - char **p;
2.7220 - int i;
2.7221 -{
2.7222 - return p[i];
2.7223 -}
2.7224 -static char *f (char * (*g) (char **, int), char **p, ...)
2.7225 -{
2.7226 - char *s;
2.7227 - va_list v;
2.7228 - va_start (v,p);
2.7229 - s = g (p, va_arg (v,int));
2.7230 - va_end (v);
2.7231 - return s;
2.7232 -}
2.7233 -
2.7234 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.7235 - function prototypes and stuff, but not '\xHH' hex character constants.
2.7236 - These don't provoke an error unfortunately, instead are silently treated
2.7237 - as 'x'. The following induces an error, until -std is added to get
2.7238 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.7239 - array size at least. It's necessary to write '\x00'==0 to get something
2.7240 - that's true only with -std. */
2.7241 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.7242 -
2.7243 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.7244 - inside strings and character constants. */
2.7245 -#define FOO(x) 'x'
2.7246 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.7247 -
2.7248 -int test (int i, double x);
2.7249 -struct s1 {int (*f) (int a);};
2.7250 -struct s2 {int (*f) (double a);};
2.7251 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.7252 -int argc;
2.7253 -char **argv;
2.7254 -int
2.7255 -main ()
2.7256 -{
2.7257 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.7258 - ;
2.7259 - return 0;
2.7260 -}
2.7261 -_ACEOF
2.7262 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.7263 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.7264 -do
2.7265 - CC="$ac_save_CC $ac_arg"
2.7266 - rm -f conftest.$ac_objext
2.7267 -if { (ac_try="$ac_compile"
2.7268 -case "(($ac_try" in
2.7269 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7270 - *) ac_try_echo=$ac_try;;
2.7271 -esac
2.7272 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7273 - (eval "$ac_compile") 2>conftest.er1
2.7274 - ac_status=$?
2.7275 - grep -v '^ *+' conftest.er1 >conftest.err
2.7276 - rm -f conftest.er1
2.7277 - cat conftest.err >&5
2.7278 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7279 - (exit $ac_status); } && {
2.7280 - test -z "$ac_c_werror_flag" ||
2.7281 - test ! -s conftest.err
2.7282 - } && test -s conftest.$ac_objext; then
2.7283 - ac_cv_prog_cc_c89=$ac_arg
2.7284 -else
2.7285 - echo "$as_me: failed program was:" >&5
2.7286 -sed 's/^/| /' conftest.$ac_ext >&5
2.7287 -
2.7288 -
2.7289 -fi
2.7290 -
2.7291 -rm -f core conftest.err conftest.$ac_objext
2.7292 - test "x$ac_cv_prog_cc_c89" != "xno" && break
2.7293 -done
2.7294 -rm -f conftest.$ac_ext
2.7295 -CC=$ac_save_CC
2.7296 -
2.7297 -fi
2.7298 -# AC_CACHE_VAL
2.7299 -case "x$ac_cv_prog_cc_c89" in
2.7300 - x)
2.7301 - { echo "$as_me:$LINENO: result: none needed" >&5
2.7302 -echo "${ECHO_T}none needed" >&6; } ;;
2.7303 - xno)
2.7304 - { echo "$as_me:$LINENO: result: unsupported" >&5
2.7305 -echo "${ECHO_T}unsupported" >&6; } ;;
2.7306 - *)
2.7307 - CC="$CC $ac_cv_prog_cc_c89"
2.7308 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2.7309 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2.7310 -esac
2.7311 -
2.7312 -
2.7313 -ac_ext=c
2.7314 -ac_cpp='$CPP $CPPFLAGS'
2.7315 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.7316 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.7317 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.7318 -
2.7319 -depcc="$CC" am_compiler_list=
2.7320 -
2.7321 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2.7322 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2.7323 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2.7324 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7325 -else
2.7326 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2.7327 - # We make a subdir and do the tests there. Otherwise we can end up
2.7328 - # making bogus files that we don't know about and never remove. For
2.7329 - # instance it was reported that on HP-UX the gcc test will end up
2.7330 - # making a dummy file named `D' -- because `-MD' means `put the output
2.7331 - # in D'.
2.7332 - mkdir conftest.dir
2.7333 - # Copy depcomp to subdir because otherwise we won't find it if we're
2.7334 - # using a relative directory.
2.7335 - cp "$am_depcomp" conftest.dir
2.7336 - cd conftest.dir
2.7337 - # We will build objects and dependencies in a subdirectory because
2.7338 - # it helps to detect inapplicable dependency modes. For instance
2.7339 - # both Tru64's cc and ICC support -MD to output dependencies as a
2.7340 - # side effect of compilation, but ICC will put the dependencies in
2.7341 - # the current directory while Tru64 will put them in the object
2.7342 - # directory.
2.7343 - mkdir sub
2.7344 -
2.7345 - am_cv_CC_dependencies_compiler_type=none
2.7346 - if test "$am_compiler_list" = ""; then
2.7347 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2.7348 - fi
2.7349 - for depmode in $am_compiler_list; do
2.7350 - # Setup a source with many dependencies, because some compilers
2.7351 - # like to wrap large dependency lists on column 80 (with \), and
2.7352 - # we should not choose a depcomp mode which is confused by this.
2.7353 - #
2.7354 - # We need to recreate these files for each test, as the compiler may
2.7355 - # overwrite some of them when testing with obscure command lines.
2.7356 - # This happens at least with the AIX C compiler.
2.7357 - : > sub/conftest.c
2.7358 - for i in 1 2 3 4 5 6; do
2.7359 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
2.7360 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2.7361 - # Solaris 8's {/usr,}/bin/sh.
2.7362 - touch sub/conftst$i.h
2.7363 - done
2.7364 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2.7365 -
2.7366 - case $depmode in
2.7367 - nosideeffect)
2.7368 - # after this tag, mechanisms are not by side-effect, so they'll
2.7369 - # only be used when explicitly requested
2.7370 - if test "x$enable_dependency_tracking" = xyes; then
2.7371 - continue
2.7372 - else
2.7373 - break
2.7374 - fi
2.7375 - ;;
2.7376 - none) break ;;
2.7377 - esac
2.7378 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
2.7379 - # mode. It turns out that the SunPro C++ compiler does not properly
2.7380 - # handle `-M -o', and we need to detect this.
2.7381 - if depmode=$depmode \
2.7382 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2.7383 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2.7384 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2.7385 - >/dev/null 2>conftest.err &&
2.7386 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2.7387 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2.7388 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2.7389 - # icc doesn't choke on unknown options, it will just issue warnings
2.7390 - # or remarks (even with -Werror). So we grep stderr for any message
2.7391 - # that says an option was ignored or not supported.
2.7392 - # When given -MP, icc 7.0 and 7.1 complain thusly:
2.7393 - # icc: Command line warning: ignoring option '-M'; no argument required
2.7394 - # The diagnosis changed in icc 8.0:
2.7395 - # icc: Command line remark: option '-MP' not supported
2.7396 - if (grep 'ignoring option' conftest.err ||
2.7397 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2.7398 - am_cv_CC_dependencies_compiler_type=$depmode
2.7399 - break
2.7400 - fi
2.7401 - fi
2.7402 - done
2.7403 -
2.7404 - cd ..
2.7405 - rm -rf conftest.dir
2.7406 -else
2.7407 - am_cv_CC_dependencies_compiler_type=none
2.7408 -fi
2.7409 -
2.7410 -fi
2.7411 -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2.7412 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
2.7413 -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2.7414 -
2.7415 -
2.7416 -
2.7417 -if
2.7418 - test "x$enable_dependency_tracking" != xno \
2.7419 - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2.7420 - am__fastdepCC_TRUE=
2.7421 - am__fastdepCC_FALSE='#'
2.7422 -else
2.7423 - am__fastdepCC_TRUE='#'
2.7424 - am__fastdepCC_FALSE=
2.7425 -fi
2.7426 -
2.7427 -
2.7428 -
2.7429 -
2.7430 - { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2.7431 -echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
2.7432 -if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2.7433 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7434 -else
2.7435 - ac_check_lib_save_LIBS=$LIBS
2.7436 -LIBS="-lcposix $LIBS"
2.7437 -cat >conftest.$ac_ext <<_ACEOF
2.7438 -/* confdefs.h. */
2.7439 -_ACEOF
2.7440 -cat confdefs.h >>conftest.$ac_ext
2.7441 -cat >>conftest.$ac_ext <<_ACEOF
2.7442 -/* end confdefs.h. */
2.7443 -
2.7444 -/* Override any GCC internal prototype to avoid an error.
2.7445 - Use char because int might match the return type of a GCC
2.7446 - builtin and then its argument prototype would still apply. */
2.7447 -#ifdef __cplusplus
2.7448 -extern "C"
2.7449 -#endif
2.7450 -char strerror ();
2.7451 -int
2.7452 -main ()
2.7453 -{
2.7454 -return strerror ();
2.7455 - ;
2.7456 - return 0;
2.7457 -}
2.7458 -_ACEOF
2.7459 -rm -f conftest.$ac_objext conftest$ac_exeext
2.7460 -if { (ac_try="$ac_link"
2.7461 -case "(($ac_try" in
2.7462 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7463 - *) ac_try_echo=$ac_try;;
2.7464 -esac
2.7465 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7466 - (eval "$ac_link") 2>conftest.er1
2.7467 - ac_status=$?
2.7468 - grep -v '^ *+' conftest.er1 >conftest.err
2.7469 - rm -f conftest.er1
2.7470 - cat conftest.err >&5
2.7471 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7472 - (exit $ac_status); } && {
2.7473 - test -z "$ac_c_werror_flag" ||
2.7474 - test ! -s conftest.err
2.7475 - } && test -s conftest$ac_exeext &&
2.7476 - $as_test_x conftest$ac_exeext; then
2.7477 - ac_cv_lib_cposix_strerror=yes
2.7478 -else
2.7479 - echo "$as_me: failed program was:" >&5
2.7480 -sed 's/^/| /' conftest.$ac_ext >&5
2.7481 -
2.7482 - ac_cv_lib_cposix_strerror=no
2.7483 -fi
2.7484 -
2.7485 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2.7486 - conftest$ac_exeext conftest.$ac_ext
2.7487 -LIBS=$ac_check_lib_save_LIBS
2.7488 -fi
2.7489 -{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2.7490 -echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
2.7491 -if test $ac_cv_lib_cposix_strerror = yes; then
2.7492 - LIBS="$LIBS -lcposix"
2.7493 -fi
2.7494 -
2.7495 -
2.7496 -
2.7497 -ac_ext=c
2.7498 -ac_cpp='$CPP $CPPFLAGS'
2.7499 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2.7500 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2.7501 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
2.7502 -if test -n "$ac_tool_prefix"; then
2.7503 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2.7504 -set dummy ${ac_tool_prefix}gcc; ac_word=$2
2.7505 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.7506 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.7507 -if test "${ac_cv_prog_CC+set}" = set; then
2.7508 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7509 -else
2.7510 - if test -n "$CC"; then
2.7511 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.7512 -else
2.7513 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.7514 -for as_dir in $PATH
2.7515 -do
2.7516 - IFS=$as_save_IFS
2.7517 - test -z "$as_dir" && as_dir=.
2.7518 - for ac_exec_ext in '' $ac_executable_extensions; do
2.7519 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.7520 - ac_cv_prog_CC="${ac_tool_prefix}gcc"
2.7521 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.7522 - break 2
2.7523 - fi
2.7524 -done
2.7525 -done
2.7526 -IFS=$as_save_IFS
2.7527 -
2.7528 -fi
2.7529 -fi
2.7530 -CC=$ac_cv_prog_CC
2.7531 -if test -n "$CC"; then
2.7532 - { echo "$as_me:$LINENO: result: $CC" >&5
2.7533 -echo "${ECHO_T}$CC" >&6; }
2.7534 -else
2.7535 - { echo "$as_me:$LINENO: result: no" >&5
2.7536 -echo "${ECHO_T}no" >&6; }
2.7537 -fi
2.7538 -
2.7539 -
2.7540 -fi
2.7541 -if test -z "$ac_cv_prog_CC"; then
2.7542 - ac_ct_CC=$CC
2.7543 - # Extract the first word of "gcc", so it can be a program name with args.
2.7544 -set dummy gcc; ac_word=$2
2.7545 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.7546 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.7547 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.7548 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7549 -else
2.7550 - if test -n "$ac_ct_CC"; then
2.7551 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.7552 -else
2.7553 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.7554 -for as_dir in $PATH
2.7555 -do
2.7556 - IFS=$as_save_IFS
2.7557 - test -z "$as_dir" && as_dir=.
2.7558 - for ac_exec_ext in '' $ac_executable_extensions; do
2.7559 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.7560 - ac_cv_prog_ac_ct_CC="gcc"
2.7561 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.7562 - break 2
2.7563 - fi
2.7564 -done
2.7565 -done
2.7566 -IFS=$as_save_IFS
2.7567 -
2.7568 -fi
2.7569 -fi
2.7570 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.7571 -if test -n "$ac_ct_CC"; then
2.7572 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.7573 -echo "${ECHO_T}$ac_ct_CC" >&6; }
2.7574 -else
2.7575 - { echo "$as_me:$LINENO: result: no" >&5
2.7576 -echo "${ECHO_T}no" >&6; }
2.7577 -fi
2.7578 -
2.7579 - if test "x$ac_ct_CC" = x; then
2.7580 - CC=""
2.7581 - else
2.7582 - case $cross_compiling:$ac_tool_warned in
2.7583 -yes:)
2.7584 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.7585 -whose name does not start with the host triplet. If you think this
2.7586 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.7587 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.7588 -whose name does not start with the host triplet. If you think this
2.7589 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.7590 -ac_tool_warned=yes ;;
2.7591 -esac
2.7592 - CC=$ac_ct_CC
2.7593 - fi
2.7594 -else
2.7595 - CC="$ac_cv_prog_CC"
2.7596 -fi
2.7597 -
2.7598 -if test -z "$CC"; then
2.7599 - if test -n "$ac_tool_prefix"; then
2.7600 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2.7601 -set dummy ${ac_tool_prefix}cc; ac_word=$2
2.7602 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.7603 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.7604 -if test "${ac_cv_prog_CC+set}" = set; then
2.7605 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7606 -else
2.7607 - if test -n "$CC"; then
2.7608 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.7609 -else
2.7610 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.7611 -for as_dir in $PATH
2.7612 -do
2.7613 - IFS=$as_save_IFS
2.7614 - test -z "$as_dir" && as_dir=.
2.7615 - for ac_exec_ext in '' $ac_executable_extensions; do
2.7616 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.7617 - ac_cv_prog_CC="${ac_tool_prefix}cc"
2.7618 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.7619 - break 2
2.7620 - fi
2.7621 -done
2.7622 -done
2.7623 -IFS=$as_save_IFS
2.7624 -
2.7625 -fi
2.7626 -fi
2.7627 -CC=$ac_cv_prog_CC
2.7628 -if test -n "$CC"; then
2.7629 - { echo "$as_me:$LINENO: result: $CC" >&5
2.7630 -echo "${ECHO_T}$CC" >&6; }
2.7631 -else
2.7632 - { echo "$as_me:$LINENO: result: no" >&5
2.7633 -echo "${ECHO_T}no" >&6; }
2.7634 -fi
2.7635 -
2.7636 -
2.7637 - fi
2.7638 -fi
2.7639 -if test -z "$CC"; then
2.7640 - # Extract the first word of "cc", so it can be a program name with args.
2.7641 -set dummy cc; ac_word=$2
2.7642 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.7643 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.7644 -if test "${ac_cv_prog_CC+set}" = set; then
2.7645 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7646 -else
2.7647 - if test -n "$CC"; then
2.7648 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.7649 -else
2.7650 - ac_prog_rejected=no
2.7651 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.7652 -for as_dir in $PATH
2.7653 -do
2.7654 - IFS=$as_save_IFS
2.7655 - test -z "$as_dir" && as_dir=.
2.7656 - for ac_exec_ext in '' $ac_executable_extensions; do
2.7657 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.7658 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2.7659 - ac_prog_rejected=yes
2.7660 - continue
2.7661 - fi
2.7662 - ac_cv_prog_CC="cc"
2.7663 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.7664 - break 2
2.7665 - fi
2.7666 -done
2.7667 -done
2.7668 -IFS=$as_save_IFS
2.7669 -
2.7670 -if test $ac_prog_rejected = yes; then
2.7671 - # We found a bogon in the path, so make sure we never use it.
2.7672 - set dummy $ac_cv_prog_CC
2.7673 - shift
2.7674 - if test $# != 0; then
2.7675 - # We chose a different compiler from the bogus one.
2.7676 - # However, it has the same basename, so the bogon will be chosen
2.7677 - # first if we set CC to just the basename; use the full file name.
2.7678 - shift
2.7679 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2.7680 - fi
2.7681 -fi
2.7682 -fi
2.7683 -fi
2.7684 -CC=$ac_cv_prog_CC
2.7685 -if test -n "$CC"; then
2.7686 - { echo "$as_me:$LINENO: result: $CC" >&5
2.7687 -echo "${ECHO_T}$CC" >&6; }
2.7688 -else
2.7689 - { echo "$as_me:$LINENO: result: no" >&5
2.7690 -echo "${ECHO_T}no" >&6; }
2.7691 -fi
2.7692 -
2.7693 -
2.7694 -fi
2.7695 -if test -z "$CC"; then
2.7696 - if test -n "$ac_tool_prefix"; then
2.7697 - for ac_prog in cl.exe
2.7698 - do
2.7699 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2.7700 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2.7701 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.7702 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.7703 -if test "${ac_cv_prog_CC+set}" = set; then
2.7704 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7705 -else
2.7706 - if test -n "$CC"; then
2.7707 - ac_cv_prog_CC="$CC" # Let the user override the test.
2.7708 -else
2.7709 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.7710 -for as_dir in $PATH
2.7711 -do
2.7712 - IFS=$as_save_IFS
2.7713 - test -z "$as_dir" && as_dir=.
2.7714 - for ac_exec_ext in '' $ac_executable_extensions; do
2.7715 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.7716 - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2.7717 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.7718 - break 2
2.7719 - fi
2.7720 -done
2.7721 -done
2.7722 -IFS=$as_save_IFS
2.7723 -
2.7724 -fi
2.7725 -fi
2.7726 -CC=$ac_cv_prog_CC
2.7727 -if test -n "$CC"; then
2.7728 - { echo "$as_me:$LINENO: result: $CC" >&5
2.7729 -echo "${ECHO_T}$CC" >&6; }
2.7730 -else
2.7731 - { echo "$as_me:$LINENO: result: no" >&5
2.7732 -echo "${ECHO_T}no" >&6; }
2.7733 -fi
2.7734 -
2.7735 -
2.7736 - test -n "$CC" && break
2.7737 - done
2.7738 -fi
2.7739 -if test -z "$CC"; then
2.7740 - ac_ct_CC=$CC
2.7741 - for ac_prog in cl.exe
2.7742 -do
2.7743 - # Extract the first word of "$ac_prog", so it can be a program name with args.
2.7744 -set dummy $ac_prog; ac_word=$2
2.7745 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2.7746 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2.7747 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2.7748 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7749 -else
2.7750 - if test -n "$ac_ct_CC"; then
2.7751 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2.7752 -else
2.7753 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2.7754 -for as_dir in $PATH
2.7755 -do
2.7756 - IFS=$as_save_IFS
2.7757 - test -z "$as_dir" && as_dir=.
2.7758 - for ac_exec_ext in '' $ac_executable_extensions; do
2.7759 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2.7760 - ac_cv_prog_ac_ct_CC="$ac_prog"
2.7761 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2.7762 - break 2
2.7763 - fi
2.7764 -done
2.7765 -done
2.7766 -IFS=$as_save_IFS
2.7767 -
2.7768 -fi
2.7769 -fi
2.7770 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
2.7771 -if test -n "$ac_ct_CC"; then
2.7772 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2.7773 -echo "${ECHO_T}$ac_ct_CC" >&6; }
2.7774 -else
2.7775 - { echo "$as_me:$LINENO: result: no" >&5
2.7776 -echo "${ECHO_T}no" >&6; }
2.7777 -fi
2.7778 -
2.7779 -
2.7780 - test -n "$ac_ct_CC" && break
2.7781 -done
2.7782 -
2.7783 - if test "x$ac_ct_CC" = x; then
2.7784 - CC=""
2.7785 - else
2.7786 - case $cross_compiling:$ac_tool_warned in
2.7787 -yes:)
2.7788 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2.7789 -whose name does not start with the host triplet. If you think this
2.7790 -configuration is useful to you, please write to autoconf@gnu.org." >&5
2.7791 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2.7792 -whose name does not start with the host triplet. If you think this
2.7793 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2.7794 -ac_tool_warned=yes ;;
2.7795 -esac
2.7796 - CC=$ac_ct_CC
2.7797 - fi
2.7798 -fi
2.7799 -
2.7800 -fi
2.7801 -
2.7802 -
2.7803 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2.7804 -See \`config.log' for more details." >&5
2.7805 -echo "$as_me: error: no acceptable C compiler found in \$PATH
2.7806 -See \`config.log' for more details." >&2;}
2.7807 - { (exit 1); exit 1; }; }
2.7808 -
2.7809 -# Provide some information about the compiler.
2.7810 -echo "$as_me:$LINENO: checking for C compiler version" >&5
2.7811 -ac_compiler=`set X $ac_compile; echo $2`
2.7812 -{ (ac_try="$ac_compiler --version >&5"
2.7813 -case "(($ac_try" in
2.7814 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7815 - *) ac_try_echo=$ac_try;;
2.7816 -esac
2.7817 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7818 - (eval "$ac_compiler --version >&5") 2>&5
2.7819 - ac_status=$?
2.7820 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7821 - (exit $ac_status); }
2.7822 -{ (ac_try="$ac_compiler -v >&5"
2.7823 -case "(($ac_try" in
2.7824 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7825 - *) ac_try_echo=$ac_try;;
2.7826 -esac
2.7827 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7828 - (eval "$ac_compiler -v >&5") 2>&5
2.7829 - ac_status=$?
2.7830 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7831 - (exit $ac_status); }
2.7832 -{ (ac_try="$ac_compiler -V >&5"
2.7833 -case "(($ac_try" in
2.7834 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7835 - *) ac_try_echo=$ac_try;;
2.7836 -esac
2.7837 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7838 - (eval "$ac_compiler -V >&5") 2>&5
2.7839 - ac_status=$?
2.7840 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7841 - (exit $ac_status); }
2.7842 -
2.7843 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2.7844 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2.7845 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
2.7846 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7847 -else
2.7848 - cat >conftest.$ac_ext <<_ACEOF
2.7849 -/* confdefs.h. */
2.7850 -_ACEOF
2.7851 -cat confdefs.h >>conftest.$ac_ext
2.7852 -cat >>conftest.$ac_ext <<_ACEOF
2.7853 -/* end confdefs.h. */
2.7854 -
2.7855 -int
2.7856 -main ()
2.7857 -{
2.7858 -#ifndef __GNUC__
2.7859 - choke me
2.7860 -#endif
2.7861 -
2.7862 - ;
2.7863 - return 0;
2.7864 -}
2.7865 -_ACEOF
2.7866 -rm -f conftest.$ac_objext
2.7867 -if { (ac_try="$ac_compile"
2.7868 -case "(($ac_try" in
2.7869 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7870 - *) ac_try_echo=$ac_try;;
2.7871 -esac
2.7872 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7873 - (eval "$ac_compile") 2>conftest.er1
2.7874 - ac_status=$?
2.7875 - grep -v '^ *+' conftest.er1 >conftest.err
2.7876 - rm -f conftest.er1
2.7877 - cat conftest.err >&5
2.7878 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7879 - (exit $ac_status); } && {
2.7880 - test -z "$ac_c_werror_flag" ||
2.7881 - test ! -s conftest.err
2.7882 - } && test -s conftest.$ac_objext; then
2.7883 - ac_compiler_gnu=yes
2.7884 -else
2.7885 - echo "$as_me: failed program was:" >&5
2.7886 -sed 's/^/| /' conftest.$ac_ext >&5
2.7887 -
2.7888 - ac_compiler_gnu=no
2.7889 -fi
2.7890 -
2.7891 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.7892 -ac_cv_c_compiler_gnu=$ac_compiler_gnu
2.7893 -
2.7894 -fi
2.7895 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2.7896 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2.7897 -GCC=`test $ac_compiler_gnu = yes && echo yes`
2.7898 -ac_test_CFLAGS=${CFLAGS+set}
2.7899 -ac_save_CFLAGS=$CFLAGS
2.7900 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2.7901 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2.7902 -if test "${ac_cv_prog_cc_g+set}" = set; then
2.7903 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.7904 -else
2.7905 - ac_save_c_werror_flag=$ac_c_werror_flag
2.7906 - ac_c_werror_flag=yes
2.7907 - ac_cv_prog_cc_g=no
2.7908 - CFLAGS="-g"
2.7909 - cat >conftest.$ac_ext <<_ACEOF
2.7910 -/* confdefs.h. */
2.7911 -_ACEOF
2.7912 -cat confdefs.h >>conftest.$ac_ext
2.7913 -cat >>conftest.$ac_ext <<_ACEOF
2.7914 -/* end confdefs.h. */
2.7915 -
2.7916 -int
2.7917 -main ()
2.7918 -{
2.7919 -
2.7920 - ;
2.7921 - return 0;
2.7922 -}
2.7923 -_ACEOF
2.7924 -rm -f conftest.$ac_objext
2.7925 -if { (ac_try="$ac_compile"
2.7926 -case "(($ac_try" in
2.7927 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7928 - *) ac_try_echo=$ac_try;;
2.7929 -esac
2.7930 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7931 - (eval "$ac_compile") 2>conftest.er1
2.7932 - ac_status=$?
2.7933 - grep -v '^ *+' conftest.er1 >conftest.err
2.7934 - rm -f conftest.er1
2.7935 - cat conftest.err >&5
2.7936 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7937 - (exit $ac_status); } && {
2.7938 - test -z "$ac_c_werror_flag" ||
2.7939 - test ! -s conftest.err
2.7940 - } && test -s conftest.$ac_objext; then
2.7941 - ac_cv_prog_cc_g=yes
2.7942 -else
2.7943 - echo "$as_me: failed program was:" >&5
2.7944 -sed 's/^/| /' conftest.$ac_ext >&5
2.7945 -
2.7946 - CFLAGS=""
2.7947 - cat >conftest.$ac_ext <<_ACEOF
2.7948 -/* confdefs.h. */
2.7949 -_ACEOF
2.7950 -cat confdefs.h >>conftest.$ac_ext
2.7951 -cat >>conftest.$ac_ext <<_ACEOF
2.7952 -/* end confdefs.h. */
2.7953 -
2.7954 -int
2.7955 -main ()
2.7956 -{
2.7957 -
2.7958 - ;
2.7959 - return 0;
2.7960 -}
2.7961 -_ACEOF
2.7962 -rm -f conftest.$ac_objext
2.7963 -if { (ac_try="$ac_compile"
2.7964 -case "(($ac_try" in
2.7965 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.7966 - *) ac_try_echo=$ac_try;;
2.7967 -esac
2.7968 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.7969 - (eval "$ac_compile") 2>conftest.er1
2.7970 - ac_status=$?
2.7971 - grep -v '^ *+' conftest.er1 >conftest.err
2.7972 - rm -f conftest.er1
2.7973 - cat conftest.err >&5
2.7974 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.7975 - (exit $ac_status); } && {
2.7976 - test -z "$ac_c_werror_flag" ||
2.7977 - test ! -s conftest.err
2.7978 - } && test -s conftest.$ac_objext; then
2.7979 - :
2.7980 -else
2.7981 - echo "$as_me: failed program was:" >&5
2.7982 -sed 's/^/| /' conftest.$ac_ext >&5
2.7983 -
2.7984 - ac_c_werror_flag=$ac_save_c_werror_flag
2.7985 - CFLAGS="-g"
2.7986 - cat >conftest.$ac_ext <<_ACEOF
2.7987 -/* confdefs.h. */
2.7988 -_ACEOF
2.7989 -cat confdefs.h >>conftest.$ac_ext
2.7990 -cat >>conftest.$ac_ext <<_ACEOF
2.7991 -/* end confdefs.h. */
2.7992 -
2.7993 -int
2.7994 -main ()
2.7995 -{
2.7996 -
2.7997 - ;
2.7998 - return 0;
2.7999 -}
2.8000 -_ACEOF
2.8001 -rm -f conftest.$ac_objext
2.8002 -if { (ac_try="$ac_compile"
2.8003 -case "(($ac_try" in
2.8004 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.8005 - *) ac_try_echo=$ac_try;;
2.8006 -esac
2.8007 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.8008 - (eval "$ac_compile") 2>conftest.er1
2.8009 - ac_status=$?
2.8010 - grep -v '^ *+' conftest.er1 >conftest.err
2.8011 - rm -f conftest.er1
2.8012 - cat conftest.err >&5
2.8013 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.8014 - (exit $ac_status); } && {
2.8015 - test -z "$ac_c_werror_flag" ||
2.8016 - test ! -s conftest.err
2.8017 - } && test -s conftest.$ac_objext; then
2.8018 - ac_cv_prog_cc_g=yes
2.8019 -else
2.8020 - echo "$as_me: failed program was:" >&5
2.8021 -sed 's/^/| /' conftest.$ac_ext >&5
2.8022 -
2.8023 -
2.8024 -fi
2.8025 -
2.8026 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.8027 -fi
2.8028 -
2.8029 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.8030 -fi
2.8031 -
2.8032 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2.8033 - ac_c_werror_flag=$ac_save_c_werror_flag
2.8034 -fi
2.8035 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2.8036 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2.8037 -if test "$ac_test_CFLAGS" = set; then
2.8038 - CFLAGS=$ac_save_CFLAGS
2.8039 -elif test $ac_cv_prog_cc_g = yes; then
2.8040 - if test "$GCC" = yes; then
2.8041 - CFLAGS="-g -O2"
2.8042 - else
2.8043 - CFLAGS="-g"
2.8044 - fi
2.8045 -else
2.8046 - if test "$GCC" = yes; then
2.8047 - CFLAGS="-O2"
2.8048 - else
2.8049 - CFLAGS=
2.8050 - fi
2.8051 -fi
2.8052 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2.8053 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2.8054 -if test "${ac_cv_prog_cc_c89+set}" = set; then
2.8055 - echo $ECHO_N "(cached) $ECHO_C" >&6
2.8056 -else
2.8057 - ac_cv_prog_cc_c89=no
2.8058 -ac_save_CC=$CC
2.8059 -cat >conftest.$ac_ext <<_ACEOF
2.8060 -/* confdefs.h. */
2.8061 -_ACEOF
2.8062 -cat confdefs.h >>conftest.$ac_ext
2.8063 -cat >>conftest.$ac_ext <<_ACEOF
2.8064 -/* end confdefs.h. */
2.8065 -#include <stdarg.h>
2.8066 -#include <stdio.h>
2.8067 -#include <sys/types.h>
2.8068 -#include <sys/stat.h>
2.8069 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2.8070 -struct buf { int x; };
2.8071 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
2.8072 -static char *e (p, i)
2.8073 - char **p;
2.8074 - int i;
2.8075 -{
2.8076 - return p[i];
2.8077 -}
2.8078 -static char *f (char * (*g) (char **, int), char **p, ...)
2.8079 -{
2.8080 - char *s;
2.8081 - va_list v;
2.8082 - va_start (v,p);
2.8083 - s = g (p, va_arg (v,int));
2.8084 - va_end (v);
2.8085 - return s;
2.8086 -}
2.8087 -
2.8088 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2.8089 - function prototypes and stuff, but not '\xHH' hex character constants.
2.8090 - These don't provoke an error unfortunately, instead are silently treated
2.8091 - as 'x'. The following induces an error, until -std is added to get
2.8092 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2.8093 - array size at least. It's necessary to write '\x00'==0 to get something
2.8094 - that's true only with -std. */
2.8095 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2.8096 -
2.8097 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2.8098 - inside strings and character constants. */
2.8099 -#define FOO(x) 'x'
2.8100 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2.8101 -
2.8102 -int test (int i, double x);
2.8103 -struct s1 {int (*f) (int a);};
2.8104 -struct s2 {int (*f) (double a);};
2.8105 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2.8106 -int argc;
2.8107 -char **argv;
2.8108 -int
2.8109 -main ()
2.8110 -{
2.8111 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2.8112 - ;
2.8113 - return 0;
2.8114 -}
2.8115 -_ACEOF
2.8116 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2.8117 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2.8118 -do
2.8119 - CC="$ac_save_CC $ac_arg"
2.8120 - rm -f conftest.$ac_objext
2.8121 -if { (ac_try="$ac_compile"
2.8122 -case "(($ac_try" in
2.8123 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2.8124 - *) ac_try_echo=$ac_try;;
2.8125 -esac
2.8126 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2.8127 - (eval "$ac_compile") 2>conftest.er1
2.8128 - ac_status=$?
2.8129 - grep -v '^ *+' conftest.er1 >conftest.err
2.8130 - rm -f conftest.er1
2.8131 - cat conftest.err >&5
2.8132 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2.8133 - (exit $ac_status); } && {
2.8134 - test -z "$ac_c_werror_flag" ||
2.8135 - test ! -s conftest.err
2.8136 - } && test -s conftest.$ac_objext; then
2.8137 - ac_cv_prog_cc_c89=$ac_arg
2.8138 -else
2.8139 - echo "$as_me: failed program was:" >&5
2.8140 -sed 's/^/| /' conftest.$ac_ext >&5
2.8141 -
2.8142