[1956] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 3 | # Generated by GNU Autoconf 2.59 for orxonox 0.1-pre-alpha. |
---|
| 4 | # |
---|
| 5 | # Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
| 6 | # |
---|
| 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 8 | # This configure script is free software; the Free Software Foundation |
---|
| 9 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 10 | ## --------------------- ## |
---|
| 11 | ## M4sh Initialization. ## |
---|
| 12 | ## --------------------- ## |
---|
[1853] | 13 | |
---|
[1956] | 14 | # Be Bourne compatible |
---|
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 16 | emulate sh |
---|
| 17 | NULLCMD=: |
---|
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 19 | # is contrary to our usage. Disable this feature. |
---|
| 20 | alias -g '${1+"$@"}'='"$@"' |
---|
| 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 22 | set -o posix |
---|
| 23 | fi |
---|
| 24 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[1853] | 25 | |
---|
[1956] | 26 | # Support unset when possible. |
---|
| 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 28 | as_unset=unset |
---|
| 29 | else |
---|
| 30 | as_unset=false |
---|
| 31 | fi |
---|
[1853] | 32 | |
---|
| 33 | |
---|
[1956] | 34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 35 | $as_unset ENV MAIL MAILPATH |
---|
| 36 | PS1='$ ' |
---|
| 37 | PS2='> ' |
---|
| 38 | PS4='+ ' |
---|
[1853] | 39 | |
---|
[1956] | 40 | # NLS nuisances. |
---|
| 41 | for as_var in \ |
---|
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 44 | LC_TELEPHONE LC_TIME |
---|
| 45 | do |
---|
| 46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 47 | eval $as_var=C; export $as_var |
---|
| 48 | else |
---|
| 49 | $as_unset $as_var |
---|
| 50 | fi |
---|
| 51 | done |
---|
[1853] | 52 | |
---|
[1956] | 53 | # Required to use basename. |
---|
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 55 | as_expr=expr |
---|
| 56 | else |
---|
| 57 | as_expr=false |
---|
| 58 | fi |
---|
[1853] | 59 | |
---|
[1956] | 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 61 | as_basename=basename |
---|
| 62 | else |
---|
| 63 | as_basename=false |
---|
| 64 | fi |
---|
[1853] | 65 | |
---|
[1956] | 66 | |
---|
| 67 | # Name of the executable. |
---|
| 68 | as_me=`$as_basename "$0" || |
---|
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 70 | X"$0" : 'X\(//\)$' \| \ |
---|
| 71 | X"$0" : 'X\(/\)$' \| \ |
---|
| 72 | . : '\(.\)' 2>/dev/null || |
---|
| 73 | echo X/"$0" | |
---|
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 77 | s/.*/./; q'` |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 81 | # Avoid depending upon Character Ranges. |
---|
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 85 | as_cr_digits='0123456789' |
---|
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 87 | |
---|
| 88 | # The user is always right. |
---|
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 90 | echo "#! /bin/sh" >conf$$.sh |
---|
| 91 | echo "exit 0" >>conf$$.sh |
---|
| 92 | chmod +x conf$$.sh |
---|
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 94 | PATH_SEPARATOR=';' |
---|
| 95 | else |
---|
| 96 | PATH_SEPARATOR=: |
---|
| 97 | fi |
---|
| 98 | rm -f conf$$.sh |
---|
| 99 | fi |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | as_lineno_1=$LINENO |
---|
| 103 | as_lineno_2=$LINENO |
---|
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 107 | # Find who we are. Look in the path if we contain no path at all |
---|
| 108 | # relative or not. |
---|
| 109 | case $0 in |
---|
| 110 | *[\\/]* ) as_myself=$0 ;; |
---|
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 112 | for as_dir in $PATH |
---|
| 113 | do |
---|
| 114 | IFS=$as_save_IFS |
---|
| 115 | test -z "$as_dir" && as_dir=. |
---|
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 117 | done |
---|
| 118 | |
---|
| 119 | ;; |
---|
| 120 | esac |
---|
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 122 | # in which case we are not to be found in the path. |
---|
| 123 | if test "x$as_myself" = x; then |
---|
| 124 | as_myself=$0 |
---|
| 125 | fi |
---|
| 126 | if test ! -f "$as_myself"; then |
---|
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
| 128 | { (exit 1); exit 1; }; } |
---|
| 129 | fi |
---|
| 130 | case $CONFIG_SHELL in |
---|
| 131 | '') |
---|
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 134 | do |
---|
| 135 | IFS=$as_save_IFS |
---|
| 136 | test -z "$as_dir" && as_dir=. |
---|
| 137 | for as_base in sh bash ksh sh5; do |
---|
| 138 | case $as_dir in |
---|
| 139 | /*) |
---|
| 140 | if ("$as_dir/$as_base" -c ' |
---|
| 141 | as_lineno_1=$LINENO |
---|
| 142 | as_lineno_2=$LINENO |
---|
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 148 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 149 | export CONFIG_SHELL |
---|
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 151 | fi;; |
---|
| 152 | esac |
---|
| 153 | done |
---|
| 154 | done |
---|
| 155 | ;; |
---|
| 156 | esac |
---|
| 157 | |
---|
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 160 | # line-number line before each line; the second 'sed' does the real |
---|
| 161 | # work. The second script uses 'N' to pair each line-number line |
---|
| 162 | # with the numbered line, and appends trailing '-' during |
---|
| 163 | # substitution so that $LINENO is not a special case at line end. |
---|
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 166 | sed '=' <$as_myself | |
---|
| 167 | sed ' |
---|
| 168 | N |
---|
| 169 | s,$,-, |
---|
| 170 | : loop |
---|
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 172 | t loop |
---|
| 173 | s,-$,, |
---|
| 174 | s,^['$as_cr_digits']*\n,, |
---|
| 175 | ' >$as_me.lineno && |
---|
| 176 | chmod +x $as_me.lineno || |
---|
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 178 | { (exit 1); exit 1; }; } |
---|
| 179 | |
---|
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 181 | # (the dirname of $[0] is not the place where we might find the |
---|
| 182 | # original and so on. Autoconf is especially sensible to this). |
---|
| 183 | . ./$as_me.lineno |
---|
| 184 | # Exit status is that of the last command. |
---|
| 185 | exit |
---|
| 186 | } |
---|
| 187 | |
---|
| 188 | |
---|
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 191 | ' ECHO_T=' ' ;; |
---|
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 194 | esac |
---|
| 195 | |
---|
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 197 | as_expr=expr |
---|
[1853] | 198 | else |
---|
[1956] | 199 | as_expr=false |
---|
[1853] | 200 | fi |
---|
| 201 | |
---|
[1956] | 202 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 203 | echo >conf$$.file |
---|
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 207 | if test -f conf$$.exe; then |
---|
| 208 | # Don't use ln at all; we don't have any links |
---|
| 209 | as_ln_s='cp -p' |
---|
| 210 | else |
---|
| 211 | as_ln_s='ln -s' |
---|
| 212 | fi |
---|
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 214 | as_ln_s=ln |
---|
| 215 | else |
---|
| 216 | as_ln_s='cp -p' |
---|
[1853] | 217 | fi |
---|
[1956] | 218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[1853] | 219 | |
---|
[1956] | 220 | if mkdir -p . 2>/dev/null; then |
---|
| 221 | as_mkdir_p=: |
---|
| 222 | else |
---|
| 223 | test -d ./-p && rmdir ./-p |
---|
| 224 | as_mkdir_p=false |
---|
| 225 | fi |
---|
[1853] | 226 | |
---|
[1956] | 227 | as_executable_p="test -f" |
---|
| 228 | |
---|
| 229 | # Sed expression to map a string onto a valid CPP name. |
---|
| 230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 231 | |
---|
| 232 | # Sed expression to map a string onto a valid variable name. |
---|
| 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 234 | |
---|
| 235 | |
---|
| 236 | # IFS |
---|
| 237 | # We need space, tab and new line, in precisely that order. |
---|
| 238 | as_nl=' |
---|
| 239 | ' |
---|
| 240 | IFS=" $as_nl" |
---|
| 241 | |
---|
| 242 | # CDPATH. |
---|
| 243 | $as_unset CDPATH |
---|
| 244 | |
---|
| 245 | |
---|
| 246 | # Name of the host. |
---|
| 247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 248 | # so uname gets run too. |
---|
| 249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 250 | |
---|
| 251 | exec 6>&1 |
---|
| 252 | |
---|
| 253 | # |
---|
| 254 | # Initializations. |
---|
| 255 | # |
---|
| 256 | ac_default_prefix=/usr/local |
---|
| 257 | ac_config_libobj_dir=. |
---|
| 258 | cross_compiling=no |
---|
| 259 | subdirs= |
---|
| 260 | MFLAGS= |
---|
| 261 | MAKEFLAGS= |
---|
| 262 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 263 | |
---|
| 264 | # Maximum number of lines to put in a shell here document. |
---|
| 265 | # This variable seems obsolete. It should probably be removed, and |
---|
| 266 | # only ac_max_sed_lines should be used. |
---|
| 267 | : ${ac_max_here_lines=38} |
---|
| 268 | |
---|
| 269 | # Identity of this package. |
---|
| 270 | PACKAGE_NAME='orxonox' |
---|
| 271 | PACKAGE_TARNAME='orxonox' |
---|
| 272 | PACKAGE_VERSION='0.1-pre-alpha' |
---|
| 273 | PACKAGE_STRING='orxonox 0.1-pre-alpha' |
---|
| 274 | PACKAGE_BUGREPORT='orxonox-dev@mail.datacore.ch' |
---|
| 275 | |
---|
| 276 | ac_unique_file="." |
---|
| 277 | # Factoring default headers for most tests. |
---|
| 278 | ac_includes_default="\ |
---|
| 279 | #include <stdio.h> |
---|
| 280 | #if HAVE_SYS_TYPES_H |
---|
| 281 | # include <sys/types.h> |
---|
| 282 | #endif |
---|
| 283 | #if HAVE_SYS_STAT_H |
---|
| 284 | # include <sys/stat.h> |
---|
| 285 | #endif |
---|
| 286 | #if STDC_HEADERS |
---|
| 287 | # include <stdlib.h> |
---|
| 288 | # include <stddef.h> |
---|
| 289 | #else |
---|
| 290 | # if HAVE_STDLIB_H |
---|
| 291 | # include <stdlib.h> |
---|
| 292 | # endif |
---|
| 293 | #endif |
---|
| 294 | #if HAVE_STRING_H |
---|
| 295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
| 296 | # include <memory.h> |
---|
| 297 | # endif |
---|
| 298 | # include <string.h> |
---|
| 299 | #endif |
---|
| 300 | #if HAVE_STRINGS_H |
---|
| 301 | # include <strings.h> |
---|
| 302 | #endif |
---|
| 303 | #if HAVE_INTTYPES_H |
---|
| 304 | # include <inttypes.h> |
---|
| 305 | #else |
---|
| 306 | # if HAVE_STDINT_H |
---|
| 307 | # include <stdint.h> |
---|
| 308 | # endif |
---|
| 309 | #endif |
---|
| 310 | #if HAVE_UNISTD_H |
---|
| 311 | # include <unistd.h> |
---|
| 312 | #endif" |
---|
| 313 | |
---|
[2980] | 314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP MSBITFIELDS SDL_CONFIG SDL_CFLAGS SDL_LIBS PKG_CONFIG GTK2_CFLAGS GTK2_LIBS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS' |
---|
[1956] | 315 | ac_subst_files='' |
---|
| 316 | |
---|
| 317 | # Initialize some variables set by options. |
---|
| 318 | ac_init_help= |
---|
| 319 | ac_init_version=false |
---|
| 320 | # The variables have the same names as the options, with |
---|
| 321 | # dashes changed to underlines. |
---|
| 322 | cache_file=/dev/null |
---|
| 323 | exec_prefix=NONE |
---|
| 324 | no_create= |
---|
| 325 | no_recursion= |
---|
| 326 | prefix=NONE |
---|
| 327 | program_prefix=NONE |
---|
| 328 | program_suffix=NONE |
---|
| 329 | program_transform_name=s,x,x, |
---|
| 330 | silent= |
---|
| 331 | site= |
---|
| 332 | srcdir= |
---|
| 333 | verbose= |
---|
| 334 | x_includes=NONE |
---|
| 335 | x_libraries=NONE |
---|
| 336 | |
---|
| 337 | # Installation directory options. |
---|
| 338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 339 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 340 | # by default will actually change. |
---|
| 341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 342 | bindir='${exec_prefix}/bin' |
---|
| 343 | sbindir='${exec_prefix}/sbin' |
---|
| 344 | libexecdir='${exec_prefix}/libexec' |
---|
| 345 | datadir='${prefix}/share' |
---|
| 346 | sysconfdir='${prefix}/etc' |
---|
| 347 | sharedstatedir='${prefix}/com' |
---|
| 348 | localstatedir='${prefix}/var' |
---|
| 349 | libdir='${exec_prefix}/lib' |
---|
| 350 | includedir='${prefix}/include' |
---|
| 351 | oldincludedir='/usr/include' |
---|
| 352 | infodir='${prefix}/info' |
---|
| 353 | mandir='${prefix}/man' |
---|
| 354 | |
---|
| 355 | ac_prev= |
---|
| 356 | for ac_option |
---|
| 357 | do |
---|
| 358 | # If the previous option needs an argument, assign it. |
---|
| 359 | if test -n "$ac_prev"; then |
---|
| 360 | eval "$ac_prev=\$ac_option" |
---|
| 361 | ac_prev= |
---|
| 362 | continue |
---|
| 363 | fi |
---|
| 364 | |
---|
| 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
| 366 | |
---|
| 367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 368 | |
---|
| 369 | case $ac_option in |
---|
| 370 | |
---|
| 371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 372 | ac_prev=bindir ;; |
---|
| 373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 374 | bindir=$ac_optarg ;; |
---|
| 375 | |
---|
| 376 | -build | --build | --buil | --bui | --bu) |
---|
| 377 | ac_prev=build_alias ;; |
---|
| 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 379 | build_alias=$ac_optarg ;; |
---|
| 380 | |
---|
| 381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 383 | ac_prev=cache_file ;; |
---|
| 384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 386 | cache_file=$ac_optarg ;; |
---|
| 387 | |
---|
| 388 | --config-cache | -C) |
---|
| 389 | cache_file=config.cache ;; |
---|
| 390 | |
---|
| 391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 392 | ac_prev=datadir ;; |
---|
| 393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 394 | | --da=*) |
---|
| 395 | datadir=$ac_optarg ;; |
---|
| 396 | |
---|
| 397 | -disable-* | --disable-*) |
---|
| 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 399 | # Reject names that are not valid shell variable names. |
---|
| 400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 402 | { (exit 1); exit 1; }; } |
---|
| 403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 404 | eval "enable_$ac_feature=no" ;; |
---|
| 405 | |
---|
| 406 | -enable-* | --enable-*) |
---|
| 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 408 | # Reject names that are not valid shell variable names. |
---|
| 409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 411 | { (exit 1); exit 1; }; } |
---|
| 412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 413 | case $ac_option in |
---|
| 414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 415 | *) ac_optarg=yes ;; |
---|
| 416 | esac |
---|
| 417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
| 418 | |
---|
| 419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 421 | | --exec | --exe | --ex) |
---|
| 422 | ac_prev=exec_prefix ;; |
---|
| 423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 425 | | --exec=* | --exe=* | --ex=*) |
---|
| 426 | exec_prefix=$ac_optarg ;; |
---|
| 427 | |
---|
| 428 | -gas | --gas | --ga | --g) |
---|
| 429 | # Obsolete; use --with-gas. |
---|
| 430 | with_gas=yes ;; |
---|
| 431 | |
---|
| 432 | -help | --help | --hel | --he | -h) |
---|
| 433 | ac_init_help=long ;; |
---|
| 434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 435 | ac_init_help=recursive ;; |
---|
| 436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 437 | ac_init_help=short ;; |
---|
| 438 | |
---|
| 439 | -host | --host | --hos | --ho) |
---|
| 440 | ac_prev=host_alias ;; |
---|
| 441 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 442 | host_alias=$ac_optarg ;; |
---|
| 443 | |
---|
| 444 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 445 | | --includ | --inclu | --incl | --inc) |
---|
| 446 | ac_prev=includedir ;; |
---|
| 447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 449 | includedir=$ac_optarg ;; |
---|
| 450 | |
---|
| 451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 452 | ac_prev=infodir ;; |
---|
| 453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 454 | infodir=$ac_optarg ;; |
---|
| 455 | |
---|
| 456 | -libdir | --libdir | --libdi | --libd) |
---|
| 457 | ac_prev=libdir ;; |
---|
| 458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 459 | libdir=$ac_optarg ;; |
---|
| 460 | |
---|
| 461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 462 | | --libexe | --libex | --libe) |
---|
| 463 | ac_prev=libexecdir ;; |
---|
| 464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 465 | | --libexe=* | --libex=* | --libe=*) |
---|
| 466 | libexecdir=$ac_optarg ;; |
---|
| 467 | |
---|
| 468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 469 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 470 | | --locals | --local | --loca | --loc | --lo) |
---|
| 471 | ac_prev=localstatedir ;; |
---|
| 472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 475 | localstatedir=$ac_optarg ;; |
---|
| 476 | |
---|
| 477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 478 | ac_prev=mandir ;; |
---|
| 479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 480 | mandir=$ac_optarg ;; |
---|
| 481 | |
---|
| 482 | -nfp | --nfp | --nf) |
---|
| 483 | # Obsolete; use --without-fp. |
---|
| 484 | with_fp=no ;; |
---|
| 485 | |
---|
| 486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 487 | | --no-cr | --no-c | -n) |
---|
| 488 | no_create=yes ;; |
---|
| 489 | |
---|
| 490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 492 | no_recursion=yes ;; |
---|
| 493 | |
---|
| 494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 496 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 497 | ac_prev=oldincludedir ;; |
---|
| 498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 501 | oldincludedir=$ac_optarg ;; |
---|
| 502 | |
---|
| 503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 504 | ac_prev=prefix ;; |
---|
| 505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 506 | prefix=$ac_optarg ;; |
---|
| 507 | |
---|
| 508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 509 | | --program-pre | --program-pr | --program-p) |
---|
| 510 | ac_prev=program_prefix ;; |
---|
| 511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 513 | program_prefix=$ac_optarg ;; |
---|
| 514 | |
---|
| 515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 516 | | --program-suf | --program-su | --program-s) |
---|
| 517 | ac_prev=program_suffix ;; |
---|
| 518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 520 | program_suffix=$ac_optarg ;; |
---|
| 521 | |
---|
| 522 | -program-transform-name | --program-transform-name \ |
---|
| 523 | | --program-transform-nam | --program-transform-na \ |
---|
| 524 | | --program-transform-n | --program-transform- \ |
---|
| 525 | | --program-transform | --program-transfor \ |
---|
| 526 | | --program-transfo | --program-transf \ |
---|
| 527 | | --program-trans | --program-tran \ |
---|
| 528 | | --progr-tra | --program-tr | --program-t) |
---|
| 529 | ac_prev=program_transform_name ;; |
---|
| 530 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 531 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 532 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 533 | | --program-transform=* | --program-transfor=* \ |
---|
| 534 | | --program-transfo=* | --program-transf=* \ |
---|
| 535 | | --program-trans=* | --program-tran=* \ |
---|
| 536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 537 | program_transform_name=$ac_optarg ;; |
---|
| 538 | |
---|
| 539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 540 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 541 | silent=yes ;; |
---|
| 542 | |
---|
| 543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 544 | ac_prev=sbindir ;; |
---|
| 545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 546 | | --sbi=* | --sb=*) |
---|
| 547 | sbindir=$ac_optarg ;; |
---|
| 548 | |
---|
| 549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 551 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 552 | | --sha | --sh) |
---|
| 553 | ac_prev=sharedstatedir ;; |
---|
| 554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 557 | | --sha=* | --sh=*) |
---|
| 558 | sharedstatedir=$ac_optarg ;; |
---|
| 559 | |
---|
| 560 | -site | --site | --sit) |
---|
| 561 | ac_prev=site ;; |
---|
| 562 | -site=* | --site=* | --sit=*) |
---|
| 563 | site=$ac_optarg ;; |
---|
| 564 | |
---|
| 565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 566 | ac_prev=srcdir ;; |
---|
| 567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 568 | srcdir=$ac_optarg ;; |
---|
| 569 | |
---|
| 570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 571 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 572 | ac_prev=sysconfdir ;; |
---|
| 573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 575 | sysconfdir=$ac_optarg ;; |
---|
| 576 | |
---|
| 577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 578 | ac_prev=target_alias ;; |
---|
| 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 580 | target_alias=$ac_optarg ;; |
---|
| 581 | |
---|
| 582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 583 | verbose=yes ;; |
---|
| 584 | |
---|
| 585 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 586 | ac_init_version=: ;; |
---|
| 587 | |
---|
| 588 | -with-* | --with-*) |
---|
| 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 590 | # Reject names that are not valid shell variable names. |
---|
| 591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 593 | { (exit 1); exit 1; }; } |
---|
| 594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 595 | case $ac_option in |
---|
| 596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 597 | *) ac_optarg=yes ;; |
---|
| 598 | esac |
---|
| 599 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
| 600 | |
---|
| 601 | -without-* | --without-*) |
---|
| 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 603 | # Reject names that are not valid shell variable names. |
---|
| 604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 606 | { (exit 1); exit 1; }; } |
---|
| 607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
| 608 | eval "with_$ac_package=no" ;; |
---|
| 609 | |
---|
| 610 | --x) |
---|
| 611 | # Obsolete; use --with-x. |
---|
| 612 | with_x=yes ;; |
---|
| 613 | |
---|
| 614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 615 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 616 | ac_prev=x_includes ;; |
---|
| 617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 619 | x_includes=$ac_optarg ;; |
---|
| 620 | |
---|
| 621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 623 | ac_prev=x_libraries ;; |
---|
| 624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 626 | x_libraries=$ac_optarg ;; |
---|
| 627 | |
---|
| 628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 629 | Try \`$0 --help' for more information." >&2 |
---|
| 630 | { (exit 1); exit 1; }; } |
---|
| 631 | ;; |
---|
| 632 | |
---|
| 633 | *=*) |
---|
| 634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 635 | # Reject names that are not valid shell variable names. |
---|
| 636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 638 | { (exit 1); exit 1; }; } |
---|
| 639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
| 640 | eval "$ac_envvar='$ac_optarg'" |
---|
| 641 | export $ac_envvar ;; |
---|
| 642 | |
---|
| 643 | *) |
---|
| 644 | # FIXME: should be removed in autoconf 3.0. |
---|
| 645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 649 | ;; |
---|
| 650 | |
---|
| 651 | esac |
---|
| 652 | done |
---|
| 653 | |
---|
| 654 | if test -n "$ac_prev"; then |
---|
| 655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 657 | { (exit 1); exit 1; }; } |
---|
[1853] | 658 | fi |
---|
| 659 | |
---|
[1956] | 660 | # Be sure to have absolute paths. |
---|
| 661 | for ac_var in exec_prefix prefix |
---|
| 662 | do |
---|
| 663 | eval ac_val=$`echo $ac_var` |
---|
| 664 | case $ac_val in |
---|
| 665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
| 666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 667 | { (exit 1); exit 1; }; };; |
---|
| 668 | esac |
---|
| 669 | done |
---|
[1853] | 670 | |
---|
[1956] | 671 | # Be sure to have absolute paths. |
---|
| 672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
| 673 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
| 674 | do |
---|
| 675 | eval ac_val=$`echo $ac_var` |
---|
| 676 | case $ac_val in |
---|
| 677 | [\\/$]* | ?:[\\/]* ) ;; |
---|
| 678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 679 | { (exit 1); exit 1; }; };; |
---|
| 680 | esac |
---|
| 681 | done |
---|
| 682 | |
---|
| 683 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 684 | # used to hold the argument of --host etc. |
---|
| 685 | # FIXME: To remove some day. |
---|
| 686 | build=$build_alias |
---|
| 687 | host=$host_alias |
---|
| 688 | target=$target_alias |
---|
| 689 | |
---|
| 690 | # FIXME: To remove some day. |
---|
| 691 | if test "x$host_alias" != x; then |
---|
| 692 | if test "x$build_alias" = x; then |
---|
| 693 | cross_compiling=maybe |
---|
| 694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 696 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 697 | cross_compiling=yes |
---|
| 698 | fi |
---|
[1853] | 699 | fi |
---|
| 700 | |
---|
[1956] | 701 | ac_tool_prefix= |
---|
| 702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 703 | |
---|
| 704 | test "$silent" = yes && exec 6>/dev/null |
---|
| 705 | |
---|
| 706 | |
---|
| 707 | # Find the source files, if location was not specified. |
---|
| 708 | if test -z "$srcdir"; then |
---|
| 709 | ac_srcdir_defaulted=yes |
---|
| 710 | # Try the directory containing this script, then its parent. |
---|
| 711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
| 712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 713 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 714 | X"$0" : 'X\(//\)$' \| \ |
---|
| 715 | X"$0" : 'X\(/\)' \| \ |
---|
| 716 | . : '\(.\)' 2>/dev/null || |
---|
| 717 | echo X"$0" | |
---|
| 718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 720 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 721 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 722 | s/.*/./; q'` |
---|
| 723 | srcdir=$ac_confdir |
---|
| 724 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 725 | srcdir=.. |
---|
| 726 | fi |
---|
| 727 | else |
---|
| 728 | ac_srcdir_defaulted=no |
---|
| 729 | fi |
---|
| 730 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 731 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
| 733 | { (exit 1); exit 1; }; } |
---|
| 734 | else |
---|
| 735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
| 736 | { (exit 1); exit 1; }; } |
---|
| 737 | fi |
---|
| 738 | fi |
---|
| 739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
| 740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
| 741 | { (exit 1); exit 1; }; } |
---|
| 742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
| 743 | ac_env_build_alias_set=${build_alias+set} |
---|
| 744 | ac_env_build_alias_value=$build_alias |
---|
| 745 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
| 746 | ac_cv_env_build_alias_value=$build_alias |
---|
| 747 | ac_env_host_alias_set=${host_alias+set} |
---|
| 748 | ac_env_host_alias_value=$host_alias |
---|
| 749 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
| 750 | ac_cv_env_host_alias_value=$host_alias |
---|
| 751 | ac_env_target_alias_set=${target_alias+set} |
---|
| 752 | ac_env_target_alias_value=$target_alias |
---|
| 753 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
| 754 | ac_cv_env_target_alias_value=$target_alias |
---|
| 755 | ac_env_CXX_set=${CXX+set} |
---|
| 756 | ac_env_CXX_value=$CXX |
---|
| 757 | ac_cv_env_CXX_set=${CXX+set} |
---|
| 758 | ac_cv_env_CXX_value=$CXX |
---|
| 759 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 760 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 761 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 762 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 764 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
| 765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
| 767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 771 | ac_env_CC_set=${CC+set} |
---|
| 772 | ac_env_CC_value=$CC |
---|
| 773 | ac_cv_env_CC_set=${CC+set} |
---|
| 774 | ac_cv_env_CC_value=$CC |
---|
| 775 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
| 776 | ac_env_CFLAGS_value=$CFLAGS |
---|
| 777 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
| 778 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
| 779 | ac_env_CPP_set=${CPP+set} |
---|
| 780 | ac_env_CPP_value=$CPP |
---|
| 781 | ac_cv_env_CPP_set=${CPP+set} |
---|
| 782 | ac_cv_env_CPP_value=$CPP |
---|
| 783 | |
---|
| 784 | # |
---|
| 785 | # Report the --help message. |
---|
| 786 | # |
---|
| 787 | if test "$ac_init_help" = "long"; then |
---|
| 788 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 789 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 790 | cat <<_ACEOF |
---|
| 791 | \`configure' configures orxonox 0.1-pre-alpha to adapt to many kinds of systems. |
---|
| 792 | |
---|
| 793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 794 | |
---|
| 795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 797 | |
---|
| 798 | Defaults for the options are specified in brackets. |
---|
| 799 | |
---|
| 800 | Configuration: |
---|
| 801 | -h, --help display this help and exit |
---|
| 802 | --help=short display options specific to this package |
---|
| 803 | --help=recursive display the short help of all the included packages |
---|
| 804 | -V, --version display version information and exit |
---|
| 805 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 806 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 807 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 808 | -n, --no-create do not create output files |
---|
| 809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 810 | |
---|
| 811 | _ACEOF |
---|
| 812 | |
---|
| 813 | cat <<_ACEOF |
---|
| 814 | Installation directories: |
---|
| 815 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 816 | [$ac_default_prefix] |
---|
| 817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 818 | [PREFIX] |
---|
| 819 | |
---|
| 820 | By default, \`make install' will install all the files in |
---|
| 821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 823 | for instance \`--prefix=\$HOME'. |
---|
| 824 | |
---|
| 825 | For better control, use the options below. |
---|
| 826 | |
---|
| 827 | Fine tuning of the installation directories: |
---|
| 828 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
| 832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 835 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 836 | --includedir=DIR C header files [PREFIX/include] |
---|
| 837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 838 | --infodir=DIR info documentation [PREFIX/info] |
---|
| 839 | --mandir=DIR man documentation [PREFIX/man] |
---|
| 840 | _ACEOF |
---|
| 841 | |
---|
| 842 | cat <<\_ACEOF |
---|
| 843 | |
---|
| 844 | Program names: |
---|
| 845 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 846 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
[2980] | 848 | |
---|
| 849 | System types: |
---|
| 850 | --build=BUILD configure for building on BUILD [guessed] |
---|
| 851 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
| 852 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
[1956] | 853 | _ACEOF |
---|
| 854 | fi |
---|
| 855 | |
---|
| 856 | if test -n "$ac_init_help"; then |
---|
| 857 | case $ac_init_help in |
---|
| 858 | short | recursive ) echo "Configuration of orxonox 0.1-pre-alpha:";; |
---|
| 859 | esac |
---|
| 860 | cat <<\_ACEOF |
---|
| 861 | |
---|
| 862 | Optional Features: |
---|
| 863 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 864 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
[2706] | 865 | --disable-dependency-tracking speeds up one-time build |
---|
| 866 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
[2980] | 867 | --disable-sdltest Do not try to compile and run a test SDL program |
---|
[1956] | 868 | |
---|
[2980] | 869 | Optional Packages: |
---|
| 870 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 871 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 872 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) |
---|
| 873 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) |
---|
| 874 | |
---|
[1956] | 875 | Some influential environment variables: |
---|
| 876 | CXX C++ compiler command |
---|
| 877 | CXXFLAGS C++ compiler flags |
---|
| 878 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 879 | nonstandard directory <lib dir> |
---|
| 880 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 881 | headers in a nonstandard directory <include dir> |
---|
| 882 | CC C compiler command |
---|
| 883 | CFLAGS C compiler flags |
---|
| 884 | CPP C preprocessor |
---|
| 885 | |
---|
| 886 | Use these variables to override the choices made by `configure' or to help |
---|
| 887 | it to find libraries and programs with nonstandard names/locations. |
---|
| 888 | |
---|
| 889 | Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
| 890 | _ACEOF |
---|
| 891 | fi |
---|
| 892 | |
---|
| 893 | if test "$ac_init_help" = "recursive"; then |
---|
| 894 | # If there are subdirs, report their specific --help. |
---|
| 895 | ac_popdir=`pwd` |
---|
| 896 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 897 | test -d $ac_dir || continue |
---|
| 898 | ac_builddir=. |
---|
| 899 | |
---|
| 900 | if test "$ac_dir" != .; then |
---|
| 901 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 902 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 903 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 904 | else |
---|
| 905 | ac_dir_suffix= ac_top_builddir= |
---|
| 906 | fi |
---|
| 907 | |
---|
| 908 | case $srcdir in |
---|
| 909 | .) # No --srcdir option. We are building in place. |
---|
| 910 | ac_srcdir=. |
---|
| 911 | if test -z "$ac_top_builddir"; then |
---|
| 912 | ac_top_srcdir=. |
---|
| 913 | else |
---|
| 914 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 915 | fi ;; |
---|
| 916 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 917 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 918 | ac_top_srcdir=$srcdir ;; |
---|
| 919 | *) # Relative path. |
---|
| 920 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 921 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 922 | esac |
---|
| 923 | |
---|
| 924 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 925 | # the directories may not exist. |
---|
| 926 | case `pwd` in |
---|
| 927 | .) ac_abs_builddir="$ac_dir";; |
---|
| 928 | *) |
---|
| 929 | case "$ac_dir" in |
---|
| 930 | .) ac_abs_builddir=`pwd`;; |
---|
| 931 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 932 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 933 | esac;; |
---|
| 934 | esac |
---|
| 935 | case $ac_abs_builddir in |
---|
| 936 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 937 | *) |
---|
| 938 | case ${ac_top_builddir}. in |
---|
| 939 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 940 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 941 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 942 | esac;; |
---|
| 943 | esac |
---|
| 944 | case $ac_abs_builddir in |
---|
| 945 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 946 | *) |
---|
| 947 | case $ac_srcdir in |
---|
| 948 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 949 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 950 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 951 | esac;; |
---|
| 952 | esac |
---|
| 953 | case $ac_abs_builddir in |
---|
| 954 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 955 | *) |
---|
| 956 | case $ac_top_srcdir in |
---|
| 957 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 958 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 959 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 960 | esac;; |
---|
| 961 | esac |
---|
| 962 | |
---|
| 963 | cd $ac_dir |
---|
| 964 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 965 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 966 | echo |
---|
| 967 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 968 | elif test -f $ac_srcdir/configure; then |
---|
| 969 | echo |
---|
| 970 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 971 | elif test -f $ac_srcdir/configure.ac || |
---|
| 972 | test -f $ac_srcdir/configure.in; then |
---|
| 973 | echo |
---|
| 974 | $ac_configure --help |
---|
| 975 | else |
---|
| 976 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 977 | fi |
---|
| 978 | cd $ac_popdir |
---|
| 979 | done |
---|
| 980 | fi |
---|
| 981 | |
---|
| 982 | test -n "$ac_init_help" && exit 0 |
---|
| 983 | if $ac_init_version; then |
---|
| 984 | cat <<\_ACEOF |
---|
| 985 | orxonox configure 0.1-pre-alpha |
---|
| 986 | generated by GNU Autoconf 2.59 |
---|
| 987 | |
---|
| 988 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 989 | This configure script is free software; the Free Software Foundation |
---|
| 990 | gives unlimited permission to copy, distribute and modify it. |
---|
| 991 | _ACEOF |
---|
| 992 | exit 0 |
---|
| 993 | fi |
---|
| 994 | exec 5>config.log |
---|
| 995 | cat >&5 <<_ACEOF |
---|
| 996 | This file contains any messages produced by compilers while |
---|
| 997 | running configure, to aid debugging if configure makes a mistake. |
---|
| 998 | |
---|
| 999 | It was created by orxonox $as_me 0.1-pre-alpha, which was |
---|
| 1000 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 1001 | |
---|
| 1002 | $ $0 $@ |
---|
| 1003 | |
---|
| 1004 | _ACEOF |
---|
| 1005 | { |
---|
| 1006 | cat <<_ASUNAME |
---|
| 1007 | ## --------- ## |
---|
| 1008 | ## Platform. ## |
---|
| 1009 | ## --------- ## |
---|
| 1010 | |
---|
| 1011 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1012 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1013 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1014 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1015 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1016 | |
---|
| 1017 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1018 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1019 | |
---|
| 1020 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1021 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1022 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1023 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1024 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1025 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1026 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1027 | |
---|
| 1028 | _ASUNAME |
---|
| 1029 | |
---|
| 1030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1031 | for as_dir in $PATH |
---|
| 1032 | do |
---|
| 1033 | IFS=$as_save_IFS |
---|
| 1034 | test -z "$as_dir" && as_dir=. |
---|
| 1035 | echo "PATH: $as_dir" |
---|
| 1036 | done |
---|
| 1037 | |
---|
| 1038 | } >&5 |
---|
| 1039 | |
---|
| 1040 | cat >&5 <<_ACEOF |
---|
| 1041 | |
---|
| 1042 | |
---|
| 1043 | ## ----------- ## |
---|
| 1044 | ## Core tests. ## |
---|
| 1045 | ## ----------- ## |
---|
| 1046 | |
---|
| 1047 | _ACEOF |
---|
| 1048 | |
---|
| 1049 | |
---|
| 1050 | # Keep a trace of the command line. |
---|
| 1051 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1052 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1053 | # Also quote any args containing shell meta-characters. |
---|
| 1054 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1055 | ac_configure_args= |
---|
| 1056 | ac_configure_args0= |
---|
| 1057 | ac_configure_args1= |
---|
| 1058 | ac_sep= |
---|
| 1059 | ac_must_keep_next=false |
---|
| 1060 | for ac_pass in 1 2 |
---|
| 1061 | do |
---|
| 1062 | for ac_arg |
---|
| 1063 | do |
---|
| 1064 | case $ac_arg in |
---|
| 1065 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1066 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1067 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1068 | continue ;; |
---|
| 1069 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1070 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1071 | esac |
---|
| 1072 | case $ac_pass in |
---|
| 1073 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1074 | 2) |
---|
| 1075 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1076 | if test $ac_must_keep_next = true; then |
---|
| 1077 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1078 | else |
---|
| 1079 | case $ac_arg in |
---|
| 1080 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1081 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1082 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1083 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1084 | case "$ac_configure_args0 " in |
---|
| 1085 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1086 | esac |
---|
| 1087 | ;; |
---|
| 1088 | -* ) ac_must_keep_next=true ;; |
---|
| 1089 | esac |
---|
| 1090 | fi |
---|
| 1091 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1092 | # Get rid of the leading space. |
---|
| 1093 | ac_sep=" " |
---|
| 1094 | ;; |
---|
| 1095 | esac |
---|
| 1096 | done |
---|
| 1097 | done |
---|
| 1098 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1099 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1100 | |
---|
| 1101 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1102 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1103 | # would cause problems or look ugly. |
---|
| 1104 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1105 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1106 | trap 'exit_status=$? |
---|
| 1107 | # Save into config.log some information that might help in debugging. |
---|
| 1108 | { |
---|
| 1109 | echo |
---|
| 1110 | |
---|
| 1111 | cat <<\_ASBOX |
---|
| 1112 | ## ---------------- ## |
---|
| 1113 | ## Cache variables. ## |
---|
| 1114 | ## ---------------- ## |
---|
| 1115 | _ASBOX |
---|
| 1116 | echo |
---|
| 1117 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1118 | { |
---|
| 1119 | (set) 2>&1 | |
---|
| 1120 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1121 | *ac_space=\ *) |
---|
| 1122 | sed -n \ |
---|
| 1123 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1124 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1125 | ;; |
---|
| 1126 | *) |
---|
| 1127 | sed -n \ |
---|
| 1128 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1129 | ;; |
---|
| 1130 | esac; |
---|
| 1131 | } |
---|
| 1132 | echo |
---|
| 1133 | |
---|
| 1134 | cat <<\_ASBOX |
---|
| 1135 | ## ----------------- ## |
---|
| 1136 | ## Output variables. ## |
---|
| 1137 | ## ----------------- ## |
---|
| 1138 | _ASBOX |
---|
| 1139 | echo |
---|
| 1140 | for ac_var in $ac_subst_vars |
---|
| 1141 | do |
---|
| 1142 | eval ac_val=$`echo $ac_var` |
---|
| 1143 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1144 | done | sort |
---|
| 1145 | echo |
---|
| 1146 | |
---|
| 1147 | if test -n "$ac_subst_files"; then |
---|
| 1148 | cat <<\_ASBOX |
---|
| 1149 | ## ------------- ## |
---|
| 1150 | ## Output files. ## |
---|
| 1151 | ## ------------- ## |
---|
| 1152 | _ASBOX |
---|
| 1153 | echo |
---|
| 1154 | for ac_var in $ac_subst_files |
---|
| 1155 | do |
---|
| 1156 | eval ac_val=$`echo $ac_var` |
---|
| 1157 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1158 | done | sort |
---|
| 1159 | echo |
---|
| 1160 | fi |
---|
| 1161 | |
---|
| 1162 | if test -s confdefs.h; then |
---|
| 1163 | cat <<\_ASBOX |
---|
| 1164 | ## ----------- ## |
---|
| 1165 | ## confdefs.h. ## |
---|
| 1166 | ## ----------- ## |
---|
| 1167 | _ASBOX |
---|
| 1168 | echo |
---|
| 1169 | sed "/^$/d" confdefs.h | sort |
---|
| 1170 | echo |
---|
| 1171 | fi |
---|
| 1172 | test "$ac_signal" != 0 && |
---|
| 1173 | echo "$as_me: caught signal $ac_signal" |
---|
| 1174 | echo "$as_me: exit $exit_status" |
---|
| 1175 | } >&5 |
---|
| 1176 | rm -f core *.core && |
---|
| 1177 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1178 | exit $exit_status |
---|
| 1179 | ' 0 |
---|
| 1180 | for ac_signal in 1 2 13 15; do |
---|
| 1181 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1182 | done |
---|
| 1183 | ac_signal=0 |
---|
| 1184 | |
---|
| 1185 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1186 | rm -rf conftest* confdefs.h |
---|
| 1187 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1188 | echo >confdefs.h |
---|
| 1189 | |
---|
| 1190 | # Predefined preprocessor variables. |
---|
| 1191 | |
---|
| 1192 | cat >>confdefs.h <<_ACEOF |
---|
| 1193 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1194 | _ACEOF |
---|
| 1195 | |
---|
| 1196 | |
---|
| 1197 | cat >>confdefs.h <<_ACEOF |
---|
| 1198 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1199 | _ACEOF |
---|
| 1200 | |
---|
| 1201 | |
---|
| 1202 | cat >>confdefs.h <<_ACEOF |
---|
| 1203 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1204 | _ACEOF |
---|
| 1205 | |
---|
| 1206 | |
---|
| 1207 | cat >>confdefs.h <<_ACEOF |
---|
| 1208 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1209 | _ACEOF |
---|
| 1210 | |
---|
| 1211 | |
---|
| 1212 | cat >>confdefs.h <<_ACEOF |
---|
| 1213 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1214 | _ACEOF |
---|
| 1215 | |
---|
| 1216 | |
---|
| 1217 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1218 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1219 | if test -z "$CONFIG_SITE"; then |
---|
| 1220 | if test "x$prefix" != xNONE; then |
---|
| 1221 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1222 | else |
---|
| 1223 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1224 | fi |
---|
| 1225 | fi |
---|
| 1226 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1227 | if test -r "$ac_site_file"; then |
---|
| 1228 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1229 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1230 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1231 | . "$ac_site_file" |
---|
| 1232 | fi |
---|
| 1233 | done |
---|
| 1234 | |
---|
| 1235 | if test -r "$cache_file"; then |
---|
| 1236 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1237 | # files actually), so we avoid doing that. |
---|
| 1238 | if test -f "$cache_file"; then |
---|
| 1239 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1240 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1241 | case $cache_file in |
---|
| 1242 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1243 | *) . ./$cache_file;; |
---|
| 1244 | esac |
---|
| 1245 | fi |
---|
| 1246 | else |
---|
| 1247 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1248 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1249 | >$cache_file |
---|
| 1250 | fi |
---|
| 1251 | |
---|
| 1252 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1253 | # value. |
---|
| 1254 | ac_cache_corrupted=false |
---|
| 1255 | for ac_var in `(set) 2>&1 | |
---|
| 1256 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1257 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1258 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1259 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1260 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1261 | case $ac_old_set,$ac_new_set in |
---|
| 1262 | set,) |
---|
| 1263 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1264 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1265 | ac_cache_corrupted=: ;; |
---|
| 1266 | ,set) |
---|
| 1267 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1268 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1269 | ac_cache_corrupted=: ;; |
---|
| 1270 | ,);; |
---|
| 1271 | *) |
---|
| 1272 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1273 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1274 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1275 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1276 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1277 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1278 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1279 | ac_cache_corrupted=: |
---|
| 1280 | fi;; |
---|
| 1281 | esac |
---|
| 1282 | # Pass precious variables to config.status. |
---|
| 1283 | if test "$ac_new_set" = set; then |
---|
| 1284 | case $ac_new_val in |
---|
| 1285 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1286 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1287 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1288 | esac |
---|
| 1289 | case " $ac_configure_args " in |
---|
| 1290 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1291 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1292 | esac |
---|
| 1293 | fi |
---|
| 1294 | done |
---|
| 1295 | if $ac_cache_corrupted; then |
---|
| 1296 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1297 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1298 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1299 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1300 | { (exit 1); exit 1; }; } |
---|
| 1301 | fi |
---|
| 1302 | |
---|
| 1303 | ac_ext=c |
---|
| 1304 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1308 | |
---|
| 1309 | |
---|
| 1310 | |
---|
| 1311 | |
---|
| 1312 | |
---|
| 1313 | |
---|
| 1314 | |
---|
| 1315 | |
---|
| 1316 | |
---|
| 1317 | |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | |
---|
| 1326 | |
---|
| 1327 | |
---|
| 1328 | |
---|
| 1329 | |
---|
| 1330 | |
---|
| 1331 | |
---|
| 1332 | |
---|
| 1333 | |
---|
| 1334 | |
---|
[2980] | 1335 | |
---|
| 1336 | # Detect the canonical host and target build environment. |
---|
[1956] | 1337 | ac_aux_dir= |
---|
| 1338 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1339 | if test -f $ac_dir/install-sh; then |
---|
| 1340 | ac_aux_dir=$ac_dir |
---|
| 1341 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1342 | break |
---|
| 1343 | elif test -f $ac_dir/install.sh; then |
---|
| 1344 | ac_aux_dir=$ac_dir |
---|
| 1345 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1346 | break |
---|
| 1347 | elif test -f $ac_dir/shtool; then |
---|
| 1348 | ac_aux_dir=$ac_dir |
---|
| 1349 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1350 | break |
---|
| 1351 | fi |
---|
| 1352 | done |
---|
| 1353 | if test -z "$ac_aux_dir"; then |
---|
| 1354 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1355 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1356 | { (exit 1); exit 1; }; } |
---|
| 1357 | fi |
---|
| 1358 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1359 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1360 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1361 | |
---|
[2980] | 1362 | # Make sure we can run config.sub. |
---|
| 1363 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1364 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1365 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1366 | { (exit 1); exit 1; }; } |
---|
| 1367 | |
---|
| 1368 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1369 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1370 | if test "${ac_cv_build+set}" = set; then |
---|
| 1371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1372 | else |
---|
| 1373 | ac_cv_build_alias=$build_alias |
---|
| 1374 | test -z "$ac_cv_build_alias" && |
---|
| 1375 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1376 | test -z "$ac_cv_build_alias" && |
---|
| 1377 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1378 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1379 | { (exit 1); exit 1; }; } |
---|
| 1380 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1381 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1382 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1383 | { (exit 1); exit 1; }; } |
---|
| 1384 | |
---|
| 1385 | fi |
---|
| 1386 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1387 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1388 | build=$ac_cv_build |
---|
| 1389 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1390 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1391 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1392 | |
---|
| 1393 | |
---|
| 1394 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1395 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1396 | if test "${ac_cv_host+set}" = set; then |
---|
| 1397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1398 | else |
---|
| 1399 | ac_cv_host_alias=$host_alias |
---|
| 1400 | test -z "$ac_cv_host_alias" && |
---|
| 1401 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1402 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1403 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1404 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1405 | { (exit 1); exit 1; }; } |
---|
| 1406 | |
---|
| 1407 | fi |
---|
| 1408 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1409 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1410 | host=$ac_cv_host |
---|
| 1411 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1412 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1413 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1414 | |
---|
| 1415 | |
---|
| 1416 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1417 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1418 | if test "${ac_cv_target+set}" = set; then |
---|
| 1419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1420 | else |
---|
| 1421 | ac_cv_target_alias=$target_alias |
---|
| 1422 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1423 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1424 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1425 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1426 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1427 | { (exit 1); exit 1; }; } |
---|
| 1428 | |
---|
| 1429 | fi |
---|
| 1430 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1431 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1432 | target=$ac_cv_target |
---|
| 1433 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1434 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1435 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1436 | |
---|
| 1437 | |
---|
| 1438 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1439 | # will get canonicalized. |
---|
| 1440 | test -n "$target_alias" && |
---|
| 1441 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1442 | NONENONEs,x,x, && |
---|
| 1443 | program_prefix=${target_alias}- |
---|
| 1444 | |
---|
| 1445 | |
---|
| 1446 | am__api_version="1.8" |
---|
[1956] | 1447 | # Find a good install program. We prefer a C program (faster), |
---|
| 1448 | # so one script is as good as another. But avoid the broken or |
---|
| 1449 | # incompatible versions: |
---|
| 1450 | # SysV /etc/install, /usr/sbin/install |
---|
| 1451 | # SunOS /usr/etc/install |
---|
| 1452 | # IRIX /sbin/install |
---|
| 1453 | # AIX /bin/install |
---|
| 1454 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1455 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1456 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1457 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1458 | # OS/2's system install, which has a completely different semantic |
---|
| 1459 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1460 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1461 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1462 | if test -z "$INSTALL"; then |
---|
| 1463 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1465 | else |
---|
| 1466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1467 | for as_dir in $PATH |
---|
| 1468 | do |
---|
| 1469 | IFS=$as_save_IFS |
---|
| 1470 | test -z "$as_dir" && as_dir=. |
---|
| 1471 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1472 | case $as_dir/ in |
---|
| 1473 | ./ | .// | /cC/* | \ |
---|
| 1474 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1475 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1476 | /usr/ucb/* ) ;; |
---|
| 1477 | *) |
---|
| 1478 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1479 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1480 | # by default. |
---|
| 1481 | for ac_prog in ginstall scoinst install; do |
---|
| 1482 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1483 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1484 | if test $ac_prog = install && |
---|
| 1485 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1486 | # AIX install. It has an incompatible calling convention. |
---|
| 1487 | : |
---|
| 1488 | elif test $ac_prog = install && |
---|
| 1489 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1490 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1491 | : |
---|
| 1492 | else |
---|
| 1493 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1494 | break 3 |
---|
| 1495 | fi |
---|
[1853] | 1496 | fi |
---|
[1956] | 1497 | done |
---|
| 1498 | done |
---|
| 1499 | ;; |
---|
| 1500 | esac |
---|
| 1501 | done |
---|
| 1502 | |
---|
| 1503 | |
---|
[1853] | 1504 | fi |
---|
[1956] | 1505 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1506 | INSTALL=$ac_cv_path_install |
---|
| 1507 | else |
---|
| 1508 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1509 | # path for INSTALL within a source directory, because that will |
---|
| 1510 | # break other packages using the cache if that directory is |
---|
| 1511 | # removed, or if the path is relative. |
---|
| 1512 | INSTALL=$ac_install_sh |
---|
| 1513 | fi |
---|
| 1514 | fi |
---|
| 1515 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1516 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1517 | |
---|
| 1518 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1519 | # It thinks the first close brace ends the variable substitution. |
---|
| 1520 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1521 | |
---|
| 1522 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1523 | |
---|
| 1524 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1525 | |
---|
| 1526 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1527 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1528 | # Just in case |
---|
| 1529 | sleep 1 |
---|
| 1530 | echo timestamp > conftest.file |
---|
| 1531 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1532 | # arguments. Must try -L first in case configure is actually a |
---|
| 1533 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1534 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1535 | # directory). |
---|
| 1536 | if ( |
---|
| 1537 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1538 | if test "$*" = "X"; then |
---|
| 1539 | # -L didn't work. |
---|
| 1540 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1541 | fi |
---|
| 1542 | rm -f conftest.file |
---|
| 1543 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1544 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1545 | |
---|
| 1546 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1547 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1548 | # broken ls alias from the environment. This has actually |
---|
| 1549 | # happened. Such a system could not be considered "sane". |
---|
| 1550 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1551 | alias in your environment" >&5 |
---|
| 1552 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1553 | alias in your environment" >&2;} |
---|
| 1554 | { (exit 1); exit 1; }; } |
---|
| 1555 | fi |
---|
| 1556 | |
---|
| 1557 | test "$2" = conftest.file |
---|
| 1558 | ) |
---|
| 1559 | then |
---|
| 1560 | # Ok. |
---|
| 1561 | : |
---|
[1853] | 1562 | else |
---|
[1956] | 1563 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1564 | Check your system clock" >&5 |
---|
| 1565 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1566 | Check your system clock" >&2;} |
---|
| 1567 | { (exit 1); exit 1; }; } |
---|
[1853] | 1568 | fi |
---|
[1956] | 1569 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1570 | echo "${ECHO_T}yes" >&6 |
---|
| 1571 | test "$program_prefix" != NONE && |
---|
| 1572 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1573 | # Use a double $ so make ignores it. |
---|
| 1574 | test "$program_suffix" != NONE && |
---|
| 1575 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1576 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1577 | # By default was `s,x,x', remove it if useless. |
---|
| 1578 | cat <<\_ACEOF >conftest.sed |
---|
| 1579 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1580 | _ACEOF |
---|
| 1581 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1582 | rm conftest.sed |
---|
[1853] | 1583 | |
---|
[1956] | 1584 | # expand $ac_aux_dir to an absolute path |
---|
| 1585 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1586 | |
---|
| 1587 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1588 | # Use eval to expand $SHELL |
---|
| 1589 | if eval "$MISSING --run true"; then |
---|
| 1590 | am_missing_run="$MISSING --run " |
---|
| 1591 | else |
---|
| 1592 | am_missing_run= |
---|
| 1593 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1594 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1595 | fi |
---|
| 1596 | |
---|
[2819] | 1597 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
[2706] | 1598 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
| 1599 | # argument. Indeed, we sometimes output rules like |
---|
| 1600 | # $(mkdir_p) $(somedir) |
---|
| 1601 | # where $(somedir) is conditionally defined. |
---|
| 1602 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
| 1603 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
| 1604 | mkdir_p='mkdir -p -- .' |
---|
| 1605 | else |
---|
| 1606 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1607 | # recognize any option. It will interpret all options as |
---|
| 1608 | # directories to create, and then abort because `.' already |
---|
| 1609 | # exists. |
---|
[2819] | 1610 | for d in ./-p ./--version; |
---|
[2706] | 1611 | do |
---|
| 1612 | test -d $d && rmdir $d |
---|
| 1613 | done |
---|
| 1614 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1615 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1616 | mkdir_p='$(mkinstalldirs)' |
---|
| 1617 | else |
---|
| 1618 | mkdir_p='$(install_sh) -d' |
---|
| 1619 | fi |
---|
| 1620 | fi |
---|
| 1621 | |
---|
[1956] | 1622 | for ac_prog in gawk mawk nawk awk |
---|
| 1623 | do |
---|
| 1624 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1625 | set dummy $ac_prog; ac_word=$2 |
---|
| 1626 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1628 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1630 | else |
---|
| 1631 | if test -n "$AWK"; then |
---|
| 1632 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1633 | else |
---|
| 1634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1635 | for as_dir in $PATH |
---|
| 1636 | do |
---|
| 1637 | IFS=$as_save_IFS |
---|
| 1638 | test -z "$as_dir" && as_dir=. |
---|
| 1639 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1640 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1641 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1642 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1643 | break 2 |
---|
| 1644 | fi |
---|
| 1645 | done |
---|
| 1646 | done |
---|
| 1647 | |
---|
| 1648 | fi |
---|
| 1649 | fi |
---|
| 1650 | AWK=$ac_cv_prog_AWK |
---|
| 1651 | if test -n "$AWK"; then |
---|
| 1652 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1653 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1654 | else |
---|
| 1655 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1656 | echo "${ECHO_T}no" >&6 |
---|
| 1657 | fi |
---|
| 1658 | |
---|
| 1659 | test -n "$AWK" && break |
---|
| 1660 | done |
---|
| 1661 | |
---|
| 1662 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1663 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1664 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1665 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1667 | else |
---|
| 1668 | cat >conftest.make <<\_ACEOF |
---|
| 1669 | all: |
---|
| 1670 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1671 | _ACEOF |
---|
| 1672 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1673 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1674 | if test -n "$ac_maketemp"; then |
---|
| 1675 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1676 | else |
---|
| 1677 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1678 | fi |
---|
| 1679 | rm -f conftest.make |
---|
| 1680 | fi |
---|
| 1681 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1682 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1683 | echo "${ECHO_T}yes" >&6 |
---|
| 1684 | SET_MAKE= |
---|
| 1685 | else |
---|
| 1686 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1687 | echo "${ECHO_T}no" >&6 |
---|
| 1688 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1689 | fi |
---|
| 1690 | |
---|
| 1691 | rm -rf .tst 2>/dev/null |
---|
| 1692 | mkdir .tst 2>/dev/null |
---|
| 1693 | if test -d .tst; then |
---|
| 1694 | am__leading_dot=. |
---|
| 1695 | else |
---|
| 1696 | am__leading_dot=_ |
---|
| 1697 | fi |
---|
| 1698 | rmdir .tst 2>/dev/null |
---|
| 1699 | |
---|
[2706] | 1700 | # test to see if srcdir already configured |
---|
[1956] | 1701 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1702 | test -f $srcdir/config.status; then |
---|
| 1703 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1704 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1705 | { (exit 1); exit 1; }; } |
---|
| 1706 | fi |
---|
| 1707 | |
---|
| 1708 | # test whether we have cygpath |
---|
| 1709 | if test -z "$CYGPATH_W"; then |
---|
| 1710 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1711 | CYGPATH_W='cygpath -w' |
---|
| 1712 | else |
---|
| 1713 | CYGPATH_W=echo |
---|
| 1714 | fi |
---|
| 1715 | fi |
---|
| 1716 | |
---|
| 1717 | |
---|
| 1718 | # Define the identity of the package. |
---|
| 1719 | PACKAGE='orxonox' |
---|
| 1720 | VERSION='0.1-pre-alpha' |
---|
| 1721 | |
---|
| 1722 | |
---|
| 1723 | cat >>confdefs.h <<_ACEOF |
---|
| 1724 | #define PACKAGE "$PACKAGE" |
---|
| 1725 | _ACEOF |
---|
| 1726 | |
---|
| 1727 | |
---|
| 1728 | cat >>confdefs.h <<_ACEOF |
---|
| 1729 | #define VERSION "$VERSION" |
---|
| 1730 | _ACEOF |
---|
| 1731 | |
---|
| 1732 | # Some tools Automake needs. |
---|
| 1733 | |
---|
| 1734 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1735 | |
---|
| 1736 | |
---|
| 1737 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1738 | |
---|
| 1739 | |
---|
| 1740 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1741 | |
---|
| 1742 | |
---|
| 1743 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1744 | |
---|
| 1745 | |
---|
| 1746 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1747 | |
---|
| 1748 | |
---|
| 1749 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1750 | |
---|
| 1751 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1752 | |
---|
| 1753 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1754 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1755 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1756 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1757 | if test "$cross_compiling" != no; then |
---|
| 1758 | if test -n "$ac_tool_prefix"; then |
---|
| 1759 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1760 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1761 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1762 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1763 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1765 | else |
---|
| 1766 | if test -n "$STRIP"; then |
---|
| 1767 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1768 | else |
---|
| 1769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1770 | for as_dir in $PATH |
---|
| 1771 | do |
---|
| 1772 | IFS=$as_save_IFS |
---|
| 1773 | test -z "$as_dir" && as_dir=. |
---|
| 1774 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1775 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1776 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1778 | break 2 |
---|
| 1779 | fi |
---|
| 1780 | done |
---|
| 1781 | done |
---|
| 1782 | |
---|
| 1783 | fi |
---|
| 1784 | fi |
---|
| 1785 | STRIP=$ac_cv_prog_STRIP |
---|
| 1786 | if test -n "$STRIP"; then |
---|
| 1787 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1788 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1789 | else |
---|
| 1790 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1791 | echo "${ECHO_T}no" >&6 |
---|
| 1792 | fi |
---|
| 1793 | |
---|
| 1794 | fi |
---|
| 1795 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1796 | ac_ct_STRIP=$STRIP |
---|
| 1797 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1798 | set dummy strip; ac_word=$2 |
---|
| 1799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1801 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1803 | else |
---|
| 1804 | if test -n "$ac_ct_STRIP"; then |
---|
| 1805 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1806 | else |
---|
| 1807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1808 | for as_dir in $PATH |
---|
| 1809 | do |
---|
| 1810 | IFS=$as_save_IFS |
---|
| 1811 | test -z "$as_dir" && as_dir=. |
---|
| 1812 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1814 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1816 | break 2 |
---|
| 1817 | fi |
---|
| 1818 | done |
---|
| 1819 | done |
---|
| 1820 | |
---|
| 1821 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1822 | fi |
---|
| 1823 | fi |
---|
| 1824 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1825 | if test -n "$ac_ct_STRIP"; then |
---|
| 1826 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1827 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1828 | else |
---|
| 1829 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1830 | echo "${ECHO_T}no" >&6 |
---|
| 1831 | fi |
---|
| 1832 | |
---|
| 1833 | STRIP=$ac_ct_STRIP |
---|
| 1834 | else |
---|
| 1835 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1836 | fi |
---|
| 1837 | |
---|
| 1838 | fi |
---|
| 1839 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1840 | |
---|
| 1841 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1842 | # some platforms. |
---|
| 1843 | |
---|
| 1844 | |
---|
| 1845 | |
---|
| 1846 | |
---|
[2627] | 1847 | |
---|
[1959] | 1848 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1849 | |
---|
| 1850 | |
---|
[2018] | 1851 | |
---|
[1956] | 1852 | # Checks for programs. |
---|
| 1853 | ac_ext=cc |
---|
| 1854 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1855 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1856 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1857 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1858 | if test -n "$ac_tool_prefix"; then |
---|
| 1859 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1860 | do |
---|
| 1861 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1862 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1865 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1867 | else |
---|
| 1868 | if test -n "$CXX"; then |
---|
| 1869 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1870 | else |
---|
| 1871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1872 | for as_dir in $PATH |
---|
| 1873 | do |
---|
| 1874 | IFS=$as_save_IFS |
---|
| 1875 | test -z "$as_dir" && as_dir=. |
---|
| 1876 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1878 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1880 | break 2 |
---|
| 1881 | fi |
---|
| 1882 | done |
---|
| 1883 | done |
---|
| 1884 | |
---|
| 1885 | fi |
---|
| 1886 | fi |
---|
| 1887 | CXX=$ac_cv_prog_CXX |
---|
| 1888 | if test -n "$CXX"; then |
---|
| 1889 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1890 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1891 | else |
---|
| 1892 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1893 | echo "${ECHO_T}no" >&6 |
---|
| 1894 | fi |
---|
| 1895 | |
---|
| 1896 | test -n "$CXX" && break |
---|
| 1897 | done |
---|
| 1898 | fi |
---|
| 1899 | if test -z "$CXX"; then |
---|
| 1900 | ac_ct_CXX=$CXX |
---|
| 1901 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1902 | do |
---|
| 1903 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1904 | set dummy $ac_prog; ac_word=$2 |
---|
| 1905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1907 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1909 | else |
---|
| 1910 | if test -n "$ac_ct_CXX"; then |
---|
| 1911 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1912 | else |
---|
| 1913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1914 | for as_dir in $PATH |
---|
| 1915 | do |
---|
| 1916 | IFS=$as_save_IFS |
---|
| 1917 | test -z "$as_dir" && as_dir=. |
---|
| 1918 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1920 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1922 | break 2 |
---|
| 1923 | fi |
---|
| 1924 | done |
---|
| 1925 | done |
---|
| 1926 | |
---|
| 1927 | fi |
---|
| 1928 | fi |
---|
| 1929 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1930 | if test -n "$ac_ct_CXX"; then |
---|
| 1931 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1932 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1933 | else |
---|
| 1934 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1935 | echo "${ECHO_T}no" >&6 |
---|
| 1936 | fi |
---|
| 1937 | |
---|
| 1938 | test -n "$ac_ct_CXX" && break |
---|
| 1939 | done |
---|
| 1940 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1941 | |
---|
| 1942 | CXX=$ac_ct_CXX |
---|
| 1943 | fi |
---|
| 1944 | |
---|
| 1945 | |
---|
| 1946 | # Provide some information about the compiler. |
---|
| 1947 | echo "$as_me:$LINENO:" \ |
---|
| 1948 | "checking for C++ compiler version" >&5 |
---|
| 1949 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1950 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1951 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1952 | ac_status=$? |
---|
| 1953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1954 | (exit $ac_status); } |
---|
| 1955 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1956 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1957 | ac_status=$? |
---|
| 1958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1959 | (exit $ac_status); } |
---|
| 1960 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1961 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1962 | ac_status=$? |
---|
| 1963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1964 | (exit $ac_status); } |
---|
| 1965 | |
---|
| 1966 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1967 | /* confdefs.h. */ |
---|
| 1968 | _ACEOF |
---|
| 1969 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1970 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1971 | /* end confdefs.h. */ |
---|
| 1972 | |
---|
| 1973 | int |
---|
| 1974 | main () |
---|
| 1975 | { |
---|
| 1976 | |
---|
| 1977 | ; |
---|
| 1978 | return 0; |
---|
| 1979 | } |
---|
| 1980 | _ACEOF |
---|
| 1981 | ac_clean_files_save=$ac_clean_files |
---|
| 1982 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1983 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1984 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1985 | # of exeext. |
---|
| 1986 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1987 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1988 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1989 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1990 | (eval $ac_link_default) 2>&5 |
---|
| 1991 | ac_status=$? |
---|
| 1992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1993 | (exit $ac_status); }; then |
---|
| 1994 | # Find the output, starting from the most likely. This scheme is |
---|
| 1995 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 1996 | # resort. |
---|
| 1997 | |
---|
| 1998 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 1999 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 2000 | ac_cv_exeext= |
---|
| 2001 | # b.out is created by i960 compilers. |
---|
| 2002 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 2003 | do |
---|
| 2004 | test -f "$ac_file" || continue |
---|
| 2005 | case $ac_file in |
---|
| 2006 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 2007 | ;; |
---|
| 2008 | conftest.$ac_ext ) |
---|
| 2009 | # This is the source file. |
---|
| 2010 | ;; |
---|
| 2011 | [ab].out ) |
---|
| 2012 | # We found the default executable, but exeext='' is most |
---|
| 2013 | # certainly right. |
---|
| 2014 | break;; |
---|
| 2015 | *.* ) |
---|
| 2016 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2017 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 2018 | # but it would be cool to find out if it's true. Does anybody |
---|
| 2019 | # maintain Libtool? --akim. |
---|
| 2020 | export ac_cv_exeext |
---|
| 2021 | break;; |
---|
| 2022 | * ) |
---|
| 2023 | break;; |
---|
| 2024 | esac |
---|
| 2025 | done |
---|
| 2026 | else |
---|
| 2027 | echo "$as_me: failed program was:" >&5 |
---|
| 2028 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2029 | |
---|
| 2030 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 2031 | See \`config.log' for more details." >&5 |
---|
| 2032 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 2033 | See \`config.log' for more details." >&2;} |
---|
| 2034 | { (exit 77); exit 77; }; } |
---|
| 2035 | fi |
---|
| 2036 | |
---|
| 2037 | ac_exeext=$ac_cv_exeext |
---|
| 2038 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2039 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 2040 | |
---|
| 2041 | # Check the compiler produces executables we can run. If not, either |
---|
| 2042 | # the compiler is broken, or we cross compile. |
---|
| 2043 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 2044 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 2045 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2046 | # If not cross compiling, check that we can run a simple program. |
---|
| 2047 | if test "$cross_compiling" != yes; then |
---|
| 2048 | if { ac_try='./$ac_file' |
---|
| 2049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2050 | (eval $ac_try) 2>&5 |
---|
| 2051 | ac_status=$? |
---|
| 2052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2053 | (exit $ac_status); }; }; then |
---|
| 2054 | cross_compiling=no |
---|
| 2055 | else |
---|
| 2056 | if test "$cross_compiling" = maybe; then |
---|
| 2057 | cross_compiling=yes |
---|
| 2058 | else |
---|
| 2059 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 2060 | If you meant to cross compile, use \`--host'. |
---|
| 2061 | See \`config.log' for more details." >&5 |
---|
| 2062 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 2063 | If you meant to cross compile, use \`--host'. |
---|
| 2064 | See \`config.log' for more details." >&2;} |
---|
| 2065 | { (exit 1); exit 1; }; } |
---|
| 2066 | fi |
---|
| 2067 | fi |
---|
| 2068 | fi |
---|
| 2069 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2070 | echo "${ECHO_T}yes" >&6 |
---|
| 2071 | |
---|
| 2072 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2073 | ac_clean_files=$ac_clean_files_save |
---|
| 2074 | # Check the compiler produces executables we can run. If not, either |
---|
| 2075 | # the compiler is broken, or we cross compile. |
---|
| 2076 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2077 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2078 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2079 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2080 | |
---|
| 2081 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2082 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2084 | (eval $ac_link) 2>&5 |
---|
| 2085 | ac_status=$? |
---|
| 2086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2087 | (exit $ac_status); }; then |
---|
| 2088 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2089 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2090 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2091 | # `rm'. |
---|
| 2092 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2093 | test -f "$ac_file" || continue |
---|
| 2094 | case $ac_file in |
---|
| 2095 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2096 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2097 | export ac_cv_exeext |
---|
| 2098 | break;; |
---|
| 2099 | * ) break;; |
---|
| 2100 | esac |
---|
| 2101 | done |
---|
| 2102 | else |
---|
| 2103 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2104 | See \`config.log' for more details." >&5 |
---|
| 2105 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2106 | See \`config.log' for more details." >&2;} |
---|
| 2107 | { (exit 1); exit 1; }; } |
---|
| 2108 | fi |
---|
| 2109 | |
---|
| 2110 | rm -f conftest$ac_cv_exeext |
---|
| 2111 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2112 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2113 | |
---|
| 2114 | rm -f conftest.$ac_ext |
---|
| 2115 | EXEEXT=$ac_cv_exeext |
---|
| 2116 | ac_exeext=$EXEEXT |
---|
| 2117 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2118 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2119 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2121 | else |
---|
| 2122 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2123 | /* confdefs.h. */ |
---|
| 2124 | _ACEOF |
---|
| 2125 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2126 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2127 | /* end confdefs.h. */ |
---|
| 2128 | |
---|
| 2129 | int |
---|
| 2130 | main () |
---|
| 2131 | { |
---|
| 2132 | |
---|
| 2133 | ; |
---|
| 2134 | return 0; |
---|
| 2135 | } |
---|
| 2136 | _ACEOF |
---|
| 2137 | rm -f conftest.o conftest.obj |
---|
| 2138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2139 | (eval $ac_compile) 2>&5 |
---|
| 2140 | ac_status=$? |
---|
| 2141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2142 | (exit $ac_status); }; then |
---|
| 2143 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2144 | case $ac_file in |
---|
| 2145 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2146 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2147 | break;; |
---|
| 2148 | esac |
---|
| 2149 | done |
---|
| 2150 | else |
---|
| 2151 | echo "$as_me: failed program was:" >&5 |
---|
| 2152 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2153 | |
---|
| 2154 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2155 | See \`config.log' for more details." >&5 |
---|
| 2156 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2157 | See \`config.log' for more details." >&2;} |
---|
| 2158 | { (exit 1); exit 1; }; } |
---|
| 2159 | fi |
---|
| 2160 | |
---|
| 2161 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2162 | fi |
---|
| 2163 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2164 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2165 | OBJEXT=$ac_cv_objext |
---|
| 2166 | ac_objext=$OBJEXT |
---|
| 2167 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2168 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2169 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2171 | else |
---|
| 2172 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2173 | /* confdefs.h. */ |
---|
| 2174 | _ACEOF |
---|
| 2175 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2176 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2177 | /* end confdefs.h. */ |
---|
| 2178 | |
---|
| 2179 | int |
---|
| 2180 | main () |
---|
| 2181 | { |
---|
| 2182 | #ifndef __GNUC__ |
---|
| 2183 | choke me |
---|
| 2184 | #endif |
---|
| 2185 | |
---|
| 2186 | ; |
---|
| 2187 | return 0; |
---|
| 2188 | } |
---|
| 2189 | _ACEOF |
---|
| 2190 | rm -f conftest.$ac_objext |
---|
| 2191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2192 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2193 | ac_status=$? |
---|
| 2194 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2195 | rm -f conftest.er1 |
---|
| 2196 | cat conftest.err >&5 |
---|
| 2197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2198 | (exit $ac_status); } && |
---|
| 2199 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2200 | || test ! -s conftest.err' |
---|
| 2201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2202 | (eval $ac_try) 2>&5 |
---|
| 2203 | ac_status=$? |
---|
| 2204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2205 | (exit $ac_status); }; } && |
---|
| 2206 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2208 | (eval $ac_try) 2>&5 |
---|
| 2209 | ac_status=$? |
---|
| 2210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2211 | (exit $ac_status); }; }; then |
---|
| 2212 | ac_compiler_gnu=yes |
---|
| 2213 | else |
---|
| 2214 | echo "$as_me: failed program was:" >&5 |
---|
| 2215 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2216 | |
---|
| 2217 | ac_compiler_gnu=no |
---|
| 2218 | fi |
---|
| 2219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2220 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2221 | |
---|
| 2222 | fi |
---|
| 2223 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2224 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2225 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2226 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2227 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2228 | CXXFLAGS="-g" |
---|
| 2229 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2230 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2231 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2233 | else |
---|
| 2234 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2235 | /* confdefs.h. */ |
---|
| 2236 | _ACEOF |
---|
| 2237 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2238 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2239 | /* end confdefs.h. */ |
---|
| 2240 | |
---|
| 2241 | int |
---|
| 2242 | main () |
---|
| 2243 | { |
---|
| 2244 | |
---|
| 2245 | ; |
---|
| 2246 | return 0; |
---|
| 2247 | } |
---|
| 2248 | _ACEOF |
---|
| 2249 | rm -f conftest.$ac_objext |
---|
| 2250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2251 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2252 | ac_status=$? |
---|
| 2253 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2254 | rm -f conftest.er1 |
---|
| 2255 | cat conftest.err >&5 |
---|
| 2256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2257 | (exit $ac_status); } && |
---|
| 2258 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2259 | || test ! -s conftest.err' |
---|
| 2260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2261 | (eval $ac_try) 2>&5 |
---|
| 2262 | ac_status=$? |
---|
| 2263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2264 | (exit $ac_status); }; } && |
---|
| 2265 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2267 | (eval $ac_try) 2>&5 |
---|
| 2268 | ac_status=$? |
---|
| 2269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2270 | (exit $ac_status); }; }; then |
---|
| 2271 | ac_cv_prog_cxx_g=yes |
---|
| 2272 | else |
---|
| 2273 | echo "$as_me: failed program was:" >&5 |
---|
| 2274 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2275 | |
---|
| 2276 | ac_cv_prog_cxx_g=no |
---|
| 2277 | fi |
---|
| 2278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2279 | fi |
---|
| 2280 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2281 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2282 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2283 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2284 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2285 | if test "$GXX" = yes; then |
---|
| 2286 | CXXFLAGS="-g -O2" |
---|
| 2287 | else |
---|
| 2288 | CXXFLAGS="-g" |
---|
| 2289 | fi |
---|
| 2290 | else |
---|
| 2291 | if test "$GXX" = yes; then |
---|
| 2292 | CXXFLAGS="-O2" |
---|
| 2293 | else |
---|
| 2294 | CXXFLAGS= |
---|
| 2295 | fi |
---|
| 2296 | fi |
---|
| 2297 | for ac_declaration in \ |
---|
| 2298 | '' \ |
---|
| 2299 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2300 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2301 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2302 | 'extern "C" void exit (int);' \ |
---|
| 2303 | 'void exit (int);' |
---|
| 2304 | do |
---|
| 2305 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2306 | /* confdefs.h. */ |
---|
| 2307 | _ACEOF |
---|
| 2308 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2309 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2310 | /* end confdefs.h. */ |
---|
| 2311 | $ac_declaration |
---|
| 2312 | #include <stdlib.h> |
---|
| 2313 | int |
---|
| 2314 | main () |
---|
| 2315 | { |
---|
| 2316 | exit (42); |
---|
| 2317 | ; |
---|
| 2318 | return 0; |
---|
| 2319 | } |
---|
| 2320 | _ACEOF |
---|
| 2321 | rm -f conftest.$ac_objext |
---|
| 2322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2323 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2324 | ac_status=$? |
---|
| 2325 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2326 | rm -f conftest.er1 |
---|
| 2327 | cat conftest.err >&5 |
---|
| 2328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2329 | (exit $ac_status); } && |
---|
| 2330 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2331 | || test ! -s conftest.err' |
---|
| 2332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2333 | (eval $ac_try) 2>&5 |
---|
| 2334 | ac_status=$? |
---|
| 2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2336 | (exit $ac_status); }; } && |
---|
| 2337 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2339 | (eval $ac_try) 2>&5 |
---|
| 2340 | ac_status=$? |
---|
| 2341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2342 | (exit $ac_status); }; }; then |
---|
| 2343 | : |
---|
| 2344 | else |
---|
| 2345 | echo "$as_me: failed program was:" >&5 |
---|
| 2346 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2347 | |
---|
| 2348 | continue |
---|
| 2349 | fi |
---|
| 2350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2351 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2352 | /* confdefs.h. */ |
---|
| 2353 | _ACEOF |
---|
| 2354 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2355 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2356 | /* end confdefs.h. */ |
---|
| 2357 | $ac_declaration |
---|
| 2358 | int |
---|
| 2359 | main () |
---|
| 2360 | { |
---|
| 2361 | exit (42); |
---|
| 2362 | ; |
---|
| 2363 | return 0; |
---|
| 2364 | } |
---|
| 2365 | _ACEOF |
---|
| 2366 | rm -f conftest.$ac_objext |
---|
| 2367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2368 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2369 | ac_status=$? |
---|
| 2370 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2371 | rm -f conftest.er1 |
---|
| 2372 | cat conftest.err >&5 |
---|
| 2373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2374 | (exit $ac_status); } && |
---|
| 2375 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2376 | || test ! -s conftest.err' |
---|
| 2377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2378 | (eval $ac_try) 2>&5 |
---|
| 2379 | ac_status=$? |
---|
| 2380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2381 | (exit $ac_status); }; } && |
---|
| 2382 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2384 | (eval $ac_try) 2>&5 |
---|
| 2385 | ac_status=$? |
---|
| 2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2387 | (exit $ac_status); }; }; then |
---|
| 2388 | break |
---|
| 2389 | else |
---|
| 2390 | echo "$as_me: failed program was:" >&5 |
---|
| 2391 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2392 | |
---|
| 2393 | fi |
---|
| 2394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2395 | done |
---|
| 2396 | rm -f conftest* |
---|
| 2397 | if test -n "$ac_declaration"; then |
---|
| 2398 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2399 | echo $ac_declaration >>confdefs.h |
---|
| 2400 | echo '#endif' >>confdefs.h |
---|
| 2401 | fi |
---|
| 2402 | |
---|
| 2403 | ac_ext=c |
---|
| 2404 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2405 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2406 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2407 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2408 | DEPDIR="${am__leading_dot}deps" |
---|
| 2409 | |
---|
| 2410 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2411 | |
---|
| 2412 | |
---|
| 2413 | am_make=${MAKE-make} |
---|
| 2414 | cat > confinc << 'END' |
---|
| 2415 | am__doit: |
---|
| 2416 | @echo done |
---|
| 2417 | .PHONY: am__doit |
---|
| 2418 | END |
---|
| 2419 | # If we don't find an include directive, just comment out the code. |
---|
| 2420 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2421 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2422 | am__include="#" |
---|
| 2423 | am__quote= |
---|
| 2424 | _am_result=none |
---|
| 2425 | # First try GNU make style include. |
---|
| 2426 | echo "include confinc" > confmf |
---|
| 2427 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2428 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2429 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2430 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2431 | # case it prints its new name instead of `make'. |
---|
| 2432 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2433 | am__include=include |
---|
| 2434 | am__quote= |
---|
| 2435 | _am_result=GNU |
---|
| 2436 | fi |
---|
| 2437 | # Now try BSD make style include. |
---|
| 2438 | if test "$am__include" = "#"; then |
---|
| 2439 | echo '.include "confinc"' > confmf |
---|
| 2440 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2441 | am__include=.include |
---|
| 2442 | am__quote="\"" |
---|
| 2443 | _am_result=BSD |
---|
| 2444 | fi |
---|
| 2445 | fi |
---|
| 2446 | |
---|
| 2447 | |
---|
| 2448 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2449 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2450 | rm -f confinc confmf |
---|
| 2451 | |
---|
| 2452 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2453 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2454 | enableval="$enable_dependency_tracking" |
---|
| 2455 | |
---|
| 2456 | fi; |
---|
| 2457 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2458 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2459 | AMDEPBACKSLASH='\' |
---|
| 2460 | fi |
---|
| 2461 | |
---|
| 2462 | |
---|
| 2463 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2464 | AMDEP_TRUE= |
---|
| 2465 | AMDEP_FALSE='#' |
---|
| 2466 | else |
---|
| 2467 | AMDEP_TRUE='#' |
---|
| 2468 | AMDEP_FALSE= |
---|
| 2469 | fi |
---|
| 2470 | |
---|
| 2471 | |
---|
| 2472 | |
---|
| 2473 | |
---|
| 2474 | depcc="$CXX" am_compiler_list= |
---|
| 2475 | |
---|
| 2476 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2477 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2478 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2480 | else |
---|
| 2481 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2482 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2483 | # making bogus files that we don't know about and never remove. For |
---|
| 2484 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2485 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2486 | # in D'. |
---|
| 2487 | mkdir conftest.dir |
---|
| 2488 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2489 | # using a relative directory. |
---|
| 2490 | cp "$am_depcomp" conftest.dir |
---|
| 2491 | cd conftest.dir |
---|
| 2492 | # We will build objects and dependencies in a subdirectory because |
---|
| 2493 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2494 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2495 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2496 | # the current directory while Tru64 will put them in the object |
---|
| 2497 | # directory. |
---|
| 2498 | mkdir sub |
---|
| 2499 | |
---|
| 2500 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2501 | if test "$am_compiler_list" = ""; then |
---|
| 2502 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2503 | fi |
---|
| 2504 | for depmode in $am_compiler_list; do |
---|
| 2505 | # Setup a source with many dependencies, because some compilers |
---|
| 2506 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2507 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2508 | # |
---|
| 2509 | # We need to recreate these files for each test, as the compiler may |
---|
| 2510 | # overwrite some of them when testing with obscure command lines. |
---|
| 2511 | # This happens at least with the AIX C compiler. |
---|
| 2512 | : > sub/conftest.c |
---|
| 2513 | for i in 1 2 3 4 5 6; do |
---|
| 2514 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2819] | 2515 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 2516 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 2517 | touch sub/conftst$i.h |
---|
[1956] | 2518 | done |
---|
| 2519 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2520 | |
---|
| 2521 | case $depmode in |
---|
| 2522 | nosideeffect) |
---|
| 2523 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2524 | # only be used when explicitly requested |
---|
| 2525 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2526 | continue |
---|
| 2527 | else |
---|
| 2528 | break |
---|
| 2529 | fi |
---|
| 2530 | ;; |
---|
| 2531 | none) break ;; |
---|
| 2532 | esac |
---|
| 2533 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2534 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2535 | # handle `-M -o', and we need to detect this. |
---|
| 2536 | if depmode=$depmode \ |
---|
| 2537 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2538 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2539 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2540 | >/dev/null 2>conftest.err && |
---|
| 2541 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2542 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2543 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2544 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2819] | 2545 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 2546 | # that says an option was ignored or not supported. |
---|
| 2547 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 2548 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 2549 | # The diagnosis changed in icc 8.0: |
---|
| 2550 | # icc: Command line remark: option '-MP' not supported |
---|
| 2551 | if (grep 'ignoring option' conftest.err || |
---|
| 2552 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 2553 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2554 | break |
---|
| 2555 | fi |
---|
| 2556 | fi |
---|
| 2557 | done |
---|
| 2558 | |
---|
| 2559 | cd .. |
---|
| 2560 | rm -rf conftest.dir |
---|
| 2561 | else |
---|
| 2562 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2563 | fi |
---|
| 2564 | |
---|
| 2565 | fi |
---|
| 2566 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2567 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2568 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2569 | |
---|
| 2570 | |
---|
| 2571 | |
---|
| 2572 | if |
---|
| 2573 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2574 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2575 | am__fastdepCXX_TRUE= |
---|
| 2576 | am__fastdepCXX_FALSE='#' |
---|
| 2577 | else |
---|
| 2578 | am__fastdepCXX_TRUE='#' |
---|
| 2579 | am__fastdepCXX_FALSE= |
---|
| 2580 | fi |
---|
| 2581 | |
---|
| 2582 | |
---|
| 2583 | ac_ext=c |
---|
| 2584 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2588 | if test -n "$ac_tool_prefix"; then |
---|
| 2589 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2590 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2591 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2593 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2595 | else |
---|
| 2596 | if test -n "$CC"; then |
---|
| 2597 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2598 | else |
---|
| 2599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2600 | for as_dir in $PATH |
---|
| 2601 | do |
---|
| 2602 | IFS=$as_save_IFS |
---|
| 2603 | test -z "$as_dir" && as_dir=. |
---|
| 2604 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2605 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2606 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2608 | break 2 |
---|
| 2609 | fi |
---|
| 2610 | done |
---|
| 2611 | done |
---|
| 2612 | |
---|
| 2613 | fi |
---|
| 2614 | fi |
---|
| 2615 | CC=$ac_cv_prog_CC |
---|
| 2616 | if test -n "$CC"; then |
---|
| 2617 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2618 | echo "${ECHO_T}$CC" >&6 |
---|
| 2619 | else |
---|
| 2620 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2621 | echo "${ECHO_T}no" >&6 |
---|
| 2622 | fi |
---|
| 2623 | |
---|
| 2624 | fi |
---|
| 2625 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2626 | ac_ct_CC=$CC |
---|
| 2627 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2628 | set dummy gcc; ac_word=$2 |
---|
| 2629 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2630 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2631 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2633 | else |
---|
| 2634 | if test -n "$ac_ct_CC"; then |
---|
| 2635 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2636 | else |
---|
| 2637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2638 | for as_dir in $PATH |
---|
| 2639 | do |
---|
| 2640 | IFS=$as_save_IFS |
---|
| 2641 | test -z "$as_dir" && as_dir=. |
---|
| 2642 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2643 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2644 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2645 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2646 | break 2 |
---|
| 2647 | fi |
---|
| 2648 | done |
---|
| 2649 | done |
---|
| 2650 | |
---|
| 2651 | fi |
---|
| 2652 | fi |
---|
| 2653 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2654 | if test -n "$ac_ct_CC"; then |
---|
| 2655 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2656 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2657 | else |
---|
| 2658 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2659 | echo "${ECHO_T}no" >&6 |
---|
| 2660 | fi |
---|
| 2661 | |
---|
| 2662 | CC=$ac_ct_CC |
---|
| 2663 | else |
---|
| 2664 | CC="$ac_cv_prog_CC" |
---|
| 2665 | fi |
---|
| 2666 | |
---|
| 2667 | if test -z "$CC"; then |
---|
| 2668 | if test -n "$ac_tool_prefix"; then |
---|
| 2669 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2670 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2671 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2673 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2675 | else |
---|
| 2676 | if test -n "$CC"; then |
---|
| 2677 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2678 | else |
---|
| 2679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2680 | for as_dir in $PATH |
---|
| 2681 | do |
---|
| 2682 | IFS=$as_save_IFS |
---|
| 2683 | test -z "$as_dir" && as_dir=. |
---|
| 2684 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2685 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2686 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2688 | break 2 |
---|
| 2689 | fi |
---|
| 2690 | done |
---|
| 2691 | done |
---|
| 2692 | |
---|
| 2693 | fi |
---|
| 2694 | fi |
---|
| 2695 | CC=$ac_cv_prog_CC |
---|
| 2696 | if test -n "$CC"; then |
---|
| 2697 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2698 | echo "${ECHO_T}$CC" >&6 |
---|
| 2699 | else |
---|
| 2700 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2701 | echo "${ECHO_T}no" >&6 |
---|
| 2702 | fi |
---|
| 2703 | |
---|
| 2704 | fi |
---|
| 2705 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2706 | ac_ct_CC=$CC |
---|
| 2707 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2708 | set dummy cc; ac_word=$2 |
---|
| 2709 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2711 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2713 | else |
---|
| 2714 | if test -n "$ac_ct_CC"; then |
---|
| 2715 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2716 | else |
---|
| 2717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2718 | for as_dir in $PATH |
---|
| 2719 | do |
---|
| 2720 | IFS=$as_save_IFS |
---|
| 2721 | test -z "$as_dir" && as_dir=. |
---|
| 2722 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2723 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2724 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2726 | break 2 |
---|
| 2727 | fi |
---|
| 2728 | done |
---|
| 2729 | done |
---|
| 2730 | |
---|
| 2731 | fi |
---|
| 2732 | fi |
---|
| 2733 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2734 | if test -n "$ac_ct_CC"; then |
---|
| 2735 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2736 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2737 | else |
---|
| 2738 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2739 | echo "${ECHO_T}no" >&6 |
---|
| 2740 | fi |
---|
| 2741 | |
---|
| 2742 | CC=$ac_ct_CC |
---|
| 2743 | else |
---|
| 2744 | CC="$ac_cv_prog_CC" |
---|
| 2745 | fi |
---|
| 2746 | |
---|
| 2747 | fi |
---|
| 2748 | if test -z "$CC"; then |
---|
| 2749 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2750 | set dummy cc; ac_word=$2 |
---|
| 2751 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2752 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2753 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2755 | else |
---|
| 2756 | if test -n "$CC"; then |
---|
| 2757 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2758 | else |
---|
| 2759 | ac_prog_rejected=no |
---|
| 2760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2761 | for as_dir in $PATH |
---|
| 2762 | do |
---|
| 2763 | IFS=$as_save_IFS |
---|
| 2764 | test -z "$as_dir" && as_dir=. |
---|
| 2765 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2766 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2767 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2768 | ac_prog_rejected=yes |
---|
| 2769 | continue |
---|
| 2770 | fi |
---|
| 2771 | ac_cv_prog_CC="cc" |
---|
| 2772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2773 | break 2 |
---|
| 2774 | fi |
---|
| 2775 | done |
---|
| 2776 | done |
---|
| 2777 | |
---|
| 2778 | if test $ac_prog_rejected = yes; then |
---|
| 2779 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2780 | set dummy $ac_cv_prog_CC |
---|
| 2781 | shift |
---|
| 2782 | if test $# != 0; then |
---|
| 2783 | # We chose a different compiler from the bogus one. |
---|
| 2784 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2785 | # first if we set CC to just the basename; use the full file name. |
---|
| 2786 | shift |
---|
| 2787 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2788 | fi |
---|
| 2789 | fi |
---|
| 2790 | fi |
---|
| 2791 | fi |
---|
| 2792 | CC=$ac_cv_prog_CC |
---|
| 2793 | if test -n "$CC"; then |
---|
| 2794 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2795 | echo "${ECHO_T}$CC" >&6 |
---|
| 2796 | else |
---|
| 2797 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2798 | echo "${ECHO_T}no" >&6 |
---|
| 2799 | fi |
---|
| 2800 | |
---|
| 2801 | fi |
---|
| 2802 | if test -z "$CC"; then |
---|
| 2803 | if test -n "$ac_tool_prefix"; then |
---|
| 2804 | for ac_prog in cl |
---|
| 2805 | do |
---|
| 2806 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2807 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2808 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2810 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2812 | else |
---|
| 2813 | if test -n "$CC"; then |
---|
| 2814 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2815 | else |
---|
| 2816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2817 | for as_dir in $PATH |
---|
| 2818 | do |
---|
| 2819 | IFS=$as_save_IFS |
---|
| 2820 | test -z "$as_dir" && as_dir=. |
---|
| 2821 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2822 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2823 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2825 | break 2 |
---|
| 2826 | fi |
---|
| 2827 | done |
---|
| 2828 | done |
---|
| 2829 | |
---|
| 2830 | fi |
---|
| 2831 | fi |
---|
| 2832 | CC=$ac_cv_prog_CC |
---|
| 2833 | if test -n "$CC"; then |
---|
| 2834 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2835 | echo "${ECHO_T}$CC" >&6 |
---|
| 2836 | else |
---|
| 2837 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2838 | echo "${ECHO_T}no" >&6 |
---|
| 2839 | fi |
---|
| 2840 | |
---|
| 2841 | test -n "$CC" && break |
---|
| 2842 | done |
---|
| 2843 | fi |
---|
| 2844 | if test -z "$CC"; then |
---|
| 2845 | ac_ct_CC=$CC |
---|
| 2846 | for ac_prog in cl |
---|
| 2847 | do |
---|
| 2848 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2849 | set dummy $ac_prog; ac_word=$2 |
---|
| 2850 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2852 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2854 | else |
---|
| 2855 | if test -n "$ac_ct_CC"; then |
---|
| 2856 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2857 | else |
---|
| 2858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2859 | for as_dir in $PATH |
---|
| 2860 | do |
---|
| 2861 | IFS=$as_save_IFS |
---|
| 2862 | test -z "$as_dir" && as_dir=. |
---|
| 2863 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2864 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2865 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2866 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2867 | break 2 |
---|
| 2868 | fi |
---|
| 2869 | done |
---|
| 2870 | done |
---|
| 2871 | |
---|
| 2872 | fi |
---|
| 2873 | fi |
---|
| 2874 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2875 | if test -n "$ac_ct_CC"; then |
---|
| 2876 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2877 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2878 | else |
---|
| 2879 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2880 | echo "${ECHO_T}no" >&6 |
---|
| 2881 | fi |
---|
| 2882 | |
---|
| 2883 | test -n "$ac_ct_CC" && break |
---|
| 2884 | done |
---|
| 2885 | |
---|
| 2886 | CC=$ac_ct_CC |
---|
| 2887 | fi |
---|
| 2888 | |
---|
| 2889 | fi |
---|
| 2890 | |
---|
| 2891 | |
---|
| 2892 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2893 | See \`config.log' for more details." >&5 |
---|
| 2894 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2895 | See \`config.log' for more details." >&2;} |
---|
| 2896 | { (exit 1); exit 1; }; } |
---|
| 2897 | |
---|
| 2898 | # Provide some information about the compiler. |
---|
| 2899 | echo "$as_me:$LINENO:" \ |
---|
| 2900 | "checking for C compiler version" >&5 |
---|
| 2901 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2902 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2903 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2904 | ac_status=$? |
---|
| 2905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2906 | (exit $ac_status); } |
---|
| 2907 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2908 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2909 | ac_status=$? |
---|
| 2910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2911 | (exit $ac_status); } |
---|
| 2912 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2913 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2914 | ac_status=$? |
---|
| 2915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2916 | (exit $ac_status); } |
---|
| 2917 | |
---|
| 2918 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2919 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2920 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2922 | else |
---|
| 2923 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2924 | /* confdefs.h. */ |
---|
| 2925 | _ACEOF |
---|
| 2926 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2927 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2928 | /* end confdefs.h. */ |
---|
| 2929 | |
---|
| 2930 | int |
---|
| 2931 | main () |
---|
| 2932 | { |
---|
| 2933 | #ifndef __GNUC__ |
---|
| 2934 | choke me |
---|
| 2935 | #endif |
---|
| 2936 | |
---|
| 2937 | ; |
---|
| 2938 | return 0; |
---|
| 2939 | } |
---|
| 2940 | _ACEOF |
---|
| 2941 | rm -f conftest.$ac_objext |
---|
| 2942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2943 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2944 | ac_status=$? |
---|
| 2945 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2946 | rm -f conftest.er1 |
---|
| 2947 | cat conftest.err >&5 |
---|
| 2948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2949 | (exit $ac_status); } && |
---|
| 2950 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2951 | || test ! -s conftest.err' |
---|
| 2952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2953 | (eval $ac_try) 2>&5 |
---|
| 2954 | ac_status=$? |
---|
| 2955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2956 | (exit $ac_status); }; } && |
---|
| 2957 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2959 | (eval $ac_try) 2>&5 |
---|
| 2960 | ac_status=$? |
---|
| 2961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2962 | (exit $ac_status); }; }; then |
---|
| 2963 | ac_compiler_gnu=yes |
---|
| 2964 | else |
---|
| 2965 | echo "$as_me: failed program was:" >&5 |
---|
| 2966 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2967 | |
---|
| 2968 | ac_compiler_gnu=no |
---|
| 2969 | fi |
---|
| 2970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2971 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2972 | |
---|
| 2973 | fi |
---|
| 2974 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2975 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2976 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2977 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2978 | ac_save_CFLAGS=$CFLAGS |
---|
| 2979 | CFLAGS="-g" |
---|
| 2980 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2981 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2982 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2984 | else |
---|
| 2985 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2986 | /* confdefs.h. */ |
---|
| 2987 | _ACEOF |
---|
| 2988 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2989 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2990 | /* end confdefs.h. */ |
---|
| 2991 | |
---|
| 2992 | int |
---|
| 2993 | main () |
---|
| 2994 | { |
---|
| 2995 | |
---|
| 2996 | ; |
---|
| 2997 | return 0; |
---|
| 2998 | } |
---|
| 2999 | _ACEOF |
---|
| 3000 | rm -f conftest.$ac_objext |
---|
| 3001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3002 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3003 | ac_status=$? |
---|
| 3004 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3005 | rm -f conftest.er1 |
---|
| 3006 | cat conftest.err >&5 |
---|
| 3007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3008 | (exit $ac_status); } && |
---|
| 3009 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3010 | || test ! -s conftest.err' |
---|
| 3011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3012 | (eval $ac_try) 2>&5 |
---|
| 3013 | ac_status=$? |
---|
| 3014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3015 | (exit $ac_status); }; } && |
---|
| 3016 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3018 | (eval $ac_try) 2>&5 |
---|
| 3019 | ac_status=$? |
---|
| 3020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3021 | (exit $ac_status); }; }; then |
---|
| 3022 | ac_cv_prog_cc_g=yes |
---|
| 3023 | else |
---|
| 3024 | echo "$as_me: failed program was:" >&5 |
---|
| 3025 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3026 | |
---|
| 3027 | ac_cv_prog_cc_g=no |
---|
| 3028 | fi |
---|
| 3029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3030 | fi |
---|
| 3031 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3032 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 3033 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3034 | CFLAGS=$ac_save_CFLAGS |
---|
| 3035 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3036 | if test "$GCC" = yes; then |
---|
| 3037 | CFLAGS="-g -O2" |
---|
| 3038 | else |
---|
| 3039 | CFLAGS="-g" |
---|
| 3040 | fi |
---|
| 3041 | else |
---|
| 3042 | if test "$GCC" = yes; then |
---|
| 3043 | CFLAGS="-O2" |
---|
| 3044 | else |
---|
| 3045 | CFLAGS= |
---|
| 3046 | fi |
---|
| 3047 | fi |
---|
| 3048 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 3049 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 3050 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 3051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3052 | else |
---|
| 3053 | ac_cv_prog_cc_stdc=no |
---|
| 3054 | ac_save_CC=$CC |
---|
| 3055 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3056 | /* confdefs.h. */ |
---|
| 3057 | _ACEOF |
---|
| 3058 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3059 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3060 | /* end confdefs.h. */ |
---|
| 3061 | #include <stdarg.h> |
---|
| 3062 | #include <stdio.h> |
---|
| 3063 | #include <sys/types.h> |
---|
| 3064 | #include <sys/stat.h> |
---|
| 3065 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3066 | struct buf { int x; }; |
---|
| 3067 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3068 | static char *e (p, i) |
---|
| 3069 | char **p; |
---|
| 3070 | int i; |
---|
| 3071 | { |
---|
| 3072 | return p[i]; |
---|
| 3073 | } |
---|
| 3074 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3075 | { |
---|
| 3076 | char *s; |
---|
| 3077 | va_list v; |
---|
| 3078 | va_start (v,p); |
---|
| 3079 | s = g (p, va_arg (v,int)); |
---|
| 3080 | va_end (v); |
---|
| 3081 | return s; |
---|
| 3082 | } |
---|
| 3083 | |
---|
| 3084 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3085 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3086 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3087 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 3088 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3089 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3090 | that's true only with -std1. */ |
---|
| 3091 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3092 | |
---|
| 3093 | int test (int i, double x); |
---|
| 3094 | struct s1 {int (*f) (int a);}; |
---|
| 3095 | struct s2 {int (*f) (double a);}; |
---|
| 3096 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3097 | int argc; |
---|
| 3098 | char **argv; |
---|
| 3099 | int |
---|
| 3100 | main () |
---|
| 3101 | { |
---|
| 3102 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3103 | ; |
---|
| 3104 | return 0; |
---|
| 3105 | } |
---|
| 3106 | _ACEOF |
---|
| 3107 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3108 | # breaks some systems' header files. |
---|
| 3109 | # AIX -qlanglvl=ansi |
---|
| 3110 | # Ultrix and OSF/1 -std1 |
---|
| 3111 | # HP-UX 10.20 and later -Ae |
---|
| 3112 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3113 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3114 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3115 | do |
---|
| 3116 | CC="$ac_save_CC $ac_arg" |
---|
| 3117 | rm -f conftest.$ac_objext |
---|
| 3118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3119 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3120 | ac_status=$? |
---|
| 3121 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3122 | rm -f conftest.er1 |
---|
| 3123 | cat conftest.err >&5 |
---|
| 3124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3125 | (exit $ac_status); } && |
---|
| 3126 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3127 | || test ! -s conftest.err' |
---|
| 3128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3129 | (eval $ac_try) 2>&5 |
---|
| 3130 | ac_status=$? |
---|
| 3131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3132 | (exit $ac_status); }; } && |
---|
| 3133 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3135 | (eval $ac_try) 2>&5 |
---|
| 3136 | ac_status=$? |
---|
| 3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3138 | (exit $ac_status); }; }; then |
---|
| 3139 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3140 | break |
---|
| 3141 | else |
---|
| 3142 | echo "$as_me: failed program was:" >&5 |
---|
| 3143 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3144 | |
---|
| 3145 | fi |
---|
| 3146 | rm -f conftest.err conftest.$ac_objext |
---|
| 3147 | done |
---|
| 3148 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3149 | CC=$ac_save_CC |
---|
| 3150 | |
---|
| 3151 | fi |
---|
| 3152 | |
---|
| 3153 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3154 | x|xno) |
---|
| 3155 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3156 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3157 | *) |
---|
| 3158 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3159 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3160 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3161 | esac |
---|
| 3162 | |
---|
| 3163 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3164 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3165 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3166 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3167 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3168 | #ifndef __cplusplus |
---|
| 3169 | choke me |
---|
| 3170 | #endif |
---|
| 3171 | _ACEOF |
---|
| 3172 | rm -f conftest.$ac_objext |
---|
| 3173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3174 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3175 | ac_status=$? |
---|
| 3176 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3177 | rm -f conftest.er1 |
---|
| 3178 | cat conftest.err >&5 |
---|
| 3179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3180 | (exit $ac_status); } && |
---|
| 3181 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3182 | || test ! -s conftest.err' |
---|
| 3183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3184 | (eval $ac_try) 2>&5 |
---|
| 3185 | ac_status=$? |
---|
| 3186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3187 | (exit $ac_status); }; } && |
---|
| 3188 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3190 | (eval $ac_try) 2>&5 |
---|
| 3191 | ac_status=$? |
---|
| 3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3193 | (exit $ac_status); }; }; then |
---|
| 3194 | for ac_declaration in \ |
---|
| 3195 | '' \ |
---|
| 3196 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3197 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3198 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3199 | 'extern "C" void exit (int);' \ |
---|
| 3200 | 'void exit (int);' |
---|
| 3201 | do |
---|
| 3202 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3203 | /* confdefs.h. */ |
---|
| 3204 | _ACEOF |
---|
| 3205 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3206 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3207 | /* end confdefs.h. */ |
---|
| 3208 | $ac_declaration |
---|
| 3209 | #include <stdlib.h> |
---|
| 3210 | int |
---|
| 3211 | main () |
---|
| 3212 | { |
---|
| 3213 | exit (42); |
---|
| 3214 | ; |
---|
| 3215 | return 0; |
---|
| 3216 | } |
---|
| 3217 | _ACEOF |
---|
| 3218 | rm -f conftest.$ac_objext |
---|
| 3219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3220 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3221 | ac_status=$? |
---|
| 3222 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3223 | rm -f conftest.er1 |
---|
| 3224 | cat conftest.err >&5 |
---|
| 3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3226 | (exit $ac_status); } && |
---|
| 3227 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3228 | || test ! -s conftest.err' |
---|
| 3229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3230 | (eval $ac_try) 2>&5 |
---|
| 3231 | ac_status=$? |
---|
| 3232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3233 | (exit $ac_status); }; } && |
---|
| 3234 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3236 | (eval $ac_try) 2>&5 |
---|
| 3237 | ac_status=$? |
---|
| 3238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3239 | (exit $ac_status); }; }; then |
---|
| 3240 | : |
---|
| 3241 | else |
---|
| 3242 | echo "$as_me: failed program was:" >&5 |
---|
| 3243 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3244 | |
---|
| 3245 | continue |
---|
| 3246 | fi |
---|
| 3247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3248 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3249 | /* confdefs.h. */ |
---|
| 3250 | _ACEOF |
---|
| 3251 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3252 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3253 | /* end confdefs.h. */ |
---|
| 3254 | $ac_declaration |
---|
| 3255 | int |
---|
| 3256 | main () |
---|
| 3257 | { |
---|
| 3258 | exit (42); |
---|
| 3259 | ; |
---|
| 3260 | return 0; |
---|
| 3261 | } |
---|
| 3262 | _ACEOF |
---|
| 3263 | rm -f conftest.$ac_objext |
---|
| 3264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3265 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3266 | ac_status=$? |
---|
| 3267 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3268 | rm -f conftest.er1 |
---|
| 3269 | cat conftest.err >&5 |
---|
| 3270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3271 | (exit $ac_status); } && |
---|
| 3272 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3273 | || test ! -s conftest.err' |
---|
| 3274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3275 | (eval $ac_try) 2>&5 |
---|
| 3276 | ac_status=$? |
---|
| 3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3278 | (exit $ac_status); }; } && |
---|
| 3279 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3281 | (eval $ac_try) 2>&5 |
---|
| 3282 | ac_status=$? |
---|
| 3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3284 | (exit $ac_status); }; }; then |
---|
| 3285 | break |
---|
| 3286 | else |
---|
| 3287 | echo "$as_me: failed program was:" >&5 |
---|
| 3288 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3289 | |
---|
| 3290 | fi |
---|
| 3291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3292 | done |
---|
| 3293 | rm -f conftest* |
---|
| 3294 | if test -n "$ac_declaration"; then |
---|
| 3295 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3296 | echo $ac_declaration >>confdefs.h |
---|
| 3297 | echo '#endif' >>confdefs.h |
---|
| 3298 | fi |
---|
| 3299 | |
---|
| 3300 | else |
---|
| 3301 | echo "$as_me: failed program was:" >&5 |
---|
| 3302 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3303 | |
---|
| 3304 | fi |
---|
| 3305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3306 | ac_ext=c |
---|
| 3307 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3308 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3309 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3310 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3311 | |
---|
| 3312 | depcc="$CC" am_compiler_list= |
---|
| 3313 | |
---|
| 3314 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3315 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3316 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3318 | else |
---|
| 3319 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3320 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3321 | # making bogus files that we don't know about and never remove. For |
---|
| 3322 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3323 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3324 | # in D'. |
---|
| 3325 | mkdir conftest.dir |
---|
| 3326 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3327 | # using a relative directory. |
---|
| 3328 | cp "$am_depcomp" conftest.dir |
---|
| 3329 | cd conftest.dir |
---|
| 3330 | # We will build objects and dependencies in a subdirectory because |
---|
| 3331 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3332 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3333 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3334 | # the current directory while Tru64 will put them in the object |
---|
| 3335 | # directory. |
---|
| 3336 | mkdir sub |
---|
| 3337 | |
---|
| 3338 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3339 | if test "$am_compiler_list" = ""; then |
---|
| 3340 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3341 | fi |
---|
| 3342 | for depmode in $am_compiler_list; do |
---|
| 3343 | # Setup a source with many dependencies, because some compilers |
---|
| 3344 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3345 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3346 | # |
---|
| 3347 | # We need to recreate these files for each test, as the compiler may |
---|
| 3348 | # overwrite some of them when testing with obscure command lines. |
---|
| 3349 | # This happens at least with the AIX C compiler. |
---|
| 3350 | : > sub/conftest.c |
---|
| 3351 | for i in 1 2 3 4 5 6; do |
---|
| 3352 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2819] | 3353 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 3354 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 3355 | touch sub/conftst$i.h |
---|
[1956] | 3356 | done |
---|
| 3357 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3358 | |
---|
| 3359 | case $depmode in |
---|
| 3360 | nosideeffect) |
---|
| 3361 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3362 | # only be used when explicitly requested |
---|
| 3363 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3364 | continue |
---|
| 3365 | else |
---|
| 3366 | break |
---|
| 3367 | fi |
---|
| 3368 | ;; |
---|
| 3369 | none) break ;; |
---|
| 3370 | esac |
---|
| 3371 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3372 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3373 | # handle `-M -o', and we need to detect this. |
---|
| 3374 | if depmode=$depmode \ |
---|
| 3375 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3376 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3377 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3378 | >/dev/null 2>conftest.err && |
---|
| 3379 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3380 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3381 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3382 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2819] | 3383 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 3384 | # that says an option was ignored or not supported. |
---|
| 3385 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 3386 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 3387 | # The diagnosis changed in icc 8.0: |
---|
| 3388 | # icc: Command line remark: option '-MP' not supported |
---|
| 3389 | if (grep 'ignoring option' conftest.err || |
---|
| 3390 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 3391 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3392 | break |
---|
| 3393 | fi |
---|
| 3394 | fi |
---|
| 3395 | done |
---|
| 3396 | |
---|
| 3397 | cd .. |
---|
| 3398 | rm -rf conftest.dir |
---|
| 3399 | else |
---|
| 3400 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3401 | fi |
---|
| 3402 | |
---|
| 3403 | fi |
---|
| 3404 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3405 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3406 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3407 | |
---|
| 3408 | |
---|
| 3409 | |
---|
| 3410 | if |
---|
| 3411 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3412 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3413 | am__fastdepCC_TRUE= |
---|
| 3414 | am__fastdepCC_FALSE='#' |
---|
| 3415 | else |
---|
| 3416 | am__fastdepCC_TRUE='#' |
---|
| 3417 | am__fastdepCC_FALSE= |
---|
| 3418 | fi |
---|
| 3419 | |
---|
| 3420 | |
---|
| 3421 | |
---|
[1971] | 3422 | ac_ext=c |
---|
| 3423 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3424 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3425 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3426 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3427 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3428 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3429 | # On Suns, sometimes $CPP names a directory. |
---|
| 3430 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3431 | CPP= |
---|
| 3432 | fi |
---|
| 3433 | if test -z "$CPP"; then |
---|
| 3434 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3436 | else |
---|
[1971] | 3437 | # Double quotes because CPP needs to be expanded |
---|
| 3438 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3439 | do |
---|
| 3440 | ac_preproc_ok=false |
---|
| 3441 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3442 | do |
---|
| 3443 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3444 | # with a fresh cross-compiler works. |
---|
| 3445 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3446 | # <limits.h> exists even on freestanding compilers. |
---|
| 3447 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3448 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3449 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3450 | /* confdefs.h. */ |
---|
| 3451 | _ACEOF |
---|
| 3452 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3453 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3454 | /* end confdefs.h. */ |
---|
| 3455 | #ifdef __STDC__ |
---|
| 3456 | # include <limits.h> |
---|
| 3457 | #else |
---|
| 3458 | # include <assert.h> |
---|
| 3459 | #endif |
---|
| 3460 | Syntax error |
---|
| 3461 | _ACEOF |
---|
| 3462 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3463 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3464 | ac_status=$? |
---|
| 3465 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3466 | rm -f conftest.er1 |
---|
| 3467 | cat conftest.err >&5 |
---|
| 3468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3469 | (exit $ac_status); } >/dev/null; then |
---|
| 3470 | if test -s conftest.err; then |
---|
| 3471 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3472 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3473 | else |
---|
| 3474 | ac_cpp_err= |
---|
| 3475 | fi |
---|
| 3476 | else |
---|
| 3477 | ac_cpp_err=yes |
---|
| 3478 | fi |
---|
| 3479 | if test -z "$ac_cpp_err"; then |
---|
| 3480 | : |
---|
| 3481 | else |
---|
| 3482 | echo "$as_me: failed program was:" >&5 |
---|
| 3483 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3484 | |
---|
| 3485 | # Broken: fails on valid input. |
---|
| 3486 | continue |
---|
| 3487 | fi |
---|
| 3488 | rm -f conftest.err conftest.$ac_ext |
---|
| 3489 | |
---|
| 3490 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3491 | # can be detected and how. |
---|
| 3492 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3493 | /* confdefs.h. */ |
---|
| 3494 | _ACEOF |
---|
| 3495 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3496 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3497 | /* end confdefs.h. */ |
---|
| 3498 | #include <ac_nonexistent.h> |
---|
| 3499 | _ACEOF |
---|
| 3500 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3501 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3502 | ac_status=$? |
---|
| 3503 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3504 | rm -f conftest.er1 |
---|
| 3505 | cat conftest.err >&5 |
---|
| 3506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3507 | (exit $ac_status); } >/dev/null; then |
---|
| 3508 | if test -s conftest.err; then |
---|
| 3509 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3510 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3511 | else |
---|
| 3512 | ac_cpp_err= |
---|
| 3513 | fi |
---|
| 3514 | else |
---|
| 3515 | ac_cpp_err=yes |
---|
| 3516 | fi |
---|
| 3517 | if test -z "$ac_cpp_err"; then |
---|
| 3518 | # Broken: success on invalid input. |
---|
| 3519 | continue |
---|
| 3520 | else |
---|
| 3521 | echo "$as_me: failed program was:" >&5 |
---|
| 3522 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3523 | |
---|
| 3524 | # Passes both tests. |
---|
| 3525 | ac_preproc_ok=: |
---|
| 3526 | break |
---|
| 3527 | fi |
---|
| 3528 | rm -f conftest.err conftest.$ac_ext |
---|
| 3529 | |
---|
| 3530 | done |
---|
| 3531 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3532 | rm -f conftest.err conftest.$ac_ext |
---|
| 3533 | if $ac_preproc_ok; then |
---|
| 3534 | break |
---|
| 3535 | fi |
---|
| 3536 | |
---|
| 3537 | done |
---|
| 3538 | ac_cv_prog_CPP=$CPP |
---|
| 3539 | |
---|
| 3540 | fi |
---|
| 3541 | CPP=$ac_cv_prog_CPP |
---|
| 3542 | else |
---|
| 3543 | ac_cv_prog_CPP=$CPP |
---|
| 3544 | fi |
---|
| 3545 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3546 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3547 | ac_preproc_ok=false |
---|
| 3548 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3549 | do |
---|
| 3550 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3551 | # with a fresh cross-compiler works. |
---|
| 3552 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3553 | # <limits.h> exists even on freestanding compilers. |
---|
| 3554 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3555 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3556 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3557 | /* confdefs.h. */ |
---|
| 3558 | _ACEOF |
---|
| 3559 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3560 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3561 | /* end confdefs.h. */ |
---|
| 3562 | #ifdef __STDC__ |
---|
| 3563 | # include <limits.h> |
---|
| 3564 | #else |
---|
| 3565 | # include <assert.h> |
---|
| 3566 | #endif |
---|
| 3567 | Syntax error |
---|
| 3568 | _ACEOF |
---|
| 3569 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3570 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3571 | ac_status=$? |
---|
| 3572 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3573 | rm -f conftest.er1 |
---|
| 3574 | cat conftest.err >&5 |
---|
| 3575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3576 | (exit $ac_status); } >/dev/null; then |
---|
| 3577 | if test -s conftest.err; then |
---|
| 3578 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3579 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3580 | else |
---|
| 3581 | ac_cpp_err= |
---|
| 3582 | fi |
---|
| 3583 | else |
---|
| 3584 | ac_cpp_err=yes |
---|
| 3585 | fi |
---|
| 3586 | if test -z "$ac_cpp_err"; then |
---|
| 3587 | : |
---|
| 3588 | else |
---|
| 3589 | echo "$as_me: failed program was:" >&5 |
---|
| 3590 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3591 | |
---|
| 3592 | # Broken: fails on valid input. |
---|
| 3593 | continue |
---|
| 3594 | fi |
---|
| 3595 | rm -f conftest.err conftest.$ac_ext |
---|
| 3596 | |
---|
| 3597 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3598 | # can be detected and how. |
---|
| 3599 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3600 | /* confdefs.h. */ |
---|
| 3601 | _ACEOF |
---|
| 3602 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3603 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3604 | /* end confdefs.h. */ |
---|
| 3605 | #include <ac_nonexistent.h> |
---|
| 3606 | _ACEOF |
---|
| 3607 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3608 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3609 | ac_status=$? |
---|
| 3610 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3611 | rm -f conftest.er1 |
---|
| 3612 | cat conftest.err >&5 |
---|
| 3613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3614 | (exit $ac_status); } >/dev/null; then |
---|
| 3615 | if test -s conftest.err; then |
---|
| 3616 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3617 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3618 | else |
---|
| 3619 | ac_cpp_err= |
---|
| 3620 | fi |
---|
| 3621 | else |
---|
| 3622 | ac_cpp_err=yes |
---|
| 3623 | fi |
---|
| 3624 | if test -z "$ac_cpp_err"; then |
---|
| 3625 | # Broken: success on invalid input. |
---|
| 3626 | continue |
---|
| 3627 | else |
---|
| 3628 | echo "$as_me: failed program was:" >&5 |
---|
| 3629 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3630 | |
---|
| 3631 | # Passes both tests. |
---|
| 3632 | ac_preproc_ok=: |
---|
| 3633 | break |
---|
| 3634 | fi |
---|
| 3635 | rm -f conftest.err conftest.$ac_ext |
---|
| 3636 | |
---|
| 3637 | done |
---|
| 3638 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3639 | rm -f conftest.err conftest.$ac_ext |
---|
| 3640 | if $ac_preproc_ok; then |
---|
| 3641 | : |
---|
| 3642 | else |
---|
| 3643 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3644 | See \`config.log' for more details." >&5 |
---|
| 3645 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3646 | See \`config.log' for more details." >&2;} |
---|
| 3647 | { (exit 1); exit 1; }; } |
---|
| 3648 | fi |
---|
| 3649 | |
---|
| 3650 | ac_ext=c |
---|
| 3651 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3653 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3655 | |
---|
| 3656 | |
---|
| 3657 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3658 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3659 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3661 | else |
---|
| 3662 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3663 | then ac_cv_prog_egrep='grep -E' |
---|
| 3664 | else ac_cv_prog_egrep='egrep' |
---|
| 3665 | fi |
---|
| 3666 | fi |
---|
| 3667 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3668 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3669 | EGREP=$ac_cv_prog_egrep |
---|
| 3670 | |
---|
| 3671 | |
---|
| 3672 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3673 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3674 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3676 | else |
---|
| 3677 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3678 | /* confdefs.h. */ |
---|
| 3679 | _ACEOF |
---|
| 3680 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3681 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3682 | /* end confdefs.h. */ |
---|
| 3683 | #include <stdlib.h> |
---|
| 3684 | #include <stdarg.h> |
---|
| 3685 | #include <string.h> |
---|
| 3686 | #include <float.h> |
---|
| 3687 | |
---|
| 3688 | int |
---|
| 3689 | main () |
---|
| 3690 | { |
---|
| 3691 | |
---|
| 3692 | ; |
---|
| 3693 | return 0; |
---|
| 3694 | } |
---|
| 3695 | _ACEOF |
---|
| 3696 | rm -f conftest.$ac_objext |
---|
| 3697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3698 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3699 | ac_status=$? |
---|
| 3700 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3701 | rm -f conftest.er1 |
---|
| 3702 | cat conftest.err >&5 |
---|
| 3703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3704 | (exit $ac_status); } && |
---|
| 3705 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3706 | || test ! -s conftest.err' |
---|
| 3707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3708 | (eval $ac_try) 2>&5 |
---|
| 3709 | ac_status=$? |
---|
| 3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3711 | (exit $ac_status); }; } && |
---|
| 3712 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3714 | (eval $ac_try) 2>&5 |
---|
| 3715 | ac_status=$? |
---|
| 3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3717 | (exit $ac_status); }; }; then |
---|
| 3718 | ac_cv_header_stdc=yes |
---|
| 3719 | else |
---|
| 3720 | echo "$as_me: failed program was:" >&5 |
---|
| 3721 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3722 | |
---|
| 3723 | ac_cv_header_stdc=no |
---|
| 3724 | fi |
---|
| 3725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3726 | |
---|
| 3727 | if test $ac_cv_header_stdc = yes; then |
---|
| 3728 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3729 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3730 | /* confdefs.h. */ |
---|
| 3731 | _ACEOF |
---|
| 3732 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3733 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3734 | /* end confdefs.h. */ |
---|
| 3735 | #include <string.h> |
---|
| 3736 | |
---|
| 3737 | _ACEOF |
---|
| 3738 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3739 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3740 | : |
---|
| 3741 | else |
---|
| 3742 | ac_cv_header_stdc=no |
---|
| 3743 | fi |
---|
| 3744 | rm -f conftest* |
---|
| 3745 | |
---|
| 3746 | fi |
---|
| 3747 | |
---|
| 3748 | if test $ac_cv_header_stdc = yes; then |
---|
| 3749 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3750 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3751 | /* confdefs.h. */ |
---|
| 3752 | _ACEOF |
---|
| 3753 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3754 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3755 | /* end confdefs.h. */ |
---|
| 3756 | #include <stdlib.h> |
---|
| 3757 | |
---|
| 3758 | _ACEOF |
---|
| 3759 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3760 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3761 | : |
---|
| 3762 | else |
---|
| 3763 | ac_cv_header_stdc=no |
---|
| 3764 | fi |
---|
| 3765 | rm -f conftest* |
---|
| 3766 | |
---|
| 3767 | fi |
---|
| 3768 | |
---|
| 3769 | if test $ac_cv_header_stdc = yes; then |
---|
| 3770 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3771 | if test "$cross_compiling" = yes; then |
---|
| 3772 | : |
---|
| 3773 | else |
---|
| 3774 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3775 | /* confdefs.h. */ |
---|
| 3776 | _ACEOF |
---|
| 3777 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3778 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3779 | /* end confdefs.h. */ |
---|
| 3780 | #include <ctype.h> |
---|
| 3781 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3782 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3783 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3784 | #else |
---|
| 3785 | # define ISLOWER(c) \ |
---|
| 3786 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3787 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3788 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3789 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3790 | #endif |
---|
| 3791 | |
---|
| 3792 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3793 | int |
---|
| 3794 | main () |
---|
| 3795 | { |
---|
| 3796 | int i; |
---|
| 3797 | for (i = 0; i < 256; i++) |
---|
| 3798 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3799 | || toupper (i) != TOUPPER (i)) |
---|
| 3800 | exit(2); |
---|
| 3801 | exit (0); |
---|
| 3802 | } |
---|
| 3803 | _ACEOF |
---|
| 3804 | rm -f conftest$ac_exeext |
---|
| 3805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3806 | (eval $ac_link) 2>&5 |
---|
| 3807 | ac_status=$? |
---|
| 3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3809 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3811 | (eval $ac_try) 2>&5 |
---|
| 3812 | ac_status=$? |
---|
| 3813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3814 | (exit $ac_status); }; }; then |
---|
| 3815 | : |
---|
| 3816 | else |
---|
| 3817 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3818 | echo "$as_me: failed program was:" >&5 |
---|
| 3819 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3820 | |
---|
| 3821 | ( exit $ac_status ) |
---|
| 3822 | ac_cv_header_stdc=no |
---|
| 3823 | fi |
---|
| 3824 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3825 | fi |
---|
| 3826 | fi |
---|
| 3827 | fi |
---|
| 3828 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3829 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3830 | if test $ac_cv_header_stdc = yes; then |
---|
| 3831 | |
---|
| 3832 | cat >>confdefs.h <<\_ACEOF |
---|
| 3833 | #define STDC_HEADERS 1 |
---|
| 3834 | _ACEOF |
---|
| 3835 | |
---|
| 3836 | fi |
---|
| 3837 | |
---|
| 3838 | |
---|
[2925] | 3839 | ### CHECKING FOR SYSTEM ### |
---|
[1971] | 3840 | |
---|
[2925] | 3841 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 3842 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
[2980] | 3843 | ## checking for openGL-environment and other sys-specific parameters |
---|
| 3844 | case "$target" in |
---|
[2925] | 3845 | ### WINDOWS ### |
---|
[2980] | 3846 | *-*-mingw32*) |
---|
[2925] | 3847 | echo "mingw-WINDOWS detected" |
---|
[1971] | 3848 | |
---|
[2925] | 3849 | mingw="yes" |
---|
| 3850 | MSBITFIELDS="-mms-bitfields" |
---|
| 3851 | MWINDOWS="-mwindows" |
---|
[1971] | 3852 | |
---|
[2925] | 3853 | # checking gl header |
---|
| 3854 | #done before loop |
---|
[1971] | 3855 | |
---|
[2968] | 3856 | # checking gl header |
---|
[2925] | 3857 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
[1971] | 3858 | |
---|
| 3859 | |
---|
| 3860 | |
---|
| 3861 | |
---|
[2925] | 3862 | |
---|
| 3863 | |
---|
| 3864 | |
---|
| 3865 | |
---|
| 3866 | |
---|
[1971] | 3867 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 3868 | inttypes.h stdint.h unistd.h |
---|
| 3869 | do |
---|
| 3870 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3871 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3872 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3873 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3875 | else |
---|
| 3876 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3877 | /* confdefs.h. */ |
---|
| 3878 | _ACEOF |
---|
| 3879 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3880 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3881 | /* end confdefs.h. */ |
---|
| 3882 | $ac_includes_default |
---|
| 3883 | |
---|
| 3884 | #include <$ac_header> |
---|
| 3885 | _ACEOF |
---|
| 3886 | rm -f conftest.$ac_objext |
---|
| 3887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3888 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3889 | ac_status=$? |
---|
| 3890 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3891 | rm -f conftest.er1 |
---|
| 3892 | cat conftest.err >&5 |
---|
| 3893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3894 | (exit $ac_status); } && |
---|
| 3895 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3896 | || test ! -s conftest.err' |
---|
| 3897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3898 | (eval $ac_try) 2>&5 |
---|
| 3899 | ac_status=$? |
---|
| 3900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3901 | (exit $ac_status); }; } && |
---|
| 3902 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3904 | (eval $ac_try) 2>&5 |
---|
| 3905 | ac_status=$? |
---|
| 3906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3907 | (exit $ac_status); }; }; then |
---|
| 3908 | eval "$as_ac_Header=yes" |
---|
| 3909 | else |
---|
| 3910 | echo "$as_me: failed program was:" >&5 |
---|
| 3911 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3912 | |
---|
| 3913 | eval "$as_ac_Header=no" |
---|
| 3914 | fi |
---|
| 3915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3916 | fi |
---|
| 3917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3918 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3919 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3920 | cat >>confdefs.h <<_ACEOF |
---|
| 3921 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3922 | _ACEOF |
---|
| 3923 | |
---|
| 3924 | fi |
---|
| 3925 | |
---|
| 3926 | done |
---|
| 3927 | |
---|
| 3928 | |
---|
| 3929 | |
---|
[2879] | 3930 | for ac_header in GL/gl.h |
---|
| 3931 | do |
---|
| 3932 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3933 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3934 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3935 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3936 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3938 | fi |
---|
| 3939 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3940 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3941 | else |
---|
| 3942 | # Is the header compilable? |
---|
| 3943 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 3944 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 3945 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3946 | /* confdefs.h. */ |
---|
| 3947 | _ACEOF |
---|
| 3948 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3949 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3950 | /* end confdefs.h. */ |
---|
| 3951 | $ac_includes_default |
---|
| 3952 | #include <$ac_header> |
---|
| 3953 | _ACEOF |
---|
| 3954 | rm -f conftest.$ac_objext |
---|
| 3955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3956 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3957 | ac_status=$? |
---|
| 3958 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3959 | rm -f conftest.er1 |
---|
| 3960 | cat conftest.err >&5 |
---|
| 3961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3962 | (exit $ac_status); } && |
---|
| 3963 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3964 | || test ! -s conftest.err' |
---|
| 3965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3966 | (eval $ac_try) 2>&5 |
---|
| 3967 | ac_status=$? |
---|
| 3968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3969 | (exit $ac_status); }; } && |
---|
| 3970 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3972 | (eval $ac_try) 2>&5 |
---|
| 3973 | ac_status=$? |
---|
| 3974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3975 | (exit $ac_status); }; }; then |
---|
| 3976 | ac_header_compiler=yes |
---|
| 3977 | else |
---|
| 3978 | echo "$as_me: failed program was:" >&5 |
---|
| 3979 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3980 | |
---|
| 3981 | ac_header_compiler=no |
---|
| 3982 | fi |
---|
| 3983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3984 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 3985 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 3986 | |
---|
| 3987 | # Is the header present? |
---|
| 3988 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 3989 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 3990 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3991 | /* confdefs.h. */ |
---|
| 3992 | _ACEOF |
---|
| 3993 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3994 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3995 | /* end confdefs.h. */ |
---|
| 3996 | #include <$ac_header> |
---|
| 3997 | _ACEOF |
---|
| 3998 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3999 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4000 | ac_status=$? |
---|
| 4001 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4002 | rm -f conftest.er1 |
---|
| 4003 | cat conftest.err >&5 |
---|
| 4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4005 | (exit $ac_status); } >/dev/null; then |
---|
| 4006 | if test -s conftest.err; then |
---|
| 4007 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4008 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4009 | else |
---|
| 4010 | ac_cpp_err= |
---|
| 4011 | fi |
---|
| 4012 | else |
---|
| 4013 | ac_cpp_err=yes |
---|
| 4014 | fi |
---|
| 4015 | if test -z "$ac_cpp_err"; then |
---|
| 4016 | ac_header_preproc=yes |
---|
| 4017 | else |
---|
| 4018 | echo "$as_me: failed program was:" >&5 |
---|
| 4019 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4020 | |
---|
| 4021 | ac_header_preproc=no |
---|
| 4022 | fi |
---|
| 4023 | rm -f conftest.err conftest.$ac_ext |
---|
| 4024 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4025 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4026 | |
---|
| 4027 | # So? What about this header? |
---|
| 4028 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4029 | yes:no: ) |
---|
| 4030 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4031 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4032 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4033 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4034 | ac_header_preproc=yes |
---|
| 4035 | ;; |
---|
| 4036 | no:yes:* ) |
---|
| 4037 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4038 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4039 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4040 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4041 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4042 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4043 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4044 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4045 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4046 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4047 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4048 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4049 | ( |
---|
| 4050 | cat <<\_ASBOX |
---|
| 4051 | ## ------------------------------------------- ## |
---|
| 4052 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4053 | ## ------------------------------------------- ## |
---|
| 4054 | _ASBOX |
---|
| 4055 | ) | |
---|
| 4056 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4057 | ;; |
---|
| 4058 | esac |
---|
| 4059 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4061 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4063 | else |
---|
| 4064 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4065 | fi |
---|
| 4066 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4067 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4068 | |
---|
| 4069 | fi |
---|
| 4070 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4071 | cat >>confdefs.h <<_ACEOF |
---|
| 4072 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4073 | _ACEOF |
---|
| 4074 | |
---|
| 4075 | else |
---|
| 4076 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4077 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4078 | { (exit 1); exit 1; }; } |
---|
| 4079 | fi |
---|
| 4080 | |
---|
| 4081 | done |
---|
| 4082 | |
---|
[2701] | 4083 | # checking for Windows openGl library |
---|
[1971] | 4084 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 4085 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 4086 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1959] | 4087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4088 | else |
---|
| 4089 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4090 | LIBS="-lopengl32 $LIBS" |
---|
| 4091 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4092 | /* confdefs.h. */ |
---|
[1956] | 4093 | _ACEOF |
---|
[1959] | 4094 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4095 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4096 | /* end confdefs.h. */ |
---|
[1956] | 4097 | |
---|
[1971] | 4098 | |
---|
[1959] | 4099 | int |
---|
| 4100 | main () |
---|
| 4101 | { |
---|
[1971] | 4102 | main (); |
---|
[1959] | 4103 | ; |
---|
| 4104 | return 0; |
---|
| 4105 | } |
---|
| 4106 | _ACEOF |
---|
| 4107 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4109 | (eval $ac_link) 2>conftest.er1 |
---|
| 4110 | ac_status=$? |
---|
| 4111 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4112 | rm -f conftest.er1 |
---|
| 4113 | cat conftest.err >&5 |
---|
| 4114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4115 | (exit $ac_status); } && |
---|
| 4116 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4117 | || test ! -s conftest.err' |
---|
| 4118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4119 | (eval $ac_try) 2>&5 |
---|
| 4120 | ac_status=$? |
---|
| 4121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4122 | (exit $ac_status); }; } && |
---|
| 4123 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4125 | (eval $ac_try) 2>&5 |
---|
| 4126 | ac_status=$? |
---|
| 4127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4128 | (exit $ac_status); }; }; then |
---|
[1971] | 4129 | ac_cv_lib_opengl32_main=yes |
---|
[1959] | 4130 | else |
---|
| 4131 | echo "$as_me: failed program was:" >&5 |
---|
| 4132 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4133 | |
---|
[1971] | 4134 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 4135 | fi |
---|
[1959] | 4136 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4137 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4138 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4139 | fi |
---|
[1971] | 4140 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4141 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4142 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4143 | FOUND_opengl32=yes |
---|
| 4144 | else |
---|
| 4145 | "gl/gl.h" |
---|
[1959] | 4146 | fi |
---|
[1956] | 4147 | |
---|
[1971] | 4148 | if test "$FOUND_opengl32" = "yes" ; then |
---|
[1959] | 4149 | LIBS="$LIBS -lopengl32" |
---|
[1971] | 4150 | else |
---|
[1959] | 4151 | echo "------------------" |
---|
| 4152 | echo "opengl not found." |
---|
| 4153 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4154 | echo "------------------" |
---|
| 4155 | exit -1 |
---|
| 4156 | fi |
---|
| 4157 | |
---|
[2701] | 4158 | # cheking for GLU-header |
---|
[1971] | 4159 | |
---|
| 4160 | for ac_header in GL/glu.h |
---|
| 4161 | do |
---|
| 4162 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4164 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4165 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4166 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4168 | fi |
---|
| 4169 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4170 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4171 | else |
---|
| 4172 | # Is the header compilable? |
---|
| 4173 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4174 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4175 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4176 | /* confdefs.h. */ |
---|
| 4177 | _ACEOF |
---|
| 4178 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4179 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4180 | /* end confdefs.h. */ |
---|
| 4181 | $ac_includes_default |
---|
| 4182 | #include <$ac_header> |
---|
| 4183 | _ACEOF |
---|
| 4184 | rm -f conftest.$ac_objext |
---|
| 4185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4186 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4187 | ac_status=$? |
---|
| 4188 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4189 | rm -f conftest.er1 |
---|
| 4190 | cat conftest.err >&5 |
---|
| 4191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4192 | (exit $ac_status); } && |
---|
| 4193 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4194 | || test ! -s conftest.err' |
---|
| 4195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4196 | (eval $ac_try) 2>&5 |
---|
| 4197 | ac_status=$? |
---|
| 4198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4199 | (exit $ac_status); }; } && |
---|
| 4200 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4202 | (eval $ac_try) 2>&5 |
---|
| 4203 | ac_status=$? |
---|
| 4204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4205 | (exit $ac_status); }; }; then |
---|
| 4206 | ac_header_compiler=yes |
---|
| 4207 | else |
---|
| 4208 | echo "$as_me: failed program was:" >&5 |
---|
| 4209 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4210 | |
---|
| 4211 | ac_header_compiler=no |
---|
| 4212 | fi |
---|
| 4213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4214 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4215 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4216 | |
---|
| 4217 | # Is the header present? |
---|
| 4218 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4219 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4220 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4221 | /* confdefs.h. */ |
---|
| 4222 | _ACEOF |
---|
| 4223 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4224 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4225 | /* end confdefs.h. */ |
---|
| 4226 | #include <$ac_header> |
---|
| 4227 | _ACEOF |
---|
| 4228 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4229 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4230 | ac_status=$? |
---|
| 4231 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4232 | rm -f conftest.er1 |
---|
| 4233 | cat conftest.err >&5 |
---|
| 4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4235 | (exit $ac_status); } >/dev/null; then |
---|
| 4236 | if test -s conftest.err; then |
---|
| 4237 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4238 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4239 | else |
---|
| 4240 | ac_cpp_err= |
---|
| 4241 | fi |
---|
| 4242 | else |
---|
| 4243 | ac_cpp_err=yes |
---|
| 4244 | fi |
---|
| 4245 | if test -z "$ac_cpp_err"; then |
---|
| 4246 | ac_header_preproc=yes |
---|
| 4247 | else |
---|
| 4248 | echo "$as_me: failed program was:" >&5 |
---|
| 4249 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4250 | |
---|
| 4251 | ac_header_preproc=no |
---|
| 4252 | fi |
---|
| 4253 | rm -f conftest.err conftest.$ac_ext |
---|
| 4254 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4255 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4256 | |
---|
| 4257 | # So? What about this header? |
---|
| 4258 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4259 | yes:no: ) |
---|
| 4260 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4261 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4262 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4263 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4264 | ac_header_preproc=yes |
---|
| 4265 | ;; |
---|
| 4266 | no:yes:* ) |
---|
| 4267 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4268 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4269 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4270 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4271 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4272 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4273 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4274 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4275 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4276 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4277 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4278 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4279 | ( |
---|
| 4280 | cat <<\_ASBOX |
---|
| 4281 | ## ------------------------------------------- ## |
---|
| 4282 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4283 | ## ------------------------------------------- ## |
---|
| 4284 | _ASBOX |
---|
| 4285 | ) | |
---|
| 4286 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4287 | ;; |
---|
| 4288 | esac |
---|
| 4289 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4290 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4291 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4293 | else |
---|
| 4294 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4295 | fi |
---|
| 4296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4297 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4298 | |
---|
| 4299 | fi |
---|
| 4300 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4301 | cat >>confdefs.h <<_ACEOF |
---|
| 4302 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4303 | _ACEOF |
---|
| 4304 | |
---|
| 4305 | else |
---|
| 4306 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4307 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4308 | { (exit 1); exit 1; }; } |
---|
| 4309 | fi |
---|
| 4310 | |
---|
| 4311 | done |
---|
| 4312 | |
---|
| 4313 | |
---|
[2701] | 4314 | # checking for libGLU |
---|
| 4315 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4316 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4317 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
[1956] | 4318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4319 | else |
---|
| 4320 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4321 | LIBS="-lglu32 $LIBS" |
---|
[1956] | 4322 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4323 | /* confdefs.h. */ |
---|
| 4324 | _ACEOF |
---|
| 4325 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4326 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4327 | /* end confdefs.h. */ |
---|
| 4328 | |
---|
[2701] | 4329 | |
---|
[1956] | 4330 | int |
---|
| 4331 | main () |
---|
| 4332 | { |
---|
[2701] | 4333 | main (); |
---|
[1956] | 4334 | ; |
---|
| 4335 | return 0; |
---|
| 4336 | } |
---|
| 4337 | _ACEOF |
---|
| 4338 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4340 | (eval $ac_link) 2>conftest.er1 |
---|
| 4341 | ac_status=$? |
---|
| 4342 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4343 | rm -f conftest.er1 |
---|
| 4344 | cat conftest.err >&5 |
---|
| 4345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4346 | (exit $ac_status); } && |
---|
| 4347 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4348 | || test ! -s conftest.err' |
---|
| 4349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4350 | (eval $ac_try) 2>&5 |
---|
| 4351 | ac_status=$? |
---|
| 4352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4353 | (exit $ac_status); }; } && |
---|
| 4354 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4356 | (eval $ac_try) 2>&5 |
---|
| 4357 | ac_status=$? |
---|
| 4358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4359 | (exit $ac_status); }; }; then |
---|
[2701] | 4360 | ac_cv_lib_glu32_main=yes |
---|
[1956] | 4361 | else |
---|
| 4362 | echo "$as_me: failed program was:" >&5 |
---|
| 4363 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4364 | |
---|
[2701] | 4365 | ac_cv_lib_glu32_main=no |
---|
[1956] | 4366 | fi |
---|
| 4367 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4368 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4369 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4370 | fi |
---|
[2701] | 4371 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4372 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 4373 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 4374 | FOUND_glu32=yes |
---|
[1959] | 4375 | fi |
---|
| 4376 | |
---|
[2701] | 4377 | if test "$FOUND_glu32" = "yes" ; then |
---|
| 4378 | LIBS="$LIBS -lGLU32" |
---|
| 4379 | else |
---|
| 4380 | echo "------------------" |
---|
| 4381 | echo "GLU library not found." |
---|
| 4382 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4383 | echo "------------------" |
---|
| 4384 | exit -1 |
---|
| 4385 | fi |
---|
| 4386 | |
---|
| 4387 | |
---|
| 4388 | # checking for mingw32 |
---|
| 4389 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4390 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4391 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
[1959] | 4392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4393 | else |
---|
| 4394 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4395 | LIBS="-lmingw32 $LIBS" |
---|
[1959] | 4396 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4397 | /* confdefs.h. */ |
---|
[1956] | 4398 | _ACEOF |
---|
[1959] | 4399 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4400 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4401 | /* end confdefs.h. */ |
---|
[1956] | 4402 | |
---|
[1971] | 4403 | |
---|
[1959] | 4404 | int |
---|
| 4405 | main () |
---|
| 4406 | { |
---|
[1971] | 4407 | main (); |
---|
[1959] | 4408 | ; |
---|
| 4409 | return 0; |
---|
| 4410 | } |
---|
| 4411 | _ACEOF |
---|
| 4412 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4414 | (eval $ac_link) 2>conftest.er1 |
---|
| 4415 | ac_status=$? |
---|
| 4416 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4417 | rm -f conftest.er1 |
---|
| 4418 | cat conftest.err >&5 |
---|
| 4419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4420 | (exit $ac_status); } && |
---|
| 4421 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4422 | || test ! -s conftest.err' |
---|
| 4423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4424 | (eval $ac_try) 2>&5 |
---|
| 4425 | ac_status=$? |
---|
| 4426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4427 | (exit $ac_status); }; } && |
---|
| 4428 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4430 | (eval $ac_try) 2>&5 |
---|
| 4431 | ac_status=$? |
---|
| 4432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4433 | (exit $ac_status); }; }; then |
---|
[2701] | 4434 | ac_cv_lib_mingw32_main=yes |
---|
[1959] | 4435 | else |
---|
| 4436 | echo "$as_me: failed program was:" >&5 |
---|
| 4437 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4438 | |
---|
[2701] | 4439 | ac_cv_lib_mingw32_main=no |
---|
[1956] | 4440 | fi |
---|
[1959] | 4441 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4442 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4443 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4444 | fi |
---|
[2701] | 4445 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4446 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4447 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4448 | FOUND_mingw32=yes |
---|
[1959] | 4449 | fi |
---|
[1956] | 4450 | |
---|
[2701] | 4451 | if test $FOUND_mingw32 = "yes"; then |
---|
| 4452 | LIBS="$LIBS -lmingw32" |
---|
| 4453 | fi |
---|
[1959] | 4454 | |
---|
[2701] | 4455 | ;; |
---|
| 4456 | |
---|
| 4457 | ### LINUX ### |
---|
[2980] | 4458 | *-*-linux*) |
---|
[2701] | 4459 | echo "Linux detected" |
---|
[1956] | 4460 | |
---|
[2701] | 4461 | Linux="yes" |
---|
| 4462 | |
---|
[2968] | 4463 | # checking gl header |
---|
[2701] | 4464 | |
---|
[2879] | 4465 | for ac_header in GL/gl.h |
---|
| 4466 | do |
---|
| 4467 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4468 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4469 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4470 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4471 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4473 | fi |
---|
| 4474 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4475 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4476 | else |
---|
| 4477 | # Is the header compilable? |
---|
| 4478 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4479 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4480 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4481 | /* confdefs.h. */ |
---|
| 4482 | _ACEOF |
---|
| 4483 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4484 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4485 | /* end confdefs.h. */ |
---|
| 4486 | $ac_includes_default |
---|
| 4487 | #include <$ac_header> |
---|
| 4488 | _ACEOF |
---|
| 4489 | rm -f conftest.$ac_objext |
---|
| 4490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4491 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4492 | ac_status=$? |
---|
| 4493 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4494 | rm -f conftest.er1 |
---|
| 4495 | cat conftest.err >&5 |
---|
| 4496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4497 | (exit $ac_status); } && |
---|
| 4498 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4499 | || test ! -s conftest.err' |
---|
| 4500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4501 | (eval $ac_try) 2>&5 |
---|
| 4502 | ac_status=$? |
---|
| 4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4504 | (exit $ac_status); }; } && |
---|
| 4505 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4507 | (eval $ac_try) 2>&5 |
---|
| 4508 | ac_status=$? |
---|
| 4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4510 | (exit $ac_status); }; }; then |
---|
| 4511 | ac_header_compiler=yes |
---|
| 4512 | else |
---|
| 4513 | echo "$as_me: failed program was:" >&5 |
---|
| 4514 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4515 | |
---|
| 4516 | ac_header_compiler=no |
---|
| 4517 | fi |
---|
| 4518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4519 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4520 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4521 | |
---|
| 4522 | # Is the header present? |
---|
| 4523 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4524 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4525 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4526 | /* confdefs.h. */ |
---|
| 4527 | _ACEOF |
---|
| 4528 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4529 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4530 | /* end confdefs.h. */ |
---|
| 4531 | #include <$ac_header> |
---|
| 4532 | _ACEOF |
---|
| 4533 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4534 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4535 | ac_status=$? |
---|
| 4536 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4537 | rm -f conftest.er1 |
---|
| 4538 | cat conftest.err >&5 |
---|
| 4539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4540 | (exit $ac_status); } >/dev/null; then |
---|
| 4541 | if test -s conftest.err; then |
---|
| 4542 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4543 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4544 | else |
---|
| 4545 | ac_cpp_err= |
---|
| 4546 | fi |
---|
| 4547 | else |
---|
| 4548 | ac_cpp_err=yes |
---|
| 4549 | fi |
---|
| 4550 | if test -z "$ac_cpp_err"; then |
---|
| 4551 | ac_header_preproc=yes |
---|
| 4552 | else |
---|
| 4553 | echo "$as_me: failed program was:" >&5 |
---|
| 4554 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4555 | |
---|
| 4556 | ac_header_preproc=no |
---|
| 4557 | fi |
---|
| 4558 | rm -f conftest.err conftest.$ac_ext |
---|
| 4559 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4560 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4561 | |
---|
| 4562 | # So? What about this header? |
---|
| 4563 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4564 | yes:no: ) |
---|
| 4565 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4566 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4567 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4568 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4569 | ac_header_preproc=yes |
---|
| 4570 | ;; |
---|
| 4571 | no:yes:* ) |
---|
| 4572 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4573 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4574 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4575 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4576 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4577 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4578 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4579 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4580 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4581 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4582 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4583 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4584 | ( |
---|
| 4585 | cat <<\_ASBOX |
---|
| 4586 | ## ------------------------------------------- ## |
---|
| 4587 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4588 | ## ------------------------------------------- ## |
---|
| 4589 | _ASBOX |
---|
| 4590 | ) | |
---|
| 4591 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4592 | ;; |
---|
| 4593 | esac |
---|
| 4594 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4595 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4596 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4598 | else |
---|
| 4599 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4600 | fi |
---|
| 4601 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4602 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4603 | |
---|
| 4604 | fi |
---|
| 4605 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4606 | cat >>confdefs.h <<_ACEOF |
---|
| 4607 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4608 | _ACEOF |
---|
| 4609 | |
---|
| 4610 | else |
---|
| 4611 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4612 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4613 | { (exit 1); exit 1; }; } |
---|
| 4614 | fi |
---|
| 4615 | |
---|
| 4616 | done |
---|
| 4617 | |
---|
| 4618 | |
---|
[2701] | 4619 | # checking for Unix GL |
---|
| 4620 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
| 4621 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
| 4622 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
[1956] | 4623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4624 | else |
---|
| 4625 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4626 | LIBS="-lGL $LIBS" |
---|
[1956] | 4627 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4628 | /* confdefs.h. */ |
---|
| 4629 | _ACEOF |
---|
| 4630 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4631 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4632 | /* end confdefs.h. */ |
---|
| 4633 | |
---|
| 4634 | |
---|
| 4635 | int |
---|
| 4636 | main () |
---|
| 4637 | { |
---|
| 4638 | main (); |
---|
| 4639 | ; |
---|
| 4640 | return 0; |
---|
| 4641 | } |
---|
| 4642 | _ACEOF |
---|
| 4643 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4645 | (eval $ac_link) 2>conftest.er1 |
---|
| 4646 | ac_status=$? |
---|
| 4647 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4648 | rm -f conftest.er1 |
---|
| 4649 | cat conftest.err >&5 |
---|
| 4650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4651 | (exit $ac_status); } && |
---|
| 4652 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4653 | || test ! -s conftest.err' |
---|
| 4654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4655 | (eval $ac_try) 2>&5 |
---|
| 4656 | ac_status=$? |
---|
| 4657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4658 | (exit $ac_status); }; } && |
---|
| 4659 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4661 | (eval $ac_try) 2>&5 |
---|
| 4662 | ac_status=$? |
---|
| 4663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4664 | (exit $ac_status); }; }; then |
---|
[2701] | 4665 | ac_cv_lib_GL_main=yes |
---|
[1956] | 4666 | else |
---|
| 4667 | echo "$as_me: failed program was:" >&5 |
---|
| 4668 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4669 | |
---|
[2701] | 4670 | ac_cv_lib_GL_main=no |
---|
[1956] | 4671 | fi |
---|
| 4672 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4673 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4674 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4675 | fi |
---|
[2701] | 4676 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
| 4677 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
| 4678 | if test $ac_cv_lib_GL_main = yes; then |
---|
| 4679 | FOUND_GL=yes |
---|
| 4680 | fi |
---|
| 4681 | |
---|
| 4682 | if test "$FOUND_GL" = "yes" ; then |
---|
| 4683 | LIBS="$LIBS -lGL" |
---|
| 4684 | else |
---|
| 4685 | echo "------------------" |
---|
| 4686 | echo "opengl not found." |
---|
| 4687 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4688 | echo "------------------" |
---|
| 4689 | exit -1 |
---|
| 4690 | fi |
---|
| 4691 | |
---|
| 4692 | # cheking for GLU-header |
---|
| 4693 | |
---|
| 4694 | for ac_header in GL/glu.h |
---|
| 4695 | do |
---|
| 4696 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4697 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4698 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4699 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4702 | fi |
---|
| 4703 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4704 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4705 | else |
---|
| 4706 | # Is the header compilable? |
---|
| 4707 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4708 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4709 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4710 | /* confdefs.h. */ |
---|
[1956] | 4711 | _ACEOF |
---|
[2701] | 4712 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4713 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4714 | /* end confdefs.h. */ |
---|
| 4715 | $ac_includes_default |
---|
| 4716 | #include <$ac_header> |
---|
| 4717 | _ACEOF |
---|
| 4718 | rm -f conftest.$ac_objext |
---|
| 4719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4720 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4721 | ac_status=$? |
---|
| 4722 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4723 | rm -f conftest.er1 |
---|
| 4724 | cat conftest.err >&5 |
---|
| 4725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4726 | (exit $ac_status); } && |
---|
| 4727 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4728 | || test ! -s conftest.err' |
---|
| 4729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4730 | (eval $ac_try) 2>&5 |
---|
| 4731 | ac_status=$? |
---|
| 4732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4733 | (exit $ac_status); }; } && |
---|
| 4734 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4736 | (eval $ac_try) 2>&5 |
---|
| 4737 | ac_status=$? |
---|
| 4738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4739 | (exit $ac_status); }; }; then |
---|
| 4740 | ac_header_compiler=yes |
---|
| 4741 | else |
---|
| 4742 | echo "$as_me: failed program was:" >&5 |
---|
| 4743 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4744 | |
---|
[2701] | 4745 | ac_header_compiler=no |
---|
| 4746 | fi |
---|
| 4747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4748 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4749 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 4750 | |
---|
[2701] | 4751 | # Is the header present? |
---|
| 4752 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4753 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4754 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4755 | /* confdefs.h. */ |
---|
| 4756 | _ACEOF |
---|
| 4757 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4758 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4759 | /* end confdefs.h. */ |
---|
| 4760 | #include <$ac_header> |
---|
| 4761 | _ACEOF |
---|
| 4762 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4763 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4764 | ac_status=$? |
---|
| 4765 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4766 | rm -f conftest.er1 |
---|
| 4767 | cat conftest.err >&5 |
---|
| 4768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4769 | (exit $ac_status); } >/dev/null; then |
---|
| 4770 | if test -s conftest.err; then |
---|
| 4771 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4772 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4773 | else |
---|
| 4774 | ac_cpp_err= |
---|
| 4775 | fi |
---|
| 4776 | else |
---|
| 4777 | ac_cpp_err=yes |
---|
[1956] | 4778 | fi |
---|
[2701] | 4779 | if test -z "$ac_cpp_err"; then |
---|
| 4780 | ac_header_preproc=yes |
---|
| 4781 | else |
---|
| 4782 | echo "$as_me: failed program was:" >&5 |
---|
| 4783 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4784 | |
---|
[2701] | 4785 | ac_header_preproc=no |
---|
| 4786 | fi |
---|
| 4787 | rm -f conftest.err conftest.$ac_ext |
---|
| 4788 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4789 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 4790 | |
---|
[2701] | 4791 | # So? What about this header? |
---|
| 4792 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4793 | yes:no: ) |
---|
| 4794 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4795 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4796 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4797 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4798 | ac_header_preproc=yes |
---|
| 4799 | ;; |
---|
| 4800 | no:yes:* ) |
---|
| 4801 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4802 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4803 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4804 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4805 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4806 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4807 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4808 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4809 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4810 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4811 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4812 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4813 | ( |
---|
| 4814 | cat <<\_ASBOX |
---|
| 4815 | ## ------------------------------------------- ## |
---|
| 4816 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4817 | ## ------------------------------------------- ## |
---|
| 4818 | _ASBOX |
---|
| 4819 | ) | |
---|
| 4820 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4821 | ;; |
---|
| 4822 | esac |
---|
| 4823 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4824 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4825 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 4826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4827 | else |
---|
[2701] | 4828 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4829 | fi |
---|
| 4830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4831 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4832 | |
---|
| 4833 | fi |
---|
| 4834 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4835 | cat >>confdefs.h <<_ACEOF |
---|
| 4836 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4837 | _ACEOF |
---|
| 4838 | |
---|
| 4839 | else |
---|
| 4840 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4841 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4842 | { (exit 1); exit 1; }; } |
---|
| 4843 | fi |
---|
| 4844 | |
---|
| 4845 | done |
---|
| 4846 | |
---|
| 4847 | |
---|
| 4848 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 4849 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 4850 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 4851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4852 | else |
---|
[2190] | 4853 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4854 | LIBS="-lGLU $LIBS" |
---|
[2190] | 4855 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4856 | /* confdefs.h. */ |
---|
| 4857 | _ACEOF |
---|
| 4858 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4859 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4860 | /* end confdefs.h. */ |
---|
| 4861 | |
---|
[2701] | 4862 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4863 | #ifdef __cplusplus |
---|
| 4864 | extern "C" |
---|
| 4865 | #endif |
---|
| 4866 | /* We use char because int might match the return type of a gcc2 |
---|
| 4867 | builtin and then its argument prototype would still apply. */ |
---|
| 4868 | char gluProject (); |
---|
[2190] | 4869 | int |
---|
| 4870 | main () |
---|
| 4871 | { |
---|
[2701] | 4872 | gluProject (); |
---|
[2190] | 4873 | ; |
---|
| 4874 | return 0; |
---|
| 4875 | } |
---|
| 4876 | _ACEOF |
---|
| 4877 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4879 | (eval $ac_link) 2>conftest.er1 |
---|
| 4880 | ac_status=$? |
---|
| 4881 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4882 | rm -f conftest.er1 |
---|
| 4883 | cat conftest.err >&5 |
---|
| 4884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4885 | (exit $ac_status); } && |
---|
| 4886 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4887 | || test ! -s conftest.err' |
---|
| 4888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4889 | (eval $ac_try) 2>&5 |
---|
| 4890 | ac_status=$? |
---|
| 4891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4892 | (exit $ac_status); }; } && |
---|
| 4893 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4895 | (eval $ac_try) 2>&5 |
---|
| 4896 | ac_status=$? |
---|
| 4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4898 | (exit $ac_status); }; }; then |
---|
[2701] | 4899 | ac_cv_lib_GLU_gluProject=yes |
---|
[2190] | 4900 | else |
---|
| 4901 | echo "$as_me: failed program was:" >&5 |
---|
| 4902 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4903 | |
---|
[2701] | 4904 | ac_cv_lib_GLU_gluProject=no |
---|
[2190] | 4905 | fi |
---|
| 4906 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4907 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4908 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4909 | fi |
---|
[2701] | 4910 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 4911 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 4912 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 4913 | FOUND_GLU=yes |
---|
[2190] | 4914 | fi |
---|
| 4915 | |
---|
[2701] | 4916 | if test "$FOUND_GLU" = "yes" ; then |
---|
| 4917 | LIBS="$LIBS -lGLU" |
---|
| 4918 | else |
---|
| 4919 | echo "------------------" |
---|
| 4920 | echo "GLU library not found." |
---|
| 4921 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4922 | echo "------------------" |
---|
| 4923 | exit -1 |
---|
| 4924 | fi |
---|
[2980] | 4925 | ;; |
---|
| 4926 | *) |
---|
| 4927 | mingw="no" |
---|
| 4928 | ;; |
---|
| 4929 | esac |
---|
[2190] | 4930 | |
---|
| 4931 | |
---|
[2980] | 4932 | |
---|
| 4933 | |
---|
| 4934 | ## checking for SDL |
---|
| 4935 | SDL_VERSION=1.2.7 |
---|
| 4936 | |
---|
| 4937 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. |
---|
| 4938 | if test "${with_sdl_prefix+set}" = set; then |
---|
| 4939 | withval="$with_sdl_prefix" |
---|
| 4940 | sdl_prefix="$withval" |
---|
[2190] | 4941 | else |
---|
[2980] | 4942 | sdl_prefix="" |
---|
| 4943 | fi; |
---|
| 4944 | |
---|
| 4945 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. |
---|
| 4946 | if test "${with_sdl_exec_prefix+set}" = set; then |
---|
| 4947 | withval="$with_sdl_exec_prefix" |
---|
| 4948 | sdl_exec_prefix="$withval" |
---|
[2190] | 4949 | else |
---|
[2980] | 4950 | sdl_exec_prefix="" |
---|
| 4951 | fi; |
---|
| 4952 | # Check whether --enable-sdltest or --disable-sdltest was given. |
---|
| 4953 | if test "${enable_sdltest+set}" = set; then |
---|
| 4954 | enableval="$enable_sdltest" |
---|
[2190] | 4955 | |
---|
[2980] | 4956 | else |
---|
| 4957 | enable_sdltest=yes |
---|
| 4958 | fi; |
---|
[2190] | 4959 | |
---|
[2980] | 4960 | if test x$sdl_exec_prefix != x ; then |
---|
| 4961 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" |
---|
| 4962 | if test x${SDL_CONFIG+set} != xset ; then |
---|
| 4963 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config |
---|
| 4964 | fi |
---|
[2190] | 4965 | fi |
---|
[2980] | 4966 | if test x$sdl_prefix != x ; then |
---|
| 4967 | sdl_args="$sdl_args --prefix=$sdl_prefix" |
---|
| 4968 | if test x${SDL_CONFIG+set} != xset ; then |
---|
| 4969 | SDL_CONFIG=$sdl_prefix/bin/sdl-config |
---|
| 4970 | fi |
---|
| 4971 | fi |
---|
[2190] | 4972 | |
---|
| 4973 | |
---|
[2980] | 4974 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" |
---|
| 4975 | # Extract the first word of "sdl-config", so it can be a program name with args. |
---|
| 4976 | set dummy sdl-config; ac_word=$2 |
---|
| 4977 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4979 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then |
---|
[2190] | 4980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4981 | else |
---|
[2980] | 4982 | case $SDL_CONFIG in |
---|
| 4983 | [\\/]* | ?:[\\/]*) |
---|
| 4984 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. |
---|
| 4985 | ;; |
---|
| 4986 | *) |
---|
| 4987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4988 | for as_dir in $PATH |
---|
| 4989 | do |
---|
| 4990 | IFS=$as_save_IFS |
---|
| 4991 | test -z "$as_dir" && as_dir=. |
---|
| 4992 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4993 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4994 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4995 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4996 | break 2 |
---|
| 4997 | fi |
---|
| 4998 | done |
---|
| 4999 | done |
---|
[2190] | 5000 | |
---|
[2980] | 5001 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" |
---|
| 5002 | ;; |
---|
| 5003 | esac |
---|
[2190] | 5004 | fi |
---|
[2980] | 5005 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG |
---|
[2190] | 5006 | |
---|
[2980] | 5007 | if test -n "$SDL_CONFIG"; then |
---|
| 5008 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 |
---|
| 5009 | echo "${ECHO_T}$SDL_CONFIG" >&6 |
---|
[2190] | 5010 | else |
---|
[2980] | 5011 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 5012 | echo "${ECHO_T}no" >&6 |
---|
[2190] | 5013 | fi |
---|
| 5014 | |
---|
[2980] | 5015 | min_sdl_version=$SDL_VERSION |
---|
| 5016 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 |
---|
| 5017 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 |
---|
| 5018 | no_sdl="" |
---|
| 5019 | if test "$SDL_CONFIG" = "no" ; then |
---|
| 5020 | no_sdl=yes |
---|
| 5021 | else |
---|
| 5022 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` |
---|
| 5023 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` |
---|
[2190] | 5024 | |
---|
[2980] | 5025 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ |
---|
| 5026 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
| 5027 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ |
---|
| 5028 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
| 5029 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ |
---|
| 5030 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
| 5031 | if test "x$enable_sdltest" = "xyes" ; then |
---|
| 5032 | ac_save_CFLAGS="$CFLAGS" |
---|
| 5033 | ac_save_LIBS="$LIBS" |
---|
| 5034 | CFLAGS="$CFLAGS $SDL_CFLAGS" |
---|
| 5035 | LIBS="$LIBS $SDL_LIBS" |
---|
| 5036 | rm -f conf.sdltest |
---|
| 5037 | if test "$cross_compiling" = yes; then |
---|
| 5038 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
[2190] | 5039 | else |
---|
[2980] | 5040 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5041 | /* confdefs.h. */ |
---|
| 5042 | _ACEOF |
---|
| 5043 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5044 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5045 | /* end confdefs.h. */ |
---|
| 5046 | |
---|
[2980] | 5047 | #include <stdio.h> |
---|
| 5048 | #include <stdlib.h> |
---|
| 5049 | #include <string.h> |
---|
| 5050 | #include "SDL.h" |
---|
[2190] | 5051 | |
---|
[2980] | 5052 | char* |
---|
| 5053 | my_strdup (char *str) |
---|
[2190] | 5054 | { |
---|
[2980] | 5055 | char *new_str; |
---|
| 5056 | |
---|
| 5057 | if (str) |
---|
| 5058 | { |
---|
| 5059 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); |
---|
| 5060 | strcpy (new_str, str); |
---|
| 5061 | } |
---|
| 5062 | else |
---|
| 5063 | new_str = NULL; |
---|
| 5064 | |
---|
| 5065 | return new_str; |
---|
[2190] | 5066 | } |
---|
[2980] | 5067 | |
---|
| 5068 | int main (int argc, char *argv[]) |
---|
| 5069 | { |
---|
| 5070 | int major, minor, micro; |
---|
| 5071 | char *tmp_version; |
---|
| 5072 | |
---|
| 5073 | /* This hangs on some systems (?) |
---|
| 5074 | system ("touch conf.sdltest"); |
---|
| 5075 | */ |
---|
| 5076 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } |
---|
| 5077 | |
---|
| 5078 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
---|
| 5079 | tmp_version = my_strdup("$min_sdl_version"); |
---|
| 5080 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
---|
| 5081 | printf("%s, bad version string\n", "$min_sdl_version"); |
---|
| 5082 | exit(1); |
---|
| 5083 | } |
---|
| 5084 | |
---|
| 5085 | if (($sdl_major_version > major) || |
---|
| 5086 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || |
---|
| 5087 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) |
---|
| 5088 | { |
---|
| 5089 | return 0; |
---|
| 5090 | } |
---|
| 5091 | else |
---|
| 5092 | { |
---|
| 5093 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); |
---|
| 5094 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); |
---|
| 5095 | printf("*** best to upgrade to the required version.\n"); |
---|
| 5096 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); |
---|
| 5097 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); |
---|
| 5098 | printf("*** config.cache before re-running configure\n"); |
---|
| 5099 | return 1; |
---|
| 5100 | } |
---|
| 5101 | } |
---|
| 5102 | |
---|
| 5103 | |
---|
[2190] | 5104 | _ACEOF |
---|
[2980] | 5105 | rm -f conftest$ac_exeext |
---|
[2190] | 5106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
[2980] | 5107 | (eval $ac_link) 2>&5 |
---|
[2190] | 5108 | ac_status=$? |
---|
| 5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2980] | 5110 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
[2190] | 5111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5112 | (eval $ac_try) 2>&5 |
---|
| 5113 | ac_status=$? |
---|
| 5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5115 | (exit $ac_status); }; }; then |
---|
[2980] | 5116 | : |
---|
[2190] | 5117 | else |
---|
[2980] | 5118 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5119 | echo "$as_me: failed program was:" >&5 |
---|
[2190] | 5120 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5121 | |
---|
[2980] | 5122 | ( exit $ac_status ) |
---|
| 5123 | no_sdl=yes |
---|
[2190] | 5124 | fi |
---|
[2980] | 5125 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
[2190] | 5126 | fi |
---|
[2980] | 5127 | CFLAGS="$ac_save_CFLAGS" |
---|
| 5128 | LIBS="$ac_save_LIBS" |
---|
| 5129 | fi |
---|
| 5130 | fi |
---|
| 5131 | if test "x$no_sdl" = x ; then |
---|
| 5132 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 5133 | echo "${ECHO_T}yes" >&6 |
---|
| 5134 | : |
---|
| 5135 | else |
---|
| 5136 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 5137 | echo "${ECHO_T}no" >&6 |
---|
| 5138 | if test "$SDL_CONFIG" = "no" ; then |
---|
| 5139 | echo "*** The sdl-config script installed by SDL could not be found" |
---|
| 5140 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" |
---|
| 5141 | echo "*** your path, or set the SDL_CONFIG environment variable to the" |
---|
| 5142 | echo "*** full path to sdl-config." |
---|
[2701] | 5143 | else |
---|
[2980] | 5144 | if test -f conf.sdltest ; then |
---|
| 5145 | : |
---|
| 5146 | else |
---|
| 5147 | echo "*** Could not run SDL test program, checking why..." |
---|
| 5148 | CFLAGS="$CFLAGS $SDL_CFLAGS" |
---|
| 5149 | LIBS="$LIBS $SDL_LIBS" |
---|
| 5150 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5151 | /* confdefs.h. */ |
---|
| 5152 | _ACEOF |
---|
| 5153 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5154 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5155 | /* end confdefs.h. */ |
---|
| 5156 | |
---|
[2980] | 5157 | #include <stdio.h> |
---|
| 5158 | #include "SDL.h" |
---|
[2190] | 5159 | |
---|
[2980] | 5160 | int main(int argc, char *argv[]) |
---|
| 5161 | { return 0; } |
---|
| 5162 | #undef main |
---|
| 5163 | #define main K_and_R_C_main |
---|
| 5164 | |
---|
[2190] | 5165 | int |
---|
| 5166 | main () |
---|
| 5167 | { |
---|
[2980] | 5168 | return 0; |
---|
[2190] | 5169 | ; |
---|
| 5170 | return 0; |
---|
| 5171 | } |
---|
| 5172 | _ACEOF |
---|
| 5173 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5175 | (eval $ac_link) 2>conftest.er1 |
---|
| 5176 | ac_status=$? |
---|
| 5177 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5178 | rm -f conftest.er1 |
---|
| 5179 | cat conftest.err >&5 |
---|
| 5180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5181 | (exit $ac_status); } && |
---|
| 5182 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5183 | || test ! -s conftest.err' |
---|
| 5184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5185 | (eval $ac_try) 2>&5 |
---|
| 5186 | ac_status=$? |
---|
| 5187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5188 | (exit $ac_status); }; } && |
---|
| 5189 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5191 | (eval $ac_try) 2>&5 |
---|
| 5192 | ac_status=$? |
---|
| 5193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5194 | (exit $ac_status); }; }; then |
---|
[2980] | 5195 | echo "*** The test program compiled, but did not run. This usually means" |
---|
| 5196 | echo "*** that the run-time linker is not finding SDL or finding the wrong" |
---|
| 5197 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" |
---|
| 5198 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
---|
| 5199 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
---|
| 5200 | echo "*** is required on your system" |
---|
| 5201 | echo "***" |
---|
| 5202 | echo "*** If you have an old version installed, it is best to remove it, although" |
---|
| 5203 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
---|
[2190] | 5204 | else |
---|
| 5205 | echo "$as_me: failed program was:" >&5 |
---|
| 5206 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5207 | |
---|
[2980] | 5208 | echo "*** The test program failed to compile or link. See the file config.log for the" |
---|
| 5209 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" |
---|
| 5210 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" |
---|
| 5211 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" |
---|
[2190] | 5212 | fi |
---|
| 5213 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5214 | conftest$ac_exeext conftest.$ac_ext |
---|
[2980] | 5215 | CFLAGS="$ac_save_CFLAGS" |
---|
| 5216 | LIBS="$ac_save_LIBS" |
---|
| 5217 | fi |
---|
| 5218 | fi |
---|
| 5219 | SDL_CFLAGS="" |
---|
| 5220 | SDL_LIBS="" |
---|
| 5221 | { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5 |
---|
| 5222 | echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;} |
---|
| 5223 | { (exit 1); exit 1; }; } |
---|
[2701] | 5224 | |
---|
[2980] | 5225 | fi |
---|
[2701] | 5226 | |
---|
[2190] | 5227 | |
---|
[2980] | 5228 | rm -f conf.sdltest |
---|
[2701] | 5229 | |
---|
[2980] | 5230 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 5231 | LIBS="$LIBS $SDL_LIBS" |
---|
| 5232 | |
---|
[2981] | 5233 | |
---|
[2980] | 5234 | ## checking for GTK |
---|
| 5235 | |
---|
| 5236 | succeeded=no |
---|
| 5237 | |
---|
| 5238 | if test -z "$PKG_CONFIG"; then |
---|
| 5239 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
| 5240 | set dummy pkg-config; ac_word=$2 |
---|
| 5241 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 5242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 5243 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
[2190] | 5244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5245 | else |
---|
[2980] | 5246 | case $PKG_CONFIG in |
---|
| 5247 | [\\/]* | ?:[\\/]*) |
---|
| 5248 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
| 5249 | ;; |
---|
| 5250 | *) |
---|
| 5251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5252 | for as_dir in $PATH |
---|
| 5253 | do |
---|
| 5254 | IFS=$as_save_IFS |
---|
| 5255 | test -z "$as_dir" && as_dir=. |
---|
| 5256 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 5257 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 5258 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
| 5259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 5260 | break 2 |
---|
| 5261 | fi |
---|
| 5262 | done |
---|
| 5263 | done |
---|
[2190] | 5264 | |
---|
[2980] | 5265 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
---|
| 5266 | ;; |
---|
| 5267 | esac |
---|
| 5268 | fi |
---|
| 5269 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
[2190] | 5270 | |
---|
[2980] | 5271 | if test -n "$PKG_CONFIG"; then |
---|
| 5272 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
| 5273 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
[2190] | 5274 | else |
---|
[2980] | 5275 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 5276 | echo "${ECHO_T}no" >&6 |
---|
[2190] | 5277 | fi |
---|
[2701] | 5278 | |
---|
[2980] | 5279 | fi |
---|
[2701] | 5280 | |
---|
[2980] | 5281 | if test "$PKG_CONFIG" = "no" ; then |
---|
| 5282 | echo "*** The pkg-config script could not be found. Make sure it is" |
---|
| 5283 | echo "*** in your path, or set the PKG_CONFIG environment variable" |
---|
| 5284 | echo "*** to the full path to pkg-config." |
---|
| 5285 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." |
---|
| 5286 | else |
---|
| 5287 | PKG_CONFIG_MIN_VERSION=0.9.0 |
---|
| 5288 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
---|
| 5289 | echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3" >&5 |
---|
| 5290 | echo $ECHO_N "checking for gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3... $ECHO_C" >&6 |
---|
[2190] | 5291 | |
---|
[2980] | 5292 | if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3" ; then |
---|
| 5293 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 5294 | echo "${ECHO_T}yes" >&6 |
---|
| 5295 | succeeded=yes |
---|
[2701] | 5296 | |
---|
[2980] | 5297 | echo "$as_me:$LINENO: checking GTK2_CFLAGS" >&5 |
---|
| 5298 | echo $ECHO_N "checking GTK2_CFLAGS... $ECHO_C" >&6 |
---|
| 5299 | GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"` |
---|
| 5300 | echo "$as_me:$LINENO: result: $GTK2_CFLAGS" >&5 |
---|
| 5301 | echo "${ECHO_T}$GTK2_CFLAGS" >&6 |
---|
[2701] | 5302 | |
---|
[2980] | 5303 | echo "$as_me:$LINENO: checking GTK2_LIBS" >&5 |
---|
| 5304 | echo $ECHO_N "checking GTK2_LIBS... $ECHO_C" >&6 |
---|
| 5305 | GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"` |
---|
| 5306 | echo "$as_me:$LINENO: result: $GTK2_LIBS" >&5 |
---|
| 5307 | echo "${ECHO_T}$GTK2_LIBS" >&6 |
---|
| 5308 | else |
---|
| 5309 | GTK2_CFLAGS="" |
---|
| 5310 | GTK2_LIBS="" |
---|
| 5311 | ## If we have a custom action on failure, don't print errors, but |
---|
| 5312 | ## do set a variable so people can do so. |
---|
| 5313 | GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3"` |
---|
[2701] | 5314 | |
---|
[2980] | 5315 | fi |
---|
[2701] | 5316 | |
---|
[2190] | 5317 | |
---|
[2701] | 5318 | |
---|
[2980] | 5319 | else |
---|
| 5320 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
---|
| 5321 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
---|
| 5322 | fi |
---|
| 5323 | fi |
---|
[2701] | 5324 | |
---|
[2980] | 5325 | if test $succeeded = yes; then |
---|
| 5326 | have_gtk2=yes |
---|
| 5327 | else |
---|
| 5328 | have_gtk2=no |
---|
| 5329 | fi |
---|
[2701] | 5330 | |
---|
| 5331 | |
---|
[2968] | 5332 | |
---|
| 5333 | |
---|
| 5334 | |
---|
[2980] | 5335 | if test "x$have_gtk2" = xyes; then |
---|
| 5336 | HAVE_GTK2_TRUE= |
---|
| 5337 | HAVE_GTK2_FALSE='#' |
---|
| 5338 | else |
---|
| 5339 | HAVE_GTK2_TRUE='#' |
---|
| 5340 | HAVE_GTK2_FALSE= |
---|
| 5341 | fi |
---|
| 5342 | |
---|
| 5343 | |
---|
| 5344 | |
---|
[2190] | 5345 | #checking for pthread libs |
---|
[2968] | 5346 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
[2190] | 5347 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
| 5348 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
| 5349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5350 | else |
---|
| 5351 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5352 | LIBS="-lpthread $LIBS" |
---|
| 5353 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5354 | /* confdefs.h. */ |
---|
| 5355 | _ACEOF |
---|
| 5356 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5357 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5358 | /* end confdefs.h. */ |
---|
| 5359 | |
---|
| 5360 | |
---|
| 5361 | int |
---|
| 5362 | main () |
---|
| 5363 | { |
---|
| 5364 | main (); |
---|
| 5365 | ; |
---|
| 5366 | return 0; |
---|
| 5367 | } |
---|
| 5368 | _ACEOF |
---|
| 5369 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5371 | (eval $ac_link) 2>conftest.er1 |
---|
| 5372 | ac_status=$? |
---|
| 5373 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5374 | rm -f conftest.er1 |
---|
| 5375 | cat conftest.err >&5 |
---|
| 5376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5377 | (exit $ac_status); } && |
---|
| 5378 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5379 | || test ! -s conftest.err' |
---|
| 5380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5381 | (eval $ac_try) 2>&5 |
---|
| 5382 | ac_status=$? |
---|
| 5383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5384 | (exit $ac_status); }; } && |
---|
| 5385 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5387 | (eval $ac_try) 2>&5 |
---|
| 5388 | ac_status=$? |
---|
| 5389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5390 | (exit $ac_status); }; }; then |
---|
| 5391 | ac_cv_lib_pthread_main=yes |
---|
| 5392 | else |
---|
| 5393 | echo "$as_me: failed program was:" >&5 |
---|
| 5394 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5395 | |
---|
| 5396 | ac_cv_lib_pthread_main=no |
---|
| 5397 | fi |
---|
| 5398 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5399 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5400 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5401 | fi |
---|
| 5402 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
| 5403 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
| 5404 | if test $ac_cv_lib_pthread_main = yes; then |
---|
| 5405 | FOUND_pthread=yes |
---|
| 5406 | fi |
---|
| 5407 | |
---|
[2968] | 5408 | if test "$FOUND_pthread" = "yes" ; then |
---|
[2190] | 5409 | LIBS="$LIBS -lpthread" |
---|
[2968] | 5410 | fi |
---|
[2190] | 5411 | |
---|
| 5412 | |
---|
[1956] | 5413 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 5414 | |
---|
| 5415 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 5416 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 5417 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 5418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5419 | else |
---|
| 5420 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5421 | LIBS="-lm $LIBS" |
---|
| 5422 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5423 | /* confdefs.h. */ |
---|
| 5424 | _ACEOF |
---|
| 5425 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5426 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5427 | /* end confdefs.h. */ |
---|
| 5428 | |
---|
| 5429 | |
---|
| 5430 | int |
---|
| 5431 | main () |
---|
| 5432 | { |
---|
| 5433 | main (); |
---|
| 5434 | ; |
---|
| 5435 | return 0; |
---|
| 5436 | } |
---|
| 5437 | _ACEOF |
---|
| 5438 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5440 | (eval $ac_link) 2>conftest.er1 |
---|
| 5441 | ac_status=$? |
---|
| 5442 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5443 | rm -f conftest.er1 |
---|
| 5444 | cat conftest.err >&5 |
---|
| 5445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5446 | (exit $ac_status); } && |
---|
| 5447 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5448 | || test ! -s conftest.err' |
---|
| 5449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5450 | (eval $ac_try) 2>&5 |
---|
| 5451 | ac_status=$? |
---|
| 5452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5453 | (exit $ac_status); }; } && |
---|
| 5454 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5456 | (eval $ac_try) 2>&5 |
---|
| 5457 | ac_status=$? |
---|
| 5458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5459 | (exit $ac_status); }; }; then |
---|
| 5460 | ac_cv_lib_m_main=yes |
---|
| 5461 | else |
---|
| 5462 | echo "$as_me: failed program was:" >&5 |
---|
| 5463 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5464 | |
---|
| 5465 | ac_cv_lib_m_main=no |
---|
| 5466 | fi |
---|
| 5467 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5468 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5469 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5470 | fi |
---|
| 5471 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 5472 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 5473 | if test $ac_cv_lib_m_main = yes; then |
---|
| 5474 | cat >>confdefs.h <<_ACEOF |
---|
| 5475 | #define HAVE_LIBM 1 |
---|
| 5476 | _ACEOF |
---|
| 5477 | |
---|
| 5478 | LIBS="-lm $LIBS" |
---|
| 5479 | |
---|
| 5480 | fi |
---|
| 5481 | |
---|
| 5482 | |
---|
[2018] | 5483 | |
---|
[1956] | 5484 | # Checks for header files. |
---|
| 5485 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 5486 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 5487 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 5488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5489 | else |
---|
| 5490 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5491 | /* confdefs.h. */ |
---|
| 5492 | _ACEOF |
---|
| 5493 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5494 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5495 | /* end confdefs.h. */ |
---|
| 5496 | #include <stdlib.h> |
---|
| 5497 | #include <stdarg.h> |
---|
| 5498 | #include <string.h> |
---|
| 5499 | #include <float.h> |
---|
| 5500 | |
---|
| 5501 | int |
---|
| 5502 | main () |
---|
| 5503 | { |
---|
| 5504 | |
---|
| 5505 | ; |
---|
| 5506 | return 0; |
---|
| 5507 | } |
---|
| 5508 | _ACEOF |
---|
| 5509 | rm -f conftest.$ac_objext |
---|
| 5510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5511 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5512 | ac_status=$? |
---|
| 5513 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5514 | rm -f conftest.er1 |
---|
| 5515 | cat conftest.err >&5 |
---|
| 5516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5517 | (exit $ac_status); } && |
---|
| 5518 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5519 | || test ! -s conftest.err' |
---|
| 5520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5521 | (eval $ac_try) 2>&5 |
---|
| 5522 | ac_status=$? |
---|
| 5523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5524 | (exit $ac_status); }; } && |
---|
| 5525 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5527 | (eval $ac_try) 2>&5 |
---|
| 5528 | ac_status=$? |
---|
| 5529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5530 | (exit $ac_status); }; }; then |
---|
| 5531 | ac_cv_header_stdc=yes |
---|
| 5532 | else |
---|
| 5533 | echo "$as_me: failed program was:" >&5 |
---|
| 5534 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5535 | |
---|
| 5536 | ac_cv_header_stdc=no |
---|
| 5537 | fi |
---|
| 5538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5539 | |
---|
| 5540 | if test $ac_cv_header_stdc = yes; then |
---|
| 5541 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 5542 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5543 | /* confdefs.h. */ |
---|
| 5544 | _ACEOF |
---|
| 5545 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5546 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5547 | /* end confdefs.h. */ |
---|
| 5548 | #include <string.h> |
---|
| 5549 | |
---|
| 5550 | _ACEOF |
---|
| 5551 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 5552 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 5553 | : |
---|
| 5554 | else |
---|
| 5555 | ac_cv_header_stdc=no |
---|
| 5556 | fi |
---|
| 5557 | rm -f conftest* |
---|
| 5558 | |
---|
| 5559 | fi |
---|
| 5560 | |
---|
| 5561 | if test $ac_cv_header_stdc = yes; then |
---|
| 5562 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 5563 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5564 | /* confdefs.h. */ |
---|
| 5565 | _ACEOF |
---|
| 5566 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5567 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5568 | /* end confdefs.h. */ |
---|
| 5569 | #include <stdlib.h> |
---|
| 5570 | |
---|
| 5571 | _ACEOF |
---|
| 5572 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 5573 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 5574 | : |
---|
| 5575 | else |
---|
| 5576 | ac_cv_header_stdc=no |
---|
| 5577 | fi |
---|
| 5578 | rm -f conftest* |
---|
| 5579 | |
---|
| 5580 | fi |
---|
| 5581 | |
---|
| 5582 | if test $ac_cv_header_stdc = yes; then |
---|
| 5583 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 5584 | if test "$cross_compiling" = yes; then |
---|
| 5585 | : |
---|
| 5586 | else |
---|
| 5587 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5588 | /* confdefs.h. */ |
---|
| 5589 | _ACEOF |
---|
| 5590 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5591 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5592 | /* end confdefs.h. */ |
---|
| 5593 | #include <ctype.h> |
---|
| 5594 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 5595 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 5596 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 5597 | #else |
---|
| 5598 | # define ISLOWER(c) \ |
---|
| 5599 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 5600 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 5601 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 5602 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 5603 | #endif |
---|
| 5604 | |
---|
| 5605 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 5606 | int |
---|
| 5607 | main () |
---|
| 5608 | { |
---|
| 5609 | int i; |
---|
| 5610 | for (i = 0; i < 256; i++) |
---|
| 5611 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 5612 | || toupper (i) != TOUPPER (i)) |
---|
| 5613 | exit(2); |
---|
| 5614 | exit (0); |
---|
| 5615 | } |
---|
| 5616 | _ACEOF |
---|
| 5617 | rm -f conftest$ac_exeext |
---|
| 5618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5619 | (eval $ac_link) 2>&5 |
---|
| 5620 | ac_status=$? |
---|
| 5621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5622 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 5623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5624 | (eval $ac_try) 2>&5 |
---|
| 5625 | ac_status=$? |
---|
| 5626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5627 | (exit $ac_status); }; }; then |
---|
| 5628 | : |
---|
| 5629 | else |
---|
| 5630 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5631 | echo "$as_me: failed program was:" >&5 |
---|
| 5632 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5633 | |
---|
| 5634 | ( exit $ac_status ) |
---|
| 5635 | ac_cv_header_stdc=no |
---|
| 5636 | fi |
---|
| 5637 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 5638 | fi |
---|
| 5639 | fi |
---|
| 5640 | fi |
---|
| 5641 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 5642 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 5643 | if test $ac_cv_header_stdc = yes; then |
---|
| 5644 | |
---|
| 5645 | cat >>confdefs.h <<\_ACEOF |
---|
| 5646 | #define STDC_HEADERS 1 |
---|
| 5647 | _ACEOF |
---|
| 5648 | |
---|
| 5649 | fi |
---|
| 5650 | |
---|
| 5651 | |
---|
| 5652 | |
---|
| 5653 | for ac_header in stdlib.h string.h |
---|
| 5654 | do |
---|
| 5655 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5656 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5657 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5658 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5659 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5661 | fi |
---|
| 5662 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5663 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5664 | else |
---|
| 5665 | # Is the header compilable? |
---|
| 5666 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5667 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5668 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5669 | /* confdefs.h. */ |
---|
| 5670 | _ACEOF |
---|
| 5671 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5672 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5673 | /* end confdefs.h. */ |
---|
| 5674 | $ac_includes_default |
---|
| 5675 | #include <$ac_header> |
---|
| 5676 | _ACEOF |
---|
| 5677 | rm -f conftest.$ac_objext |
---|
| 5678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5679 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5680 | ac_status=$? |
---|
| 5681 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5682 | rm -f conftest.er1 |
---|
| 5683 | cat conftest.err >&5 |
---|
| 5684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5685 | (exit $ac_status); } && |
---|
| 5686 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5687 | || test ! -s conftest.err' |
---|
| 5688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5689 | (eval $ac_try) 2>&5 |
---|
| 5690 | ac_status=$? |
---|
| 5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5692 | (exit $ac_status); }; } && |
---|
| 5693 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5695 | (eval $ac_try) 2>&5 |
---|
| 5696 | ac_status=$? |
---|
| 5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5698 | (exit $ac_status); }; }; then |
---|
| 5699 | ac_header_compiler=yes |
---|
| 5700 | else |
---|
| 5701 | echo "$as_me: failed program was:" >&5 |
---|
| 5702 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5703 | |
---|
| 5704 | ac_header_compiler=no |
---|
| 5705 | fi |
---|
| 5706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5707 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5708 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5709 | |
---|
| 5710 | # Is the header present? |
---|
| 5711 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5712 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5713 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5714 | /* confdefs.h. */ |
---|
| 5715 | _ACEOF |
---|
| 5716 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5717 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5718 | /* end confdefs.h. */ |
---|
| 5719 | #include <$ac_header> |
---|
| 5720 | _ACEOF |
---|
| 5721 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5722 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5723 | ac_status=$? |
---|
| 5724 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5725 | rm -f conftest.er1 |
---|
| 5726 | cat conftest.err >&5 |
---|
| 5727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5728 | (exit $ac_status); } >/dev/null; then |
---|
| 5729 | if test -s conftest.err; then |
---|
| 5730 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5731 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5732 | else |
---|
| 5733 | ac_cpp_err= |
---|
| 5734 | fi |
---|
| 5735 | else |
---|
| 5736 | ac_cpp_err=yes |
---|
| 5737 | fi |
---|
| 5738 | if test -z "$ac_cpp_err"; then |
---|
| 5739 | ac_header_preproc=yes |
---|
| 5740 | else |
---|
| 5741 | echo "$as_me: failed program was:" >&5 |
---|
| 5742 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5743 | |
---|
| 5744 | ac_header_preproc=no |
---|
| 5745 | fi |
---|
| 5746 | rm -f conftest.err conftest.$ac_ext |
---|
| 5747 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5748 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5749 | |
---|
| 5750 | # So? What about this header? |
---|
| 5751 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5752 | yes:no: ) |
---|
| 5753 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5754 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5755 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5756 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5757 | ac_header_preproc=yes |
---|
| 5758 | ;; |
---|
| 5759 | no:yes:* ) |
---|
| 5760 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5761 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5762 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5763 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5764 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5765 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5766 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5767 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5768 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5769 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5770 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5771 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5772 | ( |
---|
| 5773 | cat <<\_ASBOX |
---|
| 5774 | ## ------------------------------------------- ## |
---|
| 5775 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 5776 | ## ------------------------------------------- ## |
---|
| 5777 | _ASBOX |
---|
| 5778 | ) | |
---|
| 5779 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5780 | ;; |
---|
| 5781 | esac |
---|
| 5782 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5783 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5786 | else |
---|
| 5787 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5788 | fi |
---|
| 5789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5790 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5791 | |
---|
| 5792 | fi |
---|
| 5793 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5794 | cat >>confdefs.h <<_ACEOF |
---|
| 5795 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5796 | _ACEOF |
---|
| 5797 | |
---|
| 5798 | fi |
---|
| 5799 | |
---|
| 5800 | done |
---|
| 5801 | |
---|
| 5802 | |
---|
| 5803 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 5804 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 5805 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 5806 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 5807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5808 | else |
---|
| 5809 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5810 | /* confdefs.h. */ |
---|
| 5811 | _ACEOF |
---|
| 5812 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5813 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5814 | /* end confdefs.h. */ |
---|
| 5815 | |
---|
| 5816 | #include <stdbool.h> |
---|
| 5817 | #ifndef bool |
---|
| 5818 | # error bool is not defined |
---|
| 5819 | #endif |
---|
| 5820 | #ifndef false |
---|
| 5821 | # error false is not defined |
---|
| 5822 | #endif |
---|
| 5823 | #if false |
---|
| 5824 | # error false is not 0 |
---|
| 5825 | #endif |
---|
| 5826 | #ifndef true |
---|
| 5827 | # error true is not defined |
---|
| 5828 | #endif |
---|
| 5829 | #if true != 1 |
---|
| 5830 | # error true is not 1 |
---|
| 5831 | #endif |
---|
| 5832 | #ifndef __bool_true_false_are_defined |
---|
| 5833 | # error __bool_true_false_are_defined is not defined |
---|
| 5834 | #endif |
---|
| 5835 | |
---|
| 5836 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 5837 | |
---|
| 5838 | char a[true == 1 ? 1 : -1]; |
---|
| 5839 | char b[false == 0 ? 1 : -1]; |
---|
| 5840 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 5841 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 5842 | bool e = &s; |
---|
| 5843 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 5844 | char g[true]; |
---|
| 5845 | char h[sizeof (_Bool)]; |
---|
| 5846 | char i[sizeof s.t]; |
---|
| 5847 | |
---|
| 5848 | int |
---|
| 5849 | main () |
---|
| 5850 | { |
---|
| 5851 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 5852 | ; |
---|
| 5853 | return 0; |
---|
| 5854 | } |
---|
| 5855 | _ACEOF |
---|
| 5856 | rm -f conftest.$ac_objext |
---|
| 5857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5858 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5859 | ac_status=$? |
---|
| 5860 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5861 | rm -f conftest.er1 |
---|
| 5862 | cat conftest.err >&5 |
---|
| 5863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5864 | (exit $ac_status); } && |
---|
| 5865 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5866 | || test ! -s conftest.err' |
---|
| 5867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5868 | (eval $ac_try) 2>&5 |
---|
| 5869 | ac_status=$? |
---|
| 5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5871 | (exit $ac_status); }; } && |
---|
| 5872 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5874 | (eval $ac_try) 2>&5 |
---|
| 5875 | ac_status=$? |
---|
| 5876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5877 | (exit $ac_status); }; }; then |
---|
| 5878 | ac_cv_header_stdbool_h=yes |
---|
| 5879 | else |
---|
| 5880 | echo "$as_me: failed program was:" >&5 |
---|
| 5881 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5882 | |
---|
| 5883 | ac_cv_header_stdbool_h=no |
---|
| 5884 | fi |
---|
| 5885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5886 | fi |
---|
| 5887 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 5888 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 5889 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 5890 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 5891 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 5892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5893 | else |
---|
| 5894 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5895 | /* confdefs.h. */ |
---|
| 5896 | _ACEOF |
---|
| 5897 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5898 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5899 | /* end confdefs.h. */ |
---|
| 5900 | $ac_includes_default |
---|
| 5901 | int |
---|
| 5902 | main () |
---|
| 5903 | { |
---|
| 5904 | if ((_Bool *) 0) |
---|
| 5905 | return 0; |
---|
| 5906 | if (sizeof (_Bool)) |
---|
| 5907 | return 0; |
---|
| 5908 | ; |
---|
| 5909 | return 0; |
---|
| 5910 | } |
---|
| 5911 | _ACEOF |
---|
| 5912 | rm -f conftest.$ac_objext |
---|
| 5913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5914 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5915 | ac_status=$? |
---|
| 5916 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5917 | rm -f conftest.er1 |
---|
| 5918 | cat conftest.err >&5 |
---|
| 5919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5920 | (exit $ac_status); } && |
---|
| 5921 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5922 | || test ! -s conftest.err' |
---|
| 5923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5924 | (eval $ac_try) 2>&5 |
---|
| 5925 | ac_status=$? |
---|
| 5926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5927 | (exit $ac_status); }; } && |
---|
| 5928 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5930 | (eval $ac_try) 2>&5 |
---|
| 5931 | ac_status=$? |
---|
| 5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5933 | (exit $ac_status); }; }; then |
---|
| 5934 | ac_cv_type__Bool=yes |
---|
| 5935 | else |
---|
| 5936 | echo "$as_me: failed program was:" >&5 |
---|
| 5937 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5938 | |
---|
| 5939 | ac_cv_type__Bool=no |
---|
| 5940 | fi |
---|
| 5941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5942 | fi |
---|
| 5943 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 5944 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 5945 | if test $ac_cv_type__Bool = yes; then |
---|
| 5946 | |
---|
| 5947 | cat >>confdefs.h <<_ACEOF |
---|
| 5948 | #define HAVE__BOOL 1 |
---|
| 5949 | _ACEOF |
---|
| 5950 | |
---|
| 5951 | |
---|
| 5952 | fi |
---|
| 5953 | |
---|
| 5954 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 5955 | |
---|
| 5956 | cat >>confdefs.h <<\_ACEOF |
---|
| 5957 | #define HAVE_STDBOOL_H 1 |
---|
| 5958 | _ACEOF |
---|
| 5959 | |
---|
| 5960 | fi |
---|
| 5961 | |
---|
| 5962 | |
---|
| 5963 | # Checks for library functions. |
---|
| 5964 | |
---|
| 5965 | for ac_header in stdlib.h |
---|
| 5966 | do |
---|
| 5967 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5969 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5970 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5973 | fi |
---|
| 5974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5975 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5976 | else |
---|
| 5977 | # Is the header compilable? |
---|
| 5978 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5979 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5980 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5981 | /* confdefs.h. */ |
---|
| 5982 | _ACEOF |
---|
| 5983 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5984 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5985 | /* end confdefs.h. */ |
---|
| 5986 | $ac_includes_default |
---|
| 5987 | #include <$ac_header> |
---|
| 5988 | _ACEOF |
---|
| 5989 | rm -f conftest.$ac_objext |
---|
| 5990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5991 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5992 | ac_status=$? |
---|
| 5993 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5994 | rm -f conftest.er1 |
---|
| 5995 | cat conftest.err >&5 |
---|
| 5996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5997 | (exit $ac_status); } && |
---|
| 5998 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5999 | || test ! -s conftest.err' |
---|
| 6000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6001 | (eval $ac_try) 2>&5 |
---|
| 6002 | ac_status=$? |
---|
| 6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6004 | (exit $ac_status); }; } && |
---|
| 6005 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6007 | (eval $ac_try) 2>&5 |
---|
| 6008 | ac_status=$? |
---|
| 6009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6010 | (exit $ac_status); }; }; then |
---|
| 6011 | ac_header_compiler=yes |
---|
| 6012 | else |
---|
| 6013 | echo "$as_me: failed program was:" >&5 |
---|
| 6014 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6015 | |
---|
| 6016 | ac_header_compiler=no |
---|
| 6017 | fi |
---|
| 6018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6019 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6020 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6021 | |
---|
| 6022 | # Is the header present? |
---|
| 6023 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6024 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6025 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6026 | /* confdefs.h. */ |
---|
| 6027 | _ACEOF |
---|
| 6028 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6029 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6030 | /* end confdefs.h. */ |
---|
| 6031 | #include <$ac_header> |
---|
| 6032 | _ACEOF |
---|
| 6033 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6034 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6035 | ac_status=$? |
---|
| 6036 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6037 | rm -f conftest.er1 |
---|
| 6038 | cat conftest.err >&5 |
---|
| 6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6040 | (exit $ac_status); } >/dev/null; then |
---|
| 6041 | if test -s conftest.err; then |
---|
| 6042 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6043 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6044 | else |
---|
| 6045 | ac_cpp_err= |
---|
| 6046 | fi |
---|
| 6047 | else |
---|
| 6048 | ac_cpp_err=yes |
---|
| 6049 | fi |
---|
| 6050 | if test -z "$ac_cpp_err"; then |
---|
| 6051 | ac_header_preproc=yes |
---|
| 6052 | else |
---|
| 6053 | echo "$as_me: failed program was:" >&5 |
---|
| 6054 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6055 | |
---|
| 6056 | ac_header_preproc=no |
---|
| 6057 | fi |
---|
| 6058 | rm -f conftest.err conftest.$ac_ext |
---|
| 6059 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6060 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6061 | |
---|
| 6062 | # So? What about this header? |
---|
| 6063 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6064 | yes:no: ) |
---|
| 6065 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6066 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6067 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6068 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6069 | ac_header_preproc=yes |
---|
| 6070 | ;; |
---|
| 6071 | no:yes:* ) |
---|
| 6072 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6073 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6074 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6075 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6076 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6077 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6078 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6079 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6080 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6081 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6082 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6083 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6084 | ( |
---|
| 6085 | cat <<\_ASBOX |
---|
| 6086 | ## ------------------------------------------- ## |
---|
| 6087 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 6088 | ## ------------------------------------------- ## |
---|
| 6089 | _ASBOX |
---|
| 6090 | ) | |
---|
| 6091 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6092 | ;; |
---|
| 6093 | esac |
---|
| 6094 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6098 | else |
---|
| 6099 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6100 | fi |
---|
| 6101 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6102 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6103 | |
---|
| 6104 | fi |
---|
| 6105 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6106 | cat >>confdefs.h <<_ACEOF |
---|
| 6107 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6108 | _ACEOF |
---|
| 6109 | |
---|
| 6110 | fi |
---|
| 6111 | |
---|
| 6112 | done |
---|
| 6113 | |
---|
| 6114 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 6115 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 6116 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 6117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6118 | else |
---|
| 6119 | if test "$cross_compiling" = yes; then |
---|
| 6120 | ac_cv_func_malloc_0_nonnull=no |
---|
| 6121 | else |
---|
| 6122 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6123 | /* confdefs.h. */ |
---|
| 6124 | _ACEOF |
---|
| 6125 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6126 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6127 | /* end confdefs.h. */ |
---|
| 6128 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 6129 | # include <stdlib.h> |
---|
| 6130 | #else |
---|
| 6131 | char *malloc (); |
---|
| 6132 | #endif |
---|
| 6133 | |
---|
| 6134 | int |
---|
| 6135 | main () |
---|
| 6136 | { |
---|
| 6137 | exit (malloc (0) ? 0 : 1); |
---|
| 6138 | ; |
---|
| 6139 | return 0; |
---|
| 6140 | } |
---|
| 6141 | _ACEOF |
---|
| 6142 | rm -f conftest$ac_exeext |
---|
| 6143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6144 | (eval $ac_link) 2>&5 |
---|
| 6145 | ac_status=$? |
---|
| 6146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6147 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 6148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6149 | (eval $ac_try) 2>&5 |
---|
| 6150 | ac_status=$? |
---|
| 6151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6152 | (exit $ac_status); }; }; then |
---|
| 6153 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 6154 | else |
---|
| 6155 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 6156 | echo "$as_me: failed program was:" >&5 |
---|
| 6157 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6158 | |
---|
| 6159 | ( exit $ac_status ) |
---|
| 6160 | ac_cv_func_malloc_0_nonnull=no |
---|
| 6161 | fi |
---|
| 6162 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 6163 | fi |
---|
| 6164 | fi |
---|
| 6165 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 6166 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 6167 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 6168 | |
---|
| 6169 | cat >>confdefs.h <<\_ACEOF |
---|
| 6170 | #define HAVE_MALLOC 1 |
---|
| 6171 | _ACEOF |
---|
| 6172 | |
---|
| 6173 | else |
---|
| 6174 | cat >>confdefs.h <<\_ACEOF |
---|
| 6175 | #define HAVE_MALLOC 0 |
---|
| 6176 | _ACEOF |
---|
| 6177 | |
---|
| 6178 | case $LIBOBJS in |
---|
| 6179 | "malloc.$ac_objext" | \ |
---|
| 6180 | *" malloc.$ac_objext" | \ |
---|
| 6181 | "malloc.$ac_objext "* | \ |
---|
| 6182 | *" malloc.$ac_objext "* ) ;; |
---|
| 6183 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 6184 | esac |
---|
| 6185 | |
---|
| 6186 | |
---|
| 6187 | cat >>confdefs.h <<\_ACEOF |
---|
| 6188 | #define malloc rpl_malloc |
---|
| 6189 | _ACEOF |
---|
| 6190 | |
---|
| 6191 | fi |
---|
| 6192 | |
---|
| 6193 | |
---|
| 6194 | |
---|
| 6195 | |
---|
| 6196 | |
---|
| 6197 | for ac_func in bzero sqrt |
---|
| 6198 | do |
---|
| 6199 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 6200 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 6201 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 6202 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 6203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6204 | else |
---|
| 6205 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6206 | /* confdefs.h. */ |
---|
| 6207 | _ACEOF |
---|
| 6208 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6209 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6210 | /* end confdefs.h. */ |
---|
| 6211 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 6212 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 6213 | #define $ac_func innocuous_$ac_func |
---|
| 6214 | |
---|
| 6215 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 6216 | which can conflict with char $ac_func (); below. |
---|
| 6217 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 6218 | <limits.h> exists even on freestanding compilers. */ |
---|
| 6219 | |
---|
| 6220 | #ifdef __STDC__ |
---|
| 6221 | # include <limits.h> |
---|
| 6222 | #else |
---|
| 6223 | # include <assert.h> |
---|
| 6224 | #endif |
---|
| 6225 | |
---|
| 6226 | #undef $ac_func |
---|
| 6227 | |
---|
| 6228 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 6229 | #ifdef __cplusplus |
---|
| 6230 | extern "C" |
---|
| 6231 | { |
---|
| 6232 | #endif |
---|
| 6233 | /* We use char because int might match the return type of a gcc2 |
---|
| 6234 | builtin and then its argument prototype would still apply. */ |
---|
| 6235 | char $ac_func (); |
---|
| 6236 | /* The GNU C library defines this for functions which it implements |
---|
| 6237 | to always fail with ENOSYS. Some functions are actually named |
---|
| 6238 | something starting with __ and the normal name is an alias. */ |
---|
| 6239 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 6240 | choke me |
---|
| 6241 | #else |
---|
| 6242 | char (*f) () = $ac_func; |
---|
| 6243 | #endif |
---|
| 6244 | #ifdef __cplusplus |
---|
| 6245 | } |
---|
| 6246 | #endif |
---|
| 6247 | |
---|
| 6248 | int |
---|
| 6249 | main () |
---|
| 6250 | { |
---|
| 6251 | return f != $ac_func; |
---|
| 6252 | ; |
---|
| 6253 | return 0; |
---|
| 6254 | } |
---|
| 6255 | _ACEOF |
---|
| 6256 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6258 | (eval $ac_link) 2>conftest.er1 |
---|
| 6259 | ac_status=$? |
---|
| 6260 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6261 | rm -f conftest.er1 |
---|
| 6262 | cat conftest.err >&5 |
---|
| 6263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6264 | (exit $ac_status); } && |
---|
| 6265 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6266 | || test ! -s conftest.err' |
---|
| 6267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6268 | (eval $ac_try) 2>&5 |
---|
| 6269 | ac_status=$? |
---|
| 6270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6271 | (exit $ac_status); }; } && |
---|
| 6272 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6274 | (eval $ac_try) 2>&5 |
---|
| 6275 | ac_status=$? |
---|
| 6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6277 | (exit $ac_status); }; }; then |
---|
| 6278 | eval "$as_ac_var=yes" |
---|
| 6279 | else |
---|
| 6280 | echo "$as_me: failed program was:" >&5 |
---|
| 6281 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6282 | |
---|
| 6283 | eval "$as_ac_var=no" |
---|
| 6284 | fi |
---|
| 6285 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6286 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6287 | fi |
---|
| 6288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 6289 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 6290 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 6291 | cat >>confdefs.h <<_ACEOF |
---|
| 6292 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 6293 | _ACEOF |
---|
| 6294 | |
---|
| 6295 | fi |
---|
| 6296 | done |
---|
| 6297 | |
---|
| 6298 | |
---|
[2819] | 6299 | ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile importer/Makefile" |
---|
[1956] | 6300 | |
---|
| 6301 | cat >confcache <<\_ACEOF |
---|
| 6302 | # This file is a shell script that caches the results of configure |
---|
| 6303 | # tests run on this system so they can be shared between configure |
---|
| 6304 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 6305 | # It is not useful on other systems. If it contains results you don't |
---|
| 6306 | # want to keep, you may remove or edit it. |
---|
| 6307 | # |
---|
| 6308 | # config.status only pays attention to the cache file if you give it |
---|
| 6309 | # the --recheck option to rerun configure. |
---|
| 6310 | # |
---|
| 6311 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 6312 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 6313 | # following values. |
---|
| 6314 | |
---|
| 6315 | _ACEOF |
---|
| 6316 | |
---|
| 6317 | # The following way of writing the cache mishandles newlines in values, |
---|
| 6318 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 6319 | # So, don't put newlines in cache variables' values. |
---|
| 6320 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 6321 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 6322 | { |
---|
| 6323 | (set) 2>&1 | |
---|
| 6324 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 6325 | *ac_space=\ *) |
---|
| 6326 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 6327 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 6328 | sed -n \ |
---|
| 6329 | "s/'/'\\\\''/g; |
---|
| 6330 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 6331 | ;; |
---|
| 6332 | *) |
---|
| 6333 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 6334 | sed -n \ |
---|
| 6335 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 6336 | ;; |
---|
| 6337 | esac; |
---|
| 6338 | } | |
---|
| 6339 | sed ' |
---|
| 6340 | t clear |
---|
| 6341 | : clear |
---|
| 6342 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 6343 | t end |
---|
| 6344 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 6345 | : end' >>confcache |
---|
| 6346 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 6347 | if test -w $cache_file; then |
---|
| 6348 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 6349 | cat confcache >$cache_file |
---|
| 6350 | else |
---|
| 6351 | echo "not updating unwritable cache $cache_file" |
---|
| 6352 | fi |
---|
| 6353 | fi |
---|
| 6354 | rm -f confcache |
---|
| 6355 | |
---|
| 6356 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 6357 | # Let make expand exec_prefix. |
---|
| 6358 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 6359 | |
---|
| 6360 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 6361 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 6362 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 6363 | # (actually we leave an empty line to preserve line numbers). |
---|
| 6364 | if test "x$srcdir" = x.; then |
---|
| 6365 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 6366 | s/:*\$(srcdir):*/:/; |
---|
| 6367 | s/:*\${srcdir}:*/:/; |
---|
| 6368 | s/:*@srcdir@:*/:/; |
---|
| 6369 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 6370 | s/:*$//; |
---|
| 6371 | s/^[^=]*=[ ]*$//; |
---|
| 6372 | }' |
---|
| 6373 | fi |
---|
| 6374 | |
---|
| 6375 | DEFS=-DHAVE_CONFIG_H |
---|
| 6376 | |
---|
| 6377 | ac_libobjs= |
---|
| 6378 | ac_ltlibobjs= |
---|
| 6379 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 6380 | # 1. Remove the extension, and $U if already installed. |
---|
| 6381 | ac_i=`echo "$ac_i" | |
---|
| 6382 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 6383 | # 2. Add them. |
---|
| 6384 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 6385 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 6386 | done |
---|
| 6387 | LIBOBJS=$ac_libobjs |
---|
| 6388 | |
---|
| 6389 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 6390 | |
---|
| 6391 | |
---|
| 6392 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 6393 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 6394 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6395 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 6396 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6397 | { (exit 1); exit 1; }; } |
---|
| 6398 | fi |
---|
| 6399 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 6400 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 6401 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6402 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 6403 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6404 | { (exit 1); exit 1; }; } |
---|
| 6405 | fi |
---|
| 6406 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 6407 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 6408 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6409 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 6410 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6411 | { (exit 1); exit 1; }; } |
---|
| 6412 | fi |
---|
[2980] | 6413 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
| 6414 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 6415 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6416 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 6417 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6418 | { (exit 1); exit 1; }; } |
---|
| 6419 | fi |
---|
[1956] | 6420 | |
---|
| 6421 | : ${CONFIG_STATUS=./config.status} |
---|
| 6422 | ac_clean_files_save=$ac_clean_files |
---|
| 6423 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 6424 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 6425 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 6426 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 6427 | #! $SHELL |
---|
| 6428 | # Generated by $as_me. |
---|
| 6429 | # Run this file to recreate the current configuration. |
---|
| 6430 | # Compiler output produced by configure, useful for debugging |
---|
| 6431 | # configure, is in config.log if it exists. |
---|
| 6432 | |
---|
| 6433 | debug=false |
---|
| 6434 | ac_cs_recheck=false |
---|
| 6435 | ac_cs_silent=false |
---|
| 6436 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 6437 | _ACEOF |
---|
| 6438 | |
---|
| 6439 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6440 | ## --------------------- ## |
---|
| 6441 | ## M4sh Initialization. ## |
---|
| 6442 | ## --------------------- ## |
---|
| 6443 | |
---|
| 6444 | # Be Bourne compatible |
---|
| 6445 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 6446 | emulate sh |
---|
| 6447 | NULLCMD=: |
---|
| 6448 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 6449 | # is contrary to our usage. Disable this feature. |
---|
| 6450 | alias -g '${1+"$@"}'='"$@"' |
---|
| 6451 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 6452 | set -o posix |
---|
| 6453 | fi |
---|
| 6454 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 6455 | |
---|
| 6456 | # Support unset when possible. |
---|
| 6457 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 6458 | as_unset=unset |
---|
| 6459 | else |
---|
| 6460 | as_unset=false |
---|
| 6461 | fi |
---|
| 6462 | |
---|
| 6463 | |
---|
| 6464 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 6465 | $as_unset ENV MAIL MAILPATH |
---|
| 6466 | PS1='$ ' |
---|
| 6467 | PS2='> ' |
---|
| 6468 | PS4='+ ' |
---|
| 6469 | |
---|
| 6470 | # NLS nuisances. |
---|
| 6471 | for as_var in \ |
---|
| 6472 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 6473 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 6474 | LC_TELEPHONE LC_TIME |
---|
| 6475 | do |
---|
| 6476 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 6477 | eval $as_var=C; export $as_var |
---|
| 6478 | else |
---|
| 6479 | $as_unset $as_var |
---|
| 6480 | fi |
---|
| 6481 | done |
---|
| 6482 | |
---|
| 6483 | # Required to use basename. |
---|
| 6484 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 6485 | as_expr=expr |
---|
| 6486 | else |
---|
| 6487 | as_expr=false |
---|
| 6488 | fi |
---|
| 6489 | |
---|
| 6490 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 6491 | as_basename=basename |
---|
| 6492 | else |
---|
| 6493 | as_basename=false |
---|
| 6494 | fi |
---|
| 6495 | |
---|
| 6496 | |
---|
| 6497 | # Name of the executable. |
---|
| 6498 | as_me=`$as_basename "$0" || |
---|
| 6499 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 6500 | X"$0" : 'X\(//\)$' \| \ |
---|
| 6501 | X"$0" : 'X\(/\)$' \| \ |
---|
| 6502 | . : '\(.\)' 2>/dev/null || |
---|
| 6503 | echo X/"$0" | |
---|
| 6504 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 6505 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 6506 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 6507 | s/.*/./; q'` |
---|
| 6508 | |
---|
| 6509 | |
---|
| 6510 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 6511 | # Avoid depending upon Character Ranges. |
---|
| 6512 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 6513 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 6514 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 6515 | as_cr_digits='0123456789' |
---|
| 6516 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 6517 | |
---|
| 6518 | # The user is always right. |
---|
| 6519 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 6520 | echo "#! /bin/sh" >conf$$.sh |
---|
| 6521 | echo "exit 0" >>conf$$.sh |
---|
| 6522 | chmod +x conf$$.sh |
---|
| 6523 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 6524 | PATH_SEPARATOR=';' |
---|
| 6525 | else |
---|
| 6526 | PATH_SEPARATOR=: |
---|
| 6527 | fi |
---|
| 6528 | rm -f conf$$.sh |
---|
| 6529 | fi |
---|
| 6530 | |
---|
| 6531 | |
---|
| 6532 | as_lineno_1=$LINENO |
---|
| 6533 | as_lineno_2=$LINENO |
---|
| 6534 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 6535 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 6536 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 6537 | # Find who we are. Look in the path if we contain no path at all |
---|
| 6538 | # relative or not. |
---|
| 6539 | case $0 in |
---|
| 6540 | *[\\/]* ) as_myself=$0 ;; |
---|
| 6541 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6542 | for as_dir in $PATH |
---|
| 6543 | do |
---|
| 6544 | IFS=$as_save_IFS |
---|
| 6545 | test -z "$as_dir" && as_dir=. |
---|
| 6546 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 6547 | done |
---|
| 6548 | |
---|
| 6549 | ;; |
---|
| 6550 | esac |
---|
| 6551 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 6552 | # in which case we are not to be found in the path. |
---|
| 6553 | if test "x$as_myself" = x; then |
---|
| 6554 | as_myself=$0 |
---|
| 6555 | fi |
---|
| 6556 | if test ! -f "$as_myself"; then |
---|
| 6557 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 6558 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 6559 | { (exit 1); exit 1; }; } |
---|
| 6560 | fi |
---|
| 6561 | case $CONFIG_SHELL in |
---|
| 6562 | '') |
---|
| 6563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6564 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 6565 | do |
---|
| 6566 | IFS=$as_save_IFS |
---|
| 6567 | test -z "$as_dir" && as_dir=. |
---|
| 6568 | for as_base in sh bash ksh sh5; do |
---|
| 6569 | case $as_dir in |
---|
| 6570 | /*) |
---|
| 6571 | if ("$as_dir/$as_base" -c ' |
---|
| 6572 | as_lineno_1=$LINENO |
---|
| 6573 | as_lineno_2=$LINENO |
---|
| 6574 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 6575 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 6576 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 6577 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 6578 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 6579 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 6580 | export CONFIG_SHELL |
---|
| 6581 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 6582 | fi;; |
---|
| 6583 | esac |
---|
| 6584 | done |
---|
| 6585 | done |
---|
| 6586 | ;; |
---|
| 6587 | esac |
---|
| 6588 | |
---|
| 6589 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 6590 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 6591 | # line-number line before each line; the second 'sed' does the real |
---|
| 6592 | # work. The second script uses 'N' to pair each line-number line |
---|
| 6593 | # with the numbered line, and appends trailing '-' during |
---|
| 6594 | # substitution so that $LINENO is not a special case at line end. |
---|
| 6595 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 6596 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 6597 | sed '=' <$as_myself | |
---|
| 6598 | sed ' |
---|
| 6599 | N |
---|
| 6600 | s,$,-, |
---|
| 6601 | : loop |
---|
| 6602 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 6603 | t loop |
---|
| 6604 | s,-$,, |
---|
| 6605 | s,^['$as_cr_digits']*\n,, |
---|
| 6606 | ' >$as_me.lineno && |
---|
| 6607 | chmod +x $as_me.lineno || |
---|
| 6608 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 6609 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 6610 | { (exit 1); exit 1; }; } |
---|
| 6611 | |
---|
| 6612 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 6613 | # (the dirname of $[0] is not the place where we might find the |
---|
| 6614 | # original and so on. Autoconf is especially sensible to this). |
---|
| 6615 | . ./$as_me.lineno |
---|
| 6616 | # Exit status is that of the last command. |
---|
| 6617 | exit |
---|
| 6618 | } |
---|
| 6619 | |
---|
| 6620 | |
---|
| 6621 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 6622 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 6623 | ' ECHO_T=' ' ;; |
---|
| 6624 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 6625 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 6626 | esac |
---|
| 6627 | |
---|
| 6628 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 6629 | as_expr=expr |
---|
| 6630 | else |
---|
| 6631 | as_expr=false |
---|
| 6632 | fi |
---|
| 6633 | |
---|
| 6634 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 6635 | echo >conf$$.file |
---|
| 6636 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 6637 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 6638 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 6639 | if test -f conf$$.exe; then |
---|
| 6640 | # Don't use ln at all; we don't have any links |
---|
| 6641 | as_ln_s='cp -p' |
---|
| 6642 | else |
---|
| 6643 | as_ln_s='ln -s' |
---|
| 6644 | fi |
---|
| 6645 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 6646 | as_ln_s=ln |
---|
| 6647 | else |
---|
| 6648 | as_ln_s='cp -p' |
---|
| 6649 | fi |
---|
| 6650 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 6651 | |
---|
| 6652 | if mkdir -p . 2>/dev/null; then |
---|
| 6653 | as_mkdir_p=: |
---|
| 6654 | else |
---|
| 6655 | test -d ./-p && rmdir ./-p |
---|
| 6656 | as_mkdir_p=false |
---|
| 6657 | fi |
---|
| 6658 | |
---|
| 6659 | as_executable_p="test -f" |
---|
| 6660 | |
---|
| 6661 | # Sed expression to map a string onto a valid CPP name. |
---|
| 6662 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 6663 | |
---|
| 6664 | # Sed expression to map a string onto a valid variable name. |
---|
| 6665 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 6666 | |
---|
| 6667 | |
---|
| 6668 | # IFS |
---|
| 6669 | # We need space, tab and new line, in precisely that order. |
---|
| 6670 | as_nl=' |
---|
| 6671 | ' |
---|
| 6672 | IFS=" $as_nl" |
---|
| 6673 | |
---|
| 6674 | # CDPATH. |
---|
| 6675 | $as_unset CDPATH |
---|
| 6676 | |
---|
| 6677 | exec 6>&1 |
---|
| 6678 | |
---|
| 6679 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 6680 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 6681 | # values after options handling. Logging --version etc. is OK. |
---|
| 6682 | exec 5>>config.log |
---|
| 6683 | { |
---|
| 6684 | echo |
---|
| 6685 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 6686 | ## Running $as_me. ## |
---|
| 6687 | _ASBOX |
---|
| 6688 | } >&5 |
---|
| 6689 | cat >&5 <<_CSEOF |
---|
| 6690 | |
---|
| 6691 | This file was extended by orxonox $as_me 0.1-pre-alpha, which was |
---|
| 6692 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 6693 | |
---|
| 6694 | CONFIG_FILES = $CONFIG_FILES |
---|
| 6695 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 6696 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 6697 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 6698 | $ $0 $@ |
---|
| 6699 | |
---|
| 6700 | _CSEOF |
---|
| 6701 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 6702 | echo >&5 |
---|
| 6703 | _ACEOF |
---|
| 6704 | |
---|
| 6705 | # Files that config.status was made for. |
---|
| 6706 | if test -n "$ac_config_files"; then |
---|
| 6707 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 6708 | fi |
---|
| 6709 | |
---|
| 6710 | if test -n "$ac_config_headers"; then |
---|
| 6711 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 6712 | fi |
---|
| 6713 | |
---|
| 6714 | if test -n "$ac_config_links"; then |
---|
| 6715 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 6716 | fi |
---|
| 6717 | |
---|
| 6718 | if test -n "$ac_config_commands"; then |
---|
| 6719 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 6720 | fi |
---|
| 6721 | |
---|
| 6722 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6723 | |
---|
| 6724 | ac_cs_usage="\ |
---|
| 6725 | \`$as_me' instantiates files from templates according to the |
---|
| 6726 | current configuration. |
---|
| 6727 | |
---|
| 6728 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 6729 | |
---|
| 6730 | -h, --help print this help, then exit |
---|
| 6731 | -V, --version print version number, then exit |
---|
| 6732 | -q, --quiet do not print progress messages |
---|
| 6733 | -d, --debug don't remove temporary files |
---|
| 6734 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 6735 | --file=FILE[:TEMPLATE] |
---|
| 6736 | instantiate the configuration file FILE |
---|
| 6737 | --header=FILE[:TEMPLATE] |
---|
| 6738 | instantiate the configuration header FILE |
---|
| 6739 | |
---|
| 6740 | Configuration files: |
---|
| 6741 | $config_files |
---|
| 6742 | |
---|
| 6743 | Configuration headers: |
---|
| 6744 | $config_headers |
---|
| 6745 | |
---|
| 6746 | Configuration commands: |
---|
| 6747 | $config_commands |
---|
| 6748 | |
---|
| 6749 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 6750 | _ACEOF |
---|
| 6751 | |
---|
| 6752 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6753 | ac_cs_version="\\ |
---|
| 6754 | orxonox config.status 0.1-pre-alpha |
---|
| 6755 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 6756 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 6757 | |
---|
| 6758 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 6759 | This config.status script is free software; the Free Software Foundation |
---|
| 6760 | gives unlimited permission to copy, distribute and modify it." |
---|
| 6761 | srcdir=$srcdir |
---|
| 6762 | INSTALL="$INSTALL" |
---|
| 6763 | _ACEOF |
---|
| 6764 | |
---|
| 6765 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6766 | # If no file are specified by the user, then we need to provide default |
---|
| 6767 | # value. By we need to know if files were specified by the user. |
---|
| 6768 | ac_need_defaults=: |
---|
| 6769 | while test $# != 0 |
---|
| 6770 | do |
---|
| 6771 | case $1 in |
---|
| 6772 | --*=*) |
---|
| 6773 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 6774 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 6775 | ac_shift=: |
---|
| 6776 | ;; |
---|
| 6777 | -*) |
---|
| 6778 | ac_option=$1 |
---|
| 6779 | ac_optarg=$2 |
---|
| 6780 | ac_shift=shift |
---|
| 6781 | ;; |
---|
| 6782 | *) # This is not an option, so the user has probably given explicit |
---|
| 6783 | # arguments. |
---|
| 6784 | ac_option=$1 |
---|
| 6785 | ac_need_defaults=false;; |
---|
| 6786 | esac |
---|
| 6787 | |
---|
| 6788 | case $ac_option in |
---|
| 6789 | # Handling of the options. |
---|
| 6790 | _ACEOF |
---|
| 6791 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6792 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 6793 | ac_cs_recheck=: ;; |
---|
| 6794 | --version | --vers* | -V ) |
---|
| 6795 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 6796 | --he | --h) |
---|
| 6797 | # Conflict between --help and --header |
---|
| 6798 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 6799 | Try \`$0 --help' for more information." >&5 |
---|
| 6800 | echo "$as_me: error: ambiguous option: $1 |
---|
| 6801 | Try \`$0 --help' for more information." >&2;} |
---|
| 6802 | { (exit 1); exit 1; }; };; |
---|
| 6803 | --help | --hel | -h ) |
---|
| 6804 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 6805 | --debug | --d* | -d ) |
---|
| 6806 | debug=: ;; |
---|
| 6807 | --file | --fil | --fi | --f ) |
---|
| 6808 | $ac_shift |
---|
| 6809 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 6810 | ac_need_defaults=false;; |
---|
| 6811 | --header | --heade | --head | --hea ) |
---|
| 6812 | $ac_shift |
---|
| 6813 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 6814 | ac_need_defaults=false;; |
---|
| 6815 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 6816 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 6817 | ac_cs_silent=: ;; |
---|
| 6818 | |
---|
| 6819 | # This is an error. |
---|
| 6820 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 6821 | Try \`$0 --help' for more information." >&5 |
---|
| 6822 | echo "$as_me: error: unrecognized option: $1 |
---|
| 6823 | Try \`$0 --help' for more information." >&2;} |
---|
| 6824 | { (exit 1); exit 1; }; } ;; |
---|
| 6825 | |
---|
| 6826 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 6827 | |
---|
| 6828 | esac |
---|
| 6829 | shift |
---|
| 6830 | done |
---|
| 6831 | |
---|
| 6832 | ac_configure_extra_args= |
---|
| 6833 | |
---|
| 6834 | if $ac_cs_silent; then |
---|
| 6835 | exec 6>/dev/null |
---|
| 6836 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 6837 | fi |
---|
| 6838 | |
---|
| 6839 | _ACEOF |
---|
| 6840 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6841 | if \$ac_cs_recheck; then |
---|
| 6842 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 6843 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 6844 | fi |
---|
| 6845 | |
---|
| 6846 | _ACEOF |
---|
| 6847 | |
---|
| 6848 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6849 | # |
---|
| 6850 | # INIT-COMMANDS section. |
---|
| 6851 | # |
---|
| 6852 | |
---|
| 6853 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 6854 | |
---|
| 6855 | _ACEOF |
---|
| 6856 | |
---|
| 6857 | |
---|
| 6858 | |
---|
| 6859 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6860 | for ac_config_target in $ac_config_targets |
---|
| 6861 | do |
---|
| 6862 | case "$ac_config_target" in |
---|
| 6863 | # Handling of arguments. |
---|
| 6864 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 6865 | "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; |
---|
| 6866 | "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; |
---|
| 6867 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
[2819] | 6868 | "importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES importer/Makefile" ;; |
---|
[1956] | 6869 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 6870 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 6871 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 6872 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 6873 | { (exit 1); exit 1; }; };; |
---|
| 6874 | esac |
---|
| 6875 | done |
---|
| 6876 | |
---|
| 6877 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 6878 | # then the envvar interface is used. Set only those that are not. |
---|
| 6879 | # We use the long form for the default assignment because of an extremely |
---|
| 6880 | # bizarre bug on SunOS 4.1.3. |
---|
| 6881 | if $ac_need_defaults; then |
---|
| 6882 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 6883 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 6884 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 6885 | fi |
---|
| 6886 | |
---|
| 6887 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 6888 | # simply because there is no reason to put it here, and in addition, |
---|
| 6889 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 6890 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 6891 | $debug || |
---|
| 6892 | { |
---|
| 6893 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 6894 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 6895 | } |
---|
| 6896 | |
---|
| 6897 | # Create a (secure) tmp directory for tmp files. |
---|
| 6898 | |
---|
| 6899 | { |
---|
| 6900 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 6901 | test -n "$tmp" && test -d "$tmp" |
---|
| 6902 | } || |
---|
| 6903 | { |
---|
| 6904 | tmp=./confstat$$-$RANDOM |
---|
| 6905 | (umask 077 && mkdir $tmp) |
---|
| 6906 | } || |
---|
| 6907 | { |
---|
| 6908 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 6909 | { (exit 1); exit 1; } |
---|
| 6910 | } |
---|
| 6911 | |
---|
| 6912 | _ACEOF |
---|
| 6913 | |
---|
| 6914 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6915 | |
---|
| 6916 | # |
---|
| 6917 | # CONFIG_FILES section. |
---|
| 6918 | # |
---|
| 6919 | |
---|
| 6920 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 6921 | # This happens for instance when ./config.status config.h |
---|
| 6922 | if test -n "\$CONFIG_FILES"; then |
---|
| 6923 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 6924 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 6925 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 6926 | s,@SHELL@,$SHELL,;t t |
---|
| 6927 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 6928 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 6929 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 6930 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 6931 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 6932 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 6933 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 6934 | s,@prefix@,$prefix,;t t |
---|
| 6935 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 6936 | s,@bindir@,$bindir,;t t |
---|
| 6937 | s,@sbindir@,$sbindir,;t t |
---|
| 6938 | s,@libexecdir@,$libexecdir,;t t |
---|
| 6939 | s,@datadir@,$datadir,;t t |
---|
| 6940 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 6941 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 6942 | s,@localstatedir@,$localstatedir,;t t |
---|
| 6943 | s,@libdir@,$libdir,;t t |
---|
| 6944 | s,@includedir@,$includedir,;t t |
---|
| 6945 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 6946 | s,@infodir@,$infodir,;t t |
---|
| 6947 | s,@mandir@,$mandir,;t t |
---|
| 6948 | s,@build_alias@,$build_alias,;t t |
---|
| 6949 | s,@host_alias@,$host_alias,;t t |
---|
| 6950 | s,@target_alias@,$target_alias,;t t |
---|
| 6951 | s,@DEFS@,$DEFS,;t t |
---|
| 6952 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 6953 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 6954 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 6955 | s,@LIBS@,$LIBS,;t t |
---|
[2980] | 6956 | s,@build@,$build,;t t |
---|
| 6957 | s,@build_cpu@,$build_cpu,;t t |
---|
| 6958 | s,@build_vendor@,$build_vendor,;t t |
---|
| 6959 | s,@build_os@,$build_os,;t t |
---|
| 6960 | s,@host@,$host,;t t |
---|
| 6961 | s,@host_cpu@,$host_cpu,;t t |
---|
| 6962 | s,@host_vendor@,$host_vendor,;t t |
---|
| 6963 | s,@host_os@,$host_os,;t t |
---|
| 6964 | s,@target@,$target,;t t |
---|
| 6965 | s,@target_cpu@,$target_cpu,;t t |
---|
| 6966 | s,@target_vendor@,$target_vendor,;t t |
---|
| 6967 | s,@target_os@,$target_os,;t t |
---|
[1956] | 6968 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 6969 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 6970 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 6971 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 6972 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 6973 | s,@VERSION@,$VERSION,;t t |
---|
| 6974 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 6975 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 6976 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 6977 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 6978 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 6979 | s,@AMTAR@,$AMTAR,;t t |
---|
| 6980 | s,@install_sh@,$install_sh,;t t |
---|
| 6981 | s,@STRIP@,$STRIP,;t t |
---|
| 6982 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 6983 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
[2706] | 6984 | s,@mkdir_p@,$mkdir_p,;t t |
---|
[1956] | 6985 | s,@AWK@,$AWK,;t t |
---|
| 6986 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 6987 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
| 6988 | s,@CXX@,$CXX,;t t |
---|
| 6989 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 6990 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 6991 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 6992 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 6993 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 6994 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 6995 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 6996 | s,@am__include@,$am__include,;t t |
---|
| 6997 | s,@am__quote@,$am__quote,;t t |
---|
| 6998 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 6999 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 7000 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 7001 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 7002 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 7003 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
| 7004 | s,@CC@,$CC,;t t |
---|
| 7005 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 7006 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 7007 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 7008 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 7009 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 7010 | s,@CPP@,$CPP,;t t |
---|
| 7011 | s,@EGREP@,$EGREP,;t t |
---|
[2701] | 7012 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[2980] | 7013 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t |
---|
| 7014 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t |
---|
| 7015 | s,@SDL_LIBS@,$SDL_LIBS,;t t |
---|
| 7016 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
| 7017 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
| 7018 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
| 7019 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
| 7020 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
[1956] | 7021 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 7022 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 7023 | CEOF |
---|
| 7024 | |
---|
| 7025 | _ACEOF |
---|
| 7026 | |
---|
| 7027 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7028 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 7029 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 7030 | ac_max_sed_lines=48 |
---|
| 7031 | ac_sed_frag=1 # Number of current file. |
---|
| 7032 | ac_beg=1 # First line for current file. |
---|
| 7033 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 7034 | ac_more_lines=: |
---|
| 7035 | ac_sed_cmds= |
---|
| 7036 | while $ac_more_lines; do |
---|
| 7037 | if test $ac_beg -gt 1; then |
---|
| 7038 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 7039 | else |
---|
| 7040 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 7041 | fi |
---|
| 7042 | if test ! -s $tmp/subs.frag; then |
---|
| 7043 | ac_more_lines=false |
---|
| 7044 | else |
---|
| 7045 | # The purpose of the label and of the branching condition is to |
---|
| 7046 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 7047 | # is no need to browse any of the substitutions). |
---|
| 7048 | # These are the two extra sed commands mentioned above. |
---|
| 7049 | (echo ':t |
---|
| 7050 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 7051 | if test -z "$ac_sed_cmds"; then |
---|
| 7052 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 7053 | else |
---|
| 7054 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 7055 | fi |
---|
| 7056 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 7057 | ac_beg=$ac_end |
---|
| 7058 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 7059 | fi |
---|
| 7060 | done |
---|
| 7061 | if test -z "$ac_sed_cmds"; then |
---|
| 7062 | ac_sed_cmds=cat |
---|
| 7063 | fi |
---|
| 7064 | fi # test -n "$CONFIG_FILES" |
---|
| 7065 | |
---|
| 7066 | _ACEOF |
---|
| 7067 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7068 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 7069 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 7070 | case $ac_file in |
---|
| 7071 | - | *:- | *:-:* ) # input from stdin |
---|
| 7072 | cat >$tmp/stdin |
---|
| 7073 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7074 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 7075 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7076 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 7077 | * ) ac_file_in=$ac_file.in ;; |
---|
| 7078 | esac |
---|
| 7079 | |
---|
| 7080 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 7081 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 7082 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7083 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 7084 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 7085 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 7086 | . : '\(.\)' 2>/dev/null || |
---|
| 7087 | echo X"$ac_file" | |
---|
| 7088 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7089 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7090 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7091 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7092 | s/.*/./; q'` |
---|
| 7093 | { if $as_mkdir_p; then |
---|
| 7094 | mkdir -p "$ac_dir" |
---|
| 7095 | else |
---|
| 7096 | as_dir="$ac_dir" |
---|
| 7097 | as_dirs= |
---|
| 7098 | while test ! -d "$as_dir"; do |
---|
| 7099 | as_dirs="$as_dir $as_dirs" |
---|
| 7100 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7101 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7102 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7103 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7104 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7105 | . : '\(.\)' 2>/dev/null || |
---|
| 7106 | echo X"$as_dir" | |
---|
| 7107 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7108 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7109 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7110 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7111 | s/.*/./; q'` |
---|
| 7112 | done |
---|
| 7113 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7114 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7115 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7116 | { (exit 1); exit 1; }; }; } |
---|
| 7117 | |
---|
| 7118 | ac_builddir=. |
---|
| 7119 | |
---|
| 7120 | if test "$ac_dir" != .; then |
---|
| 7121 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 7122 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 7123 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 7124 | else |
---|
| 7125 | ac_dir_suffix= ac_top_builddir= |
---|
| 7126 | fi |
---|
| 7127 | |
---|
| 7128 | case $srcdir in |
---|
| 7129 | .) # No --srcdir option. We are building in place. |
---|
| 7130 | ac_srcdir=. |
---|
| 7131 | if test -z "$ac_top_builddir"; then |
---|
| 7132 | ac_top_srcdir=. |
---|
| 7133 | else |
---|
| 7134 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 7135 | fi ;; |
---|
| 7136 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 7137 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 7138 | ac_top_srcdir=$srcdir ;; |
---|
| 7139 | *) # Relative path. |
---|
| 7140 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 7141 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 7142 | esac |
---|
| 7143 | |
---|
| 7144 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 7145 | # the directories may not exist. |
---|
| 7146 | case `pwd` in |
---|
| 7147 | .) ac_abs_builddir="$ac_dir";; |
---|
| 7148 | *) |
---|
| 7149 | case "$ac_dir" in |
---|
| 7150 | .) ac_abs_builddir=`pwd`;; |
---|
| 7151 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 7152 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 7153 | esac;; |
---|
| 7154 | esac |
---|
| 7155 | case $ac_abs_builddir in |
---|
| 7156 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7157 | *) |
---|
| 7158 | case ${ac_top_builddir}. in |
---|
| 7159 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 7160 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7161 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 7162 | esac;; |
---|
| 7163 | esac |
---|
| 7164 | case $ac_abs_builddir in |
---|
| 7165 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7166 | *) |
---|
| 7167 | case $ac_srcdir in |
---|
| 7168 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 7169 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7170 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 7171 | esac;; |
---|
| 7172 | esac |
---|
| 7173 | case $ac_abs_builddir in |
---|
| 7174 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7175 | *) |
---|
| 7176 | case $ac_top_srcdir in |
---|
| 7177 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 7178 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7179 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 7180 | esac;; |
---|
| 7181 | esac |
---|
| 7182 | |
---|
| 7183 | |
---|
| 7184 | case $INSTALL in |
---|
| 7185 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 7186 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 7187 | esac |
---|
| 7188 | |
---|
| 7189 | if test x"$ac_file" != x-; then |
---|
| 7190 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 7191 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 7192 | rm -f "$ac_file" |
---|
| 7193 | fi |
---|
| 7194 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 7195 | # use $as_me), people would be surprised to read: |
---|
| 7196 | # /* config.h. Generated by config.status. */ |
---|
| 7197 | if test x"$ac_file" = x-; then |
---|
| 7198 | configure_input= |
---|
| 7199 | else |
---|
| 7200 | configure_input="$ac_file. " |
---|
| 7201 | fi |
---|
| 7202 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 7203 | sed 's,.*/,,'` by configure." |
---|
| 7204 | |
---|
| 7205 | # First look for the input files in the build tree, otherwise in the |
---|
| 7206 | # src tree. |
---|
| 7207 | ac_file_inputs=`IFS=: |
---|
| 7208 | for f in $ac_file_in; do |
---|
| 7209 | case $f in |
---|
| 7210 | -) echo $tmp/stdin ;; |
---|
| 7211 | [\\/$]*) |
---|
| 7212 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 7213 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 7214 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7215 | { (exit 1); exit 1; }; } |
---|
| 7216 | echo "$f";; |
---|
| 7217 | *) # Relative |
---|
| 7218 | if test -f "$f"; then |
---|
| 7219 | # Build tree |
---|
| 7220 | echo "$f" |
---|
| 7221 | elif test -f "$srcdir/$f"; then |
---|
| 7222 | # Source tree |
---|
| 7223 | echo "$srcdir/$f" |
---|
| 7224 | else |
---|
| 7225 | # /dev/null tree |
---|
| 7226 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 7227 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7228 | { (exit 1); exit 1; }; } |
---|
| 7229 | fi;; |
---|
| 7230 | esac |
---|
| 7231 | done` || { (exit 1); exit 1; } |
---|
| 7232 | _ACEOF |
---|
| 7233 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 7234 | sed "$ac_vpsub |
---|
| 7235 | $extrasub |
---|
| 7236 | _ACEOF |
---|
| 7237 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7238 | :t |
---|
| 7239 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 7240 | s,@configure_input@,$configure_input,;t t |
---|
| 7241 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 7242 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 7243 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 7244 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 7245 | s,@builddir@,$ac_builddir,;t t |
---|
| 7246 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 7247 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 7248 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 7249 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 7250 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 7251 | rm -f $tmp/stdin |
---|
| 7252 | if test x"$ac_file" != x-; then |
---|
| 7253 | mv $tmp/out $ac_file |
---|
| 7254 | else |
---|
| 7255 | cat $tmp/out |
---|
| 7256 | rm -f $tmp/out |
---|
| 7257 | fi |
---|
| 7258 | |
---|
| 7259 | done |
---|
| 7260 | _ACEOF |
---|
| 7261 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7262 | |
---|
| 7263 | # |
---|
| 7264 | # CONFIG_HEADER section. |
---|
| 7265 | # |
---|
| 7266 | |
---|
| 7267 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 7268 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 7269 | # |
---|
| 7270 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 7271 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 7272 | ac_dB='[ ].*$,\1#\2' |
---|
| 7273 | ac_dC=' ' |
---|
| 7274 | ac_dD=',;t' |
---|
| 7275 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 7276 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 7277 | ac_uB='$,\1#\2define\3' |
---|
| 7278 | ac_uC=' ' |
---|
| 7279 | ac_uD=',;t' |
---|
| 7280 | |
---|
| 7281 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 7282 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 7283 | case $ac_file in |
---|
| 7284 | - | *:- | *:-:* ) # input from stdin |
---|
| 7285 | cat >$tmp/stdin |
---|
| 7286 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7287 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 7288 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7289 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 7290 | * ) ac_file_in=$ac_file.in ;; |
---|
| 7291 | esac |
---|
| 7292 | |
---|
| 7293 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 7294 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 7295 | |
---|
| 7296 | # First look for the input files in the build tree, otherwise in the |
---|
| 7297 | # src tree. |
---|
| 7298 | ac_file_inputs=`IFS=: |
---|
| 7299 | for f in $ac_file_in; do |
---|
| 7300 | case $f in |
---|
| 7301 | -) echo $tmp/stdin ;; |
---|
| 7302 | [\\/$]*) |
---|
| 7303 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 7304 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 7305 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7306 | { (exit 1); exit 1; }; } |
---|
| 7307 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 7308 | echo "$f";; |
---|
| 7309 | *) # Relative |
---|
| 7310 | if test -f "$f"; then |
---|
| 7311 | # Build tree |
---|
| 7312 | echo "$f" |
---|
| 7313 | elif test -f "$srcdir/$f"; then |
---|
| 7314 | # Source tree |
---|
| 7315 | echo "$srcdir/$f" |
---|
| 7316 | else |
---|
| 7317 | # /dev/null tree |
---|
| 7318 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 7319 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7320 | { (exit 1); exit 1; }; } |
---|
| 7321 | fi;; |
---|
| 7322 | esac |
---|
| 7323 | done` || { (exit 1); exit 1; } |
---|
| 7324 | # Remove the trailing spaces. |
---|
| 7325 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 7326 | |
---|
| 7327 | _ACEOF |
---|
| 7328 | |
---|
| 7329 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 7330 | # `conftest.undefs', that substitutes the proper values into |
---|
| 7331 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 7332 | # templates, and the second `#undef' templates. |
---|
| 7333 | # And first: Protect against being on the right side of a sed subst in |
---|
| 7334 | # config.status. Protect against being in an unquoted here document |
---|
| 7335 | # in config.status. |
---|
| 7336 | rm -f conftest.defines conftest.undefs |
---|
| 7337 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 7338 | # Putting comments in sed scripts is not portable. |
---|
| 7339 | # |
---|
| 7340 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 7341 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 7342 | # See the Autoconf documentation for `clear'. |
---|
| 7343 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 7344 | s/[\\&,]/\\&/g |
---|
| 7345 | s,[\\$`],\\&,g |
---|
| 7346 | t clear |
---|
| 7347 | : clear |
---|
| 7348 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 7349 | t end |
---|
| 7350 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 7351 | : end |
---|
| 7352 | _ACEOF |
---|
| 7353 | # If some macros were called several times there might be several times |
---|
| 7354 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 7355 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 7356 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 7357 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 7358 | rm -f confdef2sed.sed |
---|
| 7359 | |
---|
| 7360 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 7361 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 7362 | # on some systems where configure will not decide to define it. |
---|
| 7363 | cat >>conftest.undefs <<\_ACEOF |
---|
| 7364 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 7365 | _ACEOF |
---|
| 7366 | |
---|
| 7367 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 7368 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 7369 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 7370 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 7371 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 7372 | echo ' :' >>$CONFIG_STATUS |
---|
| 7373 | rm -f conftest.tail |
---|
| 7374 | while grep . conftest.defines >/dev/null |
---|
| 7375 | do |
---|
| 7376 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 7377 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 7378 | # Speed up: don't consider the non `#define' lines. |
---|
| 7379 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 7380 | # Work around the forget-to-reset-the-flag bug. |
---|
| 7381 | echo 't clr' >>$CONFIG_STATUS |
---|
| 7382 | echo ': clr' >>$CONFIG_STATUS |
---|
| 7383 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 7384 | echo 'CEOF |
---|
| 7385 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 7386 | rm -f $tmp/in |
---|
| 7387 | mv $tmp/out $tmp/in |
---|
| 7388 | ' >>$CONFIG_STATUS |
---|
| 7389 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 7390 | rm -f conftest.defines |
---|
| 7391 | mv conftest.tail conftest.defines |
---|
| 7392 | done |
---|
| 7393 | rm -f conftest.defines |
---|
| 7394 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 7395 | echo >>$CONFIG_STATUS |
---|
| 7396 | |
---|
| 7397 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 7398 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 7399 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 7400 | rm -f conftest.tail |
---|
| 7401 | while grep . conftest.undefs >/dev/null |
---|
| 7402 | do |
---|
| 7403 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 7404 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 7405 | # Speed up: don't consider the non `#undef' |
---|
| 7406 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 7407 | # Work around the forget-to-reset-the-flag bug. |
---|
| 7408 | echo 't clr' >>$CONFIG_STATUS |
---|
| 7409 | echo ': clr' >>$CONFIG_STATUS |
---|
| 7410 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 7411 | echo 'CEOF |
---|
| 7412 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 7413 | rm -f $tmp/in |
---|
| 7414 | mv $tmp/out $tmp/in |
---|
| 7415 | ' >>$CONFIG_STATUS |
---|
| 7416 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 7417 | rm -f conftest.undefs |
---|
| 7418 | mv conftest.tail conftest.undefs |
---|
| 7419 | done |
---|
| 7420 | rm -f conftest.undefs |
---|
| 7421 | |
---|
| 7422 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7423 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 7424 | # use $as_me), people would be surprised to read: |
---|
| 7425 | # /* config.h. Generated by config.status. */ |
---|
| 7426 | if test x"$ac_file" = x-; then |
---|
| 7427 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 7428 | else |
---|
| 7429 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 7430 | fi |
---|
| 7431 | cat $tmp/in >>$tmp/config.h |
---|
| 7432 | rm -f $tmp/in |
---|
| 7433 | if test x"$ac_file" != x-; then |
---|
| 7434 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 7435 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 7436 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 7437 | else |
---|
| 7438 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 7439 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7440 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 7441 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 7442 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 7443 | . : '\(.\)' 2>/dev/null || |
---|
| 7444 | echo X"$ac_file" | |
---|
| 7445 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7446 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7447 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7448 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7449 | s/.*/./; q'` |
---|
| 7450 | { if $as_mkdir_p; then |
---|
| 7451 | mkdir -p "$ac_dir" |
---|
| 7452 | else |
---|
| 7453 | as_dir="$ac_dir" |
---|
| 7454 | as_dirs= |
---|
| 7455 | while test ! -d "$as_dir"; do |
---|
| 7456 | as_dirs="$as_dir $as_dirs" |
---|
| 7457 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7458 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7459 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7460 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7461 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7462 | . : '\(.\)' 2>/dev/null || |
---|
| 7463 | echo X"$as_dir" | |
---|
| 7464 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7465 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7466 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7467 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7468 | s/.*/./; q'` |
---|
| 7469 | done |
---|
| 7470 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7471 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7472 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7473 | { (exit 1); exit 1; }; }; } |
---|
| 7474 | |
---|
| 7475 | rm -f $ac_file |
---|
| 7476 | mv $tmp/config.h $ac_file |
---|
| 7477 | fi |
---|
| 7478 | else |
---|
| 7479 | cat $tmp/config.h |
---|
| 7480 | rm -f $tmp/config.h |
---|
| 7481 | fi |
---|
| 7482 | # Compute $ac_file's index in $config_headers. |
---|
| 7483 | _am_stamp_count=1 |
---|
| 7484 | for _am_header in $config_headers :; do |
---|
| 7485 | case $_am_header in |
---|
| 7486 | $ac_file | $ac_file:* ) |
---|
| 7487 | break ;; |
---|
| 7488 | * ) |
---|
| 7489 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 7490 | esac |
---|
| 7491 | done |
---|
| 7492 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 7493 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7494 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 7495 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 7496 | X$ac_file : 'X\(/\)' \| \ |
---|
| 7497 | . : '\(.\)' 2>/dev/null || |
---|
| 7498 | echo X$ac_file | |
---|
| 7499 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7500 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7501 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7502 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7503 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 7504 | done |
---|
| 7505 | _ACEOF |
---|
| 7506 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7507 | |
---|
| 7508 | # |
---|
| 7509 | # CONFIG_COMMANDS section. |
---|
| 7510 | # |
---|
| 7511 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 7512 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 7513 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7514 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 7515 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7516 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 7517 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 7518 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 7519 | . : '\(.\)' 2>/dev/null || |
---|
| 7520 | echo X"$ac_dest" | |
---|
| 7521 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7522 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7523 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7524 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7525 | s/.*/./; q'` |
---|
| 7526 | { if $as_mkdir_p; then |
---|
| 7527 | mkdir -p "$ac_dir" |
---|
| 7528 | else |
---|
| 7529 | as_dir="$ac_dir" |
---|
| 7530 | as_dirs= |
---|
| 7531 | while test ! -d "$as_dir"; do |
---|
| 7532 | as_dirs="$as_dir $as_dirs" |
---|
| 7533 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7534 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7535 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7536 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7537 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7538 | . : '\(.\)' 2>/dev/null || |
---|
| 7539 | echo X"$as_dir" | |
---|
| 7540 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7541 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7542 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7543 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7544 | s/.*/./; q'` |
---|
| 7545 | done |
---|
| 7546 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7547 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7548 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7549 | { (exit 1); exit 1; }; }; } |
---|
| 7550 | |
---|
| 7551 | ac_builddir=. |
---|
| 7552 | |
---|
| 7553 | if test "$ac_dir" != .; then |
---|
| 7554 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 7555 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 7556 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 7557 | else |
---|
| 7558 | ac_dir_suffix= ac_top_builddir= |
---|
| 7559 | fi |
---|
| 7560 | |
---|
| 7561 | case $srcdir in |
---|
| 7562 | .) # No --srcdir option. We are building in place. |
---|
| 7563 | ac_srcdir=. |
---|
| 7564 | if test -z "$ac_top_builddir"; then |
---|
| 7565 | ac_top_srcdir=. |
---|
| 7566 | else |
---|
| 7567 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 7568 | fi ;; |
---|
| 7569 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 7570 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 7571 | ac_top_srcdir=$srcdir ;; |
---|
| 7572 | *) # Relative path. |
---|
| 7573 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 7574 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 7575 | esac |
---|
| 7576 | |
---|
| 7577 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 7578 | # the directories may not exist. |
---|
| 7579 | case `pwd` in |
---|
| 7580 | .) ac_abs_builddir="$ac_dir";; |
---|
| 7581 | *) |
---|
| 7582 | case "$ac_dir" in |
---|
| 7583 | .) ac_abs_builddir=`pwd`;; |
---|
| 7584 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 7585 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 7586 | esac;; |
---|
| 7587 | esac |
---|
| 7588 | case $ac_abs_builddir in |
---|
| 7589 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7590 | *) |
---|
| 7591 | case ${ac_top_builddir}. in |
---|
| 7592 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 7593 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7594 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 7595 | esac;; |
---|
| 7596 | esac |
---|
| 7597 | case $ac_abs_builddir in |
---|
| 7598 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7599 | *) |
---|
| 7600 | case $ac_srcdir in |
---|
| 7601 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 7602 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7603 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 7604 | esac;; |
---|
| 7605 | esac |
---|
| 7606 | case $ac_abs_builddir in |
---|
| 7607 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7608 | *) |
---|
| 7609 | case $ac_top_srcdir in |
---|
| 7610 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 7611 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7612 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 7613 | esac;; |
---|
| 7614 | esac |
---|
| 7615 | |
---|
| 7616 | |
---|
| 7617 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 7618 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 7619 | case $ac_dest in |
---|
| 7620 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 7621 | # Strip MF so we end up with the name of the file. |
---|
| 7622 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 7623 | # Check whether this is an Automake generated Makefile or not. |
---|
| 7624 | # We used to match only the files named `Makefile.in', but |
---|
| 7625 | # some people rename them; so instead we look at the file content. |
---|
| 7626 | # Grep'ing the first line is not enough: some people post-process |
---|
| 7627 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 7628 | # So let's grep whole file. |
---|
| 7629 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 7630 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 7631 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7632 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 7633 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 7634 | X"$mf" : 'X\(/\)' \| \ |
---|
| 7635 | . : '\(.\)' 2>/dev/null || |
---|
| 7636 | echo X"$mf" | |
---|
| 7637 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7638 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7639 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7640 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7641 | s/.*/./; q'` |
---|
| 7642 | else |
---|
| 7643 | continue |
---|
| 7644 | fi |
---|
| 7645 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 7646 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 7647 | # running `make'. |
---|
[2819] | 7648 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
[1956] | 7649 | test -z "$DEPDIR" && continue |
---|
| 7650 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
[2819] | 7651 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
[1956] | 7652 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 7653 | # We invoke sed twice because it is the simplest approach to |
---|
| 7654 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
[2819] | 7655 | for file in `sed -n ' |
---|
[1956] | 7656 | /^DEP_FILES = .*\\\\$/ { |
---|
| 7657 | s/^DEP_FILES = // |
---|
| 7658 | :loop |
---|
| 7659 | s/\\\\$// |
---|
| 7660 | p |
---|
| 7661 | n |
---|
| 7662 | /\\\\$/ b loop |
---|
| 7663 | p |
---|
| 7664 | } |
---|
| 7665 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 7666 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 7667 | # Make sure the directory exists. |
---|
| 7668 | test -f "$dirpart/$file" && continue |
---|
| 7669 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 7670 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7671 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 7672 | X"$file" : 'X\(//\)$' \| \ |
---|
| 7673 | X"$file" : 'X\(/\)' \| \ |
---|
| 7674 | . : '\(.\)' 2>/dev/null || |
---|
| 7675 | echo X"$file" | |
---|
| 7676 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7677 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7678 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7679 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7680 | s/.*/./; q'` |
---|
| 7681 | { if $as_mkdir_p; then |
---|
| 7682 | mkdir -p $dirpart/$fdir |
---|
| 7683 | else |
---|
| 7684 | as_dir=$dirpart/$fdir |
---|
| 7685 | as_dirs= |
---|
| 7686 | while test ! -d "$as_dir"; do |
---|
| 7687 | as_dirs="$as_dir $as_dirs" |
---|
| 7688 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7689 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7690 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7691 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7692 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7693 | . : '\(.\)' 2>/dev/null || |
---|
| 7694 | echo X"$as_dir" | |
---|
| 7695 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7696 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7697 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7698 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7699 | s/.*/./; q'` |
---|
| 7700 | done |
---|
| 7701 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7702 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 7703 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 7704 | { (exit 1); exit 1; }; }; } |
---|
| 7705 | |
---|
| 7706 | # echo "creating $dirpart/$file" |
---|
| 7707 | echo '# dummy' > "$dirpart/$file" |
---|
| 7708 | done |
---|
| 7709 | done |
---|
| 7710 | ;; |
---|
| 7711 | esac |
---|
| 7712 | done |
---|
| 7713 | _ACEOF |
---|
| 7714 | |
---|
| 7715 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7716 | |
---|
| 7717 | { (exit 0); exit 0; } |
---|
| 7718 | _ACEOF |
---|
| 7719 | chmod +x $CONFIG_STATUS |
---|
| 7720 | ac_clean_files=$ac_clean_files_save |
---|
| 7721 | |
---|
| 7722 | |
---|
| 7723 | # configure is writing to config.log, and then calls config.status. |
---|
| 7724 | # config.status does its own redirection, appending to config.log. |
---|
| 7725 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 7726 | # by configure, so config.status won't be able to write to it; its |
---|
| 7727 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 7728 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 7729 | # appended to by config.status. When coming back to configure, we |
---|
| 7730 | # need to make the FD available again. |
---|
| 7731 | if test "$no_create" != yes; then |
---|
| 7732 | ac_cs_success=: |
---|
| 7733 | ac_config_status_args= |
---|
| 7734 | test "$silent" = yes && |
---|
| 7735 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 7736 | exec 5>/dev/null |
---|
| 7737 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 7738 | exec 5>>config.log |
---|
| 7739 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 7740 | # would make configure fail if this is the last instruction. |
---|
| 7741 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 7742 | fi |
---|
| 7743 | |
---|