Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1211:eecdeb37934a
prev1210:79bbd30363f4
next1212:d1117828f011
author nkeynes
date Fri Feb 10 19:26:10 2012 +1000 (9 years ago)
permissions -rw-r--r--
last change Break tools out into its own Makefile using CC_FOR_BUILD
file annotate diff log raw
1.1 --- a/configure Tue Feb 07 14:27:13 2012 +1000
1.2 +++ b/configure Fri Feb 10 19:26:10 2012 +1000
1.3 @@ -674,6 +674,14 @@
1.4 MAINTAINER_MODE_TRUE
1.5 MAINTAINER_MODE_FALSE
1.6 MAINT
1.7 +build
1.8 +build_cpu
1.9 +build_vendor
1.10 +build_os
1.11 +host
1.12 +host_cpu
1.13 +host_vendor
1.14 +host_os
1.15 CC
1.16 CFLAGS
1.17 LDFLAGS
1.18 @@ -691,14 +699,6 @@
1.19 am__fastdepCC_TRUE
1.20 am__fastdepCC_FALSE
1.21 CPP
1.22 -build
1.23 -build_cpu
1.24 -build_vendor
1.25 -build_os
1.26 -host
1.27 -host_cpu
1.28 -host_vendor
1.29 -host_os
1.30 CC
1.31 CFLAGS
1.32 CPPFLAGS
1.33 @@ -743,6 +743,8 @@
1.34 GLIB_LIBS
1.35 GTK_CFLAGS
1.36 GTK_LIBS
1.37 +GLIB_FOR_BUILD_CFLAGS
1.38 +GLIB_FOR_BUILD_LIBS
1.39 GUI_GTK_TRUE
1.40 GUI_GTK_FALSE
1.41 LIBISOFS_CFLAGS
1.42 @@ -841,6 +843,8 @@
1.43 GLIB_LIBS
1.44 GTK_CFLAGS
1.45 GTK_LIBS
1.46 +GLIB_FOR_BUILD_CFLAGS
1.47 +GLIB_FOR_BUILD_LIBS
1.48 LIBISOFS_CFLAGS
1.49 LIBISOFS_LIBS
1.50 LIBGL_CFLAGS
1.51 @@ -1478,6 +1482,10 @@
1.52 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1.53 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1.54 GTK_LIBS linker flags for GTK, overriding pkg-config
1.55 + GLIB_FOR_BUILD_CFLAGS
1.56 + C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1.57 + GLIB_FOR_BUILD_LIBS
1.58 + linker flags for GLIB_FOR_BUILD, overriding pkg-config
1.59 LIBISOFS_CFLAGS
1.60 C compiler flags for LIBISOFS, overriding pkg-config
1.61 LIBISOFS_LIBS
1.62 @@ -2408,6 +2416,98 @@
1.63 ac_config_headers="$ac_config_headers config.h"
1.64
1.65
1.66 +# Make sure we can run config.sub.
1.67 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.68 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1.69 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.70 + { (exit 1); exit 1; }; }
1.71 +
1.72 +{ echo "$as_me:$LINENO: checking build system type" >&5
1.73 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.74 +if test "${ac_cv_build+set}" = set; then
1.75 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.76 +else
1.77 + ac_build_alias=$build_alias
1.78 +test "x$ac_build_alias" = x &&
1.79 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1.80 +test "x$ac_build_alias" = x &&
1.81 + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1.82 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1.83 + { (exit 1); exit 1; }; }
1.84 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.85 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1.86 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.87 + { (exit 1); exit 1; }; }
1.88 +
1.89 +fi
1.90 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1.91 +echo "${ECHO_T}$ac_cv_build" >&6; }
1.92 +case $ac_cv_build in
1.93 +*-*-*) ;;
1.94 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1.95 +echo "$as_me: error: invalid value of canonical build" >&2;}
1.96 + { (exit 1); exit 1; }; };;
1.97 +esac
1.98 +build=$ac_cv_build
1.99 +ac_save_IFS=$IFS; IFS='-'
1.100 +set x $ac_cv_build
1.101 +shift
1.102 +build_cpu=$1
1.103 +build_vendor=$2
1.104 +shift; shift
1.105 +# Remember, the first character of IFS is used to create $*,
1.106 +# except with old shells:
1.107 +build_os=$*
1.108 +IFS=$ac_save_IFS
1.109 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.110 +
1.111 +
1.112 +{ echo "$as_me:$LINENO: checking host system type" >&5
1.113 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.114 +if test "${ac_cv_host+set}" = set; then
1.115 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.116 +else
1.117 + if test "x$host_alias" = x; then
1.118 + ac_cv_host=$ac_cv_build
1.119 +else
1.120 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.121 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1.122 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.123 + { (exit 1); exit 1; }; }
1.124 +fi
1.125 +
1.126 +fi
1.127 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1.128 +echo "${ECHO_T}$ac_cv_host" >&6; }
1.129 +case $ac_cv_host in
1.130 +*-*-*) ;;
1.131 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1.132 +echo "$as_me: error: invalid value of canonical host" >&2;}
1.133 + { (exit 1); exit 1; }; };;
1.134 +esac
1.135 +host=$ac_cv_host
1.136 +ac_save_IFS=$IFS; IFS='-'
1.137 +set x $ac_cv_host
1.138 +shift
1.139 +host_cpu=$1
1.140 +host_vendor=$2
1.141 +shift; shift
1.142 +# Remember, the first character of IFS is used to create $*,
1.143 +# except with old shells:
1.144 +host_os=$*
1.145 +IFS=$ac_save_IFS
1.146 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.147 +
1.148 +
1.149 +
1.150 +
1.151 +
1.152 +
1.153 +
1.154 +
1.155 +
1.156 +
1.157 +
1.158 DEPDIR="${am__leading_dot}deps"
1.159
1.160 ac_config_commands="$ac_config_commands depfiles"
1.161 @@ -4360,6 +4460,794 @@
1.162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.165 +if test -n "$ac_tool_prefix"; then
1.166 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.167 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.168 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.169 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.170 +if test "${ac_cv_prog_CC+set}" = set; then
1.171 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.172 +else
1.173 + if test -n "$CC"; then
1.174 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.175 +else
1.176 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.177 +for as_dir in $PATH
1.178 +do
1.179 + IFS=$as_save_IFS
1.180 + test -z "$as_dir" && as_dir=.
1.181 + for ac_exec_ext in '' $ac_executable_extensions; do
1.182 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.183 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.184 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.185 + break 2
1.186 + fi
1.187 +done
1.188 +done
1.189 +IFS=$as_save_IFS
1.190 +
1.191 +fi
1.192 +fi
1.193 +CC=$ac_cv_prog_CC
1.194 +if test -n "$CC"; then
1.195 + { echo "$as_me:$LINENO: result: $CC" >&5
1.196 +echo "${ECHO_T}$CC" >&6; }
1.197 +else
1.198 + { echo "$as_me:$LINENO: result: no" >&5
1.199 +echo "${ECHO_T}no" >&6; }
1.200 +fi
1.201 +
1.202 +
1.203 +fi
1.204 +if test -z "$ac_cv_prog_CC"; then
1.205 + ac_ct_CC=$CC
1.206 + # Extract the first word of "gcc", so it can be a program name with args.
1.207 +set dummy gcc; ac_word=$2
1.208 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.209 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.210 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.211 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.212 +else
1.213 + if test -n "$ac_ct_CC"; then
1.214 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.215 +else
1.216 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.217 +for as_dir in $PATH
1.218 +do
1.219 + IFS=$as_save_IFS
1.220 + test -z "$as_dir" && as_dir=.
1.221 + for ac_exec_ext in '' $ac_executable_extensions; do
1.222 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.223 + ac_cv_prog_ac_ct_CC="gcc"
1.224 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.225 + break 2
1.226 + fi
1.227 +done
1.228 +done
1.229 +IFS=$as_save_IFS
1.230 +
1.231 +fi
1.232 +fi
1.233 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.234 +if test -n "$ac_ct_CC"; then
1.235 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.236 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.237 +else
1.238 + { echo "$as_me:$LINENO: result: no" >&5
1.239 +echo "${ECHO_T}no" >&6; }
1.240 +fi
1.241 +
1.242 + if test "x$ac_ct_CC" = x; then
1.243 + CC=""
1.244 + else
1.245 + case $cross_compiling:$ac_tool_warned in
1.246 +yes:)
1.247 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.248 +whose name does not start with the host triplet. If you think this
1.249 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.250 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.251 +whose name does not start with the host triplet. If you think this
1.252 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.253 +ac_tool_warned=yes ;;
1.254 +esac
1.255 + CC=$ac_ct_CC
1.256 + fi
1.257 +else
1.258 + CC="$ac_cv_prog_CC"
1.259 +fi
1.260 +
1.261 +if test -z "$CC"; then
1.262 + if test -n "$ac_tool_prefix"; then
1.263 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.264 +set dummy ${ac_tool_prefix}cc; ac_word=$2
1.265 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.266 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.267 +if test "${ac_cv_prog_CC+set}" = set; then
1.268 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.269 +else
1.270 + if test -n "$CC"; then
1.271 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.272 +else
1.273 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.274 +for as_dir in $PATH
1.275 +do
1.276 + IFS=$as_save_IFS
1.277 + test -z "$as_dir" && as_dir=.
1.278 + for ac_exec_ext in '' $ac_executable_extensions; do
1.279 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.280 + ac_cv_prog_CC="${ac_tool_prefix}cc"
1.281 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.282 + break 2
1.283 + fi
1.284 +done
1.285 +done
1.286 +IFS=$as_save_IFS
1.287 +
1.288 +fi
1.289 +fi
1.290 +CC=$ac_cv_prog_CC
1.291 +if test -n "$CC"; then
1.292 + { echo "$as_me:$LINENO: result: $CC" >&5
1.293 +echo "${ECHO_T}$CC" >&6; }
1.294 +else
1.295 + { echo "$as_me:$LINENO: result: no" >&5
1.296 +echo "${ECHO_T}no" >&6; }
1.297 +fi
1.298 +
1.299 +
1.300 + fi
1.301 +fi
1.302 +if test -z "$CC"; then
1.303 + # Extract the first word of "cc", so it can be a program name with args.
1.304 +set dummy cc; ac_word=$2
1.305 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.306 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.307 +if test "${ac_cv_prog_CC+set}" = set; then
1.308 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.309 +else
1.310 + if test -n "$CC"; then
1.311 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.312 +else
1.313 + ac_prog_rejected=no
1.314 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.315 +for as_dir in $PATH
1.316 +do
1.317 + IFS=$as_save_IFS
1.318 + test -z "$as_dir" && as_dir=.
1.319 + for ac_exec_ext in '' $ac_executable_extensions; do
1.320 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.321 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.322 + ac_prog_rejected=yes
1.323 + continue
1.324 + fi
1.325 + ac_cv_prog_CC="cc"
1.326 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.327 + break 2
1.328 + fi
1.329 +done
1.330 +done
1.331 +IFS=$as_save_IFS
1.332 +
1.333 +if test $ac_prog_rejected = yes; then
1.334 + # We found a bogon in the path, so make sure we never use it.
1.335 + set dummy $ac_cv_prog_CC
1.336 + shift
1.337 + if test $# != 0; then
1.338 + # We chose a different compiler from the bogus one.
1.339 + # However, it has the same basename, so the bogon will be chosen
1.340 + # first if we set CC to just the basename; use the full file name.
1.341 + shift
1.342 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.343 + fi
1.344 +fi
1.345 +fi
1.346 +fi
1.347 +CC=$ac_cv_prog_CC
1.348 +if test -n "$CC"; then
1.349 + { echo "$as_me:$LINENO: result: $CC" >&5
1.350 +echo "${ECHO_T}$CC" >&6; }
1.351 +else
1.352 + { echo "$as_me:$LINENO: result: no" >&5
1.353 +echo "${ECHO_T}no" >&6; }
1.354 +fi
1.355 +
1.356 +
1.357 +fi
1.358 +if test -z "$CC"; then
1.359 + if test -n "$ac_tool_prefix"; then
1.360 + for ac_prog in cl.exe
1.361 + do
1.362 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.363 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.364 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.365 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.366 +if test "${ac_cv_prog_CC+set}" = set; then
1.367 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.368 +else
1.369 + if test -n "$CC"; then
1.370 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.371 +else
1.372 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.373 +for as_dir in $PATH
1.374 +do
1.375 + IFS=$as_save_IFS
1.376 + test -z "$as_dir" && as_dir=.
1.377 + for ac_exec_ext in '' $ac_executable_extensions; do
1.378 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.379 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.380 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.381 + break 2
1.382 + fi
1.383 +done
1.384 +done
1.385 +IFS=$as_save_IFS
1.386 +
1.387 +fi
1.388 +fi
1.389 +CC=$ac_cv_prog_CC
1.390 +if test -n "$CC"; then
1.391 + { echo "$as_me:$LINENO: result: $CC" >&5
1.392 +echo "${ECHO_T}$CC" >&6; }
1.393 +else
1.394 + { echo "$as_me:$LINENO: result: no" >&5
1.395 +echo "${ECHO_T}no" >&6; }
1.396 +fi
1.397 +
1.398 +
1.399 + test -n "$CC" && break
1.400 + done
1.401 +fi
1.402 +if test -z "$CC"; then
1.403 + ac_ct_CC=$CC
1.404 + for ac_prog in cl.exe
1.405 +do
1.406 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.407 +set dummy $ac_prog; ac_word=$2
1.408 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.409 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.410 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.411 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.412 +else
1.413 + if test -n "$ac_ct_CC"; then
1.414 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.415 +else
1.416 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.417 +for as_dir in $PATH
1.418 +do
1.419 + IFS=$as_save_IFS
1.420 + test -z "$as_dir" && as_dir=.
1.421 + for ac_exec_ext in '' $ac_executable_extensions; do
1.422 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.423 + ac_cv_prog_ac_ct_CC="$ac_prog"
1.424 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.425 + break 2
1.426 + fi
1.427 +done
1.428 +done
1.429 +IFS=$as_save_IFS
1.430 +
1.431 +fi
1.432 +fi
1.433 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.434 +if test -n "$ac_ct_CC"; then
1.435 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.436 +echo "${ECHO_T}$ac_ct_CC" >&6; }
1.437 +else
1.438 + { echo "$as_me:$LINENO: result: no" >&5
1.439 +echo "${ECHO_T}no" >&6; }
1.440 +fi
1.441 +
1.442 +
1.443 + test -n "$ac_ct_CC" && break
1.444 +done
1.445 +
1.446 + if test "x$ac_ct_CC" = x; then
1.447 + CC=""
1.448 + else
1.449 + case $cross_compiling:$ac_tool_warned in
1.450 +yes:)
1.451 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.452 +whose name does not start with the host triplet. If you think this
1.453 +configuration is useful to you, please write to autoconf@gnu.org." >&5
1.454 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.455 +whose name does not start with the host triplet. If you think this
1.456 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.457 +ac_tool_warned=yes ;;
1.458 +esac
1.459 + CC=$ac_ct_CC
1.460 + fi
1.461 +fi
1.462 +
1.463 +fi
1.464 +
1.465 +
1.466 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.467 +See \`config.log' for more details." >&5
1.468 +echo "$as_me: error: no acceptable C compiler found in \$PATH
1.469 +See \`config.log' for more details." >&2;}
1.470 + { (exit 1); exit 1; }; }
1.471 +
1.472 +# Provide some information about the compiler.
1.473 +echo "$as_me:$LINENO: checking for C compiler version" >&5
1.474 +ac_compiler=`set X $ac_compile; echo $2`
1.475 +{ (ac_try="$ac_compiler --version >&5"
1.476 +case "(($ac_try" in
1.477 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.478 + *) ac_try_echo=$ac_try;;
1.479 +esac
1.480 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.481 + (eval "$ac_compiler --version >&5") 2>&5
1.482 + ac_status=$?
1.483 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.484 + (exit $ac_status); }
1.485 +{ (ac_try="$ac_compiler -v >&5"
1.486 +case "(($ac_try" in
1.487 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.488 + *) ac_try_echo=$ac_try;;
1.489 +esac
1.490 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.491 + (eval "$ac_compiler -v >&5") 2>&5
1.492 + ac_status=$?
1.493 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.494 + (exit $ac_status); }
1.495 +{ (ac_try="$ac_compiler -V >&5"
1.496 +case "(($ac_try" in
1.497 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.498 + *) ac_try_echo=$ac_try;;
1.499 +esac
1.500 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.501 + (eval "$ac_compiler -V >&5") 2>&5
1.502 + ac_status=$?
1.503 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.504 + (exit $ac_status); }
1.505 +
1.506 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.507 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.508 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.509 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.510 +else
1.511 + cat >conftest.$ac_ext <<_ACEOF
1.512 +/* confdefs.h. */
1.513 +_ACEOF
1.514 +cat confdefs.h >>conftest.$ac_ext
1.515 +cat >>conftest.$ac_ext <<_ACEOF
1.516 +/* end confdefs.h. */
1.517 +
1.518 +int
1.519 +main ()
1.520 +{
1.521 +#ifndef __GNUC__
1.522 + choke me
1.523 +#endif
1.524 +
1.525 + ;
1.526 + return 0;
1.527 +}
1.528 +_ACEOF
1.529 +rm -f conftest.$ac_objext
1.530 +if { (ac_try="$ac_compile"
1.531 +case "(($ac_try" in
1.532 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.533 + *) ac_try_echo=$ac_try;;
1.534 +esac
1.535 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.536 + (eval "$ac_compile") 2>conftest.er1
1.537 + ac_status=$?
1.538 + grep -v '^ *+' conftest.er1 >conftest.err
1.539 + rm -f conftest.er1
1.540 + cat conftest.err >&5
1.541 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.542 + (exit $ac_status); } && {
1.543 + test -z "$ac_c_werror_flag" ||
1.544 + test ! -s conftest.err
1.545 + } && test -s conftest.$ac_objext; then
1.546 + ac_compiler_gnu=yes
1.547 +else
1.548 + echo "$as_me: failed program was:" >&5
1.549 +sed 's/^/| /' conftest.$ac_ext >&5
1.550 +
1.551 + ac_compiler_gnu=no
1.552 +fi
1.553 +
1.554 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.555 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.556 +
1.557 +fi
1.558 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.559 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.560 +GCC=`test $ac_compiler_gnu = yes && echo yes`
1.561 +ac_test_CFLAGS=${CFLAGS+set}
1.562 +ac_save_CFLAGS=$CFLAGS
1.563 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.564 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.565 +if test "${ac_cv_prog_cc_g+set}" = set; then
1.566 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.567 +else
1.568 + ac_save_c_werror_flag=$ac_c_werror_flag
1.569 + ac_c_werror_flag=yes
1.570 + ac_cv_prog_cc_g=no
1.571 + CFLAGS="-g"
1.572 + cat >conftest.$ac_ext <<_ACEOF
1.573 +/* confdefs.h. */
1.574 +_ACEOF
1.575 +cat confdefs.h >>conftest.$ac_ext
1.576 +cat >>conftest.$ac_ext <<_ACEOF
1.577 +/* end confdefs.h. */
1.578 +
1.579 +int
1.580 +main ()
1.581 +{
1.582 +
1.583 + ;
1.584 + return 0;
1.585 +}
1.586 +_ACEOF
1.587 +rm -f conftest.$ac_objext
1.588 +if { (ac_try="$ac_compile"
1.589 +case "(($ac_try" in
1.590 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.591 + *) ac_try_echo=$ac_try;;
1.592 +esac
1.593 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.594 + (eval "$ac_compile") 2>conftest.er1
1.595 + ac_status=$?
1.596 + grep -v '^ *+' conftest.er1 >conftest.err
1.597 + rm -f conftest.er1
1.598 + cat conftest.err >&5
1.599 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.600 + (exit $ac_status); } && {
1.601 + test -z "$ac_c_werror_flag" ||
1.602 + test ! -s conftest.err
1.603 + } && test -s conftest.$ac_objext; then
1.604 + ac_cv_prog_cc_g=yes
1.605 +else
1.606 + echo "$as_me: failed program was:" >&5
1.607 +sed 's/^/| /' conftest.$ac_ext >&5
1.608 +
1.609 + CFLAGS=""
1.610 + cat >conftest.$ac_ext <<_ACEOF
1.611 +/* confdefs.h. */
1.612 +_ACEOF
1.613 +cat confdefs.h >>conftest.$ac_ext
1.614 +cat >>conftest.$ac_ext <<_ACEOF
1.615 +/* end confdefs.h. */
1.616 +
1.617 +int
1.618 +main ()
1.619 +{
1.620 +
1.621 + ;
1.622 + return 0;
1.623 +}
1.624 +_ACEOF
1.625 +rm -f conftest.$ac_objext
1.626 +if { (ac_try="$ac_compile"
1.627 +case "(($ac_try" in
1.628 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.629 + *) ac_try_echo=$ac_try;;
1.630 +esac
1.631 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.632 + (eval "$ac_compile") 2>conftest.er1
1.633 + ac_status=$?
1.634 + grep -v '^ *+' conftest.er1 >conftest.err
1.635 + rm -f conftest.er1
1.636 + cat conftest.err >&5
1.637 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.638 + (exit $ac_status); } && {
1.639 + test -z "$ac_c_werror_flag" ||
1.640 + test ! -s conftest.err
1.641 + } && test -s conftest.$ac_objext; then
1.642 + :
1.643 +else
1.644 + echo "$as_me: failed program was:" >&5
1.645 +sed 's/^/| /' conftest.$ac_ext >&5
1.646 +
1.647 + ac_c_werror_flag=$ac_save_c_werror_flag
1.648 + CFLAGS="-g"
1.649 + cat >conftest.$ac_ext <<_ACEOF
1.650 +/* confdefs.h. */
1.651 +_ACEOF
1.652 +cat confdefs.h >>conftest.$ac_ext
1.653 +cat >>conftest.$ac_ext <<_ACEOF
1.654 +/* end confdefs.h. */
1.655 +
1.656 +int
1.657 +main ()
1.658 +{
1.659 +
1.660 + ;
1.661 + return 0;
1.662 +}
1.663 +_ACEOF
1.664 +rm -f conftest.$ac_objext
1.665 +if { (ac_try="$ac_compile"
1.666 +case "(($ac_try" in
1.667 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.668 + *) ac_try_echo=$ac_try;;
1.669 +esac
1.670 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.671 + (eval "$ac_compile") 2>conftest.er1
1.672 + ac_status=$?
1.673 + grep -v '^ *+' conftest.er1 >conftest.err
1.674 + rm -f conftest.er1
1.675 + cat conftest.err >&5
1.676 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.677 + (exit $ac_status); } && {
1.678 + test -z "$ac_c_werror_flag" ||
1.679 + test ! -s conftest.err
1.680 + } && test -s conftest.$ac_objext; then
1.681 + ac_cv_prog_cc_g=yes
1.682 +else
1.683 + echo "$as_me: failed program was:" >&5
1.684 +sed 's/^/| /' conftest.$ac_ext >&5
1.685 +
1.686 +
1.687 +fi
1.688 +
1.689 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.690 +fi
1.691 +
1.692 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.693 +fi
1.694 +
1.695 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.696 + ac_c_werror_flag=$ac_save_c_werror_flag
1.697 +fi
1.698 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.699 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.700 +if test "$ac_test_CFLAGS" = set; then
1.701 + CFLAGS=$ac_save_CFLAGS
1.702 +elif test $ac_cv_prog_cc_g = yes; then
1.703 + if test "$GCC" = yes; then
1.704 + CFLAGS="-g -O2"
1.705 + else
1.706 + CFLAGS="-g"
1.707 + fi
1.708 +else
1.709 + if test "$GCC" = yes; then
1.710 + CFLAGS="-O2"
1.711 + else
1.712 + CFLAGS=
1.713 + fi
1.714 +fi
1.715 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1.716 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1.717 +if test "${ac_cv_prog_cc_c89+set}" = set; then
1.718 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.719 +else
1.720 + ac_cv_prog_cc_c89=no
1.721 +ac_save_CC=$CC
1.722 +cat >conftest.$ac_ext <<_ACEOF
1.723 +/* confdefs.h. */
1.724 +_ACEOF
1.725 +cat confdefs.h >>conftest.$ac_ext
1.726 +cat >>conftest.$ac_ext <<_ACEOF
1.727 +/* end confdefs.h. */
1.728 +#include <stdarg.h>
1.729 +#include <stdio.h>
1.730 +#include <sys/types.h>
1.731 +#include <sys/stat.h>
1.732 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.733 +struct buf { int x; };
1.734 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.735 +static char *e (p, i)
1.736 + char **p;
1.737 + int i;
1.738 +{
1.739 + return p[i];
1.740 +}
1.741 +static char *f (char * (*g) (char **, int), char **p, ...)
1.742 +{
1.743 + char *s;
1.744 + va_list v;
1.745 + va_start (v,p);
1.746 + s = g (p, va_arg (v,int));
1.747 + va_end (v);
1.748 + return s;
1.749 +}
1.750 +
1.751 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.752 + function prototypes and stuff, but not '\xHH' hex character constants.
1.753 + These don't provoke an error unfortunately, instead are silently treated
1.754 + as 'x'. The following induces an error, until -std is added to get
1.755 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.756 + array size at least. It's necessary to write '\x00'==0 to get something
1.757 + that's true only with -std. */
1.758 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.759 +
1.760 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1.761 + inside strings and character constants. */
1.762 +#define FOO(x) 'x'
1.763 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.764 +
1.765 +int test (int i, double x);
1.766 +struct s1 {int (*f) (int a);};
1.767 +struct s2 {int (*f) (double a);};
1.768 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.769 +int argc;
1.770 +char **argv;
1.771 +int
1.772 +main ()
1.773 +{
1.774 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.775 + ;
1.776 + return 0;
1.777 +}
1.778 +_ACEOF
1.779 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.780 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.781 +do
1.782 + CC="$ac_save_CC $ac_arg"
1.783 + rm -f conftest.$ac_objext
1.784 +if { (ac_try="$ac_compile"
1.785 +case "(($ac_try" in
1.786 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.787 + *) ac_try_echo=$ac_try;;
1.788 +esac
1.789 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.790 + (eval "$ac_compile") 2>conftest.er1
1.791 + ac_status=$?
1.792 + grep -v '^ *+' conftest.er1 >conftest.err
1.793 + rm -f conftest.er1
1.794 + cat conftest.err >&5
1.795 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.796 + (exit $ac_status); } && {
1.797 + test -z "$ac_c_werror_flag" ||
1.798 + test ! -s conftest.err
1.799 + } && test -s conftest.$ac_objext; then
1.800 + ac_cv_prog_cc_c89=$ac_arg
1.801 +else
1.802 + echo "$as_me: failed program was:" >&5
1.803 +sed 's/^/| /' conftest.$ac_ext >&5
1.804 +
1.805 +
1.806 +fi
1.807 +
1.808 +rm -f core conftest.err conftest.$ac_objext
1.809 + test "x$ac_cv_prog_cc_c89" != "xno" && break
1.810 +done
1.811 +rm -f conftest.$ac_ext
1.812 +CC=$ac_save_CC
1.813 +
1.814 +fi
1.815 +# AC_CACHE_VAL
1.816 +case "x$ac_cv_prog_cc_c89" in
1.817 + x)
1.818 + { echo "$as_me:$LINENO: result: none needed" >&5
1.819 +echo "${ECHO_T}none needed" >&6; } ;;
1.820 + xno)
1.821 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.822 +echo "${ECHO_T}unsupported" >&6; } ;;
1.823 + *)
1.824 + CC="$CC $ac_cv_prog_cc_c89"
1.825 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.826 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.827 +esac
1.828 +
1.829 +
1.830 +ac_ext=c
1.831 +ac_cpp='$CPP $CPPFLAGS'
1.832 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.833 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.834 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.835 +
1.836 +depcc="$CC" am_compiler_list=
1.837 +
1.838 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.839 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.840 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.841 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.842 +else
1.843 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.844 + # We make a subdir and do the tests there. Otherwise we can end up
1.845 + # making bogus files that we don't know about and never remove. For
1.846 + # instance it was reported that on HP-UX the gcc test will end up
1.847 + # making a dummy file named `D' -- because `-MD' means `put the output
1.848 + # in D'.
1.849 + mkdir conftest.dir
1.850 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.851 + # using a relative directory.
1.852 + cp "$am_depcomp" conftest.dir
1.853 + cd conftest.dir
1.854 + # We will build objects and dependencies in a subdirectory because
1.855 + # it helps to detect inapplicable dependency modes. For instance
1.856 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.857 + # side effect of compilation, but ICC will put the dependencies in
1.858 + # the current directory while Tru64 will put them in the object
1.859 + # directory.
1.860 + mkdir sub
1.861 +
1.862 + am_cv_CC_dependencies_compiler_type=none
1.863 + if test "$am_compiler_list" = ""; then
1.864 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.865 + fi
1.866 + for depmode in $am_compiler_list; do
1.867 + # Setup a source with many dependencies, because some compilers
1.868 + # like to wrap large dependency lists on column 80 (with \), and
1.869 + # we should not choose a depcomp mode which is confused by this.
1.870 + #
1.871 + # We need to recreate these files for each test, as the compiler may
1.872 + # overwrite some of them when testing with obscure command lines.
1.873 + # This happens at least with the AIX C compiler.
1.874 + : > sub/conftest.c
1.875 + for i in 1 2 3 4 5 6; do
1.876 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.877 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.878 + # Solaris 8's {/usr,}/bin/sh.
1.879 + touch sub/conftst$i.h
1.880 + done
1.881 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.882 +
1.883 + case $depmode in
1.884 + nosideeffect)
1.885 + # after this tag, mechanisms are not by side-effect, so they'll
1.886 + # only be used when explicitly requested
1.887 + if test "x$enable_dependency_tracking" = xyes; then
1.888 + continue
1.889 + else
1.890 + break
1.891 + fi
1.892 + ;;
1.893 + none) break ;;
1.894 + esac
1.895 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.896 + # mode. It turns out that the SunPro C++ compiler does not properly
1.897 + # handle `-M -o', and we need to detect this.
1.898 + if depmode=$depmode \
1.899 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.900 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.901 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.902 + >/dev/null 2>conftest.err &&
1.903 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.904 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.905 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.906 + # icc doesn't choke on unknown options, it will just issue warnings
1.907 + # or remarks (even with -Werror). So we grep stderr for any message
1.908 + # that says an option was ignored or not supported.
1.909 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.910 + # icc: Command line warning: ignoring option '-M'; no argument required
1.911 + # The diagnosis changed in icc 8.0:
1.912 + # icc: Command line remark: option '-MP' not supported
1.913 + if (grep 'ignoring option' conftest.err ||
1.914 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.915 + am_cv_CC_dependencies_compiler_type=$depmode
1.916 + break
1.917 + fi
1.918 + fi
1.919 + done
1.920 +
1.921 + cd ..
1.922 + rm -rf conftest.dir
1.923 +else
1.924 + am_cv_CC_dependencies_compiler_type=none
1.925 +fi
1.926 +
1.927 +fi
1.928 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.929 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.930 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.931 +
1.932 +
1.933 +
1.934 +if
1.935 + test "x$enable_dependency_tracking" != xno \
1.936 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.937 + am__fastdepCC_TRUE=
1.938 + am__fastdepCC_FALSE='#'
1.939 +else
1.940 + am__fastdepCC_TRUE='#'
1.941 + am__fastdepCC_FALSE=
1.942 +fi
1.943 +
1.944 +
1.945 +
1.946 +am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
1.947 +
1.948 +ac_ext=c
1.949 +ac_cpp='$CPP $CPPFLAGS'
1.950 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.951 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.952 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.953 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.954 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.955 # On Suns, sometimes $CPP names a directory.
1.956 @@ -4586,89 +5474,6 @@
1.957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.958
1.959
1.960 -# Make sure we can run config.sub.
1.961 -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.962 - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1.963 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.964 - { (exit 1); exit 1; }; }
1.965 -
1.966 -{ echo "$as_me:$LINENO: checking build system type" >&5
1.967 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.968 -if test "${ac_cv_build+set}" = set; then
1.969 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.970 -else
1.971 - ac_build_alias=$build_alias
1.972 -test "x$ac_build_alias" = x &&
1.973 - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1.974 -test "x$ac_build_alias" = x &&
1.975 - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1.976 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1.977 - { (exit 1); exit 1; }; }
1.978 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.979 - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1.980 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.981 - { (exit 1); exit 1; }; }
1.982 -
1.983 -fi
1.984 -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1.985 -echo "${ECHO_T}$ac_cv_build" >&6; }
1.986 -case $ac_cv_build in
1.987 -*-*-*) ;;
1.988 -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1.989 -echo "$as_me: error: invalid value of canonical build" >&2;}
1.990 - { (exit 1); exit 1; }; };;
1.991 -esac
1.992 -build=$ac_cv_build
1.993 -ac_save_IFS=$IFS; IFS='-'
1.994 -set x $ac_cv_build
1.995 -shift
1.996 -build_cpu=$1
1.997 -build_vendor=$2
1.998 -shift; shift
1.999 -# Remember, the first character of IFS is used to create $*,
1.1000 -# except with old shells:
1.1001 -build_os=$*
1.1002 -IFS=$ac_save_IFS
1.1003 -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.1004 -
1.1005 -
1.1006 -{ echo "$as_me:$LINENO: checking host system type" >&5
1.1007 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.1008 -if test "${ac_cv_host+set}" = set; then
1.1009 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.1010 -else
1.1011 - if test "x$host_alias" = x; then
1.1012 - ac_cv_host=$ac_cv_build
1.1013 -else
1.1014 - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.1015 - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1.1016 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.1017 - { (exit 1); exit 1; }; }
1.1018 -fi
1.1019 -
1.1020 -fi
1.1021 -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1.1022 -echo "${ECHO_T}$ac_cv_host" >&6; }
1.1023 -case $ac_cv_host in
1.1024 -*-*-*) ;;
1.1025 -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1.1026 -echo "$as_me: error: invalid value of canonical host" >&2;}
1.1027 - { (exit 1); exit 1; }; };;
1.1028 -esac
1.1029 -host=$ac_cv_host
1.1030 -ac_save_IFS=$IFS; IFS='-'
1.1031 -set x $ac_cv_host
1.1032 -shift
1.1033 -host_cpu=$1
1.1034 -host_vendor=$2
1.1035 -shift; shift
1.1036 -# Remember, the first character of IFS is used to create $*,
1.1037 -# except with old shells:
1.1038 -host_os=$*
1.1039 -IFS=$ac_save_IFS
1.1040 -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1041 -
1.1042 -
1.1043 ac_main_cc="$CC"
1.1044 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
1.1045
1.1046 @@ -4716,11 +5521,12 @@
1.1047
1.1048 fi
1.1049
1.1050 +
1.1051 ac_ext=c
1.1052 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.1053 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.1054 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.1055 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1056 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.1057 if test -n "$ac_build_tool_prefix"; then
1.1058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.1059 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
1.1060 @@ -5102,21 +5908,21 @@
1.1061 test -z "$ac_c_werror_flag" ||
1.1062 test ! -s conftest.err
1.1063 } && test -s conftest.$ac_build_objext; then
1.1064 - ac_compiler_gnu=yes
1.1065 -else
1.1066 - echo "$as_me: failed program was:" >&5
1.1067 -sed 's/^/| /' conftest.$ac_ext >&5
1.1068 -
1.1069 - ac_compiler_gnu=no
1.1070 + ac_build_compiler_gnu=yes
1.1071 +else
1.1072 + echo "$as_me: failed program was:" >&5
1.1073 +sed 's/^/| /' conftest.$ac_ext >&5
1.1074 +
1.1075 + ac_build_compiler_gnu=no
1.1076 fi
1.1077
1.1078 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
1.1079 -ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.1080 +ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
1.1081
1.1082 fi
1.1083 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.1084 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.1085 -GCC=`test $ac_compiler_gnu = yes && echo yes`
1.1086 +GCC=`test $ac_build_compiler_gnu = yes && echo yes`
1.1087 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
1.1088 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
1.1089 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
1.1090 @@ -5273,10 +6079,10 @@
1.1091 fi
1.1092 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
1.1093 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
1.1094 -if test "${ac_cv_prog_cc_c89+set}" = set; then
1.1095 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.1096 -else
1.1097 - ac_cv_prog_cc_c89=no
1.1098 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.1099 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1100 +else
1.1101 + ac_cv_build_prog_cc_stdc=no
1.1102 ac_save_CC=$CC_FOR_BUILD
1.1103 cat >conftest.$ac_ext <<_ACEOF
1.1104 /* confdefs.h. */
1.1105 @@ -5356,7 +6162,7 @@
1.1106 test -z "$ac_c_werror_flag" ||
1.1107 test ! -s conftest.err
1.1108 } && test -s conftest.$ac_build_objext; then
1.1109 - ac_cv_prog_cc_c89=$ac_arg
1.1110 + ac_cv_build_prog_cc_stdc=$ac_arg
1.1111 else
1.1112 echo "$as_me: failed program was:" >&5
1.1113 sed 's/^/| /' conftest.$ac_ext >&5
1.1114 @@ -5365,14 +6171,14 @@
1.1115 fi
1.1116
1.1117 rm -f core conftest.err conftest.$ac_build_objext
1.1118 - test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1119 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
1.1120 done
1.1121 rm -f conftest.$ac_ext
1.1122 CC_FOR_BUILD=$ac_save_CC
1.1123
1.1124 fi
1.1125 # AC_CACHE_VAL
1.1126 -case "x$ac_cv_prog_cc_c89" in
1.1127 +case "x$ac_cv_build_prog_cc_stdc" in
1.1128 x)
1.1129 { echo "$as_me:$LINENO: result: none needed" >&5
1.1130 echo "${ECHO_T}none needed" >&6; } ;;
1.1131 @@ -5380,9 +6186,9 @@
1.1132 { echo "$as_me:$LINENO: result: unsupported" >&5
1.1133 echo "${ECHO_T}unsupported" >&6; } ;;
1.1134 *)
1.1135 - CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
1.1136 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.1137 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.1138 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
1.1139 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.1140 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.1141 esac
1.1142
1.1143
1.1144 @@ -5390,7 +6196,7 @@
1.1145 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.1146 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.1147 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.1148 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1149 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.1150
1.1151 depcc="$CC_FOR_BUILD" am_compiler_list=
1.1152
1.1153 @@ -5501,804 +6307,216 @@
1.1154 fi
1.1155
1.1156
1.1157 -ac_ext=c
1.1158 -ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.1159 -ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.1160 -ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.1161 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1162 -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.1163 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.1164 -# On Suns, sometimes $CPP names a directory.
1.1165 -if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
1.1166 - CPP_FOR_BUILD=
1.1167 -fi
1.1168 -if test -z "$CPP_FOR_BUILD"; then
1.1169 - if test "${ac_cv_build_prog_CPP+set}" = set; then
1.1170 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.1171 -else
1.1172 - # Double quotes because CPP needs to be expanded
1.1173 - for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
1.1174 - do
1.1175 - ac_preproc_ok=false
1.1176 -for ac_c_preproc_warn_flag in '' yes
1.1177 -do
1.1178 - # Use a header file that comes with gcc, so configuring glibc
1.1179 - # with a fresh cross-compiler works.
1.1180 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.1181 - # <limits.h> exists even on freestanding compilers.
1.1182 - # On the NeXT, cc -E runs the code through the compiler's parser,
1.1183 - # not just through cpp. "Syntax error" is here to catch this case.
1.1184 - cat >conftest.$ac_ext <<_ACEOF
1.1185 -/* confdefs.h. */
1.1186 -_ACEOF
1.1187 -cat confdefs.h >>conftest.$ac_ext
1.1188 -cat >>conftest.$ac_ext <<_ACEOF
1.1189 -/* end confdefs.h. */
1.1190 -#ifdef __STDC__
1.1191 -# include <limits.h>
1.1192 -#else
1.1193 -# include <assert.h>
1.1194 -#endif
1.1195 - Syntax error
1.1196 -_ACEOF
1.1197 -if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.1198 -case "(($ac_try" in
1.1199 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1200 - *) ac_try_echo=$ac_try;;
1.1201 -esac
1.1202 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1203 - (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.1204 - ac_status=$?
1.1205 - grep -v '^ *+' conftest.er1 >conftest.err
1.1206 - rm -f conftest.er1
1.1207 - cat conftest.err >&5
1.1208 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1209 - (exit $ac_status); } >/dev/null && {
1.1210 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.1211 - test ! -s conftest.err
1.1212 - }; then
1.1213 - :
1.1214 -else
1.1215 - echo "$as_me: failed program was:" >&5
1.1216 -sed 's/^/| /' conftest.$ac_ext >&5
1.1217 -
1.1218 - # Broken: fails on valid input.
1.1219 -continue
1.1220 -fi
1.1221 -
1.1222 -rm -f conftest.err conftest.$ac_ext
1.1223 -
1.1224 - # OK, works on sane cases. Now check whether nonexistent headers
1.1225 - # can be detected and how.
1.1226 - cat >conftest.$ac_ext <<_ACEOF
1.1227 -/* confdefs.h. */
1.1228 -_ACEOF
1.1229 -cat confdefs.h >>conftest.$ac_ext
1.1230 -cat >>conftest.$ac_ext <<_ACEOF
1.1231 -/* end confdefs.h. */
1.1232 -#include <ac_nonexistent.h>
1.1233 -_ACEOF
1.1234 -if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.1235 -case "(($ac_try" in
1.1236 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1237 - *) ac_try_echo=$ac_try;;
1.1238 -esac
1.1239 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1240 - (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.1241 - ac_status=$?
1.1242 - grep -v '^ *+' conftest.er1 >conftest.err
1.1243 - rm -f conftest.er1
1.1244 - cat conftest.err >&5
1.1245 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1246 - (exit $ac_status); } >/dev/null && {
1.1247 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.1248 - test ! -s conftest.err
1.1249 - }; then
1.1250 - # Broken: success on invalid input.
1.1251 -continue
1.1252 -else
1.1253 - echo "$as_me: failed program was:" >&5
1.1254 -sed 's/^/| /' conftest.$ac_ext >&5
1.1255 -
1.1256 - # Passes both tests.
1.1257 -ac_preproc_ok=:
1.1258 -break
1.1259 -fi
1.1260 -
1.1261 -rm -f conftest.err conftest.$ac_ext
1.1262 -
1.1263 -done
1.1264 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1265 -rm -f conftest.err conftest.$ac_ext
1.1266 -if $ac_preproc_ok; then
1.1267 - break
1.1268 -fi
1.1269 -
1.1270 - done
1.1271 - ac_cv_build_prog_CPP=$CPP_FOR_BUILD
1.1272 -
1.1273 -fi
1.1274 - CPP_FOR_BUILD=$ac_cv_build_prog_CPP
1.1275 -else
1.1276 - ac_cv_build_prog_CPP=$CPP_FOR_BUILD
1.1277 -fi
1.1278 -{ echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
1.1279 -echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
1.1280 -ac_preproc_ok=false
1.1281 -for ac_c_preproc_warn_flag in '' yes
1.1282 -do
1.1283 - # Use a header file that comes with gcc, so configuring glibc
1.1284 - # with a fresh cross-compiler works.
1.1285 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.1286 - # <limits.h> exists even on freestanding compilers.
1.1287 - # On the NeXT, cc -E runs the code through the compiler's parser,
1.1288 - # not just through cpp. "Syntax error" is here to catch this case.
1.1289 - cat >conftest.$ac_ext <<_ACEOF
1.1290 -/* confdefs.h. */
1.1291 -_ACEOF
1.1292 -cat confdefs.h >>conftest.$ac_ext
1.1293 -cat >>conftest.$ac_ext <<_ACEOF
1.1294 -/* end confdefs.h. */
1.1295 -#ifdef __STDC__
1.1296 -# include <limits.h>
1.1297 -#else
1.1298 -# include <assert.h>
1.1299 -#endif
1.1300 - Syntax error
1.1301 -_ACEOF
1.1302 -if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.1303 -case "(($ac_try" in
1.1304 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1305 - *) ac_try_echo=$ac_try;;
1.1306 -esac
1.1307 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1308 - (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.1309 - ac_status=$?
1.1310 - grep -v '^ *+' conftest.er1 >conftest.err
1.1311 - rm -f conftest.er1
1.1312 - cat conftest.err >&5
1.1313 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1314 - (exit $ac_status); } >/dev/null && {
1.1315 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.1316 - test ! -s conftest.err
1.1317 - }; then
1.1318 - :
1.1319 -else
1.1320 - echo "$as_me: failed program was:" >&5
1.1321 -sed 's/^/| /' conftest.$ac_ext >&5
1.1322 -
1.1323 - # Broken: fails on valid input.
1.1324 -continue
1.1325 -fi
1.1326 -
1.1327 -rm -f conftest.err conftest.$ac_ext
1.1328 -
1.1329 - # OK, works on sane cases. Now check whether nonexistent headers
1.1330 - # can be detected and how.
1.1331 - cat >conftest.$ac_ext <<_ACEOF
1.1332 -/* confdefs.h. */
1.1333 -_ACEOF
1.1334 -cat confdefs.h >>conftest.$ac_ext
1.1335 -cat >>conftest.$ac_ext <<_ACEOF
1.1336 -/* end confdefs.h. */
1.1337 -#include <ac_nonexistent.h>
1.1338 -_ACEOF
1.1339 -if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.1340 -case "(($ac_try" in
1.1341 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1342 - *) ac_try_echo=$ac_try;;
1.1343 -esac
1.1344 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1345 - (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.1346 - ac_status=$?
1.1347 - grep -v '^ *+' conftest.er1 >conftest.err
1.1348 - rm -f conftest.er1
1.1349 - cat conftest.err >&5
1.1350 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1351 - (exit $ac_status); } >/dev/null && {
1.1352 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.1353 - test ! -s conftest.err
1.1354 - }; then
1.1355 - # Broken: success on invalid input.
1.1356 -continue
1.1357 -else
1.1358 - echo "$as_me: failed program was:" >&5
1.1359 -sed 's/^/| /' conftest.$ac_ext >&5
1.1360 -
1.1361 - # Passes both tests.
1.1362 -ac_preproc_ok=:
1.1363 -break
1.1364 -fi
1.1365 -
1.1366 -rm -f conftest.err conftest.$ac_ext
1.1367 -
1.1368 -done
1.1369 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.1370 -rm -f conftest.err conftest.$ac_ext
1.1371 -if $ac_preproc_ok; then
1.1372 - :
1.1373 -else
1.1374 - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
1.1375 -See \`config.log' for more details." >&5
1.1376 -echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
1.1377 -See \`config.log' for more details." >&2;}
1.1378 - { (exit 1); exit 1; }; }
1.1379 -fi
1.1380 -
1.1381 -ac_ext=c
1.1382 -ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.1383 -ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.1384 -ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.1385 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1386 -
1.1387 -
1.1388 -
1.1389 -
1.1390 -BUILD_EXEEXT=$ac_build_exeext
1.1391 -BUILD_OBJEXT=$ac_build_objext
1.1392 -
1.1393 -ac_ext=c
1.1394 -ac_cpp='$CPP $CPPFLAGS'
1.1395 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.1396 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.1397 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1398 -if test -n "$ac_tool_prefix"; then
1.1399 - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.1400 -set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1401 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1402 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1403 -if test "${ac_cv_prog_CC+set}" = set; then
1.1404 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.1405 -else
1.1406 - if test -n "$CC"; then
1.1407 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.1408 -else
1.1409 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1410 -for as_dir in $PATH
1.1411 -do
1.1412 - IFS=$as_save_IFS
1.1413 - test -z "$as_dir" && as_dir=.
1.1414 - for ac_exec_ext in '' $ac_executable_extensions; do
1.1415 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1416 - ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.1417 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1418 - break 2
1.1419 - fi
1.1420 -done
1.1421 -done
1.1422 -IFS=$as_save_IFS
1.1423 -
1.1424 -fi
1.1425 -fi
1.1426 -CC=$ac_cv_prog_CC
1.1427 -if test -n "$CC"; then
1.1428 - { echo "$as_me:$LINENO: result: $CC" >&5
1.1429 -echo "${ECHO_T}$CC" >&6; }
1.1430 -else
1.1431 - { echo "$as_me:$LINENO: result: no" >&5
1.1432 -echo "${ECHO_T}no" >&6; }
1.1433 -fi
1.1434 -
1.1435 -
1.1436 -fi
1.1437 -if test -z "$ac_cv_prog_CC"; then
1.1438 - ac_ct_CC=$CC
1.1439 - # Extract the first word of "gcc", so it can be a program name with args.
1.1440 -set dummy gcc; ac_word=$2
1.1441 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1442 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1443 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.1444 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.1445 -else
1.1446 - if test -n "$ac_ct_CC"; then
1.1447 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1448 -else
1.1449 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1450 -for as_dir in $PATH
1.1451 -do
1.1452 - IFS=$as_save_IFS
1.1453 - test -z "$as_dir" && as_dir=.
1.1454 - for ac_exec_ext in '' $ac_executable_extensions; do
1.1455 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1456 - ac_cv_prog_ac_ct_CC="gcc"
1.1457 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1458 - break 2
1.1459 - fi
1.1460 -done
1.1461 -done
1.1462 -IFS=$as_save_IFS
1.1463 -
1.1464 -fi
1.1465 -fi
1.1466 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.1467 -if test -n "$ac_ct_CC"; then
1.1468 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.1469 -echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1470 -else
1.1471 - { echo "$as_me:$LINENO: result: no" >&5
1.1472 -echo "${ECHO_T}no" >&6; }
1.1473 -fi
1.1474 -
1.1475 - if test "x$ac_ct_CC" = x; then
1.1476 - CC=""
1.1477 - else
1.1478 - case $cross_compiling:$ac_tool_warned in
1.1479 -yes:)
1.1480 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1481 -whose name does not start with the host triplet. If you think this
1.1482 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1483 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1484 -whose name does not start with the host triplet. If you think this
1.1485 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.1486 -ac_tool_warned=yes ;;
1.1487 -esac
1.1488 - CC=$ac_ct_CC
1.1489 - fi
1.1490 -else
1.1491 - CC="$ac_cv_prog_CC"
1.1492 -fi
1.1493 -
1.1494 -if test -z "$CC"; then
1.1495 - if test -n "$ac_tool_prefix"; then
1.1496 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1497 -set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1498 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1499 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1500 -if test "${ac_cv_prog_CC+set}" = set; then
1.1501 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.1502 -else
1.1503 - if test -n "$CC"; then
1.1504 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.1505 -else
1.1506 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1507 -for as_dir in $PATH
1.1508 -do
1.1509 - IFS=$as_save_IFS
1.1510 - test -z "$as_dir" && as_dir=.
1.1511 - for ac_exec_ext in '' $ac_executable_extensions; do
1.1512 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1513 - ac_cv_prog_CC="${ac_tool_prefix}cc"
1.1514 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1515 - break 2
1.1516 - fi
1.1517 -done
1.1518 -done
1.1519 -IFS=$as_save_IFS
1.1520 -
1.1521 -fi
1.1522 -fi
1.1523 -CC=$ac_cv_prog_CC
1.1524 -if test -n "$CC"; then
1.1525 - { echo "$as_me:$LINENO: result: $CC" >&5
1.1526 -echo "${ECHO_T}$CC" >&6; }
1.1527 -else
1.1528 - { echo "$as_me:$LINENO: result: no" >&5
1.1529 -echo "${ECHO_T}no" >&6; }
1.1530 -fi
1.1531 -
1.1532 -
1.1533 - fi
1.1534 -fi
1.1535 -if test -z "$CC"; then
1.1536 - # Extract the first word of "cc", so it can be a program name with args.
1.1537 -set dummy cc; ac_word=$2
1.1538 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1539 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1540 -if test "${ac_cv_prog_CC+set}" = set; then
1.1541 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.1542 -else
1.1543 - if test -n "$CC"; then
1.1544 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.1545 -else
1.1546 - ac_prog_rejected=no
1.1547 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1548 -for as_dir in $PATH
1.1549 -do
1.1550 - IFS=$as_save_IFS
1.1551 - test -z "$as_dir" && as_dir=.
1.1552 - for ac_exec_ext in '' $ac_executable_extensions; do
1.1553 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1554 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.1555 - ac_prog_rejected=yes
1.1556 - continue
1.1557 - fi
1.1558 - ac_cv_prog_CC="cc"
1.1559 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1560 - break 2
1.1561 - fi
1.1562 -done
1.1563 -done
1.1564 -IFS=$as_save_IFS
1.1565 -
1.1566 -if test $ac_prog_rejected = yes; then
1.1567 - # We found a bogon in the path, so make sure we never use it.
1.1568 - set dummy $ac_cv_prog_CC
1.1569 - shift
1.1570 - if test $# != 0; then
1.1571 - # We chose a different compiler from the bogus one.
1.1572 - # However, it has the same basename, so the bogon will be chosen
1.1573 - # first if we set CC to just the basename; use the full file name.
1.1574 - shift
1.1575 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1576 - fi
1.1577 -fi
1.1578 -fi
1.1579 -fi
1.1580 -CC=$ac_cv_prog_CC
1.1581 -if test -n "$CC"; then
1.1582 - { echo "$as_me:$LINENO: result: $CC" >&5
1.1583 -echo "${ECHO_T}$CC" >&6; }
1.1584 -else
1.1585 - { echo "$as_me:$LINENO: result: no" >&5
1.1586 -echo "${ECHO_T}no" >&6; }
1.1587 -fi
1.1588 -
1.1589 -
1.1590 -fi
1.1591 -if test -z "$CC"; then
1.1592 - if test -n "$ac_tool_prefix"; then
1.1593 - for ac_prog in cl.exe
1.1594 - do
1.1595 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.1596 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1597 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1598 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1599 -if test "${ac_cv_prog_CC+set}" = set; then
1.1600 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.1601 -else
1.1602 - if test -n "$CC"; then
1.1603 - ac_cv_prog_CC="$CC" # Let the user override the test.
1.1604 -else
1.1605 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1606 -for as_dir in $PATH
1.1607 -do
1.1608 - IFS=$as_save_IFS
1.1609 - test -z "$as_dir" && as_dir=.
1.1610 - for ac_exec_ext in '' $ac_executable_extensions; do
1.1611 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1612 - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.1613 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1614 - break 2
1.1615 - fi
1.1616 -done
1.1617 -done
1.1618 -IFS=$as_save_IFS
1.1619 -
1.1620 -fi
1.1621 -fi
1.1622 -CC=$ac_cv_prog_CC
1.1623 -if test -n "$CC"; then
1.1624 - { echo "$as_me:$LINENO: result: $CC" >&5
1.1625 -echo "${ECHO_T}$CC" >&6; }
1.1626 -else
1.1627 - { echo "$as_me:$LINENO: result: no" >&5
1.1628 -echo "${ECHO_T}no" >&6; }
1.1629 -fi
1.1630 -
1.1631 -
1.1632 - test -n "$CC" && break
1.1633 - done
1.1634 -fi
1.1635 -if test -z "$CC"; then
1.1636 - ac_ct_CC=$CC
1.1637 - for ac_prog in cl.exe
1.1638 -do
1.1639 - # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1640 -set dummy $ac_prog; ac_word=$2
1.1641 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1642 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1643 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.1644 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.1645 -else
1.1646 - if test -n "$ac_ct_CC"; then
1.1647 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1648 -else
1.1649 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1650 -for as_dir in $PATH
1.1651 -do
1.1652 - IFS=$as_save_IFS
1.1653 - test -z "$as_dir" && as_dir=.
1.1654 - for ac_exec_ext in '' $ac_executable_extensions; do
1.1655 - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1656 - ac_cv_prog_ac_ct_CC="$ac_prog"
1.1657 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1658 - break 2
1.1659 - fi
1.1660 -done
1.1661 -done
1.1662 -IFS=$as_save_IFS
1.1663 -
1.1664 -fi
1.1665 -fi
1.1666 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.1667 -if test -n "$ac_ct_CC"; then
1.1668 - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.1669 -echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1670 -else
1.1671 - { echo "$as_me:$LINENO: result: no" >&5
1.1672 -echo "${ECHO_T}no" >&6; }
1.1673 -fi
1.1674 -
1.1675 -
1.1676 - test -n "$ac_ct_CC" && break
1.1677 -done
1.1678 -
1.1679 - if test "x$ac_ct_CC" = x; then
1.1680 - CC=""
1.1681 - else
1.1682 - case $cross_compiling:$ac_tool_warned in
1.1683 -yes:)
1.1684 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1.1685 -whose name does not start with the host triplet. If you think this
1.1686 -configuration is useful to you, please write to autoconf@gnu.org." >&5
1.1687 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1.1688 -whose name does not start with the host triplet. If you think this
1.1689 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1.1690 -ac_tool_warned=yes ;;
1.1691 -esac
1.1692 - CC=$ac_ct_CC
1.1693 - fi
1.1694 -fi
1.1695 -
1.1696 -fi
1.1697 -
1.1698 -
1.1699 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.1700 -See \`config.log' for more details." >&5
1.1701 -echo "$as_me: error: no acceptable C compiler found in \$PATH
1.1702 -See \`config.log' for more details." >&2;}
1.1703 - { (exit 1); exit 1; }; }
1.1704 -
1.1705 -# Provide some information about the compiler.
1.1706 -echo "$as_me:$LINENO: checking for C compiler version" >&5
1.1707 -ac_compiler=`set X $ac_compile; echo $2`
1.1708 -{ (ac_try="$ac_compiler --version >&5"
1.1709 -case "(($ac_try" in
1.1710 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1711 - *) ac_try_echo=$ac_try;;
1.1712 -esac
1.1713 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1714 - (eval "$ac_compiler --version >&5") 2>&5
1.1715 - ac_status=$?
1.1716 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1717 - (exit $ac_status); }
1.1718 -{ (ac_try="$ac_compiler -v >&5"
1.1719 -case "(($ac_try" in
1.1720 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1721 - *) ac_try_echo=$ac_try;;
1.1722 -esac
1.1723 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1724 - (eval "$ac_compiler -v >&5") 2>&5
1.1725 - ac_status=$?
1.1726 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1727 - (exit $ac_status); }
1.1728 -{ (ac_try="$ac_compiler -V >&5"
1.1729 -case "(($ac_try" in
1.1730 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1731 - *) ac_try_echo=$ac_try;;
1.1732 -esac
1.1733 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1734 - (eval "$ac_compiler -V >&5") 2>&5
1.1735 - ac_status=$?
1.1736 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1737 - (exit $ac_status); }
1.1738 -
1.1739 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.1740 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.1741 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.1742 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.1743 -else
1.1744 - cat >conftest.$ac_ext <<_ACEOF
1.1745 -/* confdefs.h. */
1.1746 -_ACEOF
1.1747 -cat confdefs.h >>conftest.$ac_ext
1.1748 -cat >>conftest.$ac_ext <<_ACEOF
1.1749 -/* end confdefs.h. */
1.1750 -
1.1751 -int
1.1752 -main ()
1.1753 -{
1.1754 -#ifndef __GNUC__
1.1755 - choke me
1.1756 -#endif
1.1757 -
1.1758 - ;
1.1759 - return 0;
1.1760 -}
1.1761 -_ACEOF
1.1762 -rm -f conftest.$ac_objext
1.1763 -if { (ac_try="$ac_compile"
1.1764 -case "(($ac_try" in
1.1765 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1766 - *) ac_try_echo=$ac_try;;
1.1767 -esac
1.1768 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1769 - (eval "$ac_compile") 2>conftest.er1
1.1770 - ac_status=$?
1.1771 - grep -v '^ *+' conftest.er1 >conftest.err
1.1772 - rm -f conftest.er1
1.1773 - cat conftest.err >&5
1.1774 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1775 - (exit $ac_status); } && {
1.1776 - test -z "$ac_c_werror_flag" ||
1.1777 - test ! -s conftest.err
1.1778 - } && test -s conftest.$ac_objext; then
1.1779 - ac_compiler_gnu=yes
1.1780 -else
1.1781 - echo "$as_me: failed program was:" >&5
1.1782 -sed 's/^/| /' conftest.$ac_ext >&5
1.1783 -
1.1784 - ac_compiler_gnu=no
1.1785 -fi
1.1786 -
1.1787 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1788 -ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.1789 -
1.1790 -fi
1.1791 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.1792 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.1793 -GCC=`test $ac_compiler_gnu = yes && echo yes`
1.1794 -ac_test_CFLAGS=${CFLAGS+set}
1.1795 -ac_save_CFLAGS=$CFLAGS
1.1796 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.1797 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.1798 -if test "${ac_cv_prog_cc_g+set}" = set; then
1.1799 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.1800 -else
1.1801 - ac_save_c_werror_flag=$ac_c_werror_flag
1.1802 - ac_c_werror_flag=yes
1.1803 - ac_cv_prog_cc_g=no
1.1804 - CFLAGS="-g"
1.1805 - cat >conftest.$ac_ext <<_ACEOF
1.1806 -/* confdefs.h. */
1.1807 -_ACEOF
1.1808 -cat confdefs.h >>conftest.$ac_ext
1.1809 -cat >>conftest.$ac_ext <<_ACEOF
1.1810 -/* end confdefs.h. */
1.1811 -
1.1812 -int
1.1813 -main ()
1.1814 -{
1.1815 -
1.1816 - ;
1.1817 - return 0;
1.1818 -}
1.1819 -_ACEOF
1.1820 -rm -f conftest.$ac_objext
1.1821 -if { (ac_try="$ac_compile"
1.1822 -case "(($ac_try" in
1.1823 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1824 - *) ac_try_echo=$ac_try;;
1.1825 -esac
1.1826 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1827 - (eval "$ac_compile") 2>conftest.er1
1.1828 - ac_status=$?
1.1829 - grep -v '^ *+' conftest.er1 >conftest.err
1.1830 - rm -f conftest.er1
1.1831 - cat conftest.err >&5
1.1832 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1833 - (exit $ac_status); } && {
1.1834 - test -z "$ac_c_werror_flag" ||
1.1835 - test ! -s conftest.err
1.1836 - } && test -s conftest.$ac_objext; then
1.1837 - ac_cv_prog_cc_g=yes
1.1838 -else
1.1839 - echo "$as_me: failed program was:" >&5
1.1840 -sed 's/^/| /' conftest.$ac_ext >&5
1.1841 -
1.1842 - CFLAGS=""
1.1843 - cat >conftest.$ac_ext <<_ACEOF
1.1844 -/* confdefs.h. */
1.1845 -_ACEOF
1.1846 -cat confdefs.h >>conftest.$ac_ext
1.1847 -cat >>conftest.$ac_ext <<_ACEOF
1.1848 -/* end confdefs.h. */
1.1849 -
1.1850 -int
1.1851 -main ()
1.1852 -{
1.1853 -
1.1854 - ;
1.1855 - return 0;
1.1856 -}
1.1857 -_ACEOF
1.1858 -rm -f conftest.$ac_objext
1.1859 -if { (ac_try="$ac_compile"
1.1860 -case "(($ac_try" in
1.1861 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1862 - *) ac_try_echo=$ac_try;;
1.1863 -esac
1.1864 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1865 - (eval "$ac_compile") 2>conftest.er1
1.1866 - ac_status=$?
1.1867 - grep -v '^ *+' conftest.er1 >conftest.err
1.1868 - rm -f conftest.er1
1.1869 - cat conftest.err >&5
1.1870 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1871 - (exit $ac_status); } && {
1.1872 - test -z "$ac_c_werror_flag" ||
1.1873 - test ! -s conftest.err
1.1874 - } && test -s conftest.$ac_objext; then
1.1875 - :
1.1876 -else
1.1877 - echo "$as_me: failed program was:" >&5
1.1878 -sed 's/^/| /' conftest.$ac_ext >&5
1.1879 -
1.1880 - ac_c_werror_flag=$ac_save_c_werror_flag
1.1881 - CFLAGS="-g"
1.1882 - cat >conftest.$ac_ext <<_ACEOF
1.1883 -/* confdefs.h. */
1.1884 -_ACEOF
1.1885 -cat confdefs.h >>conftest.$ac_ext
1.1886 -cat >>conftest.$ac_ext <<_ACEOF
1.1887 -/* end confdefs.h. */
1.1888 -
1.1889 -int
1.1890 -main ()
1.1891 -{
1.1892 -
1.1893 - ;
1.1894 - return 0;
1.1895 -}
1.1896 -_ACEOF
1.1897 -rm -f conftest.$ac_objext
1.1898 -if { (ac_try="$ac_compile"
1.1899 -case "(($ac_try" in
1.1900 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1901 - *) ac_try_echo=$ac_try;;
1.1902 -esac
1.1903 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.1904 - (eval "$ac_compile") 2>conftest.er1
1.1905 - ac_status=$?
1.1906 - grep -v '^ *+' conftest.er1 >conftest.err
1.1907 - rm -f conftest.er1
1.1908 - cat conftest.err >&5
1.1909 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1910 - (exit $ac_status); } && {
1.1911 - test -z "$ac_c_werror_flag" ||
1.1912 - test ! -s conftest.err
1.1913 - } && test -s conftest.$ac_objext; then
1.1914 - ac_cv_prog_cc_g=yes
1.1915 -else
1.1916 - echo "$as_me: failed program was:" >&5
1.1917 -sed 's/^/| /' conftest.$ac_ext >&5
1.1918 -
1.1919 -
1.1920 -fi
1.1921 -
1.1922 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1923 -fi
1.1924 -
1.1925 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1926 -fi
1.1927 -
1.1928 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1929 - ac_c_werror_flag=$ac_save_c_werror_flag
1.1930 -fi
1.1931 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.1932 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.1933 -if test "$ac_test_CFLAGS" = set; then
1.1934 - CFLAGS=$ac_save_CFLAGS
1.1935 -elif test $ac_cv_prog_cc_g = yes; then
1.1936 - if test "$GCC" = yes; then
1.1937 - CFLAGS="-g -O2"
1.1938 - else
1.1939 - CFLAGS="-g"
1.1940 - fi
1.1941 -else
1.1942 - if test "$GCC" = yes; then
1.1943 - CFLAGS="-O2"
1.1944 - else
1.1945 - CFLAGS=
1.1946 - fi
1.1947 -fi
1.1948 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
1.1949 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
1.1950 -if test "${ac_cv_prog_cc_c89+set}" = set; then
1.1951 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.1952 -else
1.1953 - ac_cv_prog_cc_c89=no
1.1954 -ac_save_CC=$CC
1.1955 + case $ac_cv_build_prog_cc_stdc in
1.1956 + no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
1.1957 + *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
1.1958 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
1.1959 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.1960 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1961 +else
1.1962 + ac_cv_build_prog_cc_stdc=no
1.1963 +ac_save_CC=$CC_FOR_BUILD
1.1964 +cat >conftest.$ac_ext <<_ACEOF
1.1965 +/* confdefs.h. */
1.1966 +_ACEOF
1.1967 +cat confdefs.h >>conftest.$ac_ext
1.1968 +cat >>conftest.$ac_ext <<_ACEOF
1.1969 +/* end confdefs.h. */
1.1970 +#include <stdarg.h>
1.1971 +#include <stdbool.h>
1.1972 +#include <stdlib.h>
1.1973 +#include <wchar.h>
1.1974 +#include <stdio.h>
1.1975 +
1.1976 +// Check varargs macros. These examples are taken from C99 6.10.3.5.
1.1977 +#define debug(...) fprintf (stderr, __VA_ARGS__)
1.1978 +#define showlist(...) puts (#__VA_ARGS__)
1.1979 +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1.1980 +static void
1.1981 +test_varargs_macros (void)
1.1982 +{
1.1983 + int x = 1234;
1.1984 + int y = 5678;
1.1985 + debug ("Flag");
1.1986 + debug ("X = %d\n", x);
1.1987 + showlist (The first, second, and third items.);
1.1988 + report (x>y, "x is %d but y is %d", x, y);
1.1989 +}
1.1990 +
1.1991 +// Check long long types.
1.1992 +#define BIG64 18446744073709551615ull
1.1993 +#define BIG32 4294967295ul
1.1994 +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1.1995 +#if !BIG_OK
1.1996 + your preprocessor is broken;
1.1997 +#endif
1.1998 +#if BIG_OK
1.1999 +#else
1.2000 + your preprocessor is broken;
1.2001 +#endif
1.2002 +static long long int bignum = -9223372036854775807LL;
1.2003 +static unsigned long long int ubignum = BIG64;
1.2004 +
1.2005 +struct incomplete_array
1.2006 +{
1.2007 + int datasize;
1.2008 + double data[];
1.2009 +};
1.2010 +
1.2011 +struct named_init {
1.2012 + int number;
1.2013 + const wchar_t *name;
1.2014 + double average;
1.2015 +};
1.2016 +
1.2017 +typedef const char *ccp;
1.2018 +
1.2019 +static inline int
1.2020 +test_restrict (ccp restrict text)
1.2021 +{
1.2022 + // See if C++-style comments work.
1.2023 + // Iterate through items via the restricted pointer.
1.2024 + // Also check for declarations in for loops.
1.2025 + for (unsigned int i = 0; *(text+i) != '\0'; ++i)
1.2026 + continue;
1.2027 + return 0;
1.2028 +}
1.2029 +
1.2030 +// Check varargs and va_copy.
1.2031 +static void
1.2032 +test_varargs (const char *format, ...)
1.2033 +{
1.2034 + va_list args;
1.2035 + va_start (args, format);
1.2036 + va_list args_copy;
1.2037 + va_copy (args_copy, args);
1.2038 +
1.2039 + const char *str;
1.2040 + int number;
1.2041 + float fnumber;
1.2042 +
1.2043 + while (*format)
1.2044 + {
1.2045 + switch (*format++)
1.2046 + {
1.2047 + case 's': // string
1.2048 + str = va_arg (args_copy, const char *);
1.2049 + break;
1.2050 + case 'd': // int
1.2051 + number = va_arg (args_copy, int);
1.2052 + break;
1.2053 + case 'f': // float
1.2054 + fnumber = va_arg (args_copy, double);
1.2055 + break;
1.2056 + default:
1.2057 + break;
1.2058 + }
1.2059 + }
1.2060 + va_end (args_copy);
1.2061 + va_end (args);
1.2062 +}
1.2063 +
1.2064 +int
1.2065 +main ()
1.2066 +{
1.2067 +
1.2068 + // Check bool.
1.2069 + _Bool success = false;
1.2070 +
1.2071 + // Check restrict.
1.2072 + if (test_restrict ("String literal") == 0)
1.2073 + success = true;
1.2074 + char *restrict newvar = "Another string";
1.2075 +
1.2076 + // Check varargs.
1.2077 + test_varargs ("s, d' f .", "string", 65, 34.234);
1.2078 + test_varargs_macros ();
1.2079 +
1.2080 + // Check flexible array members.
1.2081 + struct incomplete_array *ia =
1.2082 + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
1.2083 + ia->datasize = 10;
1.2084 + for (int i = 0; i < ia->datasize; ++i)
1.2085 + ia->data[i] = i * 1.234;
1.2086 +
1.2087 + // Check named initializers.
1.2088 + struct named_init ni = {
1.2089 + .number = 34,
1.2090 + .name = L"Test wide string",
1.2091 + .average = 543.34343,
1.2092 + };
1.2093 +
1.2094 + ni.number = 58;
1.2095 +
1.2096 + int dynamic_array[ni.number];
1.2097 + dynamic_array[ni.number - 1] = 543;
1.2098 +
1.2099 + // work around unused variable warnings
1.2100 + return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
1.2101 + || dynamic_array[ni.number - 1] != 543);
1.2102 +
1.2103 + ;
1.2104 + return 0;
1.2105 +}
1.2106 +_ACEOF
1.2107 +for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
1.2108 +do
1.2109 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
1.2110 + rm -f conftest.$ac_build_objext
1.2111 +if { (ac_try="$ac_build_compile"
1.2112 +case "(($ac_try" in
1.2113 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2114 + *) ac_try_echo=$ac_try;;
1.2115 +esac
1.2116 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2117 + (eval "$ac_build_compile") 2>conftest.er1
1.2118 + ac_status=$?
1.2119 + grep -v '^ *+' conftest.er1 >conftest.err
1.2120 + rm -f conftest.er1
1.2121 + cat conftest.err >&5
1.2122 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2123 + (exit $ac_status); } && {
1.2124 + test -z "$ac_c_werror_flag" ||
1.2125 + test ! -s conftest.err
1.2126 + } && test -s conftest.$ac_build_objext; then
1.2127 + ac_cv_build_prog_cc_stdc=$ac_arg
1.2128 +else
1.2129 + echo "$as_me: failed program was:" >&5
1.2130 +sed 's/^/| /' conftest.$ac_ext >&5
1.2131 +
1.2132 +
1.2133 +fi
1.2134 +
1.2135 +rm -f core conftest.err conftest.$ac_build_objext
1.2136 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
1.2137 +done
1.2138 +rm -f conftest.$ac_ext
1.2139 +CC_FOR_BUILD=$ac_save_CC
1.2140 +
1.2141 +fi
1.2142 +# AC_CACHE_VAL
1.2143 +case "x$ac_cv_build_prog_cc_stdc" in
1.2144 + x)
1.2145 + { echo "$as_me:$LINENO: result: none needed" >&5
1.2146 +echo "${ECHO_T}none needed" >&6; } ;;
1.2147 + xno)
1.2148 + { echo "$as_me:$LINENO: result: unsupported" >&5
1.2149 +echo "${ECHO_T}unsupported" >&6; } ;;
1.2150 + *)
1.2151 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
1.2152 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.2153 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.2154 +esac
1.2155 +if test "x$ac_cv_build_prog_cc_stdc" != xno; then
1.2156 + ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
1.2157 +else
1.2158 + { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
1.2159 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
1.2160 +if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.2161 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2162 +else
1.2163 + ac_cv_build_prog_cc_stdc=no
1.2164 +ac_save_CC=$CC_FOR_BUILD
1.2165 cat >conftest.$ac_ext <<_ACEOF
1.2166 /* confdefs.h. */
1.2167 _ACEOF
1.2168 @@ -6359,41 +6577,41 @@
1.2169 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
1.2170 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.2171 do
1.2172 - CC="$ac_save_CC $ac_arg"
1.2173 - rm -f conftest.$ac_objext
1.2174 -if { (ac_try="$ac_compile"
1.2175 -case "(($ac_try" in
1.2176 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2177 - *) ac_try_echo=$ac_try;;
1.2178 -esac
1.2179 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2180 - (eval "$ac_compile") 2>conftest.er1
1.2181 - ac_status=$?
1.2182 - grep -v '^ *+' conftest.er1 >conftest.err
1.2183 - rm -f conftest.er1
1.2184 - cat conftest.err >&5
1.2185 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2186 - (exit $ac_status); } && {
1.2187 - test -z "$ac_c_werror_flag" ||
1.2188 - test ! -s conftest.err
1.2189 - } && test -s conftest.$ac_objext; then
1.2190 - ac_cv_prog_cc_c89=$ac_arg
1.2191 -else
1.2192 - echo "$as_me: failed program was:" >&5
1.2193 -sed 's/^/| /' conftest.$ac_ext >&5
1.2194 -
1.2195 -
1.2196 -fi
1.2197 -
1.2198 -rm -f core conftest.err conftest.$ac_objext
1.2199 - test "x$ac_cv_prog_cc_c89" != "xno" && break
1.2200 + CC_FOR_BUILD="$ac_save_CC $ac_arg"
1.2201 + rm -f conftest.$ac_build_objext
1.2202 +if { (ac_try="$ac_build_compile"
1.2203 +case "(($ac_try" in
1.2204 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2205 + *) ac_try_echo=$ac_try;;
1.2206 +esac
1.2207 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2208 + (eval "$ac_build_compile") 2>conftest.er1
1.2209 + ac_status=$?
1.2210 + grep -v '^ *+' conftest.er1 >conftest.err
1.2211 + rm -f conftest.er1
1.2212 + cat conftest.err >&5
1.2213 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2214 + (exit $ac_status); } && {
1.2215 + test -z "$ac_c_werror_flag" ||
1.2216 + test ! -s conftest.err
1.2217 + } && test -s conftest.$ac_build_objext; then
1.2218 + ac_cv_build_prog_cc_stdc=$ac_arg
1.2219 +else
1.2220 + echo "$as_me: failed program was:" >&5
1.2221 +sed 's/^/| /' conftest.$ac_ext >&5
1.2222 +
1.2223 +
1.2224 +fi
1.2225 +
1.2226 +rm -f core conftest.err conftest.$ac_build_objext
1.2227 + test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
1.2228 done
1.2229 rm -f conftest.$ac_ext
1.2230 -CC=$ac_save_CC
1.2231 +CC_FOR_BUILD=$ac_save_CC
1.2232
1.2233 fi
1.2234 # AC_CACHE_VAL
1.2235 -case "x$ac_cv_prog_cc_c89" in
1.2236 +case "x$ac_cv_build_prog_cc_stdc" in
1.2237 x)
1.2238 { echo "$as_me:$LINENO: result: none needed" >&5
1.2239 echo "${ECHO_T}none needed" >&6; } ;;
1.2240 @@ -6401,129 +6619,272 @@
1.2241 { echo "$as_me:$LINENO: result: unsupported" >&5
1.2242 echo "${ECHO_T}unsupported" >&6; } ;;
1.2243 *)
1.2244 - CC="$CC $ac_cv_prog_cc_c89"
1.2245 - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
1.2246 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.2247 -esac
1.2248 -
1.2249 -
1.2250 -ac_ext=c
1.2251 -ac_cpp='$CPP $CPPFLAGS'
1.2252 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.2253 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.2254 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.2255 -
1.2256 -depcc="$CC" am_compiler_list=
1.2257 -
1.2258 -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.2259 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.2260 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.2261 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.2262 -else
1.2263 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.2264 - # We make a subdir and do the tests there. Otherwise we can end up
1.2265 - # making bogus files that we don't know about and never remove. For
1.2266 - # instance it was reported that on HP-UX the gcc test will end up
1.2267 - # making a dummy file named `D' -- because `-MD' means `put the output
1.2268 - # in D'.
1.2269 - mkdir conftest.dir
1.2270 - # Copy depcomp to subdir because otherwise we won't find it if we're
1.2271 - # using a relative directory.
1.2272 - cp "$am_depcomp" conftest.dir
1.2273 - cd conftest.dir
1.2274 - # We will build objects and dependencies in a subdirectory because
1.2275 - # it helps to detect inapplicable dependency modes. For instance
1.2276 - # both Tru64's cc and ICC support -MD to output dependencies as a
1.2277 - # side effect of compilation, but ICC will put the dependencies in
1.2278 - # the current directory while Tru64 will put them in the object
1.2279 - # directory.
1.2280 - mkdir sub
1.2281 -
1.2282 - am_cv_CC_dependencies_compiler_type=none
1.2283 - if test "$am_compiler_list" = ""; then
1.2284 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.2285 - fi
1.2286 - for depmode in $am_compiler_list; do
1.2287 - # Setup a source with many dependencies, because some compilers
1.2288 - # like to wrap large dependency lists on column 80 (with \), and
1.2289 - # we should not choose a depcomp mode which is confused by this.
1.2290 - #
1.2291 - # We need to recreate these files for each test, as the compiler may
1.2292 - # overwrite some of them when testing with obscure command lines.
1.2293 - # This happens at least with the AIX C compiler.
1.2294 - : > sub/conftest.c
1.2295 - for i in 1 2 3 4 5 6; do
1.2296 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.2297 - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.2298 - # Solaris 8's {/usr,}/bin/sh.
1.2299 - touch sub/conftst$i.h
1.2300 + CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
1.2301 + { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.2302 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.2303 +esac
1.2304 +if test "x$ac_cv_build_prog_cc_stdc" != xno; then
1.2305 + ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
1.2306 +else
1.2307 + ac_cv_build_prog_cc_stdc=no
1.2308 +fi
1.2309 +
1.2310 +
1.2311 +fi
1.2312 +
1.2313 + ;;
1.2314 +esac
1.2315 + { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
1.2316 +echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
1.2317 + if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
1.2318 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2319 +fi
1.2320 +
1.2321 + case $ac_cv_build_prog_cc_stdc in
1.2322 + no) { echo "$as_me:$LINENO: result: unsupported" >&5
1.2323 +echo "${ECHO_T}unsupported" >&6; } ;;
1.2324 + '') { echo "$as_me:$LINENO: result: none needed" >&5
1.2325 +echo "${ECHO_T}none needed" >&6; } ;;
1.2326 + *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
1.2327 +echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
1.2328 +esac
1.2329 +
1.2330 +
1.2331 +ac_ext=c
1.2332 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.2333 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.2334 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.2335 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.2336 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.2337 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.2338 +# On Suns, sometimes $CPP names a directory.
1.2339 +if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
1.2340 + CPP_FOR_BUILD=
1.2341 +fi
1.2342 +if test -z "$CPP_FOR_BUILD"; then
1.2343 + if test "${ac_cv_build_prog_CPP+set}" = set; then
1.2344 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2345 +else
1.2346 + # Double quotes because CPP needs to be expanded
1.2347 + for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
1.2348 + do
1.2349 + ac_preproc_ok=false
1.2350 +for ac_c_preproc_warn_flag in '' yes
1.2351 +do
1.2352 + # Use a header file that comes with gcc, so configuring glibc
1.2353 + # with a fresh cross-compiler works.
1.2354 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.2355 + # <limits.h> exists even on freestanding compilers.
1.2356 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.2357 + # not just through cpp. "Syntax error" is here to catch this case.
1.2358 + cat >conftest.$ac_ext <<_ACEOF
1.2359 +/* confdefs.h. */
1.2360 +_ACEOF
1.2361 +cat confdefs.h >>conftest.$ac_ext
1.2362 +cat >>conftest.$ac_ext <<_ACEOF
1.2363 +/* end confdefs.h. */
1.2364 +#ifdef __STDC__
1.2365 +# include <limits.h>
1.2366 +#else
1.2367 +# include <assert.h>
1.2368 +#endif
1.2369 + Syntax error
1.2370 +_ACEOF
1.2371 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.2372 +case "(($ac_try" in
1.2373 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2374 + *) ac_try_echo=$ac_try;;
1.2375 +esac
1.2376 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2377 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.2378 + ac_status=$?
1.2379 + grep -v '^ *+' conftest.er1 >conftest.err
1.2380 + rm -f conftest.er1
1.2381 + cat conftest.err >&5
1.2382 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2383 + (exit $ac_status); } >/dev/null && {
1.2384 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.2385 + test ! -s conftest.err
1.2386 + }; then
1.2387 + :
1.2388 +else
1.2389 + echo "$as_me: failed program was:" >&5
1.2390 +sed 's/^/| /' conftest.$ac_ext >&5
1.2391 +
1.2392 + # Broken: fails on valid input.
1.2393 +continue
1.2394 +fi
1.2395 +
1.2396 +rm -f conftest.err conftest.$ac_ext
1.2397 +
1.2398 + # OK, works on sane cases. Now check whether nonexistent headers
1.2399 + # can be detected and how.
1.2400 + cat >conftest.$ac_ext <<_ACEOF
1.2401 +/* confdefs.h. */
1.2402 +_ACEOF
1.2403 +cat confdefs.h >>conftest.$ac_ext
1.2404 +cat >>conftest.$ac_ext <<_ACEOF
1.2405 +/* end confdefs.h. */
1.2406 +#include <ac_nonexistent.h>
1.2407 +_ACEOF
1.2408 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.2409 +case "(($ac_try" in
1.2410 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2411 + *) ac_try_echo=$ac_try;;
1.2412 +esac
1.2413 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2414 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.2415 + ac_status=$?
1.2416 + grep -v '^ *+' conftest.er1 >conftest.err
1.2417 + rm -f conftest.er1
1.2418 + cat conftest.err >&5
1.2419 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2420 + (exit $ac_status); } >/dev/null && {
1.2421 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.2422 + test ! -s conftest.err
1.2423 + }; then
1.2424 + # Broken: success on invalid input.
1.2425 +continue
1.2426 +else
1.2427 + echo "$as_me: failed program was:" >&5
1.2428 +sed 's/^/| /' conftest.$ac_ext >&5
1.2429 +
1.2430 + # Passes both tests.
1.2431 +ac_preproc_ok=:
1.2432 +break
1.2433 +fi
1.2434 +
1.2435 +rm -f conftest.err conftest.$ac_ext
1.2436 +
1.2437 +done
1.2438 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.2439 +rm -f conftest.err conftest.$ac_ext
1.2440 +if $ac_preproc_ok; then
1.2441 + break
1.2442 +fi
1.2443 +
1.2444 done
1.2445 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.2446 -
1.2447 - case $depmode in
1.2448 - nosideeffect)
1.2449 - # after this tag, mechanisms are not by side-effect, so they'll
1.2450 - # only be used when explicitly requested
1.2451 - if test "x$enable_dependency_tracking" = xyes; then
1.2452 - continue
1.2453 - else
1.2454 - break
1.2455 - fi
1.2456 - ;;
1.2457 - none) break ;;
1.2458 - esac
1.2459 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.2460 - # mode. It turns out that the SunPro C++ compiler does not properly
1.2461 - # handle `-M -o', and we need to detect this.
1.2462 - if depmode=$depmode \
1.2463 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.2464 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.2465 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.2466 - >/dev/null 2>conftest.err &&
1.2467 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.2468 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.2469 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.2470 - # icc doesn't choke on unknown options, it will just issue warnings
1.2471 - # or remarks (even with -Werror). So we grep stderr for any message
1.2472 - # that says an option was ignored or not supported.
1.2473 - # When given -MP, icc 7.0 and 7.1 complain thusly:
1.2474 - # icc: Command line warning: ignoring option '-M'; no argument required
1.2475 - # The diagnosis changed in icc 8.0:
1.2476 - # icc: Command line remark: option '-MP' not supported
1.2477 - if (grep 'ignoring option' conftest.err ||
1.2478 - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.2479 - am_cv_CC_dependencies_compiler_type=$depmode
1.2480 - break
1.2481 - fi
1.2482 - fi
1.2483 - done
1.2484 -
1.2485 - cd ..
1.2486 - rm -rf conftest.dir
1.2487 -else
1.2488 - am_cv_CC_dependencies_compiler_type=none
1.2489 -fi
1.2490 -
1.2491 -fi
1.2492 -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.2493 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.2494 -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.2495 -
1.2496 -
1.2497 -
1.2498 -if
1.2499 - test "x$enable_dependency_tracking" != xno \
1.2500 - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.2501 - am__fastdepCC_TRUE=
1.2502 - am__fastdepCC_FALSE='#'
1.2503 -else
1.2504 - am__fastdepCC_TRUE='#'
1.2505 - am__fastdepCC_FALSE=
1.2506 -fi
1.2507 -
1.2508 -
1.2509 -
1.2510 -am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
1.2511 + ac_cv_build_prog_CPP=$CPP_FOR_BUILD
1.2512 +
1.2513 +fi
1.2514 + CPP_FOR_BUILD=$ac_cv_build_prog_CPP
1.2515 +else
1.2516 + ac_cv_build_prog_CPP=$CPP_FOR_BUILD
1.2517 +fi
1.2518 +{ echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
1.2519 +echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
1.2520 +ac_preproc_ok=false
1.2521 +for ac_c_preproc_warn_flag in '' yes
1.2522 +do
1.2523 + # Use a header file that comes with gcc, so configuring glibc
1.2524 + # with a fresh cross-compiler works.
1.2525 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.2526 + # <limits.h> exists even on freestanding compilers.
1.2527 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.2528 + # not just through cpp. "Syntax error" is here to catch this case.
1.2529 + cat >conftest.$ac_ext <<_ACEOF
1.2530 +/* confdefs.h. */
1.2531 +_ACEOF
1.2532 +cat confdefs.h >>conftest.$ac_ext
1.2533 +cat >>conftest.$ac_ext <<_ACEOF
1.2534 +/* end confdefs.h. */
1.2535 +#ifdef __STDC__
1.2536 +# include <limits.h>
1.2537 +#else
1.2538 +# include <assert.h>
1.2539 +#endif
1.2540 + Syntax error
1.2541 +_ACEOF
1.2542 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.2543 +case "(($ac_try" in
1.2544 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2545 + *) ac_try_echo=$ac_try;;
1.2546 +esac
1.2547 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2548 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.2549 + ac_status=$?
1.2550 + grep -v '^ *+' conftest.er1 >conftest.err
1.2551 + rm -f conftest.er1
1.2552 + cat conftest.err >&5
1.2553 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2554 + (exit $ac_status); } >/dev/null && {
1.2555 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.2556 + test ! -s conftest.err
1.2557 + }; then
1.2558 + :
1.2559 +else
1.2560 + echo "$as_me: failed program was:" >&5
1.2561 +sed 's/^/| /' conftest.$ac_ext >&5
1.2562 +
1.2563 + # Broken: fails on valid input.
1.2564 +continue
1.2565 +fi
1.2566 +
1.2567 +rm -f conftest.err conftest.$ac_ext
1.2568 +
1.2569 + # OK, works on sane cases. Now check whether nonexistent headers
1.2570 + # can be detected and how.
1.2571 + cat >conftest.$ac_ext <<_ACEOF
1.2572 +/* confdefs.h. */
1.2573 +_ACEOF
1.2574 +cat confdefs.h >>conftest.$ac_ext
1.2575 +cat >>conftest.$ac_ext <<_ACEOF
1.2576 +/* end confdefs.h. */
1.2577 +#include <ac_nonexistent.h>
1.2578 +_ACEOF
1.2579 +if { (ac_try="$ac_build_cpp conftest.$ac_ext"
1.2580 +case "(($ac_try" in
1.2581 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2582 + *) ac_try_echo=$ac_try;;
1.2583 +esac
1.2584 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2585 + (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
1.2586 + ac_status=$?
1.2587 + grep -v '^ *+' conftest.er1 >conftest.err
1.2588 + rm -f conftest.er1
1.2589 + cat conftest.err >&5
1.2590 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2591 + (exit $ac_status); } >/dev/null && {
1.2592 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.2593 + test ! -s conftest.err
1.2594 + }; then
1.2595 + # Broken: success on invalid input.
1.2596 +continue
1.2597 +else
1.2598 + echo "$as_me: failed program was:" >&5
1.2599 +sed 's/^/| /' conftest.$ac_ext >&5
1.2600 +
1.2601 + # Passes both tests.
1.2602 +ac_preproc_ok=:
1.2603 +break
1.2604 +fi
1.2605 +
1.2606 +rm -f conftest.err conftest.$ac_ext
1.2607 +
1.2608 +done
1.2609 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.2610 +rm -f conftest.err conftest.$ac_ext
1.2611 +if $ac_preproc_ok; then
1.2612 + :
1.2613 +else
1.2614 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
1.2615 +See \`config.log' for more details." >&5
1.2616 +echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
1.2617 +See \`config.log' for more details." >&2;}
1.2618 + { (exit 1); exit 1; }; }
1.2619 +fi
1.2620 +
1.2621 +ac_ext=c
1.2622 +ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
1.2623 +ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
1.2624 +ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.2625 +ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
1.2626 +
1.2627 +
1.2628 +
1.2629 +
1.2630 +BUILD_EXEEXT=$ac_build_exeext
1.2631 +BUILD_OBJEXT=$ac_build_objext
1.2632
1.2633 ac_ext=m
1.2634 ac_cpp='$OBJCPP $CPPFLAGS'
1.2635 @@ -7959,89 +8320,6 @@
1.2636
1.2637 fi
1.2638
1.2639 -# Make sure we can run config.sub.
1.2640 -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.2641 - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1.2642 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.2643 - { (exit 1); exit 1; }; }
1.2644 -
1.2645 -{ echo "$as_me:$LINENO: checking build system type" >&5
1.2646 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.2647 -if test "${ac_cv_build+set}" = set; then
1.2648 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.2649 -else
1.2650 - ac_build_alias=$build_alias
1.2651 -test "x$ac_build_alias" = x &&
1.2652 - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1.2653 -test "x$ac_build_alias" = x &&
1.2654 - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1.2655 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1.2656 - { (exit 1); exit 1; }; }
1.2657 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.2658 - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1.2659 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.2660 - { (exit 1); exit 1; }; }
1.2661 -
1.2662 -fi
1.2663 -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1.2664 -echo "${ECHO_T}$ac_cv_build" >&6; }
1.2665 -case $ac_cv_build in
1.2666 -*-*-*) ;;
1.2667 -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1.2668 -echo "$as_me: error: invalid value of canonical build" >&2;}
1.2669 - { (exit 1); exit 1; }; };;
1.2670 -esac
1.2671 -build=$ac_cv_build
1.2672 -ac_save_IFS=$IFS; IFS='-'
1.2673 -set x $ac_cv_build
1.2674 -shift
1.2675 -build_cpu=$1
1.2676 -build_vendor=$2
1.2677 -shift; shift
1.2678 -# Remember, the first character of IFS is used to create $*,
1.2679 -# except with old shells:
1.2680 -build_os=$*
1.2681 -IFS=$ac_save_IFS
1.2682 -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.2683 -
1.2684 -
1.2685 -{ echo "$as_me:$LINENO: checking host system type" >&5
1.2686 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.2687 -if test "${ac_cv_host+set}" = set; then
1.2688 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.2689 -else
1.2690 - if test "x$host_alias" = x; then
1.2691 - ac_cv_host=$ac_cv_build
1.2692 -else
1.2693 - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.2694 - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1.2695 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.2696 - { (exit 1); exit 1; }; }
1.2697 -fi
1.2698 -
1.2699 -fi
1.2700 -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1.2701 -echo "${ECHO_T}$ac_cv_host" >&6; }
1.2702 -case $ac_cv_host in
1.2703 -*-*-*) ;;
1.2704 -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1.2705 -echo "$as_me: error: invalid value of canonical host" >&2;}
1.2706 - { (exit 1); exit 1; }; };;
1.2707 -esac
1.2708 -host=$ac_cv_host
1.2709 -ac_save_IFS=$IFS; IFS='-'
1.2710 -set x $ac_cv_host
1.2711 -shift
1.2712 -host_cpu=$1
1.2713 -host_vendor=$2
1.2714 -shift; shift
1.2715 -# Remember, the first character of IFS is used to create $*,
1.2716 -# except with old shells:
1.2717 -host_os=$*
1.2718 -IFS=$ac_save_IFS
1.2719 -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.2720 -
1.2721 -
1.2722
1.2723
1.2724 depcc="$OBJC" am_compiler_list='gcc3 gcc'
1.2725 @@ -8991,6 +9269,7 @@
1.2726
1.2727 fi
1.2728
1.2729 +CFLAGS_FOR_BUILD="-O2 -std=c99"
1.2730 CFLAGS="-g -fexceptions"
1.2731 OBJCFLAGS="-g -fexceptions"
1.2732
1.2733 @@ -10575,6 +10854,116 @@
1.2734
1.2735
1.2736
1.2737 +pkg_failed=no
1.2738 +{ echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
1.2739 +echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
1.2740 +
1.2741 +if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
1.2742 + pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
1.2743 + elif test -n "$PKG_CONFIG"; then
1.2744 + if test -n "$PKG_CONFIG" && \
1.2745 + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
1.2746 + ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
1.2747 + ac_status=$?
1.2748 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2749 + (exit $ac_status); }; then
1.2750 + pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
1.2751 +else
1.2752 + pkg_failed=yes
1.2753 +fi
1.2754 + else
1.2755 + pkg_failed=untried
1.2756 +fi
1.2757 +if test -n "$GLIB_FOR_BUILD_LIBS"; then
1.2758 + pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
1.2759 + elif test -n "$PKG_CONFIG"; then
1.2760 + if test -n "$PKG_CONFIG" && \
1.2761 + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
1.2762 + ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
1.2763 + ac_status=$?
1.2764 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2765 + (exit $ac_status); }; then
1.2766 + pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
1.2767 +else
1.2768 + pkg_failed=yes
1.2769 +fi
1.2770 + else
1.2771 + pkg_failed=untried
1.2772 +fi
1.2773 +
1.2774 +
1.2775 +
1.2776 +if test $pkg_failed = yes; then
1.2777 +
1.2778 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1.2779 + _pkg_short_errors_supported=yes
1.2780 +else
1.2781 + _pkg_short_errors_supported=no
1.2782 +fi
1.2783 + if test $_pkg_short_errors_supported = yes; then
1.2784 + GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
1.2785 + else
1.2786 + GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
1.2787 + fi
1.2788 + # Put the nasty error message in config.log where it belongs
1.2789 + echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
1.2790 +
1.2791 + { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
1.2792 +
1.2793 +$GLIB_FOR_BUILD_PKG_ERRORS
1.2794 +
1.2795 +Consider adjusting the PKG_CONFIG_PATH environment variable if you
1.2796 +installed software in a non-standard prefix.
1.2797 +
1.2798 +Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
1.2799 +and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
1.2800 +See the pkg-config man page for more details.
1.2801 +" >&5
1.2802 +echo "$as_me: error: Package requirements (glib-2.0) were not met:
1.2803 +
1.2804 +$GLIB_FOR_BUILD_PKG_ERRORS
1.2805 +
1.2806 +Consider adjusting the PKG_CONFIG_PATH environment variable if you
1.2807 +installed software in a non-standard prefix.
1.2808 +
1.2809 +Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
1.2810 +and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
1.2811 +See the pkg-config man page for more details.
1.2812 +" >&2;}
1.2813 + { (exit 1); exit 1; }; }
1.2814 +elif test $pkg_failed = untried; then
1.2815 + { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
1.2816 +is in your PATH or set the PKG_CONFIG environment variable to the full
1.2817 +path to pkg-config.
1.2818 +
1.2819 +Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
1.2820 +and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
1.2821 +See the pkg-config man page for more details.
1.2822 +
1.2823 +To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1.2824 +See \`config.log' for more details." >&5
1.2825 +echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
1.2826 +is in your PATH or set the PKG_CONFIG environment variable to the full
1.2827 +path to pkg-config.
1.2828 +
1.2829 +Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
1.2830 +and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
1.2831 +See the pkg-config man page for more details.
1.2832 +
1.2833 +To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1.2834 +See \`config.log' for more details." >&2;}
1.2835 + { (exit 1); exit 1; }; }
1.2836 +else
1.2837 + GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
1.2838 + GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
1.2839 + { echo "$as_me:$LINENO: result: yes" >&5
1.2840 +echo "${ECHO_T}yes" >&6; }
1.2841 + :
1.2842 +fi
1.2843 +
1.2844 +
1.2845 +
1.2846 +
1.2847 if test "$HAVE_GTK" = 'yes'; then
1.2848 GUI_GTK_TRUE=
1.2849 GUI_GTK_FALSE='#'
1.2850 @@ -11703,6 +12092,274 @@
1.2851
1.2852 fi
1.2853
1.2854 +{ echo "$as_me:$LINENO: checking for glClearDepthf" >&5
1.2855 +echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
1.2856 +if test "${ac_cv_func_glClearDepthf+set}" = set; then
1.2857 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2858 +else
1.2859 + cat >conftest.$ac_ext <<_ACEOF
1.2860 +/* confdefs.h. */
1.2861 +_ACEOF
1.2862 +cat confdefs.h >>conftest.$ac_ext
1.2863 +cat >>conftest.$ac_ext <<_ACEOF
1.2864 +/* end confdefs.h. */
1.2865 +/* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
1.2866 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.2867 +#define glClearDepthf innocuous_glClearDepthf
1.2868 +
1.2869 +/* System header to define __stub macros and hopefully few prototypes,
1.2870 + which can conflict with char glClearDepthf (); below.
1.2871 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.2872 + <limits.h> exists even on freestanding compilers. */
1.2873 +
1.2874 +#ifdef __STDC__
1.2875 +# include <limits.h>
1.2876 +#else
1.2877 +# include <assert.h>
1.2878 +#endif
1.2879 +
1.2880 +#undef glClearDepthf
1.2881 +
1.2882 +/* Override any GCC internal prototype to avoid an error.
1.2883 + Use char because int might match the return type of a GCC
1.2884 + builtin and then its argument prototype would still apply. */
1.2885 +#ifdef __cplusplus
1.2886 +extern "C"
1.2887 +#endif
1.2888 +char glClearDepthf ();
1.2889 +/* The GNU C library defines this for functions which it implements
1.2890 + to always fail with ENOSYS. Some functions are actually named
1.2891 + something starting with __ and the normal name is an alias. */
1.2892 +#if defined __stub_glClearDepthf || defined __stub___glClearDepthf
1.2893 +choke me
1.2894 +#endif
1.2895 +
1.2896 +int
1.2897 +main ()
1.2898 +{
1.2899 +return glClearDepthf ();
1.2900 + ;
1.2901 + return 0;
1.2902 +}
1.2903 +_ACEOF
1.2904 +rm -f conftest.$ac_objext conftest$ac_exeext
1.2905 +if { (ac_try="$ac_link"
1.2906 +case "(($ac_try" in
1.2907 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2908 + *) ac_try_echo=$ac_try;;
1.2909 +esac
1.2910 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.2911 + (eval "$ac_link") 2>conftest.er1
1.2912 + ac_status=$?
1.2913 + grep -v '^ *+' conftest.er1 >conftest.err
1.2914 + rm -f conftest.er1
1.2915 + cat conftest.err >&5
1.2916 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2917 + (exit $ac_status); } && {
1.2918 + test -z "$ac_c_werror_flag" ||
1.2919 + test ! -s conftest.err
1.2920 + } && test -s conftest$ac_exeext &&
1.2921 + $as_test_x conftest$ac_exeext; then
1.2922 + ac_cv_func_glClearDepthf=yes
1.2923 +else
1.2924 + echo "$as_me: failed program was:" >&5
1.2925 +sed 's/^/| /' conftest.$ac_ext >&5
1.2926 +
1.2927 + ac_cv_func_glClearDepthf=no
1.2928 +fi
1.2929 +
1.2930 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.2931 + conftest$ac_exeext conftest.$ac_ext
1.2932 +fi
1.2933 +{ echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
1.2934 +echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
1.2935 +if test $ac_cv_func_glClearDepthf = yes; then
1.2936 +
1.2937 +cat >>confdefs.h <<\_ACEOF
1.2938 +#define HAVE_OPENGL_CLEAR_DEPTHF 1
1.2939 +_ACEOF
1.2940 +
1.2941 +fi
1.2942 +
1.2943 +{ echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
1.2944 +echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
1.2945 +if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
1.2946 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2947 +else
1.2948 + cat >conftest.$ac_ext <<_ACEOF
1.2949 +/* confdefs.h. */
1.2950 +_ACEOF
1.2951 +cat confdefs.h >>conftest.$ac_ext
1.2952 +cat >>conftest.$ac_ext <<_ACEOF
1.2953 +/* end confdefs.h. */
1.2954 +/* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
1.2955 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.2956 +#define glAreTexturesResident innocuous_glAreTexturesResident
1.2957 +
1.2958 +/* System header to define __stub macros and hopefully few prototypes,
1.2959 + which can conflict with char glAreTexturesResident (); below.
1.2960 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.2961 + <limits.h> exists even on freestanding compilers. */
1.2962 +
1.2963 +#ifdef __STDC__
1.2964 +# include <limits.h>
1.2965 +#else
1.2966 +# include <assert.h>
1.2967 +#endif
1.2968 +
1.2969 +#undef glAreTexturesResident
1.2970 +
1.2971 +/* Override any GCC internal prototype to avoid an error.
1.2972 + Use char because int might match the return type of a GCC
1.2973 + builtin and then its argument prototype would still apply. */
1.2974 +#ifdef __cplusplus
1.2975 +extern "C"
1.2976 +#endif
1.2977 +char glAreTexturesResident ();
1.2978 +/* The GNU C library defines this for functions which it implements
1.2979 + to always fail with ENOSYS. Some functions are actually named
1.2980 + something starting with __ and the normal name is an alias. */
1.2981 +#if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
1.2982 +choke me
1.2983 +#endif
1.2984 +
1.2985 +int
1.2986 +main ()
1.2987 +{
1.2988 +return glAreTexturesResident ();
1.2989 + ;
1.2990 + return 0;
1.2991 +}
1.2992 +_ACEOF
1.2993 +rm -f conftest.$ac_objext conftest$ac_exeext
1.2994 +if { (ac_try="$ac_link"
1.2995 +case "(($ac_try" in
1.2996 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.2997 + *) ac_try_echo=$ac_try;;
1.2998 +esac
1.2999 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3000 + (eval "$ac_link") 2>conftest.er1
1.3001 + ac_status=$?
1.3002 + grep -v '^ *+' conftest.er1 >conftest.err
1.3003 + rm -f conftest.er1
1.3004 + cat conftest.err >&5
1.3005 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3006 + (exit $ac_status); } && {
1.3007 + test -z "$ac_c_werror_flag" ||
1.3008 + test ! -s conftest.err
1.3009 + } && test -s conftest$ac_exeext &&
1.3010 + $as_test_x conftest$ac_exeext; then
1.3011 + ac_cv_func_glAreTexturesResident=yes
1.3012 +else
1.3013 + echo "$as_me: failed program was:" >&5
1.3014 +sed 's/^/| /' conftest.$ac_ext >&5
1.3015 +
1.3016 + ac_cv_func_glAreTexturesResident=no
1.3017 +fi
1.3018 +
1.3019 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.3020 + conftest$ac_exeext conftest.$ac_ext
1.3021 +fi
1.3022 +{ echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
1.3023 +echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
1.3024 +if test $ac_cv_func_glAreTexturesResident = yes; then
1.3025 +
1.3026 +cat >>confdefs.h <<\_ACEOF
1.3027 +#define HAVE_OPENGL_TEX_RESIDENT 1
1.3028 +_ACEOF
1.3029 +
1.3030 +fi
1.3031 +
1.3032 +{ echo "$as_me:$LINENO: checking for glTexEnvi" >&5
1.3033 +echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
1.3034 +if test "${ac_cv_func_glTexEnvi+set}" = set; then
1.3035 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3036 +else
1.3037 + cat >conftest.$ac_ext <<_ACEOF
1.3038 +/* confdefs.h. */
1.3039 +_ACEOF
1.3040 +cat confdefs.h >>conftest.$ac_ext
1.3041 +cat >>conftest.$ac_ext <<_ACEOF
1.3042 +/* end confdefs.h. */
1.3043 +/* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
1.3044 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.3045 +#define glTexEnvi innocuous_glTexEnvi
1.3046 +
1.3047 +/* System header to define __stub macros and hopefully few prototypes,
1.3048 + which can conflict with char glTexEnvi (); below.
1.3049 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.3050 + <limits.h> exists even on freestanding compilers. */
1.3051 +
1.3052 +#ifdef __STDC__
1.3053 +# include <limits.h>
1.3054 +#else
1.3055 +# include <assert.h>
1.3056 +#endif
1.3057 +
1.3058 +#undef glTexEnvi
1.3059 +
1.3060 +/* Override any GCC internal prototype to avoid an error.
1.3061 + Use char because int might match the return type of a GCC
1.3062 + builtin and then its argument prototype would still apply. */
1.3063 +#ifdef __cplusplus
1.3064 +extern "C"
1.3065 +#endif
1.3066 +char glTexEnvi ();
1.3067 +/* The GNU C library defines this for functions which it implements
1.3068 + to always fail with ENOSYS. Some functions are actually named
1.3069 + something starting with __ and the normal name is an alias. */
1.3070 +#if defined __stub_glTexEnvi || defined __stub___glTexEnvi
1.3071 +choke me
1.3072 +#endif
1.3073 +
1.3074 +int
1.3075 +main ()
1.3076 +{
1.3077 +return glTexEnvi ();
1.3078 + ;
1.3079 + return 0;
1.3080 +}
1.3081 +_ACEOF
1.3082 +rm -f conftest.$ac_objext conftest$ac_exeext
1.3083 +if { (ac_try="$ac_link"
1.3084 +case "(($ac_try" in
1.3085 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.3086 + *) ac_try_echo=$ac_try;;
1.3087 +esac
1.3088 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.3089 + (eval "$ac_link") 2>conftest.er1
1.3090 + ac_status=$?
1.3091 + grep -v '^ *+' conftest.er1 >conftest.err
1.3092 + rm -f conftest.er1
1.3093 + cat conftest.err >&5
1.3094 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3095 + (exit $ac_status); } && {
1.3096 + test -z "$ac_c_werror_flag" ||
1.3097 + test ! -s conftest.err
1.3098 + } && test -s conftest$ac_exeext &&
1.3099 + $as_test_x conftest$ac_exeext; then
1.3100 + ac_cv_func_glTexEnvi=yes
1.3101 +else
1.3102 + echo "$as_me: failed program was:" >&5
1.3103 +sed 's/^/| /' conftest.$ac_ext >&5
1.3104 +
1.3105 + ac_cv_func_glTexEnvi=no
1.3106 +fi
1.3107 +
1.3108 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.3109 + conftest$ac_exeext conftest.$ac_ext
1.3110 +fi
1.3111 +{ echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
1.3112 +echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
1.3113 +if test $ac_cv_func_glTexEnvi = yes; then
1.3114 +
1.3115 +cat >>confdefs.h <<\_ACEOF
1.3116 +#define HAVE_OPENGL_FIXEDFUNC 1
1.3117 +_ACEOF
1.3118 +
1.3119 +fi
1.3120 +
1.3121 +
1.3122
1.3123
1.3124
1.3125 @@ -14741,7 +15398,7 @@
1.3126 < $srcdir/po/POTFILES.in > po/POTFILES
1.3127
1.3128
1.3129 -ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile Info.plist"
1.3130 +ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
1.3131
1.3132 cat >confcache <<\_ACEOF
1.3133 # This file is a shell script that caches the results of configure
1.3134 @@ -14867,6 +15524,13 @@
1.3135 Usually this means the macro was only invoked conditionally." >&2;}
1.3136 { (exit 1); exit 1; }; }
1.3137 fi
1.3138 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.3139 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.3140 +Usually this means the macro was only invoked conditionally." >&5
1.3141 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.3142 +Usually this means the macro was only invoked conditionally." >&2;}
1.3143 + { (exit 1); exit 1; }; }
1.3144 +fi
1.3145 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
1.3146 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
1.3147 Usually this means the macro was only invoked conditionally." >&5
1.3148 @@ -14874,13 +15538,6 @@
1.3149 Usually this means the macro was only invoked conditionally." >&2;}
1.3150 { (exit 1); exit 1; }; }
1.3151 fi
1.3152 -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.3153 - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.3154 -Usually this means the macro was only invoked conditionally." >&5
1.3155 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.3156 -Usually this means the macro was only invoked conditionally." >&2;}
1.3157 - { (exit 1); exit 1; }; }
1.3158 -fi
1.3159 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
1.3160 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
1.3161 Usually this means the macro was only invoked conditionally." >&5
1.3162 @@ -15493,6 +16150,7 @@
1.3163 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
1.3164 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1.3165 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
1.3166 + "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
1.3167 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
1.3168 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
1.3169 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
1.3170 @@ -15619,6 +16277,14 @@
1.3171 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
1.3172 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
1.3173 MAINT!$MAINT$ac_delim
1.3174 +build!$build$ac_delim
1.3175 +build_cpu!$build_cpu$ac_delim
1.3176 +build_vendor!$build_vendor$ac_delim
1.3177 +build_os!$build_os$ac_delim
1.3178 +host!$host$ac_delim
1.3179 +host_cpu!$host_cpu$ac_delim
1.3180 +host_vendor!$host_vendor$ac_delim
1.3181 +host_os!$host_os$ac_delim
1.3182 CC!$CC$ac_delim
1.3183 CFLAGS!$CFLAGS$ac_delim
1.3184 LDFLAGS!$LDFLAGS$ac_delim
1.3185 @@ -15636,14 +16302,6 @@
1.3186 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
1.3187 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
1.3188 CPP!$CPP$ac_delim
1.3189 -build!$build$ac_delim
1.3190 -build_cpu!$build_cpu$ac_delim
1.3191 -build_vendor!$build_vendor$ac_delim
1.3192 -build_os!$build_os$ac_delim
1.3193 -host!$host$ac_delim
1.3194 -host_cpu!$host_cpu$ac_delim
1.3195 -host_vendor!$host_vendor$ac_delim
1.3196 -host_os!$host_os$ac_delim
1.3197 CC!$CC$ac_delim
1.3198 CFLAGS!$CFLAGS$ac_delim
1.3199 CPPFLAGS!$CPPFLAGS$ac_delim
1.3200 @@ -15729,6 +16387,8 @@
1.3201 GLIB_LIBS!$GLIB_LIBS$ac_delim
1.3202 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
1.3203 GTK_LIBS!$GTK_LIBS$ac_delim
1.3204 +GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
1.3205 +GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
1.3206 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
1.3207 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
1.3208 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
1.3209 @@ -15791,8 +16451,6 @@
1.3210 CATALOGS!$CATALOGS$ac_delim
1.3211 CATOBJEXT!$CATOBJEXT$ac_delim
1.3212 DATADIRNAME!$DATADIRNAME$ac_delim
1.3213 -GMOFILES!$GMOFILES$ac_delim
1.3214 -INSTOBJEXT!$INSTOBJEXT$ac_delim
1.3215 _ACEOF
1.3216
1.3217 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
1.3218 @@ -15834,6 +16492,8 @@
1.3219 ac_delim='%!_!# '
1.3220 for ac_last_try in false false false false false :; do
1.3221 cat >conf$$subs.sed <<_ACEOF
1.3222 +GMOFILES!$GMOFILES$ac_delim
1.3223 +INSTOBJEXT!$INSTOBJEXT$ac_delim
1.3224 INTLLIBS!$INTLLIBS$ac_delim
1.3225 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
1.3226 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
1.3227 @@ -15844,7 +16504,7 @@
1.3228 LTLIBOBJS!$LTLIBOBJS$ac_delim
1.3229 _ACEOF
1.3230
1.3231 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
1.3232 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
1.3233 break
1.3234 elif $ac_last_try; then
1.3235 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
.