[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 | |
---|
[2706] | 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 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 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 |
---|
| 848 | _ACEOF |
---|
| 849 | fi |
---|
| 850 | |
---|
| 851 | if test -n "$ac_init_help"; then |
---|
| 852 | case $ac_init_help in |
---|
| 853 | short | recursive ) echo "Configuration of orxonox 0.1-pre-alpha:";; |
---|
| 854 | esac |
---|
| 855 | cat <<\_ACEOF |
---|
| 856 | |
---|
| 857 | Optional Features: |
---|
| 858 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 859 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
[2706] | 860 | --disable-dependency-tracking speeds up one-time build |
---|
| 861 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
[1956] | 862 | |
---|
| 863 | Some influential environment variables: |
---|
| 864 | CXX C++ compiler command |
---|
| 865 | CXXFLAGS C++ compiler flags |
---|
| 866 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 867 | nonstandard directory <lib dir> |
---|
| 868 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 869 | headers in a nonstandard directory <include dir> |
---|
| 870 | CC C compiler command |
---|
| 871 | CFLAGS C compiler flags |
---|
| 872 | CPP C preprocessor |
---|
| 873 | |
---|
| 874 | Use these variables to override the choices made by `configure' or to help |
---|
| 875 | it to find libraries and programs with nonstandard names/locations. |
---|
| 876 | |
---|
| 877 | Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
| 878 | _ACEOF |
---|
| 879 | fi |
---|
| 880 | |
---|
| 881 | if test "$ac_init_help" = "recursive"; then |
---|
| 882 | # If there are subdirs, report their specific --help. |
---|
| 883 | ac_popdir=`pwd` |
---|
| 884 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 885 | test -d $ac_dir || continue |
---|
| 886 | ac_builddir=. |
---|
| 887 | |
---|
| 888 | if test "$ac_dir" != .; then |
---|
| 889 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 890 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 891 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 892 | else |
---|
| 893 | ac_dir_suffix= ac_top_builddir= |
---|
| 894 | fi |
---|
| 895 | |
---|
| 896 | case $srcdir in |
---|
| 897 | .) # No --srcdir option. We are building in place. |
---|
| 898 | ac_srcdir=. |
---|
| 899 | if test -z "$ac_top_builddir"; then |
---|
| 900 | ac_top_srcdir=. |
---|
| 901 | else |
---|
| 902 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 903 | fi ;; |
---|
| 904 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 905 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 906 | ac_top_srcdir=$srcdir ;; |
---|
| 907 | *) # Relative path. |
---|
| 908 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 909 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 910 | esac |
---|
| 911 | |
---|
| 912 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 913 | # the directories may not exist. |
---|
| 914 | case `pwd` in |
---|
| 915 | .) ac_abs_builddir="$ac_dir";; |
---|
| 916 | *) |
---|
| 917 | case "$ac_dir" in |
---|
| 918 | .) ac_abs_builddir=`pwd`;; |
---|
| 919 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 920 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 921 | esac;; |
---|
| 922 | esac |
---|
| 923 | case $ac_abs_builddir in |
---|
| 924 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 925 | *) |
---|
| 926 | case ${ac_top_builddir}. in |
---|
| 927 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 928 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 929 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 930 | esac;; |
---|
| 931 | esac |
---|
| 932 | case $ac_abs_builddir in |
---|
| 933 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 934 | *) |
---|
| 935 | case $ac_srcdir in |
---|
| 936 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 937 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 938 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 939 | esac;; |
---|
| 940 | esac |
---|
| 941 | case $ac_abs_builddir in |
---|
| 942 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 943 | *) |
---|
| 944 | case $ac_top_srcdir in |
---|
| 945 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 946 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 947 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 948 | esac;; |
---|
| 949 | esac |
---|
| 950 | |
---|
| 951 | cd $ac_dir |
---|
| 952 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 953 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 954 | echo |
---|
| 955 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 956 | elif test -f $ac_srcdir/configure; then |
---|
| 957 | echo |
---|
| 958 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 959 | elif test -f $ac_srcdir/configure.ac || |
---|
| 960 | test -f $ac_srcdir/configure.in; then |
---|
| 961 | echo |
---|
| 962 | $ac_configure --help |
---|
| 963 | else |
---|
| 964 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 965 | fi |
---|
| 966 | cd $ac_popdir |
---|
| 967 | done |
---|
| 968 | fi |
---|
| 969 | |
---|
| 970 | test -n "$ac_init_help" && exit 0 |
---|
| 971 | if $ac_init_version; then |
---|
| 972 | cat <<\_ACEOF |
---|
| 973 | orxonox configure 0.1-pre-alpha |
---|
| 974 | generated by GNU Autoconf 2.59 |
---|
| 975 | |
---|
| 976 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 977 | This configure script is free software; the Free Software Foundation |
---|
| 978 | gives unlimited permission to copy, distribute and modify it. |
---|
| 979 | _ACEOF |
---|
| 980 | exit 0 |
---|
| 981 | fi |
---|
| 982 | exec 5>config.log |
---|
| 983 | cat >&5 <<_ACEOF |
---|
| 984 | This file contains any messages produced by compilers while |
---|
| 985 | running configure, to aid debugging if configure makes a mistake. |
---|
| 986 | |
---|
| 987 | It was created by orxonox $as_me 0.1-pre-alpha, which was |
---|
| 988 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 989 | |
---|
| 990 | $ $0 $@ |
---|
| 991 | |
---|
| 992 | _ACEOF |
---|
| 993 | { |
---|
| 994 | cat <<_ASUNAME |
---|
| 995 | ## --------- ## |
---|
| 996 | ## Platform. ## |
---|
| 997 | ## --------- ## |
---|
| 998 | |
---|
| 999 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1000 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1001 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1002 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1003 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1004 | |
---|
| 1005 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1006 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1007 | |
---|
| 1008 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1009 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1010 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1011 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1012 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1013 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1014 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1015 | |
---|
| 1016 | _ASUNAME |
---|
| 1017 | |
---|
| 1018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1019 | for as_dir in $PATH |
---|
| 1020 | do |
---|
| 1021 | IFS=$as_save_IFS |
---|
| 1022 | test -z "$as_dir" && as_dir=. |
---|
| 1023 | echo "PATH: $as_dir" |
---|
| 1024 | done |
---|
| 1025 | |
---|
| 1026 | } >&5 |
---|
| 1027 | |
---|
| 1028 | cat >&5 <<_ACEOF |
---|
| 1029 | |
---|
| 1030 | |
---|
| 1031 | ## ----------- ## |
---|
| 1032 | ## Core tests. ## |
---|
| 1033 | ## ----------- ## |
---|
| 1034 | |
---|
| 1035 | _ACEOF |
---|
| 1036 | |
---|
| 1037 | |
---|
| 1038 | # Keep a trace of the command line. |
---|
| 1039 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1040 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1041 | # Also quote any args containing shell meta-characters. |
---|
| 1042 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1043 | ac_configure_args= |
---|
| 1044 | ac_configure_args0= |
---|
| 1045 | ac_configure_args1= |
---|
| 1046 | ac_sep= |
---|
| 1047 | ac_must_keep_next=false |
---|
| 1048 | for ac_pass in 1 2 |
---|
| 1049 | do |
---|
| 1050 | for ac_arg |
---|
| 1051 | do |
---|
| 1052 | case $ac_arg in |
---|
| 1053 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1054 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1055 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1056 | continue ;; |
---|
| 1057 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1058 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1059 | esac |
---|
| 1060 | case $ac_pass in |
---|
| 1061 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1062 | 2) |
---|
| 1063 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1064 | if test $ac_must_keep_next = true; then |
---|
| 1065 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1066 | else |
---|
| 1067 | case $ac_arg in |
---|
| 1068 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1069 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1070 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1071 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1072 | case "$ac_configure_args0 " in |
---|
| 1073 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1074 | esac |
---|
| 1075 | ;; |
---|
| 1076 | -* ) ac_must_keep_next=true ;; |
---|
| 1077 | esac |
---|
| 1078 | fi |
---|
| 1079 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1080 | # Get rid of the leading space. |
---|
| 1081 | ac_sep=" " |
---|
| 1082 | ;; |
---|
| 1083 | esac |
---|
| 1084 | done |
---|
| 1085 | done |
---|
| 1086 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1087 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1088 | |
---|
| 1089 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1090 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1091 | # would cause problems or look ugly. |
---|
| 1092 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1093 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1094 | trap 'exit_status=$? |
---|
| 1095 | # Save into config.log some information that might help in debugging. |
---|
| 1096 | { |
---|
| 1097 | echo |
---|
| 1098 | |
---|
| 1099 | cat <<\_ASBOX |
---|
| 1100 | ## ---------------- ## |
---|
| 1101 | ## Cache variables. ## |
---|
| 1102 | ## ---------------- ## |
---|
| 1103 | _ASBOX |
---|
| 1104 | echo |
---|
| 1105 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1106 | { |
---|
| 1107 | (set) 2>&1 | |
---|
| 1108 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1109 | *ac_space=\ *) |
---|
| 1110 | sed -n \ |
---|
| 1111 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1112 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1113 | ;; |
---|
| 1114 | *) |
---|
| 1115 | sed -n \ |
---|
| 1116 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1117 | ;; |
---|
| 1118 | esac; |
---|
| 1119 | } |
---|
| 1120 | echo |
---|
| 1121 | |
---|
| 1122 | cat <<\_ASBOX |
---|
| 1123 | ## ----------------- ## |
---|
| 1124 | ## Output variables. ## |
---|
| 1125 | ## ----------------- ## |
---|
| 1126 | _ASBOX |
---|
| 1127 | echo |
---|
| 1128 | for ac_var in $ac_subst_vars |
---|
| 1129 | do |
---|
| 1130 | eval ac_val=$`echo $ac_var` |
---|
| 1131 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1132 | done | sort |
---|
| 1133 | echo |
---|
| 1134 | |
---|
| 1135 | if test -n "$ac_subst_files"; then |
---|
| 1136 | cat <<\_ASBOX |
---|
| 1137 | ## ------------- ## |
---|
| 1138 | ## Output files. ## |
---|
| 1139 | ## ------------- ## |
---|
| 1140 | _ASBOX |
---|
| 1141 | echo |
---|
| 1142 | for ac_var in $ac_subst_files |
---|
| 1143 | do |
---|
| 1144 | eval ac_val=$`echo $ac_var` |
---|
| 1145 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1146 | done | sort |
---|
| 1147 | echo |
---|
| 1148 | fi |
---|
| 1149 | |
---|
| 1150 | if test -s confdefs.h; then |
---|
| 1151 | cat <<\_ASBOX |
---|
| 1152 | ## ----------- ## |
---|
| 1153 | ## confdefs.h. ## |
---|
| 1154 | ## ----------- ## |
---|
| 1155 | _ASBOX |
---|
| 1156 | echo |
---|
| 1157 | sed "/^$/d" confdefs.h | sort |
---|
| 1158 | echo |
---|
| 1159 | fi |
---|
| 1160 | test "$ac_signal" != 0 && |
---|
| 1161 | echo "$as_me: caught signal $ac_signal" |
---|
| 1162 | echo "$as_me: exit $exit_status" |
---|
| 1163 | } >&5 |
---|
| 1164 | rm -f core *.core && |
---|
| 1165 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1166 | exit $exit_status |
---|
| 1167 | ' 0 |
---|
| 1168 | for ac_signal in 1 2 13 15; do |
---|
| 1169 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1170 | done |
---|
| 1171 | ac_signal=0 |
---|
| 1172 | |
---|
| 1173 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1174 | rm -rf conftest* confdefs.h |
---|
| 1175 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1176 | echo >confdefs.h |
---|
| 1177 | |
---|
| 1178 | # Predefined preprocessor variables. |
---|
| 1179 | |
---|
| 1180 | cat >>confdefs.h <<_ACEOF |
---|
| 1181 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1182 | _ACEOF |
---|
| 1183 | |
---|
| 1184 | |
---|
| 1185 | cat >>confdefs.h <<_ACEOF |
---|
| 1186 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1187 | _ACEOF |
---|
| 1188 | |
---|
| 1189 | |
---|
| 1190 | cat >>confdefs.h <<_ACEOF |
---|
| 1191 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1192 | _ACEOF |
---|
| 1193 | |
---|
| 1194 | |
---|
| 1195 | cat >>confdefs.h <<_ACEOF |
---|
| 1196 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1197 | _ACEOF |
---|
| 1198 | |
---|
| 1199 | |
---|
| 1200 | cat >>confdefs.h <<_ACEOF |
---|
| 1201 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1202 | _ACEOF |
---|
| 1203 | |
---|
| 1204 | |
---|
| 1205 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1206 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1207 | if test -z "$CONFIG_SITE"; then |
---|
| 1208 | if test "x$prefix" != xNONE; then |
---|
| 1209 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1210 | else |
---|
| 1211 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1212 | fi |
---|
| 1213 | fi |
---|
| 1214 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1215 | if test -r "$ac_site_file"; then |
---|
| 1216 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1217 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1218 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1219 | . "$ac_site_file" |
---|
| 1220 | fi |
---|
| 1221 | done |
---|
| 1222 | |
---|
| 1223 | if test -r "$cache_file"; then |
---|
| 1224 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1225 | # files actually), so we avoid doing that. |
---|
| 1226 | if test -f "$cache_file"; then |
---|
| 1227 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1228 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1229 | case $cache_file in |
---|
| 1230 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1231 | *) . ./$cache_file;; |
---|
| 1232 | esac |
---|
| 1233 | fi |
---|
| 1234 | else |
---|
| 1235 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1236 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1237 | >$cache_file |
---|
| 1238 | fi |
---|
| 1239 | |
---|
| 1240 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1241 | # value. |
---|
| 1242 | ac_cache_corrupted=false |
---|
| 1243 | for ac_var in `(set) 2>&1 | |
---|
| 1244 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1245 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1246 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1247 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1248 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1249 | case $ac_old_set,$ac_new_set in |
---|
| 1250 | set,) |
---|
| 1251 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1252 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1253 | ac_cache_corrupted=: ;; |
---|
| 1254 | ,set) |
---|
| 1255 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1256 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1257 | ac_cache_corrupted=: ;; |
---|
| 1258 | ,);; |
---|
| 1259 | *) |
---|
| 1260 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1261 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1262 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1263 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1264 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1265 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1266 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1267 | ac_cache_corrupted=: |
---|
| 1268 | fi;; |
---|
| 1269 | esac |
---|
| 1270 | # Pass precious variables to config.status. |
---|
| 1271 | if test "$ac_new_set" = set; then |
---|
| 1272 | case $ac_new_val in |
---|
| 1273 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1274 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1275 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1276 | esac |
---|
| 1277 | case " $ac_configure_args " in |
---|
| 1278 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1279 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1280 | esac |
---|
| 1281 | fi |
---|
| 1282 | done |
---|
| 1283 | if $ac_cache_corrupted; then |
---|
| 1284 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1285 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1286 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1287 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1288 | { (exit 1); exit 1; }; } |
---|
| 1289 | fi |
---|
| 1290 | |
---|
| 1291 | ac_ext=c |
---|
| 1292 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1296 | |
---|
| 1297 | |
---|
| 1298 | |
---|
| 1299 | |
---|
| 1300 | |
---|
| 1301 | |
---|
| 1302 | |
---|
| 1303 | |
---|
| 1304 | |
---|
| 1305 | |
---|
| 1306 | |
---|
| 1307 | |
---|
| 1308 | |
---|
| 1309 | |
---|
| 1310 | |
---|
| 1311 | |
---|
| 1312 | |
---|
| 1313 | |
---|
| 1314 | |
---|
| 1315 | |
---|
| 1316 | |
---|
| 1317 | |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
[2706] | 1323 | am__api_version="1.8" |
---|
[1956] | 1324 | ac_aux_dir= |
---|
| 1325 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1326 | if test -f $ac_dir/install-sh; then |
---|
| 1327 | ac_aux_dir=$ac_dir |
---|
| 1328 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1329 | break |
---|
| 1330 | elif test -f $ac_dir/install.sh; then |
---|
| 1331 | ac_aux_dir=$ac_dir |
---|
| 1332 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1333 | break |
---|
| 1334 | elif test -f $ac_dir/shtool; then |
---|
| 1335 | ac_aux_dir=$ac_dir |
---|
| 1336 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1337 | break |
---|
| 1338 | fi |
---|
| 1339 | done |
---|
| 1340 | if test -z "$ac_aux_dir"; then |
---|
| 1341 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1342 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1343 | { (exit 1); exit 1; }; } |
---|
| 1344 | fi |
---|
| 1345 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1346 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1347 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1348 | |
---|
| 1349 | # Find a good install program. We prefer a C program (faster), |
---|
| 1350 | # so one script is as good as another. But avoid the broken or |
---|
| 1351 | # incompatible versions: |
---|
| 1352 | # SysV /etc/install, /usr/sbin/install |
---|
| 1353 | # SunOS /usr/etc/install |
---|
| 1354 | # IRIX /sbin/install |
---|
| 1355 | # AIX /bin/install |
---|
| 1356 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1357 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1358 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1359 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1360 | # OS/2's system install, which has a completely different semantic |
---|
| 1361 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1362 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1363 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1364 | if test -z "$INSTALL"; then |
---|
| 1365 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1367 | else |
---|
| 1368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1369 | for as_dir in $PATH |
---|
| 1370 | do |
---|
| 1371 | IFS=$as_save_IFS |
---|
| 1372 | test -z "$as_dir" && as_dir=. |
---|
| 1373 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1374 | case $as_dir/ in |
---|
| 1375 | ./ | .// | /cC/* | \ |
---|
| 1376 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1377 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1378 | /usr/ucb/* ) ;; |
---|
| 1379 | *) |
---|
| 1380 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1381 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1382 | # by default. |
---|
| 1383 | for ac_prog in ginstall scoinst install; do |
---|
| 1384 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1385 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1386 | if test $ac_prog = install && |
---|
| 1387 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1388 | # AIX install. It has an incompatible calling convention. |
---|
| 1389 | : |
---|
| 1390 | elif test $ac_prog = install && |
---|
| 1391 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1392 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1393 | : |
---|
| 1394 | else |
---|
| 1395 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1396 | break 3 |
---|
| 1397 | fi |
---|
[1853] | 1398 | fi |
---|
[1956] | 1399 | done |
---|
| 1400 | done |
---|
| 1401 | ;; |
---|
| 1402 | esac |
---|
| 1403 | done |
---|
| 1404 | |
---|
| 1405 | |
---|
[1853] | 1406 | fi |
---|
[1956] | 1407 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1408 | INSTALL=$ac_cv_path_install |
---|
| 1409 | else |
---|
| 1410 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1411 | # path for INSTALL within a source directory, because that will |
---|
| 1412 | # break other packages using the cache if that directory is |
---|
| 1413 | # removed, or if the path is relative. |
---|
| 1414 | INSTALL=$ac_install_sh |
---|
| 1415 | fi |
---|
| 1416 | fi |
---|
| 1417 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1418 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1419 | |
---|
| 1420 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1421 | # It thinks the first close brace ends the variable substitution. |
---|
| 1422 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1423 | |
---|
| 1424 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1425 | |
---|
| 1426 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1427 | |
---|
| 1428 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1429 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1430 | # Just in case |
---|
| 1431 | sleep 1 |
---|
| 1432 | echo timestamp > conftest.file |
---|
| 1433 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1434 | # arguments. Must try -L first in case configure is actually a |
---|
| 1435 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1436 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1437 | # directory). |
---|
| 1438 | if ( |
---|
| 1439 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1440 | if test "$*" = "X"; then |
---|
| 1441 | # -L didn't work. |
---|
| 1442 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1443 | fi |
---|
| 1444 | rm -f conftest.file |
---|
| 1445 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1446 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1447 | |
---|
| 1448 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1449 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1450 | # broken ls alias from the environment. This has actually |
---|
| 1451 | # happened. Such a system could not be considered "sane". |
---|
| 1452 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1453 | alias in your environment" >&5 |
---|
| 1454 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1455 | alias in your environment" >&2;} |
---|
| 1456 | { (exit 1); exit 1; }; } |
---|
| 1457 | fi |
---|
| 1458 | |
---|
| 1459 | test "$2" = conftest.file |
---|
| 1460 | ) |
---|
| 1461 | then |
---|
| 1462 | # Ok. |
---|
| 1463 | : |
---|
[1853] | 1464 | else |
---|
[1956] | 1465 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1466 | Check your system clock" >&5 |
---|
| 1467 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1468 | Check your system clock" >&2;} |
---|
| 1469 | { (exit 1); exit 1; }; } |
---|
[1853] | 1470 | fi |
---|
[1956] | 1471 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1472 | echo "${ECHO_T}yes" >&6 |
---|
| 1473 | test "$program_prefix" != NONE && |
---|
| 1474 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1475 | # Use a double $ so make ignores it. |
---|
| 1476 | test "$program_suffix" != NONE && |
---|
| 1477 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1478 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1479 | # By default was `s,x,x', remove it if useless. |
---|
| 1480 | cat <<\_ACEOF >conftest.sed |
---|
| 1481 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1482 | _ACEOF |
---|
| 1483 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1484 | rm conftest.sed |
---|
[1853] | 1485 | |
---|
[1956] | 1486 | # expand $ac_aux_dir to an absolute path |
---|
| 1487 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1488 | |
---|
| 1489 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1490 | # Use eval to expand $SHELL |
---|
| 1491 | if eval "$MISSING --run true"; then |
---|
| 1492 | am_missing_run="$MISSING --run " |
---|
| 1493 | else |
---|
| 1494 | am_missing_run= |
---|
| 1495 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1496 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1497 | fi |
---|
| 1498 | |
---|
[2706] | 1499 | if mkdir -p -- . 2>/dev/null; then |
---|
| 1500 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
| 1501 | # argument. Indeed, we sometimes output rules like |
---|
| 1502 | # $(mkdir_p) $(somedir) |
---|
| 1503 | # where $(somedir) is conditionally defined. |
---|
| 1504 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
| 1505 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
| 1506 | mkdir_p='mkdir -p -- .' |
---|
| 1507 | else |
---|
| 1508 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1509 | # recognize any option. It will interpret all options as |
---|
| 1510 | # directories to create, and then abort because `.' already |
---|
| 1511 | # exists. |
---|
| 1512 | for d in ./-p ./--; |
---|
| 1513 | do |
---|
| 1514 | test -d $d && rmdir $d |
---|
| 1515 | done |
---|
| 1516 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1517 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1518 | mkdir_p='$(mkinstalldirs)' |
---|
| 1519 | else |
---|
| 1520 | mkdir_p='$(install_sh) -d' |
---|
| 1521 | fi |
---|
| 1522 | fi |
---|
| 1523 | |
---|
[1956] | 1524 | for ac_prog in gawk mawk nawk awk |
---|
| 1525 | do |
---|
| 1526 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1527 | set dummy $ac_prog; ac_word=$2 |
---|
| 1528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1530 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1532 | else |
---|
| 1533 | if test -n "$AWK"; then |
---|
| 1534 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1535 | else |
---|
| 1536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1537 | for as_dir in $PATH |
---|
| 1538 | do |
---|
| 1539 | IFS=$as_save_IFS |
---|
| 1540 | test -z "$as_dir" && as_dir=. |
---|
| 1541 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1542 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1543 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1545 | break 2 |
---|
| 1546 | fi |
---|
| 1547 | done |
---|
| 1548 | done |
---|
| 1549 | |
---|
| 1550 | fi |
---|
| 1551 | fi |
---|
| 1552 | AWK=$ac_cv_prog_AWK |
---|
| 1553 | if test -n "$AWK"; then |
---|
| 1554 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1555 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1556 | else |
---|
| 1557 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1558 | echo "${ECHO_T}no" >&6 |
---|
| 1559 | fi |
---|
| 1560 | |
---|
| 1561 | test -n "$AWK" && break |
---|
| 1562 | done |
---|
| 1563 | |
---|
| 1564 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1565 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1566 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1567 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1569 | else |
---|
| 1570 | cat >conftest.make <<\_ACEOF |
---|
| 1571 | all: |
---|
| 1572 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1573 | _ACEOF |
---|
| 1574 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1575 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1576 | if test -n "$ac_maketemp"; then |
---|
| 1577 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1578 | else |
---|
| 1579 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1580 | fi |
---|
| 1581 | rm -f conftest.make |
---|
| 1582 | fi |
---|
| 1583 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1584 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1585 | echo "${ECHO_T}yes" >&6 |
---|
| 1586 | SET_MAKE= |
---|
| 1587 | else |
---|
| 1588 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1589 | echo "${ECHO_T}no" >&6 |
---|
| 1590 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1591 | fi |
---|
| 1592 | |
---|
| 1593 | rm -rf .tst 2>/dev/null |
---|
| 1594 | mkdir .tst 2>/dev/null |
---|
| 1595 | if test -d .tst; then |
---|
| 1596 | am__leading_dot=. |
---|
| 1597 | else |
---|
| 1598 | am__leading_dot=_ |
---|
| 1599 | fi |
---|
| 1600 | rmdir .tst 2>/dev/null |
---|
| 1601 | |
---|
[2706] | 1602 | # test to see if srcdir already configured |
---|
[1956] | 1603 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1604 | test -f $srcdir/config.status; then |
---|
| 1605 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1606 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1607 | { (exit 1); exit 1; }; } |
---|
| 1608 | fi |
---|
| 1609 | |
---|
| 1610 | # test whether we have cygpath |
---|
| 1611 | if test -z "$CYGPATH_W"; then |
---|
| 1612 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1613 | CYGPATH_W='cygpath -w' |
---|
| 1614 | else |
---|
| 1615 | CYGPATH_W=echo |
---|
| 1616 | fi |
---|
| 1617 | fi |
---|
| 1618 | |
---|
| 1619 | |
---|
| 1620 | # Define the identity of the package. |
---|
| 1621 | PACKAGE='orxonox' |
---|
| 1622 | VERSION='0.1-pre-alpha' |
---|
| 1623 | |
---|
| 1624 | |
---|
| 1625 | cat >>confdefs.h <<_ACEOF |
---|
| 1626 | #define PACKAGE "$PACKAGE" |
---|
| 1627 | _ACEOF |
---|
| 1628 | |
---|
| 1629 | |
---|
| 1630 | cat >>confdefs.h <<_ACEOF |
---|
| 1631 | #define VERSION "$VERSION" |
---|
| 1632 | _ACEOF |
---|
| 1633 | |
---|
| 1634 | # Some tools Automake needs. |
---|
| 1635 | |
---|
| 1636 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1637 | |
---|
| 1638 | |
---|
| 1639 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1640 | |
---|
| 1641 | |
---|
| 1642 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1643 | |
---|
| 1644 | |
---|
| 1645 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1646 | |
---|
| 1647 | |
---|
| 1648 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1649 | |
---|
| 1650 | |
---|
| 1651 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1652 | |
---|
| 1653 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1654 | |
---|
| 1655 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1656 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1657 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1658 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1659 | if test "$cross_compiling" != no; then |
---|
| 1660 | if test -n "$ac_tool_prefix"; then |
---|
| 1661 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1662 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1663 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1665 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1667 | else |
---|
| 1668 | if test -n "$STRIP"; then |
---|
| 1669 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1670 | else |
---|
| 1671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1672 | for as_dir in $PATH |
---|
| 1673 | do |
---|
| 1674 | IFS=$as_save_IFS |
---|
| 1675 | test -z "$as_dir" && as_dir=. |
---|
| 1676 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1677 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1678 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1680 | break 2 |
---|
| 1681 | fi |
---|
| 1682 | done |
---|
| 1683 | done |
---|
| 1684 | |
---|
| 1685 | fi |
---|
| 1686 | fi |
---|
| 1687 | STRIP=$ac_cv_prog_STRIP |
---|
| 1688 | if test -n "$STRIP"; then |
---|
| 1689 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1690 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1691 | else |
---|
| 1692 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1693 | echo "${ECHO_T}no" >&6 |
---|
| 1694 | fi |
---|
| 1695 | |
---|
| 1696 | fi |
---|
| 1697 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1698 | ac_ct_STRIP=$STRIP |
---|
| 1699 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1700 | set dummy strip; ac_word=$2 |
---|
| 1701 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1702 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1703 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1705 | else |
---|
| 1706 | if test -n "$ac_ct_STRIP"; then |
---|
| 1707 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1708 | else |
---|
| 1709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1710 | for as_dir in $PATH |
---|
| 1711 | do |
---|
| 1712 | IFS=$as_save_IFS |
---|
| 1713 | test -z "$as_dir" && as_dir=. |
---|
| 1714 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1715 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1716 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1718 | break 2 |
---|
| 1719 | fi |
---|
| 1720 | done |
---|
| 1721 | done |
---|
| 1722 | |
---|
| 1723 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1724 | fi |
---|
| 1725 | fi |
---|
| 1726 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1727 | if test -n "$ac_ct_STRIP"; then |
---|
| 1728 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1729 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1730 | else |
---|
| 1731 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1732 | echo "${ECHO_T}no" >&6 |
---|
| 1733 | fi |
---|
| 1734 | |
---|
| 1735 | STRIP=$ac_ct_STRIP |
---|
| 1736 | else |
---|
| 1737 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1738 | fi |
---|
| 1739 | |
---|
| 1740 | fi |
---|
| 1741 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1742 | |
---|
| 1743 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1744 | # some platforms. |
---|
| 1745 | |
---|
| 1746 | |
---|
| 1747 | |
---|
| 1748 | |
---|
[2627] | 1749 | |
---|
[1959] | 1750 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1751 | |
---|
| 1752 | |
---|
[2018] | 1753 | |
---|
[1956] | 1754 | # Checks for programs. |
---|
| 1755 | ac_ext=cc |
---|
| 1756 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1757 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1758 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1759 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1760 | if test -n "$ac_tool_prefix"; then |
---|
| 1761 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1762 | do |
---|
| 1763 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1764 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1767 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1769 | else |
---|
| 1770 | if test -n "$CXX"; then |
---|
| 1771 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1772 | else |
---|
| 1773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1774 | for as_dir in $PATH |
---|
| 1775 | do |
---|
| 1776 | IFS=$as_save_IFS |
---|
| 1777 | test -z "$as_dir" && as_dir=. |
---|
| 1778 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1779 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1780 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1782 | break 2 |
---|
| 1783 | fi |
---|
| 1784 | done |
---|
| 1785 | done |
---|
| 1786 | |
---|
| 1787 | fi |
---|
| 1788 | fi |
---|
| 1789 | CXX=$ac_cv_prog_CXX |
---|
| 1790 | if test -n "$CXX"; then |
---|
| 1791 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1792 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1793 | else |
---|
| 1794 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1795 | echo "${ECHO_T}no" >&6 |
---|
| 1796 | fi |
---|
| 1797 | |
---|
| 1798 | test -n "$CXX" && break |
---|
| 1799 | done |
---|
| 1800 | fi |
---|
| 1801 | if test -z "$CXX"; then |
---|
| 1802 | ac_ct_CXX=$CXX |
---|
| 1803 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1804 | do |
---|
| 1805 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1806 | set dummy $ac_prog; ac_word=$2 |
---|
| 1807 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1809 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1811 | else |
---|
| 1812 | if test -n "$ac_ct_CXX"; then |
---|
| 1813 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1814 | else |
---|
| 1815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1816 | for as_dir in $PATH |
---|
| 1817 | do |
---|
| 1818 | IFS=$as_save_IFS |
---|
| 1819 | test -z "$as_dir" && as_dir=. |
---|
| 1820 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1821 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1822 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1823 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1824 | break 2 |
---|
| 1825 | fi |
---|
| 1826 | done |
---|
| 1827 | done |
---|
| 1828 | |
---|
| 1829 | fi |
---|
| 1830 | fi |
---|
| 1831 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1832 | if test -n "$ac_ct_CXX"; then |
---|
| 1833 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1834 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1835 | else |
---|
| 1836 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1837 | echo "${ECHO_T}no" >&6 |
---|
| 1838 | fi |
---|
| 1839 | |
---|
| 1840 | test -n "$ac_ct_CXX" && break |
---|
| 1841 | done |
---|
| 1842 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1843 | |
---|
| 1844 | CXX=$ac_ct_CXX |
---|
| 1845 | fi |
---|
| 1846 | |
---|
| 1847 | |
---|
| 1848 | # Provide some information about the compiler. |
---|
| 1849 | echo "$as_me:$LINENO:" \ |
---|
| 1850 | "checking for C++ compiler version" >&5 |
---|
| 1851 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1852 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1853 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1854 | ac_status=$? |
---|
| 1855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1856 | (exit $ac_status); } |
---|
| 1857 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1858 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1859 | ac_status=$? |
---|
| 1860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1861 | (exit $ac_status); } |
---|
| 1862 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1863 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1864 | ac_status=$? |
---|
| 1865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1866 | (exit $ac_status); } |
---|
| 1867 | |
---|
| 1868 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1869 | /* confdefs.h. */ |
---|
| 1870 | _ACEOF |
---|
| 1871 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1872 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1873 | /* end confdefs.h. */ |
---|
| 1874 | |
---|
| 1875 | int |
---|
| 1876 | main () |
---|
| 1877 | { |
---|
| 1878 | |
---|
| 1879 | ; |
---|
| 1880 | return 0; |
---|
| 1881 | } |
---|
| 1882 | _ACEOF |
---|
| 1883 | ac_clean_files_save=$ac_clean_files |
---|
| 1884 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1885 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1886 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1887 | # of exeext. |
---|
| 1888 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1889 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1890 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1891 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1892 | (eval $ac_link_default) 2>&5 |
---|
| 1893 | ac_status=$? |
---|
| 1894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1895 | (exit $ac_status); }; then |
---|
| 1896 | # Find the output, starting from the most likely. This scheme is |
---|
| 1897 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 1898 | # resort. |
---|
| 1899 | |
---|
| 1900 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 1901 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 1902 | ac_cv_exeext= |
---|
| 1903 | # b.out is created by i960 compilers. |
---|
| 1904 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 1905 | do |
---|
| 1906 | test -f "$ac_file" || continue |
---|
| 1907 | case $ac_file in |
---|
| 1908 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 1909 | ;; |
---|
| 1910 | conftest.$ac_ext ) |
---|
| 1911 | # This is the source file. |
---|
| 1912 | ;; |
---|
| 1913 | [ab].out ) |
---|
| 1914 | # We found the default executable, but exeext='' is most |
---|
| 1915 | # certainly right. |
---|
| 1916 | break;; |
---|
| 1917 | *.* ) |
---|
| 1918 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1919 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 1920 | # but it would be cool to find out if it's true. Does anybody |
---|
| 1921 | # maintain Libtool? --akim. |
---|
| 1922 | export ac_cv_exeext |
---|
| 1923 | break;; |
---|
| 1924 | * ) |
---|
| 1925 | break;; |
---|
| 1926 | esac |
---|
| 1927 | done |
---|
| 1928 | else |
---|
| 1929 | echo "$as_me: failed program was:" >&5 |
---|
| 1930 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1931 | |
---|
| 1932 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 1933 | See \`config.log' for more details." >&5 |
---|
| 1934 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 1935 | See \`config.log' for more details." >&2;} |
---|
| 1936 | { (exit 77); exit 77; }; } |
---|
| 1937 | fi |
---|
| 1938 | |
---|
| 1939 | ac_exeext=$ac_cv_exeext |
---|
| 1940 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 1941 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 1942 | |
---|
| 1943 | # Check the compiler produces executables we can run. If not, either |
---|
| 1944 | # the compiler is broken, or we cross compile. |
---|
| 1945 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 1946 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 1947 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 1948 | # If not cross compiling, check that we can run a simple program. |
---|
| 1949 | if test "$cross_compiling" != yes; then |
---|
| 1950 | if { ac_try='./$ac_file' |
---|
| 1951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1952 | (eval $ac_try) 2>&5 |
---|
| 1953 | ac_status=$? |
---|
| 1954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1955 | (exit $ac_status); }; }; then |
---|
| 1956 | cross_compiling=no |
---|
| 1957 | else |
---|
| 1958 | if test "$cross_compiling" = maybe; then |
---|
| 1959 | cross_compiling=yes |
---|
| 1960 | else |
---|
| 1961 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 1962 | If you meant to cross compile, use \`--host'. |
---|
| 1963 | See \`config.log' for more details." >&5 |
---|
| 1964 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 1965 | If you meant to cross compile, use \`--host'. |
---|
| 1966 | See \`config.log' for more details." >&2;} |
---|
| 1967 | { (exit 1); exit 1; }; } |
---|
| 1968 | fi |
---|
| 1969 | fi |
---|
| 1970 | fi |
---|
| 1971 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1972 | echo "${ECHO_T}yes" >&6 |
---|
| 1973 | |
---|
| 1974 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 1975 | ac_clean_files=$ac_clean_files_save |
---|
| 1976 | # Check the compiler produces executables we can run. If not, either |
---|
| 1977 | # the compiler is broken, or we cross compile. |
---|
| 1978 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 1979 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 1980 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 1981 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 1982 | |
---|
| 1983 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 1984 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 1985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 1986 | (eval $ac_link) 2>&5 |
---|
| 1987 | ac_status=$? |
---|
| 1988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1989 | (exit $ac_status); }; then |
---|
| 1990 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 1991 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 1992 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 1993 | # `rm'. |
---|
| 1994 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 1995 | test -f "$ac_file" || continue |
---|
| 1996 | case $ac_file in |
---|
| 1997 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 1998 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1999 | export ac_cv_exeext |
---|
| 2000 | break;; |
---|
| 2001 | * ) break;; |
---|
| 2002 | esac |
---|
| 2003 | done |
---|
| 2004 | else |
---|
| 2005 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2006 | See \`config.log' for more details." >&5 |
---|
| 2007 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2008 | See \`config.log' for more details." >&2;} |
---|
| 2009 | { (exit 1); exit 1; }; } |
---|
| 2010 | fi |
---|
| 2011 | |
---|
| 2012 | rm -f conftest$ac_cv_exeext |
---|
| 2013 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2014 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2015 | |
---|
| 2016 | rm -f conftest.$ac_ext |
---|
| 2017 | EXEEXT=$ac_cv_exeext |
---|
| 2018 | ac_exeext=$EXEEXT |
---|
| 2019 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2020 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2021 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2023 | else |
---|
| 2024 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2025 | /* confdefs.h. */ |
---|
| 2026 | _ACEOF |
---|
| 2027 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2028 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2029 | /* end confdefs.h. */ |
---|
| 2030 | |
---|
| 2031 | int |
---|
| 2032 | main () |
---|
| 2033 | { |
---|
| 2034 | |
---|
| 2035 | ; |
---|
| 2036 | return 0; |
---|
| 2037 | } |
---|
| 2038 | _ACEOF |
---|
| 2039 | rm -f conftest.o conftest.obj |
---|
| 2040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2041 | (eval $ac_compile) 2>&5 |
---|
| 2042 | ac_status=$? |
---|
| 2043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2044 | (exit $ac_status); }; then |
---|
| 2045 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2046 | case $ac_file in |
---|
| 2047 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2048 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2049 | break;; |
---|
| 2050 | esac |
---|
| 2051 | done |
---|
| 2052 | else |
---|
| 2053 | echo "$as_me: failed program was:" >&5 |
---|
| 2054 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2055 | |
---|
| 2056 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2057 | See \`config.log' for more details." >&5 |
---|
| 2058 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2059 | See \`config.log' for more details." >&2;} |
---|
| 2060 | { (exit 1); exit 1; }; } |
---|
| 2061 | fi |
---|
| 2062 | |
---|
| 2063 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2064 | fi |
---|
| 2065 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2066 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2067 | OBJEXT=$ac_cv_objext |
---|
| 2068 | ac_objext=$OBJEXT |
---|
| 2069 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2070 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2071 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2073 | else |
---|
| 2074 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2075 | /* confdefs.h. */ |
---|
| 2076 | _ACEOF |
---|
| 2077 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2078 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2079 | /* end confdefs.h. */ |
---|
| 2080 | |
---|
| 2081 | int |
---|
| 2082 | main () |
---|
| 2083 | { |
---|
| 2084 | #ifndef __GNUC__ |
---|
| 2085 | choke me |
---|
| 2086 | #endif |
---|
| 2087 | |
---|
| 2088 | ; |
---|
| 2089 | return 0; |
---|
| 2090 | } |
---|
| 2091 | _ACEOF |
---|
| 2092 | rm -f conftest.$ac_objext |
---|
| 2093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2094 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2095 | ac_status=$? |
---|
| 2096 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2097 | rm -f conftest.er1 |
---|
| 2098 | cat conftest.err >&5 |
---|
| 2099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2100 | (exit $ac_status); } && |
---|
| 2101 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2102 | || test ! -s conftest.err' |
---|
| 2103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2104 | (eval $ac_try) 2>&5 |
---|
| 2105 | ac_status=$? |
---|
| 2106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2107 | (exit $ac_status); }; } && |
---|
| 2108 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2110 | (eval $ac_try) 2>&5 |
---|
| 2111 | ac_status=$? |
---|
| 2112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2113 | (exit $ac_status); }; }; then |
---|
| 2114 | ac_compiler_gnu=yes |
---|
| 2115 | else |
---|
| 2116 | echo "$as_me: failed program was:" >&5 |
---|
| 2117 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2118 | |
---|
| 2119 | ac_compiler_gnu=no |
---|
| 2120 | fi |
---|
| 2121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2122 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2123 | |
---|
| 2124 | fi |
---|
| 2125 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2126 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2127 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2128 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2129 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2130 | CXXFLAGS="-g" |
---|
| 2131 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2132 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2133 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2135 | else |
---|
| 2136 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2137 | /* confdefs.h. */ |
---|
| 2138 | _ACEOF |
---|
| 2139 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2140 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2141 | /* end confdefs.h. */ |
---|
| 2142 | |
---|
| 2143 | int |
---|
| 2144 | main () |
---|
| 2145 | { |
---|
| 2146 | |
---|
| 2147 | ; |
---|
| 2148 | return 0; |
---|
| 2149 | } |
---|
| 2150 | _ACEOF |
---|
| 2151 | rm -f conftest.$ac_objext |
---|
| 2152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2153 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2154 | ac_status=$? |
---|
| 2155 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2156 | rm -f conftest.er1 |
---|
| 2157 | cat conftest.err >&5 |
---|
| 2158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2159 | (exit $ac_status); } && |
---|
| 2160 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2161 | || test ! -s conftest.err' |
---|
| 2162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2163 | (eval $ac_try) 2>&5 |
---|
| 2164 | ac_status=$? |
---|
| 2165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2166 | (exit $ac_status); }; } && |
---|
| 2167 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2169 | (eval $ac_try) 2>&5 |
---|
| 2170 | ac_status=$? |
---|
| 2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2172 | (exit $ac_status); }; }; then |
---|
| 2173 | ac_cv_prog_cxx_g=yes |
---|
| 2174 | else |
---|
| 2175 | echo "$as_me: failed program was:" >&5 |
---|
| 2176 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2177 | |
---|
| 2178 | ac_cv_prog_cxx_g=no |
---|
| 2179 | fi |
---|
| 2180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2181 | fi |
---|
| 2182 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2183 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2184 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2185 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2186 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2187 | if test "$GXX" = yes; then |
---|
| 2188 | CXXFLAGS="-g -O2" |
---|
| 2189 | else |
---|
| 2190 | CXXFLAGS="-g" |
---|
| 2191 | fi |
---|
| 2192 | else |
---|
| 2193 | if test "$GXX" = yes; then |
---|
| 2194 | CXXFLAGS="-O2" |
---|
| 2195 | else |
---|
| 2196 | CXXFLAGS= |
---|
| 2197 | fi |
---|
| 2198 | fi |
---|
| 2199 | for ac_declaration in \ |
---|
| 2200 | '' \ |
---|
| 2201 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2202 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2203 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2204 | 'extern "C" void exit (int);' \ |
---|
| 2205 | 'void exit (int);' |
---|
| 2206 | do |
---|
| 2207 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2208 | /* confdefs.h. */ |
---|
| 2209 | _ACEOF |
---|
| 2210 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2211 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2212 | /* end confdefs.h. */ |
---|
| 2213 | $ac_declaration |
---|
| 2214 | #include <stdlib.h> |
---|
| 2215 | int |
---|
| 2216 | main () |
---|
| 2217 | { |
---|
| 2218 | exit (42); |
---|
| 2219 | ; |
---|
| 2220 | return 0; |
---|
| 2221 | } |
---|
| 2222 | _ACEOF |
---|
| 2223 | rm -f conftest.$ac_objext |
---|
| 2224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2225 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2226 | ac_status=$? |
---|
| 2227 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2228 | rm -f conftest.er1 |
---|
| 2229 | cat conftest.err >&5 |
---|
| 2230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2231 | (exit $ac_status); } && |
---|
| 2232 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2233 | || test ! -s conftest.err' |
---|
| 2234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2235 | (eval $ac_try) 2>&5 |
---|
| 2236 | ac_status=$? |
---|
| 2237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2238 | (exit $ac_status); }; } && |
---|
| 2239 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2241 | (eval $ac_try) 2>&5 |
---|
| 2242 | ac_status=$? |
---|
| 2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2244 | (exit $ac_status); }; }; then |
---|
| 2245 | : |
---|
| 2246 | else |
---|
| 2247 | echo "$as_me: failed program was:" >&5 |
---|
| 2248 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2249 | |
---|
| 2250 | continue |
---|
| 2251 | fi |
---|
| 2252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2253 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2254 | /* confdefs.h. */ |
---|
| 2255 | _ACEOF |
---|
| 2256 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2257 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2258 | /* end confdefs.h. */ |
---|
| 2259 | $ac_declaration |
---|
| 2260 | int |
---|
| 2261 | main () |
---|
| 2262 | { |
---|
| 2263 | exit (42); |
---|
| 2264 | ; |
---|
| 2265 | return 0; |
---|
| 2266 | } |
---|
| 2267 | _ACEOF |
---|
| 2268 | rm -f conftest.$ac_objext |
---|
| 2269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2270 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2271 | ac_status=$? |
---|
| 2272 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2273 | rm -f conftest.er1 |
---|
| 2274 | cat conftest.err >&5 |
---|
| 2275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2276 | (exit $ac_status); } && |
---|
| 2277 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2278 | || test ! -s conftest.err' |
---|
| 2279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2280 | (eval $ac_try) 2>&5 |
---|
| 2281 | ac_status=$? |
---|
| 2282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2283 | (exit $ac_status); }; } && |
---|
| 2284 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2286 | (eval $ac_try) 2>&5 |
---|
| 2287 | ac_status=$? |
---|
| 2288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2289 | (exit $ac_status); }; }; then |
---|
| 2290 | break |
---|
| 2291 | else |
---|
| 2292 | echo "$as_me: failed program was:" >&5 |
---|
| 2293 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2294 | |
---|
| 2295 | fi |
---|
| 2296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2297 | done |
---|
| 2298 | rm -f conftest* |
---|
| 2299 | if test -n "$ac_declaration"; then |
---|
| 2300 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2301 | echo $ac_declaration >>confdefs.h |
---|
| 2302 | echo '#endif' >>confdefs.h |
---|
| 2303 | fi |
---|
| 2304 | |
---|
| 2305 | ac_ext=c |
---|
| 2306 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2310 | DEPDIR="${am__leading_dot}deps" |
---|
| 2311 | |
---|
| 2312 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2313 | |
---|
| 2314 | |
---|
| 2315 | am_make=${MAKE-make} |
---|
| 2316 | cat > confinc << 'END' |
---|
| 2317 | am__doit: |
---|
| 2318 | @echo done |
---|
| 2319 | .PHONY: am__doit |
---|
| 2320 | END |
---|
| 2321 | # If we don't find an include directive, just comment out the code. |
---|
| 2322 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2323 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2324 | am__include="#" |
---|
| 2325 | am__quote= |
---|
| 2326 | _am_result=none |
---|
| 2327 | # First try GNU make style include. |
---|
| 2328 | echo "include confinc" > confmf |
---|
| 2329 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2330 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2331 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2332 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2333 | # case it prints its new name instead of `make'. |
---|
| 2334 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2335 | am__include=include |
---|
| 2336 | am__quote= |
---|
| 2337 | _am_result=GNU |
---|
| 2338 | fi |
---|
| 2339 | # Now try BSD make style include. |
---|
| 2340 | if test "$am__include" = "#"; then |
---|
| 2341 | echo '.include "confinc"' > confmf |
---|
| 2342 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2343 | am__include=.include |
---|
| 2344 | am__quote="\"" |
---|
| 2345 | _am_result=BSD |
---|
| 2346 | fi |
---|
| 2347 | fi |
---|
| 2348 | |
---|
| 2349 | |
---|
| 2350 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2351 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2352 | rm -f confinc confmf |
---|
| 2353 | |
---|
| 2354 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2355 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2356 | enableval="$enable_dependency_tracking" |
---|
| 2357 | |
---|
| 2358 | fi; |
---|
| 2359 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2360 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2361 | AMDEPBACKSLASH='\' |
---|
| 2362 | fi |
---|
| 2363 | |
---|
| 2364 | |
---|
| 2365 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2366 | AMDEP_TRUE= |
---|
| 2367 | AMDEP_FALSE='#' |
---|
| 2368 | else |
---|
| 2369 | AMDEP_TRUE='#' |
---|
| 2370 | AMDEP_FALSE= |
---|
| 2371 | fi |
---|
| 2372 | |
---|
| 2373 | |
---|
| 2374 | |
---|
| 2375 | |
---|
| 2376 | depcc="$CXX" am_compiler_list= |
---|
| 2377 | |
---|
| 2378 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2379 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2380 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2382 | else |
---|
| 2383 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2384 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2385 | # making bogus files that we don't know about and never remove. For |
---|
| 2386 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2387 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2388 | # in D'. |
---|
| 2389 | mkdir conftest.dir |
---|
| 2390 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2391 | # using a relative directory. |
---|
| 2392 | cp "$am_depcomp" conftest.dir |
---|
| 2393 | cd conftest.dir |
---|
| 2394 | # We will build objects and dependencies in a subdirectory because |
---|
| 2395 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2396 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2397 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2398 | # the current directory while Tru64 will put them in the object |
---|
| 2399 | # directory. |
---|
| 2400 | mkdir sub |
---|
| 2401 | |
---|
| 2402 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2403 | if test "$am_compiler_list" = ""; then |
---|
| 2404 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2405 | fi |
---|
| 2406 | for depmode in $am_compiler_list; do |
---|
| 2407 | # Setup a source with many dependencies, because some compilers |
---|
| 2408 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2409 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2410 | # |
---|
| 2411 | # We need to recreate these files for each test, as the compiler may |
---|
| 2412 | # overwrite some of them when testing with obscure command lines. |
---|
| 2413 | # This happens at least with the AIX C compiler. |
---|
| 2414 | : > sub/conftest.c |
---|
| 2415 | for i in 1 2 3 4 5 6; do |
---|
| 2416 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
| 2417 | : > sub/conftst$i.h |
---|
| 2418 | done |
---|
| 2419 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2420 | |
---|
| 2421 | case $depmode in |
---|
| 2422 | nosideeffect) |
---|
| 2423 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2424 | # only be used when explicitly requested |
---|
| 2425 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2426 | continue |
---|
| 2427 | else |
---|
| 2428 | break |
---|
| 2429 | fi |
---|
| 2430 | ;; |
---|
| 2431 | none) break ;; |
---|
| 2432 | esac |
---|
| 2433 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2434 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2435 | # handle `-M -o', and we need to detect this. |
---|
| 2436 | if depmode=$depmode \ |
---|
| 2437 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2438 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2439 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2440 | >/dev/null 2>conftest.err && |
---|
| 2441 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2442 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2443 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2444 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
| 2445 | # (even with -Werror). So we grep stderr for any message |
---|
| 2446 | # that says an option was ignored. |
---|
| 2447 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
| 2448 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2449 | break |
---|
| 2450 | fi |
---|
| 2451 | fi |
---|
| 2452 | done |
---|
| 2453 | |
---|
| 2454 | cd .. |
---|
| 2455 | rm -rf conftest.dir |
---|
| 2456 | else |
---|
| 2457 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2458 | fi |
---|
| 2459 | |
---|
| 2460 | fi |
---|
| 2461 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2462 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2463 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2464 | |
---|
| 2465 | |
---|
| 2466 | |
---|
| 2467 | if |
---|
| 2468 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2469 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2470 | am__fastdepCXX_TRUE= |
---|
| 2471 | am__fastdepCXX_FALSE='#' |
---|
| 2472 | else |
---|
| 2473 | am__fastdepCXX_TRUE='#' |
---|
| 2474 | am__fastdepCXX_FALSE= |
---|
| 2475 | fi |
---|
| 2476 | |
---|
| 2477 | |
---|
| 2478 | ac_ext=c |
---|
| 2479 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2483 | if test -n "$ac_tool_prefix"; then |
---|
| 2484 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2485 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2488 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2490 | else |
---|
| 2491 | if test -n "$CC"; then |
---|
| 2492 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2493 | else |
---|
| 2494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2495 | for as_dir in $PATH |
---|
| 2496 | do |
---|
| 2497 | IFS=$as_save_IFS |
---|
| 2498 | test -z "$as_dir" && as_dir=. |
---|
| 2499 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2501 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2503 | break 2 |
---|
| 2504 | fi |
---|
| 2505 | done |
---|
| 2506 | done |
---|
| 2507 | |
---|
| 2508 | fi |
---|
| 2509 | fi |
---|
| 2510 | CC=$ac_cv_prog_CC |
---|
| 2511 | if test -n "$CC"; then |
---|
| 2512 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2513 | echo "${ECHO_T}$CC" >&6 |
---|
| 2514 | else |
---|
| 2515 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2516 | echo "${ECHO_T}no" >&6 |
---|
| 2517 | fi |
---|
| 2518 | |
---|
| 2519 | fi |
---|
| 2520 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2521 | ac_ct_CC=$CC |
---|
| 2522 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2523 | set dummy gcc; ac_word=$2 |
---|
| 2524 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2526 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2528 | else |
---|
| 2529 | if test -n "$ac_ct_CC"; then |
---|
| 2530 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2531 | else |
---|
| 2532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2533 | for as_dir in $PATH |
---|
| 2534 | do |
---|
| 2535 | IFS=$as_save_IFS |
---|
| 2536 | test -z "$as_dir" && as_dir=. |
---|
| 2537 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2539 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2541 | break 2 |
---|
| 2542 | fi |
---|
| 2543 | done |
---|
| 2544 | done |
---|
| 2545 | |
---|
| 2546 | fi |
---|
| 2547 | fi |
---|
| 2548 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2549 | if test -n "$ac_ct_CC"; then |
---|
| 2550 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2551 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2552 | else |
---|
| 2553 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2554 | echo "${ECHO_T}no" >&6 |
---|
| 2555 | fi |
---|
| 2556 | |
---|
| 2557 | CC=$ac_ct_CC |
---|
| 2558 | else |
---|
| 2559 | CC="$ac_cv_prog_CC" |
---|
| 2560 | fi |
---|
| 2561 | |
---|
| 2562 | if test -z "$CC"; then |
---|
| 2563 | if test -n "$ac_tool_prefix"; then |
---|
| 2564 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2565 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2566 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2568 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2570 | else |
---|
| 2571 | if test -n "$CC"; then |
---|
| 2572 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2573 | else |
---|
| 2574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2575 | for as_dir in $PATH |
---|
| 2576 | do |
---|
| 2577 | IFS=$as_save_IFS |
---|
| 2578 | test -z "$as_dir" && as_dir=. |
---|
| 2579 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2581 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2583 | break 2 |
---|
| 2584 | fi |
---|
| 2585 | done |
---|
| 2586 | done |
---|
| 2587 | |
---|
| 2588 | fi |
---|
| 2589 | fi |
---|
| 2590 | CC=$ac_cv_prog_CC |
---|
| 2591 | if test -n "$CC"; then |
---|
| 2592 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2593 | echo "${ECHO_T}$CC" >&6 |
---|
| 2594 | else |
---|
| 2595 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2596 | echo "${ECHO_T}no" >&6 |
---|
| 2597 | fi |
---|
| 2598 | |
---|
| 2599 | fi |
---|
| 2600 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2601 | ac_ct_CC=$CC |
---|
| 2602 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2603 | set dummy cc; ac_word=$2 |
---|
| 2604 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2606 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2608 | else |
---|
| 2609 | if test -n "$ac_ct_CC"; then |
---|
| 2610 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2611 | else |
---|
| 2612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2613 | for as_dir in $PATH |
---|
| 2614 | do |
---|
| 2615 | IFS=$as_save_IFS |
---|
| 2616 | test -z "$as_dir" && as_dir=. |
---|
| 2617 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2618 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2619 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2621 | break 2 |
---|
| 2622 | fi |
---|
| 2623 | done |
---|
| 2624 | done |
---|
| 2625 | |
---|
| 2626 | fi |
---|
| 2627 | fi |
---|
| 2628 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2629 | if test -n "$ac_ct_CC"; then |
---|
| 2630 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2631 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2632 | else |
---|
| 2633 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2634 | echo "${ECHO_T}no" >&6 |
---|
| 2635 | fi |
---|
| 2636 | |
---|
| 2637 | CC=$ac_ct_CC |
---|
| 2638 | else |
---|
| 2639 | CC="$ac_cv_prog_CC" |
---|
| 2640 | fi |
---|
| 2641 | |
---|
| 2642 | fi |
---|
| 2643 | if test -z "$CC"; then |
---|
| 2644 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2645 | set dummy cc; ac_word=$2 |
---|
| 2646 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2648 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2650 | else |
---|
| 2651 | if test -n "$CC"; then |
---|
| 2652 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2653 | else |
---|
| 2654 | ac_prog_rejected=no |
---|
| 2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2656 | for as_dir in $PATH |
---|
| 2657 | do |
---|
| 2658 | IFS=$as_save_IFS |
---|
| 2659 | test -z "$as_dir" && as_dir=. |
---|
| 2660 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2662 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2663 | ac_prog_rejected=yes |
---|
| 2664 | continue |
---|
| 2665 | fi |
---|
| 2666 | ac_cv_prog_CC="cc" |
---|
| 2667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2668 | break 2 |
---|
| 2669 | fi |
---|
| 2670 | done |
---|
| 2671 | done |
---|
| 2672 | |
---|
| 2673 | if test $ac_prog_rejected = yes; then |
---|
| 2674 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2675 | set dummy $ac_cv_prog_CC |
---|
| 2676 | shift |
---|
| 2677 | if test $# != 0; then |
---|
| 2678 | # We chose a different compiler from the bogus one. |
---|
| 2679 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2680 | # first if we set CC to just the basename; use the full file name. |
---|
| 2681 | shift |
---|
| 2682 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2683 | fi |
---|
| 2684 | fi |
---|
| 2685 | fi |
---|
| 2686 | fi |
---|
| 2687 | CC=$ac_cv_prog_CC |
---|
| 2688 | if test -n "$CC"; then |
---|
| 2689 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2690 | echo "${ECHO_T}$CC" >&6 |
---|
| 2691 | else |
---|
| 2692 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2693 | echo "${ECHO_T}no" >&6 |
---|
| 2694 | fi |
---|
| 2695 | |
---|
| 2696 | fi |
---|
| 2697 | if test -z "$CC"; then |
---|
| 2698 | if test -n "$ac_tool_prefix"; then |
---|
| 2699 | for ac_prog in cl |
---|
| 2700 | do |
---|
| 2701 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2702 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2705 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2707 | else |
---|
| 2708 | if test -n "$CC"; then |
---|
| 2709 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2710 | else |
---|
| 2711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2712 | for as_dir in $PATH |
---|
| 2713 | do |
---|
| 2714 | IFS=$as_save_IFS |
---|
| 2715 | test -z "$as_dir" && as_dir=. |
---|
| 2716 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2717 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2718 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2720 | break 2 |
---|
| 2721 | fi |
---|
| 2722 | done |
---|
| 2723 | done |
---|
| 2724 | |
---|
| 2725 | fi |
---|
| 2726 | fi |
---|
| 2727 | CC=$ac_cv_prog_CC |
---|
| 2728 | if test -n "$CC"; then |
---|
| 2729 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2730 | echo "${ECHO_T}$CC" >&6 |
---|
| 2731 | else |
---|
| 2732 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2733 | echo "${ECHO_T}no" >&6 |
---|
| 2734 | fi |
---|
| 2735 | |
---|
| 2736 | test -n "$CC" && break |
---|
| 2737 | done |
---|
| 2738 | fi |
---|
| 2739 | if test -z "$CC"; then |
---|
| 2740 | ac_ct_CC=$CC |
---|
| 2741 | for ac_prog in cl |
---|
| 2742 | do |
---|
| 2743 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2744 | set dummy $ac_prog; ac_word=$2 |
---|
| 2745 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2747 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2749 | else |
---|
| 2750 | if test -n "$ac_ct_CC"; then |
---|
| 2751 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2752 | else |
---|
| 2753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2754 | for as_dir in $PATH |
---|
| 2755 | do |
---|
| 2756 | IFS=$as_save_IFS |
---|
| 2757 | test -z "$as_dir" && as_dir=. |
---|
| 2758 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2759 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2760 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2761 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2762 | break 2 |
---|
| 2763 | fi |
---|
| 2764 | done |
---|
| 2765 | done |
---|
| 2766 | |
---|
| 2767 | fi |
---|
| 2768 | fi |
---|
| 2769 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2770 | if test -n "$ac_ct_CC"; then |
---|
| 2771 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2772 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2773 | else |
---|
| 2774 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2775 | echo "${ECHO_T}no" >&6 |
---|
| 2776 | fi |
---|
| 2777 | |
---|
| 2778 | test -n "$ac_ct_CC" && break |
---|
| 2779 | done |
---|
| 2780 | |
---|
| 2781 | CC=$ac_ct_CC |
---|
| 2782 | fi |
---|
| 2783 | |
---|
| 2784 | fi |
---|
| 2785 | |
---|
| 2786 | |
---|
| 2787 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2788 | See \`config.log' for more details." >&5 |
---|
| 2789 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2790 | See \`config.log' for more details." >&2;} |
---|
| 2791 | { (exit 1); exit 1; }; } |
---|
| 2792 | |
---|
| 2793 | # Provide some information about the compiler. |
---|
| 2794 | echo "$as_me:$LINENO:" \ |
---|
| 2795 | "checking for C compiler version" >&5 |
---|
| 2796 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2797 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2798 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2799 | ac_status=$? |
---|
| 2800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2801 | (exit $ac_status); } |
---|
| 2802 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2803 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2804 | ac_status=$? |
---|
| 2805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2806 | (exit $ac_status); } |
---|
| 2807 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2808 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2809 | ac_status=$? |
---|
| 2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2811 | (exit $ac_status); } |
---|
| 2812 | |
---|
| 2813 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2814 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2815 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2817 | else |
---|
| 2818 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2819 | /* confdefs.h. */ |
---|
| 2820 | _ACEOF |
---|
| 2821 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2822 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2823 | /* end confdefs.h. */ |
---|
| 2824 | |
---|
| 2825 | int |
---|
| 2826 | main () |
---|
| 2827 | { |
---|
| 2828 | #ifndef __GNUC__ |
---|
| 2829 | choke me |
---|
| 2830 | #endif |
---|
| 2831 | |
---|
| 2832 | ; |
---|
| 2833 | return 0; |
---|
| 2834 | } |
---|
| 2835 | _ACEOF |
---|
| 2836 | rm -f conftest.$ac_objext |
---|
| 2837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2838 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2839 | ac_status=$? |
---|
| 2840 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2841 | rm -f conftest.er1 |
---|
| 2842 | cat conftest.err >&5 |
---|
| 2843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2844 | (exit $ac_status); } && |
---|
| 2845 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2846 | || test ! -s conftest.err' |
---|
| 2847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2848 | (eval $ac_try) 2>&5 |
---|
| 2849 | ac_status=$? |
---|
| 2850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2851 | (exit $ac_status); }; } && |
---|
| 2852 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2854 | (eval $ac_try) 2>&5 |
---|
| 2855 | ac_status=$? |
---|
| 2856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2857 | (exit $ac_status); }; }; then |
---|
| 2858 | ac_compiler_gnu=yes |
---|
| 2859 | else |
---|
| 2860 | echo "$as_me: failed program was:" >&5 |
---|
| 2861 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2862 | |
---|
| 2863 | ac_compiler_gnu=no |
---|
| 2864 | fi |
---|
| 2865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2866 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2867 | |
---|
| 2868 | fi |
---|
| 2869 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2870 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2871 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2872 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2873 | ac_save_CFLAGS=$CFLAGS |
---|
| 2874 | CFLAGS="-g" |
---|
| 2875 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2876 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2877 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2879 | else |
---|
| 2880 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2881 | /* confdefs.h. */ |
---|
| 2882 | _ACEOF |
---|
| 2883 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2884 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2885 | /* end confdefs.h. */ |
---|
| 2886 | |
---|
| 2887 | int |
---|
| 2888 | main () |
---|
| 2889 | { |
---|
| 2890 | |
---|
| 2891 | ; |
---|
| 2892 | return 0; |
---|
| 2893 | } |
---|
| 2894 | _ACEOF |
---|
| 2895 | rm -f conftest.$ac_objext |
---|
| 2896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2897 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2898 | ac_status=$? |
---|
| 2899 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2900 | rm -f conftest.er1 |
---|
| 2901 | cat conftest.err >&5 |
---|
| 2902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2903 | (exit $ac_status); } && |
---|
| 2904 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2905 | || test ! -s conftest.err' |
---|
| 2906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2907 | (eval $ac_try) 2>&5 |
---|
| 2908 | ac_status=$? |
---|
| 2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2910 | (exit $ac_status); }; } && |
---|
| 2911 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2913 | (eval $ac_try) 2>&5 |
---|
| 2914 | ac_status=$? |
---|
| 2915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2916 | (exit $ac_status); }; }; then |
---|
| 2917 | ac_cv_prog_cc_g=yes |
---|
| 2918 | else |
---|
| 2919 | echo "$as_me: failed program was:" >&5 |
---|
| 2920 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2921 | |
---|
| 2922 | ac_cv_prog_cc_g=no |
---|
| 2923 | fi |
---|
| 2924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2925 | fi |
---|
| 2926 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 2927 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 2928 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2929 | CFLAGS=$ac_save_CFLAGS |
---|
| 2930 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2931 | if test "$GCC" = yes; then |
---|
| 2932 | CFLAGS="-g -O2" |
---|
| 2933 | else |
---|
| 2934 | CFLAGS="-g" |
---|
| 2935 | fi |
---|
| 2936 | else |
---|
| 2937 | if test "$GCC" = yes; then |
---|
| 2938 | CFLAGS="-O2" |
---|
| 2939 | else |
---|
| 2940 | CFLAGS= |
---|
| 2941 | fi |
---|
| 2942 | fi |
---|
| 2943 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 2944 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 2945 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 2946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2947 | else |
---|
| 2948 | ac_cv_prog_cc_stdc=no |
---|
| 2949 | ac_save_CC=$CC |
---|
| 2950 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2951 | /* confdefs.h. */ |
---|
| 2952 | _ACEOF |
---|
| 2953 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2954 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2955 | /* end confdefs.h. */ |
---|
| 2956 | #include <stdarg.h> |
---|
| 2957 | #include <stdio.h> |
---|
| 2958 | #include <sys/types.h> |
---|
| 2959 | #include <sys/stat.h> |
---|
| 2960 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 2961 | struct buf { int x; }; |
---|
| 2962 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 2963 | static char *e (p, i) |
---|
| 2964 | char **p; |
---|
| 2965 | int i; |
---|
| 2966 | { |
---|
| 2967 | return p[i]; |
---|
| 2968 | } |
---|
| 2969 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 2970 | { |
---|
| 2971 | char *s; |
---|
| 2972 | va_list v; |
---|
| 2973 | va_start (v,p); |
---|
| 2974 | s = g (p, va_arg (v,int)); |
---|
| 2975 | va_end (v); |
---|
| 2976 | return s; |
---|
| 2977 | } |
---|
| 2978 | |
---|
| 2979 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 2980 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 2981 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 2982 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 2983 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 2984 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 2985 | that's true only with -std1. */ |
---|
| 2986 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 2987 | |
---|
| 2988 | int test (int i, double x); |
---|
| 2989 | struct s1 {int (*f) (int a);}; |
---|
| 2990 | struct s2 {int (*f) (double a);}; |
---|
| 2991 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 2992 | int argc; |
---|
| 2993 | char **argv; |
---|
| 2994 | int |
---|
| 2995 | main () |
---|
| 2996 | { |
---|
| 2997 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 2998 | ; |
---|
| 2999 | return 0; |
---|
| 3000 | } |
---|
| 3001 | _ACEOF |
---|
| 3002 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3003 | # breaks some systems' header files. |
---|
| 3004 | # AIX -qlanglvl=ansi |
---|
| 3005 | # Ultrix and OSF/1 -std1 |
---|
| 3006 | # HP-UX 10.20 and later -Ae |
---|
| 3007 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3008 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3009 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3010 | do |
---|
| 3011 | CC="$ac_save_CC $ac_arg" |
---|
| 3012 | rm -f conftest.$ac_objext |
---|
| 3013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3014 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3015 | ac_status=$? |
---|
| 3016 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3017 | rm -f conftest.er1 |
---|
| 3018 | cat conftest.err >&5 |
---|
| 3019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3020 | (exit $ac_status); } && |
---|
| 3021 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3022 | || test ! -s conftest.err' |
---|
| 3023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3024 | (eval $ac_try) 2>&5 |
---|
| 3025 | ac_status=$? |
---|
| 3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3027 | (exit $ac_status); }; } && |
---|
| 3028 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3030 | (eval $ac_try) 2>&5 |
---|
| 3031 | ac_status=$? |
---|
| 3032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3033 | (exit $ac_status); }; }; then |
---|
| 3034 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3035 | break |
---|
| 3036 | else |
---|
| 3037 | echo "$as_me: failed program was:" >&5 |
---|
| 3038 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3039 | |
---|
| 3040 | fi |
---|
| 3041 | rm -f conftest.err conftest.$ac_objext |
---|
| 3042 | done |
---|
| 3043 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3044 | CC=$ac_save_CC |
---|
| 3045 | |
---|
| 3046 | fi |
---|
| 3047 | |
---|
| 3048 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3049 | x|xno) |
---|
| 3050 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3051 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3052 | *) |
---|
| 3053 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3054 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3055 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3056 | esac |
---|
| 3057 | |
---|
| 3058 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3059 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3060 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3061 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3062 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3063 | #ifndef __cplusplus |
---|
| 3064 | choke me |
---|
| 3065 | #endif |
---|
| 3066 | _ACEOF |
---|
| 3067 | rm -f conftest.$ac_objext |
---|
| 3068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3069 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3070 | ac_status=$? |
---|
| 3071 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3072 | rm -f conftest.er1 |
---|
| 3073 | cat conftest.err >&5 |
---|
| 3074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3075 | (exit $ac_status); } && |
---|
| 3076 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3077 | || test ! -s conftest.err' |
---|
| 3078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3079 | (eval $ac_try) 2>&5 |
---|
| 3080 | ac_status=$? |
---|
| 3081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3082 | (exit $ac_status); }; } && |
---|
| 3083 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3085 | (eval $ac_try) 2>&5 |
---|
| 3086 | ac_status=$? |
---|
| 3087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3088 | (exit $ac_status); }; }; then |
---|
| 3089 | for ac_declaration in \ |
---|
| 3090 | '' \ |
---|
| 3091 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3092 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3093 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3094 | 'extern "C" void exit (int);' \ |
---|
| 3095 | 'void exit (int);' |
---|
| 3096 | do |
---|
| 3097 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3098 | /* confdefs.h. */ |
---|
| 3099 | _ACEOF |
---|
| 3100 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3101 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3102 | /* end confdefs.h. */ |
---|
| 3103 | $ac_declaration |
---|
| 3104 | #include <stdlib.h> |
---|
| 3105 | int |
---|
| 3106 | main () |
---|
| 3107 | { |
---|
| 3108 | exit (42); |
---|
| 3109 | ; |
---|
| 3110 | return 0; |
---|
| 3111 | } |
---|
| 3112 | _ACEOF |
---|
| 3113 | rm -f conftest.$ac_objext |
---|
| 3114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3115 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3116 | ac_status=$? |
---|
| 3117 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3118 | rm -f conftest.er1 |
---|
| 3119 | cat conftest.err >&5 |
---|
| 3120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3121 | (exit $ac_status); } && |
---|
| 3122 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3123 | || test ! -s conftest.err' |
---|
| 3124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3125 | (eval $ac_try) 2>&5 |
---|
| 3126 | ac_status=$? |
---|
| 3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3128 | (exit $ac_status); }; } && |
---|
| 3129 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3131 | (eval $ac_try) 2>&5 |
---|
| 3132 | ac_status=$? |
---|
| 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3134 | (exit $ac_status); }; }; then |
---|
| 3135 | : |
---|
| 3136 | else |
---|
| 3137 | echo "$as_me: failed program was:" >&5 |
---|
| 3138 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3139 | |
---|
| 3140 | continue |
---|
| 3141 | fi |
---|
| 3142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3143 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3144 | /* confdefs.h. */ |
---|
| 3145 | _ACEOF |
---|
| 3146 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3147 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3148 | /* end confdefs.h. */ |
---|
| 3149 | $ac_declaration |
---|
| 3150 | int |
---|
| 3151 | main () |
---|
| 3152 | { |
---|
| 3153 | exit (42); |
---|
| 3154 | ; |
---|
| 3155 | return 0; |
---|
| 3156 | } |
---|
| 3157 | _ACEOF |
---|
| 3158 | rm -f conftest.$ac_objext |
---|
| 3159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3160 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3161 | ac_status=$? |
---|
| 3162 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3163 | rm -f conftest.er1 |
---|
| 3164 | cat conftest.err >&5 |
---|
| 3165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3166 | (exit $ac_status); } && |
---|
| 3167 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3168 | || test ! -s conftest.err' |
---|
| 3169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3170 | (eval $ac_try) 2>&5 |
---|
| 3171 | ac_status=$? |
---|
| 3172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3173 | (exit $ac_status); }; } && |
---|
| 3174 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3176 | (eval $ac_try) 2>&5 |
---|
| 3177 | ac_status=$? |
---|
| 3178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3179 | (exit $ac_status); }; }; then |
---|
| 3180 | break |
---|
| 3181 | else |
---|
| 3182 | echo "$as_me: failed program was:" >&5 |
---|
| 3183 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3184 | |
---|
| 3185 | fi |
---|
| 3186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3187 | done |
---|
| 3188 | rm -f conftest* |
---|
| 3189 | if test -n "$ac_declaration"; then |
---|
| 3190 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3191 | echo $ac_declaration >>confdefs.h |
---|
| 3192 | echo '#endif' >>confdefs.h |
---|
| 3193 | fi |
---|
| 3194 | |
---|
| 3195 | else |
---|
| 3196 | echo "$as_me: failed program was:" >&5 |
---|
| 3197 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3198 | |
---|
| 3199 | fi |
---|
| 3200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3201 | ac_ext=c |
---|
| 3202 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3203 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3204 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3205 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3206 | |
---|
| 3207 | depcc="$CC" am_compiler_list= |
---|
| 3208 | |
---|
| 3209 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3210 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3211 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3213 | else |
---|
| 3214 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3215 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3216 | # making bogus files that we don't know about and never remove. For |
---|
| 3217 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3218 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3219 | # in D'. |
---|
| 3220 | mkdir conftest.dir |
---|
| 3221 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3222 | # using a relative directory. |
---|
| 3223 | cp "$am_depcomp" conftest.dir |
---|
| 3224 | cd conftest.dir |
---|
| 3225 | # We will build objects and dependencies in a subdirectory because |
---|
| 3226 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3227 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3228 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3229 | # the current directory while Tru64 will put them in the object |
---|
| 3230 | # directory. |
---|
| 3231 | mkdir sub |
---|
| 3232 | |
---|
| 3233 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3234 | if test "$am_compiler_list" = ""; then |
---|
| 3235 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3236 | fi |
---|
| 3237 | for depmode in $am_compiler_list; do |
---|
| 3238 | # Setup a source with many dependencies, because some compilers |
---|
| 3239 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3240 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3241 | # |
---|
| 3242 | # We need to recreate these files for each test, as the compiler may |
---|
| 3243 | # overwrite some of them when testing with obscure command lines. |
---|
| 3244 | # This happens at least with the AIX C compiler. |
---|
| 3245 | : > sub/conftest.c |
---|
| 3246 | for i in 1 2 3 4 5 6; do |
---|
| 3247 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
| 3248 | : > sub/conftst$i.h |
---|
| 3249 | done |
---|
| 3250 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3251 | |
---|
| 3252 | case $depmode in |
---|
| 3253 | nosideeffect) |
---|
| 3254 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3255 | # only be used when explicitly requested |
---|
| 3256 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3257 | continue |
---|
| 3258 | else |
---|
| 3259 | break |
---|
| 3260 | fi |
---|
| 3261 | ;; |
---|
| 3262 | none) break ;; |
---|
| 3263 | esac |
---|
| 3264 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3265 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3266 | # handle `-M -o', and we need to detect this. |
---|
| 3267 | if depmode=$depmode \ |
---|
| 3268 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3269 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3270 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3271 | >/dev/null 2>conftest.err && |
---|
| 3272 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3273 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3274 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3275 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
| 3276 | # (even with -Werror). So we grep stderr for any message |
---|
| 3277 | # that says an option was ignored. |
---|
| 3278 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
| 3279 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3280 | break |
---|
| 3281 | fi |
---|
| 3282 | fi |
---|
| 3283 | done |
---|
| 3284 | |
---|
| 3285 | cd .. |
---|
| 3286 | rm -rf conftest.dir |
---|
| 3287 | else |
---|
| 3288 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3289 | fi |
---|
| 3290 | |
---|
| 3291 | fi |
---|
| 3292 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3293 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3294 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3295 | |
---|
| 3296 | |
---|
| 3297 | |
---|
| 3298 | if |
---|
| 3299 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3300 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3301 | am__fastdepCC_TRUE= |
---|
| 3302 | am__fastdepCC_FALSE='#' |
---|
| 3303 | else |
---|
| 3304 | am__fastdepCC_TRUE='#' |
---|
| 3305 | am__fastdepCC_FALSE= |
---|
| 3306 | fi |
---|
| 3307 | |
---|
| 3308 | |
---|
| 3309 | |
---|
| 3310 | |
---|
[2701] | 3311 | # checking gl header (has to be here because of a Linux error) |
---|
[1956] | 3312 | |
---|
[1971] | 3313 | ac_ext=c |
---|
| 3314 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3318 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3319 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3320 | # On Suns, sometimes $CPP names a directory. |
---|
| 3321 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3322 | CPP= |
---|
| 3323 | fi |
---|
| 3324 | if test -z "$CPP"; then |
---|
| 3325 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3327 | else |
---|
[1971] | 3328 | # Double quotes because CPP needs to be expanded |
---|
| 3329 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3330 | do |
---|
| 3331 | ac_preproc_ok=false |
---|
| 3332 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3333 | do |
---|
| 3334 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3335 | # with a fresh cross-compiler works. |
---|
| 3336 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3337 | # <limits.h> exists even on freestanding compilers. |
---|
| 3338 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3339 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3340 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3341 | /* confdefs.h. */ |
---|
| 3342 | _ACEOF |
---|
| 3343 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3344 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3345 | /* end confdefs.h. */ |
---|
| 3346 | #ifdef __STDC__ |
---|
| 3347 | # include <limits.h> |
---|
| 3348 | #else |
---|
| 3349 | # include <assert.h> |
---|
| 3350 | #endif |
---|
| 3351 | Syntax error |
---|
| 3352 | _ACEOF |
---|
| 3353 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3354 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3355 | ac_status=$? |
---|
| 3356 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3357 | rm -f conftest.er1 |
---|
| 3358 | cat conftest.err >&5 |
---|
| 3359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3360 | (exit $ac_status); } >/dev/null; then |
---|
| 3361 | if test -s conftest.err; then |
---|
| 3362 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3363 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3364 | else |
---|
| 3365 | ac_cpp_err= |
---|
| 3366 | fi |
---|
| 3367 | else |
---|
| 3368 | ac_cpp_err=yes |
---|
| 3369 | fi |
---|
| 3370 | if test -z "$ac_cpp_err"; then |
---|
| 3371 | : |
---|
| 3372 | else |
---|
| 3373 | echo "$as_me: failed program was:" >&5 |
---|
| 3374 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3375 | |
---|
| 3376 | # Broken: fails on valid input. |
---|
| 3377 | continue |
---|
| 3378 | fi |
---|
| 3379 | rm -f conftest.err conftest.$ac_ext |
---|
| 3380 | |
---|
| 3381 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3382 | # can be detected and how. |
---|
| 3383 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3384 | /* confdefs.h. */ |
---|
| 3385 | _ACEOF |
---|
| 3386 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3387 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3388 | /* end confdefs.h. */ |
---|
| 3389 | #include <ac_nonexistent.h> |
---|
| 3390 | _ACEOF |
---|
| 3391 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3392 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3393 | ac_status=$? |
---|
| 3394 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3395 | rm -f conftest.er1 |
---|
| 3396 | cat conftest.err >&5 |
---|
| 3397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3398 | (exit $ac_status); } >/dev/null; then |
---|
| 3399 | if test -s conftest.err; then |
---|
| 3400 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3401 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3402 | else |
---|
| 3403 | ac_cpp_err= |
---|
| 3404 | fi |
---|
| 3405 | else |
---|
| 3406 | ac_cpp_err=yes |
---|
| 3407 | fi |
---|
| 3408 | if test -z "$ac_cpp_err"; then |
---|
| 3409 | # Broken: success on invalid input. |
---|
| 3410 | continue |
---|
| 3411 | else |
---|
| 3412 | echo "$as_me: failed program was:" >&5 |
---|
| 3413 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3414 | |
---|
| 3415 | # Passes both tests. |
---|
| 3416 | ac_preproc_ok=: |
---|
| 3417 | break |
---|
| 3418 | fi |
---|
| 3419 | rm -f conftest.err conftest.$ac_ext |
---|
| 3420 | |
---|
| 3421 | done |
---|
| 3422 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3423 | rm -f conftest.err conftest.$ac_ext |
---|
| 3424 | if $ac_preproc_ok; then |
---|
| 3425 | break |
---|
| 3426 | fi |
---|
| 3427 | |
---|
| 3428 | done |
---|
| 3429 | ac_cv_prog_CPP=$CPP |
---|
| 3430 | |
---|
| 3431 | fi |
---|
| 3432 | CPP=$ac_cv_prog_CPP |
---|
| 3433 | else |
---|
| 3434 | ac_cv_prog_CPP=$CPP |
---|
| 3435 | fi |
---|
| 3436 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3437 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3438 | ac_preproc_ok=false |
---|
| 3439 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3440 | do |
---|
| 3441 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3442 | # with a fresh cross-compiler works. |
---|
| 3443 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3444 | # <limits.h> exists even on freestanding compilers. |
---|
| 3445 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3446 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3447 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3448 | /* confdefs.h. */ |
---|
| 3449 | _ACEOF |
---|
| 3450 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3451 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3452 | /* end confdefs.h. */ |
---|
| 3453 | #ifdef __STDC__ |
---|
| 3454 | # include <limits.h> |
---|
| 3455 | #else |
---|
| 3456 | # include <assert.h> |
---|
| 3457 | #endif |
---|
| 3458 | Syntax error |
---|
| 3459 | _ACEOF |
---|
| 3460 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3461 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3462 | ac_status=$? |
---|
| 3463 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3464 | rm -f conftest.er1 |
---|
| 3465 | cat conftest.err >&5 |
---|
| 3466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3467 | (exit $ac_status); } >/dev/null; then |
---|
| 3468 | if test -s conftest.err; then |
---|
| 3469 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3470 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3471 | else |
---|
| 3472 | ac_cpp_err= |
---|
| 3473 | fi |
---|
| 3474 | else |
---|
| 3475 | ac_cpp_err=yes |
---|
| 3476 | fi |
---|
| 3477 | if test -z "$ac_cpp_err"; then |
---|
| 3478 | : |
---|
| 3479 | else |
---|
| 3480 | echo "$as_me: failed program was:" >&5 |
---|
| 3481 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3482 | |
---|
| 3483 | # Broken: fails on valid input. |
---|
| 3484 | continue |
---|
| 3485 | fi |
---|
| 3486 | rm -f conftest.err conftest.$ac_ext |
---|
| 3487 | |
---|
| 3488 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3489 | # can be detected and how. |
---|
| 3490 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3491 | /* confdefs.h. */ |
---|
| 3492 | _ACEOF |
---|
| 3493 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3494 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3495 | /* end confdefs.h. */ |
---|
| 3496 | #include <ac_nonexistent.h> |
---|
| 3497 | _ACEOF |
---|
| 3498 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3499 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3500 | ac_status=$? |
---|
| 3501 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3502 | rm -f conftest.er1 |
---|
| 3503 | cat conftest.err >&5 |
---|
| 3504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3505 | (exit $ac_status); } >/dev/null; then |
---|
| 3506 | if test -s conftest.err; then |
---|
| 3507 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3508 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3509 | else |
---|
| 3510 | ac_cpp_err= |
---|
| 3511 | fi |
---|
| 3512 | else |
---|
| 3513 | ac_cpp_err=yes |
---|
| 3514 | fi |
---|
| 3515 | if test -z "$ac_cpp_err"; then |
---|
| 3516 | # Broken: success on invalid input. |
---|
| 3517 | continue |
---|
| 3518 | else |
---|
| 3519 | echo "$as_me: failed program was:" >&5 |
---|
| 3520 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3521 | |
---|
| 3522 | # Passes both tests. |
---|
| 3523 | ac_preproc_ok=: |
---|
| 3524 | break |
---|
| 3525 | fi |
---|
| 3526 | rm -f conftest.err conftest.$ac_ext |
---|
| 3527 | |
---|
| 3528 | done |
---|
| 3529 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3530 | rm -f conftest.err conftest.$ac_ext |
---|
| 3531 | if $ac_preproc_ok; then |
---|
| 3532 | : |
---|
| 3533 | else |
---|
| 3534 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3535 | See \`config.log' for more details." >&5 |
---|
| 3536 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3537 | See \`config.log' for more details." >&2;} |
---|
| 3538 | { (exit 1); exit 1; }; } |
---|
| 3539 | fi |
---|
| 3540 | |
---|
| 3541 | ac_ext=c |
---|
| 3542 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3543 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3544 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3545 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3546 | |
---|
| 3547 | |
---|
| 3548 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3549 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3550 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3552 | else |
---|
| 3553 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3554 | then ac_cv_prog_egrep='grep -E' |
---|
| 3555 | else ac_cv_prog_egrep='egrep' |
---|
| 3556 | fi |
---|
| 3557 | fi |
---|
| 3558 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3559 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3560 | EGREP=$ac_cv_prog_egrep |
---|
| 3561 | |
---|
| 3562 | |
---|
| 3563 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3564 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3565 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3567 | else |
---|
| 3568 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3569 | /* confdefs.h. */ |
---|
| 3570 | _ACEOF |
---|
| 3571 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3572 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3573 | /* end confdefs.h. */ |
---|
| 3574 | #include <stdlib.h> |
---|
| 3575 | #include <stdarg.h> |
---|
| 3576 | #include <string.h> |
---|
| 3577 | #include <float.h> |
---|
| 3578 | |
---|
| 3579 | int |
---|
| 3580 | main () |
---|
| 3581 | { |
---|
| 3582 | |
---|
| 3583 | ; |
---|
| 3584 | return 0; |
---|
| 3585 | } |
---|
| 3586 | _ACEOF |
---|
| 3587 | rm -f conftest.$ac_objext |
---|
| 3588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3589 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3590 | ac_status=$? |
---|
| 3591 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3592 | rm -f conftest.er1 |
---|
| 3593 | cat conftest.err >&5 |
---|
| 3594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3595 | (exit $ac_status); } && |
---|
| 3596 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3597 | || test ! -s conftest.err' |
---|
| 3598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3599 | (eval $ac_try) 2>&5 |
---|
| 3600 | ac_status=$? |
---|
| 3601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3602 | (exit $ac_status); }; } && |
---|
| 3603 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3605 | (eval $ac_try) 2>&5 |
---|
| 3606 | ac_status=$? |
---|
| 3607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3608 | (exit $ac_status); }; }; then |
---|
| 3609 | ac_cv_header_stdc=yes |
---|
| 3610 | else |
---|
| 3611 | echo "$as_me: failed program was:" >&5 |
---|
| 3612 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3613 | |
---|
| 3614 | ac_cv_header_stdc=no |
---|
| 3615 | fi |
---|
| 3616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3617 | |
---|
| 3618 | if test $ac_cv_header_stdc = yes; then |
---|
| 3619 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3620 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3621 | /* confdefs.h. */ |
---|
| 3622 | _ACEOF |
---|
| 3623 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3624 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3625 | /* end confdefs.h. */ |
---|
| 3626 | #include <string.h> |
---|
| 3627 | |
---|
| 3628 | _ACEOF |
---|
| 3629 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3630 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3631 | : |
---|
| 3632 | else |
---|
| 3633 | ac_cv_header_stdc=no |
---|
| 3634 | fi |
---|
| 3635 | rm -f conftest* |
---|
| 3636 | |
---|
| 3637 | fi |
---|
| 3638 | |
---|
| 3639 | if test $ac_cv_header_stdc = yes; then |
---|
| 3640 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3641 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3642 | /* confdefs.h. */ |
---|
| 3643 | _ACEOF |
---|
| 3644 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3645 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3646 | /* end confdefs.h. */ |
---|
| 3647 | #include <stdlib.h> |
---|
| 3648 | |
---|
| 3649 | _ACEOF |
---|
| 3650 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3651 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3652 | : |
---|
| 3653 | else |
---|
| 3654 | ac_cv_header_stdc=no |
---|
| 3655 | fi |
---|
| 3656 | rm -f conftest* |
---|
| 3657 | |
---|
| 3658 | fi |
---|
| 3659 | |
---|
| 3660 | if test $ac_cv_header_stdc = yes; then |
---|
| 3661 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3662 | if test "$cross_compiling" = yes; then |
---|
| 3663 | : |
---|
| 3664 | else |
---|
| 3665 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3666 | /* confdefs.h. */ |
---|
| 3667 | _ACEOF |
---|
| 3668 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3669 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3670 | /* end confdefs.h. */ |
---|
| 3671 | #include <ctype.h> |
---|
| 3672 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3673 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3674 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3675 | #else |
---|
| 3676 | # define ISLOWER(c) \ |
---|
| 3677 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3678 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3679 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3680 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3681 | #endif |
---|
| 3682 | |
---|
| 3683 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3684 | int |
---|
| 3685 | main () |
---|
| 3686 | { |
---|
| 3687 | int i; |
---|
| 3688 | for (i = 0; i < 256; i++) |
---|
| 3689 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3690 | || toupper (i) != TOUPPER (i)) |
---|
| 3691 | exit(2); |
---|
| 3692 | exit (0); |
---|
| 3693 | } |
---|
| 3694 | _ACEOF |
---|
| 3695 | rm -f conftest$ac_exeext |
---|
| 3696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3697 | (eval $ac_link) 2>&5 |
---|
| 3698 | ac_status=$? |
---|
| 3699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3700 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3702 | (eval $ac_try) 2>&5 |
---|
| 3703 | ac_status=$? |
---|
| 3704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3705 | (exit $ac_status); }; }; then |
---|
| 3706 | : |
---|
| 3707 | else |
---|
| 3708 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3709 | echo "$as_me: failed program was:" >&5 |
---|
| 3710 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3711 | |
---|
| 3712 | ( exit $ac_status ) |
---|
| 3713 | ac_cv_header_stdc=no |
---|
| 3714 | fi |
---|
| 3715 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3716 | fi |
---|
| 3717 | fi |
---|
| 3718 | fi |
---|
| 3719 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3720 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3721 | if test $ac_cv_header_stdc = yes; then |
---|
| 3722 | |
---|
| 3723 | cat >>confdefs.h <<\_ACEOF |
---|
| 3724 | #define STDC_HEADERS 1 |
---|
| 3725 | _ACEOF |
---|
| 3726 | |
---|
| 3727 | fi |
---|
| 3728 | |
---|
| 3729 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 3730 | |
---|
| 3731 | |
---|
| 3732 | |
---|
| 3733 | |
---|
| 3734 | |
---|
| 3735 | |
---|
| 3736 | |
---|
| 3737 | |
---|
| 3738 | |
---|
| 3739 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 3740 | inttypes.h stdint.h unistd.h |
---|
| 3741 | do |
---|
| 3742 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3743 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3744 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3745 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3747 | else |
---|
| 3748 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3749 | /* confdefs.h. */ |
---|
| 3750 | _ACEOF |
---|
| 3751 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3752 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3753 | /* end confdefs.h. */ |
---|
| 3754 | $ac_includes_default |
---|
| 3755 | |
---|
| 3756 | #include <$ac_header> |
---|
| 3757 | _ACEOF |
---|
| 3758 | rm -f conftest.$ac_objext |
---|
| 3759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3760 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3761 | ac_status=$? |
---|
| 3762 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3763 | rm -f conftest.er1 |
---|
| 3764 | cat conftest.err >&5 |
---|
| 3765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3766 | (exit $ac_status); } && |
---|
| 3767 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3768 | || test ! -s conftest.err' |
---|
| 3769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3770 | (eval $ac_try) 2>&5 |
---|
| 3771 | ac_status=$? |
---|
| 3772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3773 | (exit $ac_status); }; } && |
---|
| 3774 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3776 | (eval $ac_try) 2>&5 |
---|
| 3777 | ac_status=$? |
---|
| 3778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3779 | (exit $ac_status); }; }; then |
---|
| 3780 | eval "$as_ac_Header=yes" |
---|
| 3781 | else |
---|
| 3782 | echo "$as_me: failed program was:" >&5 |
---|
| 3783 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3784 | |
---|
| 3785 | eval "$as_ac_Header=no" |
---|
| 3786 | fi |
---|
| 3787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3788 | fi |
---|
| 3789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3790 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3791 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3792 | cat >>confdefs.h <<_ACEOF |
---|
| 3793 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3794 | _ACEOF |
---|
| 3795 | |
---|
| 3796 | fi |
---|
| 3797 | |
---|
| 3798 | done |
---|
| 3799 | |
---|
| 3800 | |
---|
| 3801 | |
---|
| 3802 | for ac_header in GL/gl.h |
---|
| 3803 | do |
---|
| 3804 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3805 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3806 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3807 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3810 | fi |
---|
| 3811 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3812 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3813 | else |
---|
| 3814 | # Is the header compilable? |
---|
| 3815 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 3816 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 3817 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3818 | /* confdefs.h. */ |
---|
| 3819 | _ACEOF |
---|
| 3820 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3821 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3822 | /* end confdefs.h. */ |
---|
| 3823 | $ac_includes_default |
---|
| 3824 | #include <$ac_header> |
---|
| 3825 | _ACEOF |
---|
| 3826 | rm -f conftest.$ac_objext |
---|
| 3827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3828 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3829 | ac_status=$? |
---|
| 3830 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3831 | rm -f conftest.er1 |
---|
| 3832 | cat conftest.err >&5 |
---|
| 3833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3834 | (exit $ac_status); } && |
---|
| 3835 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3836 | || test ! -s conftest.err' |
---|
| 3837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3838 | (eval $ac_try) 2>&5 |
---|
| 3839 | ac_status=$? |
---|
| 3840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3841 | (exit $ac_status); }; } && |
---|
| 3842 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3844 | (eval $ac_try) 2>&5 |
---|
| 3845 | ac_status=$? |
---|
| 3846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3847 | (exit $ac_status); }; }; then |
---|
| 3848 | ac_header_compiler=yes |
---|
| 3849 | else |
---|
| 3850 | echo "$as_me: failed program was:" >&5 |
---|
| 3851 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3852 | |
---|
| 3853 | ac_header_compiler=no |
---|
| 3854 | fi |
---|
| 3855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3856 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 3857 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 3858 | |
---|
| 3859 | # Is the header present? |
---|
| 3860 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 3861 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 3862 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3863 | /* confdefs.h. */ |
---|
| 3864 | _ACEOF |
---|
| 3865 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3866 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3867 | /* end confdefs.h. */ |
---|
| 3868 | #include <$ac_header> |
---|
| 3869 | _ACEOF |
---|
| 3870 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3871 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3872 | ac_status=$? |
---|
| 3873 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3874 | rm -f conftest.er1 |
---|
| 3875 | cat conftest.err >&5 |
---|
| 3876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3877 | (exit $ac_status); } >/dev/null; then |
---|
| 3878 | if test -s conftest.err; then |
---|
| 3879 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3880 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3881 | else |
---|
| 3882 | ac_cpp_err= |
---|
| 3883 | fi |
---|
| 3884 | else |
---|
| 3885 | ac_cpp_err=yes |
---|
| 3886 | fi |
---|
| 3887 | if test -z "$ac_cpp_err"; then |
---|
| 3888 | ac_header_preproc=yes |
---|
| 3889 | else |
---|
| 3890 | echo "$as_me: failed program was:" >&5 |
---|
| 3891 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3892 | |
---|
| 3893 | ac_header_preproc=no |
---|
| 3894 | fi |
---|
| 3895 | rm -f conftest.err conftest.$ac_ext |
---|
| 3896 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 3897 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 3898 | |
---|
| 3899 | # So? What about this header? |
---|
| 3900 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 3901 | yes:no: ) |
---|
| 3902 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 3903 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 3904 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 3905 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 3906 | ac_header_preproc=yes |
---|
| 3907 | ;; |
---|
| 3908 | no:yes:* ) |
---|
| 3909 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 3910 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 3911 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 3912 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 3913 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 3914 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 3915 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 3916 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 3917 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 3918 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 3919 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 3920 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 3921 | ( |
---|
| 3922 | cat <<\_ASBOX |
---|
| 3923 | ## ------------------------------------------- ## |
---|
| 3924 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 3925 | ## ------------------------------------------- ## |
---|
| 3926 | _ASBOX |
---|
| 3927 | ) | |
---|
| 3928 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 3929 | ;; |
---|
| 3930 | esac |
---|
| 3931 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3932 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3933 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3935 | else |
---|
| 3936 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 3937 | fi |
---|
| 3938 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3939 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3940 | |
---|
| 3941 | fi |
---|
| 3942 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3943 | cat >>confdefs.h <<_ACEOF |
---|
| 3944 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3945 | _ACEOF |
---|
| 3946 | |
---|
| 3947 | else |
---|
| 3948 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 3949 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 3950 | { (exit 1); exit 1; }; } |
---|
| 3951 | fi |
---|
| 3952 | |
---|
| 3953 | done |
---|
| 3954 | |
---|
| 3955 | |
---|
[1956] | 3956 | |
---|
[1971] | 3957 | |
---|
[2701] | 3958 | ### CHECKING FOR SYSTEM ### |
---|
[1956] | 3959 | |
---|
[2701] | 3960 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 3961 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
| 3962 | case `uname` in |
---|
| 3963 | ### WINDOWS ### |
---|
| 3964 | *MINGW*) |
---|
| 3965 | echo "mingw-WINDOWS detected" |
---|
[1959] | 3966 | |
---|
[2701] | 3967 | mingw="yes" |
---|
| 3968 | MSBITFIELDS="-mms-bitfields" |
---|
| 3969 | MWINDOWS="-mwindows" |
---|
| 3970 | |
---|
| 3971 | # checking gl header |
---|
| 3972 | #done before loop |
---|
| 3973 | |
---|
| 3974 | # checking for Windows openGl library |
---|
[1971] | 3975 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 3976 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 3977 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1959] | 3978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3979 | else |
---|
| 3980 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3981 | LIBS="-lopengl32 $LIBS" |
---|
| 3982 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3983 | /* confdefs.h. */ |
---|
[1956] | 3984 | _ACEOF |
---|
[1959] | 3985 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3986 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3987 | /* end confdefs.h. */ |
---|
[1956] | 3988 | |
---|
[1971] | 3989 | |
---|
[1959] | 3990 | int |
---|
| 3991 | main () |
---|
| 3992 | { |
---|
[1971] | 3993 | main (); |
---|
[1959] | 3994 | ; |
---|
| 3995 | return 0; |
---|
| 3996 | } |
---|
| 3997 | _ACEOF |
---|
| 3998 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4000 | (eval $ac_link) 2>conftest.er1 |
---|
| 4001 | ac_status=$? |
---|
| 4002 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4003 | rm -f conftest.er1 |
---|
| 4004 | cat conftest.err >&5 |
---|
| 4005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4006 | (exit $ac_status); } && |
---|
| 4007 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4008 | || test ! -s conftest.err' |
---|
| 4009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4010 | (eval $ac_try) 2>&5 |
---|
| 4011 | ac_status=$? |
---|
| 4012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4013 | (exit $ac_status); }; } && |
---|
| 4014 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4016 | (eval $ac_try) 2>&5 |
---|
| 4017 | ac_status=$? |
---|
| 4018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4019 | (exit $ac_status); }; }; then |
---|
[1971] | 4020 | ac_cv_lib_opengl32_main=yes |
---|
[1959] | 4021 | else |
---|
| 4022 | echo "$as_me: failed program was:" >&5 |
---|
| 4023 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4024 | |
---|
[1971] | 4025 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 4026 | fi |
---|
[1959] | 4027 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4028 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4029 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4030 | fi |
---|
[1971] | 4031 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4032 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4033 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4034 | FOUND_opengl32=yes |
---|
| 4035 | else |
---|
| 4036 | "gl/gl.h" |
---|
[1959] | 4037 | fi |
---|
[1956] | 4038 | |
---|
[1971] | 4039 | if test "$FOUND_opengl32" = "yes" ; then |
---|
[1959] | 4040 | LIBS="$LIBS -lopengl32" |
---|
[1971] | 4041 | else |
---|
[1959] | 4042 | echo "------------------" |
---|
| 4043 | echo "opengl not found." |
---|
| 4044 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4045 | echo "------------------" |
---|
| 4046 | exit -1 |
---|
| 4047 | fi |
---|
| 4048 | |
---|
[2701] | 4049 | # cheking for GLU-header |
---|
[1971] | 4050 | |
---|
| 4051 | for ac_header in GL/glu.h |
---|
| 4052 | do |
---|
| 4053 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4055 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4057 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4059 | fi |
---|
| 4060 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4061 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4062 | else |
---|
| 4063 | # Is the header compilable? |
---|
| 4064 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4065 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4066 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4067 | /* confdefs.h. */ |
---|
| 4068 | _ACEOF |
---|
| 4069 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4070 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4071 | /* end confdefs.h. */ |
---|
| 4072 | $ac_includes_default |
---|
| 4073 | #include <$ac_header> |
---|
| 4074 | _ACEOF |
---|
| 4075 | rm -f conftest.$ac_objext |
---|
| 4076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4077 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4078 | ac_status=$? |
---|
| 4079 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4080 | rm -f conftest.er1 |
---|
| 4081 | cat conftest.err >&5 |
---|
| 4082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4083 | (exit $ac_status); } && |
---|
| 4084 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4085 | || test ! -s conftest.err' |
---|
| 4086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4087 | (eval $ac_try) 2>&5 |
---|
| 4088 | ac_status=$? |
---|
| 4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4090 | (exit $ac_status); }; } && |
---|
| 4091 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4093 | (eval $ac_try) 2>&5 |
---|
| 4094 | ac_status=$? |
---|
| 4095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4096 | (exit $ac_status); }; }; then |
---|
| 4097 | ac_header_compiler=yes |
---|
| 4098 | else |
---|
| 4099 | echo "$as_me: failed program was:" >&5 |
---|
| 4100 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4101 | |
---|
| 4102 | ac_header_compiler=no |
---|
| 4103 | fi |
---|
| 4104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4105 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4106 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4107 | |
---|
| 4108 | # Is the header present? |
---|
| 4109 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4110 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4111 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4112 | /* confdefs.h. */ |
---|
| 4113 | _ACEOF |
---|
| 4114 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4115 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4116 | /* end confdefs.h. */ |
---|
| 4117 | #include <$ac_header> |
---|
| 4118 | _ACEOF |
---|
| 4119 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4120 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4121 | ac_status=$? |
---|
| 4122 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4123 | rm -f conftest.er1 |
---|
| 4124 | cat conftest.err >&5 |
---|
| 4125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4126 | (exit $ac_status); } >/dev/null; then |
---|
| 4127 | if test -s conftest.err; then |
---|
| 4128 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4129 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4130 | else |
---|
| 4131 | ac_cpp_err= |
---|
| 4132 | fi |
---|
| 4133 | else |
---|
| 4134 | ac_cpp_err=yes |
---|
| 4135 | fi |
---|
| 4136 | if test -z "$ac_cpp_err"; then |
---|
| 4137 | ac_header_preproc=yes |
---|
| 4138 | else |
---|
| 4139 | echo "$as_me: failed program was:" >&5 |
---|
| 4140 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4141 | |
---|
| 4142 | ac_header_preproc=no |
---|
| 4143 | fi |
---|
| 4144 | rm -f conftest.err conftest.$ac_ext |
---|
| 4145 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4146 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4147 | |
---|
| 4148 | # So? What about this header? |
---|
| 4149 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4150 | yes:no: ) |
---|
| 4151 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4152 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4153 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4154 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4155 | ac_header_preproc=yes |
---|
| 4156 | ;; |
---|
| 4157 | no:yes:* ) |
---|
| 4158 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4159 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4160 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4161 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4162 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4163 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4164 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4165 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4167 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4168 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4169 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4170 | ( |
---|
| 4171 | cat <<\_ASBOX |
---|
| 4172 | ## ------------------------------------------- ## |
---|
| 4173 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4174 | ## ------------------------------------------- ## |
---|
| 4175 | _ASBOX |
---|
| 4176 | ) | |
---|
| 4177 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4178 | ;; |
---|
| 4179 | esac |
---|
| 4180 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4181 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4182 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4184 | else |
---|
| 4185 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4186 | fi |
---|
| 4187 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4188 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4189 | |
---|
| 4190 | fi |
---|
| 4191 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4192 | cat >>confdefs.h <<_ACEOF |
---|
| 4193 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4194 | _ACEOF |
---|
| 4195 | |
---|
| 4196 | else |
---|
| 4197 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4198 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4199 | { (exit 1); exit 1; }; } |
---|
| 4200 | fi |
---|
| 4201 | |
---|
| 4202 | done |
---|
| 4203 | |
---|
| 4204 | |
---|
[2701] | 4205 | # checking for libGLU |
---|
| 4206 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4207 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4208 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
[1956] | 4209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4210 | else |
---|
| 4211 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4212 | LIBS="-lglu32 $LIBS" |
---|
[1956] | 4213 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4214 | /* confdefs.h. */ |
---|
| 4215 | _ACEOF |
---|
| 4216 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4217 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4218 | /* end confdefs.h. */ |
---|
| 4219 | |
---|
[2701] | 4220 | |
---|
[1956] | 4221 | int |
---|
| 4222 | main () |
---|
| 4223 | { |
---|
[2701] | 4224 | main (); |
---|
[1956] | 4225 | ; |
---|
| 4226 | return 0; |
---|
| 4227 | } |
---|
| 4228 | _ACEOF |
---|
| 4229 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4231 | (eval $ac_link) 2>conftest.er1 |
---|
| 4232 | ac_status=$? |
---|
| 4233 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4234 | rm -f conftest.er1 |
---|
| 4235 | cat conftest.err >&5 |
---|
| 4236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4237 | (exit $ac_status); } && |
---|
| 4238 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4239 | || test ! -s conftest.err' |
---|
| 4240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4241 | (eval $ac_try) 2>&5 |
---|
| 4242 | ac_status=$? |
---|
| 4243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4244 | (exit $ac_status); }; } && |
---|
| 4245 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4247 | (eval $ac_try) 2>&5 |
---|
| 4248 | ac_status=$? |
---|
| 4249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4250 | (exit $ac_status); }; }; then |
---|
[2701] | 4251 | ac_cv_lib_glu32_main=yes |
---|
[1956] | 4252 | else |
---|
| 4253 | echo "$as_me: failed program was:" >&5 |
---|
| 4254 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4255 | |
---|
[2701] | 4256 | ac_cv_lib_glu32_main=no |
---|
[1956] | 4257 | fi |
---|
| 4258 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4259 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4260 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4261 | fi |
---|
[2701] | 4262 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4263 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 4264 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 4265 | FOUND_glu32=yes |
---|
[1959] | 4266 | fi |
---|
| 4267 | |
---|
[2701] | 4268 | if test "$FOUND_glu32" = "yes" ; then |
---|
| 4269 | LIBS="$LIBS -lGLU32" |
---|
| 4270 | else |
---|
| 4271 | echo "------------------" |
---|
| 4272 | echo "GLU library not found." |
---|
| 4273 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4274 | echo "------------------" |
---|
| 4275 | exit -1 |
---|
| 4276 | fi |
---|
| 4277 | |
---|
| 4278 | |
---|
| 4279 | # checking for mingw32 |
---|
| 4280 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4281 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4282 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
[1959] | 4283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4284 | else |
---|
| 4285 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4286 | LIBS="-lmingw32 $LIBS" |
---|
[1959] | 4287 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4288 | /* confdefs.h. */ |
---|
[1956] | 4289 | _ACEOF |
---|
[1959] | 4290 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4291 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4292 | /* end confdefs.h. */ |
---|
[1956] | 4293 | |
---|
[1971] | 4294 | |
---|
[1959] | 4295 | int |
---|
| 4296 | main () |
---|
| 4297 | { |
---|
[1971] | 4298 | main (); |
---|
[1959] | 4299 | ; |
---|
| 4300 | return 0; |
---|
| 4301 | } |
---|
| 4302 | _ACEOF |
---|
| 4303 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4305 | (eval $ac_link) 2>conftest.er1 |
---|
| 4306 | ac_status=$? |
---|
| 4307 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4308 | rm -f conftest.er1 |
---|
| 4309 | cat conftest.err >&5 |
---|
| 4310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4311 | (exit $ac_status); } && |
---|
| 4312 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4313 | || test ! -s conftest.err' |
---|
| 4314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4315 | (eval $ac_try) 2>&5 |
---|
| 4316 | ac_status=$? |
---|
| 4317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4318 | (exit $ac_status); }; } && |
---|
| 4319 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4321 | (eval $ac_try) 2>&5 |
---|
| 4322 | ac_status=$? |
---|
| 4323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4324 | (exit $ac_status); }; }; then |
---|
[2701] | 4325 | ac_cv_lib_mingw32_main=yes |
---|
[1959] | 4326 | else |
---|
| 4327 | echo "$as_me: failed program was:" >&5 |
---|
| 4328 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4329 | |
---|
[2701] | 4330 | ac_cv_lib_mingw32_main=no |
---|
[1956] | 4331 | fi |
---|
[1959] | 4332 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4333 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4334 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4335 | fi |
---|
[2701] | 4336 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4337 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4338 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4339 | FOUND_mingw32=yes |
---|
[1959] | 4340 | fi |
---|
[1956] | 4341 | |
---|
[2701] | 4342 | if test $FOUND_mingw32 = "yes"; then |
---|
| 4343 | LIBS="$LIBS -lmingw32" |
---|
| 4344 | fi |
---|
| 4345 | # checking for SDL-headers |
---|
[1959] | 4346 | |
---|
[2701] | 4347 | for ac_header in SDL/SDL.h |
---|
| 4348 | do |
---|
| 4349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4350 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4351 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4353 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
[1959] | 4355 | fi |
---|
[2701] | 4356 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4357 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4358 | else |
---|
| 4359 | # Is the header compilable? |
---|
| 4360 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4361 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4362 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4363 | /* confdefs.h. */ |
---|
| 4364 | _ACEOF |
---|
| 4365 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4366 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4367 | /* end confdefs.h. */ |
---|
| 4368 | $ac_includes_default |
---|
| 4369 | #include <$ac_header> |
---|
| 4370 | _ACEOF |
---|
| 4371 | rm -f conftest.$ac_objext |
---|
| 4372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4373 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4374 | ac_status=$? |
---|
| 4375 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4376 | rm -f conftest.er1 |
---|
| 4377 | cat conftest.err >&5 |
---|
| 4378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4379 | (exit $ac_status); } && |
---|
| 4380 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4381 | || test ! -s conftest.err' |
---|
| 4382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4383 | (eval $ac_try) 2>&5 |
---|
| 4384 | ac_status=$? |
---|
| 4385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4386 | (exit $ac_status); }; } && |
---|
| 4387 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4389 | (eval $ac_try) 2>&5 |
---|
| 4390 | ac_status=$? |
---|
| 4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4392 | (exit $ac_status); }; }; then |
---|
| 4393 | ac_header_compiler=yes |
---|
| 4394 | else |
---|
| 4395 | echo "$as_me: failed program was:" >&5 |
---|
| 4396 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1971] | 4397 | |
---|
[2701] | 4398 | ac_header_compiler=no |
---|
| 4399 | fi |
---|
| 4400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4401 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4402 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 4403 | |
---|
[2701] | 4404 | # Is the header present? |
---|
| 4405 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4406 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4407 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4408 | /* confdefs.h. */ |
---|
| 4409 | _ACEOF |
---|
| 4410 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4411 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4412 | /* end confdefs.h. */ |
---|
| 4413 | #include <$ac_header> |
---|
| 4414 | _ACEOF |
---|
| 4415 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4416 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4417 | ac_status=$? |
---|
| 4418 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4419 | rm -f conftest.er1 |
---|
| 4420 | cat conftest.err >&5 |
---|
| 4421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4422 | (exit $ac_status); } >/dev/null; then |
---|
| 4423 | if test -s conftest.err; then |
---|
| 4424 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4425 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4426 | else |
---|
| 4427 | ac_cpp_err= |
---|
| 4428 | fi |
---|
| 4429 | else |
---|
| 4430 | ac_cpp_err=yes |
---|
| 4431 | fi |
---|
| 4432 | if test -z "$ac_cpp_err"; then |
---|
| 4433 | ac_header_preproc=yes |
---|
| 4434 | else |
---|
| 4435 | echo "$as_me: failed program was:" >&5 |
---|
| 4436 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4437 | |
---|
| 4438 | ac_header_preproc=no |
---|
| 4439 | fi |
---|
| 4440 | rm -f conftest.err conftest.$ac_ext |
---|
| 4441 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4442 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4443 | |
---|
| 4444 | # So? What about this header? |
---|
| 4445 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4446 | yes:no: ) |
---|
| 4447 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4448 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4449 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4450 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4451 | ac_header_preproc=yes |
---|
| 4452 | ;; |
---|
| 4453 | no:yes:* ) |
---|
| 4454 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4455 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4456 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4457 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4458 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4459 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4460 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4461 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4462 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4463 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4464 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4465 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4466 | ( |
---|
| 4467 | cat <<\_ASBOX |
---|
| 4468 | ## ------------------------------------------- ## |
---|
| 4469 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4470 | ## ------------------------------------------- ## |
---|
| 4471 | _ASBOX |
---|
| 4472 | ) | |
---|
| 4473 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4474 | ;; |
---|
| 4475 | esac |
---|
| 4476 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4477 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4478 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[1956] | 4479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4480 | else |
---|
[2701] | 4481 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4482 | fi |
---|
| 4483 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4484 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4485 | |
---|
| 4486 | fi |
---|
| 4487 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4488 | cat >>confdefs.h <<_ACEOF |
---|
| 4489 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4490 | _ACEOF |
---|
| 4491 | |
---|
| 4492 | else |
---|
| 4493 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 4494 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 4495 | { (exit 1); exit 1; }; } |
---|
| 4496 | fi |
---|
| 4497 | |
---|
| 4498 | done |
---|
| 4499 | |
---|
| 4500 | |
---|
| 4501 | #checking for libSDL |
---|
| 4502 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
| 4503 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
| 4504 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
| 4505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4506 | else |
---|
[1956] | 4507 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4508 | LIBS="-lsdlmain $LIBS" |
---|
[1956] | 4509 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4510 | /* confdefs.h. */ |
---|
| 4511 | _ACEOF |
---|
| 4512 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4513 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4514 | /* end confdefs.h. */ |
---|
| 4515 | |
---|
| 4516 | |
---|
| 4517 | int |
---|
| 4518 | main () |
---|
| 4519 | { |
---|
| 4520 | main (); |
---|
| 4521 | ; |
---|
| 4522 | return 0; |
---|
| 4523 | } |
---|
| 4524 | _ACEOF |
---|
| 4525 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4527 | (eval $ac_link) 2>conftest.er1 |
---|
| 4528 | ac_status=$? |
---|
| 4529 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4530 | rm -f conftest.er1 |
---|
| 4531 | cat conftest.err >&5 |
---|
| 4532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4533 | (exit $ac_status); } && |
---|
| 4534 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4535 | || test ! -s conftest.err' |
---|
| 4536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4537 | (eval $ac_try) 2>&5 |
---|
| 4538 | ac_status=$? |
---|
| 4539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4540 | (exit $ac_status); }; } && |
---|
| 4541 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4543 | (eval $ac_try) 2>&5 |
---|
| 4544 | ac_status=$? |
---|
| 4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4546 | (exit $ac_status); }; }; then |
---|
[2701] | 4547 | ac_cv_lib_sdlmain_main=yes |
---|
[1956] | 4548 | else |
---|
| 4549 | echo "$as_me: failed program was:" >&5 |
---|
| 4550 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4551 | |
---|
[2701] | 4552 | ac_cv_lib_sdlmain_main=no |
---|
[1956] | 4553 | fi |
---|
| 4554 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4555 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4556 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4557 | fi |
---|
[2701] | 4558 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
| 4559 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
| 4560 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
| 4561 | FOUND_sdlmain=yes |
---|
[1956] | 4562 | fi |
---|
| 4563 | |
---|
[2701] | 4564 | if test "$FOUND_sdlmain" = "yes" ; then |
---|
| 4565 | LIBS="$LIBS -lsdlmain" |
---|
| 4566 | else |
---|
| 4567 | echo "------------------" |
---|
| 4568 | echo "SDL library not found." |
---|
| 4569 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4570 | echo "------------------" |
---|
| 4571 | exit 1 |
---|
| 4572 | fi |
---|
| 4573 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
| 4574 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
| 4575 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
[1956] | 4576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4577 | else |
---|
| 4578 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4579 | LIBS="-lsdl $LIBS" |
---|
[1956] | 4580 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4581 | /* confdefs.h. */ |
---|
| 4582 | _ACEOF |
---|
| 4583 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4584 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4585 | /* end confdefs.h. */ |
---|
| 4586 | |
---|
| 4587 | |
---|
| 4588 | int |
---|
| 4589 | main () |
---|
| 4590 | { |
---|
| 4591 | main (); |
---|
| 4592 | ; |
---|
| 4593 | return 0; |
---|
| 4594 | } |
---|
| 4595 | _ACEOF |
---|
| 4596 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4598 | (eval $ac_link) 2>conftest.er1 |
---|
| 4599 | ac_status=$? |
---|
| 4600 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4601 | rm -f conftest.er1 |
---|
| 4602 | cat conftest.err >&5 |
---|
| 4603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4604 | (exit $ac_status); } && |
---|
| 4605 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4606 | || test ! -s conftest.err' |
---|
| 4607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4608 | (eval $ac_try) 2>&5 |
---|
| 4609 | ac_status=$? |
---|
| 4610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4611 | (exit $ac_status); }; } && |
---|
| 4612 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4614 | (eval $ac_try) 2>&5 |
---|
| 4615 | ac_status=$? |
---|
| 4616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4617 | (exit $ac_status); }; }; then |
---|
[2701] | 4618 | ac_cv_lib_sdl_main=yes |
---|
[1956] | 4619 | else |
---|
| 4620 | echo "$as_me: failed program was:" >&5 |
---|
| 4621 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4622 | |
---|
[2701] | 4623 | ac_cv_lib_sdl_main=no |
---|
[1956] | 4624 | fi |
---|
| 4625 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4626 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4627 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4628 | fi |
---|
[2701] | 4629 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
| 4630 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
| 4631 | if test $ac_cv_lib_sdl_main = yes; then |
---|
| 4632 | FOUND_sdl=yes |
---|
| 4633 | fi |
---|
[1956] | 4634 | |
---|
[2701] | 4635 | if test "$FOUND_sdl" = "yes" ; then |
---|
| 4636 | LIBS="$LIBS -lsdl" |
---|
| 4637 | else |
---|
| 4638 | echo "------------------" |
---|
| 4639 | echo "SDL library not found." |
---|
| 4640 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4641 | echo "------------------" |
---|
| 4642 | exit -1 |
---|
| 4643 | fi |
---|
[1956] | 4644 | |
---|
[2701] | 4645 | ;; |
---|
[1956] | 4646 | |
---|
[2701] | 4647 | ### LINUX ### |
---|
| 4648 | *Linux*) |
---|
| 4649 | echo "Linux detected" |
---|
[1956] | 4650 | |
---|
[2701] | 4651 | Linux="yes" |
---|
| 4652 | |
---|
| 4653 | # checking gl header |
---|
| 4654 | #has been done befor linux-check |
---|
| 4655 | |
---|
| 4656 | # checking for Unix GL |
---|
| 4657 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
| 4658 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
| 4659 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
[1956] | 4660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4661 | else |
---|
| 4662 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4663 | LIBS="-lGL $LIBS" |
---|
[1956] | 4664 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4665 | /* confdefs.h. */ |
---|
| 4666 | _ACEOF |
---|
| 4667 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4668 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4669 | /* end confdefs.h. */ |
---|
| 4670 | |
---|
| 4671 | |
---|
| 4672 | int |
---|
| 4673 | main () |
---|
| 4674 | { |
---|
| 4675 | main (); |
---|
| 4676 | ; |
---|
| 4677 | return 0; |
---|
| 4678 | } |
---|
| 4679 | _ACEOF |
---|
| 4680 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4682 | (eval $ac_link) 2>conftest.er1 |
---|
| 4683 | ac_status=$? |
---|
| 4684 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4685 | rm -f conftest.er1 |
---|
| 4686 | cat conftest.err >&5 |
---|
| 4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4688 | (exit $ac_status); } && |
---|
| 4689 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4690 | || test ! -s conftest.err' |
---|
| 4691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4692 | (eval $ac_try) 2>&5 |
---|
| 4693 | ac_status=$? |
---|
| 4694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4695 | (exit $ac_status); }; } && |
---|
| 4696 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4698 | (eval $ac_try) 2>&5 |
---|
| 4699 | ac_status=$? |
---|
| 4700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4701 | (exit $ac_status); }; }; then |
---|
[2701] | 4702 | ac_cv_lib_GL_main=yes |
---|
[1956] | 4703 | else |
---|
| 4704 | echo "$as_me: failed program was:" >&5 |
---|
| 4705 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4706 | |
---|
[2701] | 4707 | ac_cv_lib_GL_main=no |
---|
[1956] | 4708 | fi |
---|
| 4709 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4710 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4711 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4712 | fi |
---|
[2701] | 4713 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
| 4714 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
| 4715 | if test $ac_cv_lib_GL_main = yes; then |
---|
| 4716 | FOUND_GL=yes |
---|
| 4717 | fi |
---|
| 4718 | |
---|
| 4719 | if test "$FOUND_GL" = "yes" ; then |
---|
| 4720 | LIBS="$LIBS -lGL" |
---|
| 4721 | else |
---|
| 4722 | echo "------------------" |
---|
| 4723 | echo "opengl not found." |
---|
| 4724 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4725 | echo "------------------" |
---|
| 4726 | exit -1 |
---|
| 4727 | fi |
---|
| 4728 | |
---|
| 4729 | # cheking for GLU-header |
---|
| 4730 | |
---|
| 4731 | for ac_header in GL/glu.h |
---|
| 4732 | do |
---|
| 4733 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4734 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4735 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4739 | fi |
---|
| 4740 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4741 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4742 | else |
---|
| 4743 | # Is the header compilable? |
---|
| 4744 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4745 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4746 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4747 | /* confdefs.h. */ |
---|
[1956] | 4748 | _ACEOF |
---|
[2701] | 4749 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4750 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4751 | /* end confdefs.h. */ |
---|
| 4752 | $ac_includes_default |
---|
| 4753 | #include <$ac_header> |
---|
| 4754 | _ACEOF |
---|
| 4755 | rm -f conftest.$ac_objext |
---|
| 4756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4757 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4758 | ac_status=$? |
---|
| 4759 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4760 | rm -f conftest.er1 |
---|
| 4761 | cat conftest.err >&5 |
---|
| 4762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4763 | (exit $ac_status); } && |
---|
| 4764 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4765 | || test ! -s conftest.err' |
---|
| 4766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4767 | (eval $ac_try) 2>&5 |
---|
| 4768 | ac_status=$? |
---|
| 4769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4770 | (exit $ac_status); }; } && |
---|
| 4771 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4773 | (eval $ac_try) 2>&5 |
---|
| 4774 | ac_status=$? |
---|
| 4775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4776 | (exit $ac_status); }; }; then |
---|
| 4777 | ac_header_compiler=yes |
---|
| 4778 | else |
---|
| 4779 | echo "$as_me: failed program was:" >&5 |
---|
| 4780 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4781 | |
---|
[2701] | 4782 | ac_header_compiler=no |
---|
| 4783 | fi |
---|
| 4784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4785 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4786 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 4787 | |
---|
[2701] | 4788 | # Is the header present? |
---|
| 4789 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4790 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4791 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4792 | /* confdefs.h. */ |
---|
| 4793 | _ACEOF |
---|
| 4794 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4795 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4796 | /* end confdefs.h. */ |
---|
| 4797 | #include <$ac_header> |
---|
| 4798 | _ACEOF |
---|
| 4799 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4800 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4801 | ac_status=$? |
---|
| 4802 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4803 | rm -f conftest.er1 |
---|
| 4804 | cat conftest.err >&5 |
---|
| 4805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4806 | (exit $ac_status); } >/dev/null; then |
---|
| 4807 | if test -s conftest.err; then |
---|
| 4808 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4809 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4810 | else |
---|
| 4811 | ac_cpp_err= |
---|
| 4812 | fi |
---|
| 4813 | else |
---|
| 4814 | ac_cpp_err=yes |
---|
[1956] | 4815 | fi |
---|
[2701] | 4816 | if test -z "$ac_cpp_err"; then |
---|
| 4817 | ac_header_preproc=yes |
---|
| 4818 | else |
---|
| 4819 | echo "$as_me: failed program was:" >&5 |
---|
| 4820 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4821 | |
---|
[2701] | 4822 | ac_header_preproc=no |
---|
| 4823 | fi |
---|
| 4824 | rm -f conftest.err conftest.$ac_ext |
---|
| 4825 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4826 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 4827 | |
---|
[2701] | 4828 | # So? What about this header? |
---|
| 4829 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4830 | yes:no: ) |
---|
| 4831 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4832 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4833 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4834 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4835 | ac_header_preproc=yes |
---|
| 4836 | ;; |
---|
| 4837 | no:yes:* ) |
---|
| 4838 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4839 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4840 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4841 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4842 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4843 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4844 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4845 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4846 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4847 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4848 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4849 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4850 | ( |
---|
| 4851 | cat <<\_ASBOX |
---|
| 4852 | ## ------------------------------------------- ## |
---|
| 4853 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 4854 | ## ------------------------------------------- ## |
---|
| 4855 | _ASBOX |
---|
| 4856 | ) | |
---|
| 4857 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4858 | ;; |
---|
| 4859 | esac |
---|
| 4860 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4861 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4862 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 4863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4864 | else |
---|
[2701] | 4865 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4866 | fi |
---|
| 4867 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4868 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4869 | |
---|
| 4870 | fi |
---|
| 4871 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4872 | cat >>confdefs.h <<_ACEOF |
---|
| 4873 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4874 | _ACEOF |
---|
| 4875 | |
---|
| 4876 | else |
---|
| 4877 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4878 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4879 | { (exit 1); exit 1; }; } |
---|
| 4880 | fi |
---|
| 4881 | |
---|
| 4882 | done |
---|
| 4883 | |
---|
| 4884 | |
---|
| 4885 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 4886 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 4887 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 4888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4889 | else |
---|
[2190] | 4890 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4891 | LIBS="-lGLU $LIBS" |
---|
[2190] | 4892 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4893 | /* confdefs.h. */ |
---|
| 4894 | _ACEOF |
---|
| 4895 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4896 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4897 | /* end confdefs.h. */ |
---|
| 4898 | |
---|
[2701] | 4899 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4900 | #ifdef __cplusplus |
---|
| 4901 | extern "C" |
---|
| 4902 | #endif |
---|
| 4903 | /* We use char because int might match the return type of a gcc2 |
---|
| 4904 | builtin and then its argument prototype would still apply. */ |
---|
| 4905 | char gluProject (); |
---|
[2190] | 4906 | int |
---|
| 4907 | main () |
---|
| 4908 | { |
---|
[2701] | 4909 | gluProject (); |
---|
[2190] | 4910 | ; |
---|
| 4911 | return 0; |
---|
| 4912 | } |
---|
| 4913 | _ACEOF |
---|
| 4914 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4916 | (eval $ac_link) 2>conftest.er1 |
---|
| 4917 | ac_status=$? |
---|
| 4918 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4919 | rm -f conftest.er1 |
---|
| 4920 | cat conftest.err >&5 |
---|
| 4921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4922 | (exit $ac_status); } && |
---|
| 4923 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4924 | || test ! -s conftest.err' |
---|
| 4925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4926 | (eval $ac_try) 2>&5 |
---|
| 4927 | ac_status=$? |
---|
| 4928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4929 | (exit $ac_status); }; } && |
---|
| 4930 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4932 | (eval $ac_try) 2>&5 |
---|
| 4933 | ac_status=$? |
---|
| 4934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4935 | (exit $ac_status); }; }; then |
---|
[2701] | 4936 | ac_cv_lib_GLU_gluProject=yes |
---|
[2190] | 4937 | else |
---|
| 4938 | echo "$as_me: failed program was:" >&5 |
---|
| 4939 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4940 | |
---|
[2701] | 4941 | ac_cv_lib_GLU_gluProject=no |
---|
[2190] | 4942 | fi |
---|
| 4943 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4944 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4945 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4946 | fi |
---|
[2701] | 4947 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 4948 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 4949 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 4950 | FOUND_GLU=yes |
---|
[2190] | 4951 | fi |
---|
| 4952 | |
---|
[2701] | 4953 | if test "$FOUND_GLU" = "yes" ; then |
---|
| 4954 | LIBS="$LIBS -lGLU" |
---|
| 4955 | else |
---|
| 4956 | echo "------------------" |
---|
| 4957 | echo "GLU library not found." |
---|
| 4958 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4959 | echo "------------------" |
---|
| 4960 | exit -1 |
---|
| 4961 | fi |
---|
[2190] | 4962 | |
---|
[2701] | 4963 | # checking for SDL-headers |
---|
[2190] | 4964 | |
---|
| 4965 | for ac_header in SDL/SDL.h |
---|
| 4966 | do |
---|
| 4967 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4969 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4970 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4973 | fi |
---|
| 4974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4975 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4976 | else |
---|
| 4977 | # Is the header compilable? |
---|
| 4978 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4979 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4980 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4981 | /* confdefs.h. */ |
---|
| 4982 | _ACEOF |
---|
| 4983 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4984 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4985 | /* end confdefs.h. */ |
---|
| 4986 | $ac_includes_default |
---|
| 4987 | #include <$ac_header> |
---|
| 4988 | _ACEOF |
---|
| 4989 | rm -f conftest.$ac_objext |
---|
| 4990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4991 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4992 | ac_status=$? |
---|
| 4993 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4994 | rm -f conftest.er1 |
---|
| 4995 | cat conftest.err >&5 |
---|
| 4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4997 | (exit $ac_status); } && |
---|
| 4998 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4999 | || test ! -s conftest.err' |
---|
| 5000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5001 | (eval $ac_try) 2>&5 |
---|
| 5002 | ac_status=$? |
---|
| 5003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5004 | (exit $ac_status); }; } && |
---|
| 5005 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5007 | (eval $ac_try) 2>&5 |
---|
| 5008 | ac_status=$? |
---|
| 5009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5010 | (exit $ac_status); }; }; then |
---|
| 5011 | ac_header_compiler=yes |
---|
| 5012 | else |
---|
| 5013 | echo "$as_me: failed program was:" >&5 |
---|
| 5014 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5015 | |
---|
| 5016 | ac_header_compiler=no |
---|
| 5017 | fi |
---|
| 5018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5019 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5020 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5021 | |
---|
| 5022 | # Is the header present? |
---|
| 5023 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5024 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5025 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5026 | /* confdefs.h. */ |
---|
| 5027 | _ACEOF |
---|
| 5028 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5029 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5030 | /* end confdefs.h. */ |
---|
| 5031 | #include <$ac_header> |
---|
| 5032 | _ACEOF |
---|
| 5033 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5034 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5035 | ac_status=$? |
---|
| 5036 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5037 | rm -f conftest.er1 |
---|
| 5038 | cat conftest.err >&5 |
---|
| 5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5040 | (exit $ac_status); } >/dev/null; then |
---|
| 5041 | if test -s conftest.err; then |
---|
| 5042 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5043 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5044 | else |
---|
| 5045 | ac_cpp_err= |
---|
| 5046 | fi |
---|
| 5047 | else |
---|
| 5048 | ac_cpp_err=yes |
---|
| 5049 | fi |
---|
| 5050 | if test -z "$ac_cpp_err"; then |
---|
| 5051 | ac_header_preproc=yes |
---|
| 5052 | else |
---|
| 5053 | echo "$as_me: failed program was:" >&5 |
---|
| 5054 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5055 | |
---|
| 5056 | ac_header_preproc=no |
---|
| 5057 | fi |
---|
| 5058 | rm -f conftest.err conftest.$ac_ext |
---|
| 5059 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5060 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5061 | |
---|
| 5062 | # So? What about this header? |
---|
| 5063 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5064 | yes:no: ) |
---|
| 5065 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5066 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5067 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5068 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5069 | ac_header_preproc=yes |
---|
| 5070 | ;; |
---|
| 5071 | no:yes:* ) |
---|
| 5072 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5073 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5074 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5075 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5076 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5077 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5078 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5079 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5080 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5081 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5082 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5083 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5084 | ( |
---|
| 5085 | cat <<\_ASBOX |
---|
| 5086 | ## ------------------------------------------- ## |
---|
| 5087 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 5088 | ## ------------------------------------------- ## |
---|
| 5089 | _ASBOX |
---|
| 5090 | ) | |
---|
| 5091 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5092 | ;; |
---|
| 5093 | esac |
---|
| 5094 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5098 | else |
---|
| 5099 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5100 | fi |
---|
| 5101 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5102 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5103 | |
---|
| 5104 | fi |
---|
| 5105 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5106 | cat >>confdefs.h <<_ACEOF |
---|
| 5107 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5108 | _ACEOF |
---|
| 5109 | |
---|
| 5110 | else |
---|
| 5111 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 5112 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 5113 | { (exit 1); exit 1; }; } |
---|
| 5114 | fi |
---|
| 5115 | |
---|
| 5116 | done |
---|
| 5117 | |
---|
[2701] | 5118 | |
---|
| 5119 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
[2190] | 5120 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
| 5121 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
| 5122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5123 | else |
---|
| 5124 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5125 | LIBS="-lSDL $LIBS" |
---|
| 5126 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5127 | /* confdefs.h. */ |
---|
| 5128 | _ACEOF |
---|
| 5129 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5130 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5131 | /* end confdefs.h. */ |
---|
| 5132 | |
---|
| 5133 | |
---|
| 5134 | int |
---|
| 5135 | main () |
---|
| 5136 | { |
---|
| 5137 | main (); |
---|
| 5138 | ; |
---|
| 5139 | return 0; |
---|
| 5140 | } |
---|
| 5141 | _ACEOF |
---|
| 5142 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5144 | (eval $ac_link) 2>conftest.er1 |
---|
| 5145 | ac_status=$? |
---|
| 5146 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5147 | rm -f conftest.er1 |
---|
| 5148 | cat conftest.err >&5 |
---|
| 5149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5150 | (exit $ac_status); } && |
---|
| 5151 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5152 | || test ! -s conftest.err' |
---|
| 5153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5154 | (eval $ac_try) 2>&5 |
---|
| 5155 | ac_status=$? |
---|
| 5156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5157 | (exit $ac_status); }; } && |
---|
| 5158 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5160 | (eval $ac_try) 2>&5 |
---|
| 5161 | ac_status=$? |
---|
| 5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5163 | (exit $ac_status); }; }; then |
---|
| 5164 | ac_cv_lib_SDL_main=yes |
---|
| 5165 | else |
---|
| 5166 | echo "$as_me: failed program was:" >&5 |
---|
| 5167 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5168 | |
---|
| 5169 | ac_cv_lib_SDL_main=no |
---|
| 5170 | fi |
---|
| 5171 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5172 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5173 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5174 | fi |
---|
| 5175 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
| 5176 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
| 5177 | if test $ac_cv_lib_SDL_main = yes; then |
---|
| 5178 | FOUND_SDL=yes |
---|
| 5179 | fi |
---|
| 5180 | |
---|
[2701] | 5181 | if test "$FOUND_SDL" = "yes" ; then |
---|
| 5182 | LIBS="$LIBS -lSDL" |
---|
| 5183 | else |
---|
| 5184 | echo "------------------" |
---|
| 5185 | echo "SDL library not found." |
---|
| 5186 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5187 | echo "------------------" |
---|
| 5188 | exit -1 |
---|
| 5189 | fi |
---|
| 5190 | |
---|
| 5191 | ;; |
---|
| 5192 | *) |
---|
| 5193 | mingw="no" |
---|
| 5194 | ;; |
---|
| 5195 | esac |
---|
| 5196 | echo "$as_me:$LINENO: result: $mingw" >&5 |
---|
| 5197 | echo "${ECHO_T}$mingw" >&6 |
---|
| 5198 | |
---|
| 5199 | |
---|
| 5200 | #### Checking for LIBraries. |
---|
| 5201 | |
---|
| 5202 | # FIXME: Replace `main' with a function in `-lOSMesa': |
---|
| 5203 | |
---|
| 5204 | echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 |
---|
| 5205 | echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 |
---|
| 5206 | if test "${ac_cv_lib_OSMesa_main+set}" = set; then |
---|
[2190] | 5207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5208 | else |
---|
| 5209 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5210 | LIBS="-lOSMesa $LIBS" |
---|
[2190] | 5211 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5212 | /* confdefs.h. */ |
---|
| 5213 | _ACEOF |
---|
| 5214 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5215 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5216 | /* end confdefs.h. */ |
---|
| 5217 | |
---|
| 5218 | |
---|
| 5219 | int |
---|
| 5220 | main () |
---|
| 5221 | { |
---|
| 5222 | main (); |
---|
| 5223 | ; |
---|
| 5224 | return 0; |
---|
| 5225 | } |
---|
| 5226 | _ACEOF |
---|
| 5227 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5229 | (eval $ac_link) 2>conftest.er1 |
---|
| 5230 | ac_status=$? |
---|
| 5231 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5232 | rm -f conftest.er1 |
---|
| 5233 | cat conftest.err >&5 |
---|
| 5234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5235 | (exit $ac_status); } && |
---|
| 5236 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5237 | || test ! -s conftest.err' |
---|
| 5238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5239 | (eval $ac_try) 2>&5 |
---|
| 5240 | ac_status=$? |
---|
| 5241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5242 | (exit $ac_status); }; } && |
---|
| 5243 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5245 | (eval $ac_try) 2>&5 |
---|
| 5246 | ac_status=$? |
---|
| 5247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5248 | (exit $ac_status); }; }; then |
---|
[2701] | 5249 | ac_cv_lib_OSMesa_main=yes |
---|
[2190] | 5250 | else |
---|
| 5251 | echo "$as_me: failed program was:" >&5 |
---|
| 5252 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5253 | |
---|
[2701] | 5254 | ac_cv_lib_OSMesa_main=no |
---|
[2190] | 5255 | fi |
---|
| 5256 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5257 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5258 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5259 | fi |
---|
[2701] | 5260 | echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 |
---|
| 5261 | echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 |
---|
| 5262 | if test $ac_cv_lib_OSMesa_main = yes; then |
---|
| 5263 | cat >>confdefs.h <<_ACEOF |
---|
| 5264 | #define HAVE_LIBOSMESA 1 |
---|
| 5265 | _ACEOF |
---|
| 5266 | |
---|
| 5267 | LIBS="-lOSMesa $LIBS" |
---|
| 5268 | |
---|
[2190] | 5269 | fi |
---|
| 5270 | |
---|
[2701] | 5271 | # FIXME: Replace `main' with a function in `-lX11': |
---|
| 5272 | |
---|
| 5273 | echo "$as_me:$LINENO: checking for main in -lX11" >&5 |
---|
| 5274 | echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 |
---|
| 5275 | if test "${ac_cv_lib_X11_main+set}" = set; then |
---|
[2190] | 5276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5277 | else |
---|
| 5278 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5279 | LIBS="-lX11 $LIBS" |
---|
[2190] | 5280 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5281 | /* confdefs.h. */ |
---|
| 5282 | _ACEOF |
---|
| 5283 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5284 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5285 | /* end confdefs.h. */ |
---|
| 5286 | |
---|
| 5287 | |
---|
| 5288 | int |
---|
| 5289 | main () |
---|
| 5290 | { |
---|
| 5291 | main (); |
---|
| 5292 | ; |
---|
| 5293 | return 0; |
---|
| 5294 | } |
---|
| 5295 | _ACEOF |
---|
| 5296 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5298 | (eval $ac_link) 2>conftest.er1 |
---|
| 5299 | ac_status=$? |
---|
| 5300 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5301 | rm -f conftest.er1 |
---|
| 5302 | cat conftest.err >&5 |
---|
| 5303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5304 | (exit $ac_status); } && |
---|
| 5305 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5306 | || test ! -s conftest.err' |
---|
| 5307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5308 | (eval $ac_try) 2>&5 |
---|
| 5309 | ac_status=$? |
---|
| 5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5311 | (exit $ac_status); }; } && |
---|
| 5312 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5314 | (eval $ac_try) 2>&5 |
---|
| 5315 | ac_status=$? |
---|
| 5316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5317 | (exit $ac_status); }; }; then |
---|
[2701] | 5318 | ac_cv_lib_X11_main=yes |
---|
[2190] | 5319 | else |
---|
| 5320 | echo "$as_me: failed program was:" >&5 |
---|
| 5321 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5322 | |
---|
[2701] | 5323 | ac_cv_lib_X11_main=no |
---|
[2190] | 5324 | fi |
---|
| 5325 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5326 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5327 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5328 | fi |
---|
[2701] | 5329 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 |
---|
| 5330 | echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 |
---|
| 5331 | if test $ac_cv_lib_X11_main = yes; then |
---|
| 5332 | cat >>confdefs.h <<_ACEOF |
---|
| 5333 | #define HAVE_LIBX11 1 |
---|
| 5334 | _ACEOF |
---|
| 5335 | |
---|
| 5336 | LIBS="-lX11 $LIBS" |
---|
| 5337 | |
---|
[2190] | 5338 | fi |
---|
| 5339 | |
---|
[2701] | 5340 | # FIXME: Replace `main' with a function in `-lXt': |
---|
| 5341 | |
---|
| 5342 | echo "$as_me:$LINENO: checking for main in -lXt" >&5 |
---|
| 5343 | echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 |
---|
| 5344 | if test "${ac_cv_lib_Xt_main+set}" = set; then |
---|
| 5345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5346 | else |
---|
| 5347 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5348 | LIBS="-lXt $LIBS" |
---|
| 5349 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5350 | /* confdefs.h. */ |
---|
| 5351 | _ACEOF |
---|
| 5352 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5353 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5354 | /* end confdefs.h. */ |
---|
| 5355 | |
---|
| 5356 | |
---|
| 5357 | int |
---|
| 5358 | main () |
---|
| 5359 | { |
---|
| 5360 | main (); |
---|
| 5361 | ; |
---|
| 5362 | return 0; |
---|
| 5363 | } |
---|
| 5364 | _ACEOF |
---|
| 5365 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5367 | (eval $ac_link) 2>conftest.er1 |
---|
| 5368 | ac_status=$? |
---|
| 5369 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5370 | rm -f conftest.er1 |
---|
| 5371 | cat conftest.err >&5 |
---|
| 5372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5373 | (exit $ac_status); } && |
---|
| 5374 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5375 | || test ! -s conftest.err' |
---|
| 5376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5377 | (eval $ac_try) 2>&5 |
---|
| 5378 | ac_status=$? |
---|
| 5379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5380 | (exit $ac_status); }; } && |
---|
| 5381 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5383 | (eval $ac_try) 2>&5 |
---|
| 5384 | ac_status=$? |
---|
| 5385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5386 | (exit $ac_status); }; }; then |
---|
| 5387 | ac_cv_lib_Xt_main=yes |
---|
| 5388 | else |
---|
| 5389 | echo "$as_me: failed program was:" >&5 |
---|
| 5390 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5391 | |
---|
| 5392 | ac_cv_lib_Xt_main=no |
---|
[2190] | 5393 | fi |
---|
[2701] | 5394 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5395 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5396 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5397 | fi |
---|
| 5398 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 |
---|
| 5399 | echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 |
---|
| 5400 | if test $ac_cv_lib_Xt_main = yes; then |
---|
| 5401 | cat >>confdefs.h <<_ACEOF |
---|
| 5402 | #define HAVE_LIBXT 1 |
---|
| 5403 | _ACEOF |
---|
[2190] | 5404 | |
---|
[2701] | 5405 | LIBS="-lXt $LIBS" |
---|
| 5406 | |
---|
| 5407 | fi |
---|
| 5408 | |
---|
| 5409 | |
---|
| 5410 | |
---|
[2190] | 5411 | #checking for pthread libs |
---|
| 5412 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
| 5413 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
| 5414 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
| 5415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5416 | else |
---|
| 5417 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5418 | LIBS="-lpthread $LIBS" |
---|
| 5419 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5420 | /* confdefs.h. */ |
---|
| 5421 | _ACEOF |
---|
| 5422 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5423 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5424 | /* end confdefs.h. */ |
---|
| 5425 | |
---|
| 5426 | |
---|
| 5427 | int |
---|
| 5428 | main () |
---|
| 5429 | { |
---|
| 5430 | main (); |
---|
| 5431 | ; |
---|
| 5432 | return 0; |
---|
| 5433 | } |
---|
| 5434 | _ACEOF |
---|
| 5435 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5437 | (eval $ac_link) 2>conftest.er1 |
---|
| 5438 | ac_status=$? |
---|
| 5439 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5440 | rm -f conftest.er1 |
---|
| 5441 | cat conftest.err >&5 |
---|
| 5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5443 | (exit $ac_status); } && |
---|
| 5444 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5445 | || test ! -s conftest.err' |
---|
| 5446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5447 | (eval $ac_try) 2>&5 |
---|
| 5448 | ac_status=$? |
---|
| 5449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5450 | (exit $ac_status); }; } && |
---|
| 5451 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5453 | (eval $ac_try) 2>&5 |
---|
| 5454 | ac_status=$? |
---|
| 5455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5456 | (exit $ac_status); }; }; then |
---|
| 5457 | ac_cv_lib_pthread_main=yes |
---|
| 5458 | else |
---|
| 5459 | echo "$as_me: failed program was:" >&5 |
---|
| 5460 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5461 | |
---|
| 5462 | ac_cv_lib_pthread_main=no |
---|
| 5463 | fi |
---|
| 5464 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5465 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5466 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5467 | fi |
---|
| 5468 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
| 5469 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
| 5470 | if test $ac_cv_lib_pthread_main = yes; then |
---|
| 5471 | FOUND_pthread=yes |
---|
| 5472 | fi |
---|
| 5473 | |
---|
| 5474 | if test "$FOUND_pthread" = "yes" ; then |
---|
| 5475 | LIBS="$LIBS -lpthread" |
---|
| 5476 | fi |
---|
| 5477 | |
---|
| 5478 | |
---|
| 5479 | |
---|
| 5480 | |
---|
[1956] | 5481 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 5482 | |
---|
| 5483 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 5484 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 5485 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 5486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5487 | else |
---|
| 5488 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5489 | LIBS="-lm $LIBS" |
---|
| 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 | |
---|
| 5497 | |
---|
| 5498 | int |
---|
| 5499 | main () |
---|
| 5500 | { |
---|
| 5501 | main (); |
---|
| 5502 | ; |
---|
| 5503 | return 0; |
---|
| 5504 | } |
---|
| 5505 | _ACEOF |
---|
| 5506 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5508 | (eval $ac_link) 2>conftest.er1 |
---|
| 5509 | ac_status=$? |
---|
| 5510 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5511 | rm -f conftest.er1 |
---|
| 5512 | cat conftest.err >&5 |
---|
| 5513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5514 | (exit $ac_status); } && |
---|
| 5515 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5516 | || test ! -s conftest.err' |
---|
| 5517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5518 | (eval $ac_try) 2>&5 |
---|
| 5519 | ac_status=$? |
---|
| 5520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5521 | (exit $ac_status); }; } && |
---|
| 5522 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5524 | (eval $ac_try) 2>&5 |
---|
| 5525 | ac_status=$? |
---|
| 5526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5527 | (exit $ac_status); }; }; then |
---|
| 5528 | ac_cv_lib_m_main=yes |
---|
| 5529 | else |
---|
| 5530 | echo "$as_me: failed program was:" >&5 |
---|
| 5531 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5532 | |
---|
| 5533 | ac_cv_lib_m_main=no |
---|
| 5534 | fi |
---|
| 5535 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5536 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5537 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5538 | fi |
---|
| 5539 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 5540 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 5541 | if test $ac_cv_lib_m_main = yes; then |
---|
| 5542 | cat >>confdefs.h <<_ACEOF |
---|
| 5543 | #define HAVE_LIBM 1 |
---|
| 5544 | _ACEOF |
---|
| 5545 | |
---|
| 5546 | LIBS="-lm $LIBS" |
---|
| 5547 | |
---|
| 5548 | fi |
---|
| 5549 | |
---|
| 5550 | |
---|
[2018] | 5551 | LIBS="$LIBS `pkg-config --libs gtk+-2.0`" |
---|
| 5552 | |
---|
| 5553 | |
---|
[1956] | 5554 | # Checks for header files. |
---|
| 5555 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 5556 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 5557 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 5558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5559 | else |
---|
| 5560 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5561 | /* confdefs.h. */ |
---|
| 5562 | _ACEOF |
---|
| 5563 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5564 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5565 | /* end confdefs.h. */ |
---|
| 5566 | #include <stdlib.h> |
---|
| 5567 | #include <stdarg.h> |
---|
| 5568 | #include <string.h> |
---|
| 5569 | #include <float.h> |
---|
| 5570 | |
---|
| 5571 | int |
---|
| 5572 | main () |
---|
| 5573 | { |
---|
| 5574 | |
---|
| 5575 | ; |
---|
| 5576 | return 0; |
---|
| 5577 | } |
---|
| 5578 | _ACEOF |
---|
| 5579 | rm -f conftest.$ac_objext |
---|
| 5580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5581 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5582 | ac_status=$? |
---|
| 5583 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5584 | rm -f conftest.er1 |
---|
| 5585 | cat conftest.err >&5 |
---|
| 5586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5587 | (exit $ac_status); } && |
---|
| 5588 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5589 | || test ! -s conftest.err' |
---|
| 5590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5591 | (eval $ac_try) 2>&5 |
---|
| 5592 | ac_status=$? |
---|
| 5593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5594 | (exit $ac_status); }; } && |
---|
| 5595 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5597 | (eval $ac_try) 2>&5 |
---|
| 5598 | ac_status=$? |
---|
| 5599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5600 | (exit $ac_status); }; }; then |
---|
| 5601 | ac_cv_header_stdc=yes |
---|
| 5602 | else |
---|
| 5603 | echo "$as_me: failed program was:" >&5 |
---|
| 5604 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5605 | |
---|
| 5606 | ac_cv_header_stdc=no |
---|
| 5607 | fi |
---|
| 5608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5609 | |
---|
| 5610 | if test $ac_cv_header_stdc = yes; then |
---|
| 5611 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 5612 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5613 | /* confdefs.h. */ |
---|
| 5614 | _ACEOF |
---|
| 5615 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5616 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5617 | /* end confdefs.h. */ |
---|
| 5618 | #include <string.h> |
---|
| 5619 | |
---|
| 5620 | _ACEOF |
---|
| 5621 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 5622 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 5623 | : |
---|
| 5624 | else |
---|
| 5625 | ac_cv_header_stdc=no |
---|
| 5626 | fi |
---|
| 5627 | rm -f conftest* |
---|
| 5628 | |
---|
| 5629 | fi |
---|
| 5630 | |
---|
| 5631 | if test $ac_cv_header_stdc = yes; then |
---|
| 5632 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 5633 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5634 | /* confdefs.h. */ |
---|
| 5635 | _ACEOF |
---|
| 5636 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5637 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5638 | /* end confdefs.h. */ |
---|
| 5639 | #include <stdlib.h> |
---|
| 5640 | |
---|
| 5641 | _ACEOF |
---|
| 5642 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 5643 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 5644 | : |
---|
| 5645 | else |
---|
| 5646 | ac_cv_header_stdc=no |
---|
| 5647 | fi |
---|
| 5648 | rm -f conftest* |
---|
| 5649 | |
---|
| 5650 | fi |
---|
| 5651 | |
---|
| 5652 | if test $ac_cv_header_stdc = yes; then |
---|
| 5653 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 5654 | if test "$cross_compiling" = yes; then |
---|
| 5655 | : |
---|
| 5656 | else |
---|
| 5657 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5658 | /* confdefs.h. */ |
---|
| 5659 | _ACEOF |
---|
| 5660 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5661 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5662 | /* end confdefs.h. */ |
---|
| 5663 | #include <ctype.h> |
---|
| 5664 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 5665 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 5666 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 5667 | #else |
---|
| 5668 | # define ISLOWER(c) \ |
---|
| 5669 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 5670 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 5671 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 5672 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 5673 | #endif |
---|
| 5674 | |
---|
| 5675 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 5676 | int |
---|
| 5677 | main () |
---|
| 5678 | { |
---|
| 5679 | int i; |
---|
| 5680 | for (i = 0; i < 256; i++) |
---|
| 5681 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 5682 | || toupper (i) != TOUPPER (i)) |
---|
| 5683 | exit(2); |
---|
| 5684 | exit (0); |
---|
| 5685 | } |
---|
| 5686 | _ACEOF |
---|
| 5687 | rm -f conftest$ac_exeext |
---|
| 5688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5689 | (eval $ac_link) 2>&5 |
---|
| 5690 | ac_status=$? |
---|
| 5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5692 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 5693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5694 | (eval $ac_try) 2>&5 |
---|
| 5695 | ac_status=$? |
---|
| 5696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5697 | (exit $ac_status); }; }; then |
---|
| 5698 | : |
---|
| 5699 | else |
---|
| 5700 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5701 | echo "$as_me: failed program was:" >&5 |
---|
| 5702 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5703 | |
---|
| 5704 | ( exit $ac_status ) |
---|
| 5705 | ac_cv_header_stdc=no |
---|
| 5706 | fi |
---|
| 5707 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 5708 | fi |
---|
| 5709 | fi |
---|
| 5710 | fi |
---|
| 5711 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 5712 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 5713 | if test $ac_cv_header_stdc = yes; then |
---|
| 5714 | |
---|
| 5715 | cat >>confdefs.h <<\_ACEOF |
---|
| 5716 | #define STDC_HEADERS 1 |
---|
| 5717 | _ACEOF |
---|
| 5718 | |
---|
| 5719 | fi |
---|
| 5720 | |
---|
| 5721 | |
---|
| 5722 | |
---|
| 5723 | for ac_header in stdlib.h string.h |
---|
| 5724 | do |
---|
| 5725 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5726 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5727 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5728 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5729 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5731 | fi |
---|
| 5732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5734 | else |
---|
| 5735 | # Is the header compilable? |
---|
| 5736 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5737 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5738 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5739 | /* confdefs.h. */ |
---|
| 5740 | _ACEOF |
---|
| 5741 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5742 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5743 | /* end confdefs.h. */ |
---|
| 5744 | $ac_includes_default |
---|
| 5745 | #include <$ac_header> |
---|
| 5746 | _ACEOF |
---|
| 5747 | rm -f conftest.$ac_objext |
---|
| 5748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5749 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5750 | ac_status=$? |
---|
| 5751 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5752 | rm -f conftest.er1 |
---|
| 5753 | cat conftest.err >&5 |
---|
| 5754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5755 | (exit $ac_status); } && |
---|
| 5756 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5757 | || test ! -s conftest.err' |
---|
| 5758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5759 | (eval $ac_try) 2>&5 |
---|
| 5760 | ac_status=$? |
---|
| 5761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5762 | (exit $ac_status); }; } && |
---|
| 5763 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5765 | (eval $ac_try) 2>&5 |
---|
| 5766 | ac_status=$? |
---|
| 5767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5768 | (exit $ac_status); }; }; then |
---|
| 5769 | ac_header_compiler=yes |
---|
| 5770 | else |
---|
| 5771 | echo "$as_me: failed program was:" >&5 |
---|
| 5772 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5773 | |
---|
| 5774 | ac_header_compiler=no |
---|
| 5775 | fi |
---|
| 5776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5777 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5778 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5779 | |
---|
| 5780 | # Is the header present? |
---|
| 5781 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5782 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5783 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5784 | /* confdefs.h. */ |
---|
| 5785 | _ACEOF |
---|
| 5786 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5787 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5788 | /* end confdefs.h. */ |
---|
| 5789 | #include <$ac_header> |
---|
| 5790 | _ACEOF |
---|
| 5791 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5792 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5793 | ac_status=$? |
---|
| 5794 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5795 | rm -f conftest.er1 |
---|
| 5796 | cat conftest.err >&5 |
---|
| 5797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5798 | (exit $ac_status); } >/dev/null; then |
---|
| 5799 | if test -s conftest.err; then |
---|
| 5800 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5801 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5802 | else |
---|
| 5803 | ac_cpp_err= |
---|
| 5804 | fi |
---|
| 5805 | else |
---|
| 5806 | ac_cpp_err=yes |
---|
| 5807 | fi |
---|
| 5808 | if test -z "$ac_cpp_err"; then |
---|
| 5809 | ac_header_preproc=yes |
---|
| 5810 | else |
---|
| 5811 | echo "$as_me: failed program was:" >&5 |
---|
| 5812 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5813 | |
---|
| 5814 | ac_header_preproc=no |
---|
| 5815 | fi |
---|
| 5816 | rm -f conftest.err conftest.$ac_ext |
---|
| 5817 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5818 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5819 | |
---|
| 5820 | # So? What about this header? |
---|
| 5821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5822 | yes:no: ) |
---|
| 5823 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5824 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5825 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5826 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5827 | ac_header_preproc=yes |
---|
| 5828 | ;; |
---|
| 5829 | no:yes:* ) |
---|
| 5830 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5831 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5832 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5833 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5834 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5835 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5836 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5837 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5839 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5840 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5841 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5842 | ( |
---|
| 5843 | cat <<\_ASBOX |
---|
| 5844 | ## ------------------------------------------- ## |
---|
| 5845 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 5846 | ## ------------------------------------------- ## |
---|
| 5847 | _ASBOX |
---|
| 5848 | ) | |
---|
| 5849 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5850 | ;; |
---|
| 5851 | esac |
---|
| 5852 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5853 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5854 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5856 | else |
---|
| 5857 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5858 | fi |
---|
| 5859 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5860 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5861 | |
---|
| 5862 | fi |
---|
| 5863 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5864 | cat >>confdefs.h <<_ACEOF |
---|
| 5865 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5866 | _ACEOF |
---|
| 5867 | |
---|
| 5868 | fi |
---|
| 5869 | |
---|
| 5870 | done |
---|
| 5871 | |
---|
| 5872 | |
---|
| 5873 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 5874 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 5875 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 5876 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 5877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5878 | else |
---|
| 5879 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5880 | /* confdefs.h. */ |
---|
| 5881 | _ACEOF |
---|
| 5882 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5883 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5884 | /* end confdefs.h. */ |
---|
| 5885 | |
---|
| 5886 | #include <stdbool.h> |
---|
| 5887 | #ifndef bool |
---|
| 5888 | # error bool is not defined |
---|
| 5889 | #endif |
---|
| 5890 | #ifndef false |
---|
| 5891 | # error false is not defined |
---|
| 5892 | #endif |
---|
| 5893 | #if false |
---|
| 5894 | # error false is not 0 |
---|
| 5895 | #endif |
---|
| 5896 | #ifndef true |
---|
| 5897 | # error true is not defined |
---|
| 5898 | #endif |
---|
| 5899 | #if true != 1 |
---|
| 5900 | # error true is not 1 |
---|
| 5901 | #endif |
---|
| 5902 | #ifndef __bool_true_false_are_defined |
---|
| 5903 | # error __bool_true_false_are_defined is not defined |
---|
| 5904 | #endif |
---|
| 5905 | |
---|
| 5906 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 5907 | |
---|
| 5908 | char a[true == 1 ? 1 : -1]; |
---|
| 5909 | char b[false == 0 ? 1 : -1]; |
---|
| 5910 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 5911 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 5912 | bool e = &s; |
---|
| 5913 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 5914 | char g[true]; |
---|
| 5915 | char h[sizeof (_Bool)]; |
---|
| 5916 | char i[sizeof s.t]; |
---|
| 5917 | |
---|
| 5918 | int |
---|
| 5919 | main () |
---|
| 5920 | { |
---|
| 5921 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 5922 | ; |
---|
| 5923 | return 0; |
---|
| 5924 | } |
---|
| 5925 | _ACEOF |
---|
| 5926 | rm -f conftest.$ac_objext |
---|
| 5927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5928 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5929 | ac_status=$? |
---|
| 5930 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5931 | rm -f conftest.er1 |
---|
| 5932 | cat conftest.err >&5 |
---|
| 5933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5934 | (exit $ac_status); } && |
---|
| 5935 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5936 | || test ! -s conftest.err' |
---|
| 5937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5938 | (eval $ac_try) 2>&5 |
---|
| 5939 | ac_status=$? |
---|
| 5940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5941 | (exit $ac_status); }; } && |
---|
| 5942 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5944 | (eval $ac_try) 2>&5 |
---|
| 5945 | ac_status=$? |
---|
| 5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5947 | (exit $ac_status); }; }; then |
---|
| 5948 | ac_cv_header_stdbool_h=yes |
---|
| 5949 | else |
---|
| 5950 | echo "$as_me: failed program was:" >&5 |
---|
| 5951 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5952 | |
---|
| 5953 | ac_cv_header_stdbool_h=no |
---|
| 5954 | fi |
---|
| 5955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5956 | fi |
---|
| 5957 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 5958 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 5959 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 5960 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 5961 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 5962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5963 | else |
---|
| 5964 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5965 | /* confdefs.h. */ |
---|
| 5966 | _ACEOF |
---|
| 5967 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5968 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5969 | /* end confdefs.h. */ |
---|
| 5970 | $ac_includes_default |
---|
| 5971 | int |
---|
| 5972 | main () |
---|
| 5973 | { |
---|
| 5974 | if ((_Bool *) 0) |
---|
| 5975 | return 0; |
---|
| 5976 | if (sizeof (_Bool)) |
---|
| 5977 | return 0; |
---|
| 5978 | ; |
---|
| 5979 | return 0; |
---|
| 5980 | } |
---|
| 5981 | _ACEOF |
---|
| 5982 | rm -f conftest.$ac_objext |
---|
| 5983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5984 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5985 | ac_status=$? |
---|
| 5986 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5987 | rm -f conftest.er1 |
---|
| 5988 | cat conftest.err >&5 |
---|
| 5989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5990 | (exit $ac_status); } && |
---|
| 5991 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5992 | || test ! -s conftest.err' |
---|
| 5993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5994 | (eval $ac_try) 2>&5 |
---|
| 5995 | ac_status=$? |
---|
| 5996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5997 | (exit $ac_status); }; } && |
---|
| 5998 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6000 | (eval $ac_try) 2>&5 |
---|
| 6001 | ac_status=$? |
---|
| 6002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6003 | (exit $ac_status); }; }; then |
---|
| 6004 | ac_cv_type__Bool=yes |
---|
| 6005 | else |
---|
| 6006 | echo "$as_me: failed program was:" >&5 |
---|
| 6007 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6008 | |
---|
| 6009 | ac_cv_type__Bool=no |
---|
| 6010 | fi |
---|
| 6011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6012 | fi |
---|
| 6013 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 6014 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 6015 | if test $ac_cv_type__Bool = yes; then |
---|
| 6016 | |
---|
| 6017 | cat >>confdefs.h <<_ACEOF |
---|
| 6018 | #define HAVE__BOOL 1 |
---|
| 6019 | _ACEOF |
---|
| 6020 | |
---|
| 6021 | |
---|
| 6022 | fi |
---|
| 6023 | |
---|
| 6024 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 6025 | |
---|
| 6026 | cat >>confdefs.h <<\_ACEOF |
---|
| 6027 | #define HAVE_STDBOOL_H 1 |
---|
| 6028 | _ACEOF |
---|
| 6029 | |
---|
| 6030 | fi |
---|
| 6031 | |
---|
| 6032 | |
---|
| 6033 | # Checks for library functions. |
---|
| 6034 | |
---|
| 6035 | for ac_header in stdlib.h |
---|
| 6036 | do |
---|
| 6037 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6038 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6039 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6040 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6041 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6043 | fi |
---|
| 6044 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6045 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6046 | else |
---|
| 6047 | # Is the header compilable? |
---|
| 6048 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6049 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6050 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6051 | /* confdefs.h. */ |
---|
| 6052 | _ACEOF |
---|
| 6053 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6054 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6055 | /* end confdefs.h. */ |
---|
| 6056 | $ac_includes_default |
---|
| 6057 | #include <$ac_header> |
---|
| 6058 | _ACEOF |
---|
| 6059 | rm -f conftest.$ac_objext |
---|
| 6060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6061 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6062 | ac_status=$? |
---|
| 6063 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6064 | rm -f conftest.er1 |
---|
| 6065 | cat conftest.err >&5 |
---|
| 6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6067 | (exit $ac_status); } && |
---|
| 6068 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6069 | || test ! -s conftest.err' |
---|
| 6070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6071 | (eval $ac_try) 2>&5 |
---|
| 6072 | ac_status=$? |
---|
| 6073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6074 | (exit $ac_status); }; } && |
---|
| 6075 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6077 | (eval $ac_try) 2>&5 |
---|
| 6078 | ac_status=$? |
---|
| 6079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6080 | (exit $ac_status); }; }; then |
---|
| 6081 | ac_header_compiler=yes |
---|
| 6082 | else |
---|
| 6083 | echo "$as_me: failed program was:" >&5 |
---|
| 6084 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6085 | |
---|
| 6086 | ac_header_compiler=no |
---|
| 6087 | fi |
---|
| 6088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6089 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6090 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6091 | |
---|
| 6092 | # Is the header present? |
---|
| 6093 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6094 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6095 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6096 | /* confdefs.h. */ |
---|
| 6097 | _ACEOF |
---|
| 6098 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6099 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6100 | /* end confdefs.h. */ |
---|
| 6101 | #include <$ac_header> |
---|
| 6102 | _ACEOF |
---|
| 6103 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6104 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6105 | ac_status=$? |
---|
| 6106 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6107 | rm -f conftest.er1 |
---|
| 6108 | cat conftest.err >&5 |
---|
| 6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6110 | (exit $ac_status); } >/dev/null; then |
---|
| 6111 | if test -s conftest.err; then |
---|
| 6112 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6113 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6114 | else |
---|
| 6115 | ac_cpp_err= |
---|
| 6116 | fi |
---|
| 6117 | else |
---|
| 6118 | ac_cpp_err=yes |
---|
| 6119 | fi |
---|
| 6120 | if test -z "$ac_cpp_err"; then |
---|
| 6121 | ac_header_preproc=yes |
---|
| 6122 | else |
---|
| 6123 | echo "$as_me: failed program was:" >&5 |
---|
| 6124 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6125 | |
---|
| 6126 | ac_header_preproc=no |
---|
| 6127 | fi |
---|
| 6128 | rm -f conftest.err conftest.$ac_ext |
---|
| 6129 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6130 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6131 | |
---|
| 6132 | # So? What about this header? |
---|
| 6133 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6134 | yes:no: ) |
---|
| 6135 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6136 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6137 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6138 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6139 | ac_header_preproc=yes |
---|
| 6140 | ;; |
---|
| 6141 | no:yes:* ) |
---|
| 6142 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6143 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6144 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6145 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6146 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6147 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6148 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6149 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6150 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6151 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6152 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6153 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6154 | ( |
---|
| 6155 | cat <<\_ASBOX |
---|
| 6156 | ## ------------------------------------------- ## |
---|
| 6157 | ## Report this to orxonox-dev@mail.datacore.ch ## |
---|
| 6158 | ## ------------------------------------------- ## |
---|
| 6159 | _ASBOX |
---|
| 6160 | ) | |
---|
| 6161 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6162 | ;; |
---|
| 6163 | esac |
---|
| 6164 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6165 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6166 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6168 | else |
---|
| 6169 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6170 | fi |
---|
| 6171 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6172 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6173 | |
---|
| 6174 | fi |
---|
| 6175 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6176 | cat >>confdefs.h <<_ACEOF |
---|
| 6177 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6178 | _ACEOF |
---|
| 6179 | |
---|
| 6180 | fi |
---|
| 6181 | |
---|
| 6182 | done |
---|
| 6183 | |
---|
| 6184 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 6185 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 6186 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 6187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6188 | else |
---|
| 6189 | if test "$cross_compiling" = yes; then |
---|
| 6190 | ac_cv_func_malloc_0_nonnull=no |
---|
| 6191 | else |
---|
| 6192 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6193 | /* confdefs.h. */ |
---|
| 6194 | _ACEOF |
---|
| 6195 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6196 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6197 | /* end confdefs.h. */ |
---|
| 6198 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 6199 | # include <stdlib.h> |
---|
| 6200 | #else |
---|
| 6201 | char *malloc (); |
---|
| 6202 | #endif |
---|
| 6203 | |
---|
| 6204 | int |
---|
| 6205 | main () |
---|
| 6206 | { |
---|
| 6207 | exit (malloc (0) ? 0 : 1); |
---|
| 6208 | ; |
---|
| 6209 | return 0; |
---|
| 6210 | } |
---|
| 6211 | _ACEOF |
---|
| 6212 | rm -f conftest$ac_exeext |
---|
| 6213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6214 | (eval $ac_link) 2>&5 |
---|
| 6215 | ac_status=$? |
---|
| 6216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6217 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 6218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6219 | (eval $ac_try) 2>&5 |
---|
| 6220 | ac_status=$? |
---|
| 6221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6222 | (exit $ac_status); }; }; then |
---|
| 6223 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 6224 | else |
---|
| 6225 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 6226 | echo "$as_me: failed program was:" >&5 |
---|
| 6227 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6228 | |
---|
| 6229 | ( exit $ac_status ) |
---|
| 6230 | ac_cv_func_malloc_0_nonnull=no |
---|
| 6231 | fi |
---|
| 6232 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 6233 | fi |
---|
| 6234 | fi |
---|
| 6235 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 6236 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 6237 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 6238 | |
---|
| 6239 | cat >>confdefs.h <<\_ACEOF |
---|
| 6240 | #define HAVE_MALLOC 1 |
---|
| 6241 | _ACEOF |
---|
| 6242 | |
---|
| 6243 | else |
---|
| 6244 | cat >>confdefs.h <<\_ACEOF |
---|
| 6245 | #define HAVE_MALLOC 0 |
---|
| 6246 | _ACEOF |
---|
| 6247 | |
---|
| 6248 | case $LIBOBJS in |
---|
| 6249 | "malloc.$ac_objext" | \ |
---|
| 6250 | *" malloc.$ac_objext" | \ |
---|
| 6251 | "malloc.$ac_objext "* | \ |
---|
| 6252 | *" malloc.$ac_objext "* ) ;; |
---|
| 6253 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 6254 | esac |
---|
| 6255 | |
---|
| 6256 | |
---|
| 6257 | cat >>confdefs.h <<\_ACEOF |
---|
| 6258 | #define malloc rpl_malloc |
---|
| 6259 | _ACEOF |
---|
| 6260 | |
---|
| 6261 | fi |
---|
| 6262 | |
---|
| 6263 | |
---|
| 6264 | |
---|
| 6265 | |
---|
| 6266 | |
---|
| 6267 | for ac_func in bzero sqrt |
---|
| 6268 | do |
---|
| 6269 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 6270 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 6271 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 6272 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 6273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6274 | else |
---|
| 6275 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6276 | /* confdefs.h. */ |
---|
| 6277 | _ACEOF |
---|
| 6278 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6279 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6280 | /* end confdefs.h. */ |
---|
| 6281 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 6282 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 6283 | #define $ac_func innocuous_$ac_func |
---|
| 6284 | |
---|
| 6285 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 6286 | which can conflict with char $ac_func (); below. |
---|
| 6287 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 6288 | <limits.h> exists even on freestanding compilers. */ |
---|
| 6289 | |
---|
| 6290 | #ifdef __STDC__ |
---|
| 6291 | # include <limits.h> |
---|
| 6292 | #else |
---|
| 6293 | # include <assert.h> |
---|
| 6294 | #endif |
---|
| 6295 | |
---|
| 6296 | #undef $ac_func |
---|
| 6297 | |
---|
| 6298 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 6299 | #ifdef __cplusplus |
---|
| 6300 | extern "C" |
---|
| 6301 | { |
---|
| 6302 | #endif |
---|
| 6303 | /* We use char because int might match the return type of a gcc2 |
---|
| 6304 | builtin and then its argument prototype would still apply. */ |
---|
| 6305 | char $ac_func (); |
---|
| 6306 | /* The GNU C library defines this for functions which it implements |
---|
| 6307 | to always fail with ENOSYS. Some functions are actually named |
---|
| 6308 | something starting with __ and the normal name is an alias. */ |
---|
| 6309 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 6310 | choke me |
---|
| 6311 | #else |
---|
| 6312 | char (*f) () = $ac_func; |
---|
| 6313 | #endif |
---|
| 6314 | #ifdef __cplusplus |
---|
| 6315 | } |
---|
| 6316 | #endif |
---|
| 6317 | |
---|
| 6318 | int |
---|
| 6319 | main () |
---|
| 6320 | { |
---|
| 6321 | return f != $ac_func; |
---|
| 6322 | ; |
---|
| 6323 | return 0; |
---|
| 6324 | } |
---|
| 6325 | _ACEOF |
---|
| 6326 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6328 | (eval $ac_link) 2>conftest.er1 |
---|
| 6329 | ac_status=$? |
---|
| 6330 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6331 | rm -f conftest.er1 |
---|
| 6332 | cat conftest.err >&5 |
---|
| 6333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6334 | (exit $ac_status); } && |
---|
| 6335 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6336 | || test ! -s conftest.err' |
---|
| 6337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6338 | (eval $ac_try) 2>&5 |
---|
| 6339 | ac_status=$? |
---|
| 6340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6341 | (exit $ac_status); }; } && |
---|
| 6342 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6344 | (eval $ac_try) 2>&5 |
---|
| 6345 | ac_status=$? |
---|
| 6346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6347 | (exit $ac_status); }; }; then |
---|
| 6348 | eval "$as_ac_var=yes" |
---|
| 6349 | else |
---|
| 6350 | echo "$as_me: failed program was:" >&5 |
---|
| 6351 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6352 | |
---|
| 6353 | eval "$as_ac_var=no" |
---|
| 6354 | fi |
---|
| 6355 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6356 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6357 | fi |
---|
| 6358 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 6359 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 6360 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 6361 | cat >>confdefs.h <<_ACEOF |
---|
| 6362 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 6363 | _ACEOF |
---|
| 6364 | |
---|
| 6365 | fi |
---|
| 6366 | done |
---|
| 6367 | |
---|
| 6368 | |
---|
| 6369 | ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile" |
---|
| 6370 | |
---|
| 6371 | cat >confcache <<\_ACEOF |
---|
| 6372 | # This file is a shell script that caches the results of configure |
---|
| 6373 | # tests run on this system so they can be shared between configure |
---|
| 6374 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 6375 | # It is not useful on other systems. If it contains results you don't |
---|
| 6376 | # want to keep, you may remove or edit it. |
---|
| 6377 | # |
---|
| 6378 | # config.status only pays attention to the cache file if you give it |
---|
| 6379 | # the --recheck option to rerun configure. |
---|
| 6380 | # |
---|
| 6381 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 6382 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 6383 | # following values. |
---|
| 6384 | |
---|
| 6385 | _ACEOF |
---|
| 6386 | |
---|
| 6387 | # The following way of writing the cache mishandles newlines in values, |
---|
| 6388 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 6389 | # So, don't put newlines in cache variables' values. |
---|
| 6390 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 6391 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 6392 | { |
---|
| 6393 | (set) 2>&1 | |
---|
| 6394 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 6395 | *ac_space=\ *) |
---|
| 6396 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 6397 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 6398 | sed -n \ |
---|
| 6399 | "s/'/'\\\\''/g; |
---|
| 6400 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 6401 | ;; |
---|
| 6402 | *) |
---|
| 6403 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 6404 | sed -n \ |
---|
| 6405 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 6406 | ;; |
---|
| 6407 | esac; |
---|
| 6408 | } | |
---|
| 6409 | sed ' |
---|
| 6410 | t clear |
---|
| 6411 | : clear |
---|
| 6412 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 6413 | t end |
---|
| 6414 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 6415 | : end' >>confcache |
---|
| 6416 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 6417 | if test -w $cache_file; then |
---|
| 6418 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 6419 | cat confcache >$cache_file |
---|
| 6420 | else |
---|
| 6421 | echo "not updating unwritable cache $cache_file" |
---|
| 6422 | fi |
---|
| 6423 | fi |
---|
| 6424 | rm -f confcache |
---|
| 6425 | |
---|
| 6426 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 6427 | # Let make expand exec_prefix. |
---|
| 6428 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 6429 | |
---|
| 6430 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 6431 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 6432 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 6433 | # (actually we leave an empty line to preserve line numbers). |
---|
| 6434 | if test "x$srcdir" = x.; then |
---|
| 6435 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 6436 | s/:*\$(srcdir):*/:/; |
---|
| 6437 | s/:*\${srcdir}:*/:/; |
---|
| 6438 | s/:*@srcdir@:*/:/; |
---|
| 6439 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 6440 | s/:*$//; |
---|
| 6441 | s/^[^=]*=[ ]*$//; |
---|
| 6442 | }' |
---|
| 6443 | fi |
---|
| 6444 | |
---|
| 6445 | DEFS=-DHAVE_CONFIG_H |
---|
| 6446 | |
---|
| 6447 | ac_libobjs= |
---|
| 6448 | ac_ltlibobjs= |
---|
| 6449 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 6450 | # 1. Remove the extension, and $U if already installed. |
---|
| 6451 | ac_i=`echo "$ac_i" | |
---|
| 6452 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 6453 | # 2. Add them. |
---|
| 6454 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 6455 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 6456 | done |
---|
| 6457 | LIBOBJS=$ac_libobjs |
---|
| 6458 | |
---|
| 6459 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 6460 | |
---|
| 6461 | |
---|
| 6462 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 6463 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 6464 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6465 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 6466 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6467 | { (exit 1); exit 1; }; } |
---|
| 6468 | fi |
---|
| 6469 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 6470 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 6471 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6472 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 6473 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6474 | { (exit 1); exit 1; }; } |
---|
| 6475 | fi |
---|
| 6476 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 6477 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 6478 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 6479 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 6480 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 6481 | { (exit 1); exit 1; }; } |
---|
| 6482 | fi |
---|
| 6483 | |
---|
| 6484 | : ${CONFIG_STATUS=./config.status} |
---|
| 6485 | ac_clean_files_save=$ac_clean_files |
---|
| 6486 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 6487 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 6488 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 6489 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 6490 | #! $SHELL |
---|
| 6491 | # Generated by $as_me. |
---|
| 6492 | # Run this file to recreate the current configuration. |
---|
| 6493 | # Compiler output produced by configure, useful for debugging |
---|
| 6494 | # configure, is in config.log if it exists. |
---|
| 6495 | |
---|
| 6496 | debug=false |
---|
| 6497 | ac_cs_recheck=false |
---|
| 6498 | ac_cs_silent=false |
---|
| 6499 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 6500 | _ACEOF |
---|
| 6501 | |
---|
| 6502 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6503 | ## --------------------- ## |
---|
| 6504 | ## M4sh Initialization. ## |
---|
| 6505 | ## --------------------- ## |
---|
| 6506 | |
---|
| 6507 | # Be Bourne compatible |
---|
| 6508 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 6509 | emulate sh |
---|
| 6510 | NULLCMD=: |
---|
| 6511 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 6512 | # is contrary to our usage. Disable this feature. |
---|
| 6513 | alias -g '${1+"$@"}'='"$@"' |
---|
| 6514 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 6515 | set -o posix |
---|
| 6516 | fi |
---|
| 6517 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 6518 | |
---|
| 6519 | # Support unset when possible. |
---|
| 6520 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 6521 | as_unset=unset |
---|
| 6522 | else |
---|
| 6523 | as_unset=false |
---|
| 6524 | fi |
---|
| 6525 | |
---|
| 6526 | |
---|
| 6527 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 6528 | $as_unset ENV MAIL MAILPATH |
---|
| 6529 | PS1='$ ' |
---|
| 6530 | PS2='> ' |
---|
| 6531 | PS4='+ ' |
---|
| 6532 | |
---|
| 6533 | # NLS nuisances. |
---|
| 6534 | for as_var in \ |
---|
| 6535 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 6536 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 6537 | LC_TELEPHONE LC_TIME |
---|
| 6538 | do |
---|
| 6539 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 6540 | eval $as_var=C; export $as_var |
---|
| 6541 | else |
---|
| 6542 | $as_unset $as_var |
---|
| 6543 | fi |
---|
| 6544 | done |
---|
| 6545 | |
---|
| 6546 | # Required to use basename. |
---|
| 6547 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 6548 | as_expr=expr |
---|
| 6549 | else |
---|
| 6550 | as_expr=false |
---|
| 6551 | fi |
---|
| 6552 | |
---|
| 6553 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 6554 | as_basename=basename |
---|
| 6555 | else |
---|
| 6556 | as_basename=false |
---|
| 6557 | fi |
---|
| 6558 | |
---|
| 6559 | |
---|
| 6560 | # Name of the executable. |
---|
| 6561 | as_me=`$as_basename "$0" || |
---|
| 6562 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 6563 | X"$0" : 'X\(//\)$' \| \ |
---|
| 6564 | X"$0" : 'X\(/\)$' \| \ |
---|
| 6565 | . : '\(.\)' 2>/dev/null || |
---|
| 6566 | echo X/"$0" | |
---|
| 6567 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 6568 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 6569 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 6570 | s/.*/./; q'` |
---|
| 6571 | |
---|
| 6572 | |
---|
| 6573 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 6574 | # Avoid depending upon Character Ranges. |
---|
| 6575 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 6576 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 6577 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 6578 | as_cr_digits='0123456789' |
---|
| 6579 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 6580 | |
---|
| 6581 | # The user is always right. |
---|
| 6582 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 6583 | echo "#! /bin/sh" >conf$$.sh |
---|
| 6584 | echo "exit 0" >>conf$$.sh |
---|
| 6585 | chmod +x conf$$.sh |
---|
| 6586 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 6587 | PATH_SEPARATOR=';' |
---|
| 6588 | else |
---|
| 6589 | PATH_SEPARATOR=: |
---|
| 6590 | fi |
---|
| 6591 | rm -f conf$$.sh |
---|
| 6592 | fi |
---|
| 6593 | |
---|
| 6594 | |
---|
| 6595 | as_lineno_1=$LINENO |
---|
| 6596 | as_lineno_2=$LINENO |
---|
| 6597 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 6598 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 6599 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 6600 | # Find who we are. Look in the path if we contain no path at all |
---|
| 6601 | # relative or not. |
---|
| 6602 | case $0 in |
---|
| 6603 | *[\\/]* ) as_myself=$0 ;; |
---|
| 6604 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6605 | for as_dir in $PATH |
---|
| 6606 | do |
---|
| 6607 | IFS=$as_save_IFS |
---|
| 6608 | test -z "$as_dir" && as_dir=. |
---|
| 6609 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 6610 | done |
---|
| 6611 | |
---|
| 6612 | ;; |
---|
| 6613 | esac |
---|
| 6614 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 6615 | # in which case we are not to be found in the path. |
---|
| 6616 | if test "x$as_myself" = x; then |
---|
| 6617 | as_myself=$0 |
---|
| 6618 | fi |
---|
| 6619 | if test ! -f "$as_myself"; then |
---|
| 6620 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 6621 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 6622 | { (exit 1); exit 1; }; } |
---|
| 6623 | fi |
---|
| 6624 | case $CONFIG_SHELL in |
---|
| 6625 | '') |
---|
| 6626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6627 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 6628 | do |
---|
| 6629 | IFS=$as_save_IFS |
---|
| 6630 | test -z "$as_dir" && as_dir=. |
---|
| 6631 | for as_base in sh bash ksh sh5; do |
---|
| 6632 | case $as_dir in |
---|
| 6633 | /*) |
---|
| 6634 | if ("$as_dir/$as_base" -c ' |
---|
| 6635 | as_lineno_1=$LINENO |
---|
| 6636 | as_lineno_2=$LINENO |
---|
| 6637 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 6638 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 6639 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 6640 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 6641 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 6642 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 6643 | export CONFIG_SHELL |
---|
| 6644 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 6645 | fi;; |
---|
| 6646 | esac |
---|
| 6647 | done |
---|
| 6648 | done |
---|
| 6649 | ;; |
---|
| 6650 | esac |
---|
| 6651 | |
---|
| 6652 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 6653 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 6654 | # line-number line before each line; the second 'sed' does the real |
---|
| 6655 | # work. The second script uses 'N' to pair each line-number line |
---|
| 6656 | # with the numbered line, and appends trailing '-' during |
---|
| 6657 | # substitution so that $LINENO is not a special case at line end. |
---|
| 6658 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 6659 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 6660 | sed '=' <$as_myself | |
---|
| 6661 | sed ' |
---|
| 6662 | N |
---|
| 6663 | s,$,-, |
---|
| 6664 | : loop |
---|
| 6665 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 6666 | t loop |
---|
| 6667 | s,-$,, |
---|
| 6668 | s,^['$as_cr_digits']*\n,, |
---|
| 6669 | ' >$as_me.lineno && |
---|
| 6670 | chmod +x $as_me.lineno || |
---|
| 6671 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 6672 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 6673 | { (exit 1); exit 1; }; } |
---|
| 6674 | |
---|
| 6675 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 6676 | # (the dirname of $[0] is not the place where we might find the |
---|
| 6677 | # original and so on. Autoconf is especially sensible to this). |
---|
| 6678 | . ./$as_me.lineno |
---|
| 6679 | # Exit status is that of the last command. |
---|
| 6680 | exit |
---|
| 6681 | } |
---|
| 6682 | |
---|
| 6683 | |
---|
| 6684 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 6685 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 6686 | ' ECHO_T=' ' ;; |
---|
| 6687 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 6688 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 6689 | esac |
---|
| 6690 | |
---|
| 6691 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 6692 | as_expr=expr |
---|
| 6693 | else |
---|
| 6694 | as_expr=false |
---|
| 6695 | fi |
---|
| 6696 | |
---|
| 6697 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 6698 | echo >conf$$.file |
---|
| 6699 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 6700 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 6701 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 6702 | if test -f conf$$.exe; then |
---|
| 6703 | # Don't use ln at all; we don't have any links |
---|
| 6704 | as_ln_s='cp -p' |
---|
| 6705 | else |
---|
| 6706 | as_ln_s='ln -s' |
---|
| 6707 | fi |
---|
| 6708 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 6709 | as_ln_s=ln |
---|
| 6710 | else |
---|
| 6711 | as_ln_s='cp -p' |
---|
| 6712 | fi |
---|
| 6713 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 6714 | |
---|
| 6715 | if mkdir -p . 2>/dev/null; then |
---|
| 6716 | as_mkdir_p=: |
---|
| 6717 | else |
---|
| 6718 | test -d ./-p && rmdir ./-p |
---|
| 6719 | as_mkdir_p=false |
---|
| 6720 | fi |
---|
| 6721 | |
---|
| 6722 | as_executable_p="test -f" |
---|
| 6723 | |
---|
| 6724 | # Sed expression to map a string onto a valid CPP name. |
---|
| 6725 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 6726 | |
---|
| 6727 | # Sed expression to map a string onto a valid variable name. |
---|
| 6728 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 6729 | |
---|
| 6730 | |
---|
| 6731 | # IFS |
---|
| 6732 | # We need space, tab and new line, in precisely that order. |
---|
| 6733 | as_nl=' |
---|
| 6734 | ' |
---|
| 6735 | IFS=" $as_nl" |
---|
| 6736 | |
---|
| 6737 | # CDPATH. |
---|
| 6738 | $as_unset CDPATH |
---|
| 6739 | |
---|
| 6740 | exec 6>&1 |
---|
| 6741 | |
---|
| 6742 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 6743 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 6744 | # values after options handling. Logging --version etc. is OK. |
---|
| 6745 | exec 5>>config.log |
---|
| 6746 | { |
---|
| 6747 | echo |
---|
| 6748 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 6749 | ## Running $as_me. ## |
---|
| 6750 | _ASBOX |
---|
| 6751 | } >&5 |
---|
| 6752 | cat >&5 <<_CSEOF |
---|
| 6753 | |
---|
| 6754 | This file was extended by orxonox $as_me 0.1-pre-alpha, which was |
---|
| 6755 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 6756 | |
---|
| 6757 | CONFIG_FILES = $CONFIG_FILES |
---|
| 6758 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 6759 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 6760 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 6761 | $ $0 $@ |
---|
| 6762 | |
---|
| 6763 | _CSEOF |
---|
| 6764 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 6765 | echo >&5 |
---|
| 6766 | _ACEOF |
---|
| 6767 | |
---|
| 6768 | # Files that config.status was made for. |
---|
| 6769 | if test -n "$ac_config_files"; then |
---|
| 6770 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 6771 | fi |
---|
| 6772 | |
---|
| 6773 | if test -n "$ac_config_headers"; then |
---|
| 6774 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 6775 | fi |
---|
| 6776 | |
---|
| 6777 | if test -n "$ac_config_links"; then |
---|
| 6778 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 6779 | fi |
---|
| 6780 | |
---|
| 6781 | if test -n "$ac_config_commands"; then |
---|
| 6782 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 6783 | fi |
---|
| 6784 | |
---|
| 6785 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6786 | |
---|
| 6787 | ac_cs_usage="\ |
---|
| 6788 | \`$as_me' instantiates files from templates according to the |
---|
| 6789 | current configuration. |
---|
| 6790 | |
---|
| 6791 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 6792 | |
---|
| 6793 | -h, --help print this help, then exit |
---|
| 6794 | -V, --version print version number, then exit |
---|
| 6795 | -q, --quiet do not print progress messages |
---|
| 6796 | -d, --debug don't remove temporary files |
---|
| 6797 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 6798 | --file=FILE[:TEMPLATE] |
---|
| 6799 | instantiate the configuration file FILE |
---|
| 6800 | --header=FILE[:TEMPLATE] |
---|
| 6801 | instantiate the configuration header FILE |
---|
| 6802 | |
---|
| 6803 | Configuration files: |
---|
| 6804 | $config_files |
---|
| 6805 | |
---|
| 6806 | Configuration headers: |
---|
| 6807 | $config_headers |
---|
| 6808 | |
---|
| 6809 | Configuration commands: |
---|
| 6810 | $config_commands |
---|
| 6811 | |
---|
| 6812 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 6813 | _ACEOF |
---|
| 6814 | |
---|
| 6815 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6816 | ac_cs_version="\\ |
---|
| 6817 | orxonox config.status 0.1-pre-alpha |
---|
| 6818 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 6819 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 6820 | |
---|
| 6821 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 6822 | This config.status script is free software; the Free Software Foundation |
---|
| 6823 | gives unlimited permission to copy, distribute and modify it." |
---|
| 6824 | srcdir=$srcdir |
---|
| 6825 | INSTALL="$INSTALL" |
---|
| 6826 | _ACEOF |
---|
| 6827 | |
---|
| 6828 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6829 | # If no file are specified by the user, then we need to provide default |
---|
| 6830 | # value. By we need to know if files were specified by the user. |
---|
| 6831 | ac_need_defaults=: |
---|
| 6832 | while test $# != 0 |
---|
| 6833 | do |
---|
| 6834 | case $1 in |
---|
| 6835 | --*=*) |
---|
| 6836 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 6837 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 6838 | ac_shift=: |
---|
| 6839 | ;; |
---|
| 6840 | -*) |
---|
| 6841 | ac_option=$1 |
---|
| 6842 | ac_optarg=$2 |
---|
| 6843 | ac_shift=shift |
---|
| 6844 | ;; |
---|
| 6845 | *) # This is not an option, so the user has probably given explicit |
---|
| 6846 | # arguments. |
---|
| 6847 | ac_option=$1 |
---|
| 6848 | ac_need_defaults=false;; |
---|
| 6849 | esac |
---|
| 6850 | |
---|
| 6851 | case $ac_option in |
---|
| 6852 | # Handling of the options. |
---|
| 6853 | _ACEOF |
---|
| 6854 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6855 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 6856 | ac_cs_recheck=: ;; |
---|
| 6857 | --version | --vers* | -V ) |
---|
| 6858 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 6859 | --he | --h) |
---|
| 6860 | # Conflict between --help and --header |
---|
| 6861 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 6862 | Try \`$0 --help' for more information." >&5 |
---|
| 6863 | echo "$as_me: error: ambiguous option: $1 |
---|
| 6864 | Try \`$0 --help' for more information." >&2;} |
---|
| 6865 | { (exit 1); exit 1; }; };; |
---|
| 6866 | --help | --hel | -h ) |
---|
| 6867 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 6868 | --debug | --d* | -d ) |
---|
| 6869 | debug=: ;; |
---|
| 6870 | --file | --fil | --fi | --f ) |
---|
| 6871 | $ac_shift |
---|
| 6872 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 6873 | ac_need_defaults=false;; |
---|
| 6874 | --header | --heade | --head | --hea ) |
---|
| 6875 | $ac_shift |
---|
| 6876 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 6877 | ac_need_defaults=false;; |
---|
| 6878 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 6879 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 6880 | ac_cs_silent=: ;; |
---|
| 6881 | |
---|
| 6882 | # This is an error. |
---|
| 6883 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 6884 | Try \`$0 --help' for more information." >&5 |
---|
| 6885 | echo "$as_me: error: unrecognized option: $1 |
---|
| 6886 | Try \`$0 --help' for more information." >&2;} |
---|
| 6887 | { (exit 1); exit 1; }; } ;; |
---|
| 6888 | |
---|
| 6889 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 6890 | |
---|
| 6891 | esac |
---|
| 6892 | shift |
---|
| 6893 | done |
---|
| 6894 | |
---|
| 6895 | ac_configure_extra_args= |
---|
| 6896 | |
---|
| 6897 | if $ac_cs_silent; then |
---|
| 6898 | exec 6>/dev/null |
---|
| 6899 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 6900 | fi |
---|
| 6901 | |
---|
| 6902 | _ACEOF |
---|
| 6903 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6904 | if \$ac_cs_recheck; then |
---|
| 6905 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 6906 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 6907 | fi |
---|
| 6908 | |
---|
| 6909 | _ACEOF |
---|
| 6910 | |
---|
| 6911 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6912 | # |
---|
| 6913 | # INIT-COMMANDS section. |
---|
| 6914 | # |
---|
| 6915 | |
---|
| 6916 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 6917 | |
---|
| 6918 | _ACEOF |
---|
| 6919 | |
---|
| 6920 | |
---|
| 6921 | |
---|
| 6922 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6923 | for ac_config_target in $ac_config_targets |
---|
| 6924 | do |
---|
| 6925 | case "$ac_config_target" in |
---|
| 6926 | # Handling of arguments. |
---|
| 6927 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 6928 | "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; |
---|
| 6929 | "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; |
---|
| 6930 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
| 6931 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 6932 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 6933 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 6934 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 6935 | { (exit 1); exit 1; }; };; |
---|
| 6936 | esac |
---|
| 6937 | done |
---|
| 6938 | |
---|
| 6939 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 6940 | # then the envvar interface is used. Set only those that are not. |
---|
| 6941 | # We use the long form for the default assignment because of an extremely |
---|
| 6942 | # bizarre bug on SunOS 4.1.3. |
---|
| 6943 | if $ac_need_defaults; then |
---|
| 6944 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 6945 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 6946 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 6947 | fi |
---|
| 6948 | |
---|
| 6949 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 6950 | # simply because there is no reason to put it here, and in addition, |
---|
| 6951 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 6952 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 6953 | $debug || |
---|
| 6954 | { |
---|
| 6955 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 6956 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 6957 | } |
---|
| 6958 | |
---|
| 6959 | # Create a (secure) tmp directory for tmp files. |
---|
| 6960 | |
---|
| 6961 | { |
---|
| 6962 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 6963 | test -n "$tmp" && test -d "$tmp" |
---|
| 6964 | } || |
---|
| 6965 | { |
---|
| 6966 | tmp=./confstat$$-$RANDOM |
---|
| 6967 | (umask 077 && mkdir $tmp) |
---|
| 6968 | } || |
---|
| 6969 | { |
---|
| 6970 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 6971 | { (exit 1); exit 1; } |
---|
| 6972 | } |
---|
| 6973 | |
---|
| 6974 | _ACEOF |
---|
| 6975 | |
---|
| 6976 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6977 | |
---|
| 6978 | # |
---|
| 6979 | # CONFIG_FILES section. |
---|
| 6980 | # |
---|
| 6981 | |
---|
| 6982 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 6983 | # This happens for instance when ./config.status config.h |
---|
| 6984 | if test -n "\$CONFIG_FILES"; then |
---|
| 6985 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 6986 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 6987 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 6988 | s,@SHELL@,$SHELL,;t t |
---|
| 6989 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 6990 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 6991 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 6992 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 6993 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 6994 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 6995 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 6996 | s,@prefix@,$prefix,;t t |
---|
| 6997 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 6998 | s,@bindir@,$bindir,;t t |
---|
| 6999 | s,@sbindir@,$sbindir,;t t |
---|
| 7000 | s,@libexecdir@,$libexecdir,;t t |
---|
| 7001 | s,@datadir@,$datadir,;t t |
---|
| 7002 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 7003 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 7004 | s,@localstatedir@,$localstatedir,;t t |
---|
| 7005 | s,@libdir@,$libdir,;t t |
---|
| 7006 | s,@includedir@,$includedir,;t t |
---|
| 7007 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 7008 | s,@infodir@,$infodir,;t t |
---|
| 7009 | s,@mandir@,$mandir,;t t |
---|
| 7010 | s,@build_alias@,$build_alias,;t t |
---|
| 7011 | s,@host_alias@,$host_alias,;t t |
---|
| 7012 | s,@target_alias@,$target_alias,;t t |
---|
| 7013 | s,@DEFS@,$DEFS,;t t |
---|
| 7014 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 7015 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 7016 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 7017 | s,@LIBS@,$LIBS,;t t |
---|
| 7018 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 7019 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 7020 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 7021 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 7022 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 7023 | s,@VERSION@,$VERSION,;t t |
---|
| 7024 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 7025 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 7026 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 7027 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 7028 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 7029 | s,@AMTAR@,$AMTAR,;t t |
---|
| 7030 | s,@install_sh@,$install_sh,;t t |
---|
| 7031 | s,@STRIP@,$STRIP,;t t |
---|
| 7032 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 7033 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
[2706] | 7034 | s,@mkdir_p@,$mkdir_p,;t t |
---|
[1956] | 7035 | s,@AWK@,$AWK,;t t |
---|
| 7036 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 7037 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
| 7038 | s,@CXX@,$CXX,;t t |
---|
| 7039 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 7040 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 7041 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 7042 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 7043 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 7044 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 7045 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 7046 | s,@am__include@,$am__include,;t t |
---|
| 7047 | s,@am__quote@,$am__quote,;t t |
---|
| 7048 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 7049 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 7050 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 7051 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 7052 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 7053 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
| 7054 | s,@CC@,$CC,;t t |
---|
| 7055 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 7056 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 7057 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 7058 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 7059 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 7060 | s,@CPP@,$CPP,;t t |
---|
| 7061 | s,@EGREP@,$EGREP,;t t |
---|
[2701] | 7062 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[1956] | 7063 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 7064 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 7065 | CEOF |
---|
| 7066 | |
---|
| 7067 | _ACEOF |
---|
| 7068 | |
---|
| 7069 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7070 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 7071 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 7072 | ac_max_sed_lines=48 |
---|
| 7073 | ac_sed_frag=1 # Number of current file. |
---|
| 7074 | ac_beg=1 # First line for current file. |
---|
| 7075 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 7076 | ac_more_lines=: |
---|
| 7077 | ac_sed_cmds= |
---|
| 7078 | while $ac_more_lines; do |
---|
| 7079 | if test $ac_beg -gt 1; then |
---|
| 7080 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 7081 | else |
---|
| 7082 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 7083 | fi |
---|
| 7084 | if test ! -s $tmp/subs.frag; then |
---|
| 7085 | ac_more_lines=false |
---|
| 7086 | else |
---|
| 7087 | # The purpose of the label and of the branching condition is to |
---|
| 7088 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 7089 | # is no need to browse any of the substitutions). |
---|
| 7090 | # These are the two extra sed commands mentioned above. |
---|
| 7091 | (echo ':t |
---|
| 7092 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 7093 | if test -z "$ac_sed_cmds"; then |
---|
| 7094 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 7095 | else |
---|
| 7096 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 7097 | fi |
---|
| 7098 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 7099 | ac_beg=$ac_end |
---|
| 7100 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 7101 | fi |
---|
| 7102 | done |
---|
| 7103 | if test -z "$ac_sed_cmds"; then |
---|
| 7104 | ac_sed_cmds=cat |
---|
| 7105 | fi |
---|
| 7106 | fi # test -n "$CONFIG_FILES" |
---|
| 7107 | |
---|
| 7108 | _ACEOF |
---|
| 7109 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7110 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 7111 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 7112 | case $ac_file in |
---|
| 7113 | - | *:- | *:-:* ) # input from stdin |
---|
| 7114 | cat >$tmp/stdin |
---|
| 7115 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7116 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 7117 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7118 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 7119 | * ) ac_file_in=$ac_file.in ;; |
---|
| 7120 | esac |
---|
| 7121 | |
---|
| 7122 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 7123 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 7124 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7125 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 7126 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 7127 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 7128 | . : '\(.\)' 2>/dev/null || |
---|
| 7129 | echo X"$ac_file" | |
---|
| 7130 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7131 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7132 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7133 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7134 | s/.*/./; q'` |
---|
| 7135 | { if $as_mkdir_p; then |
---|
| 7136 | mkdir -p "$ac_dir" |
---|
| 7137 | else |
---|
| 7138 | as_dir="$ac_dir" |
---|
| 7139 | as_dirs= |
---|
| 7140 | while test ! -d "$as_dir"; do |
---|
| 7141 | as_dirs="$as_dir $as_dirs" |
---|
| 7142 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7143 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7144 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7145 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7146 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7147 | . : '\(.\)' 2>/dev/null || |
---|
| 7148 | echo X"$as_dir" | |
---|
| 7149 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7150 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7151 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7152 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7153 | s/.*/./; q'` |
---|
| 7154 | done |
---|
| 7155 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7156 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7157 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7158 | { (exit 1); exit 1; }; }; } |
---|
| 7159 | |
---|
| 7160 | ac_builddir=. |
---|
| 7161 | |
---|
| 7162 | if test "$ac_dir" != .; then |
---|
| 7163 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 7164 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 7165 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 7166 | else |
---|
| 7167 | ac_dir_suffix= ac_top_builddir= |
---|
| 7168 | fi |
---|
| 7169 | |
---|
| 7170 | case $srcdir in |
---|
| 7171 | .) # No --srcdir option. We are building in place. |
---|
| 7172 | ac_srcdir=. |
---|
| 7173 | if test -z "$ac_top_builddir"; then |
---|
| 7174 | ac_top_srcdir=. |
---|
| 7175 | else |
---|
| 7176 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 7177 | fi ;; |
---|
| 7178 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 7179 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 7180 | ac_top_srcdir=$srcdir ;; |
---|
| 7181 | *) # Relative path. |
---|
| 7182 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 7183 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 7184 | esac |
---|
| 7185 | |
---|
| 7186 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 7187 | # the directories may not exist. |
---|
| 7188 | case `pwd` in |
---|
| 7189 | .) ac_abs_builddir="$ac_dir";; |
---|
| 7190 | *) |
---|
| 7191 | case "$ac_dir" in |
---|
| 7192 | .) ac_abs_builddir=`pwd`;; |
---|
| 7193 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 7194 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 7195 | esac;; |
---|
| 7196 | esac |
---|
| 7197 | case $ac_abs_builddir in |
---|
| 7198 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7199 | *) |
---|
| 7200 | case ${ac_top_builddir}. in |
---|
| 7201 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 7202 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7203 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 7204 | esac;; |
---|
| 7205 | esac |
---|
| 7206 | case $ac_abs_builddir in |
---|
| 7207 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7208 | *) |
---|
| 7209 | case $ac_srcdir in |
---|
| 7210 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 7211 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7212 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 7213 | esac;; |
---|
| 7214 | esac |
---|
| 7215 | case $ac_abs_builddir in |
---|
| 7216 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7217 | *) |
---|
| 7218 | case $ac_top_srcdir in |
---|
| 7219 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 7220 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7221 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 7222 | esac;; |
---|
| 7223 | esac |
---|
| 7224 | |
---|
| 7225 | |
---|
| 7226 | case $INSTALL in |
---|
| 7227 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 7228 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 7229 | esac |
---|
| 7230 | |
---|
| 7231 | if test x"$ac_file" != x-; then |
---|
| 7232 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 7233 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 7234 | rm -f "$ac_file" |
---|
| 7235 | fi |
---|
| 7236 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 7237 | # use $as_me), people would be surprised to read: |
---|
| 7238 | # /* config.h. Generated by config.status. */ |
---|
| 7239 | if test x"$ac_file" = x-; then |
---|
| 7240 | configure_input= |
---|
| 7241 | else |
---|
| 7242 | configure_input="$ac_file. " |
---|
| 7243 | fi |
---|
| 7244 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 7245 | sed 's,.*/,,'` by configure." |
---|
| 7246 | |
---|
| 7247 | # First look for the input files in the build tree, otherwise in the |
---|
| 7248 | # src tree. |
---|
| 7249 | ac_file_inputs=`IFS=: |
---|
| 7250 | for f in $ac_file_in; do |
---|
| 7251 | case $f in |
---|
| 7252 | -) echo $tmp/stdin ;; |
---|
| 7253 | [\\/$]*) |
---|
| 7254 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 7255 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 7256 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7257 | { (exit 1); exit 1; }; } |
---|
| 7258 | echo "$f";; |
---|
| 7259 | *) # Relative |
---|
| 7260 | if test -f "$f"; then |
---|
| 7261 | # Build tree |
---|
| 7262 | echo "$f" |
---|
| 7263 | elif test -f "$srcdir/$f"; then |
---|
| 7264 | # Source tree |
---|
| 7265 | echo "$srcdir/$f" |
---|
| 7266 | else |
---|
| 7267 | # /dev/null tree |
---|
| 7268 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 7269 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7270 | { (exit 1); exit 1; }; } |
---|
| 7271 | fi;; |
---|
| 7272 | esac |
---|
| 7273 | done` || { (exit 1); exit 1; } |
---|
| 7274 | _ACEOF |
---|
| 7275 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 7276 | sed "$ac_vpsub |
---|
| 7277 | $extrasub |
---|
| 7278 | _ACEOF |
---|
| 7279 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7280 | :t |
---|
| 7281 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 7282 | s,@configure_input@,$configure_input,;t t |
---|
| 7283 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 7284 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 7285 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 7286 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 7287 | s,@builddir@,$ac_builddir,;t t |
---|
| 7288 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 7289 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 7290 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 7291 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 7292 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 7293 | rm -f $tmp/stdin |
---|
| 7294 | if test x"$ac_file" != x-; then |
---|
| 7295 | mv $tmp/out $ac_file |
---|
| 7296 | else |
---|
| 7297 | cat $tmp/out |
---|
| 7298 | rm -f $tmp/out |
---|
| 7299 | fi |
---|
| 7300 | |
---|
| 7301 | done |
---|
| 7302 | _ACEOF |
---|
| 7303 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7304 | |
---|
| 7305 | # |
---|
| 7306 | # CONFIG_HEADER section. |
---|
| 7307 | # |
---|
| 7308 | |
---|
| 7309 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 7310 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 7311 | # |
---|
| 7312 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 7313 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 7314 | ac_dB='[ ].*$,\1#\2' |
---|
| 7315 | ac_dC=' ' |
---|
| 7316 | ac_dD=',;t' |
---|
| 7317 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 7318 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 7319 | ac_uB='$,\1#\2define\3' |
---|
| 7320 | ac_uC=' ' |
---|
| 7321 | ac_uD=',;t' |
---|
| 7322 | |
---|
| 7323 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 7324 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 7325 | case $ac_file in |
---|
| 7326 | - | *:- | *:-:* ) # input from stdin |
---|
| 7327 | cat >$tmp/stdin |
---|
| 7328 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7329 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 7330 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7331 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 7332 | * ) ac_file_in=$ac_file.in ;; |
---|
| 7333 | esac |
---|
| 7334 | |
---|
| 7335 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 7336 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 7337 | |
---|
| 7338 | # First look for the input files in the build tree, otherwise in the |
---|
| 7339 | # src tree. |
---|
| 7340 | ac_file_inputs=`IFS=: |
---|
| 7341 | for f in $ac_file_in; do |
---|
| 7342 | case $f in |
---|
| 7343 | -) echo $tmp/stdin ;; |
---|
| 7344 | [\\/$]*) |
---|
| 7345 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 7346 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 7347 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7348 | { (exit 1); exit 1; }; } |
---|
| 7349 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 7350 | echo "$f";; |
---|
| 7351 | *) # Relative |
---|
| 7352 | if test -f "$f"; then |
---|
| 7353 | # Build tree |
---|
| 7354 | echo "$f" |
---|
| 7355 | elif test -f "$srcdir/$f"; then |
---|
| 7356 | # Source tree |
---|
| 7357 | echo "$srcdir/$f" |
---|
| 7358 | else |
---|
| 7359 | # /dev/null tree |
---|
| 7360 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 7361 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 7362 | { (exit 1); exit 1; }; } |
---|
| 7363 | fi;; |
---|
| 7364 | esac |
---|
| 7365 | done` || { (exit 1); exit 1; } |
---|
| 7366 | # Remove the trailing spaces. |
---|
| 7367 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 7368 | |
---|
| 7369 | _ACEOF |
---|
| 7370 | |
---|
| 7371 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 7372 | # `conftest.undefs', that substitutes the proper values into |
---|
| 7373 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 7374 | # templates, and the second `#undef' templates. |
---|
| 7375 | # And first: Protect against being on the right side of a sed subst in |
---|
| 7376 | # config.status. Protect against being in an unquoted here document |
---|
| 7377 | # in config.status. |
---|
| 7378 | rm -f conftest.defines conftest.undefs |
---|
| 7379 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 7380 | # Putting comments in sed scripts is not portable. |
---|
| 7381 | # |
---|
| 7382 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 7383 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 7384 | # See the Autoconf documentation for `clear'. |
---|
| 7385 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 7386 | s/[\\&,]/\\&/g |
---|
| 7387 | s,[\\$`],\\&,g |
---|
| 7388 | t clear |
---|
| 7389 | : clear |
---|
| 7390 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 7391 | t end |
---|
| 7392 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 7393 | : end |
---|
| 7394 | _ACEOF |
---|
| 7395 | # If some macros were called several times there might be several times |
---|
| 7396 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 7397 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 7398 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 7399 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 7400 | rm -f confdef2sed.sed |
---|
| 7401 | |
---|
| 7402 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 7403 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 7404 | # on some systems where configure will not decide to define it. |
---|
| 7405 | cat >>conftest.undefs <<\_ACEOF |
---|
| 7406 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 7407 | _ACEOF |
---|
| 7408 | |
---|
| 7409 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 7410 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 7411 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 7412 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 7413 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 7414 | echo ' :' >>$CONFIG_STATUS |
---|
| 7415 | rm -f conftest.tail |
---|
| 7416 | while grep . conftest.defines >/dev/null |
---|
| 7417 | do |
---|
| 7418 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 7419 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 7420 | # Speed up: don't consider the non `#define' lines. |
---|
| 7421 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 7422 | # Work around the forget-to-reset-the-flag bug. |
---|
| 7423 | echo 't clr' >>$CONFIG_STATUS |
---|
| 7424 | echo ': clr' >>$CONFIG_STATUS |
---|
| 7425 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 7426 | echo 'CEOF |
---|
| 7427 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 7428 | rm -f $tmp/in |
---|
| 7429 | mv $tmp/out $tmp/in |
---|
| 7430 | ' >>$CONFIG_STATUS |
---|
| 7431 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 7432 | rm -f conftest.defines |
---|
| 7433 | mv conftest.tail conftest.defines |
---|
| 7434 | done |
---|
| 7435 | rm -f conftest.defines |
---|
| 7436 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 7437 | echo >>$CONFIG_STATUS |
---|
| 7438 | |
---|
| 7439 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 7440 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 7441 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 7442 | rm -f conftest.tail |
---|
| 7443 | while grep . conftest.undefs >/dev/null |
---|
| 7444 | do |
---|
| 7445 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 7446 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 7447 | # Speed up: don't consider the non `#undef' |
---|
| 7448 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 7449 | # Work around the forget-to-reset-the-flag bug. |
---|
| 7450 | echo 't clr' >>$CONFIG_STATUS |
---|
| 7451 | echo ': clr' >>$CONFIG_STATUS |
---|
| 7452 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 7453 | echo 'CEOF |
---|
| 7454 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 7455 | rm -f $tmp/in |
---|
| 7456 | mv $tmp/out $tmp/in |
---|
| 7457 | ' >>$CONFIG_STATUS |
---|
| 7458 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 7459 | rm -f conftest.undefs |
---|
| 7460 | mv conftest.tail conftest.undefs |
---|
| 7461 | done |
---|
| 7462 | rm -f conftest.undefs |
---|
| 7463 | |
---|
| 7464 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7465 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 7466 | # use $as_me), people would be surprised to read: |
---|
| 7467 | # /* config.h. Generated by config.status. */ |
---|
| 7468 | if test x"$ac_file" = x-; then |
---|
| 7469 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 7470 | else |
---|
| 7471 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 7472 | fi |
---|
| 7473 | cat $tmp/in >>$tmp/config.h |
---|
| 7474 | rm -f $tmp/in |
---|
| 7475 | if test x"$ac_file" != x-; then |
---|
| 7476 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 7477 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 7478 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 7479 | else |
---|
| 7480 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 7481 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7482 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 7483 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 7484 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 7485 | . : '\(.\)' 2>/dev/null || |
---|
| 7486 | echo X"$ac_file" | |
---|
| 7487 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7488 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7489 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7490 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7491 | s/.*/./; q'` |
---|
| 7492 | { if $as_mkdir_p; then |
---|
| 7493 | mkdir -p "$ac_dir" |
---|
| 7494 | else |
---|
| 7495 | as_dir="$ac_dir" |
---|
| 7496 | as_dirs= |
---|
| 7497 | while test ! -d "$as_dir"; do |
---|
| 7498 | as_dirs="$as_dir $as_dirs" |
---|
| 7499 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7500 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7501 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7502 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7503 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7504 | . : '\(.\)' 2>/dev/null || |
---|
| 7505 | echo X"$as_dir" | |
---|
| 7506 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7507 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7508 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7509 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7510 | s/.*/./; q'` |
---|
| 7511 | done |
---|
| 7512 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7513 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7514 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7515 | { (exit 1); exit 1; }; }; } |
---|
| 7516 | |
---|
| 7517 | rm -f $ac_file |
---|
| 7518 | mv $tmp/config.h $ac_file |
---|
| 7519 | fi |
---|
| 7520 | else |
---|
| 7521 | cat $tmp/config.h |
---|
| 7522 | rm -f $tmp/config.h |
---|
| 7523 | fi |
---|
| 7524 | # Compute $ac_file's index in $config_headers. |
---|
| 7525 | _am_stamp_count=1 |
---|
| 7526 | for _am_header in $config_headers :; do |
---|
| 7527 | case $_am_header in |
---|
| 7528 | $ac_file | $ac_file:* ) |
---|
| 7529 | break ;; |
---|
| 7530 | * ) |
---|
| 7531 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 7532 | esac |
---|
| 7533 | done |
---|
| 7534 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 7535 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7536 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 7537 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 7538 | X$ac_file : 'X\(/\)' \| \ |
---|
| 7539 | . : '\(.\)' 2>/dev/null || |
---|
| 7540 | echo X$ac_file | |
---|
| 7541 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7542 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7543 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7544 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7545 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 7546 | done |
---|
| 7547 | _ACEOF |
---|
| 7548 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7549 | |
---|
| 7550 | # |
---|
| 7551 | # CONFIG_COMMANDS section. |
---|
| 7552 | # |
---|
| 7553 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 7554 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 7555 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 7556 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 7557 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7558 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 7559 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 7560 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 7561 | . : '\(.\)' 2>/dev/null || |
---|
| 7562 | echo X"$ac_dest" | |
---|
| 7563 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7564 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7565 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7566 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7567 | s/.*/./; q'` |
---|
| 7568 | { if $as_mkdir_p; then |
---|
| 7569 | mkdir -p "$ac_dir" |
---|
| 7570 | else |
---|
| 7571 | as_dir="$ac_dir" |
---|
| 7572 | as_dirs= |
---|
| 7573 | while test ! -d "$as_dir"; do |
---|
| 7574 | as_dirs="$as_dir $as_dirs" |
---|
| 7575 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7576 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7577 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7578 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7579 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7580 | . : '\(.\)' 2>/dev/null || |
---|
| 7581 | echo X"$as_dir" | |
---|
| 7582 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7583 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7584 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7585 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7586 | s/.*/./; q'` |
---|
| 7587 | done |
---|
| 7588 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7589 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 7590 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 7591 | { (exit 1); exit 1; }; }; } |
---|
| 7592 | |
---|
| 7593 | ac_builddir=. |
---|
| 7594 | |
---|
| 7595 | if test "$ac_dir" != .; then |
---|
| 7596 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 7597 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 7598 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 7599 | else |
---|
| 7600 | ac_dir_suffix= ac_top_builddir= |
---|
| 7601 | fi |
---|
| 7602 | |
---|
| 7603 | case $srcdir in |
---|
| 7604 | .) # No --srcdir option. We are building in place. |
---|
| 7605 | ac_srcdir=. |
---|
| 7606 | if test -z "$ac_top_builddir"; then |
---|
| 7607 | ac_top_srcdir=. |
---|
| 7608 | else |
---|
| 7609 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 7610 | fi ;; |
---|
| 7611 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 7612 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 7613 | ac_top_srcdir=$srcdir ;; |
---|
| 7614 | *) # Relative path. |
---|
| 7615 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 7616 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 7617 | esac |
---|
| 7618 | |
---|
| 7619 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 7620 | # the directories may not exist. |
---|
| 7621 | case `pwd` in |
---|
| 7622 | .) ac_abs_builddir="$ac_dir";; |
---|
| 7623 | *) |
---|
| 7624 | case "$ac_dir" in |
---|
| 7625 | .) ac_abs_builddir=`pwd`;; |
---|
| 7626 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 7627 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 7628 | esac;; |
---|
| 7629 | esac |
---|
| 7630 | case $ac_abs_builddir in |
---|
| 7631 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7632 | *) |
---|
| 7633 | case ${ac_top_builddir}. in |
---|
| 7634 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 7635 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 7636 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 7637 | esac;; |
---|
| 7638 | esac |
---|
| 7639 | case $ac_abs_builddir in |
---|
| 7640 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7641 | *) |
---|
| 7642 | case $ac_srcdir in |
---|
| 7643 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 7644 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 7645 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 7646 | esac;; |
---|
| 7647 | esac |
---|
| 7648 | case $ac_abs_builddir in |
---|
| 7649 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7650 | *) |
---|
| 7651 | case $ac_top_srcdir in |
---|
| 7652 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 7653 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 7654 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 7655 | esac;; |
---|
| 7656 | esac |
---|
| 7657 | |
---|
| 7658 | |
---|
| 7659 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 7660 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 7661 | case $ac_dest in |
---|
| 7662 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 7663 | # Strip MF so we end up with the name of the file. |
---|
| 7664 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 7665 | # Check whether this is an Automake generated Makefile or not. |
---|
| 7666 | # We used to match only the files named `Makefile.in', but |
---|
| 7667 | # some people rename them; so instead we look at the file content. |
---|
| 7668 | # Grep'ing the first line is not enough: some people post-process |
---|
| 7669 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 7670 | # So let's grep whole file. |
---|
| 7671 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 7672 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 7673 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7674 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 7675 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 7676 | X"$mf" : 'X\(/\)' \| \ |
---|
| 7677 | . : '\(.\)' 2>/dev/null || |
---|
| 7678 | echo X"$mf" | |
---|
| 7679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7681 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7682 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7683 | s/.*/./; q'` |
---|
| 7684 | else |
---|
| 7685 | continue |
---|
| 7686 | fi |
---|
| 7687 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 7688 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 7689 | # running `make'. |
---|
| 7690 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
| 7691 | test -z "$DEPDIR" && continue |
---|
| 7692 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
| 7693 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
| 7694 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 7695 | # We invoke sed twice because it is the simplest approach to |
---|
| 7696 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
| 7697 | for file in `sed -n -e ' |
---|
| 7698 | /^DEP_FILES = .*\\\\$/ { |
---|
| 7699 | s/^DEP_FILES = // |
---|
| 7700 | :loop |
---|
| 7701 | s/\\\\$// |
---|
| 7702 | p |
---|
| 7703 | n |
---|
| 7704 | /\\\\$/ b loop |
---|
| 7705 | p |
---|
| 7706 | } |
---|
| 7707 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 7708 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 7709 | # Make sure the directory exists. |
---|
| 7710 | test -f "$dirpart/$file" && continue |
---|
| 7711 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 7712 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7713 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 7714 | X"$file" : 'X\(//\)$' \| \ |
---|
| 7715 | X"$file" : 'X\(/\)' \| \ |
---|
| 7716 | . : '\(.\)' 2>/dev/null || |
---|
| 7717 | echo X"$file" | |
---|
| 7718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7720 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7721 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7722 | s/.*/./; q'` |
---|
| 7723 | { if $as_mkdir_p; then |
---|
| 7724 | mkdir -p $dirpart/$fdir |
---|
| 7725 | else |
---|
| 7726 | as_dir=$dirpart/$fdir |
---|
| 7727 | as_dirs= |
---|
| 7728 | while test ! -d "$as_dir"; do |
---|
| 7729 | as_dirs="$as_dir $as_dirs" |
---|
| 7730 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 7731 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 7732 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 7733 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 7734 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 7735 | . : '\(.\)' 2>/dev/null || |
---|
| 7736 | echo X"$as_dir" | |
---|
| 7737 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 7738 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 7739 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 7740 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 7741 | s/.*/./; q'` |
---|
| 7742 | done |
---|
| 7743 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 7744 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 7745 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 7746 | { (exit 1); exit 1; }; }; } |
---|
| 7747 | |
---|
| 7748 | # echo "creating $dirpart/$file" |
---|
| 7749 | echo '# dummy' > "$dirpart/$file" |
---|
| 7750 | done |
---|
| 7751 | done |
---|
| 7752 | ;; |
---|
| 7753 | esac |
---|
| 7754 | done |
---|
| 7755 | _ACEOF |
---|
| 7756 | |
---|
| 7757 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7758 | |
---|
| 7759 | { (exit 0); exit 0; } |
---|
| 7760 | _ACEOF |
---|
| 7761 | chmod +x $CONFIG_STATUS |
---|
| 7762 | ac_clean_files=$ac_clean_files_save |
---|
| 7763 | |
---|
| 7764 | |
---|
| 7765 | # configure is writing to config.log, and then calls config.status. |
---|
| 7766 | # config.status does its own redirection, appending to config.log. |
---|
| 7767 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 7768 | # by configure, so config.status won't be able to write to it; its |
---|
| 7769 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 7770 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 7771 | # appended to by config.status. When coming back to configure, we |
---|
| 7772 | # need to make the FD available again. |
---|
| 7773 | if test "$no_create" != yes; then |
---|
| 7774 | ac_cs_success=: |
---|
| 7775 | ac_config_status_args= |
---|
| 7776 | test "$silent" = yes && |
---|
| 7777 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 7778 | exec 5>/dev/null |
---|
| 7779 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 7780 | exec 5>>config.log |
---|
| 7781 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 7782 | # would make configure fail if this is the last instruction. |
---|
| 7783 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 7784 | fi |
---|
| 7785 | |
---|