[1956] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[3365] | 3 | # Generated by GNU Autoconf 2.59 for orxonox 0.2.1-pre-alpha. |
---|
[1956] | 4 | # |
---|
[3240] | 5 | # Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
[1956] | 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' |
---|
[3365] | 272 | PACKAGE_VERSION='0.2.1-pre-alpha' |
---|
| 273 | PACKAGE_STRING='orxonox 0.2.1-pre-alpha' |
---|
[3240] | 274 | PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch' |
---|
[1956] | 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 | |
---|
[3423] | 314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE GTHREAD_LIBS GTHREAD_CFLAGS HAVE_GTHREAD_TRUE HAVE_GTHREAD_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS' |
---|
[1956] | 315 | ac_subst_files='' |
---|
| 316 | |
---|
| 317 | # Initialize some variables set by options. |
---|
| 318 | ac_init_help= |
---|
| 319 | ac_init_version=false |
---|
| 320 | # The variables have the same names as the options, with |
---|
| 321 | # dashes changed to underlines. |
---|
| 322 | cache_file=/dev/null |
---|
| 323 | exec_prefix=NONE |
---|
| 324 | no_create= |
---|
| 325 | no_recursion= |
---|
| 326 | prefix=NONE |
---|
| 327 | program_prefix=NONE |
---|
| 328 | program_suffix=NONE |
---|
| 329 | program_transform_name=s,x,x, |
---|
| 330 | silent= |
---|
| 331 | site= |
---|
| 332 | srcdir= |
---|
| 333 | verbose= |
---|
| 334 | x_includes=NONE |
---|
| 335 | x_libraries=NONE |
---|
| 336 | |
---|
| 337 | # Installation directory options. |
---|
| 338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 339 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 340 | # by default will actually change. |
---|
| 341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 342 | bindir='${exec_prefix}/bin' |
---|
| 343 | sbindir='${exec_prefix}/sbin' |
---|
| 344 | libexecdir='${exec_prefix}/libexec' |
---|
| 345 | datadir='${prefix}/share' |
---|
| 346 | sysconfdir='${prefix}/etc' |
---|
| 347 | sharedstatedir='${prefix}/com' |
---|
| 348 | localstatedir='${prefix}/var' |
---|
| 349 | libdir='${exec_prefix}/lib' |
---|
| 350 | includedir='${prefix}/include' |
---|
| 351 | oldincludedir='/usr/include' |
---|
| 352 | infodir='${prefix}/info' |
---|
| 353 | mandir='${prefix}/man' |
---|
| 354 | |
---|
| 355 | ac_prev= |
---|
| 356 | for ac_option |
---|
| 357 | do |
---|
| 358 | # If the previous option needs an argument, assign it. |
---|
| 359 | if test -n "$ac_prev"; then |
---|
| 360 | eval "$ac_prev=\$ac_option" |
---|
| 361 | ac_prev= |
---|
| 362 | continue |
---|
| 363 | fi |
---|
| 364 | |
---|
| 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
| 366 | |
---|
| 367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 368 | |
---|
| 369 | case $ac_option in |
---|
| 370 | |
---|
| 371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 372 | ac_prev=bindir ;; |
---|
| 373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 374 | bindir=$ac_optarg ;; |
---|
| 375 | |
---|
| 376 | -build | --build | --buil | --bui | --bu) |
---|
| 377 | ac_prev=build_alias ;; |
---|
| 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 379 | build_alias=$ac_optarg ;; |
---|
| 380 | |
---|
| 381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 383 | ac_prev=cache_file ;; |
---|
| 384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 386 | cache_file=$ac_optarg ;; |
---|
| 387 | |
---|
| 388 | --config-cache | -C) |
---|
| 389 | cache_file=config.cache ;; |
---|
| 390 | |
---|
| 391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 392 | ac_prev=datadir ;; |
---|
| 393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 394 | | --da=*) |
---|
| 395 | datadir=$ac_optarg ;; |
---|
| 396 | |
---|
| 397 | -disable-* | --disable-*) |
---|
| 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 399 | # Reject names that are not valid shell variable names. |
---|
| 400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 402 | { (exit 1); exit 1; }; } |
---|
| 403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 404 | eval "enable_$ac_feature=no" ;; |
---|
| 405 | |
---|
| 406 | -enable-* | --enable-*) |
---|
| 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 408 | # Reject names that are not valid shell variable names. |
---|
| 409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 411 | { (exit 1); exit 1; }; } |
---|
| 412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 413 | case $ac_option in |
---|
| 414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 415 | *) ac_optarg=yes ;; |
---|
| 416 | esac |
---|
| 417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
| 418 | |
---|
| 419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 421 | | --exec | --exe | --ex) |
---|
| 422 | ac_prev=exec_prefix ;; |
---|
| 423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 425 | | --exec=* | --exe=* | --ex=*) |
---|
| 426 | exec_prefix=$ac_optarg ;; |
---|
| 427 | |
---|
| 428 | -gas | --gas | --ga | --g) |
---|
| 429 | # Obsolete; use --with-gas. |
---|
| 430 | with_gas=yes ;; |
---|
| 431 | |
---|
| 432 | -help | --help | --hel | --he | -h) |
---|
| 433 | ac_init_help=long ;; |
---|
| 434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 435 | ac_init_help=recursive ;; |
---|
| 436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 437 | ac_init_help=short ;; |
---|
| 438 | |
---|
| 439 | -host | --host | --hos | --ho) |
---|
| 440 | ac_prev=host_alias ;; |
---|
| 441 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 442 | host_alias=$ac_optarg ;; |
---|
| 443 | |
---|
| 444 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 445 | | --includ | --inclu | --incl | --inc) |
---|
| 446 | ac_prev=includedir ;; |
---|
| 447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 449 | includedir=$ac_optarg ;; |
---|
| 450 | |
---|
| 451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 452 | ac_prev=infodir ;; |
---|
| 453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 454 | infodir=$ac_optarg ;; |
---|
| 455 | |
---|
| 456 | -libdir | --libdir | --libdi | --libd) |
---|
| 457 | ac_prev=libdir ;; |
---|
| 458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 459 | libdir=$ac_optarg ;; |
---|
| 460 | |
---|
| 461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 462 | | --libexe | --libex | --libe) |
---|
| 463 | ac_prev=libexecdir ;; |
---|
| 464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 465 | | --libexe=* | --libex=* | --libe=*) |
---|
| 466 | libexecdir=$ac_optarg ;; |
---|
| 467 | |
---|
| 468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 469 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 470 | | --locals | --local | --loca | --loc | --lo) |
---|
| 471 | ac_prev=localstatedir ;; |
---|
| 472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 475 | localstatedir=$ac_optarg ;; |
---|
| 476 | |
---|
| 477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 478 | ac_prev=mandir ;; |
---|
| 479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 480 | mandir=$ac_optarg ;; |
---|
| 481 | |
---|
| 482 | -nfp | --nfp | --nf) |
---|
| 483 | # Obsolete; use --without-fp. |
---|
| 484 | with_fp=no ;; |
---|
| 485 | |
---|
| 486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 487 | | --no-cr | --no-c | -n) |
---|
| 488 | no_create=yes ;; |
---|
| 489 | |
---|
| 490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 492 | no_recursion=yes ;; |
---|
| 493 | |
---|
| 494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 496 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 497 | ac_prev=oldincludedir ;; |
---|
| 498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 501 | oldincludedir=$ac_optarg ;; |
---|
| 502 | |
---|
| 503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 504 | ac_prev=prefix ;; |
---|
| 505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 506 | prefix=$ac_optarg ;; |
---|
| 507 | |
---|
| 508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 509 | | --program-pre | --program-pr | --program-p) |
---|
| 510 | ac_prev=program_prefix ;; |
---|
| 511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 513 | program_prefix=$ac_optarg ;; |
---|
| 514 | |
---|
| 515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 516 | | --program-suf | --program-su | --program-s) |
---|
| 517 | ac_prev=program_suffix ;; |
---|
| 518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 520 | program_suffix=$ac_optarg ;; |
---|
| 521 | |
---|
| 522 | -program-transform-name | --program-transform-name \ |
---|
| 523 | | --program-transform-nam | --program-transform-na \ |
---|
| 524 | | --program-transform-n | --program-transform- \ |
---|
| 525 | | --program-transform | --program-transfor \ |
---|
| 526 | | --program-transfo | --program-transf \ |
---|
| 527 | | --program-trans | --program-tran \ |
---|
| 528 | | --progr-tra | --program-tr | --program-t) |
---|
| 529 | ac_prev=program_transform_name ;; |
---|
| 530 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 531 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 532 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 533 | | --program-transform=* | --program-transfor=* \ |
---|
| 534 | | --program-transfo=* | --program-transf=* \ |
---|
| 535 | | --program-trans=* | --program-tran=* \ |
---|
| 536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 537 | program_transform_name=$ac_optarg ;; |
---|
| 538 | |
---|
| 539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 540 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 541 | silent=yes ;; |
---|
| 542 | |
---|
| 543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 544 | ac_prev=sbindir ;; |
---|
| 545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 546 | | --sbi=* | --sb=*) |
---|
| 547 | sbindir=$ac_optarg ;; |
---|
| 548 | |
---|
| 549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 551 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 552 | | --sha | --sh) |
---|
| 553 | ac_prev=sharedstatedir ;; |
---|
| 554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 557 | | --sha=* | --sh=*) |
---|
| 558 | sharedstatedir=$ac_optarg ;; |
---|
| 559 | |
---|
| 560 | -site | --site | --sit) |
---|
| 561 | ac_prev=site ;; |
---|
| 562 | -site=* | --site=* | --sit=*) |
---|
| 563 | site=$ac_optarg ;; |
---|
| 564 | |
---|
| 565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 566 | ac_prev=srcdir ;; |
---|
| 567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 568 | srcdir=$ac_optarg ;; |
---|
| 569 | |
---|
| 570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 571 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 572 | ac_prev=sysconfdir ;; |
---|
| 573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 575 | sysconfdir=$ac_optarg ;; |
---|
| 576 | |
---|
| 577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 578 | ac_prev=target_alias ;; |
---|
| 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 580 | target_alias=$ac_optarg ;; |
---|
| 581 | |
---|
| 582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 583 | verbose=yes ;; |
---|
| 584 | |
---|
| 585 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 586 | ac_init_version=: ;; |
---|
| 587 | |
---|
| 588 | -with-* | --with-*) |
---|
| 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 590 | # Reject names that are not valid shell variable names. |
---|
| 591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 593 | { (exit 1); exit 1; }; } |
---|
| 594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 595 | case $ac_option in |
---|
| 596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 597 | *) ac_optarg=yes ;; |
---|
| 598 | esac |
---|
| 599 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
| 600 | |
---|
| 601 | -without-* | --without-*) |
---|
| 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 603 | # Reject names that are not valid shell variable names. |
---|
| 604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 606 | { (exit 1); exit 1; }; } |
---|
| 607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
| 608 | eval "with_$ac_package=no" ;; |
---|
| 609 | |
---|
| 610 | --x) |
---|
| 611 | # Obsolete; use --with-x. |
---|
| 612 | with_x=yes ;; |
---|
| 613 | |
---|
| 614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 615 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 616 | ac_prev=x_includes ;; |
---|
| 617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 619 | x_includes=$ac_optarg ;; |
---|
| 620 | |
---|
| 621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 623 | ac_prev=x_libraries ;; |
---|
| 624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 626 | x_libraries=$ac_optarg ;; |
---|
| 627 | |
---|
| 628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 629 | Try \`$0 --help' for more information." >&2 |
---|
| 630 | { (exit 1); exit 1; }; } |
---|
| 631 | ;; |
---|
| 632 | |
---|
| 633 | *=*) |
---|
| 634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 635 | # Reject names that are not valid shell variable names. |
---|
| 636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 638 | { (exit 1); exit 1; }; } |
---|
| 639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
| 640 | eval "$ac_envvar='$ac_optarg'" |
---|
| 641 | export $ac_envvar ;; |
---|
| 642 | |
---|
| 643 | *) |
---|
| 644 | # FIXME: should be removed in autoconf 3.0. |
---|
| 645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 649 | ;; |
---|
| 650 | |
---|
| 651 | esac |
---|
| 652 | done |
---|
| 653 | |
---|
| 654 | if test -n "$ac_prev"; then |
---|
| 655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 657 | { (exit 1); exit 1; }; } |
---|
[1853] | 658 | fi |
---|
| 659 | |
---|
[1956] | 660 | # Be sure to have absolute paths. |
---|
| 661 | for ac_var in exec_prefix prefix |
---|
| 662 | do |
---|
| 663 | eval ac_val=$`echo $ac_var` |
---|
| 664 | case $ac_val in |
---|
| 665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
| 666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 667 | { (exit 1); exit 1; }; };; |
---|
| 668 | esac |
---|
| 669 | done |
---|
[1853] | 670 | |
---|
[1956] | 671 | # Be sure to have absolute paths. |
---|
| 672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
| 673 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
| 674 | do |
---|
| 675 | eval ac_val=$`echo $ac_var` |
---|
| 676 | case $ac_val in |
---|
| 677 | [\\/$]* | ?:[\\/]* ) ;; |
---|
| 678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 679 | { (exit 1); exit 1; }; };; |
---|
| 680 | esac |
---|
| 681 | done |
---|
| 682 | |
---|
| 683 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 684 | # used to hold the argument of --host etc. |
---|
| 685 | # FIXME: To remove some day. |
---|
| 686 | build=$build_alias |
---|
| 687 | host=$host_alias |
---|
| 688 | target=$target_alias |
---|
| 689 | |
---|
| 690 | # FIXME: To remove some day. |
---|
| 691 | if test "x$host_alias" != x; then |
---|
| 692 | if test "x$build_alias" = x; then |
---|
| 693 | cross_compiling=maybe |
---|
| 694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 696 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 697 | cross_compiling=yes |
---|
| 698 | fi |
---|
[1853] | 699 | fi |
---|
| 700 | |
---|
[1956] | 701 | ac_tool_prefix= |
---|
| 702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 703 | |
---|
| 704 | test "$silent" = yes && exec 6>/dev/null |
---|
| 705 | |
---|
| 706 | |
---|
| 707 | # Find the source files, if location was not specified. |
---|
| 708 | if test -z "$srcdir"; then |
---|
| 709 | ac_srcdir_defaulted=yes |
---|
| 710 | # Try the directory containing this script, then its parent. |
---|
| 711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
| 712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 713 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 714 | X"$0" : 'X\(//\)$' \| \ |
---|
| 715 | X"$0" : 'X\(/\)' \| \ |
---|
| 716 | . : '\(.\)' 2>/dev/null || |
---|
| 717 | echo X"$0" | |
---|
| 718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 720 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 721 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 722 | s/.*/./; q'` |
---|
| 723 | srcdir=$ac_confdir |
---|
| 724 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 725 | srcdir=.. |
---|
| 726 | fi |
---|
| 727 | else |
---|
| 728 | ac_srcdir_defaulted=no |
---|
| 729 | fi |
---|
| 730 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 731 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
| 733 | { (exit 1); exit 1; }; } |
---|
| 734 | else |
---|
| 735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
| 736 | { (exit 1); exit 1; }; } |
---|
| 737 | fi |
---|
| 738 | fi |
---|
| 739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
| 740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
| 741 | { (exit 1); exit 1; }; } |
---|
| 742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
| 743 | ac_env_build_alias_set=${build_alias+set} |
---|
| 744 | ac_env_build_alias_value=$build_alias |
---|
| 745 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
| 746 | ac_cv_env_build_alias_value=$build_alias |
---|
| 747 | ac_env_host_alias_set=${host_alias+set} |
---|
| 748 | ac_env_host_alias_value=$host_alias |
---|
| 749 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
| 750 | ac_cv_env_host_alias_value=$host_alias |
---|
| 751 | ac_env_target_alias_set=${target_alias+set} |
---|
| 752 | ac_env_target_alias_value=$target_alias |
---|
| 753 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
| 754 | ac_cv_env_target_alias_value=$target_alias |
---|
| 755 | ac_env_CXX_set=${CXX+set} |
---|
| 756 | ac_env_CXX_value=$CXX |
---|
| 757 | ac_cv_env_CXX_set=${CXX+set} |
---|
| 758 | ac_cv_env_CXX_value=$CXX |
---|
| 759 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 760 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 761 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 762 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 764 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
| 765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
| 767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 771 | ac_env_CC_set=${CC+set} |
---|
| 772 | ac_env_CC_value=$CC |
---|
| 773 | ac_cv_env_CC_set=${CC+set} |
---|
| 774 | ac_cv_env_CC_value=$CC |
---|
| 775 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
| 776 | ac_env_CFLAGS_value=$CFLAGS |
---|
| 777 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
| 778 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
| 779 | ac_env_CPP_set=${CPP+set} |
---|
| 780 | ac_env_CPP_value=$CPP |
---|
| 781 | ac_cv_env_CPP_set=${CPP+set} |
---|
| 782 | ac_cv_env_CPP_value=$CPP |
---|
| 783 | |
---|
| 784 | # |
---|
| 785 | # Report the --help message. |
---|
| 786 | # |
---|
| 787 | if test "$ac_init_help" = "long"; then |
---|
| 788 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 789 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 790 | cat <<_ACEOF |
---|
[3365] | 791 | \`configure' configures orxonox 0.2.1-pre-alpha to adapt to many kinds of systems. |
---|
[1956] | 792 | |
---|
| 793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 794 | |
---|
| 795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 797 | |
---|
| 798 | Defaults for the options are specified in brackets. |
---|
| 799 | |
---|
| 800 | Configuration: |
---|
| 801 | -h, --help display this help and exit |
---|
| 802 | --help=short display options specific to this package |
---|
| 803 | --help=recursive display the short help of all the included packages |
---|
| 804 | -V, --version display version information and exit |
---|
| 805 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 806 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 807 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 808 | -n, --no-create do not create output files |
---|
| 809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 810 | |
---|
| 811 | _ACEOF |
---|
| 812 | |
---|
| 813 | cat <<_ACEOF |
---|
| 814 | Installation directories: |
---|
| 815 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 816 | [$ac_default_prefix] |
---|
| 817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 818 | [PREFIX] |
---|
| 819 | |
---|
| 820 | By default, \`make install' will install all the files in |
---|
| 821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 823 | for instance \`--prefix=\$HOME'. |
---|
| 824 | |
---|
| 825 | For better control, use the options below. |
---|
| 826 | |
---|
| 827 | Fine tuning of the installation directories: |
---|
| 828 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
| 832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 835 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 836 | --includedir=DIR C header files [PREFIX/include] |
---|
| 837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 838 | --infodir=DIR info documentation [PREFIX/info] |
---|
| 839 | --mandir=DIR man documentation [PREFIX/man] |
---|
| 840 | _ACEOF |
---|
| 841 | |
---|
| 842 | cat <<\_ACEOF |
---|
| 843 | |
---|
| 844 | Program names: |
---|
| 845 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 846 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
[2980] | 848 | |
---|
| 849 | System types: |
---|
| 850 | --build=BUILD configure for building on BUILD [guessed] |
---|
| 851 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
| 852 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
[1956] | 853 | _ACEOF |
---|
| 854 | fi |
---|
| 855 | |
---|
| 856 | if test -n "$ac_init_help"; then |
---|
| 857 | case $ac_init_help in |
---|
[3365] | 858 | short | recursive ) echo "Configuration of orxonox 0.2.1-pre-alpha:";; |
---|
[1956] | 859 | esac |
---|
| 860 | cat <<\_ACEOF |
---|
| 861 | |
---|
| 862 | Optional Features: |
---|
| 863 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 864 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
[2706] | 865 | --disable-dependency-tracking speeds up one-time build |
---|
| 866 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
[3205] | 867 | --enable-debug compiles in debug mode. Lots of debug info about the |
---|
| 868 | game. |
---|
[3424] | 869 | --enable-sub-projects also builds the subProjects while make from srcdir |
---|
[1956] | 870 | |
---|
[3173] | 871 | Optional Packages: |
---|
| 872 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 873 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
[3181] | 874 | --without-gtk Prevents GTK from being loaded |
---|
[3423] | 875 | --without-gthread Prevents gThread from being loaded |
---|
| 876 | --without-pthread Prevents pthread from being loaded |
---|
| 877 | --without-curl Prevents libcURL from being loaded |
---|
[3181] | 878 | --without-sdl-image Prevents SDL_image from being loaded |
---|
[3173] | 879 | |
---|
[1956] | 880 | Some influential environment variables: |
---|
| 881 | CXX C++ compiler command |
---|
| 882 | CXXFLAGS C++ compiler flags |
---|
| 883 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 884 | nonstandard directory <lib dir> |
---|
| 885 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 886 | headers in a nonstandard directory <include dir> |
---|
| 887 | CC C compiler command |
---|
| 888 | CFLAGS C compiler flags |
---|
| 889 | CPP C preprocessor |
---|
| 890 | |
---|
| 891 | Use these variables to override the choices made by `configure' or to help |
---|
| 892 | it to find libraries and programs with nonstandard names/locations. |
---|
| 893 | |
---|
[3240] | 894 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
[1956] | 895 | _ACEOF |
---|
| 896 | fi |
---|
| 897 | |
---|
| 898 | if test "$ac_init_help" = "recursive"; then |
---|
| 899 | # If there are subdirs, report their specific --help. |
---|
| 900 | ac_popdir=`pwd` |
---|
| 901 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 902 | test -d $ac_dir || continue |
---|
| 903 | ac_builddir=. |
---|
| 904 | |
---|
| 905 | if test "$ac_dir" != .; then |
---|
| 906 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 907 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 908 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 909 | else |
---|
| 910 | ac_dir_suffix= ac_top_builddir= |
---|
| 911 | fi |
---|
| 912 | |
---|
| 913 | case $srcdir in |
---|
| 914 | .) # No --srcdir option. We are building in place. |
---|
| 915 | ac_srcdir=. |
---|
| 916 | if test -z "$ac_top_builddir"; then |
---|
| 917 | ac_top_srcdir=. |
---|
| 918 | else |
---|
| 919 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 920 | fi ;; |
---|
| 921 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 922 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 923 | ac_top_srcdir=$srcdir ;; |
---|
| 924 | *) # Relative path. |
---|
| 925 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 926 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 927 | esac |
---|
| 928 | |
---|
| 929 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 930 | # the directories may not exist. |
---|
| 931 | case `pwd` in |
---|
| 932 | .) ac_abs_builddir="$ac_dir";; |
---|
| 933 | *) |
---|
| 934 | case "$ac_dir" in |
---|
| 935 | .) ac_abs_builddir=`pwd`;; |
---|
| 936 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 937 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 938 | esac;; |
---|
| 939 | esac |
---|
| 940 | case $ac_abs_builddir in |
---|
| 941 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 942 | *) |
---|
| 943 | case ${ac_top_builddir}. in |
---|
| 944 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 945 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 946 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 947 | esac;; |
---|
| 948 | esac |
---|
| 949 | case $ac_abs_builddir in |
---|
| 950 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 951 | *) |
---|
| 952 | case $ac_srcdir in |
---|
| 953 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 954 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 955 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 956 | esac;; |
---|
| 957 | esac |
---|
| 958 | case $ac_abs_builddir in |
---|
| 959 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 960 | *) |
---|
| 961 | case $ac_top_srcdir in |
---|
| 962 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 963 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 964 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 965 | esac;; |
---|
| 966 | esac |
---|
| 967 | |
---|
| 968 | cd $ac_dir |
---|
| 969 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 970 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 971 | echo |
---|
| 972 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 973 | elif test -f $ac_srcdir/configure; then |
---|
| 974 | echo |
---|
| 975 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 976 | elif test -f $ac_srcdir/configure.ac || |
---|
| 977 | test -f $ac_srcdir/configure.in; then |
---|
| 978 | echo |
---|
| 979 | $ac_configure --help |
---|
| 980 | else |
---|
| 981 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 982 | fi |
---|
| 983 | cd $ac_popdir |
---|
| 984 | done |
---|
| 985 | fi |
---|
| 986 | |
---|
| 987 | test -n "$ac_init_help" && exit 0 |
---|
| 988 | if $ac_init_version; then |
---|
| 989 | cat <<\_ACEOF |
---|
[3365] | 990 | orxonox configure 0.2.1-pre-alpha |
---|
[1956] | 991 | generated by GNU Autoconf 2.59 |
---|
| 992 | |
---|
| 993 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 994 | This configure script is free software; the Free Software Foundation |
---|
| 995 | gives unlimited permission to copy, distribute and modify it. |
---|
| 996 | _ACEOF |
---|
| 997 | exit 0 |
---|
| 998 | fi |
---|
| 999 | exec 5>config.log |
---|
| 1000 | cat >&5 <<_ACEOF |
---|
| 1001 | This file contains any messages produced by compilers while |
---|
| 1002 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1003 | |
---|
[3365] | 1004 | It was created by orxonox $as_me 0.2.1-pre-alpha, which was |
---|
[1956] | 1005 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 1006 | |
---|
| 1007 | $ $0 $@ |
---|
| 1008 | |
---|
| 1009 | _ACEOF |
---|
| 1010 | { |
---|
| 1011 | cat <<_ASUNAME |
---|
| 1012 | ## --------- ## |
---|
| 1013 | ## Platform. ## |
---|
| 1014 | ## --------- ## |
---|
| 1015 | |
---|
| 1016 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1017 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1018 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1019 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1020 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1021 | |
---|
| 1022 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1023 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1024 | |
---|
| 1025 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1026 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1027 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1028 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1029 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1030 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1031 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1032 | |
---|
| 1033 | _ASUNAME |
---|
| 1034 | |
---|
| 1035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1036 | for as_dir in $PATH |
---|
| 1037 | do |
---|
| 1038 | IFS=$as_save_IFS |
---|
| 1039 | test -z "$as_dir" && as_dir=. |
---|
| 1040 | echo "PATH: $as_dir" |
---|
| 1041 | done |
---|
| 1042 | |
---|
| 1043 | } >&5 |
---|
| 1044 | |
---|
| 1045 | cat >&5 <<_ACEOF |
---|
| 1046 | |
---|
| 1047 | |
---|
| 1048 | ## ----------- ## |
---|
| 1049 | ## Core tests. ## |
---|
| 1050 | ## ----------- ## |
---|
| 1051 | |
---|
| 1052 | _ACEOF |
---|
| 1053 | |
---|
| 1054 | |
---|
| 1055 | # Keep a trace of the command line. |
---|
| 1056 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1057 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1058 | # Also quote any args containing shell meta-characters. |
---|
| 1059 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1060 | ac_configure_args= |
---|
| 1061 | ac_configure_args0= |
---|
| 1062 | ac_configure_args1= |
---|
| 1063 | ac_sep= |
---|
| 1064 | ac_must_keep_next=false |
---|
| 1065 | for ac_pass in 1 2 |
---|
| 1066 | do |
---|
| 1067 | for ac_arg |
---|
| 1068 | do |
---|
| 1069 | case $ac_arg in |
---|
| 1070 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1071 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1072 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1073 | continue ;; |
---|
| 1074 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1075 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1076 | esac |
---|
| 1077 | case $ac_pass in |
---|
| 1078 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1079 | 2) |
---|
| 1080 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1081 | if test $ac_must_keep_next = true; then |
---|
| 1082 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1083 | else |
---|
| 1084 | case $ac_arg in |
---|
| 1085 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1086 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1087 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1088 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1089 | case "$ac_configure_args0 " in |
---|
| 1090 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1091 | esac |
---|
| 1092 | ;; |
---|
| 1093 | -* ) ac_must_keep_next=true ;; |
---|
| 1094 | esac |
---|
| 1095 | fi |
---|
| 1096 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1097 | # Get rid of the leading space. |
---|
| 1098 | ac_sep=" " |
---|
| 1099 | ;; |
---|
| 1100 | esac |
---|
| 1101 | done |
---|
| 1102 | done |
---|
| 1103 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1104 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1105 | |
---|
| 1106 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1107 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1108 | # would cause problems or look ugly. |
---|
| 1109 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1110 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1111 | trap 'exit_status=$? |
---|
| 1112 | # Save into config.log some information that might help in debugging. |
---|
| 1113 | { |
---|
| 1114 | echo |
---|
| 1115 | |
---|
| 1116 | cat <<\_ASBOX |
---|
| 1117 | ## ---------------- ## |
---|
| 1118 | ## Cache variables. ## |
---|
| 1119 | ## ---------------- ## |
---|
| 1120 | _ASBOX |
---|
| 1121 | echo |
---|
| 1122 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1123 | { |
---|
| 1124 | (set) 2>&1 | |
---|
| 1125 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1126 | *ac_space=\ *) |
---|
| 1127 | sed -n \ |
---|
| 1128 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1129 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1130 | ;; |
---|
| 1131 | *) |
---|
| 1132 | sed -n \ |
---|
| 1133 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1134 | ;; |
---|
| 1135 | esac; |
---|
| 1136 | } |
---|
| 1137 | echo |
---|
| 1138 | |
---|
| 1139 | cat <<\_ASBOX |
---|
| 1140 | ## ----------------- ## |
---|
| 1141 | ## Output variables. ## |
---|
| 1142 | ## ----------------- ## |
---|
| 1143 | _ASBOX |
---|
| 1144 | echo |
---|
| 1145 | for ac_var in $ac_subst_vars |
---|
| 1146 | do |
---|
| 1147 | eval ac_val=$`echo $ac_var` |
---|
| 1148 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1149 | done | sort |
---|
| 1150 | echo |
---|
| 1151 | |
---|
| 1152 | if test -n "$ac_subst_files"; then |
---|
| 1153 | cat <<\_ASBOX |
---|
| 1154 | ## ------------- ## |
---|
| 1155 | ## Output files. ## |
---|
| 1156 | ## ------------- ## |
---|
| 1157 | _ASBOX |
---|
| 1158 | echo |
---|
| 1159 | for ac_var in $ac_subst_files |
---|
| 1160 | do |
---|
| 1161 | eval ac_val=$`echo $ac_var` |
---|
| 1162 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1163 | done | sort |
---|
| 1164 | echo |
---|
| 1165 | fi |
---|
| 1166 | |
---|
| 1167 | if test -s confdefs.h; then |
---|
| 1168 | cat <<\_ASBOX |
---|
| 1169 | ## ----------- ## |
---|
| 1170 | ## confdefs.h. ## |
---|
| 1171 | ## ----------- ## |
---|
| 1172 | _ASBOX |
---|
| 1173 | echo |
---|
| 1174 | sed "/^$/d" confdefs.h | sort |
---|
| 1175 | echo |
---|
| 1176 | fi |
---|
| 1177 | test "$ac_signal" != 0 && |
---|
| 1178 | echo "$as_me: caught signal $ac_signal" |
---|
| 1179 | echo "$as_me: exit $exit_status" |
---|
| 1180 | } >&5 |
---|
| 1181 | rm -f core *.core && |
---|
| 1182 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1183 | exit $exit_status |
---|
| 1184 | ' 0 |
---|
| 1185 | for ac_signal in 1 2 13 15; do |
---|
| 1186 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1187 | done |
---|
| 1188 | ac_signal=0 |
---|
| 1189 | |
---|
| 1190 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1191 | rm -rf conftest* confdefs.h |
---|
| 1192 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1193 | echo >confdefs.h |
---|
| 1194 | |
---|
| 1195 | # Predefined preprocessor variables. |
---|
| 1196 | |
---|
| 1197 | cat >>confdefs.h <<_ACEOF |
---|
| 1198 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1199 | _ACEOF |
---|
| 1200 | |
---|
| 1201 | |
---|
| 1202 | cat >>confdefs.h <<_ACEOF |
---|
| 1203 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1204 | _ACEOF |
---|
| 1205 | |
---|
| 1206 | |
---|
| 1207 | cat >>confdefs.h <<_ACEOF |
---|
| 1208 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1209 | _ACEOF |
---|
| 1210 | |
---|
| 1211 | |
---|
| 1212 | cat >>confdefs.h <<_ACEOF |
---|
| 1213 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1214 | _ACEOF |
---|
| 1215 | |
---|
| 1216 | |
---|
| 1217 | cat >>confdefs.h <<_ACEOF |
---|
| 1218 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1219 | _ACEOF |
---|
| 1220 | |
---|
| 1221 | |
---|
| 1222 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1223 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1224 | if test -z "$CONFIG_SITE"; then |
---|
| 1225 | if test "x$prefix" != xNONE; then |
---|
| 1226 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1227 | else |
---|
| 1228 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1229 | fi |
---|
| 1230 | fi |
---|
| 1231 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1232 | if test -r "$ac_site_file"; then |
---|
| 1233 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1234 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1235 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1236 | . "$ac_site_file" |
---|
| 1237 | fi |
---|
| 1238 | done |
---|
| 1239 | |
---|
| 1240 | if test -r "$cache_file"; then |
---|
| 1241 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1242 | # files actually), so we avoid doing that. |
---|
| 1243 | if test -f "$cache_file"; then |
---|
| 1244 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1245 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1246 | case $cache_file in |
---|
| 1247 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1248 | *) . ./$cache_file;; |
---|
| 1249 | esac |
---|
| 1250 | fi |
---|
| 1251 | else |
---|
| 1252 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1253 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1254 | >$cache_file |
---|
| 1255 | fi |
---|
| 1256 | |
---|
| 1257 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1258 | # value. |
---|
| 1259 | ac_cache_corrupted=false |
---|
| 1260 | for ac_var in `(set) 2>&1 | |
---|
| 1261 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1262 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1263 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1264 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1265 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1266 | case $ac_old_set,$ac_new_set in |
---|
| 1267 | set,) |
---|
| 1268 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1269 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1270 | ac_cache_corrupted=: ;; |
---|
| 1271 | ,set) |
---|
| 1272 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1273 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1274 | ac_cache_corrupted=: ;; |
---|
| 1275 | ,);; |
---|
| 1276 | *) |
---|
| 1277 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1278 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1279 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1280 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1281 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1282 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1283 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1284 | ac_cache_corrupted=: |
---|
| 1285 | fi;; |
---|
| 1286 | esac |
---|
| 1287 | # Pass precious variables to config.status. |
---|
| 1288 | if test "$ac_new_set" = set; then |
---|
| 1289 | case $ac_new_val in |
---|
| 1290 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1291 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1292 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1293 | esac |
---|
| 1294 | case " $ac_configure_args " in |
---|
| 1295 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1296 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1297 | esac |
---|
| 1298 | fi |
---|
| 1299 | done |
---|
| 1300 | if $ac_cache_corrupted; then |
---|
| 1301 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1302 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1303 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1304 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1305 | { (exit 1); exit 1; }; } |
---|
| 1306 | fi |
---|
| 1307 | |
---|
| 1308 | ac_ext=c |
---|
| 1309 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1313 | |
---|
| 1314 | |
---|
| 1315 | |
---|
| 1316 | |
---|
| 1317 | |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | |
---|
| 1326 | |
---|
| 1327 | |
---|
| 1328 | |
---|
| 1329 | |
---|
| 1330 | |
---|
| 1331 | |
---|
| 1332 | |
---|
| 1333 | |
---|
| 1334 | |
---|
| 1335 | |
---|
| 1336 | |
---|
| 1337 | |
---|
| 1338 | |
---|
| 1339 | |
---|
[2980] | 1340 | |
---|
[3424] | 1341 | ## Detect the canonical host and target build environment. |
---|
[1956] | 1342 | ac_aux_dir= |
---|
| 1343 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1344 | if test -f $ac_dir/install-sh; then |
---|
| 1345 | ac_aux_dir=$ac_dir |
---|
| 1346 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1347 | break |
---|
| 1348 | elif test -f $ac_dir/install.sh; then |
---|
| 1349 | ac_aux_dir=$ac_dir |
---|
| 1350 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1351 | break |
---|
| 1352 | elif test -f $ac_dir/shtool; then |
---|
| 1353 | ac_aux_dir=$ac_dir |
---|
| 1354 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1355 | break |
---|
| 1356 | fi |
---|
| 1357 | done |
---|
| 1358 | if test -z "$ac_aux_dir"; then |
---|
| 1359 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1360 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1361 | { (exit 1); exit 1; }; } |
---|
| 1362 | fi |
---|
| 1363 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1364 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1365 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1366 | |
---|
[2980] | 1367 | # Make sure we can run config.sub. |
---|
| 1368 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1369 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1370 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1371 | { (exit 1); exit 1; }; } |
---|
| 1372 | |
---|
| 1373 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1374 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1375 | if test "${ac_cv_build+set}" = set; then |
---|
| 1376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1377 | else |
---|
| 1378 | ac_cv_build_alias=$build_alias |
---|
| 1379 | test -z "$ac_cv_build_alias" && |
---|
| 1380 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1381 | test -z "$ac_cv_build_alias" && |
---|
| 1382 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1383 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1384 | { (exit 1); exit 1; }; } |
---|
| 1385 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1386 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1387 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1388 | { (exit 1); exit 1; }; } |
---|
| 1389 | |
---|
| 1390 | fi |
---|
| 1391 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1392 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1393 | build=$ac_cv_build |
---|
| 1394 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1395 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1396 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1397 | |
---|
| 1398 | |
---|
| 1399 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1400 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1401 | if test "${ac_cv_host+set}" = set; then |
---|
| 1402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1403 | else |
---|
| 1404 | ac_cv_host_alias=$host_alias |
---|
| 1405 | test -z "$ac_cv_host_alias" && |
---|
| 1406 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1407 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1408 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1409 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1410 | { (exit 1); exit 1; }; } |
---|
| 1411 | |
---|
| 1412 | fi |
---|
| 1413 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1414 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1415 | host=$ac_cv_host |
---|
| 1416 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1417 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1418 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1419 | |
---|
| 1420 | |
---|
| 1421 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1422 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1423 | if test "${ac_cv_target+set}" = set; then |
---|
| 1424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1425 | else |
---|
| 1426 | ac_cv_target_alias=$target_alias |
---|
| 1427 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1428 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1429 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1430 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1431 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1432 | { (exit 1); exit 1; }; } |
---|
| 1433 | |
---|
| 1434 | fi |
---|
| 1435 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1436 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1437 | target=$ac_cv_target |
---|
| 1438 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1439 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1440 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1441 | |
---|
| 1442 | |
---|
| 1443 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1444 | # will get canonicalized. |
---|
| 1445 | test -n "$target_alias" && |
---|
| 1446 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1447 | NONENONEs,x,x, && |
---|
| 1448 | program_prefix=${target_alias}- |
---|
| 1449 | |
---|
| 1450 | am__api_version="1.8" |
---|
[1956] | 1451 | # Find a good install program. We prefer a C program (faster), |
---|
| 1452 | # so one script is as good as another. But avoid the broken or |
---|
| 1453 | # incompatible versions: |
---|
| 1454 | # SysV /etc/install, /usr/sbin/install |
---|
| 1455 | # SunOS /usr/etc/install |
---|
| 1456 | # IRIX /sbin/install |
---|
| 1457 | # AIX /bin/install |
---|
| 1458 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1459 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1460 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1461 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1462 | # OS/2's system install, which has a completely different semantic |
---|
| 1463 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1464 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1465 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1466 | if test -z "$INSTALL"; then |
---|
| 1467 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1469 | else |
---|
| 1470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1471 | for as_dir in $PATH |
---|
| 1472 | do |
---|
| 1473 | IFS=$as_save_IFS |
---|
| 1474 | test -z "$as_dir" && as_dir=. |
---|
| 1475 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1476 | case $as_dir/ in |
---|
| 1477 | ./ | .// | /cC/* | \ |
---|
| 1478 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1479 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1480 | /usr/ucb/* ) ;; |
---|
| 1481 | *) |
---|
| 1482 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1483 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1484 | # by default. |
---|
| 1485 | for ac_prog in ginstall scoinst install; do |
---|
| 1486 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1487 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1488 | if test $ac_prog = install && |
---|
| 1489 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1490 | # AIX install. It has an incompatible calling convention. |
---|
| 1491 | : |
---|
| 1492 | elif test $ac_prog = install && |
---|
| 1493 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1494 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1495 | : |
---|
| 1496 | else |
---|
| 1497 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1498 | break 3 |
---|
| 1499 | fi |
---|
[1853] | 1500 | fi |
---|
[1956] | 1501 | done |
---|
| 1502 | done |
---|
| 1503 | ;; |
---|
| 1504 | esac |
---|
| 1505 | done |
---|
| 1506 | |
---|
| 1507 | |
---|
[1853] | 1508 | fi |
---|
[1956] | 1509 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1510 | INSTALL=$ac_cv_path_install |
---|
| 1511 | else |
---|
| 1512 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1513 | # path for INSTALL within a source directory, because that will |
---|
| 1514 | # break other packages using the cache if that directory is |
---|
| 1515 | # removed, or if the path is relative. |
---|
| 1516 | INSTALL=$ac_install_sh |
---|
| 1517 | fi |
---|
| 1518 | fi |
---|
| 1519 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1520 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1521 | |
---|
| 1522 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1523 | # It thinks the first close brace ends the variable substitution. |
---|
| 1524 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1525 | |
---|
| 1526 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1527 | |
---|
| 1528 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1529 | |
---|
| 1530 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1531 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1532 | # Just in case |
---|
| 1533 | sleep 1 |
---|
| 1534 | echo timestamp > conftest.file |
---|
| 1535 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1536 | # arguments. Must try -L first in case configure is actually a |
---|
| 1537 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1538 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1539 | # directory). |
---|
| 1540 | if ( |
---|
| 1541 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1542 | if test "$*" = "X"; then |
---|
| 1543 | # -L didn't work. |
---|
| 1544 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1545 | fi |
---|
| 1546 | rm -f conftest.file |
---|
| 1547 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1548 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1549 | |
---|
| 1550 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1551 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1552 | # broken ls alias from the environment. This has actually |
---|
| 1553 | # happened. Such a system could not be considered "sane". |
---|
| 1554 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1555 | alias in your environment" >&5 |
---|
| 1556 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1557 | alias in your environment" >&2;} |
---|
| 1558 | { (exit 1); exit 1; }; } |
---|
| 1559 | fi |
---|
| 1560 | |
---|
| 1561 | test "$2" = conftest.file |
---|
| 1562 | ) |
---|
| 1563 | then |
---|
| 1564 | # Ok. |
---|
| 1565 | : |
---|
[1853] | 1566 | else |
---|
[1956] | 1567 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1568 | Check your system clock" >&5 |
---|
| 1569 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1570 | Check your system clock" >&2;} |
---|
| 1571 | { (exit 1); exit 1; }; } |
---|
[1853] | 1572 | fi |
---|
[1956] | 1573 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1574 | echo "${ECHO_T}yes" >&6 |
---|
| 1575 | test "$program_prefix" != NONE && |
---|
| 1576 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1577 | # Use a double $ so make ignores it. |
---|
| 1578 | test "$program_suffix" != NONE && |
---|
| 1579 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1580 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1581 | # By default was `s,x,x', remove it if useless. |
---|
| 1582 | cat <<\_ACEOF >conftest.sed |
---|
| 1583 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1584 | _ACEOF |
---|
| 1585 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1586 | rm conftest.sed |
---|
[1853] | 1587 | |
---|
[1956] | 1588 | # expand $ac_aux_dir to an absolute path |
---|
| 1589 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1590 | |
---|
| 1591 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1592 | # Use eval to expand $SHELL |
---|
| 1593 | if eval "$MISSING --run true"; then |
---|
| 1594 | am_missing_run="$MISSING --run " |
---|
| 1595 | else |
---|
| 1596 | am_missing_run= |
---|
| 1597 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1598 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1599 | fi |
---|
| 1600 | |
---|
[2819] | 1601 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
[2706] | 1602 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
| 1603 | # argument. Indeed, we sometimes output rules like |
---|
| 1604 | # $(mkdir_p) $(somedir) |
---|
| 1605 | # where $(somedir) is conditionally defined. |
---|
| 1606 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
| 1607 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
| 1608 | mkdir_p='mkdir -p -- .' |
---|
| 1609 | else |
---|
| 1610 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1611 | # recognize any option. It will interpret all options as |
---|
| 1612 | # directories to create, and then abort because `.' already |
---|
| 1613 | # exists. |
---|
[2819] | 1614 | for d in ./-p ./--version; |
---|
[2706] | 1615 | do |
---|
| 1616 | test -d $d && rmdir $d |
---|
| 1617 | done |
---|
| 1618 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1619 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1620 | mkdir_p='$(mkinstalldirs)' |
---|
| 1621 | else |
---|
| 1622 | mkdir_p='$(install_sh) -d' |
---|
| 1623 | fi |
---|
| 1624 | fi |
---|
| 1625 | |
---|
[1956] | 1626 | for ac_prog in gawk mawk nawk awk |
---|
| 1627 | do |
---|
| 1628 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1629 | set dummy $ac_prog; ac_word=$2 |
---|
| 1630 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1632 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1634 | else |
---|
| 1635 | if test -n "$AWK"; then |
---|
| 1636 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1637 | else |
---|
| 1638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1639 | for as_dir in $PATH |
---|
| 1640 | do |
---|
| 1641 | IFS=$as_save_IFS |
---|
| 1642 | test -z "$as_dir" && as_dir=. |
---|
| 1643 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1644 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1645 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1647 | break 2 |
---|
| 1648 | fi |
---|
| 1649 | done |
---|
| 1650 | done |
---|
| 1651 | |
---|
| 1652 | fi |
---|
| 1653 | fi |
---|
| 1654 | AWK=$ac_cv_prog_AWK |
---|
| 1655 | if test -n "$AWK"; then |
---|
| 1656 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1657 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1658 | else |
---|
| 1659 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1660 | echo "${ECHO_T}no" >&6 |
---|
| 1661 | fi |
---|
| 1662 | |
---|
| 1663 | test -n "$AWK" && break |
---|
| 1664 | done |
---|
| 1665 | |
---|
| 1666 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1667 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1668 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1669 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1671 | else |
---|
| 1672 | cat >conftest.make <<\_ACEOF |
---|
| 1673 | all: |
---|
| 1674 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1675 | _ACEOF |
---|
| 1676 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1677 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1678 | if test -n "$ac_maketemp"; then |
---|
| 1679 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1680 | else |
---|
| 1681 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1682 | fi |
---|
| 1683 | rm -f conftest.make |
---|
| 1684 | fi |
---|
| 1685 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1686 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1687 | echo "${ECHO_T}yes" >&6 |
---|
| 1688 | SET_MAKE= |
---|
| 1689 | else |
---|
| 1690 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1691 | echo "${ECHO_T}no" >&6 |
---|
| 1692 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1693 | fi |
---|
| 1694 | |
---|
| 1695 | rm -rf .tst 2>/dev/null |
---|
| 1696 | mkdir .tst 2>/dev/null |
---|
| 1697 | if test -d .tst; then |
---|
| 1698 | am__leading_dot=. |
---|
| 1699 | else |
---|
| 1700 | am__leading_dot=_ |
---|
| 1701 | fi |
---|
| 1702 | rmdir .tst 2>/dev/null |
---|
| 1703 | |
---|
[2706] | 1704 | # test to see if srcdir already configured |
---|
[1956] | 1705 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1706 | test -f $srcdir/config.status; then |
---|
| 1707 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1708 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1709 | { (exit 1); exit 1; }; } |
---|
| 1710 | fi |
---|
| 1711 | |
---|
| 1712 | # test whether we have cygpath |
---|
| 1713 | if test -z "$CYGPATH_W"; then |
---|
| 1714 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1715 | CYGPATH_W='cygpath -w' |
---|
| 1716 | else |
---|
| 1717 | CYGPATH_W=echo |
---|
| 1718 | fi |
---|
| 1719 | fi |
---|
| 1720 | |
---|
| 1721 | |
---|
| 1722 | # Define the identity of the package. |
---|
| 1723 | PACKAGE='orxonox' |
---|
[3365] | 1724 | VERSION='0.2.1-pre-alpha' |
---|
[1956] | 1725 | |
---|
| 1726 | |
---|
| 1727 | cat >>confdefs.h <<_ACEOF |
---|
| 1728 | #define PACKAGE "$PACKAGE" |
---|
| 1729 | _ACEOF |
---|
| 1730 | |
---|
| 1731 | |
---|
| 1732 | cat >>confdefs.h <<_ACEOF |
---|
| 1733 | #define VERSION "$VERSION" |
---|
| 1734 | _ACEOF |
---|
| 1735 | |
---|
| 1736 | # Some tools Automake needs. |
---|
| 1737 | |
---|
| 1738 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1739 | |
---|
| 1740 | |
---|
| 1741 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1742 | |
---|
| 1743 | |
---|
| 1744 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1745 | |
---|
| 1746 | |
---|
| 1747 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1748 | |
---|
| 1749 | |
---|
| 1750 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1751 | |
---|
| 1752 | |
---|
| 1753 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1754 | |
---|
| 1755 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1756 | |
---|
| 1757 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1758 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1759 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1760 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1761 | if test "$cross_compiling" != no; then |
---|
| 1762 | if test -n "$ac_tool_prefix"; then |
---|
| 1763 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1764 | set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then |
---|
| 1768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1769 | else |
---|
| 1770 | if test -n "$STRIP"; then |
---|
| 1771 | ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip" |
---|
| 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 | STRIP=$ac_cv_prog_STRIP |
---|
| 1790 | if test -n "$STRIP"; then |
---|
| 1791 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1792 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1793 | else |
---|
| 1794 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1795 | echo "${ECHO_T}no" >&6 |
---|
| 1796 | fi |
---|
| 1797 | |
---|
| 1798 | fi |
---|
| 1799 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1800 | ac_ct_STRIP=$STRIP |
---|
| 1801 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1802 | set dummy strip; ac_word=$2 |
---|
| 1803 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1804 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1805 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1807 | else |
---|
| 1808 | if test -n "$ac_ct_STRIP"; then |
---|
| 1809 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1810 | else |
---|
| 1811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1812 | for as_dir in $PATH |
---|
| 1813 | do |
---|
| 1814 | IFS=$as_save_IFS |
---|
| 1815 | test -z "$as_dir" && as_dir=. |
---|
| 1816 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1817 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1818 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1819 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1820 | break 2 |
---|
| 1821 | fi |
---|
| 1822 | done |
---|
| 1823 | done |
---|
| 1824 | |
---|
| 1825 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1826 | fi |
---|
| 1827 | fi |
---|
| 1828 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1829 | if test -n "$ac_ct_STRIP"; then |
---|
| 1830 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1831 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1832 | else |
---|
| 1833 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1834 | echo "${ECHO_T}no" >&6 |
---|
| 1835 | fi |
---|
| 1836 | |
---|
| 1837 | STRIP=$ac_ct_STRIP |
---|
| 1838 | else |
---|
| 1839 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1840 | fi |
---|
| 1841 | |
---|
| 1842 | fi |
---|
| 1843 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1844 | |
---|
| 1845 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1846 | # some platforms. |
---|
| 1847 | |
---|
| 1848 | |
---|
| 1849 | |
---|
| 1850 | |
---|
[2627] | 1851 | |
---|
[1959] | 1852 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1853 | |
---|
| 1854 | |
---|
[3424] | 1855 | ######################### |
---|
| 1856 | ## Checks for programs ## |
---|
| 1857 | ######################### |
---|
[1956] | 1858 | ac_ext=cc |
---|
| 1859 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1860 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1861 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1862 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1863 | if test -n "$ac_tool_prefix"; then |
---|
| 1864 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1865 | do |
---|
| 1866 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1867 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1870 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1872 | else |
---|
| 1873 | if test -n "$CXX"; then |
---|
| 1874 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1875 | else |
---|
| 1876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1877 | for as_dir in $PATH |
---|
| 1878 | do |
---|
| 1879 | IFS=$as_save_IFS |
---|
| 1880 | test -z "$as_dir" && as_dir=. |
---|
| 1881 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1883 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1885 | break 2 |
---|
| 1886 | fi |
---|
| 1887 | done |
---|
| 1888 | done |
---|
| 1889 | |
---|
| 1890 | fi |
---|
| 1891 | fi |
---|
| 1892 | CXX=$ac_cv_prog_CXX |
---|
| 1893 | if test -n "$CXX"; then |
---|
| 1894 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1895 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1896 | else |
---|
| 1897 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1898 | echo "${ECHO_T}no" >&6 |
---|
| 1899 | fi |
---|
| 1900 | |
---|
| 1901 | test -n "$CXX" && break |
---|
| 1902 | done |
---|
| 1903 | fi |
---|
| 1904 | if test -z "$CXX"; then |
---|
| 1905 | ac_ct_CXX=$CXX |
---|
| 1906 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1907 | do |
---|
| 1908 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1909 | set dummy $ac_prog; ac_word=$2 |
---|
| 1910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1912 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1914 | else |
---|
| 1915 | if test -n "$ac_ct_CXX"; then |
---|
| 1916 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1917 | else |
---|
| 1918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1919 | for as_dir in $PATH |
---|
| 1920 | do |
---|
| 1921 | IFS=$as_save_IFS |
---|
| 1922 | test -z "$as_dir" && as_dir=. |
---|
| 1923 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1924 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1925 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1927 | break 2 |
---|
| 1928 | fi |
---|
| 1929 | done |
---|
| 1930 | done |
---|
| 1931 | |
---|
| 1932 | fi |
---|
| 1933 | fi |
---|
| 1934 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1935 | if test -n "$ac_ct_CXX"; then |
---|
| 1936 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1937 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1938 | else |
---|
| 1939 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1940 | echo "${ECHO_T}no" >&6 |
---|
| 1941 | fi |
---|
| 1942 | |
---|
| 1943 | test -n "$ac_ct_CXX" && break |
---|
| 1944 | done |
---|
| 1945 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1946 | |
---|
| 1947 | CXX=$ac_ct_CXX |
---|
| 1948 | fi |
---|
| 1949 | |
---|
| 1950 | |
---|
| 1951 | # Provide some information about the compiler. |
---|
| 1952 | echo "$as_me:$LINENO:" \ |
---|
| 1953 | "checking for C++ compiler version" >&5 |
---|
| 1954 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1955 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1956 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1957 | ac_status=$? |
---|
| 1958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1959 | (exit $ac_status); } |
---|
| 1960 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1961 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1962 | ac_status=$? |
---|
| 1963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1964 | (exit $ac_status); } |
---|
| 1965 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1966 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1967 | ac_status=$? |
---|
| 1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1969 | (exit $ac_status); } |
---|
| 1970 | |
---|
| 1971 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1972 | /* confdefs.h. */ |
---|
| 1973 | _ACEOF |
---|
| 1974 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1975 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1976 | /* end confdefs.h. */ |
---|
| 1977 | |
---|
| 1978 | int |
---|
| 1979 | main () |
---|
| 1980 | { |
---|
| 1981 | |
---|
| 1982 | ; |
---|
| 1983 | return 0; |
---|
| 1984 | } |
---|
| 1985 | _ACEOF |
---|
| 1986 | ac_clean_files_save=$ac_clean_files |
---|
| 1987 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1988 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1989 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1990 | # of exeext. |
---|
| 1991 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1992 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1993 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1994 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1995 | (eval $ac_link_default) 2>&5 |
---|
| 1996 | ac_status=$? |
---|
| 1997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1998 | (exit $ac_status); }; then |
---|
| 1999 | # Find the output, starting from the most likely. This scheme is |
---|
| 2000 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 2001 | # resort. |
---|
| 2002 | |
---|
| 2003 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 2004 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 2005 | ac_cv_exeext= |
---|
| 2006 | # b.out is created by i960 compilers. |
---|
| 2007 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 2008 | do |
---|
| 2009 | test -f "$ac_file" || continue |
---|
| 2010 | case $ac_file in |
---|
| 2011 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 2012 | ;; |
---|
| 2013 | conftest.$ac_ext ) |
---|
| 2014 | # This is the source file. |
---|
| 2015 | ;; |
---|
| 2016 | [ab].out ) |
---|
| 2017 | # We found the default executable, but exeext='' is most |
---|
| 2018 | # certainly right. |
---|
| 2019 | break;; |
---|
| 2020 | *.* ) |
---|
| 2021 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2022 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 2023 | # but it would be cool to find out if it's true. Does anybody |
---|
| 2024 | # maintain Libtool? --akim. |
---|
| 2025 | export ac_cv_exeext |
---|
| 2026 | break;; |
---|
| 2027 | * ) |
---|
| 2028 | break;; |
---|
| 2029 | esac |
---|
| 2030 | done |
---|
| 2031 | else |
---|
| 2032 | echo "$as_me: failed program was:" >&5 |
---|
| 2033 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2034 | |
---|
| 2035 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 2036 | See \`config.log' for more details." >&5 |
---|
| 2037 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 2038 | See \`config.log' for more details." >&2;} |
---|
| 2039 | { (exit 77); exit 77; }; } |
---|
| 2040 | fi |
---|
| 2041 | |
---|
| 2042 | ac_exeext=$ac_cv_exeext |
---|
| 2043 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2044 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 2045 | |
---|
| 2046 | # Check the compiler produces executables we can run. If not, either |
---|
| 2047 | # the compiler is broken, or we cross compile. |
---|
| 2048 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 2049 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 2050 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2051 | # If not cross compiling, check that we can run a simple program. |
---|
| 2052 | if test "$cross_compiling" != yes; then |
---|
| 2053 | if { ac_try='./$ac_file' |
---|
| 2054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2055 | (eval $ac_try) 2>&5 |
---|
| 2056 | ac_status=$? |
---|
| 2057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2058 | (exit $ac_status); }; }; then |
---|
| 2059 | cross_compiling=no |
---|
| 2060 | else |
---|
| 2061 | if test "$cross_compiling" = maybe; then |
---|
| 2062 | cross_compiling=yes |
---|
| 2063 | else |
---|
| 2064 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 2065 | If you meant to cross compile, use \`--host'. |
---|
| 2066 | See \`config.log' for more details." >&5 |
---|
| 2067 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 2068 | If you meant to cross compile, use \`--host'. |
---|
| 2069 | See \`config.log' for more details." >&2;} |
---|
| 2070 | { (exit 1); exit 1; }; } |
---|
| 2071 | fi |
---|
| 2072 | fi |
---|
| 2073 | fi |
---|
| 2074 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2075 | echo "${ECHO_T}yes" >&6 |
---|
| 2076 | |
---|
| 2077 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2078 | ac_clean_files=$ac_clean_files_save |
---|
| 2079 | # Check the compiler produces executables we can run. If not, either |
---|
| 2080 | # the compiler is broken, or we cross compile. |
---|
| 2081 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2082 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2083 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2084 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2085 | |
---|
| 2086 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2087 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2089 | (eval $ac_link) 2>&5 |
---|
| 2090 | ac_status=$? |
---|
| 2091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2092 | (exit $ac_status); }; then |
---|
| 2093 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2094 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2095 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2096 | # `rm'. |
---|
| 2097 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2098 | test -f "$ac_file" || continue |
---|
| 2099 | case $ac_file in |
---|
| 2100 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2101 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2102 | export ac_cv_exeext |
---|
| 2103 | break;; |
---|
| 2104 | * ) break;; |
---|
| 2105 | esac |
---|
| 2106 | done |
---|
| 2107 | else |
---|
| 2108 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2109 | See \`config.log' for more details." >&5 |
---|
| 2110 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2111 | See \`config.log' for more details." >&2;} |
---|
| 2112 | { (exit 1); exit 1; }; } |
---|
| 2113 | fi |
---|
| 2114 | |
---|
| 2115 | rm -f conftest$ac_cv_exeext |
---|
| 2116 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2117 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2118 | |
---|
| 2119 | rm -f conftest.$ac_ext |
---|
| 2120 | EXEEXT=$ac_cv_exeext |
---|
| 2121 | ac_exeext=$EXEEXT |
---|
| 2122 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2123 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2124 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2126 | else |
---|
| 2127 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2128 | /* confdefs.h. */ |
---|
| 2129 | _ACEOF |
---|
| 2130 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2131 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2132 | /* end confdefs.h. */ |
---|
| 2133 | |
---|
| 2134 | int |
---|
| 2135 | main () |
---|
| 2136 | { |
---|
| 2137 | |
---|
| 2138 | ; |
---|
| 2139 | return 0; |
---|
| 2140 | } |
---|
| 2141 | _ACEOF |
---|
| 2142 | rm -f conftest.o conftest.obj |
---|
| 2143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2144 | (eval $ac_compile) 2>&5 |
---|
| 2145 | ac_status=$? |
---|
| 2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2147 | (exit $ac_status); }; then |
---|
| 2148 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2149 | case $ac_file in |
---|
| 2150 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2151 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2152 | break;; |
---|
| 2153 | esac |
---|
| 2154 | done |
---|
| 2155 | else |
---|
| 2156 | echo "$as_me: failed program was:" >&5 |
---|
| 2157 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2158 | |
---|
| 2159 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2160 | See \`config.log' for more details." >&5 |
---|
| 2161 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2162 | See \`config.log' for more details." >&2;} |
---|
| 2163 | { (exit 1); exit 1; }; } |
---|
| 2164 | fi |
---|
| 2165 | |
---|
| 2166 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2167 | fi |
---|
| 2168 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2169 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2170 | OBJEXT=$ac_cv_objext |
---|
| 2171 | ac_objext=$OBJEXT |
---|
| 2172 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2173 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2174 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2176 | else |
---|
| 2177 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2178 | /* confdefs.h. */ |
---|
| 2179 | _ACEOF |
---|
| 2180 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2181 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2182 | /* end confdefs.h. */ |
---|
| 2183 | |
---|
| 2184 | int |
---|
| 2185 | main () |
---|
| 2186 | { |
---|
| 2187 | #ifndef __GNUC__ |
---|
| 2188 | choke me |
---|
| 2189 | #endif |
---|
| 2190 | |
---|
| 2191 | ; |
---|
| 2192 | return 0; |
---|
| 2193 | } |
---|
| 2194 | _ACEOF |
---|
| 2195 | rm -f conftest.$ac_objext |
---|
| 2196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2197 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2198 | ac_status=$? |
---|
| 2199 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2200 | rm -f conftest.er1 |
---|
| 2201 | cat conftest.err >&5 |
---|
| 2202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2203 | (exit $ac_status); } && |
---|
| 2204 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2205 | || test ! -s conftest.err' |
---|
| 2206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2207 | (eval $ac_try) 2>&5 |
---|
| 2208 | ac_status=$? |
---|
| 2209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2210 | (exit $ac_status); }; } && |
---|
| 2211 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2213 | (eval $ac_try) 2>&5 |
---|
| 2214 | ac_status=$? |
---|
| 2215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2216 | (exit $ac_status); }; }; then |
---|
| 2217 | ac_compiler_gnu=yes |
---|
| 2218 | else |
---|
| 2219 | echo "$as_me: failed program was:" >&5 |
---|
| 2220 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2221 | |
---|
| 2222 | ac_compiler_gnu=no |
---|
| 2223 | fi |
---|
| 2224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2225 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2226 | |
---|
| 2227 | fi |
---|
| 2228 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2229 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2230 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2231 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2232 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2233 | CXXFLAGS="-g" |
---|
| 2234 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2235 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2236 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2238 | else |
---|
| 2239 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2240 | /* confdefs.h. */ |
---|
| 2241 | _ACEOF |
---|
| 2242 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2243 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2244 | /* end confdefs.h. */ |
---|
| 2245 | |
---|
| 2246 | int |
---|
| 2247 | main () |
---|
| 2248 | { |
---|
| 2249 | |
---|
| 2250 | ; |
---|
| 2251 | return 0; |
---|
| 2252 | } |
---|
| 2253 | _ACEOF |
---|
| 2254 | rm -f conftest.$ac_objext |
---|
| 2255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2256 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2257 | ac_status=$? |
---|
| 2258 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2259 | rm -f conftest.er1 |
---|
| 2260 | cat conftest.err >&5 |
---|
| 2261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2262 | (exit $ac_status); } && |
---|
| 2263 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2264 | || test ! -s conftest.err' |
---|
| 2265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2266 | (eval $ac_try) 2>&5 |
---|
| 2267 | ac_status=$? |
---|
| 2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2269 | (exit $ac_status); }; } && |
---|
| 2270 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2272 | (eval $ac_try) 2>&5 |
---|
| 2273 | ac_status=$? |
---|
| 2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2275 | (exit $ac_status); }; }; then |
---|
| 2276 | ac_cv_prog_cxx_g=yes |
---|
| 2277 | else |
---|
| 2278 | echo "$as_me: failed program was:" >&5 |
---|
| 2279 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2280 | |
---|
| 2281 | ac_cv_prog_cxx_g=no |
---|
| 2282 | fi |
---|
| 2283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2284 | fi |
---|
| 2285 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2286 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2287 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2288 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2289 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2290 | if test "$GXX" = yes; then |
---|
| 2291 | CXXFLAGS="-g -O2" |
---|
| 2292 | else |
---|
| 2293 | CXXFLAGS="-g" |
---|
| 2294 | fi |
---|
| 2295 | else |
---|
| 2296 | if test "$GXX" = yes; then |
---|
| 2297 | CXXFLAGS="-O2" |
---|
| 2298 | else |
---|
| 2299 | CXXFLAGS= |
---|
| 2300 | fi |
---|
| 2301 | fi |
---|
| 2302 | for ac_declaration in \ |
---|
| 2303 | '' \ |
---|
| 2304 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2305 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2306 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2307 | 'extern "C" void exit (int);' \ |
---|
| 2308 | 'void exit (int);' |
---|
| 2309 | do |
---|
| 2310 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2311 | /* confdefs.h. */ |
---|
| 2312 | _ACEOF |
---|
| 2313 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2314 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2315 | /* end confdefs.h. */ |
---|
| 2316 | $ac_declaration |
---|
| 2317 | #include <stdlib.h> |
---|
| 2318 | int |
---|
| 2319 | main () |
---|
| 2320 | { |
---|
| 2321 | exit (42); |
---|
| 2322 | ; |
---|
| 2323 | return 0; |
---|
| 2324 | } |
---|
| 2325 | _ACEOF |
---|
| 2326 | rm -f conftest.$ac_objext |
---|
| 2327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2328 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2329 | ac_status=$? |
---|
| 2330 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2331 | rm -f conftest.er1 |
---|
| 2332 | cat conftest.err >&5 |
---|
| 2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2334 | (exit $ac_status); } && |
---|
| 2335 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2336 | || test ! -s conftest.err' |
---|
| 2337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2338 | (eval $ac_try) 2>&5 |
---|
| 2339 | ac_status=$? |
---|
| 2340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2341 | (exit $ac_status); }; } && |
---|
| 2342 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2344 | (eval $ac_try) 2>&5 |
---|
| 2345 | ac_status=$? |
---|
| 2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2347 | (exit $ac_status); }; }; then |
---|
| 2348 | : |
---|
| 2349 | else |
---|
| 2350 | echo "$as_me: failed program was:" >&5 |
---|
| 2351 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2352 | |
---|
| 2353 | continue |
---|
| 2354 | fi |
---|
| 2355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2356 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2357 | /* confdefs.h. */ |
---|
| 2358 | _ACEOF |
---|
| 2359 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2360 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2361 | /* end confdefs.h. */ |
---|
| 2362 | $ac_declaration |
---|
| 2363 | int |
---|
| 2364 | main () |
---|
| 2365 | { |
---|
| 2366 | exit (42); |
---|
| 2367 | ; |
---|
| 2368 | return 0; |
---|
| 2369 | } |
---|
| 2370 | _ACEOF |
---|
| 2371 | rm -f conftest.$ac_objext |
---|
| 2372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2373 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2374 | ac_status=$? |
---|
| 2375 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2376 | rm -f conftest.er1 |
---|
| 2377 | cat conftest.err >&5 |
---|
| 2378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2379 | (exit $ac_status); } && |
---|
| 2380 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2381 | || test ! -s conftest.err' |
---|
| 2382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2383 | (eval $ac_try) 2>&5 |
---|
| 2384 | ac_status=$? |
---|
| 2385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2386 | (exit $ac_status); }; } && |
---|
| 2387 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2389 | (eval $ac_try) 2>&5 |
---|
| 2390 | ac_status=$? |
---|
| 2391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2392 | (exit $ac_status); }; }; then |
---|
| 2393 | break |
---|
| 2394 | else |
---|
| 2395 | echo "$as_me: failed program was:" >&5 |
---|
| 2396 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2397 | |
---|
| 2398 | fi |
---|
| 2399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2400 | done |
---|
| 2401 | rm -f conftest* |
---|
| 2402 | if test -n "$ac_declaration"; then |
---|
| 2403 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2404 | echo $ac_declaration >>confdefs.h |
---|
| 2405 | echo '#endif' >>confdefs.h |
---|
| 2406 | fi |
---|
| 2407 | |
---|
| 2408 | ac_ext=c |
---|
| 2409 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2413 | DEPDIR="${am__leading_dot}deps" |
---|
| 2414 | |
---|
| 2415 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2416 | |
---|
| 2417 | |
---|
| 2418 | am_make=${MAKE-make} |
---|
| 2419 | cat > confinc << 'END' |
---|
| 2420 | am__doit: |
---|
| 2421 | @echo done |
---|
| 2422 | .PHONY: am__doit |
---|
| 2423 | END |
---|
| 2424 | # If we don't find an include directive, just comment out the code. |
---|
| 2425 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2426 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2427 | am__include="#" |
---|
| 2428 | am__quote= |
---|
| 2429 | _am_result=none |
---|
| 2430 | # First try GNU make style include. |
---|
| 2431 | echo "include confinc" > confmf |
---|
| 2432 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2433 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2434 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2435 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2436 | # case it prints its new name instead of `make'. |
---|
| 2437 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2438 | am__include=include |
---|
| 2439 | am__quote= |
---|
| 2440 | _am_result=GNU |
---|
| 2441 | fi |
---|
| 2442 | # Now try BSD make style include. |
---|
| 2443 | if test "$am__include" = "#"; then |
---|
| 2444 | echo '.include "confinc"' > confmf |
---|
| 2445 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2446 | am__include=.include |
---|
| 2447 | am__quote="\"" |
---|
| 2448 | _am_result=BSD |
---|
| 2449 | fi |
---|
| 2450 | fi |
---|
| 2451 | |
---|
| 2452 | |
---|
| 2453 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2454 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2455 | rm -f confinc confmf |
---|
| 2456 | |
---|
| 2457 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2458 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2459 | enableval="$enable_dependency_tracking" |
---|
| 2460 | |
---|
| 2461 | fi; |
---|
| 2462 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2463 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2464 | AMDEPBACKSLASH='\' |
---|
| 2465 | fi |
---|
| 2466 | |
---|
| 2467 | |
---|
| 2468 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2469 | AMDEP_TRUE= |
---|
| 2470 | AMDEP_FALSE='#' |
---|
| 2471 | else |
---|
| 2472 | AMDEP_TRUE='#' |
---|
| 2473 | AMDEP_FALSE= |
---|
| 2474 | fi |
---|
| 2475 | |
---|
| 2476 | |
---|
| 2477 | |
---|
| 2478 | |
---|
| 2479 | depcc="$CXX" am_compiler_list= |
---|
| 2480 | |
---|
| 2481 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2482 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2483 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2485 | else |
---|
| 2486 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2487 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2488 | # making bogus files that we don't know about and never remove. For |
---|
| 2489 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2490 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2491 | # in D'. |
---|
| 2492 | mkdir conftest.dir |
---|
| 2493 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2494 | # using a relative directory. |
---|
| 2495 | cp "$am_depcomp" conftest.dir |
---|
| 2496 | cd conftest.dir |
---|
| 2497 | # We will build objects and dependencies in a subdirectory because |
---|
| 2498 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2499 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2500 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2501 | # the current directory while Tru64 will put them in the object |
---|
| 2502 | # directory. |
---|
| 2503 | mkdir sub |
---|
| 2504 | |
---|
| 2505 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2506 | if test "$am_compiler_list" = ""; then |
---|
| 2507 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2508 | fi |
---|
| 2509 | for depmode in $am_compiler_list; do |
---|
| 2510 | # Setup a source with many dependencies, because some compilers |
---|
| 2511 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2512 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2513 | # |
---|
| 2514 | # We need to recreate these files for each test, as the compiler may |
---|
| 2515 | # overwrite some of them when testing with obscure command lines. |
---|
| 2516 | # This happens at least with the AIX C compiler. |
---|
| 2517 | : > sub/conftest.c |
---|
| 2518 | for i in 1 2 3 4 5 6; do |
---|
| 2519 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2819] | 2520 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 2521 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 2522 | touch sub/conftst$i.h |
---|
[1956] | 2523 | done |
---|
| 2524 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2525 | |
---|
| 2526 | case $depmode in |
---|
| 2527 | nosideeffect) |
---|
| 2528 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2529 | # only be used when explicitly requested |
---|
| 2530 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2531 | continue |
---|
| 2532 | else |
---|
| 2533 | break |
---|
| 2534 | fi |
---|
| 2535 | ;; |
---|
| 2536 | none) break ;; |
---|
| 2537 | esac |
---|
| 2538 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2539 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2540 | # handle `-M -o', and we need to detect this. |
---|
| 2541 | if depmode=$depmode \ |
---|
| 2542 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2543 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2544 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2545 | >/dev/null 2>conftest.err && |
---|
| 2546 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2547 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2548 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2549 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2819] | 2550 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 2551 | # that says an option was ignored or not supported. |
---|
| 2552 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 2553 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 2554 | # The diagnosis changed in icc 8.0: |
---|
| 2555 | # icc: Command line remark: option '-MP' not supported |
---|
| 2556 | if (grep 'ignoring option' conftest.err || |
---|
| 2557 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 2558 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2559 | break |
---|
| 2560 | fi |
---|
| 2561 | fi |
---|
| 2562 | done |
---|
| 2563 | |
---|
| 2564 | cd .. |
---|
| 2565 | rm -rf conftest.dir |
---|
| 2566 | else |
---|
| 2567 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2568 | fi |
---|
| 2569 | |
---|
| 2570 | fi |
---|
| 2571 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2572 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2573 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2574 | |
---|
| 2575 | |
---|
| 2576 | |
---|
| 2577 | if |
---|
| 2578 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2579 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2580 | am__fastdepCXX_TRUE= |
---|
| 2581 | am__fastdepCXX_FALSE='#' |
---|
| 2582 | else |
---|
| 2583 | am__fastdepCXX_TRUE='#' |
---|
| 2584 | am__fastdepCXX_FALSE= |
---|
| 2585 | fi |
---|
| 2586 | |
---|
| 2587 | |
---|
| 2588 | ac_ext=c |
---|
| 2589 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2593 | if test -n "$ac_tool_prefix"; then |
---|
| 2594 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2595 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2596 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2598 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2600 | else |
---|
| 2601 | if test -n "$CC"; then |
---|
| 2602 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2603 | else |
---|
| 2604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2605 | for as_dir in $PATH |
---|
| 2606 | do |
---|
| 2607 | IFS=$as_save_IFS |
---|
| 2608 | test -z "$as_dir" && as_dir=. |
---|
| 2609 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2611 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2613 | break 2 |
---|
| 2614 | fi |
---|
| 2615 | done |
---|
| 2616 | done |
---|
| 2617 | |
---|
| 2618 | fi |
---|
| 2619 | fi |
---|
| 2620 | CC=$ac_cv_prog_CC |
---|
| 2621 | if test -n "$CC"; then |
---|
| 2622 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2623 | echo "${ECHO_T}$CC" >&6 |
---|
| 2624 | else |
---|
| 2625 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2626 | echo "${ECHO_T}no" >&6 |
---|
| 2627 | fi |
---|
| 2628 | |
---|
| 2629 | fi |
---|
| 2630 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2631 | ac_ct_CC=$CC |
---|
| 2632 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2633 | set dummy gcc; ac_word=$2 |
---|
| 2634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2636 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2638 | else |
---|
| 2639 | if test -n "$ac_ct_CC"; then |
---|
| 2640 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2641 | else |
---|
| 2642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2643 | for as_dir in $PATH |
---|
| 2644 | do |
---|
| 2645 | IFS=$as_save_IFS |
---|
| 2646 | test -z "$as_dir" && as_dir=. |
---|
| 2647 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2649 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2651 | break 2 |
---|
| 2652 | fi |
---|
| 2653 | done |
---|
| 2654 | done |
---|
| 2655 | |
---|
| 2656 | fi |
---|
| 2657 | fi |
---|
| 2658 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2659 | if test -n "$ac_ct_CC"; then |
---|
| 2660 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2661 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2662 | else |
---|
| 2663 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2664 | echo "${ECHO_T}no" >&6 |
---|
| 2665 | fi |
---|
| 2666 | |
---|
| 2667 | CC=$ac_ct_CC |
---|
| 2668 | else |
---|
| 2669 | CC="$ac_cv_prog_CC" |
---|
| 2670 | fi |
---|
| 2671 | |
---|
| 2672 | if test -z "$CC"; then |
---|
| 2673 | if test -n "$ac_tool_prefix"; then |
---|
| 2674 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2675 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2678 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2680 | else |
---|
| 2681 | if test -n "$CC"; then |
---|
| 2682 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2683 | else |
---|
| 2684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2685 | for as_dir in $PATH |
---|
| 2686 | do |
---|
| 2687 | IFS=$as_save_IFS |
---|
| 2688 | test -z "$as_dir" && as_dir=. |
---|
| 2689 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2691 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2693 | break 2 |
---|
| 2694 | fi |
---|
| 2695 | done |
---|
| 2696 | done |
---|
| 2697 | |
---|
| 2698 | fi |
---|
| 2699 | fi |
---|
| 2700 | CC=$ac_cv_prog_CC |
---|
| 2701 | if test -n "$CC"; then |
---|
| 2702 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2703 | echo "${ECHO_T}$CC" >&6 |
---|
| 2704 | else |
---|
| 2705 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2706 | echo "${ECHO_T}no" >&6 |
---|
| 2707 | fi |
---|
| 2708 | |
---|
| 2709 | fi |
---|
| 2710 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2711 | ac_ct_CC=$CC |
---|
| 2712 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2713 | set dummy cc; ac_word=$2 |
---|
| 2714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2716 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2718 | else |
---|
| 2719 | if test -n "$ac_ct_CC"; then |
---|
| 2720 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2721 | else |
---|
| 2722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2723 | for as_dir in $PATH |
---|
| 2724 | do |
---|
| 2725 | IFS=$as_save_IFS |
---|
| 2726 | test -z "$as_dir" && as_dir=. |
---|
| 2727 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2729 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2731 | break 2 |
---|
| 2732 | fi |
---|
| 2733 | done |
---|
| 2734 | done |
---|
| 2735 | |
---|
| 2736 | fi |
---|
| 2737 | fi |
---|
| 2738 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2739 | if test -n "$ac_ct_CC"; then |
---|
| 2740 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2741 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2742 | else |
---|
| 2743 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2744 | echo "${ECHO_T}no" >&6 |
---|
| 2745 | fi |
---|
| 2746 | |
---|
| 2747 | CC=$ac_ct_CC |
---|
| 2748 | else |
---|
| 2749 | CC="$ac_cv_prog_CC" |
---|
| 2750 | fi |
---|
| 2751 | |
---|
| 2752 | fi |
---|
| 2753 | if test -z "$CC"; then |
---|
| 2754 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2755 | set dummy cc; ac_word=$2 |
---|
| 2756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2758 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2760 | else |
---|
| 2761 | if test -n "$CC"; then |
---|
| 2762 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2763 | else |
---|
| 2764 | ac_prog_rejected=no |
---|
| 2765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2766 | for as_dir in $PATH |
---|
| 2767 | do |
---|
| 2768 | IFS=$as_save_IFS |
---|
| 2769 | test -z "$as_dir" && as_dir=. |
---|
| 2770 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2771 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2772 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2773 | ac_prog_rejected=yes |
---|
| 2774 | continue |
---|
| 2775 | fi |
---|
| 2776 | ac_cv_prog_CC="cc" |
---|
| 2777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2778 | break 2 |
---|
| 2779 | fi |
---|
| 2780 | done |
---|
| 2781 | done |
---|
| 2782 | |
---|
| 2783 | if test $ac_prog_rejected = yes; then |
---|
| 2784 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2785 | set dummy $ac_cv_prog_CC |
---|
| 2786 | shift |
---|
| 2787 | if test $# != 0; then |
---|
| 2788 | # We chose a different compiler from the bogus one. |
---|
| 2789 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2790 | # first if we set CC to just the basename; use the full file name. |
---|
| 2791 | shift |
---|
| 2792 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2793 | fi |
---|
| 2794 | fi |
---|
| 2795 | fi |
---|
| 2796 | fi |
---|
| 2797 | CC=$ac_cv_prog_CC |
---|
| 2798 | if test -n "$CC"; then |
---|
| 2799 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2800 | echo "${ECHO_T}$CC" >&6 |
---|
| 2801 | else |
---|
| 2802 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2803 | echo "${ECHO_T}no" >&6 |
---|
| 2804 | fi |
---|
| 2805 | |
---|
| 2806 | fi |
---|
| 2807 | if test -z "$CC"; then |
---|
| 2808 | if test -n "$ac_tool_prefix"; then |
---|
| 2809 | for ac_prog in cl |
---|
| 2810 | do |
---|
| 2811 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2812 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2813 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2814 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2815 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2817 | else |
---|
| 2818 | if test -n "$CC"; then |
---|
| 2819 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2820 | else |
---|
| 2821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2822 | for as_dir in $PATH |
---|
| 2823 | do |
---|
| 2824 | IFS=$as_save_IFS |
---|
| 2825 | test -z "$as_dir" && as_dir=. |
---|
| 2826 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2827 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2828 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2829 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2830 | break 2 |
---|
| 2831 | fi |
---|
| 2832 | done |
---|
| 2833 | done |
---|
| 2834 | |
---|
| 2835 | fi |
---|
| 2836 | fi |
---|
| 2837 | CC=$ac_cv_prog_CC |
---|
| 2838 | if test -n "$CC"; then |
---|
| 2839 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2840 | echo "${ECHO_T}$CC" >&6 |
---|
| 2841 | else |
---|
| 2842 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2843 | echo "${ECHO_T}no" >&6 |
---|
| 2844 | fi |
---|
| 2845 | |
---|
| 2846 | test -n "$CC" && break |
---|
| 2847 | done |
---|
| 2848 | fi |
---|
| 2849 | if test -z "$CC"; then |
---|
| 2850 | ac_ct_CC=$CC |
---|
| 2851 | for ac_prog in cl |
---|
| 2852 | do |
---|
| 2853 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2854 | set dummy $ac_prog; ac_word=$2 |
---|
| 2855 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2857 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2859 | else |
---|
| 2860 | if test -n "$ac_ct_CC"; then |
---|
| 2861 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2862 | else |
---|
| 2863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2864 | for as_dir in $PATH |
---|
| 2865 | do |
---|
| 2866 | IFS=$as_save_IFS |
---|
| 2867 | test -z "$as_dir" && as_dir=. |
---|
| 2868 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2869 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2870 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2872 | break 2 |
---|
| 2873 | fi |
---|
| 2874 | done |
---|
| 2875 | done |
---|
| 2876 | |
---|
| 2877 | fi |
---|
| 2878 | fi |
---|
| 2879 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2880 | if test -n "$ac_ct_CC"; then |
---|
| 2881 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2882 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2883 | else |
---|
| 2884 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2885 | echo "${ECHO_T}no" >&6 |
---|
| 2886 | fi |
---|
| 2887 | |
---|
| 2888 | test -n "$ac_ct_CC" && break |
---|
| 2889 | done |
---|
| 2890 | |
---|
| 2891 | CC=$ac_ct_CC |
---|
| 2892 | fi |
---|
| 2893 | |
---|
| 2894 | fi |
---|
| 2895 | |
---|
| 2896 | |
---|
| 2897 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2898 | See \`config.log' for more details." >&5 |
---|
| 2899 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2900 | See \`config.log' for more details." >&2;} |
---|
| 2901 | { (exit 1); exit 1; }; } |
---|
| 2902 | |
---|
| 2903 | # Provide some information about the compiler. |
---|
| 2904 | echo "$as_me:$LINENO:" \ |
---|
| 2905 | "checking for C compiler version" >&5 |
---|
| 2906 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2907 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2908 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2909 | ac_status=$? |
---|
| 2910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2911 | (exit $ac_status); } |
---|
| 2912 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2913 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2914 | ac_status=$? |
---|
| 2915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2916 | (exit $ac_status); } |
---|
| 2917 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2918 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2919 | ac_status=$? |
---|
| 2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2921 | (exit $ac_status); } |
---|
| 2922 | |
---|
| 2923 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2924 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2925 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2927 | else |
---|
| 2928 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2929 | /* confdefs.h. */ |
---|
| 2930 | _ACEOF |
---|
| 2931 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2932 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2933 | /* end confdefs.h. */ |
---|
| 2934 | |
---|
| 2935 | int |
---|
| 2936 | main () |
---|
| 2937 | { |
---|
| 2938 | #ifndef __GNUC__ |
---|
| 2939 | choke me |
---|
| 2940 | #endif |
---|
| 2941 | |
---|
| 2942 | ; |
---|
| 2943 | return 0; |
---|
| 2944 | } |
---|
| 2945 | _ACEOF |
---|
| 2946 | rm -f conftest.$ac_objext |
---|
| 2947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2948 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2949 | ac_status=$? |
---|
| 2950 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2951 | rm -f conftest.er1 |
---|
| 2952 | cat conftest.err >&5 |
---|
| 2953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2954 | (exit $ac_status); } && |
---|
| 2955 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2956 | || test ! -s conftest.err' |
---|
| 2957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2958 | (eval $ac_try) 2>&5 |
---|
| 2959 | ac_status=$? |
---|
| 2960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2961 | (exit $ac_status); }; } && |
---|
| 2962 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2964 | (eval $ac_try) 2>&5 |
---|
| 2965 | ac_status=$? |
---|
| 2966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2967 | (exit $ac_status); }; }; then |
---|
| 2968 | ac_compiler_gnu=yes |
---|
| 2969 | else |
---|
| 2970 | echo "$as_me: failed program was:" >&5 |
---|
| 2971 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2972 | |
---|
| 2973 | ac_compiler_gnu=no |
---|
| 2974 | fi |
---|
| 2975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2976 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2977 | |
---|
| 2978 | fi |
---|
| 2979 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2980 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2981 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2982 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2983 | ac_save_CFLAGS=$CFLAGS |
---|
| 2984 | CFLAGS="-g" |
---|
| 2985 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2986 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2987 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2989 | else |
---|
| 2990 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2991 | /* confdefs.h. */ |
---|
| 2992 | _ACEOF |
---|
| 2993 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2994 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2995 | /* end confdefs.h. */ |
---|
| 2996 | |
---|
| 2997 | int |
---|
| 2998 | main () |
---|
| 2999 | { |
---|
| 3000 | |
---|
| 3001 | ; |
---|
| 3002 | return 0; |
---|
| 3003 | } |
---|
| 3004 | _ACEOF |
---|
| 3005 | rm -f conftest.$ac_objext |
---|
| 3006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3007 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3008 | ac_status=$? |
---|
| 3009 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3010 | rm -f conftest.er1 |
---|
| 3011 | cat conftest.err >&5 |
---|
| 3012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3013 | (exit $ac_status); } && |
---|
| 3014 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3015 | || test ! -s conftest.err' |
---|
| 3016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3017 | (eval $ac_try) 2>&5 |
---|
| 3018 | ac_status=$? |
---|
| 3019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3020 | (exit $ac_status); }; } && |
---|
| 3021 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3023 | (eval $ac_try) 2>&5 |
---|
| 3024 | ac_status=$? |
---|
| 3025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3026 | (exit $ac_status); }; }; then |
---|
| 3027 | ac_cv_prog_cc_g=yes |
---|
| 3028 | else |
---|
| 3029 | echo "$as_me: failed program was:" >&5 |
---|
| 3030 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3031 | |
---|
| 3032 | ac_cv_prog_cc_g=no |
---|
| 3033 | fi |
---|
| 3034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3035 | fi |
---|
| 3036 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3037 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 3038 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3039 | CFLAGS=$ac_save_CFLAGS |
---|
| 3040 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3041 | if test "$GCC" = yes; then |
---|
| 3042 | CFLAGS="-g -O2" |
---|
| 3043 | else |
---|
| 3044 | CFLAGS="-g" |
---|
| 3045 | fi |
---|
| 3046 | else |
---|
| 3047 | if test "$GCC" = yes; then |
---|
| 3048 | CFLAGS="-O2" |
---|
| 3049 | else |
---|
| 3050 | CFLAGS= |
---|
| 3051 | fi |
---|
| 3052 | fi |
---|
| 3053 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 3054 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 3055 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 3056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3057 | else |
---|
| 3058 | ac_cv_prog_cc_stdc=no |
---|
| 3059 | ac_save_CC=$CC |
---|
| 3060 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3061 | /* confdefs.h. */ |
---|
| 3062 | _ACEOF |
---|
| 3063 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3064 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3065 | /* end confdefs.h. */ |
---|
| 3066 | #include <stdarg.h> |
---|
| 3067 | #include <stdio.h> |
---|
| 3068 | #include <sys/types.h> |
---|
| 3069 | #include <sys/stat.h> |
---|
| 3070 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3071 | struct buf { int x; }; |
---|
| 3072 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3073 | static char *e (p, i) |
---|
| 3074 | char **p; |
---|
| 3075 | int i; |
---|
| 3076 | { |
---|
| 3077 | return p[i]; |
---|
| 3078 | } |
---|
| 3079 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3080 | { |
---|
| 3081 | char *s; |
---|
| 3082 | va_list v; |
---|
| 3083 | va_start (v,p); |
---|
| 3084 | s = g (p, va_arg (v,int)); |
---|
| 3085 | va_end (v); |
---|
| 3086 | return s; |
---|
| 3087 | } |
---|
| 3088 | |
---|
| 3089 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3090 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3091 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3092 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 3093 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3094 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3095 | that's true only with -std1. */ |
---|
| 3096 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3097 | |
---|
| 3098 | int test (int i, double x); |
---|
| 3099 | struct s1 {int (*f) (int a);}; |
---|
| 3100 | struct s2 {int (*f) (double a);}; |
---|
| 3101 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3102 | int argc; |
---|
| 3103 | char **argv; |
---|
| 3104 | int |
---|
| 3105 | main () |
---|
| 3106 | { |
---|
| 3107 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3108 | ; |
---|
| 3109 | return 0; |
---|
| 3110 | } |
---|
| 3111 | _ACEOF |
---|
| 3112 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3113 | # breaks some systems' header files. |
---|
| 3114 | # AIX -qlanglvl=ansi |
---|
| 3115 | # Ultrix and OSF/1 -std1 |
---|
| 3116 | # HP-UX 10.20 and later -Ae |
---|
| 3117 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3118 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3119 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3120 | do |
---|
| 3121 | CC="$ac_save_CC $ac_arg" |
---|
| 3122 | rm -f conftest.$ac_objext |
---|
| 3123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3124 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3125 | ac_status=$? |
---|
| 3126 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3127 | rm -f conftest.er1 |
---|
| 3128 | cat conftest.err >&5 |
---|
| 3129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3130 | (exit $ac_status); } && |
---|
| 3131 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3132 | || test ! -s conftest.err' |
---|
| 3133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3134 | (eval $ac_try) 2>&5 |
---|
| 3135 | ac_status=$? |
---|
| 3136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3137 | (exit $ac_status); }; } && |
---|
| 3138 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3140 | (eval $ac_try) 2>&5 |
---|
| 3141 | ac_status=$? |
---|
| 3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3143 | (exit $ac_status); }; }; then |
---|
| 3144 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3145 | break |
---|
| 3146 | else |
---|
| 3147 | echo "$as_me: failed program was:" >&5 |
---|
| 3148 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3149 | |
---|
| 3150 | fi |
---|
| 3151 | rm -f conftest.err conftest.$ac_objext |
---|
| 3152 | done |
---|
| 3153 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3154 | CC=$ac_save_CC |
---|
| 3155 | |
---|
| 3156 | fi |
---|
| 3157 | |
---|
| 3158 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3159 | x|xno) |
---|
| 3160 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3161 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3162 | *) |
---|
| 3163 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3164 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3165 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3166 | esac |
---|
| 3167 | |
---|
| 3168 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3169 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3170 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3171 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3172 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3173 | #ifndef __cplusplus |
---|
| 3174 | choke me |
---|
| 3175 | #endif |
---|
| 3176 | _ACEOF |
---|
| 3177 | rm -f conftest.$ac_objext |
---|
| 3178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3179 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3180 | ac_status=$? |
---|
| 3181 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3182 | rm -f conftest.er1 |
---|
| 3183 | cat conftest.err >&5 |
---|
| 3184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3185 | (exit $ac_status); } && |
---|
| 3186 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3187 | || test ! -s conftest.err' |
---|
| 3188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3189 | (eval $ac_try) 2>&5 |
---|
| 3190 | ac_status=$? |
---|
| 3191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3192 | (exit $ac_status); }; } && |
---|
| 3193 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3195 | (eval $ac_try) 2>&5 |
---|
| 3196 | ac_status=$? |
---|
| 3197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3198 | (exit $ac_status); }; }; then |
---|
| 3199 | for ac_declaration in \ |
---|
| 3200 | '' \ |
---|
| 3201 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3202 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3203 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3204 | 'extern "C" void exit (int);' \ |
---|
| 3205 | 'void exit (int);' |
---|
| 3206 | do |
---|
| 3207 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3208 | /* confdefs.h. */ |
---|
| 3209 | _ACEOF |
---|
| 3210 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3211 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3212 | /* end confdefs.h. */ |
---|
| 3213 | $ac_declaration |
---|
| 3214 | #include <stdlib.h> |
---|
| 3215 | int |
---|
| 3216 | main () |
---|
| 3217 | { |
---|
| 3218 | exit (42); |
---|
| 3219 | ; |
---|
| 3220 | return 0; |
---|
| 3221 | } |
---|
| 3222 | _ACEOF |
---|
| 3223 | rm -f conftest.$ac_objext |
---|
| 3224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3225 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3226 | ac_status=$? |
---|
| 3227 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3228 | rm -f conftest.er1 |
---|
| 3229 | cat conftest.err >&5 |
---|
| 3230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3231 | (exit $ac_status); } && |
---|
| 3232 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3233 | || test ! -s conftest.err' |
---|
| 3234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3235 | (eval $ac_try) 2>&5 |
---|
| 3236 | ac_status=$? |
---|
| 3237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3238 | (exit $ac_status); }; } && |
---|
| 3239 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3241 | (eval $ac_try) 2>&5 |
---|
| 3242 | ac_status=$? |
---|
| 3243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3244 | (exit $ac_status); }; }; then |
---|
| 3245 | : |
---|
| 3246 | else |
---|
| 3247 | echo "$as_me: failed program was:" >&5 |
---|
| 3248 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3249 | |
---|
| 3250 | continue |
---|
| 3251 | fi |
---|
| 3252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3253 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3254 | /* confdefs.h. */ |
---|
| 3255 | _ACEOF |
---|
| 3256 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3257 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3258 | /* end confdefs.h. */ |
---|
| 3259 | $ac_declaration |
---|
| 3260 | int |
---|
| 3261 | main () |
---|
| 3262 | { |
---|
| 3263 | exit (42); |
---|
| 3264 | ; |
---|
| 3265 | return 0; |
---|
| 3266 | } |
---|
| 3267 | _ACEOF |
---|
| 3268 | rm -f conftest.$ac_objext |
---|
| 3269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3270 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3271 | ac_status=$? |
---|
| 3272 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3273 | rm -f conftest.er1 |
---|
| 3274 | cat conftest.err >&5 |
---|
| 3275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3276 | (exit $ac_status); } && |
---|
| 3277 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3278 | || test ! -s conftest.err' |
---|
| 3279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3280 | (eval $ac_try) 2>&5 |
---|
| 3281 | ac_status=$? |
---|
| 3282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3283 | (exit $ac_status); }; } && |
---|
| 3284 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3286 | (eval $ac_try) 2>&5 |
---|
| 3287 | ac_status=$? |
---|
| 3288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3289 | (exit $ac_status); }; }; then |
---|
| 3290 | break |
---|
| 3291 | else |
---|
| 3292 | echo "$as_me: failed program was:" >&5 |
---|
| 3293 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3294 | |
---|
| 3295 | fi |
---|
| 3296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3297 | done |
---|
| 3298 | rm -f conftest* |
---|
| 3299 | if test -n "$ac_declaration"; then |
---|
| 3300 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3301 | echo $ac_declaration >>confdefs.h |
---|
| 3302 | echo '#endif' >>confdefs.h |
---|
| 3303 | fi |
---|
| 3304 | |
---|
| 3305 | else |
---|
| 3306 | echo "$as_me: failed program was:" >&5 |
---|
| 3307 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3308 | |
---|
| 3309 | fi |
---|
| 3310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3311 | ac_ext=c |
---|
| 3312 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3316 | |
---|
| 3317 | depcc="$CC" am_compiler_list= |
---|
| 3318 | |
---|
| 3319 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3320 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3321 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3323 | else |
---|
| 3324 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3325 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3326 | # making bogus files that we don't know about and never remove. For |
---|
| 3327 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3328 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3329 | # in D'. |
---|
| 3330 | mkdir conftest.dir |
---|
| 3331 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3332 | # using a relative directory. |
---|
| 3333 | cp "$am_depcomp" conftest.dir |
---|
| 3334 | cd conftest.dir |
---|
| 3335 | # We will build objects and dependencies in a subdirectory because |
---|
| 3336 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3337 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3338 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3339 | # the current directory while Tru64 will put them in the object |
---|
| 3340 | # directory. |
---|
| 3341 | mkdir sub |
---|
| 3342 | |
---|
| 3343 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3344 | if test "$am_compiler_list" = ""; then |
---|
| 3345 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3346 | fi |
---|
| 3347 | for depmode in $am_compiler_list; do |
---|
| 3348 | # Setup a source with many dependencies, because some compilers |
---|
| 3349 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3350 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3351 | # |
---|
| 3352 | # We need to recreate these files for each test, as the compiler may |
---|
| 3353 | # overwrite some of them when testing with obscure command lines. |
---|
| 3354 | # This happens at least with the AIX C compiler. |
---|
| 3355 | : > sub/conftest.c |
---|
| 3356 | for i in 1 2 3 4 5 6; do |
---|
| 3357 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2819] | 3358 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 3359 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 3360 | touch sub/conftst$i.h |
---|
[1956] | 3361 | done |
---|
| 3362 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3363 | |
---|
| 3364 | case $depmode in |
---|
| 3365 | nosideeffect) |
---|
| 3366 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3367 | # only be used when explicitly requested |
---|
| 3368 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3369 | continue |
---|
| 3370 | else |
---|
| 3371 | break |
---|
| 3372 | fi |
---|
| 3373 | ;; |
---|
| 3374 | none) break ;; |
---|
| 3375 | esac |
---|
| 3376 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3377 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3378 | # handle `-M -o', and we need to detect this. |
---|
| 3379 | if depmode=$depmode \ |
---|
| 3380 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3381 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3382 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3383 | >/dev/null 2>conftest.err && |
---|
| 3384 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3385 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3386 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3387 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2819] | 3388 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 3389 | # that says an option was ignored or not supported. |
---|
| 3390 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 3391 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 3392 | # The diagnosis changed in icc 8.0: |
---|
| 3393 | # icc: Command line remark: option '-MP' not supported |
---|
| 3394 | if (grep 'ignoring option' conftest.err || |
---|
| 3395 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 3396 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3397 | break |
---|
| 3398 | fi |
---|
| 3399 | fi |
---|
| 3400 | done |
---|
| 3401 | |
---|
| 3402 | cd .. |
---|
| 3403 | rm -rf conftest.dir |
---|
| 3404 | else |
---|
| 3405 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3406 | fi |
---|
| 3407 | |
---|
| 3408 | fi |
---|
| 3409 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3410 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3411 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3412 | |
---|
| 3413 | |
---|
| 3414 | |
---|
| 3415 | if |
---|
| 3416 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3417 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3418 | am__fastdepCC_TRUE= |
---|
| 3419 | am__fastdepCC_FALSE='#' |
---|
| 3420 | else |
---|
| 3421 | am__fastdepCC_TRUE='#' |
---|
| 3422 | am__fastdepCC_FALSE= |
---|
| 3423 | fi |
---|
| 3424 | |
---|
| 3425 | |
---|
| 3426 | |
---|
[1971] | 3427 | ac_ext=c |
---|
| 3428 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3432 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3433 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3434 | # On Suns, sometimes $CPP names a directory. |
---|
| 3435 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3436 | CPP= |
---|
| 3437 | fi |
---|
| 3438 | if test -z "$CPP"; then |
---|
| 3439 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3441 | else |
---|
[1971] | 3442 | # Double quotes because CPP needs to be expanded |
---|
| 3443 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3444 | do |
---|
| 3445 | ac_preproc_ok=false |
---|
| 3446 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3447 | do |
---|
| 3448 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3449 | # with a fresh cross-compiler works. |
---|
| 3450 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3451 | # <limits.h> exists even on freestanding compilers. |
---|
| 3452 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3453 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3454 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3455 | /* confdefs.h. */ |
---|
| 3456 | _ACEOF |
---|
| 3457 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3458 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3459 | /* end confdefs.h. */ |
---|
| 3460 | #ifdef __STDC__ |
---|
| 3461 | # include <limits.h> |
---|
| 3462 | #else |
---|
| 3463 | # include <assert.h> |
---|
| 3464 | #endif |
---|
| 3465 | Syntax error |
---|
| 3466 | _ACEOF |
---|
| 3467 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3468 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3469 | ac_status=$? |
---|
| 3470 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3471 | rm -f conftest.er1 |
---|
| 3472 | cat conftest.err >&5 |
---|
| 3473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3474 | (exit $ac_status); } >/dev/null; then |
---|
| 3475 | if test -s conftest.err; then |
---|
| 3476 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3477 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3478 | else |
---|
| 3479 | ac_cpp_err= |
---|
| 3480 | fi |
---|
| 3481 | else |
---|
| 3482 | ac_cpp_err=yes |
---|
| 3483 | fi |
---|
| 3484 | if test -z "$ac_cpp_err"; then |
---|
| 3485 | : |
---|
| 3486 | else |
---|
| 3487 | echo "$as_me: failed program was:" >&5 |
---|
| 3488 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3489 | |
---|
| 3490 | # Broken: fails on valid input. |
---|
| 3491 | continue |
---|
| 3492 | fi |
---|
| 3493 | rm -f conftest.err conftest.$ac_ext |
---|
| 3494 | |
---|
| 3495 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3496 | # can be detected and how. |
---|
| 3497 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3498 | /* confdefs.h. */ |
---|
| 3499 | _ACEOF |
---|
| 3500 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3501 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3502 | /* end confdefs.h. */ |
---|
| 3503 | #include <ac_nonexistent.h> |
---|
| 3504 | _ACEOF |
---|
| 3505 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3506 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3507 | ac_status=$? |
---|
| 3508 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3509 | rm -f conftest.er1 |
---|
| 3510 | cat conftest.err >&5 |
---|
| 3511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3512 | (exit $ac_status); } >/dev/null; then |
---|
| 3513 | if test -s conftest.err; then |
---|
| 3514 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3515 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3516 | else |
---|
| 3517 | ac_cpp_err= |
---|
| 3518 | fi |
---|
| 3519 | else |
---|
| 3520 | ac_cpp_err=yes |
---|
| 3521 | fi |
---|
| 3522 | if test -z "$ac_cpp_err"; then |
---|
| 3523 | # Broken: success on invalid input. |
---|
| 3524 | continue |
---|
| 3525 | else |
---|
| 3526 | echo "$as_me: failed program was:" >&5 |
---|
| 3527 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3528 | |
---|
| 3529 | # Passes both tests. |
---|
| 3530 | ac_preproc_ok=: |
---|
| 3531 | break |
---|
| 3532 | fi |
---|
| 3533 | rm -f conftest.err conftest.$ac_ext |
---|
| 3534 | |
---|
| 3535 | done |
---|
| 3536 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3537 | rm -f conftest.err conftest.$ac_ext |
---|
| 3538 | if $ac_preproc_ok; then |
---|
| 3539 | break |
---|
| 3540 | fi |
---|
| 3541 | |
---|
| 3542 | done |
---|
| 3543 | ac_cv_prog_CPP=$CPP |
---|
| 3544 | |
---|
| 3545 | fi |
---|
| 3546 | CPP=$ac_cv_prog_CPP |
---|
| 3547 | else |
---|
| 3548 | ac_cv_prog_CPP=$CPP |
---|
| 3549 | fi |
---|
| 3550 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3551 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3552 | ac_preproc_ok=false |
---|
| 3553 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3554 | do |
---|
| 3555 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3556 | # with a fresh cross-compiler works. |
---|
| 3557 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3558 | # <limits.h> exists even on freestanding compilers. |
---|
| 3559 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3560 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3561 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3562 | /* confdefs.h. */ |
---|
| 3563 | _ACEOF |
---|
| 3564 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3565 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3566 | /* end confdefs.h. */ |
---|
| 3567 | #ifdef __STDC__ |
---|
| 3568 | # include <limits.h> |
---|
| 3569 | #else |
---|
| 3570 | # include <assert.h> |
---|
| 3571 | #endif |
---|
| 3572 | Syntax error |
---|
| 3573 | _ACEOF |
---|
| 3574 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3575 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3576 | ac_status=$? |
---|
| 3577 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3578 | rm -f conftest.er1 |
---|
| 3579 | cat conftest.err >&5 |
---|
| 3580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3581 | (exit $ac_status); } >/dev/null; then |
---|
| 3582 | if test -s conftest.err; then |
---|
| 3583 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3584 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3585 | else |
---|
| 3586 | ac_cpp_err= |
---|
| 3587 | fi |
---|
| 3588 | else |
---|
| 3589 | ac_cpp_err=yes |
---|
| 3590 | fi |
---|
| 3591 | if test -z "$ac_cpp_err"; then |
---|
| 3592 | : |
---|
| 3593 | else |
---|
| 3594 | echo "$as_me: failed program was:" >&5 |
---|
| 3595 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3596 | |
---|
| 3597 | # Broken: fails on valid input. |
---|
| 3598 | continue |
---|
| 3599 | fi |
---|
| 3600 | rm -f conftest.err conftest.$ac_ext |
---|
| 3601 | |
---|
| 3602 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3603 | # can be detected and how. |
---|
| 3604 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3605 | /* confdefs.h. */ |
---|
| 3606 | _ACEOF |
---|
| 3607 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3608 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3609 | /* end confdefs.h. */ |
---|
| 3610 | #include <ac_nonexistent.h> |
---|
| 3611 | _ACEOF |
---|
| 3612 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3613 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3614 | ac_status=$? |
---|
| 3615 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3616 | rm -f conftest.er1 |
---|
| 3617 | cat conftest.err >&5 |
---|
| 3618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3619 | (exit $ac_status); } >/dev/null; then |
---|
| 3620 | if test -s conftest.err; then |
---|
| 3621 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3622 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3623 | else |
---|
| 3624 | ac_cpp_err= |
---|
| 3625 | fi |
---|
| 3626 | else |
---|
| 3627 | ac_cpp_err=yes |
---|
| 3628 | fi |
---|
| 3629 | if test -z "$ac_cpp_err"; then |
---|
| 3630 | # Broken: success on invalid input. |
---|
| 3631 | continue |
---|
| 3632 | else |
---|
| 3633 | echo "$as_me: failed program was:" >&5 |
---|
| 3634 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3635 | |
---|
| 3636 | # Passes both tests. |
---|
| 3637 | ac_preproc_ok=: |
---|
| 3638 | break |
---|
| 3639 | fi |
---|
| 3640 | rm -f conftest.err conftest.$ac_ext |
---|
| 3641 | |
---|
| 3642 | done |
---|
| 3643 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3644 | rm -f conftest.err conftest.$ac_ext |
---|
| 3645 | if $ac_preproc_ok; then |
---|
| 3646 | : |
---|
| 3647 | else |
---|
| 3648 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3649 | See \`config.log' for more details." >&5 |
---|
| 3650 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3651 | See \`config.log' for more details." >&2;} |
---|
| 3652 | { (exit 1); exit 1; }; } |
---|
| 3653 | fi |
---|
| 3654 | |
---|
| 3655 | ac_ext=c |
---|
| 3656 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3657 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3658 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3659 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3660 | |
---|
| 3661 | |
---|
| 3662 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3663 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3664 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3666 | else |
---|
| 3667 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3668 | then ac_cv_prog_egrep='grep -E' |
---|
| 3669 | else ac_cv_prog_egrep='egrep' |
---|
| 3670 | fi |
---|
| 3671 | fi |
---|
| 3672 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3673 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3674 | EGREP=$ac_cv_prog_egrep |
---|
| 3675 | |
---|
| 3676 | |
---|
| 3677 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3678 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3679 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3681 | else |
---|
| 3682 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3683 | /* confdefs.h. */ |
---|
| 3684 | _ACEOF |
---|
| 3685 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3686 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3687 | /* end confdefs.h. */ |
---|
| 3688 | #include <stdlib.h> |
---|
| 3689 | #include <stdarg.h> |
---|
| 3690 | #include <string.h> |
---|
| 3691 | #include <float.h> |
---|
| 3692 | |
---|
| 3693 | int |
---|
| 3694 | main () |
---|
| 3695 | { |
---|
| 3696 | |
---|
| 3697 | ; |
---|
| 3698 | return 0; |
---|
| 3699 | } |
---|
| 3700 | _ACEOF |
---|
| 3701 | rm -f conftest.$ac_objext |
---|
| 3702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3703 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3704 | ac_status=$? |
---|
| 3705 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3706 | rm -f conftest.er1 |
---|
| 3707 | cat conftest.err >&5 |
---|
| 3708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3709 | (exit $ac_status); } && |
---|
| 3710 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3711 | || test ! -s conftest.err' |
---|
| 3712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3713 | (eval $ac_try) 2>&5 |
---|
| 3714 | ac_status=$? |
---|
| 3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3716 | (exit $ac_status); }; } && |
---|
| 3717 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3719 | (eval $ac_try) 2>&5 |
---|
| 3720 | ac_status=$? |
---|
| 3721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3722 | (exit $ac_status); }; }; then |
---|
| 3723 | ac_cv_header_stdc=yes |
---|
| 3724 | else |
---|
| 3725 | echo "$as_me: failed program was:" >&5 |
---|
| 3726 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3727 | |
---|
| 3728 | ac_cv_header_stdc=no |
---|
| 3729 | fi |
---|
| 3730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3731 | |
---|
| 3732 | if test $ac_cv_header_stdc = yes; then |
---|
| 3733 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3734 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3735 | /* confdefs.h. */ |
---|
| 3736 | _ACEOF |
---|
| 3737 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3738 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3739 | /* end confdefs.h. */ |
---|
| 3740 | #include <string.h> |
---|
| 3741 | |
---|
| 3742 | _ACEOF |
---|
| 3743 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3744 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3745 | : |
---|
| 3746 | else |
---|
| 3747 | ac_cv_header_stdc=no |
---|
| 3748 | fi |
---|
| 3749 | rm -f conftest* |
---|
| 3750 | |
---|
| 3751 | fi |
---|
| 3752 | |
---|
| 3753 | if test $ac_cv_header_stdc = yes; then |
---|
| 3754 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3755 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3756 | /* confdefs.h. */ |
---|
| 3757 | _ACEOF |
---|
| 3758 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3759 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3760 | /* end confdefs.h. */ |
---|
| 3761 | #include <stdlib.h> |
---|
| 3762 | |
---|
| 3763 | _ACEOF |
---|
| 3764 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3765 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3766 | : |
---|
| 3767 | else |
---|
| 3768 | ac_cv_header_stdc=no |
---|
| 3769 | fi |
---|
| 3770 | rm -f conftest* |
---|
| 3771 | |
---|
| 3772 | fi |
---|
| 3773 | |
---|
| 3774 | if test $ac_cv_header_stdc = yes; then |
---|
| 3775 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3776 | if test "$cross_compiling" = yes; then |
---|
| 3777 | : |
---|
| 3778 | else |
---|
| 3779 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3780 | /* confdefs.h. */ |
---|
| 3781 | _ACEOF |
---|
| 3782 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3783 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3784 | /* end confdefs.h. */ |
---|
| 3785 | #include <ctype.h> |
---|
| 3786 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3787 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3788 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3789 | #else |
---|
| 3790 | # define ISLOWER(c) \ |
---|
| 3791 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3792 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3793 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3794 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3795 | #endif |
---|
| 3796 | |
---|
| 3797 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3798 | int |
---|
| 3799 | main () |
---|
| 3800 | { |
---|
| 3801 | int i; |
---|
| 3802 | for (i = 0; i < 256; i++) |
---|
| 3803 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3804 | || toupper (i) != TOUPPER (i)) |
---|
| 3805 | exit(2); |
---|
| 3806 | exit (0); |
---|
| 3807 | } |
---|
| 3808 | _ACEOF |
---|
| 3809 | rm -f conftest$ac_exeext |
---|
| 3810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3811 | (eval $ac_link) 2>&5 |
---|
| 3812 | ac_status=$? |
---|
| 3813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3814 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3816 | (eval $ac_try) 2>&5 |
---|
| 3817 | ac_status=$? |
---|
| 3818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3819 | (exit $ac_status); }; }; then |
---|
| 3820 | : |
---|
| 3821 | else |
---|
| 3822 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3823 | echo "$as_me: failed program was:" >&5 |
---|
| 3824 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3825 | |
---|
| 3826 | ( exit $ac_status ) |
---|
| 3827 | ac_cv_header_stdc=no |
---|
| 3828 | fi |
---|
| 3829 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3830 | fi |
---|
| 3831 | fi |
---|
| 3832 | fi |
---|
| 3833 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3834 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3835 | if test $ac_cv_header_stdc = yes; then |
---|
| 3836 | |
---|
| 3837 | cat >>confdefs.h <<\_ACEOF |
---|
| 3838 | #define STDC_HEADERS 1 |
---|
| 3839 | _ACEOF |
---|
| 3840 | |
---|
| 3841 | fi |
---|
| 3842 | |
---|
| 3843 | |
---|
[3424] | 3844 | ################################## |
---|
| 3845 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
| 3846 | ################################## |
---|
| 3847 | |
---|
| 3848 | #-----------------# |
---|
| 3849 | # DEBUG-statement # |
---|
| 3850 | #-----------------# |
---|
[3173] | 3851 | DEBUG=no |
---|
| 3852 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
| 3853 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3854 | # Check whether --enable-debug or --disable-debug was given. |
---|
| 3855 | if test "${enable_debug+set}" = set; then |
---|
| 3856 | enableval="$enable_debug" |
---|
[3205] | 3857 | DEBUG=$enableval |
---|
[3173] | 3858 | fi; |
---|
| 3859 | |
---|
[3424] | 3860 | if test x$DEBUG = xno; then |
---|
[3205] | 3861 | echo "no" |
---|
[3424] | 3862 | echo " -> Setting debuglevel to 3. (orxonox is still in Development. It really is needed." |
---|
| 3863 | DEBUG=3 |
---|
| 3864 | elif test x$DEBUG = xyes; then |
---|
[3205] | 3865 | echo "yes" |
---|
[3424] | 3866 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
| 3867 | DEBUG=4 |
---|
[3205] | 3868 | else |
---|
[3424] | 3869 | echo "yes: setting debuglevel to to $DEBUG" |
---|
[3205] | 3870 | fi |
---|
| 3871 | |
---|
[3173] | 3872 | cat >>confdefs.h <<_ACEOF |
---|
[3205] | 3873 | #define DEBUG $DEBUG |
---|
[3173] | 3874 | _ACEOF |
---|
| 3875 | |
---|
| 3876 | |
---|
| 3877 | |
---|
| 3878 | |
---|
[3424] | 3879 | #--------------# |
---|
| 3880 | # GTK-disabled # |
---|
| 3881 | #--------------# |
---|
[3100] | 3882 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
| 3883 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3884 | |
---|
| 3885 | # Check whether --with-gtk or --without-gtk was given. |
---|
| 3886 | if test "${with_gtk+set}" = set; then |
---|
| 3887 | withval="$with_gtk" |
---|
[3100] | 3888 | def_gtk=no |
---|
[3205] | 3889 | else |
---|
| 3890 | def_gtk=yes |
---|
[3100] | 3891 | fi; |
---|
[3424] | 3892 | if test x$def_gtk = xyes; then |
---|
[3100] | 3893 | echo "yes" |
---|
| 3894 | fi |
---|
[3424] | 3895 | if test x$def_gtk = xno; then |
---|
[3100] | 3896 | echo "no" |
---|
| 3897 | fi |
---|
[3423] | 3898 | |
---|
[3424] | 3899 | #------------------# |
---|
| 3900 | # gThread-disabled # |
---|
| 3901 | #------------------# |
---|
[3423] | 3902 | echo "$as_me:$LINENO: checking if gThread should be enabled" >&5 |
---|
| 3903 | echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6 |
---|
| 3904 | |
---|
| 3905 | # Check whether --with-gthread or --without-gthread was given. |
---|
| 3906 | if test "${with_gthread+set}" = set; then |
---|
| 3907 | withval="$with_gthread" |
---|
| 3908 | def_gthread=no |
---|
| 3909 | else |
---|
| 3910 | def_gthread=yes |
---|
| 3911 | fi; |
---|
[3424] | 3912 | if test x$def_gthread = xyes; then |
---|
[3423] | 3913 | echo "yes" |
---|
| 3914 | fi |
---|
[3424] | 3915 | if test x$def_gthread = xno; then |
---|
[3423] | 3916 | echo "no" |
---|
| 3917 | fi |
---|
| 3918 | |
---|
[3424] | 3919 | #------------------# |
---|
| 3920 | # pthread-disabled # |
---|
| 3921 | #------------------# |
---|
[3423] | 3922 | echo "$as_me:$LINENO: checking if pthread should be enabled" >&5 |
---|
| 3923 | echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6 |
---|
| 3924 | |
---|
| 3925 | # Check whether --with-pthread or --without-pthread was given. |
---|
| 3926 | if test "${with_pthread+set}" = set; then |
---|
| 3927 | withval="$with_pthread" |
---|
| 3928 | def_pthread=no |
---|
| 3929 | else |
---|
| 3930 | def_pthread=yes |
---|
| 3931 | fi; |
---|
[3424] | 3932 | if test x$def_pthread = xyes; then |
---|
[3423] | 3933 | echo "yes" |
---|
| 3934 | fi |
---|
[3424] | 3935 | if test x$def_pthread = xno; then |
---|
[3423] | 3936 | echo "no" |
---|
| 3937 | fi |
---|
| 3938 | |
---|
[3424] | 3939 | #------------------# |
---|
| 3940 | # libCurl-disabled # |
---|
| 3941 | #------------------# |
---|
[3423] | 3942 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
| 3943 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
| 3944 | |
---|
| 3945 | # Check whether --with-curl or --without-curl was given. |
---|
| 3946 | if test "${with_curl+set}" = set; then |
---|
| 3947 | withval="$with_curl" |
---|
| 3948 | def_curl=no |
---|
| 3949 | else |
---|
| 3950 | def_curl=yes |
---|
| 3951 | fi; |
---|
[3424] | 3952 | if test x$def_curl = xyes; then |
---|
[3423] | 3953 | echo "yes" |
---|
| 3954 | fi |
---|
[3424] | 3955 | if test x$def_curl = xno; then |
---|
[3423] | 3956 | echo "no" |
---|
| 3957 | fi |
---|
| 3958 | |
---|
[3424] | 3959 | #-------------------# |
---|
| 3960 | # SDL_image-disable # |
---|
| 3961 | #-------------------# |
---|
[3140] | 3962 | def_sdl_image=yes |
---|
| 3963 | echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5 |
---|
| 3964 | echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3965 | |
---|
| 3966 | # Check whether --with-sdl_image or --without-sdl_image was given. |
---|
| 3967 | if test "${with_sdl_image+set}" = set; then |
---|
| 3968 | withval="$with_sdl_image" |
---|
[3140] | 3969 | def_sdl_image=no |
---|
| 3970 | fi; |
---|
[3424] | 3971 | if test x$def_sdl_image = xyes; then |
---|
[3140] | 3972 | echo "yes" |
---|
| 3973 | fi |
---|
[3424] | 3974 | if test x$def_sdl_image = xno; then |
---|
[3140] | 3975 | echo "no" |
---|
| 3976 | fi |
---|
[3424] | 3977 | #-------------------# |
---|
| 3978 | # SubProject-enable # |
---|
| 3979 | #-------------------# |
---|
| 3980 | def_sub_projects=no |
---|
[3377] | 3981 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
| 3982 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
| 3983 | # Check whether --enable-sub-projects or --disable-sub-projects was given. |
---|
| 3984 | if test "${enable_sub_projects+set}" = set; then |
---|
| 3985 | enableval="$enable_sub_projects" |
---|
| 3986 | def_sub_projects=yes |
---|
| 3987 | fi; |
---|
[3424] | 3988 | if test x$def_sub_projects = xyes; then |
---|
[3377] | 3989 | echo "yes" |
---|
| 3990 | fi |
---|
[3424] | 3991 | if test x$def_sub_projects = xno; then |
---|
[3377] | 3992 | echo "no" |
---|
| 3993 | fi |
---|
| 3994 | |
---|
| 3995 | |
---|
| 3996 | if test x$def_sub_projects = xyes; then |
---|
| 3997 | SUB_PROJECTS_TRUE= |
---|
| 3998 | SUB_PROJECTS_FALSE='#' |
---|
| 3999 | else |
---|
| 4000 | SUB_PROJECTS_TRUE='#' |
---|
| 4001 | SUB_PROJECTS_FALSE= |
---|
| 4002 | fi |
---|
| 4003 | |
---|
| 4004 | |
---|
[3424] | 4005 | ####################### |
---|
| 4006 | ## PROGRAMM CHECKING ## |
---|
| 4007 | ## 3. party Programs ## |
---|
| 4008 | ####################### |
---|
| 4009 | |
---|
| 4010 | #----------------------# |
---|
| 4011 | # checking for Doxygen # |
---|
| 4012 | #----------------------# |
---|
[3219] | 4013 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
| 4014 | set dummy doxygen; ac_word=$2 |
---|
| 4015 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4017 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
| 4018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4019 | else |
---|
| 4020 | case $DOXYGEN in |
---|
| 4021 | [\\/]* | ?:[\\/]*) |
---|
| 4022 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
| 4023 | ;; |
---|
| 4024 | *) |
---|
| 4025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4026 | for as_dir in $PATH |
---|
| 4027 | do |
---|
| 4028 | IFS=$as_save_IFS |
---|
| 4029 | test -z "$as_dir" && as_dir=. |
---|
| 4030 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4031 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4032 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4034 | break 2 |
---|
| 4035 | fi |
---|
| 4036 | done |
---|
| 4037 | done |
---|
| 4038 | |
---|
| 4039 | ;; |
---|
| 4040 | esac |
---|
| 4041 | fi |
---|
| 4042 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
| 4043 | |
---|
| 4044 | if test -n "$DOXYGEN"; then |
---|
| 4045 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
| 4046 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
| 4047 | else |
---|
| 4048 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4049 | echo "${ECHO_T}no" >&6 |
---|
| 4050 | fi |
---|
| 4051 | |
---|
| 4052 | |
---|
| 4053 | |
---|
| 4054 | if test $DOXYGEN; then |
---|
| 4055 | DOXYGEN_TRUE= |
---|
| 4056 | DOXYGEN_FALSE='#' |
---|
| 4057 | else |
---|
| 4058 | DOXYGEN_TRUE='#' |
---|
| 4059 | DOXYGEN_FALSE= |
---|
| 4060 | fi |
---|
| 4061 | |
---|
| 4062 | |
---|
[3424] | 4063 | ######################### |
---|
| 4064 | ## CHECKING FOR SYSTEM ## |
---|
| 4065 | ######################### |
---|
| 4066 | ## here the system is checked, and openGL is included |
---|
| 4067 | ## also checking for SDL on differen Systems |
---|
[1971] | 4068 | |
---|
[2925] | 4069 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 4070 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
[2980] | 4071 | ## checking for openGL-environment and other sys-specific parameters |
---|
| 4072 | case "$target" in |
---|
[3424] | 4073 | #---------# |
---|
| 4074 | # WINDOWS # |
---|
| 4075 | #---------# |
---|
[2980] | 4076 | *-*-mingw32*) |
---|
[2925] | 4077 | echo "mingw-WINDOWS detected" |
---|
[1971] | 4078 | |
---|
[2925] | 4079 | mingw="yes" |
---|
| 4080 | MSBITFIELDS="-mms-bitfields" |
---|
| 4081 | MWINDOWS="-mwindows" |
---|
[1971] | 4082 | |
---|
[2925] | 4083 | # checking gl header |
---|
| 4084 | #done before loop |
---|
[1971] | 4085 | |
---|
[2968] | 4086 | # checking gl header |
---|
[2925] | 4087 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
[1971] | 4088 | |
---|
| 4089 | |
---|
| 4090 | |
---|
| 4091 | |
---|
[2925] | 4092 | |
---|
| 4093 | |
---|
| 4094 | |
---|
| 4095 | |
---|
| 4096 | |
---|
[1971] | 4097 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 4098 | inttypes.h stdint.h unistd.h |
---|
| 4099 | do |
---|
| 4100 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4101 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4102 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4103 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4105 | else |
---|
| 4106 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4107 | /* confdefs.h. */ |
---|
| 4108 | _ACEOF |
---|
| 4109 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4110 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4111 | /* end confdefs.h. */ |
---|
| 4112 | $ac_includes_default |
---|
| 4113 | |
---|
| 4114 | #include <$ac_header> |
---|
| 4115 | _ACEOF |
---|
| 4116 | rm -f conftest.$ac_objext |
---|
| 4117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4118 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4119 | ac_status=$? |
---|
| 4120 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4121 | rm -f conftest.er1 |
---|
| 4122 | cat conftest.err >&5 |
---|
| 4123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4124 | (exit $ac_status); } && |
---|
| 4125 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4126 | || test ! -s conftest.err' |
---|
| 4127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4128 | (eval $ac_try) 2>&5 |
---|
| 4129 | ac_status=$? |
---|
| 4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4131 | (exit $ac_status); }; } && |
---|
| 4132 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4134 | (eval $ac_try) 2>&5 |
---|
| 4135 | ac_status=$? |
---|
| 4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4137 | (exit $ac_status); }; }; then |
---|
| 4138 | eval "$as_ac_Header=yes" |
---|
| 4139 | else |
---|
| 4140 | echo "$as_me: failed program was:" >&5 |
---|
| 4141 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4142 | |
---|
| 4143 | eval "$as_ac_Header=no" |
---|
| 4144 | fi |
---|
| 4145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4146 | fi |
---|
| 4147 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4148 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4149 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4150 | cat >>confdefs.h <<_ACEOF |
---|
| 4151 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4152 | _ACEOF |
---|
| 4153 | |
---|
| 4154 | fi |
---|
| 4155 | |
---|
| 4156 | done |
---|
| 4157 | |
---|
| 4158 | |
---|
| 4159 | |
---|
[2879] | 4160 | for ac_header in GL/gl.h |
---|
| 4161 | do |
---|
| 4162 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4164 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4165 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4166 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4168 | fi |
---|
| 4169 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4170 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4171 | else |
---|
| 4172 | # Is the header compilable? |
---|
| 4173 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4174 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4175 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4176 | /* confdefs.h. */ |
---|
| 4177 | _ACEOF |
---|
| 4178 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4179 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4180 | /* end confdefs.h. */ |
---|
| 4181 | $ac_includes_default |
---|
| 4182 | #include <$ac_header> |
---|
| 4183 | _ACEOF |
---|
| 4184 | rm -f conftest.$ac_objext |
---|
| 4185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4186 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4187 | ac_status=$? |
---|
| 4188 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4189 | rm -f conftest.er1 |
---|
| 4190 | cat conftest.err >&5 |
---|
| 4191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4192 | (exit $ac_status); } && |
---|
| 4193 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4194 | || test ! -s conftest.err' |
---|
| 4195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4196 | (eval $ac_try) 2>&5 |
---|
| 4197 | ac_status=$? |
---|
| 4198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4199 | (exit $ac_status); }; } && |
---|
| 4200 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4202 | (eval $ac_try) 2>&5 |
---|
| 4203 | ac_status=$? |
---|
| 4204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4205 | (exit $ac_status); }; }; then |
---|
| 4206 | ac_header_compiler=yes |
---|
| 4207 | else |
---|
| 4208 | echo "$as_me: failed program was:" >&5 |
---|
| 4209 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4210 | |
---|
| 4211 | ac_header_compiler=no |
---|
| 4212 | fi |
---|
| 4213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4214 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4215 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4216 | |
---|
| 4217 | # Is the header present? |
---|
| 4218 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4219 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4220 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4221 | /* confdefs.h. */ |
---|
| 4222 | _ACEOF |
---|
| 4223 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4224 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4225 | /* end confdefs.h. */ |
---|
| 4226 | #include <$ac_header> |
---|
| 4227 | _ACEOF |
---|
| 4228 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4229 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4230 | ac_status=$? |
---|
| 4231 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4232 | rm -f conftest.er1 |
---|
| 4233 | cat conftest.err >&5 |
---|
| 4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4235 | (exit $ac_status); } >/dev/null; then |
---|
| 4236 | if test -s conftest.err; then |
---|
| 4237 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4238 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4239 | else |
---|
| 4240 | ac_cpp_err= |
---|
| 4241 | fi |
---|
| 4242 | else |
---|
| 4243 | ac_cpp_err=yes |
---|
| 4244 | fi |
---|
| 4245 | if test -z "$ac_cpp_err"; then |
---|
| 4246 | ac_header_preproc=yes |
---|
| 4247 | else |
---|
| 4248 | echo "$as_me: failed program was:" >&5 |
---|
| 4249 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4250 | |
---|
| 4251 | ac_header_preproc=no |
---|
| 4252 | fi |
---|
| 4253 | rm -f conftest.err conftest.$ac_ext |
---|
| 4254 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4255 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4256 | |
---|
| 4257 | # So? What about this header? |
---|
| 4258 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4259 | yes:no: ) |
---|
| 4260 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4261 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4262 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4263 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4264 | ac_header_preproc=yes |
---|
| 4265 | ;; |
---|
| 4266 | no:yes:* ) |
---|
| 4267 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4268 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4269 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4270 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4271 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4272 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4273 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4274 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4275 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4276 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4277 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4278 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4279 | ( |
---|
| 4280 | cat <<\_ASBOX |
---|
[3240] | 4281 | ## ---------------------------------------------- ## |
---|
| 4282 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4283 | ## ---------------------------------------------- ## |
---|
[2879] | 4284 | _ASBOX |
---|
| 4285 | ) | |
---|
| 4286 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4287 | ;; |
---|
| 4288 | esac |
---|
| 4289 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4290 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4291 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4293 | else |
---|
| 4294 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4295 | fi |
---|
| 4296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4297 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4298 | |
---|
| 4299 | fi |
---|
| 4300 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4301 | cat >>confdefs.h <<_ACEOF |
---|
| 4302 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4303 | _ACEOF |
---|
| 4304 | |
---|
| 4305 | else |
---|
| 4306 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4307 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4308 | { (exit 1); exit 1; }; } |
---|
| 4309 | fi |
---|
| 4310 | |
---|
| 4311 | done |
---|
| 4312 | |
---|
[2701] | 4313 | # checking for Windows openGl library |
---|
[1971] | 4314 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 4315 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 4316 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1959] | 4317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4318 | else |
---|
| 4319 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4320 | LIBS="-lopengl32 $LIBS" |
---|
| 4321 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4322 | /* confdefs.h. */ |
---|
[1956] | 4323 | _ACEOF |
---|
[1959] | 4324 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4325 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4326 | /* end confdefs.h. */ |
---|
[1956] | 4327 | |
---|
[1971] | 4328 | |
---|
[1959] | 4329 | int |
---|
| 4330 | main () |
---|
| 4331 | { |
---|
[1971] | 4332 | main (); |
---|
[1959] | 4333 | ; |
---|
| 4334 | return 0; |
---|
| 4335 | } |
---|
| 4336 | _ACEOF |
---|
| 4337 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4339 | (eval $ac_link) 2>conftest.er1 |
---|
| 4340 | ac_status=$? |
---|
| 4341 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4342 | rm -f conftest.er1 |
---|
| 4343 | cat conftest.err >&5 |
---|
| 4344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4345 | (exit $ac_status); } && |
---|
| 4346 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4347 | || test ! -s conftest.err' |
---|
| 4348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4349 | (eval $ac_try) 2>&5 |
---|
| 4350 | ac_status=$? |
---|
| 4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4352 | (exit $ac_status); }; } && |
---|
| 4353 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4355 | (eval $ac_try) 2>&5 |
---|
| 4356 | ac_status=$? |
---|
| 4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4358 | (exit $ac_status); }; }; then |
---|
[1971] | 4359 | ac_cv_lib_opengl32_main=yes |
---|
[1959] | 4360 | else |
---|
| 4361 | echo "$as_me: failed program was:" >&5 |
---|
| 4362 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4363 | |
---|
[1971] | 4364 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 4365 | fi |
---|
[1959] | 4366 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4367 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4368 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4369 | fi |
---|
[1971] | 4370 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4371 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4372 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4373 | FOUND_opengl32=yes |
---|
| 4374 | else |
---|
| 4375 | "gl/gl.h" |
---|
[1959] | 4376 | fi |
---|
[1956] | 4377 | |
---|
[3424] | 4378 | if test x$FOUND_opengl32 = xyes ; then |
---|
[1959] | 4379 | LIBS="$LIBS -lopengl32" |
---|
[1971] | 4380 | else |
---|
[1959] | 4381 | echo "------------------" |
---|
| 4382 | echo "opengl not found." |
---|
| 4383 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4384 | echo "------------------" |
---|
| 4385 | exit -1 |
---|
| 4386 | fi |
---|
| 4387 | |
---|
[2701] | 4388 | # cheking for GLU-header |
---|
[1971] | 4389 | |
---|
| 4390 | for ac_header in GL/glu.h |
---|
| 4391 | do |
---|
| 4392 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4394 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4395 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4398 | fi |
---|
| 4399 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4400 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4401 | else |
---|
| 4402 | # Is the header compilable? |
---|
| 4403 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4404 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4405 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4406 | /* confdefs.h. */ |
---|
| 4407 | _ACEOF |
---|
| 4408 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4409 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4410 | /* end confdefs.h. */ |
---|
| 4411 | $ac_includes_default |
---|
| 4412 | #include <$ac_header> |
---|
| 4413 | _ACEOF |
---|
| 4414 | rm -f conftest.$ac_objext |
---|
| 4415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4416 | (eval $ac_compile) 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); } && |
---|
| 4423 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4424 | || test ! -s conftest.err' |
---|
| 4425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4426 | (eval $ac_try) 2>&5 |
---|
| 4427 | ac_status=$? |
---|
| 4428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4429 | (exit $ac_status); }; } && |
---|
| 4430 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4432 | (eval $ac_try) 2>&5 |
---|
| 4433 | ac_status=$? |
---|
| 4434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4435 | (exit $ac_status); }; }; then |
---|
| 4436 | ac_header_compiler=yes |
---|
| 4437 | else |
---|
| 4438 | echo "$as_me: failed program was:" >&5 |
---|
| 4439 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4440 | |
---|
| 4441 | ac_header_compiler=no |
---|
| 4442 | fi |
---|
| 4443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4444 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4445 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4446 | |
---|
| 4447 | # Is the header present? |
---|
| 4448 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4449 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4450 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4451 | /* confdefs.h. */ |
---|
| 4452 | _ACEOF |
---|
| 4453 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4454 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4455 | /* end confdefs.h. */ |
---|
| 4456 | #include <$ac_header> |
---|
| 4457 | _ACEOF |
---|
| 4458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4460 | ac_status=$? |
---|
| 4461 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4462 | rm -f conftest.er1 |
---|
| 4463 | cat conftest.err >&5 |
---|
| 4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4465 | (exit $ac_status); } >/dev/null; then |
---|
| 4466 | if test -s conftest.err; then |
---|
| 4467 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4469 | else |
---|
| 4470 | ac_cpp_err= |
---|
| 4471 | fi |
---|
| 4472 | else |
---|
| 4473 | ac_cpp_err=yes |
---|
| 4474 | fi |
---|
| 4475 | if test -z "$ac_cpp_err"; then |
---|
| 4476 | ac_header_preproc=yes |
---|
| 4477 | else |
---|
| 4478 | echo "$as_me: failed program was:" >&5 |
---|
| 4479 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4480 | |
---|
| 4481 | ac_header_preproc=no |
---|
| 4482 | fi |
---|
| 4483 | rm -f conftest.err conftest.$ac_ext |
---|
| 4484 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4485 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4486 | |
---|
| 4487 | # So? What about this header? |
---|
| 4488 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4489 | yes:no: ) |
---|
| 4490 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4491 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4493 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4494 | ac_header_preproc=yes |
---|
| 4495 | ;; |
---|
| 4496 | no:yes:* ) |
---|
| 4497 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4498 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4499 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4500 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4501 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4502 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4503 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4504 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4505 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4506 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4507 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4508 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4509 | ( |
---|
| 4510 | cat <<\_ASBOX |
---|
[3240] | 4511 | ## ---------------------------------------------- ## |
---|
| 4512 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4513 | ## ---------------------------------------------- ## |
---|
[1971] | 4514 | _ASBOX |
---|
| 4515 | ) | |
---|
| 4516 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4517 | ;; |
---|
| 4518 | esac |
---|
| 4519 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4520 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4521 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4523 | else |
---|
| 4524 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4525 | fi |
---|
| 4526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4528 | |
---|
| 4529 | fi |
---|
| 4530 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4531 | cat >>confdefs.h <<_ACEOF |
---|
| 4532 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4533 | _ACEOF |
---|
| 4534 | |
---|
| 4535 | else |
---|
| 4536 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4537 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4538 | { (exit 1); exit 1; }; } |
---|
| 4539 | fi |
---|
| 4540 | |
---|
| 4541 | done |
---|
| 4542 | |
---|
| 4543 | |
---|
[2701] | 4544 | # checking for libGLU |
---|
| 4545 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4546 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4547 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
[1956] | 4548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4549 | else |
---|
| 4550 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4551 | LIBS="-lglu32 $LIBS" |
---|
[1956] | 4552 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4553 | /* confdefs.h. */ |
---|
| 4554 | _ACEOF |
---|
| 4555 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4556 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4557 | /* end confdefs.h. */ |
---|
| 4558 | |
---|
[2701] | 4559 | |
---|
[1956] | 4560 | int |
---|
| 4561 | main () |
---|
| 4562 | { |
---|
[2701] | 4563 | main (); |
---|
[1956] | 4564 | ; |
---|
| 4565 | return 0; |
---|
| 4566 | } |
---|
| 4567 | _ACEOF |
---|
| 4568 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4570 | (eval $ac_link) 2>conftest.er1 |
---|
| 4571 | ac_status=$? |
---|
| 4572 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4573 | rm -f conftest.er1 |
---|
| 4574 | cat conftest.err >&5 |
---|
| 4575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4576 | (exit $ac_status); } && |
---|
| 4577 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4578 | || test ! -s conftest.err' |
---|
| 4579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4580 | (eval $ac_try) 2>&5 |
---|
| 4581 | ac_status=$? |
---|
| 4582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4583 | (exit $ac_status); }; } && |
---|
| 4584 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4586 | (eval $ac_try) 2>&5 |
---|
| 4587 | ac_status=$? |
---|
| 4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4589 | (exit $ac_status); }; }; then |
---|
[2701] | 4590 | ac_cv_lib_glu32_main=yes |
---|
[1956] | 4591 | else |
---|
| 4592 | echo "$as_me: failed program was:" >&5 |
---|
| 4593 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4594 | |
---|
[2701] | 4595 | ac_cv_lib_glu32_main=no |
---|
[1956] | 4596 | fi |
---|
| 4597 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4598 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4599 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4600 | fi |
---|
[2701] | 4601 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4602 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 4603 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 4604 | FOUND_glu32=yes |
---|
[1959] | 4605 | fi |
---|
| 4606 | |
---|
[3424] | 4607 | if test x$FOUND_glu32 = xyes ; then |
---|
[2701] | 4608 | LIBS="$LIBS -lGLU32" |
---|
| 4609 | else |
---|
| 4610 | echo "------------------" |
---|
| 4611 | echo "GLU library not found." |
---|
| 4612 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4613 | echo "------------------" |
---|
| 4614 | exit -1 |
---|
| 4615 | fi |
---|
| 4616 | |
---|
| 4617 | # checking for mingw32 |
---|
| 4618 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4619 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4620 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
[1959] | 4621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4622 | else |
---|
| 4623 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4624 | LIBS="-lmingw32 $LIBS" |
---|
[1959] | 4625 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4626 | /* confdefs.h. */ |
---|
[1956] | 4627 | _ACEOF |
---|
[1959] | 4628 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4629 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4630 | /* end confdefs.h. */ |
---|
[1956] | 4631 | |
---|
[1971] | 4632 | |
---|
[1959] | 4633 | int |
---|
| 4634 | main () |
---|
| 4635 | { |
---|
[1971] | 4636 | main (); |
---|
[1959] | 4637 | ; |
---|
| 4638 | return 0; |
---|
| 4639 | } |
---|
| 4640 | _ACEOF |
---|
| 4641 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4643 | (eval $ac_link) 2>conftest.er1 |
---|
| 4644 | ac_status=$? |
---|
| 4645 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4646 | rm -f conftest.er1 |
---|
| 4647 | cat conftest.err >&5 |
---|
| 4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4649 | (exit $ac_status); } && |
---|
| 4650 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4651 | || test ! -s conftest.err' |
---|
| 4652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4653 | (eval $ac_try) 2>&5 |
---|
| 4654 | ac_status=$? |
---|
| 4655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4656 | (exit $ac_status); }; } && |
---|
| 4657 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4659 | (eval $ac_try) 2>&5 |
---|
| 4660 | ac_status=$? |
---|
| 4661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4662 | (exit $ac_status); }; }; then |
---|
[2701] | 4663 | ac_cv_lib_mingw32_main=yes |
---|
[1959] | 4664 | else |
---|
| 4665 | echo "$as_me: failed program was:" >&5 |
---|
| 4666 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4667 | |
---|
[2701] | 4668 | ac_cv_lib_mingw32_main=no |
---|
[1956] | 4669 | fi |
---|
[1959] | 4670 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4671 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4672 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4673 | fi |
---|
[2701] | 4674 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4675 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4676 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4677 | FOUND_mingw32=yes |
---|
[1959] | 4678 | fi |
---|
[1956] | 4679 | |
---|
[3424] | 4680 | if test x$FOUND_mingw32 = xyes; then |
---|
[2701] | 4681 | LIBS="$LIBS -lmingw32" |
---|
| 4682 | fi |
---|
[2989] | 4683 | # checking for SDL-headers |
---|
[1959] | 4684 | |
---|
[2989] | 4685 | for ac_header in SDL/SDL.h |
---|
| 4686 | do |
---|
| 4687 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4688 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4689 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4690 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4691 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4693 | fi |
---|
| 4694 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4695 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4696 | else |
---|
| 4697 | # Is the header compilable? |
---|
| 4698 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4699 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4700 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4701 | /* confdefs.h. */ |
---|
| 4702 | _ACEOF |
---|
| 4703 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4704 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4705 | /* end confdefs.h. */ |
---|
| 4706 | $ac_includes_default |
---|
| 4707 | #include <$ac_header> |
---|
| 4708 | _ACEOF |
---|
| 4709 | rm -f conftest.$ac_objext |
---|
| 4710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4711 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4712 | ac_status=$? |
---|
| 4713 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4714 | rm -f conftest.er1 |
---|
| 4715 | cat conftest.err >&5 |
---|
| 4716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4717 | (exit $ac_status); } && |
---|
| 4718 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4719 | || test ! -s conftest.err' |
---|
| 4720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4721 | (eval $ac_try) 2>&5 |
---|
| 4722 | ac_status=$? |
---|
| 4723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4724 | (exit $ac_status); }; } && |
---|
| 4725 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4727 | (eval $ac_try) 2>&5 |
---|
| 4728 | ac_status=$? |
---|
| 4729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4730 | (exit $ac_status); }; }; then |
---|
| 4731 | ac_header_compiler=yes |
---|
| 4732 | else |
---|
| 4733 | echo "$as_me: failed program was:" >&5 |
---|
| 4734 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4735 | |
---|
| 4736 | ac_header_compiler=no |
---|
| 4737 | fi |
---|
| 4738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4739 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4740 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4741 | |
---|
| 4742 | # Is the header present? |
---|
| 4743 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4744 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4745 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4746 | /* confdefs.h. */ |
---|
| 4747 | _ACEOF |
---|
| 4748 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4749 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4750 | /* end confdefs.h. */ |
---|
| 4751 | #include <$ac_header> |
---|
| 4752 | _ACEOF |
---|
| 4753 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4754 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4755 | ac_status=$? |
---|
| 4756 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4757 | rm -f conftest.er1 |
---|
| 4758 | cat conftest.err >&5 |
---|
| 4759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4760 | (exit $ac_status); } >/dev/null; then |
---|
| 4761 | if test -s conftest.err; then |
---|
| 4762 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4763 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4764 | else |
---|
| 4765 | ac_cpp_err= |
---|
| 4766 | fi |
---|
| 4767 | else |
---|
| 4768 | ac_cpp_err=yes |
---|
| 4769 | fi |
---|
| 4770 | if test -z "$ac_cpp_err"; then |
---|
| 4771 | ac_header_preproc=yes |
---|
| 4772 | else |
---|
| 4773 | echo "$as_me: failed program was:" >&5 |
---|
| 4774 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4775 | |
---|
| 4776 | ac_header_preproc=no |
---|
| 4777 | fi |
---|
| 4778 | rm -f conftest.err conftest.$ac_ext |
---|
| 4779 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4780 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4781 | |
---|
| 4782 | # So? What about this header? |
---|
| 4783 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4784 | yes:no: ) |
---|
| 4785 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4786 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4787 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4788 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4789 | ac_header_preproc=yes |
---|
[2701] | 4790 | ;; |
---|
[2989] | 4791 | no:yes:* ) |
---|
| 4792 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4793 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4794 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4795 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4796 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4797 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4798 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4799 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4800 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4801 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4802 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4803 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4804 | ( |
---|
| 4805 | cat <<\_ASBOX |
---|
[3240] | 4806 | ## ---------------------------------------------- ## |
---|
| 4807 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4808 | ## ---------------------------------------------- ## |
---|
[2989] | 4809 | _ASBOX |
---|
| 4810 | ) | |
---|
| 4811 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4812 | ;; |
---|
| 4813 | esac |
---|
| 4814 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4816 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4818 | else |
---|
| 4819 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4820 | fi |
---|
| 4821 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4822 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2701] | 4823 | |
---|
[2989] | 4824 | fi |
---|
| 4825 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4826 | cat >>confdefs.h <<_ACEOF |
---|
| 4827 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4828 | _ACEOF |
---|
| 4829 | |
---|
| 4830 | else |
---|
| 4831 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 4832 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 4833 | { (exit 1); exit 1; }; } |
---|
| 4834 | fi |
---|
| 4835 | |
---|
| 4836 | done |
---|
| 4837 | |
---|
| 4838 | |
---|
| 4839 | #checking for libSDL |
---|
| 4840 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
| 4841 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
| 4842 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
| 4843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4844 | else |
---|
| 4845 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4846 | LIBS="-lsdlmain $LIBS" |
---|
| 4847 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4848 | /* confdefs.h. */ |
---|
| 4849 | _ACEOF |
---|
| 4850 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4851 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4852 | /* end confdefs.h. */ |
---|
| 4853 | |
---|
| 4854 | |
---|
| 4855 | int |
---|
| 4856 | main () |
---|
| 4857 | { |
---|
| 4858 | main (); |
---|
| 4859 | ; |
---|
| 4860 | return 0; |
---|
| 4861 | } |
---|
| 4862 | _ACEOF |
---|
| 4863 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4865 | (eval $ac_link) 2>conftest.er1 |
---|
| 4866 | ac_status=$? |
---|
| 4867 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4868 | rm -f conftest.er1 |
---|
| 4869 | cat conftest.err >&5 |
---|
| 4870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4871 | (exit $ac_status); } && |
---|
| 4872 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4873 | || test ! -s conftest.err' |
---|
| 4874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4875 | (eval $ac_try) 2>&5 |
---|
| 4876 | ac_status=$? |
---|
| 4877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4878 | (exit $ac_status); }; } && |
---|
| 4879 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4881 | (eval $ac_try) 2>&5 |
---|
| 4882 | ac_status=$? |
---|
| 4883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4884 | (exit $ac_status); }; }; then |
---|
| 4885 | ac_cv_lib_sdlmain_main=yes |
---|
| 4886 | else |
---|
| 4887 | echo "$as_me: failed program was:" >&5 |
---|
| 4888 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4889 | |
---|
| 4890 | ac_cv_lib_sdlmain_main=no |
---|
| 4891 | fi |
---|
| 4892 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4893 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4894 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4895 | fi |
---|
| 4896 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
| 4897 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
| 4898 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
| 4899 | FOUND_sdlmain=yes |
---|
| 4900 | fi |
---|
| 4901 | |
---|
[3424] | 4902 | if test x$FOUND_sdlmain = xyes ; then |
---|
[2989] | 4903 | LIBS="$LIBS -lsdlmain" |
---|
| 4904 | else |
---|
| 4905 | echo "------------------" |
---|
| 4906 | echo "SDL library not found." |
---|
| 4907 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4908 | echo "------------------" |
---|
| 4909 | exit 1 |
---|
| 4910 | fi |
---|
| 4911 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
| 4912 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
| 4913 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
| 4914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4915 | else |
---|
| 4916 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4917 | LIBS="-lsdl $LIBS" |
---|
| 4918 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4919 | /* confdefs.h. */ |
---|
| 4920 | _ACEOF |
---|
| 4921 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4922 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4923 | /* end confdefs.h. */ |
---|
| 4924 | |
---|
| 4925 | |
---|
| 4926 | int |
---|
| 4927 | main () |
---|
| 4928 | { |
---|
| 4929 | main (); |
---|
| 4930 | ; |
---|
| 4931 | return 0; |
---|
| 4932 | } |
---|
| 4933 | _ACEOF |
---|
| 4934 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4936 | (eval $ac_link) 2>conftest.er1 |
---|
| 4937 | ac_status=$? |
---|
| 4938 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4939 | rm -f conftest.er1 |
---|
| 4940 | cat conftest.err >&5 |
---|
| 4941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4942 | (exit $ac_status); } && |
---|
| 4943 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4944 | || test ! -s conftest.err' |
---|
| 4945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4946 | (eval $ac_try) 2>&5 |
---|
| 4947 | ac_status=$? |
---|
| 4948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4949 | (exit $ac_status); }; } && |
---|
| 4950 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4952 | (eval $ac_try) 2>&5 |
---|
| 4953 | ac_status=$? |
---|
| 4954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4955 | (exit $ac_status); }; }; then |
---|
| 4956 | ac_cv_lib_sdl_main=yes |
---|
| 4957 | else |
---|
| 4958 | echo "$as_me: failed program was:" >&5 |
---|
| 4959 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4960 | |
---|
| 4961 | ac_cv_lib_sdl_main=no |
---|
| 4962 | fi |
---|
| 4963 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4964 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4965 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4966 | fi |
---|
| 4967 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
| 4968 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
| 4969 | if test $ac_cv_lib_sdl_main = yes; then |
---|
| 4970 | FOUND_sdl=yes |
---|
| 4971 | fi |
---|
| 4972 | |
---|
[3424] | 4973 | if test x$FOUND_sdl = xyes ; then |
---|
[2989] | 4974 | LIBS="$LIBS -lsdl" |
---|
| 4975 | else |
---|
| 4976 | echo "------------------" |
---|
| 4977 | echo "SDL library not found." |
---|
| 4978 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4979 | echo "------------------" |
---|
| 4980 | exit -1 |
---|
| 4981 | fi |
---|
| 4982 | |
---|
| 4983 | ;; |
---|
[3424] | 4984 | #-------# |
---|
| 4985 | # LINUX # |
---|
| 4986 | #-------# |
---|
[2980] | 4987 | *-*-linux*) |
---|
[2701] | 4988 | echo "Linux detected" |
---|
[1956] | 4989 | |
---|
[2701] | 4990 | Linux="yes" |
---|
| 4991 | |
---|
[3180] | 4992 | CPPFLAGS="-I/usr/X11R6/include" |
---|
[3385] | 4993 | LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
[2968] | 4994 | # checking gl header |
---|
[2701] | 4995 | |
---|
[2879] | 4996 | for ac_header in GL/gl.h |
---|
| 4997 | do |
---|
| 4998 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4999 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5000 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5001 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5002 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5004 | fi |
---|
| 5005 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5006 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5007 | else |
---|
| 5008 | # Is the header compilable? |
---|
| 5009 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5010 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5011 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5012 | /* confdefs.h. */ |
---|
| 5013 | _ACEOF |
---|
| 5014 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5015 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5016 | /* end confdefs.h. */ |
---|
| 5017 | $ac_includes_default |
---|
| 5018 | #include <$ac_header> |
---|
| 5019 | _ACEOF |
---|
| 5020 | rm -f conftest.$ac_objext |
---|
| 5021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5022 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5023 | ac_status=$? |
---|
| 5024 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5025 | rm -f conftest.er1 |
---|
| 5026 | cat conftest.err >&5 |
---|
| 5027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5028 | (exit $ac_status); } && |
---|
| 5029 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5030 | || test ! -s conftest.err' |
---|
| 5031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5032 | (eval $ac_try) 2>&5 |
---|
| 5033 | ac_status=$? |
---|
| 5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5035 | (exit $ac_status); }; } && |
---|
| 5036 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5038 | (eval $ac_try) 2>&5 |
---|
| 5039 | ac_status=$? |
---|
| 5040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5041 | (exit $ac_status); }; }; then |
---|
| 5042 | ac_header_compiler=yes |
---|
| 5043 | else |
---|
| 5044 | echo "$as_me: failed program was:" >&5 |
---|
| 5045 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5046 | |
---|
| 5047 | ac_header_compiler=no |
---|
| 5048 | fi |
---|
| 5049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5050 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5051 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5052 | |
---|
| 5053 | # Is the header present? |
---|
| 5054 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5055 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5056 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5057 | /* confdefs.h. */ |
---|
| 5058 | _ACEOF |
---|
| 5059 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5060 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5061 | /* end confdefs.h. */ |
---|
| 5062 | #include <$ac_header> |
---|
| 5063 | _ACEOF |
---|
| 5064 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5065 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5066 | ac_status=$? |
---|
| 5067 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5068 | rm -f conftest.er1 |
---|
| 5069 | cat conftest.err >&5 |
---|
| 5070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5071 | (exit $ac_status); } >/dev/null; then |
---|
| 5072 | if test -s conftest.err; then |
---|
| 5073 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5074 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5075 | else |
---|
| 5076 | ac_cpp_err= |
---|
| 5077 | fi |
---|
| 5078 | else |
---|
| 5079 | ac_cpp_err=yes |
---|
| 5080 | fi |
---|
| 5081 | if test -z "$ac_cpp_err"; then |
---|
| 5082 | ac_header_preproc=yes |
---|
| 5083 | else |
---|
| 5084 | echo "$as_me: failed program was:" >&5 |
---|
| 5085 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5086 | |
---|
| 5087 | ac_header_preproc=no |
---|
| 5088 | fi |
---|
| 5089 | rm -f conftest.err conftest.$ac_ext |
---|
| 5090 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5091 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5092 | |
---|
| 5093 | # So? What about this header? |
---|
| 5094 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5095 | yes:no: ) |
---|
| 5096 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5097 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5098 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5099 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5100 | ac_header_preproc=yes |
---|
| 5101 | ;; |
---|
| 5102 | no:yes:* ) |
---|
| 5103 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5104 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5105 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5106 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5107 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5108 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5109 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5110 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5111 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5112 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5113 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5114 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5115 | ( |
---|
| 5116 | cat <<\_ASBOX |
---|
[3240] | 5117 | ## ---------------------------------------------- ## |
---|
| 5118 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5119 | ## ---------------------------------------------- ## |
---|
[2879] | 5120 | _ASBOX |
---|
| 5121 | ) | |
---|
| 5122 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5123 | ;; |
---|
| 5124 | esac |
---|
| 5125 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5126 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5127 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5129 | else |
---|
| 5130 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5131 | fi |
---|
| 5132 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5133 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5134 | |
---|
| 5135 | fi |
---|
| 5136 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5137 | cat >>confdefs.h <<_ACEOF |
---|
| 5138 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5139 | _ACEOF |
---|
| 5140 | |
---|
| 5141 | else |
---|
| 5142 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5143 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5144 | { (exit 1); exit 1; }; } |
---|
| 5145 | fi |
---|
| 5146 | |
---|
| 5147 | done |
---|
| 5148 | |
---|
| 5149 | |
---|
[2701] | 5150 | # checking for Unix GL |
---|
[3385] | 5151 | echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 |
---|
| 5152 | echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 |
---|
| 5153 | if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then |
---|
[1956] | 5154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5155 | else |
---|
| 5156 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5157 | LIBS="-lGL $LIBS" |
---|
[1956] | 5158 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5159 | /* confdefs.h. */ |
---|
| 5160 | _ACEOF |
---|
| 5161 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5162 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5163 | /* end confdefs.h. */ |
---|
| 5164 | |
---|
[3385] | 5165 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5166 | #ifdef __cplusplus |
---|
| 5167 | extern "C" |
---|
| 5168 | #endif |
---|
| 5169 | /* We use char because int might match the return type of a gcc2 |
---|
| 5170 | builtin and then its argument prototype would still apply. */ |
---|
| 5171 | char glLoadIdentity (); |
---|
[1956] | 5172 | int |
---|
| 5173 | main () |
---|
| 5174 | { |
---|
[3385] | 5175 | glLoadIdentity (); |
---|
[1956] | 5176 | ; |
---|
| 5177 | return 0; |
---|
| 5178 | } |
---|
| 5179 | _ACEOF |
---|
| 5180 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5182 | (eval $ac_link) 2>conftest.er1 |
---|
| 5183 | ac_status=$? |
---|
| 5184 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5185 | rm -f conftest.er1 |
---|
| 5186 | cat conftest.err >&5 |
---|
| 5187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5188 | (exit $ac_status); } && |
---|
| 5189 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5190 | || test ! -s conftest.err' |
---|
| 5191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5192 | (eval $ac_try) 2>&5 |
---|
| 5193 | ac_status=$? |
---|
| 5194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5195 | (exit $ac_status); }; } && |
---|
| 5196 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5198 | (eval $ac_try) 2>&5 |
---|
| 5199 | ac_status=$? |
---|
| 5200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5201 | (exit $ac_status); }; }; then |
---|
[3385] | 5202 | ac_cv_lib_GL_glLoadIdentity=yes |
---|
[1956] | 5203 | else |
---|
| 5204 | echo "$as_me: failed program was:" >&5 |
---|
| 5205 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5206 | |
---|
[3385] | 5207 | ac_cv_lib_GL_glLoadIdentity=no |
---|
[1956] | 5208 | fi |
---|
| 5209 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5210 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5211 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5212 | fi |
---|
[3385] | 5213 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 |
---|
| 5214 | echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 |
---|
| 5215 | if test $ac_cv_lib_GL_glLoadIdentity = yes; then |
---|
[2701] | 5216 | FOUND_GL=yes |
---|
| 5217 | fi |
---|
| 5218 | |
---|
[3424] | 5219 | if test x$FOUND_GL = xyes ; then |
---|
[2701] | 5220 | LIBS="$LIBS -lGL" |
---|
| 5221 | else |
---|
| 5222 | echo "------------------" |
---|
| 5223 | echo "opengl not found." |
---|
| 5224 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 5225 | echo "------------------" |
---|
| 5226 | exit -1 |
---|
| 5227 | fi |
---|
| 5228 | |
---|
| 5229 | # cheking for GLU-header |
---|
| 5230 | |
---|
| 5231 | for ac_header in GL/glu.h |
---|
| 5232 | do |
---|
| 5233 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5234 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5235 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5236 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5239 | fi |
---|
| 5240 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5241 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5242 | else |
---|
| 5243 | # Is the header compilable? |
---|
| 5244 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5245 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5246 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5247 | /* confdefs.h. */ |
---|
[1956] | 5248 | _ACEOF |
---|
[2701] | 5249 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5250 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5251 | /* end confdefs.h. */ |
---|
| 5252 | $ac_includes_default |
---|
| 5253 | #include <$ac_header> |
---|
| 5254 | _ACEOF |
---|
| 5255 | rm -f conftest.$ac_objext |
---|
| 5256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5257 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5258 | ac_status=$? |
---|
| 5259 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5260 | rm -f conftest.er1 |
---|
| 5261 | cat conftest.err >&5 |
---|
| 5262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5263 | (exit $ac_status); } && |
---|
| 5264 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5265 | || test ! -s conftest.err' |
---|
| 5266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5267 | (eval $ac_try) 2>&5 |
---|
| 5268 | ac_status=$? |
---|
| 5269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5270 | (exit $ac_status); }; } && |
---|
| 5271 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5273 | (eval $ac_try) 2>&5 |
---|
| 5274 | ac_status=$? |
---|
| 5275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5276 | (exit $ac_status); }; }; then |
---|
| 5277 | ac_header_compiler=yes |
---|
| 5278 | else |
---|
| 5279 | echo "$as_me: failed program was:" >&5 |
---|
| 5280 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5281 | |
---|
[2701] | 5282 | ac_header_compiler=no |
---|
| 5283 | fi |
---|
| 5284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5285 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5286 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 5287 | |
---|
[2701] | 5288 | # Is the header present? |
---|
| 5289 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5290 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5291 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5292 | /* confdefs.h. */ |
---|
| 5293 | _ACEOF |
---|
| 5294 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5295 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5296 | /* end confdefs.h. */ |
---|
| 5297 | #include <$ac_header> |
---|
| 5298 | _ACEOF |
---|
| 5299 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5300 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5301 | ac_status=$? |
---|
| 5302 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5303 | rm -f conftest.er1 |
---|
| 5304 | cat conftest.err >&5 |
---|
| 5305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5306 | (exit $ac_status); } >/dev/null; then |
---|
| 5307 | if test -s conftest.err; then |
---|
| 5308 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5309 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5310 | else |
---|
| 5311 | ac_cpp_err= |
---|
| 5312 | fi |
---|
| 5313 | else |
---|
| 5314 | ac_cpp_err=yes |
---|
[1956] | 5315 | fi |
---|
[2701] | 5316 | if test -z "$ac_cpp_err"; then |
---|
| 5317 | ac_header_preproc=yes |
---|
| 5318 | else |
---|
| 5319 | echo "$as_me: failed program was:" >&5 |
---|
| 5320 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5321 | |
---|
[2701] | 5322 | ac_header_preproc=no |
---|
| 5323 | fi |
---|
| 5324 | rm -f conftest.err conftest.$ac_ext |
---|
| 5325 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5326 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 5327 | |
---|
[2701] | 5328 | # So? What about this header? |
---|
| 5329 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5330 | yes:no: ) |
---|
| 5331 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5332 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5333 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5334 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5335 | ac_header_preproc=yes |
---|
| 5336 | ;; |
---|
| 5337 | no:yes:* ) |
---|
| 5338 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5339 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5340 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5341 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5342 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5343 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5344 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5345 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5346 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5347 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5348 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5349 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5350 | ( |
---|
| 5351 | cat <<\_ASBOX |
---|
[3240] | 5352 | ## ---------------------------------------------- ## |
---|
| 5353 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5354 | ## ---------------------------------------------- ## |
---|
[2701] | 5355 | _ASBOX |
---|
| 5356 | ) | |
---|
| 5357 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5358 | ;; |
---|
| 5359 | esac |
---|
| 5360 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5361 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5362 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5364 | else |
---|
[2701] | 5365 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5366 | fi |
---|
| 5367 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5368 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5369 | |
---|
| 5370 | fi |
---|
| 5371 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5372 | cat >>confdefs.h <<_ACEOF |
---|
| 5373 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5374 | _ACEOF |
---|
| 5375 | |
---|
| 5376 | else |
---|
| 5377 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5378 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5379 | { (exit 1); exit 1; }; } |
---|
| 5380 | fi |
---|
| 5381 | |
---|
| 5382 | done |
---|
| 5383 | |
---|
| 5384 | |
---|
| 5385 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 5386 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 5387 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 5388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5389 | else |
---|
[2190] | 5390 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5391 | LIBS="-lGLU $LIBS" |
---|
[2190] | 5392 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5393 | /* confdefs.h. */ |
---|
| 5394 | _ACEOF |
---|
| 5395 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5396 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5397 | /* end confdefs.h. */ |
---|
| 5398 | |
---|
[2701] | 5399 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5400 | #ifdef __cplusplus |
---|
| 5401 | extern "C" |
---|
| 5402 | #endif |
---|
| 5403 | /* We use char because int might match the return type of a gcc2 |
---|
| 5404 | builtin and then its argument prototype would still apply. */ |
---|
| 5405 | char gluProject (); |
---|
[2190] | 5406 | int |
---|
| 5407 | main () |
---|
| 5408 | { |
---|
[2701] | 5409 | gluProject (); |
---|
[2190] | 5410 | ; |
---|
| 5411 | return 0; |
---|
| 5412 | } |
---|
| 5413 | _ACEOF |
---|
| 5414 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5416 | (eval $ac_link) 2>conftest.er1 |
---|
| 5417 | ac_status=$? |
---|
| 5418 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5419 | rm -f conftest.er1 |
---|
| 5420 | cat conftest.err >&5 |
---|
| 5421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5422 | (exit $ac_status); } && |
---|
| 5423 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5424 | || test ! -s conftest.err' |
---|
| 5425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5426 | (eval $ac_try) 2>&5 |
---|
| 5427 | ac_status=$? |
---|
| 5428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5429 | (exit $ac_status); }; } && |
---|
| 5430 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5432 | (eval $ac_try) 2>&5 |
---|
| 5433 | ac_status=$? |
---|
| 5434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5435 | (exit $ac_status); }; }; then |
---|
[2701] | 5436 | ac_cv_lib_GLU_gluProject=yes |
---|
[2190] | 5437 | else |
---|
| 5438 | echo "$as_me: failed program was:" >&5 |
---|
| 5439 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5440 | |
---|
[2701] | 5441 | ac_cv_lib_GLU_gluProject=no |
---|
[2190] | 5442 | fi |
---|
| 5443 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5444 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5445 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5446 | fi |
---|
[2701] | 5447 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 5448 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 5449 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 5450 | FOUND_GLU=yes |
---|
[2190] | 5451 | fi |
---|
| 5452 | |
---|
[3424] | 5453 | if test x$FOUND_GLU = xyes ; then |
---|
[2701] | 5454 | LIBS="$LIBS -lGLU" |
---|
| 5455 | else |
---|
| 5456 | echo "------------------" |
---|
| 5457 | echo "GLU library not found." |
---|
| 5458 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 5459 | echo "------------------" |
---|
| 5460 | exit -1 |
---|
| 5461 | fi |
---|
[2995] | 5462 | |
---|
[2991] | 5463 | # checking for SDL-headers |
---|
[2190] | 5464 | |
---|
[2991] | 5465 | for ac_header in SDL/SDL.h |
---|
| 5466 | do |
---|
| 5467 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5468 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5469 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5470 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5471 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5473 | fi |
---|
[2991] | 5474 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5475 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2190] | 5476 | else |
---|
[2991] | 5477 | # Is the header compilable? |
---|
| 5478 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5479 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5480 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5481 | /* confdefs.h. */ |
---|
| 5482 | _ACEOF |
---|
| 5483 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5484 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5485 | /* end confdefs.h. */ |
---|
[2991] | 5486 | $ac_includes_default |
---|
| 5487 | #include <$ac_header> |
---|
[2190] | 5488 | _ACEOF |
---|
[2991] | 5489 | rm -f conftest.$ac_objext |
---|
| 5490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5491 | (eval $ac_compile) 2>conftest.er1 |
---|
[2190] | 5492 | ac_status=$? |
---|
[2991] | 5493 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5494 | rm -f conftest.er1 |
---|
| 5495 | cat conftest.err >&5 |
---|
[2190] | 5496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5497 | (exit $ac_status); } && |
---|
| 5498 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5499 | || test ! -s conftest.err' |
---|
[2190] | 5500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5501 | (eval $ac_try) 2>&5 |
---|
| 5502 | ac_status=$? |
---|
| 5503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5504 | (exit $ac_status); }; } && |
---|
| 5505 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5507 | (eval $ac_try) 2>&5 |
---|
| 5508 | ac_status=$? |
---|
| 5509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2190] | 5510 | (exit $ac_status); }; }; then |
---|
[2991] | 5511 | ac_header_compiler=yes |
---|
[2190] | 5512 | else |
---|
[2991] | 5513 | echo "$as_me: failed program was:" >&5 |
---|
[2190] | 5514 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5515 | |
---|
[2991] | 5516 | ac_header_compiler=no |
---|
[2190] | 5517 | fi |
---|
[2991] | 5518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5519 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5520 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5521 | |
---|
| 5522 | # Is the header present? |
---|
| 5523 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5524 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5525 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5526 | /* confdefs.h. */ |
---|
| 5527 | _ACEOF |
---|
| 5528 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5529 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5530 | /* end confdefs.h. */ |
---|
| 5531 | #include <$ac_header> |
---|
| 5532 | _ACEOF |
---|
| 5533 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5534 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5535 | ac_status=$? |
---|
| 5536 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5537 | rm -f conftest.er1 |
---|
| 5538 | cat conftest.err >&5 |
---|
| 5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5540 | (exit $ac_status); } >/dev/null; then |
---|
| 5541 | if test -s conftest.err; then |
---|
| 5542 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5543 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5544 | else |
---|
| 5545 | ac_cpp_err= |
---|
| 5546 | fi |
---|
| 5547 | else |
---|
| 5548 | ac_cpp_err=yes |
---|
[2190] | 5549 | fi |
---|
[2991] | 5550 | if test -z "$ac_cpp_err"; then |
---|
| 5551 | ac_header_preproc=yes |
---|
| 5552 | else |
---|
| 5553 | echo "$as_me: failed program was:" >&5 |
---|
| 5554 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5555 | |
---|
| 5556 | ac_header_preproc=no |
---|
| 5557 | fi |
---|
| 5558 | rm -f conftest.err conftest.$ac_ext |
---|
| 5559 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5560 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5561 | |
---|
| 5562 | # So? What about this header? |
---|
| 5563 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5564 | yes:no: ) |
---|
| 5565 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5566 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5567 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5568 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5569 | ac_header_preproc=yes |
---|
| 5570 | ;; |
---|
| 5571 | no:yes:* ) |
---|
| 5572 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5573 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5574 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5575 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5576 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5577 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5578 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5579 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5580 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5581 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5582 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5583 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5584 | ( |
---|
| 5585 | cat <<\_ASBOX |
---|
[3240] | 5586 | ## ---------------------------------------------- ## |
---|
| 5587 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5588 | ## ---------------------------------------------- ## |
---|
[2991] | 5589 | _ASBOX |
---|
| 5590 | ) | |
---|
| 5591 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5592 | ;; |
---|
| 5593 | esac |
---|
| 5594 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5595 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5596 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5598 | else |
---|
| 5599 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5600 | fi |
---|
| 5601 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5602 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5603 | |
---|
| 5604 | fi |
---|
| 5605 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5606 | cat >>confdefs.h <<_ACEOF |
---|
| 5607 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5608 | _ACEOF |
---|
| 5609 | |
---|
| 5610 | else |
---|
| 5611 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 5612 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 5613 | { (exit 1); exit 1; }; } |
---|
| 5614 | fi |
---|
| 5615 | |
---|
| 5616 | done |
---|
| 5617 | |
---|
| 5618 | |
---|
[3140] | 5619 | # checking for SDL-lib |
---|
[2991] | 5620 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
| 5621 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
| 5622 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
| 5623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5624 | else |
---|
| 5625 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5626 | LIBS="-lSDL $LIBS" |
---|
| 5627 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5628 | /* confdefs.h. */ |
---|
| 5629 | _ACEOF |
---|
| 5630 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5631 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5632 | /* end confdefs.h. */ |
---|
| 5633 | |
---|
| 5634 | |
---|
| 5635 | int |
---|
| 5636 | main () |
---|
| 5637 | { |
---|
[2991] | 5638 | main (); |
---|
[2190] | 5639 | ; |
---|
| 5640 | return 0; |
---|
| 5641 | } |
---|
| 5642 | _ACEOF |
---|
| 5643 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5645 | (eval $ac_link) 2>conftest.er1 |
---|
| 5646 | ac_status=$? |
---|
| 5647 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5648 | rm -f conftest.er1 |
---|
| 5649 | cat conftest.err >&5 |
---|
| 5650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5651 | (exit $ac_status); } && |
---|
| 5652 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5653 | || test ! -s conftest.err' |
---|
| 5654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5655 | (eval $ac_try) 2>&5 |
---|
| 5656 | ac_status=$? |
---|
| 5657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5658 | (exit $ac_status); }; } && |
---|
| 5659 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5661 | (eval $ac_try) 2>&5 |
---|
| 5662 | ac_status=$? |
---|
| 5663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5664 | (exit $ac_status); }; }; then |
---|
[2991] | 5665 | ac_cv_lib_SDL_main=yes |
---|
[2190] | 5666 | else |
---|
| 5667 | echo "$as_me: failed program was:" >&5 |
---|
| 5668 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5669 | |
---|
[2991] | 5670 | ac_cv_lib_SDL_main=no |
---|
[2190] | 5671 | fi |
---|
| 5672 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5673 | conftest$ac_exeext conftest.$ac_ext |
---|
[2991] | 5674 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5675 | fi |
---|
| 5676 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
| 5677 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
| 5678 | if test $ac_cv_lib_SDL_main = yes; then |
---|
| 5679 | FOUND_SDL=yes |
---|
| 5680 | fi |
---|
| 5681 | |
---|
[3424] | 5682 | if test x$FOUND_SDL = xyes ; then |
---|
[2991] | 5683 | LIBS="$LIBS -lSDL" |
---|
| 5684 | else |
---|
| 5685 | echo "------------------" |
---|
| 5686 | echo "SDL library not found." |
---|
| 5687 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5688 | echo "------------------" |
---|
| 5689 | exit -1 |
---|
[2980] | 5690 | fi |
---|
[2701] | 5691 | |
---|
[3140] | 5692 | |
---|
[2991] | 5693 | ## checking for SDL |
---|
| 5694 | # SDL_VERSION=1.2.7 |
---|
| 5695 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 5696 | # :, |
---|
| 5697 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 5698 | # ) |
---|
| 5699 | # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 5700 | # LIBS="$LIBS $SDL_LIBS" |
---|
[2989] | 5701 | ;; |
---|
[3424] | 5702 | #-----------# |
---|
| 5703 | # MAC -OS X # |
---|
| 5704 | #-----------# |
---|
[2995] | 5705 | *darwin*) |
---|
[3424] | 5706 | echo "OS X detected" |
---|
[2995] | 5707 | |
---|
| 5708 | osX="yes" |
---|
| 5709 | |
---|
[3140] | 5710 | CPPFLAGS="-I/sw/include $CPPFLAGS" |
---|
[2995] | 5711 | # checking gl header |
---|
| 5712 | |
---|
| 5713 | for ac_header in OpenGL/gl.h |
---|
| 5714 | do |
---|
| 5715 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5716 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5717 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5721 | fi |
---|
| 5722 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5723 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5724 | else |
---|
| 5725 | # Is the header compilable? |
---|
| 5726 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5727 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5728 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5729 | /* confdefs.h. */ |
---|
| 5730 | _ACEOF |
---|
| 5731 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5732 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5733 | /* end confdefs.h. */ |
---|
| 5734 | $ac_includes_default |
---|
| 5735 | #include <$ac_header> |
---|
| 5736 | _ACEOF |
---|
| 5737 | rm -f conftest.$ac_objext |
---|
| 5738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5739 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5740 | ac_status=$? |
---|
| 5741 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5742 | rm -f conftest.er1 |
---|
| 5743 | cat conftest.err >&5 |
---|
| 5744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5745 | (exit $ac_status); } && |
---|
| 5746 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5747 | || test ! -s conftest.err' |
---|
| 5748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5749 | (eval $ac_try) 2>&5 |
---|
| 5750 | ac_status=$? |
---|
| 5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5752 | (exit $ac_status); }; } && |
---|
| 5753 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5755 | (eval $ac_try) 2>&5 |
---|
| 5756 | ac_status=$? |
---|
| 5757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5758 | (exit $ac_status); }; }; then |
---|
| 5759 | ac_header_compiler=yes |
---|
| 5760 | else |
---|
| 5761 | echo "$as_me: failed program was:" >&5 |
---|
| 5762 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5763 | |
---|
| 5764 | ac_header_compiler=no |
---|
| 5765 | fi |
---|
| 5766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5767 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5768 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5769 | |
---|
| 5770 | # Is the header present? |
---|
| 5771 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5772 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5773 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5774 | /* confdefs.h. */ |
---|
| 5775 | _ACEOF |
---|
| 5776 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5777 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5778 | /* end confdefs.h. */ |
---|
| 5779 | #include <$ac_header> |
---|
| 5780 | _ACEOF |
---|
| 5781 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5782 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5783 | ac_status=$? |
---|
| 5784 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5785 | rm -f conftest.er1 |
---|
| 5786 | cat conftest.err >&5 |
---|
| 5787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5788 | (exit $ac_status); } >/dev/null; then |
---|
| 5789 | if test -s conftest.err; then |
---|
| 5790 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5791 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5792 | else |
---|
| 5793 | ac_cpp_err= |
---|
| 5794 | fi |
---|
| 5795 | else |
---|
| 5796 | ac_cpp_err=yes |
---|
| 5797 | fi |
---|
| 5798 | if test -z "$ac_cpp_err"; then |
---|
| 5799 | ac_header_preproc=yes |
---|
| 5800 | else |
---|
| 5801 | echo "$as_me: failed program was:" >&5 |
---|
| 5802 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5803 | |
---|
| 5804 | ac_header_preproc=no |
---|
| 5805 | fi |
---|
| 5806 | rm -f conftest.err conftest.$ac_ext |
---|
| 5807 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5808 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5809 | |
---|
| 5810 | # So? What about this header? |
---|
| 5811 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5812 | yes:no: ) |
---|
| 5813 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5814 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5815 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5816 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5817 | ac_header_preproc=yes |
---|
| 5818 | ;; |
---|
| 5819 | no:yes:* ) |
---|
| 5820 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5821 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5822 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5823 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5824 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5825 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5826 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5827 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5828 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5829 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5830 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5831 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5832 | ( |
---|
| 5833 | cat <<\_ASBOX |
---|
[3240] | 5834 | ## ---------------------------------------------- ## |
---|
| 5835 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5836 | ## ---------------------------------------------- ## |
---|
[2995] | 5837 | _ASBOX |
---|
| 5838 | ) | |
---|
| 5839 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5840 | ;; |
---|
| 5841 | esac |
---|
| 5842 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5843 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5844 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5846 | else |
---|
| 5847 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5848 | fi |
---|
| 5849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5850 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5851 | |
---|
| 5852 | fi |
---|
| 5853 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5854 | cat >>confdefs.h <<_ACEOF |
---|
| 5855 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5856 | _ACEOF |
---|
| 5857 | |
---|
| 5858 | else |
---|
| 5859 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5860 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5861 | { (exit 1); exit 1; }; } |
---|
| 5862 | fi |
---|
| 5863 | |
---|
| 5864 | done |
---|
| 5865 | |
---|
| 5866 | # cheking for GLU-header |
---|
| 5867 | |
---|
| 5868 | for ac_header in OpenGL/glu.h |
---|
| 5869 | do |
---|
| 5870 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5871 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5872 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5876 | fi |
---|
| 5877 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5878 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5879 | else |
---|
| 5880 | # Is the header compilable? |
---|
| 5881 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5882 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5883 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5884 | /* confdefs.h. */ |
---|
| 5885 | _ACEOF |
---|
| 5886 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5887 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5888 | /* end confdefs.h. */ |
---|
| 5889 | $ac_includes_default |
---|
| 5890 | #include <$ac_header> |
---|
| 5891 | _ACEOF |
---|
| 5892 | rm -f conftest.$ac_objext |
---|
| 5893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5894 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5895 | ac_status=$? |
---|
| 5896 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5897 | rm -f conftest.er1 |
---|
| 5898 | cat conftest.err >&5 |
---|
| 5899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5900 | (exit $ac_status); } && |
---|
| 5901 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5902 | || test ! -s conftest.err' |
---|
| 5903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5904 | (eval $ac_try) 2>&5 |
---|
| 5905 | ac_status=$? |
---|
| 5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5907 | (exit $ac_status); }; } && |
---|
| 5908 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5910 | (eval $ac_try) 2>&5 |
---|
| 5911 | ac_status=$? |
---|
| 5912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5913 | (exit $ac_status); }; }; then |
---|
| 5914 | ac_header_compiler=yes |
---|
| 5915 | else |
---|
| 5916 | echo "$as_me: failed program was:" >&5 |
---|
| 5917 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5918 | |
---|
| 5919 | ac_header_compiler=no |
---|
| 5920 | fi |
---|
| 5921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5922 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5923 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5924 | |
---|
| 5925 | # Is the header present? |
---|
| 5926 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5927 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5928 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5929 | /* confdefs.h. */ |
---|
| 5930 | _ACEOF |
---|
| 5931 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5932 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5933 | /* end confdefs.h. */ |
---|
| 5934 | #include <$ac_header> |
---|
| 5935 | _ACEOF |
---|
| 5936 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5937 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5938 | ac_status=$? |
---|
| 5939 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5940 | rm -f conftest.er1 |
---|
| 5941 | cat conftest.err >&5 |
---|
| 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5943 | (exit $ac_status); } >/dev/null; then |
---|
| 5944 | if test -s conftest.err; then |
---|
| 5945 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5946 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5947 | else |
---|
| 5948 | ac_cpp_err= |
---|
| 5949 | fi |
---|
| 5950 | else |
---|
| 5951 | ac_cpp_err=yes |
---|
| 5952 | fi |
---|
| 5953 | if test -z "$ac_cpp_err"; then |
---|
| 5954 | ac_header_preproc=yes |
---|
| 5955 | else |
---|
| 5956 | echo "$as_me: failed program was:" >&5 |
---|
| 5957 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5958 | |
---|
| 5959 | ac_header_preproc=no |
---|
| 5960 | fi |
---|
| 5961 | rm -f conftest.err conftest.$ac_ext |
---|
| 5962 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5963 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5964 | |
---|
| 5965 | # So? What about this header? |
---|
| 5966 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5967 | yes:no: ) |
---|
| 5968 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5969 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5970 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5971 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5972 | ac_header_preproc=yes |
---|
| 5973 | ;; |
---|
| 5974 | no:yes:* ) |
---|
| 5975 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5976 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5977 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5978 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5979 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5980 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5981 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5982 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5983 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5984 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5985 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5986 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5987 | ( |
---|
| 5988 | cat <<\_ASBOX |
---|
[3240] | 5989 | ## ---------------------------------------------- ## |
---|
| 5990 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5991 | ## ---------------------------------------------- ## |
---|
[2995] | 5992 | _ASBOX |
---|
| 5993 | ) | |
---|
| 5994 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5995 | ;; |
---|
| 5996 | esac |
---|
| 5997 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5998 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5999 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6001 | else |
---|
| 6002 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6003 | fi |
---|
| 6004 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6005 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6006 | |
---|
| 6007 | fi |
---|
| 6008 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6009 | cat >>confdefs.h <<_ACEOF |
---|
| 6010 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6011 | _ACEOF |
---|
| 6012 | |
---|
| 6013 | else |
---|
| 6014 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 6015 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 6016 | { (exit 1); exit 1; }; } |
---|
| 6017 | fi |
---|
| 6018 | |
---|
| 6019 | done |
---|
| 6020 | |
---|
| 6021 | |
---|
| 6022 | LIBS="$LIBS -framework OpenGL" |
---|
| 6023 | |
---|
[3424] | 6024 | SDL_CFLAGS=`sdl-config --cflags` |
---|
| 6025 | SDL_LIBS=`sdl-config --libs` |
---|
| 6026 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 6027 | LIBS="$LIBS $SDL_LIBS" |
---|
| 6028 | |
---|
| 6029 | |
---|
[2995] | 6030 | # checking for SDL-headers |
---|
[3001] | 6031 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
| 6032 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
[2995] | 6033 | |
---|
| 6034 | ## checking for SDL |
---|
| 6035 | # SDL_VERSION=1.2.7 |
---|
| 6036 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 6037 | # :, |
---|
| 6038 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 6039 | # ) |
---|
| 6040 | |
---|
[3140] | 6041 | |
---|
[2995] | 6042 | ;; |
---|
| 6043 | |
---|
[2989] | 6044 | *) |
---|
| 6045 | ;; |
---|
| 6046 | esac |
---|
[2980] | 6047 | |
---|
[2981] | 6048 | |
---|
[2989] | 6049 | |
---|
[3424] | 6050 | ################################### |
---|
| 6051 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
| 6052 | ################################### |
---|
| 6053 | |
---|
| 6054 | #-----------# |
---|
[3508] | 6055 | # SDL_mixer # |
---|
| 6056 | #-----------# |
---|
| 6057 | |
---|
| 6058 | for ac_header in SDL/SDL_mixer.h |
---|
| 6059 | do |
---|
| 6060 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6061 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6062 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6063 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6064 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6066 | fi |
---|
| 6067 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6068 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6069 | else |
---|
| 6070 | # Is the header compilable? |
---|
| 6071 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6072 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6073 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6074 | /* confdefs.h. */ |
---|
| 6075 | _ACEOF |
---|
| 6076 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6077 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6078 | /* end confdefs.h. */ |
---|
| 6079 | $ac_includes_default |
---|
| 6080 | #include <$ac_header> |
---|
| 6081 | _ACEOF |
---|
| 6082 | rm -f conftest.$ac_objext |
---|
| 6083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6084 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6085 | ac_status=$? |
---|
| 6086 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6087 | rm -f conftest.er1 |
---|
| 6088 | cat conftest.err >&5 |
---|
| 6089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6090 | (exit $ac_status); } && |
---|
| 6091 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6092 | || test ! -s conftest.err' |
---|
| 6093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6094 | (eval $ac_try) 2>&5 |
---|
| 6095 | ac_status=$? |
---|
| 6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6097 | (exit $ac_status); }; } && |
---|
| 6098 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6100 | (eval $ac_try) 2>&5 |
---|
| 6101 | ac_status=$? |
---|
| 6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6103 | (exit $ac_status); }; }; then |
---|
| 6104 | ac_header_compiler=yes |
---|
| 6105 | else |
---|
| 6106 | echo "$as_me: failed program was:" >&5 |
---|
| 6107 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6108 | |
---|
| 6109 | ac_header_compiler=no |
---|
| 6110 | fi |
---|
| 6111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6112 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6113 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6114 | |
---|
| 6115 | # Is the header present? |
---|
| 6116 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6117 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6118 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6119 | /* confdefs.h. */ |
---|
| 6120 | _ACEOF |
---|
| 6121 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6122 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6123 | /* end confdefs.h. */ |
---|
| 6124 | #include <$ac_header> |
---|
| 6125 | _ACEOF |
---|
| 6126 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6127 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6128 | ac_status=$? |
---|
| 6129 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6130 | rm -f conftest.er1 |
---|
| 6131 | cat conftest.err >&5 |
---|
| 6132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6133 | (exit $ac_status); } >/dev/null; then |
---|
| 6134 | if test -s conftest.err; then |
---|
| 6135 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6136 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6137 | else |
---|
| 6138 | ac_cpp_err= |
---|
| 6139 | fi |
---|
| 6140 | else |
---|
| 6141 | ac_cpp_err=yes |
---|
| 6142 | fi |
---|
| 6143 | if test -z "$ac_cpp_err"; then |
---|
| 6144 | ac_header_preproc=yes |
---|
| 6145 | else |
---|
| 6146 | echo "$as_me: failed program was:" >&5 |
---|
| 6147 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6148 | |
---|
| 6149 | ac_header_preproc=no |
---|
| 6150 | fi |
---|
| 6151 | rm -f conftest.err conftest.$ac_ext |
---|
| 6152 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6153 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6154 | |
---|
| 6155 | # So? What about this header? |
---|
| 6156 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6157 | yes:no: ) |
---|
| 6158 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6159 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6160 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6161 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6162 | ac_header_preproc=yes |
---|
| 6163 | ;; |
---|
| 6164 | no:yes:* ) |
---|
| 6165 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6166 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6167 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6168 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6169 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6170 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6171 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6172 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6173 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6174 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6175 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6176 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6177 | ( |
---|
| 6178 | cat <<\_ASBOX |
---|
| 6179 | ## ---------------------------------------------- ## |
---|
| 6180 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6181 | ## ---------------------------------------------- ## |
---|
| 6182 | _ASBOX |
---|
| 6183 | ) | |
---|
| 6184 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6185 | ;; |
---|
| 6186 | esac |
---|
| 6187 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6188 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6189 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6191 | else |
---|
| 6192 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6193 | fi |
---|
| 6194 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6195 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6196 | |
---|
| 6197 | fi |
---|
| 6198 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6199 | cat >>confdefs.h <<_ACEOF |
---|
| 6200 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6201 | _ACEOF |
---|
| 6202 | |
---|
| 6203 | else |
---|
| 6204 | { { echo "$as_me:$LINENO: error: sdl_mixer not found" >&5 |
---|
| 6205 | echo "$as_me: error: sdl_mixer not found" >&2;} |
---|
| 6206 | { (exit 1); exit 1; }; } |
---|
| 6207 | fi |
---|
| 6208 | |
---|
| 6209 | done |
---|
| 6210 | |
---|
| 6211 | # checking for SDL_mixer-lib |
---|
| 6212 | echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5 |
---|
| 6213 | echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6 |
---|
| 6214 | if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then |
---|
| 6215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6216 | else |
---|
| 6217 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6218 | LIBS="-lSDL_mixer $LIBS" |
---|
| 6219 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6220 | /* confdefs.h. */ |
---|
| 6221 | _ACEOF |
---|
| 6222 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6223 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6224 | /* end confdefs.h. */ |
---|
| 6225 | |
---|
| 6226 | |
---|
| 6227 | int |
---|
| 6228 | main () |
---|
| 6229 | { |
---|
| 6230 | main (); |
---|
| 6231 | ; |
---|
| 6232 | return 0; |
---|
| 6233 | } |
---|
| 6234 | _ACEOF |
---|
| 6235 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6237 | (eval $ac_link) 2>conftest.er1 |
---|
| 6238 | ac_status=$? |
---|
| 6239 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6240 | rm -f conftest.er1 |
---|
| 6241 | cat conftest.err >&5 |
---|
| 6242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6243 | (exit $ac_status); } && |
---|
| 6244 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6245 | || test ! -s conftest.err' |
---|
| 6246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6247 | (eval $ac_try) 2>&5 |
---|
| 6248 | ac_status=$? |
---|
| 6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6250 | (exit $ac_status); }; } && |
---|
| 6251 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6253 | (eval $ac_try) 2>&5 |
---|
| 6254 | ac_status=$? |
---|
| 6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6256 | (exit $ac_status); }; }; then |
---|
| 6257 | ac_cv_lib_SDL_mixer_main=yes |
---|
| 6258 | else |
---|
| 6259 | echo "$as_me: failed program was:" >&5 |
---|
| 6260 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6261 | |
---|
| 6262 | ac_cv_lib_SDL_mixer_main=no |
---|
| 6263 | fi |
---|
| 6264 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6265 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6266 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6267 | fi |
---|
| 6268 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5 |
---|
| 6269 | echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6 |
---|
| 6270 | if test $ac_cv_lib_SDL_mixer_main = yes; then |
---|
| 6271 | FOUND_SDL_mixer=yes |
---|
| 6272 | fi |
---|
| 6273 | |
---|
| 6274 | if test x$FOUND_SDL_mixer = xyes ; then |
---|
| 6275 | LIBS="$LIBS -lSDL_mixer" |
---|
| 6276 | else |
---|
| 6277 | echo "------------------" |
---|
| 6278 | echo "SDL_mixer library not found." |
---|
| 6279 | echo "please install the SDL_mixer library, which can be found at http://www.libsdl.org/projects/SDL_mixer/" |
---|
| 6280 | echo "------------------" |
---|
| 6281 | exit -1 |
---|
| 6282 | fi |
---|
| 6283 | |
---|
| 6284 | |
---|
| 6285 | #-----------# |
---|
[3424] | 6286 | # SDL_Image # |
---|
| 6287 | #-----------# |
---|
| 6288 | if test x$def_sdl_image = xyes; then |
---|
[3140] | 6289 | # checking for SDL_image-headers |
---|
[2989] | 6290 | |
---|
[3140] | 6291 | for ac_header in SDL/SDL_image.h |
---|
| 6292 | do |
---|
| 6293 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6295 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6297 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6299 | fi |
---|
| 6300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6302 | else |
---|
| 6303 | # Is the header compilable? |
---|
| 6304 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6305 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6306 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6307 | /* confdefs.h. */ |
---|
| 6308 | _ACEOF |
---|
| 6309 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6310 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6311 | /* end confdefs.h. */ |
---|
| 6312 | $ac_includes_default |
---|
| 6313 | #include <$ac_header> |
---|
| 6314 | _ACEOF |
---|
| 6315 | rm -f conftest.$ac_objext |
---|
| 6316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6317 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6318 | ac_status=$? |
---|
| 6319 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6320 | rm -f conftest.er1 |
---|
| 6321 | cat conftest.err >&5 |
---|
| 6322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6323 | (exit $ac_status); } && |
---|
| 6324 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6325 | || test ! -s conftest.err' |
---|
| 6326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6327 | (eval $ac_try) 2>&5 |
---|
| 6328 | ac_status=$? |
---|
| 6329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6330 | (exit $ac_status); }; } && |
---|
| 6331 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6333 | (eval $ac_try) 2>&5 |
---|
| 6334 | ac_status=$? |
---|
| 6335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6336 | (exit $ac_status); }; }; then |
---|
| 6337 | ac_header_compiler=yes |
---|
| 6338 | else |
---|
| 6339 | echo "$as_me: failed program was:" >&5 |
---|
| 6340 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2989] | 6341 | |
---|
[3140] | 6342 | ac_header_compiler=no |
---|
| 6343 | fi |
---|
| 6344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6345 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6346 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[2989] | 6347 | |
---|
[3140] | 6348 | # Is the header present? |
---|
| 6349 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6350 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6351 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6352 | /* confdefs.h. */ |
---|
| 6353 | _ACEOF |
---|
| 6354 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6355 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6356 | /* end confdefs.h. */ |
---|
| 6357 | #include <$ac_header> |
---|
| 6358 | _ACEOF |
---|
| 6359 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6360 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6361 | ac_status=$? |
---|
| 6362 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6363 | rm -f conftest.er1 |
---|
| 6364 | cat conftest.err >&5 |
---|
| 6365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6366 | (exit $ac_status); } >/dev/null; then |
---|
| 6367 | if test -s conftest.err; then |
---|
| 6368 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6369 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6370 | else |
---|
| 6371 | ac_cpp_err= |
---|
| 6372 | fi |
---|
| 6373 | else |
---|
| 6374 | ac_cpp_err=yes |
---|
| 6375 | fi |
---|
| 6376 | if test -z "$ac_cpp_err"; then |
---|
| 6377 | ac_header_preproc=yes |
---|
| 6378 | else |
---|
| 6379 | echo "$as_me: failed program was:" >&5 |
---|
| 6380 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6381 | |
---|
| 6382 | ac_header_preproc=no |
---|
| 6383 | fi |
---|
| 6384 | rm -f conftest.err conftest.$ac_ext |
---|
| 6385 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6386 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6387 | |
---|
| 6388 | # So? What about this header? |
---|
| 6389 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6390 | yes:no: ) |
---|
| 6391 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6392 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6393 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6394 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6395 | ac_header_preproc=yes |
---|
| 6396 | ;; |
---|
| 6397 | no:yes:* ) |
---|
| 6398 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6399 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6400 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6401 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6402 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6403 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6404 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6405 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6406 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6407 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6408 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6409 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6410 | ( |
---|
| 6411 | cat <<\_ASBOX |
---|
[3240] | 6412 | ## ---------------------------------------------- ## |
---|
| 6413 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6414 | ## ---------------------------------------------- ## |
---|
[3140] | 6415 | _ASBOX |
---|
| 6416 | ) | |
---|
| 6417 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6418 | ;; |
---|
| 6419 | esac |
---|
| 6420 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6421 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6422 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6424 | else |
---|
| 6425 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6426 | fi |
---|
| 6427 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6428 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6429 | |
---|
| 6430 | fi |
---|
| 6431 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6432 | cat >>confdefs.h <<_ACEOF |
---|
| 6433 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6434 | _ACEOF |
---|
| 6435 | |
---|
| 6436 | else |
---|
| 6437 | echo "sdl_image not found. falling back to other options"; def_sdl_image=no |
---|
| 6438 | fi |
---|
| 6439 | |
---|
| 6440 | done |
---|
| 6441 | |
---|
| 6442 | fi |
---|
[3424] | 6443 | if test x$def_sdl_image = xyes; then |
---|
[3140] | 6444 | # checking for SDL_image-lib |
---|
| 6445 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
| 6446 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
| 6447 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
| 6448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6449 | else |
---|
| 6450 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6451 | LIBS="-lSDL_image $LIBS" |
---|
| 6452 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6453 | /* confdefs.h. */ |
---|
| 6454 | _ACEOF |
---|
| 6455 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6456 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6457 | /* end confdefs.h. */ |
---|
| 6458 | |
---|
| 6459 | |
---|
| 6460 | int |
---|
| 6461 | main () |
---|
| 6462 | { |
---|
| 6463 | main (); |
---|
| 6464 | ; |
---|
| 6465 | return 0; |
---|
| 6466 | } |
---|
| 6467 | _ACEOF |
---|
| 6468 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6470 | (eval $ac_link) 2>conftest.er1 |
---|
| 6471 | ac_status=$? |
---|
| 6472 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6473 | rm -f conftest.er1 |
---|
| 6474 | cat conftest.err >&5 |
---|
| 6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6476 | (exit $ac_status); } && |
---|
| 6477 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6478 | || test ! -s conftest.err' |
---|
| 6479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6480 | (eval $ac_try) 2>&5 |
---|
| 6481 | ac_status=$? |
---|
| 6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6483 | (exit $ac_status); }; } && |
---|
| 6484 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6486 | (eval $ac_try) 2>&5 |
---|
| 6487 | ac_status=$? |
---|
| 6488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6489 | (exit $ac_status); }; }; then |
---|
| 6490 | ac_cv_lib_SDL_image_main=yes |
---|
| 6491 | else |
---|
| 6492 | echo "$as_me: failed program was:" >&5 |
---|
| 6493 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6494 | |
---|
| 6495 | ac_cv_lib_SDL_image_main=no |
---|
| 6496 | fi |
---|
| 6497 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6498 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6499 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6500 | fi |
---|
| 6501 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
| 6502 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
| 6503 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
| 6504 | FOUND_SDL_image=yes |
---|
| 6505 | fi |
---|
| 6506 | |
---|
[3424] | 6507 | if test x$FOUND_SDL_image = xyes ; then |
---|
[3140] | 6508 | LIBS="$LIBS -lSDL_image" |
---|
| 6509 | else |
---|
| 6510 | echo "------------------" |
---|
| 6511 | echo "SDL_image library not found." |
---|
| 6512 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
| 6513 | echo "------------------" |
---|
| 6514 | exit -1 |
---|
| 6515 | fi |
---|
| 6516 | fi |
---|
| 6517 | |
---|
[3424] | 6518 | ## case no SDL-image: |
---|
| 6519 | if test x$def_sdl_image = xno; then |
---|
| 6520 | #---------# |
---|
| 6521 | # libjpeg # |
---|
| 6522 | #---------# |
---|
[3140] | 6523 | |
---|
| 6524 | for ac_header in jpeglib.h |
---|
| 6525 | do |
---|
| 6526 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6528 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6529 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6530 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6532 | fi |
---|
| 6533 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6534 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6535 | else |
---|
| 6536 | # Is the header compilable? |
---|
| 6537 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6538 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6539 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6540 | /* confdefs.h. */ |
---|
| 6541 | _ACEOF |
---|
| 6542 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6543 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6544 | /* end confdefs.h. */ |
---|
| 6545 | $ac_includes_default |
---|
| 6546 | #include <$ac_header> |
---|
| 6547 | _ACEOF |
---|
| 6548 | rm -f conftest.$ac_objext |
---|
| 6549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6550 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6551 | ac_status=$? |
---|
| 6552 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6553 | rm -f conftest.er1 |
---|
| 6554 | cat conftest.err >&5 |
---|
| 6555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6556 | (exit $ac_status); } && |
---|
| 6557 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6558 | || test ! -s conftest.err' |
---|
| 6559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6560 | (eval $ac_try) 2>&5 |
---|
| 6561 | ac_status=$? |
---|
| 6562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6563 | (exit $ac_status); }; } && |
---|
| 6564 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6566 | (eval $ac_try) 2>&5 |
---|
| 6567 | ac_status=$? |
---|
| 6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6569 | (exit $ac_status); }; }; then |
---|
| 6570 | ac_header_compiler=yes |
---|
| 6571 | else |
---|
| 6572 | echo "$as_me: failed program was:" >&5 |
---|
| 6573 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6574 | |
---|
| 6575 | ac_header_compiler=no |
---|
| 6576 | fi |
---|
| 6577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6578 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6579 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6580 | |
---|
| 6581 | # Is the header present? |
---|
| 6582 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6583 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6584 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6585 | /* confdefs.h. */ |
---|
| 6586 | _ACEOF |
---|
| 6587 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6588 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6589 | /* end confdefs.h. */ |
---|
| 6590 | #include <$ac_header> |
---|
| 6591 | _ACEOF |
---|
| 6592 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6593 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6594 | ac_status=$? |
---|
| 6595 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6596 | rm -f conftest.er1 |
---|
| 6597 | cat conftest.err >&5 |
---|
| 6598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6599 | (exit $ac_status); } >/dev/null; then |
---|
| 6600 | if test -s conftest.err; then |
---|
| 6601 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6602 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6603 | else |
---|
| 6604 | ac_cpp_err= |
---|
| 6605 | fi |
---|
| 6606 | else |
---|
| 6607 | ac_cpp_err=yes |
---|
| 6608 | fi |
---|
| 6609 | if test -z "$ac_cpp_err"; then |
---|
| 6610 | ac_header_preproc=yes |
---|
| 6611 | else |
---|
| 6612 | echo "$as_me: failed program was:" >&5 |
---|
| 6613 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6614 | |
---|
| 6615 | ac_header_preproc=no |
---|
| 6616 | fi |
---|
| 6617 | rm -f conftest.err conftest.$ac_ext |
---|
| 6618 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6619 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6620 | |
---|
| 6621 | # So? What about this header? |
---|
| 6622 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6623 | yes:no: ) |
---|
| 6624 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6625 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6626 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6627 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6628 | ac_header_preproc=yes |
---|
| 6629 | ;; |
---|
| 6630 | no:yes:* ) |
---|
| 6631 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6632 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6633 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6634 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6635 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6636 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6637 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6638 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6639 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6640 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6641 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6642 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6643 | ( |
---|
| 6644 | cat <<\_ASBOX |
---|
[3240] | 6645 | ## ---------------------------------------------- ## |
---|
| 6646 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6647 | ## ---------------------------------------------- ## |
---|
[3140] | 6648 | _ASBOX |
---|
| 6649 | ) | |
---|
| 6650 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6651 | ;; |
---|
| 6652 | esac |
---|
| 6653 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6654 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6657 | else |
---|
| 6658 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6659 | fi |
---|
| 6660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6661 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6662 | |
---|
| 6663 | fi |
---|
| 6664 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6665 | cat >>confdefs.h <<_ACEOF |
---|
| 6666 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6667 | _ACEOF |
---|
| 6668 | jpegHeader="yes" |
---|
| 6669 | else |
---|
| 6670 | jpegHeader="no" |
---|
| 6671 | fi |
---|
| 6672 | |
---|
| 6673 | done |
---|
| 6674 | |
---|
[3433] | 6675 | if test x$jpegHeader = xno; then |
---|
[3140] | 6676 | echo " not including jpeg." |
---|
| 6677 | else |
---|
| 6678 | echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 |
---|
| 6679 | echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 |
---|
| 6680 | if test "${ac_cv_lib_jpeg_main+set}" = set; then |
---|
| 6681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6682 | else |
---|
| 6683 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6684 | LIBS="-ljpeg $LIBS" |
---|
| 6685 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6686 | /* confdefs.h. */ |
---|
| 6687 | _ACEOF |
---|
| 6688 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6689 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6690 | /* end confdefs.h. */ |
---|
| 6691 | |
---|
| 6692 | |
---|
| 6693 | int |
---|
| 6694 | main () |
---|
| 6695 | { |
---|
| 6696 | main (); |
---|
| 6697 | ; |
---|
| 6698 | return 0; |
---|
| 6699 | } |
---|
| 6700 | _ACEOF |
---|
| 6701 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6703 | (eval $ac_link) 2>conftest.er1 |
---|
| 6704 | ac_status=$? |
---|
| 6705 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6706 | rm -f conftest.er1 |
---|
| 6707 | cat conftest.err >&5 |
---|
| 6708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6709 | (exit $ac_status); } && |
---|
| 6710 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6711 | || test ! -s conftest.err' |
---|
| 6712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6713 | (eval $ac_try) 2>&5 |
---|
| 6714 | ac_status=$? |
---|
| 6715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6716 | (exit $ac_status); }; } && |
---|
| 6717 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6719 | (eval $ac_try) 2>&5 |
---|
| 6720 | ac_status=$? |
---|
| 6721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6722 | (exit $ac_status); }; }; then |
---|
| 6723 | ac_cv_lib_jpeg_main=yes |
---|
| 6724 | else |
---|
| 6725 | echo "$as_me: failed program was:" >&5 |
---|
| 6726 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6727 | |
---|
| 6728 | ac_cv_lib_jpeg_main=no |
---|
| 6729 | fi |
---|
| 6730 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6731 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6732 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6733 | fi |
---|
| 6734 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 |
---|
| 6735 | echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 |
---|
| 6736 | if test $ac_cv_lib_jpeg_main = yes; then |
---|
| 6737 | FOUND_jpeg=yes |
---|
| 6738 | fi |
---|
| 6739 | |
---|
[3424] | 6740 | if test x$FOUND_jpeg = xyes ; then |
---|
[3140] | 6741 | LIBS="$LIBS -ljpeg" |
---|
| 6742 | else |
---|
| 6743 | echo "------------------" |
---|
| 6744 | echo "jpeg library not found." |
---|
| 6745 | echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" |
---|
| 6746 | echo "------------------" |
---|
| 6747 | exit -1 |
---|
| 6748 | fi |
---|
| 6749 | fi |
---|
| 6750 | |
---|
[3424] | 6751 | #--------# |
---|
| 6752 | # libpng # |
---|
| 6753 | #--------# |
---|
[3140] | 6754 | |
---|
| 6755 | for ac_header in png.h |
---|
| 6756 | do |
---|
| 6757 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6758 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6759 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6761 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6763 | fi |
---|
| 6764 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6765 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6766 | else |
---|
| 6767 | # Is the header compilable? |
---|
| 6768 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6769 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6770 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6771 | /* confdefs.h. */ |
---|
| 6772 | _ACEOF |
---|
| 6773 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6774 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6775 | /* end confdefs.h. */ |
---|
| 6776 | $ac_includes_default |
---|
| 6777 | #include <$ac_header> |
---|
| 6778 | _ACEOF |
---|
| 6779 | rm -f conftest.$ac_objext |
---|
| 6780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6781 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6782 | ac_status=$? |
---|
| 6783 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6784 | rm -f conftest.er1 |
---|
| 6785 | cat conftest.err >&5 |
---|
| 6786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6787 | (exit $ac_status); } && |
---|
| 6788 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6789 | || test ! -s conftest.err' |
---|
| 6790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6791 | (eval $ac_try) 2>&5 |
---|
| 6792 | ac_status=$? |
---|
| 6793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6794 | (exit $ac_status); }; } && |
---|
| 6795 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6797 | (eval $ac_try) 2>&5 |
---|
| 6798 | ac_status=$? |
---|
| 6799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6800 | (exit $ac_status); }; }; then |
---|
| 6801 | ac_header_compiler=yes |
---|
| 6802 | else |
---|
| 6803 | echo "$as_me: failed program was:" >&5 |
---|
| 6804 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6805 | |
---|
| 6806 | ac_header_compiler=no |
---|
| 6807 | fi |
---|
| 6808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6809 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6810 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6811 | |
---|
| 6812 | # Is the header present? |
---|
| 6813 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6814 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6815 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6816 | /* confdefs.h. */ |
---|
| 6817 | _ACEOF |
---|
| 6818 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6819 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6820 | /* end confdefs.h. */ |
---|
| 6821 | #include <$ac_header> |
---|
| 6822 | _ACEOF |
---|
| 6823 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6824 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6825 | ac_status=$? |
---|
| 6826 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6827 | rm -f conftest.er1 |
---|
| 6828 | cat conftest.err >&5 |
---|
| 6829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6830 | (exit $ac_status); } >/dev/null; then |
---|
| 6831 | if test -s conftest.err; then |
---|
| 6832 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6833 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6834 | else |
---|
| 6835 | ac_cpp_err= |
---|
| 6836 | fi |
---|
| 6837 | else |
---|
| 6838 | ac_cpp_err=yes |
---|
| 6839 | fi |
---|
| 6840 | if test -z "$ac_cpp_err"; then |
---|
| 6841 | ac_header_preproc=yes |
---|
| 6842 | else |
---|
| 6843 | echo "$as_me: failed program was:" >&5 |
---|
| 6844 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6845 | |
---|
| 6846 | ac_header_preproc=no |
---|
| 6847 | fi |
---|
| 6848 | rm -f conftest.err conftest.$ac_ext |
---|
| 6849 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6850 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6851 | |
---|
| 6852 | # So? What about this header? |
---|
| 6853 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6854 | yes:no: ) |
---|
| 6855 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6856 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6857 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6858 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6859 | ac_header_preproc=yes |
---|
| 6860 | ;; |
---|
| 6861 | no:yes:* ) |
---|
| 6862 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6863 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6864 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6865 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6866 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6867 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6868 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6869 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6870 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6871 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6872 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6873 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6874 | ( |
---|
| 6875 | cat <<\_ASBOX |
---|
[3240] | 6876 | ## ---------------------------------------------- ## |
---|
| 6877 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6878 | ## ---------------------------------------------- ## |
---|
[3140] | 6879 | _ASBOX |
---|
| 6880 | ) | |
---|
| 6881 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6882 | ;; |
---|
| 6883 | esac |
---|
| 6884 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6885 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6886 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6888 | else |
---|
| 6889 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6890 | fi |
---|
| 6891 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6892 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6893 | |
---|
| 6894 | fi |
---|
| 6895 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6896 | cat >>confdefs.h <<_ACEOF |
---|
| 6897 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6898 | _ACEOF |
---|
| 6899 | pngHeader="yes" |
---|
| 6900 | else |
---|
| 6901 | pngHeader="no" |
---|
| 6902 | fi |
---|
| 6903 | |
---|
| 6904 | done |
---|
| 6905 | |
---|
[3424] | 6906 | if test x$pngHeader = xno; then |
---|
[3140] | 6907 | echo " not including png." |
---|
| 6908 | else |
---|
| 6909 | echo "$as_me:$LINENO: checking for main in -lpng" >&5 |
---|
| 6910 | echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 |
---|
| 6911 | if test "${ac_cv_lib_png_main+set}" = set; then |
---|
| 6912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6913 | else |
---|
| 6914 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6915 | LIBS="-lpng $LIBS" |
---|
| 6916 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6917 | /* confdefs.h. */ |
---|
| 6918 | _ACEOF |
---|
| 6919 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6920 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6921 | /* end confdefs.h. */ |
---|
| 6922 | |
---|
| 6923 | |
---|
| 6924 | int |
---|
| 6925 | main () |
---|
| 6926 | { |
---|
| 6927 | main (); |
---|
| 6928 | ; |
---|
| 6929 | return 0; |
---|
| 6930 | } |
---|
| 6931 | _ACEOF |
---|
| 6932 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6934 | (eval $ac_link) 2>conftest.er1 |
---|
| 6935 | ac_status=$? |
---|
| 6936 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6937 | rm -f conftest.er1 |
---|
| 6938 | cat conftest.err >&5 |
---|
| 6939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6940 | (exit $ac_status); } && |
---|
| 6941 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6942 | || test ! -s conftest.err' |
---|
| 6943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6944 | (eval $ac_try) 2>&5 |
---|
| 6945 | ac_status=$? |
---|
| 6946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6947 | (exit $ac_status); }; } && |
---|
| 6948 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6950 | (eval $ac_try) 2>&5 |
---|
| 6951 | ac_status=$? |
---|
| 6952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6953 | (exit $ac_status); }; }; then |
---|
| 6954 | ac_cv_lib_png_main=yes |
---|
| 6955 | else |
---|
| 6956 | echo "$as_me: failed program was:" >&5 |
---|
| 6957 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6958 | |
---|
| 6959 | ac_cv_lib_png_main=no |
---|
| 6960 | fi |
---|
| 6961 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6962 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6963 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6964 | fi |
---|
| 6965 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 |
---|
| 6966 | echo "${ECHO_T}$ac_cv_lib_png_main" >&6 |
---|
| 6967 | if test $ac_cv_lib_png_main = yes; then |
---|
| 6968 | FOUND_png=yes |
---|
| 6969 | fi |
---|
| 6970 | |
---|
[3424] | 6971 | if test x$FOUND_png = xyes ; then |
---|
[3140] | 6972 | LIBS="$LIBS -lpng" |
---|
| 6973 | else |
---|
| 6974 | echo "------------------" |
---|
| 6975 | echo "png library not found." |
---|
| 6976 | echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" |
---|
| 6977 | echo "------------------" |
---|
| 6978 | exit -1 |
---|
| 6979 | fi |
---|
| 6980 | fi |
---|
| 6981 | fi |
---|
| 6982 | |
---|
[3424] | 6983 | #-----# |
---|
| 6984 | # GTK # |
---|
| 6985 | #-----# |
---|
| 6986 | if test x$def_gtk = xyes; then |
---|
[3100] | 6987 | |
---|
| 6988 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
| 6989 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
[3099] | 6990 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
[3100] | 6991 | if `pkg-config --exists gtk+-2.0`; then |
---|
| 6992 | echo "yes" |
---|
| 6993 | have_gtk2=yes |
---|
| 6994 | GTK2_LIBS=`pkg-config --libs gtk+-2.0` |
---|
| 6995 | GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` |
---|
[3101] | 6996 | |
---|
| 6997 | cat >>confdefs.h <<_ACEOF |
---|
| 6998 | #define HAVE_GTK2 1 |
---|
| 6999 | _ACEOF |
---|
| 7000 | |
---|
[3100] | 7001 | else |
---|
| 7002 | echo "no" |
---|
| 7003 | fi |
---|
| 7004 | |
---|
[2980] | 7005 | fi |
---|
[2190] | 7006 | |
---|
[2701] | 7007 | |
---|
| 7008 | |
---|
[2190] | 7009 | |
---|
[3100] | 7010 | if test x$have_gtk2 = xyes; then |
---|
[2980] | 7011 | HAVE_GTK2_TRUE= |
---|
| 7012 | HAVE_GTK2_FALSE='#' |
---|
| 7013 | else |
---|
| 7014 | HAVE_GTK2_TRUE='#' |
---|
| 7015 | HAVE_GTK2_FALSE= |
---|
| 7016 | fi |
---|
| 7017 | |
---|
| 7018 | |
---|
[3424] | 7019 | #---------# |
---|
| 7020 | # gThread # |
---|
| 7021 | #---------# |
---|
| 7022 | if test x$def_gthread = xyes; then |
---|
[2980] | 7023 | |
---|
[3423] | 7024 | echo "$as_me:$LINENO: checking for gthread" >&5 |
---|
| 7025 | echo $ECHO_N "checking for gthread... $ECHO_C" >&6 |
---|
| 7026 | if `pkg-config --exists gthread-2.0`; then |
---|
| 7027 | echo "yes" |
---|
| 7028 | have_gthread=yes |
---|
| 7029 | GTHREAD_LIBS=`pkg-config --libs gthread-2.0` |
---|
| 7030 | GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0` |
---|
[3100] | 7031 | |
---|
[3423] | 7032 | cat >>confdefs.h <<_ACEOF |
---|
| 7033 | #define HAVE_GTHREAD 1 |
---|
| 7034 | _ACEOF |
---|
[2190] | 7035 | |
---|
[3423] | 7036 | else |
---|
| 7037 | echo "no" |
---|
| 7038 | fi |
---|
[2190] | 7039 | |
---|
[3423] | 7040 | fi |
---|
| 7041 | |
---|
| 7042 | |
---|
| 7043 | |
---|
| 7044 | |
---|
| 7045 | if test x$have_gthread = xyes; then |
---|
| 7046 | HAVE_GTHREAD_TRUE= |
---|
| 7047 | HAVE_GTHREAD_FALSE='#' |
---|
| 7048 | else |
---|
| 7049 | HAVE_GTHREAD_TRUE='#' |
---|
| 7050 | HAVE_GTHREAD_FALSE= |
---|
| 7051 | fi |
---|
| 7052 | |
---|
| 7053 | |
---|
[3424] | 7054 | #---------# |
---|
| 7055 | # libcURL # |
---|
| 7056 | #---------# |
---|
| 7057 | if test x$def_curl = xyes; then |
---|
[3423] | 7058 | |
---|
| 7059 | |
---|
| 7060 | for ac_header in curl/curl.h |
---|
| 7061 | do |
---|
| 7062 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7064 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7068 | fi |
---|
| 7069 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7070 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7071 | else |
---|
| 7072 | # Is the header compilable? |
---|
| 7073 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7074 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7075 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7076 | /* confdefs.h. */ |
---|
| 7077 | _ACEOF |
---|
| 7078 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7079 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7080 | /* end confdefs.h. */ |
---|
| 7081 | $ac_includes_default |
---|
| 7082 | #include <$ac_header> |
---|
| 7083 | _ACEOF |
---|
| 7084 | rm -f conftest.$ac_objext |
---|
| 7085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7086 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7087 | ac_status=$? |
---|
| 7088 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7089 | rm -f conftest.er1 |
---|
| 7090 | cat conftest.err >&5 |
---|
| 7091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7092 | (exit $ac_status); } && |
---|
| 7093 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7094 | || test ! -s conftest.err' |
---|
| 7095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7096 | (eval $ac_try) 2>&5 |
---|
| 7097 | ac_status=$? |
---|
| 7098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7099 | (exit $ac_status); }; } && |
---|
| 7100 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7102 | (eval $ac_try) 2>&5 |
---|
| 7103 | ac_status=$? |
---|
| 7104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7105 | (exit $ac_status); }; }; then |
---|
| 7106 | ac_header_compiler=yes |
---|
| 7107 | else |
---|
| 7108 | echo "$as_me: failed program was:" >&5 |
---|
| 7109 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7110 | |
---|
| 7111 | ac_header_compiler=no |
---|
| 7112 | fi |
---|
| 7113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7114 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7115 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7116 | |
---|
| 7117 | # Is the header present? |
---|
| 7118 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7119 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7120 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7121 | /* confdefs.h. */ |
---|
| 7122 | _ACEOF |
---|
| 7123 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7124 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7125 | /* end confdefs.h. */ |
---|
| 7126 | #include <$ac_header> |
---|
| 7127 | _ACEOF |
---|
| 7128 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7129 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7130 | ac_status=$? |
---|
| 7131 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7132 | rm -f conftest.er1 |
---|
| 7133 | cat conftest.err >&5 |
---|
| 7134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7135 | (exit $ac_status); } >/dev/null; then |
---|
| 7136 | if test -s conftest.err; then |
---|
| 7137 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7138 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7139 | else |
---|
| 7140 | ac_cpp_err= |
---|
| 7141 | fi |
---|
| 7142 | else |
---|
| 7143 | ac_cpp_err=yes |
---|
| 7144 | fi |
---|
| 7145 | if test -z "$ac_cpp_err"; then |
---|
| 7146 | ac_header_preproc=yes |
---|
| 7147 | else |
---|
| 7148 | echo "$as_me: failed program was:" >&5 |
---|
| 7149 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7150 | |
---|
| 7151 | ac_header_preproc=no |
---|
| 7152 | fi |
---|
| 7153 | rm -f conftest.err conftest.$ac_ext |
---|
| 7154 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7155 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7156 | |
---|
| 7157 | # So? What about this header? |
---|
| 7158 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7159 | yes:no: ) |
---|
| 7160 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7161 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7162 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7163 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7164 | ac_header_preproc=yes |
---|
| 7165 | ;; |
---|
| 7166 | no:yes:* ) |
---|
| 7167 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7168 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7169 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7170 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7171 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7172 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7173 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7174 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7176 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7177 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7178 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7179 | ( |
---|
| 7180 | cat <<\_ASBOX |
---|
| 7181 | ## ---------------------------------------------- ## |
---|
| 7182 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7183 | ## ---------------------------------------------- ## |
---|
| 7184 | _ASBOX |
---|
| 7185 | ) | |
---|
| 7186 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7187 | ;; |
---|
| 7188 | esac |
---|
| 7189 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7190 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7193 | else |
---|
| 7194 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7195 | fi |
---|
| 7196 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7197 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7198 | |
---|
| 7199 | fi |
---|
| 7200 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7201 | cat >>confdefs.h <<_ACEOF |
---|
| 7202 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7203 | _ACEOF |
---|
| 7204 | curlHeader="yes" |
---|
| 7205 | else |
---|
| 7206 | curlHeader="no" |
---|
| 7207 | fi |
---|
| 7208 | |
---|
| 7209 | done |
---|
| 7210 | |
---|
| 7211 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
| 7212 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
| 7213 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
| 7214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7215 | else |
---|
| 7216 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7217 | LIBS="-lcurl $LIBS" |
---|
| 7218 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7219 | /* confdefs.h. */ |
---|
| 7220 | _ACEOF |
---|
| 7221 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7222 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7223 | /* end confdefs.h. */ |
---|
| 7224 | |
---|
| 7225 | |
---|
| 7226 | int |
---|
| 7227 | main () |
---|
| 7228 | { |
---|
| 7229 | main (); |
---|
| 7230 | ; |
---|
| 7231 | return 0; |
---|
| 7232 | } |
---|
| 7233 | _ACEOF |
---|
| 7234 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7236 | (eval $ac_link) 2>conftest.er1 |
---|
| 7237 | ac_status=$? |
---|
| 7238 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7239 | rm -f conftest.er1 |
---|
| 7240 | cat conftest.err >&5 |
---|
| 7241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7242 | (exit $ac_status); } && |
---|
| 7243 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7244 | || test ! -s conftest.err' |
---|
| 7245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7246 | (eval $ac_try) 2>&5 |
---|
| 7247 | ac_status=$? |
---|
| 7248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7249 | (exit $ac_status); }; } && |
---|
| 7250 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7252 | (eval $ac_try) 2>&5 |
---|
| 7253 | ac_status=$? |
---|
| 7254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7255 | (exit $ac_status); }; }; then |
---|
| 7256 | ac_cv_lib_curl_main=yes |
---|
| 7257 | else |
---|
| 7258 | echo "$as_me: failed program was:" >&5 |
---|
| 7259 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7260 | |
---|
| 7261 | ac_cv_lib_curl_main=no |
---|
| 7262 | fi |
---|
| 7263 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7264 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7265 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7266 | fi |
---|
| 7267 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
| 7268 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
| 7269 | if test $ac_cv_lib_curl_main = yes; then |
---|
| 7270 | FOUND_curl=yes |
---|
| 7271 | fi |
---|
| 7272 | |
---|
| 7273 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
| 7274 | have_curl=yes |
---|
| 7275 | CURL_LIBS=`curl-config --libs` |
---|
| 7276 | CURLCFLAGS=`curl-config --cflags` |
---|
| 7277 | |
---|
| 7278 | cat >>confdefs.h <<_ACEOF |
---|
| 7279 | #define HAVE_CURL 1 |
---|
| 7280 | _ACEOF |
---|
| 7281 | |
---|
| 7282 | else |
---|
| 7283 | have_curl=no |
---|
| 7284 | fi |
---|
| 7285 | |
---|
| 7286 | fi |
---|
| 7287 | |
---|
| 7288 | |
---|
| 7289 | |
---|
| 7290 | |
---|
| 7291 | if test x$have_curl = xyes; then |
---|
| 7292 | HAVE_CURL_TRUE= |
---|
| 7293 | HAVE_CURL_FALSE='#' |
---|
| 7294 | else |
---|
| 7295 | HAVE_CURL_TRUE='#' |
---|
| 7296 | HAVE_CURL_FALSE= |
---|
| 7297 | fi |
---|
| 7298 | |
---|
| 7299 | |
---|
[3424] | 7300 | #---------# |
---|
| 7301 | # pthread # |
---|
| 7302 | #---------# |
---|
[3423] | 7303 | if test x$def_pthread = xyes ; then |
---|
| 7304 | if test x$have_gthread = xyes ; then |
---|
| 7305 | |
---|
| 7306 | for ac_header in pthread.h |
---|
| 7307 | do |
---|
| 7308 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7309 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7310 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7311 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7312 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7314 | fi |
---|
| 7315 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7316 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7317 | else |
---|
| 7318 | # Is the header compilable? |
---|
| 7319 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7320 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7321 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7322 | /* confdefs.h. */ |
---|
| 7323 | _ACEOF |
---|
| 7324 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7325 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7326 | /* end confdefs.h. */ |
---|
| 7327 | $ac_includes_default |
---|
| 7328 | #include <$ac_header> |
---|
| 7329 | _ACEOF |
---|
| 7330 | rm -f conftest.$ac_objext |
---|
| 7331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7332 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7333 | ac_status=$? |
---|
| 7334 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7335 | rm -f conftest.er1 |
---|
| 7336 | cat conftest.err >&5 |
---|
| 7337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7338 | (exit $ac_status); } && |
---|
| 7339 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7340 | || test ! -s conftest.err' |
---|
| 7341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7342 | (eval $ac_try) 2>&5 |
---|
| 7343 | ac_status=$? |
---|
| 7344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7345 | (exit $ac_status); }; } && |
---|
| 7346 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7348 | (eval $ac_try) 2>&5 |
---|
| 7349 | ac_status=$? |
---|
| 7350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7351 | (exit $ac_status); }; }; then |
---|
| 7352 | ac_header_compiler=yes |
---|
| 7353 | else |
---|
| 7354 | echo "$as_me: failed program was:" >&5 |
---|
| 7355 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7356 | |
---|
| 7357 | ac_header_compiler=no |
---|
| 7358 | fi |
---|
| 7359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7360 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7361 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7362 | |
---|
| 7363 | # Is the header present? |
---|
| 7364 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7365 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7366 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7367 | /* confdefs.h. */ |
---|
| 7368 | _ACEOF |
---|
| 7369 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7370 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7371 | /* end confdefs.h. */ |
---|
| 7372 | #include <$ac_header> |
---|
| 7373 | _ACEOF |
---|
| 7374 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7375 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7376 | ac_status=$? |
---|
| 7377 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7378 | rm -f conftest.er1 |
---|
| 7379 | cat conftest.err >&5 |
---|
| 7380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7381 | (exit $ac_status); } >/dev/null; then |
---|
| 7382 | if test -s conftest.err; then |
---|
| 7383 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7384 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7385 | else |
---|
| 7386 | ac_cpp_err= |
---|
| 7387 | fi |
---|
| 7388 | else |
---|
| 7389 | ac_cpp_err=yes |
---|
| 7390 | fi |
---|
| 7391 | if test -z "$ac_cpp_err"; then |
---|
| 7392 | ac_header_preproc=yes |
---|
| 7393 | else |
---|
| 7394 | echo "$as_me: failed program was:" >&5 |
---|
| 7395 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7396 | |
---|
| 7397 | ac_header_preproc=no |
---|
| 7398 | fi |
---|
| 7399 | rm -f conftest.err conftest.$ac_ext |
---|
| 7400 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7401 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7402 | |
---|
| 7403 | # So? What about this header? |
---|
| 7404 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7405 | yes:no: ) |
---|
| 7406 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7407 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7408 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7409 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7410 | ac_header_preproc=yes |
---|
| 7411 | ;; |
---|
| 7412 | no:yes:* ) |
---|
| 7413 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7414 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7415 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7416 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7417 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7418 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7419 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7420 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7421 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7422 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7423 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7424 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7425 | ( |
---|
| 7426 | cat <<\_ASBOX |
---|
| 7427 | ## ---------------------------------------------- ## |
---|
| 7428 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7429 | ## ---------------------------------------------- ## |
---|
| 7430 | _ASBOX |
---|
| 7431 | ) | |
---|
| 7432 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7433 | ;; |
---|
| 7434 | esac |
---|
| 7435 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7436 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7439 | else |
---|
| 7440 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7441 | fi |
---|
| 7442 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7443 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7444 | |
---|
| 7445 | fi |
---|
| 7446 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7447 | cat >>confdefs.h <<_ACEOF |
---|
| 7448 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7449 | _ACEOF |
---|
| 7450 | pthreadHeader="yes" |
---|
| 7451 | else |
---|
| 7452 | pthreadHeader="no" |
---|
| 7453 | fi |
---|
| 7454 | |
---|
| 7455 | done |
---|
| 7456 | |
---|
| 7457 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
| 7458 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
| 7459 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
| 7460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7461 | else |
---|
| 7462 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7463 | LIBS="-lpthread $LIBS" |
---|
| 7464 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7465 | /* confdefs.h. */ |
---|
| 7466 | _ACEOF |
---|
| 7467 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7468 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7469 | /* end confdefs.h. */ |
---|
| 7470 | |
---|
| 7471 | |
---|
| 7472 | int |
---|
| 7473 | main () |
---|
| 7474 | { |
---|
| 7475 | main (); |
---|
| 7476 | ; |
---|
| 7477 | return 0; |
---|
| 7478 | } |
---|
| 7479 | _ACEOF |
---|
| 7480 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7482 | (eval $ac_link) 2>conftest.er1 |
---|
| 7483 | ac_status=$? |
---|
| 7484 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7485 | rm -f conftest.er1 |
---|
| 7486 | cat conftest.err >&5 |
---|
| 7487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7488 | (exit $ac_status); } && |
---|
| 7489 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7490 | || test ! -s conftest.err' |
---|
| 7491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7492 | (eval $ac_try) 2>&5 |
---|
| 7493 | ac_status=$? |
---|
| 7494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7495 | (exit $ac_status); }; } && |
---|
| 7496 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7498 | (eval $ac_try) 2>&5 |
---|
| 7499 | ac_status=$? |
---|
| 7500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7501 | (exit $ac_status); }; }; then |
---|
| 7502 | ac_cv_lib_pthread_main=yes |
---|
| 7503 | else |
---|
| 7504 | echo "$as_me: failed program was:" >&5 |
---|
| 7505 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7506 | |
---|
| 7507 | ac_cv_lib_pthread_main=no |
---|
| 7508 | fi |
---|
| 7509 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7510 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7511 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7512 | fi |
---|
| 7513 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
| 7514 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
| 7515 | if test $ac_cv_lib_pthread_main = yes; then |
---|
| 7516 | FOUND_pthread=yes |
---|
| 7517 | fi |
---|
| 7518 | |
---|
[3424] | 7519 | if test x$FOUND_pthread = xyes ; then |
---|
[3423] | 7520 | LIBS="$LIBS -lpthread" |
---|
| 7521 | fi |
---|
| 7522 | fi |
---|
| 7523 | fi |
---|
[3424] | 7524 | |
---|
| 7525 | |
---|
[1956] | 7526 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 7527 | |
---|
| 7528 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 7529 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 7530 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 7531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7532 | else |
---|
| 7533 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7534 | LIBS="-lm $LIBS" |
---|
| 7535 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7536 | /* confdefs.h. */ |
---|
| 7537 | _ACEOF |
---|
| 7538 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7539 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7540 | /* end confdefs.h. */ |
---|
| 7541 | |
---|
| 7542 | |
---|
| 7543 | int |
---|
| 7544 | main () |
---|
| 7545 | { |
---|
| 7546 | main (); |
---|
| 7547 | ; |
---|
| 7548 | return 0; |
---|
| 7549 | } |
---|
| 7550 | _ACEOF |
---|
| 7551 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7553 | (eval $ac_link) 2>conftest.er1 |
---|
| 7554 | ac_status=$? |
---|
| 7555 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7556 | rm -f conftest.er1 |
---|
| 7557 | cat conftest.err >&5 |
---|
| 7558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7559 | (exit $ac_status); } && |
---|
| 7560 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7561 | || test ! -s conftest.err' |
---|
| 7562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7563 | (eval $ac_try) 2>&5 |
---|
| 7564 | ac_status=$? |
---|
| 7565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7566 | (exit $ac_status); }; } && |
---|
| 7567 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7569 | (eval $ac_try) 2>&5 |
---|
| 7570 | ac_status=$? |
---|
| 7571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7572 | (exit $ac_status); }; }; then |
---|
| 7573 | ac_cv_lib_m_main=yes |
---|
| 7574 | else |
---|
| 7575 | echo "$as_me: failed program was:" >&5 |
---|
| 7576 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7577 | |
---|
| 7578 | ac_cv_lib_m_main=no |
---|
| 7579 | fi |
---|
| 7580 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7581 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7582 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7583 | fi |
---|
| 7584 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 7585 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 7586 | if test $ac_cv_lib_m_main = yes; then |
---|
| 7587 | cat >>confdefs.h <<_ACEOF |
---|
| 7588 | #define HAVE_LIBM 1 |
---|
| 7589 | _ACEOF |
---|
| 7590 | |
---|
| 7591 | LIBS="-lm $LIBS" |
---|
| 7592 | |
---|
| 7593 | fi |
---|
| 7594 | |
---|
| 7595 | |
---|
[2018] | 7596 | |
---|
[1956] | 7597 | # Checks for header files. |
---|
| 7598 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 7599 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 7600 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 7601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7602 | else |
---|
| 7603 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7604 | /* confdefs.h. */ |
---|
| 7605 | _ACEOF |
---|
| 7606 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7607 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7608 | /* end confdefs.h. */ |
---|
| 7609 | #include <stdlib.h> |
---|
| 7610 | #include <stdarg.h> |
---|
| 7611 | #include <string.h> |
---|
| 7612 | #include <float.h> |
---|
| 7613 | |
---|
| 7614 | int |
---|
| 7615 | main () |
---|
| 7616 | { |
---|
| 7617 | |
---|
| 7618 | ; |
---|
| 7619 | return 0; |
---|
| 7620 | } |
---|
| 7621 | _ACEOF |
---|
| 7622 | rm -f conftest.$ac_objext |
---|
| 7623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7624 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7625 | ac_status=$? |
---|
| 7626 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7627 | rm -f conftest.er1 |
---|
| 7628 | cat conftest.err >&5 |
---|
| 7629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7630 | (exit $ac_status); } && |
---|
| 7631 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7632 | || test ! -s conftest.err' |
---|
| 7633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7634 | (eval $ac_try) 2>&5 |
---|
| 7635 | ac_status=$? |
---|
| 7636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7637 | (exit $ac_status); }; } && |
---|
| 7638 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7640 | (eval $ac_try) 2>&5 |
---|
| 7641 | ac_status=$? |
---|
| 7642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7643 | (exit $ac_status); }; }; then |
---|
| 7644 | ac_cv_header_stdc=yes |
---|
| 7645 | else |
---|
| 7646 | echo "$as_me: failed program was:" >&5 |
---|
| 7647 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7648 | |
---|
| 7649 | ac_cv_header_stdc=no |
---|
| 7650 | fi |
---|
| 7651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7652 | |
---|
| 7653 | if test $ac_cv_header_stdc = yes; then |
---|
| 7654 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 7655 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7656 | /* confdefs.h. */ |
---|
| 7657 | _ACEOF |
---|
| 7658 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7659 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7660 | /* end confdefs.h. */ |
---|
| 7661 | #include <string.h> |
---|
| 7662 | |
---|
| 7663 | _ACEOF |
---|
| 7664 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 7665 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 7666 | : |
---|
| 7667 | else |
---|
| 7668 | ac_cv_header_stdc=no |
---|
| 7669 | fi |
---|
| 7670 | rm -f conftest* |
---|
| 7671 | |
---|
| 7672 | fi |
---|
| 7673 | |
---|
| 7674 | if test $ac_cv_header_stdc = yes; then |
---|
| 7675 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 7676 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7677 | /* confdefs.h. */ |
---|
| 7678 | _ACEOF |
---|
| 7679 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7680 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7681 | /* end confdefs.h. */ |
---|
| 7682 | #include <stdlib.h> |
---|
| 7683 | |
---|
| 7684 | _ACEOF |
---|
| 7685 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 7686 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 7687 | : |
---|
| 7688 | else |
---|
| 7689 | ac_cv_header_stdc=no |
---|
| 7690 | fi |
---|
| 7691 | rm -f conftest* |
---|
| 7692 | |
---|
| 7693 | fi |
---|
| 7694 | |
---|
| 7695 | if test $ac_cv_header_stdc = yes; then |
---|
| 7696 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 7697 | if test "$cross_compiling" = yes; then |
---|
| 7698 | : |
---|
| 7699 | else |
---|
| 7700 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7701 | /* confdefs.h. */ |
---|
| 7702 | _ACEOF |
---|
| 7703 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7704 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7705 | /* end confdefs.h. */ |
---|
| 7706 | #include <ctype.h> |
---|
| 7707 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 7708 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 7709 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 7710 | #else |
---|
| 7711 | # define ISLOWER(c) \ |
---|
| 7712 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 7713 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 7714 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 7715 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 7716 | #endif |
---|
| 7717 | |
---|
| 7718 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 7719 | int |
---|
| 7720 | main () |
---|
| 7721 | { |
---|
| 7722 | int i; |
---|
| 7723 | for (i = 0; i < 256; i++) |
---|
| 7724 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 7725 | || toupper (i) != TOUPPER (i)) |
---|
| 7726 | exit(2); |
---|
| 7727 | exit (0); |
---|
| 7728 | } |
---|
| 7729 | _ACEOF |
---|
| 7730 | rm -f conftest$ac_exeext |
---|
| 7731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7732 | (eval $ac_link) 2>&5 |
---|
| 7733 | ac_status=$? |
---|
| 7734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7735 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 7736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7737 | (eval $ac_try) 2>&5 |
---|
| 7738 | ac_status=$? |
---|
| 7739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7740 | (exit $ac_status); }; }; then |
---|
| 7741 | : |
---|
| 7742 | else |
---|
| 7743 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 7744 | echo "$as_me: failed program was:" >&5 |
---|
| 7745 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7746 | |
---|
| 7747 | ( exit $ac_status ) |
---|
| 7748 | ac_cv_header_stdc=no |
---|
| 7749 | fi |
---|
| 7750 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 7751 | fi |
---|
| 7752 | fi |
---|
| 7753 | fi |
---|
| 7754 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 7755 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 7756 | if test $ac_cv_header_stdc = yes; then |
---|
| 7757 | |
---|
| 7758 | cat >>confdefs.h <<\_ACEOF |
---|
| 7759 | #define STDC_HEADERS 1 |
---|
| 7760 | _ACEOF |
---|
| 7761 | |
---|
| 7762 | fi |
---|
| 7763 | |
---|
| 7764 | |
---|
| 7765 | |
---|
| 7766 | for ac_header in stdlib.h string.h |
---|
| 7767 | do |
---|
| 7768 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7770 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7771 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7772 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7774 | fi |
---|
| 7775 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7776 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7777 | else |
---|
| 7778 | # Is the header compilable? |
---|
| 7779 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7780 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7781 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7782 | /* confdefs.h. */ |
---|
| 7783 | _ACEOF |
---|
| 7784 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7785 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7786 | /* end confdefs.h. */ |
---|
| 7787 | $ac_includes_default |
---|
| 7788 | #include <$ac_header> |
---|
| 7789 | _ACEOF |
---|
| 7790 | rm -f conftest.$ac_objext |
---|
| 7791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7792 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7793 | ac_status=$? |
---|
| 7794 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7795 | rm -f conftest.er1 |
---|
| 7796 | cat conftest.err >&5 |
---|
| 7797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7798 | (exit $ac_status); } && |
---|
| 7799 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7800 | || test ! -s conftest.err' |
---|
| 7801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7802 | (eval $ac_try) 2>&5 |
---|
| 7803 | ac_status=$? |
---|
| 7804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7805 | (exit $ac_status); }; } && |
---|
| 7806 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7808 | (eval $ac_try) 2>&5 |
---|
| 7809 | ac_status=$? |
---|
| 7810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7811 | (exit $ac_status); }; }; then |
---|
| 7812 | ac_header_compiler=yes |
---|
| 7813 | else |
---|
| 7814 | echo "$as_me: failed program was:" >&5 |
---|
| 7815 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7816 | |
---|
| 7817 | ac_header_compiler=no |
---|
| 7818 | fi |
---|
| 7819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7820 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7821 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7822 | |
---|
| 7823 | # Is the header present? |
---|
| 7824 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7825 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7826 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7827 | /* confdefs.h. */ |
---|
| 7828 | _ACEOF |
---|
| 7829 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7830 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7831 | /* end confdefs.h. */ |
---|
| 7832 | #include <$ac_header> |
---|
| 7833 | _ACEOF |
---|
| 7834 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7835 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7836 | ac_status=$? |
---|
| 7837 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7838 | rm -f conftest.er1 |
---|
| 7839 | cat conftest.err >&5 |
---|
| 7840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7841 | (exit $ac_status); } >/dev/null; then |
---|
| 7842 | if test -s conftest.err; then |
---|
| 7843 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7844 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7845 | else |
---|
| 7846 | ac_cpp_err= |
---|
| 7847 | fi |
---|
| 7848 | else |
---|
| 7849 | ac_cpp_err=yes |
---|
| 7850 | fi |
---|
| 7851 | if test -z "$ac_cpp_err"; then |
---|
| 7852 | ac_header_preproc=yes |
---|
| 7853 | else |
---|
| 7854 | echo "$as_me: failed program was:" >&5 |
---|
| 7855 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7856 | |
---|
| 7857 | ac_header_preproc=no |
---|
| 7858 | fi |
---|
| 7859 | rm -f conftest.err conftest.$ac_ext |
---|
| 7860 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7861 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7862 | |
---|
| 7863 | # So? What about this header? |
---|
| 7864 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7865 | yes:no: ) |
---|
| 7866 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7867 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7868 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7869 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7870 | ac_header_preproc=yes |
---|
| 7871 | ;; |
---|
| 7872 | no:yes:* ) |
---|
| 7873 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7874 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7875 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7876 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7877 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7878 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7879 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7880 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7881 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7882 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7883 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7884 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7885 | ( |
---|
| 7886 | cat <<\_ASBOX |
---|
[3240] | 7887 | ## ---------------------------------------------- ## |
---|
| 7888 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7889 | ## ---------------------------------------------- ## |
---|
[1956] | 7890 | _ASBOX |
---|
| 7891 | ) | |
---|
| 7892 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7893 | ;; |
---|
| 7894 | esac |
---|
| 7895 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7896 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7897 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7899 | else |
---|
| 7900 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7901 | fi |
---|
| 7902 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7903 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7904 | |
---|
| 7905 | fi |
---|
| 7906 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7907 | cat >>confdefs.h <<_ACEOF |
---|
| 7908 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7909 | _ACEOF |
---|
| 7910 | |
---|
| 7911 | fi |
---|
| 7912 | |
---|
| 7913 | done |
---|
| 7914 | |
---|
| 7915 | |
---|
| 7916 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 7917 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 7918 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 7919 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 7920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7921 | else |
---|
| 7922 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7923 | /* confdefs.h. */ |
---|
| 7924 | _ACEOF |
---|
| 7925 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7926 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7927 | /* end confdefs.h. */ |
---|
| 7928 | |
---|
| 7929 | #include <stdbool.h> |
---|
| 7930 | #ifndef bool |
---|
| 7931 | # error bool is not defined |
---|
| 7932 | #endif |
---|
| 7933 | #ifndef false |
---|
| 7934 | # error false is not defined |
---|
| 7935 | #endif |
---|
| 7936 | #if false |
---|
| 7937 | # error false is not 0 |
---|
| 7938 | #endif |
---|
| 7939 | #ifndef true |
---|
| 7940 | # error true is not defined |
---|
| 7941 | #endif |
---|
| 7942 | #if true != 1 |
---|
| 7943 | # error true is not 1 |
---|
| 7944 | #endif |
---|
| 7945 | #ifndef __bool_true_false_are_defined |
---|
| 7946 | # error __bool_true_false_are_defined is not defined |
---|
| 7947 | #endif |
---|
| 7948 | |
---|
| 7949 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 7950 | |
---|
| 7951 | char a[true == 1 ? 1 : -1]; |
---|
| 7952 | char b[false == 0 ? 1 : -1]; |
---|
| 7953 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 7954 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 7955 | bool e = &s; |
---|
| 7956 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 7957 | char g[true]; |
---|
| 7958 | char h[sizeof (_Bool)]; |
---|
| 7959 | char i[sizeof s.t]; |
---|
| 7960 | |
---|
| 7961 | int |
---|
| 7962 | main () |
---|
| 7963 | { |
---|
| 7964 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 7965 | ; |
---|
| 7966 | return 0; |
---|
| 7967 | } |
---|
| 7968 | _ACEOF |
---|
| 7969 | rm -f conftest.$ac_objext |
---|
| 7970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7971 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7972 | ac_status=$? |
---|
| 7973 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7974 | rm -f conftest.er1 |
---|
| 7975 | cat conftest.err >&5 |
---|
| 7976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7977 | (exit $ac_status); } && |
---|
| 7978 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7979 | || test ! -s conftest.err' |
---|
| 7980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7981 | (eval $ac_try) 2>&5 |
---|
| 7982 | ac_status=$? |
---|
| 7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7984 | (exit $ac_status); }; } && |
---|
| 7985 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7987 | (eval $ac_try) 2>&5 |
---|
| 7988 | ac_status=$? |
---|
| 7989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7990 | (exit $ac_status); }; }; then |
---|
| 7991 | ac_cv_header_stdbool_h=yes |
---|
| 7992 | else |
---|
| 7993 | echo "$as_me: failed program was:" >&5 |
---|
| 7994 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7995 | |
---|
| 7996 | ac_cv_header_stdbool_h=no |
---|
| 7997 | fi |
---|
| 7998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7999 | fi |
---|
| 8000 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 8001 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 8002 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 8003 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 8004 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 8005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8006 | else |
---|
| 8007 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8008 | /* confdefs.h. */ |
---|
| 8009 | _ACEOF |
---|
| 8010 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8011 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8012 | /* end confdefs.h. */ |
---|
| 8013 | $ac_includes_default |
---|
| 8014 | int |
---|
| 8015 | main () |
---|
| 8016 | { |
---|
| 8017 | if ((_Bool *) 0) |
---|
| 8018 | return 0; |
---|
| 8019 | if (sizeof (_Bool)) |
---|
| 8020 | return 0; |
---|
| 8021 | ; |
---|
| 8022 | return 0; |
---|
| 8023 | } |
---|
| 8024 | _ACEOF |
---|
| 8025 | rm -f conftest.$ac_objext |
---|
| 8026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8027 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8028 | ac_status=$? |
---|
| 8029 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8030 | rm -f conftest.er1 |
---|
| 8031 | cat conftest.err >&5 |
---|
| 8032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8033 | (exit $ac_status); } && |
---|
| 8034 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8035 | || test ! -s conftest.err' |
---|
| 8036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8037 | (eval $ac_try) 2>&5 |
---|
| 8038 | ac_status=$? |
---|
| 8039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8040 | (exit $ac_status); }; } && |
---|
| 8041 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8043 | (eval $ac_try) 2>&5 |
---|
| 8044 | ac_status=$? |
---|
| 8045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8046 | (exit $ac_status); }; }; then |
---|
| 8047 | ac_cv_type__Bool=yes |
---|
| 8048 | else |
---|
| 8049 | echo "$as_me: failed program was:" >&5 |
---|
| 8050 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8051 | |
---|
| 8052 | ac_cv_type__Bool=no |
---|
| 8053 | fi |
---|
| 8054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8055 | fi |
---|
| 8056 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 8057 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 8058 | if test $ac_cv_type__Bool = yes; then |
---|
| 8059 | |
---|
| 8060 | cat >>confdefs.h <<_ACEOF |
---|
| 8061 | #define HAVE__BOOL 1 |
---|
| 8062 | _ACEOF |
---|
| 8063 | |
---|
| 8064 | |
---|
| 8065 | fi |
---|
| 8066 | |
---|
| 8067 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 8068 | |
---|
| 8069 | cat >>confdefs.h <<\_ACEOF |
---|
| 8070 | #define HAVE_STDBOOL_H 1 |
---|
| 8071 | _ACEOF |
---|
| 8072 | |
---|
| 8073 | fi |
---|
| 8074 | |
---|
| 8075 | |
---|
| 8076 | # Checks for library functions. |
---|
| 8077 | |
---|
| 8078 | for ac_header in stdlib.h |
---|
| 8079 | do |
---|
| 8080 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 8081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8082 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8083 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8086 | fi |
---|
| 8087 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8088 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8089 | else |
---|
| 8090 | # Is the header compilable? |
---|
| 8091 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 8092 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 8093 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8094 | /* confdefs.h. */ |
---|
| 8095 | _ACEOF |
---|
| 8096 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8097 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8098 | /* end confdefs.h. */ |
---|
| 8099 | $ac_includes_default |
---|
| 8100 | #include <$ac_header> |
---|
| 8101 | _ACEOF |
---|
| 8102 | rm -f conftest.$ac_objext |
---|
| 8103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 8104 | (eval $ac_compile) 2>conftest.er1 |
---|
| 8105 | ac_status=$? |
---|
| 8106 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8107 | rm -f conftest.er1 |
---|
| 8108 | cat conftest.err >&5 |
---|
| 8109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8110 | (exit $ac_status); } && |
---|
| 8111 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8112 | || test ! -s conftest.err' |
---|
| 8113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8114 | (eval $ac_try) 2>&5 |
---|
| 8115 | ac_status=$? |
---|
| 8116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8117 | (exit $ac_status); }; } && |
---|
| 8118 | { ac_try='test -s conftest.$ac_objext' |
---|
| 8119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8120 | (eval $ac_try) 2>&5 |
---|
| 8121 | ac_status=$? |
---|
| 8122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8123 | (exit $ac_status); }; }; then |
---|
| 8124 | ac_header_compiler=yes |
---|
| 8125 | else |
---|
| 8126 | echo "$as_me: failed program was:" >&5 |
---|
| 8127 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8128 | |
---|
| 8129 | ac_header_compiler=no |
---|
| 8130 | fi |
---|
| 8131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 8132 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 8133 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 8134 | |
---|
| 8135 | # Is the header present? |
---|
| 8136 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 8137 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 8138 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8139 | /* confdefs.h. */ |
---|
| 8140 | _ACEOF |
---|
| 8141 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8142 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8143 | /* end confdefs.h. */ |
---|
| 8144 | #include <$ac_header> |
---|
| 8145 | _ACEOF |
---|
| 8146 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 8147 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 8148 | ac_status=$? |
---|
| 8149 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8150 | rm -f conftest.er1 |
---|
| 8151 | cat conftest.err >&5 |
---|
| 8152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8153 | (exit $ac_status); } >/dev/null; then |
---|
| 8154 | if test -s conftest.err; then |
---|
| 8155 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 8156 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 8157 | else |
---|
| 8158 | ac_cpp_err= |
---|
| 8159 | fi |
---|
| 8160 | else |
---|
| 8161 | ac_cpp_err=yes |
---|
| 8162 | fi |
---|
| 8163 | if test -z "$ac_cpp_err"; then |
---|
| 8164 | ac_header_preproc=yes |
---|
| 8165 | else |
---|
| 8166 | echo "$as_me: failed program was:" >&5 |
---|
| 8167 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8168 | |
---|
| 8169 | ac_header_preproc=no |
---|
| 8170 | fi |
---|
| 8171 | rm -f conftest.err conftest.$ac_ext |
---|
| 8172 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 8173 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 8174 | |
---|
| 8175 | # So? What about this header? |
---|
| 8176 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 8177 | yes:no: ) |
---|
| 8178 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 8179 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 8180 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 8181 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 8182 | ac_header_preproc=yes |
---|
| 8183 | ;; |
---|
| 8184 | no:yes:* ) |
---|
| 8185 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 8186 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 8187 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 8188 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 8189 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 8190 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 8191 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 8192 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 8193 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 8194 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 8195 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 8196 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 8197 | ( |
---|
| 8198 | cat <<\_ASBOX |
---|
[3240] | 8199 | ## ---------------------------------------------- ## |
---|
| 8200 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 8201 | ## ---------------------------------------------- ## |
---|
[1956] | 8202 | _ASBOX |
---|
| 8203 | ) | |
---|
| 8204 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 8205 | ;; |
---|
| 8206 | esac |
---|
| 8207 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8208 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8209 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8211 | else |
---|
| 8212 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 8213 | fi |
---|
| 8214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8215 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8216 | |
---|
| 8217 | fi |
---|
| 8218 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 8219 | cat >>confdefs.h <<_ACEOF |
---|
| 8220 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 8221 | _ACEOF |
---|
| 8222 | |
---|
| 8223 | fi |
---|
| 8224 | |
---|
| 8225 | done |
---|
| 8226 | |
---|
| 8227 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 8228 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 8229 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 8230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8231 | else |
---|
| 8232 | if test "$cross_compiling" = yes; then |
---|
| 8233 | ac_cv_func_malloc_0_nonnull=no |
---|
| 8234 | else |
---|
| 8235 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8236 | /* confdefs.h. */ |
---|
| 8237 | _ACEOF |
---|
| 8238 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8239 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8240 | /* end confdefs.h. */ |
---|
| 8241 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 8242 | # include <stdlib.h> |
---|
| 8243 | #else |
---|
| 8244 | char *malloc (); |
---|
| 8245 | #endif |
---|
| 8246 | |
---|
| 8247 | int |
---|
| 8248 | main () |
---|
| 8249 | { |
---|
| 8250 | exit (malloc (0) ? 0 : 1); |
---|
| 8251 | ; |
---|
| 8252 | return 0; |
---|
| 8253 | } |
---|
| 8254 | _ACEOF |
---|
| 8255 | rm -f conftest$ac_exeext |
---|
| 8256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8257 | (eval $ac_link) 2>&5 |
---|
| 8258 | ac_status=$? |
---|
| 8259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8260 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 8261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8262 | (eval $ac_try) 2>&5 |
---|
| 8263 | ac_status=$? |
---|
| 8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8265 | (exit $ac_status); }; }; then |
---|
| 8266 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 8267 | else |
---|
| 8268 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 8269 | echo "$as_me: failed program was:" >&5 |
---|
| 8270 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8271 | |
---|
| 8272 | ( exit $ac_status ) |
---|
| 8273 | ac_cv_func_malloc_0_nonnull=no |
---|
| 8274 | fi |
---|
| 8275 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 8276 | fi |
---|
| 8277 | fi |
---|
| 8278 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 8279 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 8280 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 8281 | |
---|
| 8282 | cat >>confdefs.h <<\_ACEOF |
---|
| 8283 | #define HAVE_MALLOC 1 |
---|
| 8284 | _ACEOF |
---|
| 8285 | |
---|
| 8286 | else |
---|
| 8287 | cat >>confdefs.h <<\_ACEOF |
---|
| 8288 | #define HAVE_MALLOC 0 |
---|
| 8289 | _ACEOF |
---|
| 8290 | |
---|
| 8291 | case $LIBOBJS in |
---|
| 8292 | "malloc.$ac_objext" | \ |
---|
| 8293 | *" malloc.$ac_objext" | \ |
---|
| 8294 | "malloc.$ac_objext "* | \ |
---|
| 8295 | *" malloc.$ac_objext "* ) ;; |
---|
| 8296 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 8297 | esac |
---|
| 8298 | |
---|
| 8299 | |
---|
| 8300 | cat >>confdefs.h <<\_ACEOF |
---|
| 8301 | #define malloc rpl_malloc |
---|
| 8302 | _ACEOF |
---|
| 8303 | |
---|
| 8304 | fi |
---|
| 8305 | |
---|
| 8306 | |
---|
| 8307 | |
---|
| 8308 | |
---|
| 8309 | |
---|
| 8310 | for ac_func in bzero sqrt |
---|
| 8311 | do |
---|
| 8312 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 8313 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 8314 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 8315 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 8316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8317 | else |
---|
| 8318 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8319 | /* confdefs.h. */ |
---|
| 8320 | _ACEOF |
---|
| 8321 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8322 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8323 | /* end confdefs.h. */ |
---|
| 8324 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 8325 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 8326 | #define $ac_func innocuous_$ac_func |
---|
| 8327 | |
---|
| 8328 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 8329 | which can conflict with char $ac_func (); below. |
---|
| 8330 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 8331 | <limits.h> exists even on freestanding compilers. */ |
---|
| 8332 | |
---|
| 8333 | #ifdef __STDC__ |
---|
| 8334 | # include <limits.h> |
---|
| 8335 | #else |
---|
| 8336 | # include <assert.h> |
---|
| 8337 | #endif |
---|
| 8338 | |
---|
| 8339 | #undef $ac_func |
---|
| 8340 | |
---|
| 8341 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 8342 | #ifdef __cplusplus |
---|
| 8343 | extern "C" |
---|
| 8344 | { |
---|
| 8345 | #endif |
---|
| 8346 | /* We use char because int might match the return type of a gcc2 |
---|
| 8347 | builtin and then its argument prototype would still apply. */ |
---|
| 8348 | char $ac_func (); |
---|
| 8349 | /* The GNU C library defines this for functions which it implements |
---|
| 8350 | to always fail with ENOSYS. Some functions are actually named |
---|
| 8351 | something starting with __ and the normal name is an alias. */ |
---|
| 8352 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 8353 | choke me |
---|
| 8354 | #else |
---|
| 8355 | char (*f) () = $ac_func; |
---|
| 8356 | #endif |
---|
| 8357 | #ifdef __cplusplus |
---|
| 8358 | } |
---|
| 8359 | #endif |
---|
| 8360 | |
---|
| 8361 | int |
---|
| 8362 | main () |
---|
| 8363 | { |
---|
| 8364 | return f != $ac_func; |
---|
| 8365 | ; |
---|
| 8366 | return 0; |
---|
| 8367 | } |
---|
| 8368 | _ACEOF |
---|
| 8369 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 8370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8371 | (eval $ac_link) 2>conftest.er1 |
---|
| 8372 | ac_status=$? |
---|
| 8373 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8374 | rm -f conftest.er1 |
---|
| 8375 | cat conftest.err >&5 |
---|
| 8376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8377 | (exit $ac_status); } && |
---|
| 8378 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8379 | || test ! -s conftest.err' |
---|
| 8380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8381 | (eval $ac_try) 2>&5 |
---|
| 8382 | ac_status=$? |
---|
| 8383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8384 | (exit $ac_status); }; } && |
---|
| 8385 | { ac_try='test -s conftest$ac_exeext' |
---|
| 8386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8387 | (eval $ac_try) 2>&5 |
---|
| 8388 | ac_status=$? |
---|
| 8389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8390 | (exit $ac_status); }; }; then |
---|
| 8391 | eval "$as_ac_var=yes" |
---|
| 8392 | else |
---|
| 8393 | echo "$as_me: failed program was:" >&5 |
---|
| 8394 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8395 | |
---|
| 8396 | eval "$as_ac_var=no" |
---|
| 8397 | fi |
---|
| 8398 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 8399 | conftest$ac_exeext conftest.$ac_ext |
---|
| 8400 | fi |
---|
| 8401 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 8402 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 8403 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 8404 | cat >>confdefs.h <<_ACEOF |
---|
| 8405 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 8406 | _ACEOF |
---|
| 8407 | |
---|
| 8408 | fi |
---|
| 8409 | done |
---|
| 8410 | |
---|
| 8411 | |
---|
[3424] | 8412 | ###################### |
---|
| 8413 | ## OUTPUT CONFIGURE ## |
---|
| 8414 | ###################### |
---|
[3493] | 8415 | ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/gui/Makefile src/lib/gui/console/Makefile src/lib/gui/gui/Makefile" |
---|
[1956] | 8416 | |
---|
[3377] | 8417 | |
---|
[1956] | 8418 | cat >confcache <<\_ACEOF |
---|
| 8419 | # This file is a shell script that caches the results of configure |
---|
| 8420 | # tests run on this system so they can be shared between configure |
---|
| 8421 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 8422 | # It is not useful on other systems. If it contains results you don't |
---|
| 8423 | # want to keep, you may remove or edit it. |
---|
| 8424 | # |
---|
| 8425 | # config.status only pays attention to the cache file if you give it |
---|
| 8426 | # the --recheck option to rerun configure. |
---|
| 8427 | # |
---|
| 8428 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 8429 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 8430 | # following values. |
---|
| 8431 | |
---|
| 8432 | _ACEOF |
---|
| 8433 | |
---|
| 8434 | # The following way of writing the cache mishandles newlines in values, |
---|
| 8435 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 8436 | # So, don't put newlines in cache variables' values. |
---|
| 8437 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 8438 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 8439 | { |
---|
| 8440 | (set) 2>&1 | |
---|
| 8441 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 8442 | *ac_space=\ *) |
---|
| 8443 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 8444 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 8445 | sed -n \ |
---|
| 8446 | "s/'/'\\\\''/g; |
---|
| 8447 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 8448 | ;; |
---|
| 8449 | *) |
---|
| 8450 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 8451 | sed -n \ |
---|
| 8452 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 8453 | ;; |
---|
| 8454 | esac; |
---|
| 8455 | } | |
---|
| 8456 | sed ' |
---|
| 8457 | t clear |
---|
| 8458 | : clear |
---|
| 8459 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 8460 | t end |
---|
| 8461 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 8462 | : end' >>confcache |
---|
| 8463 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 8464 | if test -w $cache_file; then |
---|
| 8465 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 8466 | cat confcache >$cache_file |
---|
| 8467 | else |
---|
| 8468 | echo "not updating unwritable cache $cache_file" |
---|
| 8469 | fi |
---|
| 8470 | fi |
---|
| 8471 | rm -f confcache |
---|
| 8472 | |
---|
| 8473 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 8474 | # Let make expand exec_prefix. |
---|
| 8475 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 8476 | |
---|
| 8477 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 8478 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 8479 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 8480 | # (actually we leave an empty line to preserve line numbers). |
---|
| 8481 | if test "x$srcdir" = x.; then |
---|
| 8482 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 8483 | s/:*\$(srcdir):*/:/; |
---|
| 8484 | s/:*\${srcdir}:*/:/; |
---|
| 8485 | s/:*@srcdir@:*/:/; |
---|
| 8486 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 8487 | s/:*$//; |
---|
| 8488 | s/^[^=]*=[ ]*$//; |
---|
| 8489 | }' |
---|
| 8490 | fi |
---|
| 8491 | |
---|
| 8492 | DEFS=-DHAVE_CONFIG_H |
---|
| 8493 | |
---|
| 8494 | ac_libobjs= |
---|
| 8495 | ac_ltlibobjs= |
---|
| 8496 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 8497 | # 1. Remove the extension, and $U if already installed. |
---|
| 8498 | ac_i=`echo "$ac_i" | |
---|
| 8499 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 8500 | # 2. Add them. |
---|
| 8501 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 8502 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 8503 | done |
---|
| 8504 | LIBOBJS=$ac_libobjs |
---|
| 8505 | |
---|
| 8506 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 8507 | |
---|
| 8508 | |
---|
| 8509 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 8510 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 8511 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8512 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 8513 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8514 | { (exit 1); exit 1; }; } |
---|
| 8515 | fi |
---|
| 8516 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 8517 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 8518 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8519 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 8520 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8521 | { (exit 1); exit 1; }; } |
---|
| 8522 | fi |
---|
| 8523 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 8524 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 8525 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8526 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 8527 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8528 | { (exit 1); exit 1; }; } |
---|
| 8529 | fi |
---|
[3377] | 8530 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
| 8531 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 8532 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8533 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 8534 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8535 | { (exit 1); exit 1; }; } |
---|
| 8536 | fi |
---|
[3219] | 8537 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
| 8538 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
| 8539 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8540 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
| 8541 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8542 | { (exit 1); exit 1; }; } |
---|
| 8543 | fi |
---|
[2980] | 8544 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
| 8545 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 8546 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8547 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 8548 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8549 | { (exit 1); exit 1; }; } |
---|
| 8550 | fi |
---|
[3423] | 8551 | if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then |
---|
| 8552 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
| 8553 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8554 | echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
| 8555 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8556 | { (exit 1); exit 1; }; } |
---|
| 8557 | fi |
---|
| 8558 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
| 8559 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 8560 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8561 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 8562 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8563 | { (exit 1); exit 1; }; } |
---|
| 8564 | fi |
---|
[1956] | 8565 | |
---|
| 8566 | : ${CONFIG_STATUS=./config.status} |
---|
| 8567 | ac_clean_files_save=$ac_clean_files |
---|
| 8568 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 8569 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 8570 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 8571 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 8572 | #! $SHELL |
---|
| 8573 | # Generated by $as_me. |
---|
| 8574 | # Run this file to recreate the current configuration. |
---|
| 8575 | # Compiler output produced by configure, useful for debugging |
---|
| 8576 | # configure, is in config.log if it exists. |
---|
| 8577 | |
---|
| 8578 | debug=false |
---|
| 8579 | ac_cs_recheck=false |
---|
| 8580 | ac_cs_silent=false |
---|
| 8581 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 8582 | _ACEOF |
---|
| 8583 | |
---|
| 8584 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8585 | ## --------------------- ## |
---|
| 8586 | ## M4sh Initialization. ## |
---|
| 8587 | ## --------------------- ## |
---|
| 8588 | |
---|
| 8589 | # Be Bourne compatible |
---|
| 8590 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 8591 | emulate sh |
---|
| 8592 | NULLCMD=: |
---|
| 8593 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 8594 | # is contrary to our usage. Disable this feature. |
---|
| 8595 | alias -g '${1+"$@"}'='"$@"' |
---|
| 8596 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 8597 | set -o posix |
---|
| 8598 | fi |
---|
| 8599 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 8600 | |
---|
| 8601 | # Support unset when possible. |
---|
| 8602 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 8603 | as_unset=unset |
---|
| 8604 | else |
---|
| 8605 | as_unset=false |
---|
| 8606 | fi |
---|
| 8607 | |
---|
| 8608 | |
---|
| 8609 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 8610 | $as_unset ENV MAIL MAILPATH |
---|
| 8611 | PS1='$ ' |
---|
| 8612 | PS2='> ' |
---|
| 8613 | PS4='+ ' |
---|
| 8614 | |
---|
| 8615 | # NLS nuisances. |
---|
| 8616 | for as_var in \ |
---|
| 8617 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 8618 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 8619 | LC_TELEPHONE LC_TIME |
---|
| 8620 | do |
---|
| 8621 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 8622 | eval $as_var=C; export $as_var |
---|
| 8623 | else |
---|
| 8624 | $as_unset $as_var |
---|
| 8625 | fi |
---|
| 8626 | done |
---|
| 8627 | |
---|
| 8628 | # Required to use basename. |
---|
| 8629 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 8630 | as_expr=expr |
---|
| 8631 | else |
---|
| 8632 | as_expr=false |
---|
| 8633 | fi |
---|
| 8634 | |
---|
| 8635 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 8636 | as_basename=basename |
---|
| 8637 | else |
---|
| 8638 | as_basename=false |
---|
| 8639 | fi |
---|
| 8640 | |
---|
| 8641 | |
---|
| 8642 | # Name of the executable. |
---|
| 8643 | as_me=`$as_basename "$0" || |
---|
| 8644 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 8645 | X"$0" : 'X\(//\)$' \| \ |
---|
| 8646 | X"$0" : 'X\(/\)$' \| \ |
---|
| 8647 | . : '\(.\)' 2>/dev/null || |
---|
| 8648 | echo X/"$0" | |
---|
| 8649 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 8650 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 8651 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 8652 | s/.*/./; q'` |
---|
| 8653 | |
---|
| 8654 | |
---|
| 8655 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 8656 | # Avoid depending upon Character Ranges. |
---|
| 8657 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 8658 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 8659 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 8660 | as_cr_digits='0123456789' |
---|
| 8661 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 8662 | |
---|
| 8663 | # The user is always right. |
---|
| 8664 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 8665 | echo "#! /bin/sh" >conf$$.sh |
---|
| 8666 | echo "exit 0" >>conf$$.sh |
---|
| 8667 | chmod +x conf$$.sh |
---|
| 8668 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 8669 | PATH_SEPARATOR=';' |
---|
| 8670 | else |
---|
| 8671 | PATH_SEPARATOR=: |
---|
| 8672 | fi |
---|
| 8673 | rm -f conf$$.sh |
---|
| 8674 | fi |
---|
| 8675 | |
---|
| 8676 | |
---|
| 8677 | as_lineno_1=$LINENO |
---|
| 8678 | as_lineno_2=$LINENO |
---|
| 8679 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 8680 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 8681 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 8682 | # Find who we are. Look in the path if we contain no path at all |
---|
| 8683 | # relative or not. |
---|
| 8684 | case $0 in |
---|
| 8685 | *[\\/]* ) as_myself=$0 ;; |
---|
| 8686 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 8687 | for as_dir in $PATH |
---|
| 8688 | do |
---|
| 8689 | IFS=$as_save_IFS |
---|
| 8690 | test -z "$as_dir" && as_dir=. |
---|
| 8691 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 8692 | done |
---|
| 8693 | |
---|
| 8694 | ;; |
---|
| 8695 | esac |
---|
| 8696 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 8697 | # in which case we are not to be found in the path. |
---|
| 8698 | if test "x$as_myself" = x; then |
---|
| 8699 | as_myself=$0 |
---|
| 8700 | fi |
---|
| 8701 | if test ! -f "$as_myself"; then |
---|
| 8702 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 8703 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 8704 | { (exit 1); exit 1; }; } |
---|
| 8705 | fi |
---|
| 8706 | case $CONFIG_SHELL in |
---|
| 8707 | '') |
---|
| 8708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 8709 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 8710 | do |
---|
| 8711 | IFS=$as_save_IFS |
---|
| 8712 | test -z "$as_dir" && as_dir=. |
---|
| 8713 | for as_base in sh bash ksh sh5; do |
---|
| 8714 | case $as_dir in |
---|
| 8715 | /*) |
---|
| 8716 | if ("$as_dir/$as_base" -c ' |
---|
| 8717 | as_lineno_1=$LINENO |
---|
| 8718 | as_lineno_2=$LINENO |
---|
| 8719 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 8720 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 8721 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 8722 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 8723 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 8724 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 8725 | export CONFIG_SHELL |
---|
| 8726 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 8727 | fi;; |
---|
| 8728 | esac |
---|
| 8729 | done |
---|
| 8730 | done |
---|
| 8731 | ;; |
---|
| 8732 | esac |
---|
| 8733 | |
---|
| 8734 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 8735 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 8736 | # line-number line before each line; the second 'sed' does the real |
---|
| 8737 | # work. The second script uses 'N' to pair each line-number line |
---|
| 8738 | # with the numbered line, and appends trailing '-' during |
---|
| 8739 | # substitution so that $LINENO is not a special case at line end. |
---|
| 8740 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 8741 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 8742 | sed '=' <$as_myself | |
---|
| 8743 | sed ' |
---|
| 8744 | N |
---|
| 8745 | s,$,-, |
---|
| 8746 | : loop |
---|
| 8747 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 8748 | t loop |
---|
| 8749 | s,-$,, |
---|
| 8750 | s,^['$as_cr_digits']*\n,, |
---|
| 8751 | ' >$as_me.lineno && |
---|
| 8752 | chmod +x $as_me.lineno || |
---|
| 8753 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 8754 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 8755 | { (exit 1); exit 1; }; } |
---|
| 8756 | |
---|
| 8757 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 8758 | # (the dirname of $[0] is not the place where we might find the |
---|
| 8759 | # original and so on. Autoconf is especially sensible to this). |
---|
| 8760 | . ./$as_me.lineno |
---|
| 8761 | # Exit status is that of the last command. |
---|
| 8762 | exit |
---|
| 8763 | } |
---|
| 8764 | |
---|
| 8765 | |
---|
| 8766 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 8767 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 8768 | ' ECHO_T=' ' ;; |
---|
| 8769 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 8770 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 8771 | esac |
---|
| 8772 | |
---|
| 8773 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 8774 | as_expr=expr |
---|
| 8775 | else |
---|
| 8776 | as_expr=false |
---|
| 8777 | fi |
---|
| 8778 | |
---|
| 8779 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 8780 | echo >conf$$.file |
---|
| 8781 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 8782 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 8783 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 8784 | if test -f conf$$.exe; then |
---|
| 8785 | # Don't use ln at all; we don't have any links |
---|
| 8786 | as_ln_s='cp -p' |
---|
| 8787 | else |
---|
| 8788 | as_ln_s='ln -s' |
---|
| 8789 | fi |
---|
| 8790 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 8791 | as_ln_s=ln |
---|
| 8792 | else |
---|
| 8793 | as_ln_s='cp -p' |
---|
| 8794 | fi |
---|
| 8795 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 8796 | |
---|
| 8797 | if mkdir -p . 2>/dev/null; then |
---|
| 8798 | as_mkdir_p=: |
---|
| 8799 | else |
---|
| 8800 | test -d ./-p && rmdir ./-p |
---|
| 8801 | as_mkdir_p=false |
---|
| 8802 | fi |
---|
| 8803 | |
---|
| 8804 | as_executable_p="test -f" |
---|
| 8805 | |
---|
| 8806 | # Sed expression to map a string onto a valid CPP name. |
---|
| 8807 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 8808 | |
---|
| 8809 | # Sed expression to map a string onto a valid variable name. |
---|
| 8810 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 8811 | |
---|
| 8812 | |
---|
| 8813 | # IFS |
---|
| 8814 | # We need space, tab and new line, in precisely that order. |
---|
| 8815 | as_nl=' |
---|
| 8816 | ' |
---|
| 8817 | IFS=" $as_nl" |
---|
| 8818 | |
---|
| 8819 | # CDPATH. |
---|
| 8820 | $as_unset CDPATH |
---|
| 8821 | |
---|
| 8822 | exec 6>&1 |
---|
| 8823 | |
---|
| 8824 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 8825 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 8826 | # values after options handling. Logging --version etc. is OK. |
---|
| 8827 | exec 5>>config.log |
---|
| 8828 | { |
---|
| 8829 | echo |
---|
| 8830 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 8831 | ## Running $as_me. ## |
---|
| 8832 | _ASBOX |
---|
| 8833 | } >&5 |
---|
| 8834 | cat >&5 <<_CSEOF |
---|
| 8835 | |
---|
[3365] | 8836 | This file was extended by orxonox $as_me 0.2.1-pre-alpha, which was |
---|
[1956] | 8837 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 8838 | |
---|
| 8839 | CONFIG_FILES = $CONFIG_FILES |
---|
| 8840 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 8841 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 8842 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 8843 | $ $0 $@ |
---|
| 8844 | |
---|
| 8845 | _CSEOF |
---|
| 8846 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 8847 | echo >&5 |
---|
| 8848 | _ACEOF |
---|
| 8849 | |
---|
| 8850 | # Files that config.status was made for. |
---|
| 8851 | if test -n "$ac_config_files"; then |
---|
| 8852 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 8853 | fi |
---|
| 8854 | |
---|
| 8855 | if test -n "$ac_config_headers"; then |
---|
| 8856 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 8857 | fi |
---|
| 8858 | |
---|
| 8859 | if test -n "$ac_config_links"; then |
---|
| 8860 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 8861 | fi |
---|
| 8862 | |
---|
| 8863 | if test -n "$ac_config_commands"; then |
---|
| 8864 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 8865 | fi |
---|
| 8866 | |
---|
| 8867 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8868 | |
---|
| 8869 | ac_cs_usage="\ |
---|
| 8870 | \`$as_me' instantiates files from templates according to the |
---|
| 8871 | current configuration. |
---|
| 8872 | |
---|
| 8873 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 8874 | |
---|
| 8875 | -h, --help print this help, then exit |
---|
| 8876 | -V, --version print version number, then exit |
---|
| 8877 | -q, --quiet do not print progress messages |
---|
| 8878 | -d, --debug don't remove temporary files |
---|
| 8879 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 8880 | --file=FILE[:TEMPLATE] |
---|
| 8881 | instantiate the configuration file FILE |
---|
| 8882 | --header=FILE[:TEMPLATE] |
---|
| 8883 | instantiate the configuration header FILE |
---|
| 8884 | |
---|
| 8885 | Configuration files: |
---|
| 8886 | $config_files |
---|
| 8887 | |
---|
| 8888 | Configuration headers: |
---|
| 8889 | $config_headers |
---|
| 8890 | |
---|
| 8891 | Configuration commands: |
---|
| 8892 | $config_commands |
---|
| 8893 | |
---|
| 8894 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 8895 | _ACEOF |
---|
| 8896 | |
---|
| 8897 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8898 | ac_cs_version="\\ |
---|
[3365] | 8899 | orxonox config.status 0.2.1-pre-alpha |
---|
[1956] | 8900 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 8901 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 8902 | |
---|
| 8903 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 8904 | This config.status script is free software; the Free Software Foundation |
---|
| 8905 | gives unlimited permission to copy, distribute and modify it." |
---|
| 8906 | srcdir=$srcdir |
---|
| 8907 | INSTALL="$INSTALL" |
---|
| 8908 | _ACEOF |
---|
| 8909 | |
---|
| 8910 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8911 | # If no file are specified by the user, then we need to provide default |
---|
| 8912 | # value. By we need to know if files were specified by the user. |
---|
| 8913 | ac_need_defaults=: |
---|
| 8914 | while test $# != 0 |
---|
| 8915 | do |
---|
| 8916 | case $1 in |
---|
| 8917 | --*=*) |
---|
| 8918 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 8919 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 8920 | ac_shift=: |
---|
| 8921 | ;; |
---|
| 8922 | -*) |
---|
| 8923 | ac_option=$1 |
---|
| 8924 | ac_optarg=$2 |
---|
| 8925 | ac_shift=shift |
---|
| 8926 | ;; |
---|
| 8927 | *) # This is not an option, so the user has probably given explicit |
---|
| 8928 | # arguments. |
---|
| 8929 | ac_option=$1 |
---|
| 8930 | ac_need_defaults=false;; |
---|
| 8931 | esac |
---|
| 8932 | |
---|
| 8933 | case $ac_option in |
---|
| 8934 | # Handling of the options. |
---|
| 8935 | _ACEOF |
---|
| 8936 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8937 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 8938 | ac_cs_recheck=: ;; |
---|
| 8939 | --version | --vers* | -V ) |
---|
| 8940 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 8941 | --he | --h) |
---|
| 8942 | # Conflict between --help and --header |
---|
| 8943 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 8944 | Try \`$0 --help' for more information." >&5 |
---|
| 8945 | echo "$as_me: error: ambiguous option: $1 |
---|
| 8946 | Try \`$0 --help' for more information." >&2;} |
---|
| 8947 | { (exit 1); exit 1; }; };; |
---|
| 8948 | --help | --hel | -h ) |
---|
| 8949 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 8950 | --debug | --d* | -d ) |
---|
| 8951 | debug=: ;; |
---|
| 8952 | --file | --fil | --fi | --f ) |
---|
| 8953 | $ac_shift |
---|
| 8954 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 8955 | ac_need_defaults=false;; |
---|
| 8956 | --header | --heade | --head | --hea ) |
---|
| 8957 | $ac_shift |
---|
| 8958 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 8959 | ac_need_defaults=false;; |
---|
| 8960 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 8961 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 8962 | ac_cs_silent=: ;; |
---|
| 8963 | |
---|
| 8964 | # This is an error. |
---|
| 8965 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 8966 | Try \`$0 --help' for more information." >&5 |
---|
| 8967 | echo "$as_me: error: unrecognized option: $1 |
---|
| 8968 | Try \`$0 --help' for more information." >&2;} |
---|
| 8969 | { (exit 1); exit 1; }; } ;; |
---|
| 8970 | |
---|
| 8971 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 8972 | |
---|
| 8973 | esac |
---|
| 8974 | shift |
---|
| 8975 | done |
---|
| 8976 | |
---|
| 8977 | ac_configure_extra_args= |
---|
| 8978 | |
---|
| 8979 | if $ac_cs_silent; then |
---|
| 8980 | exec 6>/dev/null |
---|
| 8981 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 8982 | fi |
---|
| 8983 | |
---|
| 8984 | _ACEOF |
---|
| 8985 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8986 | if \$ac_cs_recheck; then |
---|
| 8987 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 8988 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 8989 | fi |
---|
| 8990 | |
---|
| 8991 | _ACEOF |
---|
| 8992 | |
---|
| 8993 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8994 | # |
---|
| 8995 | # INIT-COMMANDS section. |
---|
| 8996 | # |
---|
| 8997 | |
---|
| 8998 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 8999 | |
---|
| 9000 | _ACEOF |
---|
| 9001 | |
---|
| 9002 | |
---|
| 9003 | |
---|
| 9004 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9005 | for ac_config_target in $ac_config_targets |
---|
| 9006 | do |
---|
| 9007 | case "$ac_config_target" in |
---|
| 9008 | # Handling of arguments. |
---|
| 9009 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
[3377] | 9010 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
[3493] | 9011 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
| 9012 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
[3489] | 9013 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
[3493] | 9014 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
[3489] | 9015 | "src/lib/gui/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/console/Makefile" ;; |
---|
[3493] | 9016 | "src/lib/gui/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gui/Makefile" ;; |
---|
[1956] | 9017 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 9018 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 9019 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 9020 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 9021 | { (exit 1); exit 1; }; };; |
---|
| 9022 | esac |
---|
| 9023 | done |
---|
| 9024 | |
---|
| 9025 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 9026 | # then the envvar interface is used. Set only those that are not. |
---|
| 9027 | # We use the long form for the default assignment because of an extremely |
---|
| 9028 | # bizarre bug on SunOS 4.1.3. |
---|
| 9029 | if $ac_need_defaults; then |
---|
| 9030 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 9031 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 9032 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 9033 | fi |
---|
| 9034 | |
---|
| 9035 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 9036 | # simply because there is no reason to put it here, and in addition, |
---|
| 9037 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 9038 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 9039 | $debug || |
---|
| 9040 | { |
---|
| 9041 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 9042 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 9043 | } |
---|
| 9044 | |
---|
| 9045 | # Create a (secure) tmp directory for tmp files. |
---|
| 9046 | |
---|
| 9047 | { |
---|
| 9048 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 9049 | test -n "$tmp" && test -d "$tmp" |
---|
| 9050 | } || |
---|
| 9051 | { |
---|
| 9052 | tmp=./confstat$$-$RANDOM |
---|
| 9053 | (umask 077 && mkdir $tmp) |
---|
| 9054 | } || |
---|
| 9055 | { |
---|
| 9056 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 9057 | { (exit 1); exit 1; } |
---|
| 9058 | } |
---|
| 9059 | |
---|
| 9060 | _ACEOF |
---|
| 9061 | |
---|
| 9062 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9063 | |
---|
| 9064 | # |
---|
| 9065 | # CONFIG_FILES section. |
---|
| 9066 | # |
---|
| 9067 | |
---|
| 9068 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 9069 | # This happens for instance when ./config.status config.h |
---|
| 9070 | if test -n "\$CONFIG_FILES"; then |
---|
| 9071 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 9072 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 9073 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 9074 | s,@SHELL@,$SHELL,;t t |
---|
| 9075 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 9076 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 9077 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 9078 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 9079 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 9080 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 9081 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 9082 | s,@prefix@,$prefix,;t t |
---|
| 9083 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 9084 | s,@bindir@,$bindir,;t t |
---|
| 9085 | s,@sbindir@,$sbindir,;t t |
---|
| 9086 | s,@libexecdir@,$libexecdir,;t t |
---|
| 9087 | s,@datadir@,$datadir,;t t |
---|
| 9088 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 9089 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 9090 | s,@localstatedir@,$localstatedir,;t t |
---|
| 9091 | s,@libdir@,$libdir,;t t |
---|
| 9092 | s,@includedir@,$includedir,;t t |
---|
| 9093 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 9094 | s,@infodir@,$infodir,;t t |
---|
| 9095 | s,@mandir@,$mandir,;t t |
---|
| 9096 | s,@build_alias@,$build_alias,;t t |
---|
| 9097 | s,@host_alias@,$host_alias,;t t |
---|
| 9098 | s,@target_alias@,$target_alias,;t t |
---|
| 9099 | s,@DEFS@,$DEFS,;t t |
---|
| 9100 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 9101 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 9102 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 9103 | s,@LIBS@,$LIBS,;t t |
---|
[2980] | 9104 | s,@build@,$build,;t t |
---|
| 9105 | s,@build_cpu@,$build_cpu,;t t |
---|
| 9106 | s,@build_vendor@,$build_vendor,;t t |
---|
| 9107 | s,@build_os@,$build_os,;t t |
---|
| 9108 | s,@host@,$host,;t t |
---|
| 9109 | s,@host_cpu@,$host_cpu,;t t |
---|
| 9110 | s,@host_vendor@,$host_vendor,;t t |
---|
| 9111 | s,@host_os@,$host_os,;t t |
---|
| 9112 | s,@target@,$target,;t t |
---|
| 9113 | s,@target_cpu@,$target_cpu,;t t |
---|
| 9114 | s,@target_vendor@,$target_vendor,;t t |
---|
| 9115 | s,@target_os@,$target_os,;t t |
---|
[1956] | 9116 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 9117 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 9118 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 9119 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 9120 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 9121 | s,@VERSION@,$VERSION,;t t |
---|
| 9122 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 9123 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 9124 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 9125 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 9126 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 9127 | s,@AMTAR@,$AMTAR,;t t |
---|
| 9128 | s,@install_sh@,$install_sh,;t t |
---|
| 9129 | s,@STRIP@,$STRIP,;t t |
---|
| 9130 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 9131 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
[2706] | 9132 | s,@mkdir_p@,$mkdir_p,;t t |
---|
[1956] | 9133 | s,@AWK@,$AWK,;t t |
---|
| 9134 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 9135 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
| 9136 | s,@CXX@,$CXX,;t t |
---|
| 9137 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 9138 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 9139 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 9140 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 9141 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 9142 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 9143 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 9144 | s,@am__include@,$am__include,;t t |
---|
| 9145 | s,@am__quote@,$am__quote,;t t |
---|
| 9146 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 9147 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 9148 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 9149 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 9150 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 9151 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
| 9152 | s,@CC@,$CC,;t t |
---|
| 9153 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 9154 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 9155 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 9156 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 9157 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 9158 | s,@CPP@,$CPP,;t t |
---|
| 9159 | s,@EGREP@,$EGREP,;t t |
---|
[3173] | 9160 | s,@DEBUG@,$DEBUG,;t t |
---|
[3377] | 9161 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
| 9162 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
[3219] | 9163 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
| 9164 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
| 9165 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
[2989] | 9166 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[3099] | 9167 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
[2980] | 9168 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
| 9169 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
| 9170 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
[3423] | 9171 | s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t |
---|
| 9172 | s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t |
---|
| 9173 | s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t |
---|
| 9174 | s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t |
---|
| 9175 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
| 9176 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
| 9177 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
| 9178 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
[1956] | 9179 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 9180 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 9181 | CEOF |
---|
| 9182 | |
---|
| 9183 | _ACEOF |
---|
| 9184 | |
---|
| 9185 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9186 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 9187 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 9188 | ac_max_sed_lines=48 |
---|
| 9189 | ac_sed_frag=1 # Number of current file. |
---|
| 9190 | ac_beg=1 # First line for current file. |
---|
| 9191 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 9192 | ac_more_lines=: |
---|
| 9193 | ac_sed_cmds= |
---|
| 9194 | while $ac_more_lines; do |
---|
| 9195 | if test $ac_beg -gt 1; then |
---|
| 9196 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 9197 | else |
---|
| 9198 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 9199 | fi |
---|
| 9200 | if test ! -s $tmp/subs.frag; then |
---|
| 9201 | ac_more_lines=false |
---|
| 9202 | else |
---|
| 9203 | # The purpose of the label and of the branching condition is to |
---|
| 9204 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 9205 | # is no need to browse any of the substitutions). |
---|
| 9206 | # These are the two extra sed commands mentioned above. |
---|
| 9207 | (echo ':t |
---|
| 9208 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 9209 | if test -z "$ac_sed_cmds"; then |
---|
| 9210 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 9211 | else |
---|
| 9212 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 9213 | fi |
---|
| 9214 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 9215 | ac_beg=$ac_end |
---|
| 9216 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 9217 | fi |
---|
| 9218 | done |
---|
| 9219 | if test -z "$ac_sed_cmds"; then |
---|
| 9220 | ac_sed_cmds=cat |
---|
| 9221 | fi |
---|
| 9222 | fi # test -n "$CONFIG_FILES" |
---|
| 9223 | |
---|
| 9224 | _ACEOF |
---|
| 9225 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9226 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 9227 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 9228 | case $ac_file in |
---|
| 9229 | - | *:- | *:-:* ) # input from stdin |
---|
| 9230 | cat >$tmp/stdin |
---|
| 9231 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9232 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9233 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9234 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9235 | * ) ac_file_in=$ac_file.in ;; |
---|
| 9236 | esac |
---|
| 9237 | |
---|
| 9238 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 9239 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 9240 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9241 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 9242 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 9243 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 9244 | . : '\(.\)' 2>/dev/null || |
---|
| 9245 | echo X"$ac_file" | |
---|
| 9246 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9247 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9248 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9249 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9250 | s/.*/./; q'` |
---|
| 9251 | { if $as_mkdir_p; then |
---|
| 9252 | mkdir -p "$ac_dir" |
---|
| 9253 | else |
---|
| 9254 | as_dir="$ac_dir" |
---|
| 9255 | as_dirs= |
---|
| 9256 | while test ! -d "$as_dir"; do |
---|
| 9257 | as_dirs="$as_dir $as_dirs" |
---|
| 9258 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9259 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9260 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9261 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9262 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9263 | . : '\(.\)' 2>/dev/null || |
---|
| 9264 | echo X"$as_dir" | |
---|
| 9265 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9266 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9267 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9268 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9269 | s/.*/./; q'` |
---|
| 9270 | done |
---|
| 9271 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9272 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9273 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9274 | { (exit 1); exit 1; }; }; } |
---|
| 9275 | |
---|
| 9276 | ac_builddir=. |
---|
| 9277 | |
---|
| 9278 | if test "$ac_dir" != .; then |
---|
| 9279 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 9280 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 9281 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 9282 | else |
---|
| 9283 | ac_dir_suffix= ac_top_builddir= |
---|
| 9284 | fi |
---|
| 9285 | |
---|
| 9286 | case $srcdir in |
---|
| 9287 | .) # No --srcdir option. We are building in place. |
---|
| 9288 | ac_srcdir=. |
---|
| 9289 | if test -z "$ac_top_builddir"; then |
---|
| 9290 | ac_top_srcdir=. |
---|
| 9291 | else |
---|
| 9292 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 9293 | fi ;; |
---|
| 9294 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 9295 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 9296 | ac_top_srcdir=$srcdir ;; |
---|
| 9297 | *) # Relative path. |
---|
| 9298 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 9299 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 9300 | esac |
---|
| 9301 | |
---|
| 9302 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 9303 | # the directories may not exist. |
---|
| 9304 | case `pwd` in |
---|
| 9305 | .) ac_abs_builddir="$ac_dir";; |
---|
| 9306 | *) |
---|
| 9307 | case "$ac_dir" in |
---|
| 9308 | .) ac_abs_builddir=`pwd`;; |
---|
| 9309 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 9310 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 9311 | esac;; |
---|
| 9312 | esac |
---|
| 9313 | case $ac_abs_builddir in |
---|
| 9314 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9315 | *) |
---|
| 9316 | case ${ac_top_builddir}. in |
---|
| 9317 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 9318 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9319 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 9320 | esac;; |
---|
| 9321 | esac |
---|
| 9322 | case $ac_abs_builddir in |
---|
| 9323 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9324 | *) |
---|
| 9325 | case $ac_srcdir in |
---|
| 9326 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 9327 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9328 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 9329 | esac;; |
---|
| 9330 | esac |
---|
| 9331 | case $ac_abs_builddir in |
---|
| 9332 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9333 | *) |
---|
| 9334 | case $ac_top_srcdir in |
---|
| 9335 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 9336 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9337 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 9338 | esac;; |
---|
| 9339 | esac |
---|
| 9340 | |
---|
| 9341 | |
---|
| 9342 | case $INSTALL in |
---|
| 9343 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 9344 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 9345 | esac |
---|
| 9346 | |
---|
| 9347 | if test x"$ac_file" != x-; then |
---|
| 9348 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9349 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9350 | rm -f "$ac_file" |
---|
| 9351 | fi |
---|
| 9352 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 9353 | # use $as_me), people would be surprised to read: |
---|
| 9354 | # /* config.h. Generated by config.status. */ |
---|
| 9355 | if test x"$ac_file" = x-; then |
---|
| 9356 | configure_input= |
---|
| 9357 | else |
---|
| 9358 | configure_input="$ac_file. " |
---|
| 9359 | fi |
---|
| 9360 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 9361 | sed 's,.*/,,'` by configure." |
---|
| 9362 | |
---|
| 9363 | # First look for the input files in the build tree, otherwise in the |
---|
| 9364 | # src tree. |
---|
| 9365 | ac_file_inputs=`IFS=: |
---|
| 9366 | for f in $ac_file_in; do |
---|
| 9367 | case $f in |
---|
| 9368 | -) echo $tmp/stdin ;; |
---|
| 9369 | [\\/$]*) |
---|
| 9370 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9371 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9372 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9373 | { (exit 1); exit 1; }; } |
---|
| 9374 | echo "$f";; |
---|
| 9375 | *) # Relative |
---|
| 9376 | if test -f "$f"; then |
---|
| 9377 | # Build tree |
---|
| 9378 | echo "$f" |
---|
| 9379 | elif test -f "$srcdir/$f"; then |
---|
| 9380 | # Source tree |
---|
| 9381 | echo "$srcdir/$f" |
---|
| 9382 | else |
---|
| 9383 | # /dev/null tree |
---|
| 9384 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9385 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9386 | { (exit 1); exit 1; }; } |
---|
| 9387 | fi;; |
---|
| 9388 | esac |
---|
| 9389 | done` || { (exit 1); exit 1; } |
---|
| 9390 | _ACEOF |
---|
| 9391 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9392 | sed "$ac_vpsub |
---|
| 9393 | $extrasub |
---|
| 9394 | _ACEOF |
---|
| 9395 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9396 | :t |
---|
| 9397 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 9398 | s,@configure_input@,$configure_input,;t t |
---|
| 9399 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 9400 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 9401 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 9402 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 9403 | s,@builddir@,$ac_builddir,;t t |
---|
| 9404 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 9405 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 9406 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 9407 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 9408 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 9409 | rm -f $tmp/stdin |
---|
| 9410 | if test x"$ac_file" != x-; then |
---|
| 9411 | mv $tmp/out $ac_file |
---|
| 9412 | else |
---|
| 9413 | cat $tmp/out |
---|
| 9414 | rm -f $tmp/out |
---|
| 9415 | fi |
---|
| 9416 | |
---|
| 9417 | done |
---|
| 9418 | _ACEOF |
---|
| 9419 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9420 | |
---|
| 9421 | # |
---|
| 9422 | # CONFIG_HEADER section. |
---|
| 9423 | # |
---|
| 9424 | |
---|
| 9425 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 9426 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 9427 | # |
---|
| 9428 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 9429 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 9430 | ac_dB='[ ].*$,\1#\2' |
---|
| 9431 | ac_dC=' ' |
---|
| 9432 | ac_dD=',;t' |
---|
| 9433 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 9434 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 9435 | ac_uB='$,\1#\2define\3' |
---|
| 9436 | ac_uC=' ' |
---|
| 9437 | ac_uD=',;t' |
---|
| 9438 | |
---|
| 9439 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 9440 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 9441 | case $ac_file in |
---|
| 9442 | - | *:- | *:-:* ) # input from stdin |
---|
| 9443 | cat >$tmp/stdin |
---|
| 9444 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9445 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9446 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9447 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9448 | * ) ac_file_in=$ac_file.in ;; |
---|
| 9449 | esac |
---|
| 9450 | |
---|
| 9451 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9452 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9453 | |
---|
| 9454 | # First look for the input files in the build tree, otherwise in the |
---|
| 9455 | # src tree. |
---|
| 9456 | ac_file_inputs=`IFS=: |
---|
| 9457 | for f in $ac_file_in; do |
---|
| 9458 | case $f in |
---|
| 9459 | -) echo $tmp/stdin ;; |
---|
| 9460 | [\\/$]*) |
---|
| 9461 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9462 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9463 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9464 | { (exit 1); exit 1; }; } |
---|
| 9465 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 9466 | echo "$f";; |
---|
| 9467 | *) # Relative |
---|
| 9468 | if test -f "$f"; then |
---|
| 9469 | # Build tree |
---|
| 9470 | echo "$f" |
---|
| 9471 | elif test -f "$srcdir/$f"; then |
---|
| 9472 | # Source tree |
---|
| 9473 | echo "$srcdir/$f" |
---|
| 9474 | else |
---|
| 9475 | # /dev/null tree |
---|
| 9476 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9477 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9478 | { (exit 1); exit 1; }; } |
---|
| 9479 | fi;; |
---|
| 9480 | esac |
---|
| 9481 | done` || { (exit 1); exit 1; } |
---|
| 9482 | # Remove the trailing spaces. |
---|
| 9483 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 9484 | |
---|
| 9485 | _ACEOF |
---|
| 9486 | |
---|
| 9487 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 9488 | # `conftest.undefs', that substitutes the proper values into |
---|
| 9489 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 9490 | # templates, and the second `#undef' templates. |
---|
| 9491 | # And first: Protect against being on the right side of a sed subst in |
---|
| 9492 | # config.status. Protect against being in an unquoted here document |
---|
| 9493 | # in config.status. |
---|
| 9494 | rm -f conftest.defines conftest.undefs |
---|
| 9495 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 9496 | # Putting comments in sed scripts is not portable. |
---|
| 9497 | # |
---|
| 9498 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 9499 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 9500 | # See the Autoconf documentation for `clear'. |
---|
| 9501 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 9502 | s/[\\&,]/\\&/g |
---|
| 9503 | s,[\\$`],\\&,g |
---|
| 9504 | t clear |
---|
| 9505 | : clear |
---|
| 9506 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 9507 | t end |
---|
| 9508 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 9509 | : end |
---|
| 9510 | _ACEOF |
---|
| 9511 | # If some macros were called several times there might be several times |
---|
| 9512 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 9513 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 9514 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 9515 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 9516 | rm -f confdef2sed.sed |
---|
| 9517 | |
---|
| 9518 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 9519 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 9520 | # on some systems where configure will not decide to define it. |
---|
| 9521 | cat >>conftest.undefs <<\_ACEOF |
---|
| 9522 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 9523 | _ACEOF |
---|
| 9524 | |
---|
| 9525 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 9526 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 9527 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 9528 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 9529 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 9530 | echo ' :' >>$CONFIG_STATUS |
---|
| 9531 | rm -f conftest.tail |
---|
| 9532 | while grep . conftest.defines >/dev/null |
---|
| 9533 | do |
---|
| 9534 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 9535 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 9536 | # Speed up: don't consider the non `#define' lines. |
---|
| 9537 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 9538 | # Work around the forget-to-reset-the-flag bug. |
---|
| 9539 | echo 't clr' >>$CONFIG_STATUS |
---|
| 9540 | echo ': clr' >>$CONFIG_STATUS |
---|
| 9541 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 9542 | echo 'CEOF |
---|
| 9543 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 9544 | rm -f $tmp/in |
---|
| 9545 | mv $tmp/out $tmp/in |
---|
| 9546 | ' >>$CONFIG_STATUS |
---|
| 9547 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 9548 | rm -f conftest.defines |
---|
| 9549 | mv conftest.tail conftest.defines |
---|
| 9550 | done |
---|
| 9551 | rm -f conftest.defines |
---|
| 9552 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 9553 | echo >>$CONFIG_STATUS |
---|
| 9554 | |
---|
| 9555 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 9556 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 9557 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 9558 | rm -f conftest.tail |
---|
| 9559 | while grep . conftest.undefs >/dev/null |
---|
| 9560 | do |
---|
| 9561 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 9562 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 9563 | # Speed up: don't consider the non `#undef' |
---|
| 9564 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 9565 | # Work around the forget-to-reset-the-flag bug. |
---|
| 9566 | echo 't clr' >>$CONFIG_STATUS |
---|
| 9567 | echo ': clr' >>$CONFIG_STATUS |
---|
| 9568 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 9569 | echo 'CEOF |
---|
| 9570 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 9571 | rm -f $tmp/in |
---|
| 9572 | mv $tmp/out $tmp/in |
---|
| 9573 | ' >>$CONFIG_STATUS |
---|
| 9574 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 9575 | rm -f conftest.undefs |
---|
| 9576 | mv conftest.tail conftest.undefs |
---|
| 9577 | done |
---|
| 9578 | rm -f conftest.undefs |
---|
| 9579 | |
---|
| 9580 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9581 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 9582 | # use $as_me), people would be surprised to read: |
---|
| 9583 | # /* config.h. Generated by config.status. */ |
---|
| 9584 | if test x"$ac_file" = x-; then |
---|
| 9585 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 9586 | else |
---|
| 9587 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 9588 | fi |
---|
| 9589 | cat $tmp/in >>$tmp/config.h |
---|
| 9590 | rm -f $tmp/in |
---|
| 9591 | if test x"$ac_file" != x-; then |
---|
| 9592 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 9593 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 9594 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 9595 | else |
---|
| 9596 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 9597 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9598 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 9599 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 9600 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 9601 | . : '\(.\)' 2>/dev/null || |
---|
| 9602 | echo X"$ac_file" | |
---|
| 9603 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9604 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9605 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9606 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9607 | s/.*/./; q'` |
---|
| 9608 | { if $as_mkdir_p; then |
---|
| 9609 | mkdir -p "$ac_dir" |
---|
| 9610 | else |
---|
| 9611 | as_dir="$ac_dir" |
---|
| 9612 | as_dirs= |
---|
| 9613 | while test ! -d "$as_dir"; do |
---|
| 9614 | as_dirs="$as_dir $as_dirs" |
---|
| 9615 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9616 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9617 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9618 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9619 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9620 | . : '\(.\)' 2>/dev/null || |
---|
| 9621 | echo X"$as_dir" | |
---|
| 9622 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9623 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9624 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9625 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9626 | s/.*/./; q'` |
---|
| 9627 | done |
---|
| 9628 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9629 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9630 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9631 | { (exit 1); exit 1; }; }; } |
---|
| 9632 | |
---|
| 9633 | rm -f $ac_file |
---|
| 9634 | mv $tmp/config.h $ac_file |
---|
| 9635 | fi |
---|
| 9636 | else |
---|
| 9637 | cat $tmp/config.h |
---|
| 9638 | rm -f $tmp/config.h |
---|
| 9639 | fi |
---|
| 9640 | # Compute $ac_file's index in $config_headers. |
---|
| 9641 | _am_stamp_count=1 |
---|
| 9642 | for _am_header in $config_headers :; do |
---|
| 9643 | case $_am_header in |
---|
| 9644 | $ac_file | $ac_file:* ) |
---|
| 9645 | break ;; |
---|
| 9646 | * ) |
---|
| 9647 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 9648 | esac |
---|
| 9649 | done |
---|
| 9650 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 9651 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9652 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 9653 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 9654 | X$ac_file : 'X\(/\)' \| \ |
---|
| 9655 | . : '\(.\)' 2>/dev/null || |
---|
| 9656 | echo X$ac_file | |
---|
| 9657 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9658 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9659 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9660 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9661 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 9662 | done |
---|
| 9663 | _ACEOF |
---|
| 9664 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9665 | |
---|
| 9666 | # |
---|
| 9667 | # CONFIG_COMMANDS section. |
---|
| 9668 | # |
---|
| 9669 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 9670 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 9671 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9672 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 9673 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9674 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 9675 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 9676 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 9677 | . : '\(.\)' 2>/dev/null || |
---|
| 9678 | echo X"$ac_dest" | |
---|
| 9679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9681 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9682 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9683 | s/.*/./; q'` |
---|
| 9684 | { if $as_mkdir_p; then |
---|
| 9685 | mkdir -p "$ac_dir" |
---|
| 9686 | else |
---|
| 9687 | as_dir="$ac_dir" |
---|
| 9688 | as_dirs= |
---|
| 9689 | while test ! -d "$as_dir"; do |
---|
| 9690 | as_dirs="$as_dir $as_dirs" |
---|
| 9691 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9692 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9693 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9694 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9695 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9696 | . : '\(.\)' 2>/dev/null || |
---|
| 9697 | echo X"$as_dir" | |
---|
| 9698 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9699 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9700 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9701 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9702 | s/.*/./; q'` |
---|
| 9703 | done |
---|
| 9704 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9705 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9706 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9707 | { (exit 1); exit 1; }; }; } |
---|
| 9708 | |
---|
| 9709 | ac_builddir=. |
---|
| 9710 | |
---|
| 9711 | if test "$ac_dir" != .; then |
---|
| 9712 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 9713 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 9714 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 9715 | else |
---|
| 9716 | ac_dir_suffix= ac_top_builddir= |
---|
| 9717 | fi |
---|
| 9718 | |
---|
| 9719 | case $srcdir in |
---|
| 9720 | .) # No --srcdir option. We are building in place. |
---|
| 9721 | ac_srcdir=. |
---|
| 9722 | if test -z "$ac_top_builddir"; then |
---|
| 9723 | ac_top_srcdir=. |
---|
| 9724 | else |
---|
| 9725 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 9726 | fi ;; |
---|
| 9727 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 9728 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 9729 | ac_top_srcdir=$srcdir ;; |
---|
| 9730 | *) # Relative path. |
---|
| 9731 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 9732 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 9733 | esac |
---|
| 9734 | |
---|
| 9735 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 9736 | # the directories may not exist. |
---|
| 9737 | case `pwd` in |
---|
| 9738 | .) ac_abs_builddir="$ac_dir";; |
---|
| 9739 | *) |
---|
| 9740 | case "$ac_dir" in |
---|
| 9741 | .) ac_abs_builddir=`pwd`;; |
---|
| 9742 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 9743 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 9744 | esac;; |
---|
| 9745 | esac |
---|
| 9746 | case $ac_abs_builddir in |
---|
| 9747 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9748 | *) |
---|
| 9749 | case ${ac_top_builddir}. in |
---|
| 9750 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 9751 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9752 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 9753 | esac;; |
---|
| 9754 | esac |
---|
| 9755 | case $ac_abs_builddir in |
---|
| 9756 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9757 | *) |
---|
| 9758 | case $ac_srcdir in |
---|
| 9759 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 9760 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9761 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 9762 | esac;; |
---|
| 9763 | esac |
---|
| 9764 | case $ac_abs_builddir in |
---|
| 9765 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9766 | *) |
---|
| 9767 | case $ac_top_srcdir in |
---|
| 9768 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 9769 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9770 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 9771 | esac;; |
---|
| 9772 | esac |
---|
| 9773 | |
---|
| 9774 | |
---|
| 9775 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 9776 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 9777 | case $ac_dest in |
---|
| 9778 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 9779 | # Strip MF so we end up with the name of the file. |
---|
| 9780 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 9781 | # Check whether this is an Automake generated Makefile or not. |
---|
| 9782 | # We used to match only the files named `Makefile.in', but |
---|
| 9783 | # some people rename them; so instead we look at the file content. |
---|
| 9784 | # Grep'ing the first line is not enough: some people post-process |
---|
| 9785 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 9786 | # So let's grep whole file. |
---|
| 9787 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 9788 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 9789 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9790 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 9791 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 9792 | X"$mf" : 'X\(/\)' \| \ |
---|
| 9793 | . : '\(.\)' 2>/dev/null || |
---|
| 9794 | echo X"$mf" | |
---|
| 9795 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9796 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9797 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9798 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9799 | s/.*/./; q'` |
---|
| 9800 | else |
---|
| 9801 | continue |
---|
| 9802 | fi |
---|
| 9803 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 9804 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 9805 | # running `make'. |
---|
[2819] | 9806 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
[1956] | 9807 | test -z "$DEPDIR" && continue |
---|
| 9808 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
[2819] | 9809 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
[1956] | 9810 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 9811 | # We invoke sed twice because it is the simplest approach to |
---|
| 9812 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
[2819] | 9813 | for file in `sed -n ' |
---|
[1956] | 9814 | /^DEP_FILES = .*\\\\$/ { |
---|
| 9815 | s/^DEP_FILES = // |
---|
| 9816 | :loop |
---|
| 9817 | s/\\\\$// |
---|
| 9818 | p |
---|
| 9819 | n |
---|
| 9820 | /\\\\$/ b loop |
---|
| 9821 | p |
---|
| 9822 | } |
---|
| 9823 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 9824 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 9825 | # Make sure the directory exists. |
---|
| 9826 | test -f "$dirpart/$file" && continue |
---|
| 9827 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 9828 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9829 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 9830 | X"$file" : 'X\(//\)$' \| \ |
---|
| 9831 | X"$file" : 'X\(/\)' \| \ |
---|
| 9832 | . : '\(.\)' 2>/dev/null || |
---|
| 9833 | echo X"$file" | |
---|
| 9834 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9835 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9836 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9837 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9838 | s/.*/./; q'` |
---|
| 9839 | { if $as_mkdir_p; then |
---|
| 9840 | mkdir -p $dirpart/$fdir |
---|
| 9841 | else |
---|
| 9842 | as_dir=$dirpart/$fdir |
---|
| 9843 | as_dirs= |
---|
| 9844 | while test ! -d "$as_dir"; do |
---|
| 9845 | as_dirs="$as_dir $as_dirs" |
---|
| 9846 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9847 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9848 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9849 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9850 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9851 | . : '\(.\)' 2>/dev/null || |
---|
| 9852 | echo X"$as_dir" | |
---|
| 9853 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9854 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9855 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9856 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9857 | s/.*/./; q'` |
---|
| 9858 | done |
---|
| 9859 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9860 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 9861 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 9862 | { (exit 1); exit 1; }; }; } |
---|
| 9863 | |
---|
| 9864 | # echo "creating $dirpart/$file" |
---|
| 9865 | echo '# dummy' > "$dirpart/$file" |
---|
| 9866 | done |
---|
| 9867 | done |
---|
| 9868 | ;; |
---|
| 9869 | esac |
---|
| 9870 | done |
---|
| 9871 | _ACEOF |
---|
| 9872 | |
---|
| 9873 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9874 | |
---|
| 9875 | { (exit 0); exit 0; } |
---|
| 9876 | _ACEOF |
---|
| 9877 | chmod +x $CONFIG_STATUS |
---|
| 9878 | ac_clean_files=$ac_clean_files_save |
---|
| 9879 | |
---|
| 9880 | |
---|
| 9881 | # configure is writing to config.log, and then calls config.status. |
---|
| 9882 | # config.status does its own redirection, appending to config.log. |
---|
| 9883 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 9884 | # by configure, so config.status won't be able to write to it; its |
---|
| 9885 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 9886 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 9887 | # appended to by config.status. When coming back to configure, we |
---|
| 9888 | # need to make the FD available again. |
---|
| 9889 | if test "$no_create" != yes; then |
---|
| 9890 | ac_cs_success=: |
---|
| 9891 | ac_config_status_args= |
---|
| 9892 | test "$silent" = yes && |
---|
| 9893 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 9894 | exec 5>/dev/null |
---|
| 9895 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 9896 | exec 5>>config.log |
---|
| 9897 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 9898 | # would make configure fail if this is the last instruction. |
---|
| 9899 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 9900 | fi |
---|
| 9901 | |
---|