[1956] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[3399] | 3 | # Generated by GNU Autoconf 2.59 for orxonox 0.2.1-pre-alpha. |
---|
[1956] | 4 | # |
---|
[3399] | 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' |
---|
[3399] | 272 | PACKAGE_VERSION='0.2.1-pre-alpha' |
---|
| 273 | PACKAGE_STRING='orxonox 0.2.1-pre-alpha' |
---|
| 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 | |
---|
[3399] | 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 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 |
---|
[3399] | 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 |
---|
[3399] | 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 |
---|
[3238] | 867 | --enable-debug compiles in debug mode. Lots of debug info about the |
---|
| 868 | game. |
---|
[3399] | 869 | --enable-sub-projects also builds the subProjects by default |
---|
[1956] | 870 | |
---|
[3238] | 871 | Optional Packages: |
---|
| 872 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 873 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 874 | --without-gtk Prevents GTK from being loaded |
---|
| 875 | --without-sdl-image Prevents SDL_image from being loaded |
---|
| 876 | |
---|
[1956] | 877 | Some influential environment variables: |
---|
| 878 | CXX C++ compiler command |
---|
| 879 | CXXFLAGS C++ compiler flags |
---|
| 880 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 881 | nonstandard directory <lib dir> |
---|
| 882 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 883 | headers in a nonstandard directory <include dir> |
---|
| 884 | CC C compiler command |
---|
| 885 | CFLAGS C compiler flags |
---|
| 886 | CPP C preprocessor |
---|
| 887 | |
---|
| 888 | Use these variables to override the choices made by `configure' or to help |
---|
| 889 | it to find libraries and programs with nonstandard names/locations. |
---|
| 890 | |
---|
[3399] | 891 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
[1956] | 892 | _ACEOF |
---|
| 893 | fi |
---|
| 894 | |
---|
| 895 | if test "$ac_init_help" = "recursive"; then |
---|
| 896 | # If there are subdirs, report their specific --help. |
---|
| 897 | ac_popdir=`pwd` |
---|
| 898 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 899 | test -d $ac_dir || continue |
---|
| 900 | ac_builddir=. |
---|
| 901 | |
---|
| 902 | if test "$ac_dir" != .; then |
---|
| 903 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 904 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 905 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 906 | else |
---|
| 907 | ac_dir_suffix= ac_top_builddir= |
---|
| 908 | fi |
---|
| 909 | |
---|
| 910 | case $srcdir in |
---|
| 911 | .) # No --srcdir option. We are building in place. |
---|
| 912 | ac_srcdir=. |
---|
| 913 | if test -z "$ac_top_builddir"; then |
---|
| 914 | ac_top_srcdir=. |
---|
| 915 | else |
---|
| 916 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 917 | fi ;; |
---|
| 918 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 919 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 920 | ac_top_srcdir=$srcdir ;; |
---|
| 921 | *) # Relative path. |
---|
| 922 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 923 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 924 | esac |
---|
| 925 | |
---|
| 926 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 927 | # the directories may not exist. |
---|
| 928 | case `pwd` in |
---|
| 929 | .) ac_abs_builddir="$ac_dir";; |
---|
| 930 | *) |
---|
| 931 | case "$ac_dir" in |
---|
| 932 | .) ac_abs_builddir=`pwd`;; |
---|
| 933 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 934 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 935 | esac;; |
---|
| 936 | esac |
---|
| 937 | case $ac_abs_builddir in |
---|
| 938 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 939 | *) |
---|
| 940 | case ${ac_top_builddir}. in |
---|
| 941 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 942 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 943 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 944 | esac;; |
---|
| 945 | esac |
---|
| 946 | case $ac_abs_builddir in |
---|
| 947 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 948 | *) |
---|
| 949 | case $ac_srcdir in |
---|
| 950 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 951 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 952 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 953 | esac;; |
---|
| 954 | esac |
---|
| 955 | case $ac_abs_builddir in |
---|
| 956 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 957 | *) |
---|
| 958 | case $ac_top_srcdir in |
---|
| 959 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 960 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 961 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 962 | esac;; |
---|
| 963 | esac |
---|
| 964 | |
---|
| 965 | cd $ac_dir |
---|
| 966 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 967 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 968 | echo |
---|
| 969 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 970 | elif test -f $ac_srcdir/configure; then |
---|
| 971 | echo |
---|
| 972 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 973 | elif test -f $ac_srcdir/configure.ac || |
---|
| 974 | test -f $ac_srcdir/configure.in; then |
---|
| 975 | echo |
---|
| 976 | $ac_configure --help |
---|
| 977 | else |
---|
| 978 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 979 | fi |
---|
| 980 | cd $ac_popdir |
---|
| 981 | done |
---|
| 982 | fi |
---|
| 983 | |
---|
| 984 | test -n "$ac_init_help" && exit 0 |
---|
| 985 | if $ac_init_version; then |
---|
| 986 | cat <<\_ACEOF |
---|
[3399] | 987 | orxonox configure 0.2.1-pre-alpha |
---|
[1956] | 988 | generated by GNU Autoconf 2.59 |
---|
| 989 | |
---|
| 990 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 991 | This configure script is free software; the Free Software Foundation |
---|
| 992 | gives unlimited permission to copy, distribute and modify it. |
---|
| 993 | _ACEOF |
---|
| 994 | exit 0 |
---|
| 995 | fi |
---|
| 996 | exec 5>config.log |
---|
| 997 | cat >&5 <<_ACEOF |
---|
| 998 | This file contains any messages produced by compilers while |
---|
| 999 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1000 | |
---|
[3399] | 1001 | It was created by orxonox $as_me 0.2.1-pre-alpha, which was |
---|
[1956] | 1002 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 1003 | |
---|
| 1004 | $ $0 $@ |
---|
| 1005 | |
---|
| 1006 | _ACEOF |
---|
| 1007 | { |
---|
| 1008 | cat <<_ASUNAME |
---|
| 1009 | ## --------- ## |
---|
| 1010 | ## Platform. ## |
---|
| 1011 | ## --------- ## |
---|
| 1012 | |
---|
| 1013 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1014 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1015 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1016 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1017 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1018 | |
---|
| 1019 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1020 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1021 | |
---|
| 1022 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1023 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1024 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1025 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1026 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1027 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1028 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1029 | |
---|
| 1030 | _ASUNAME |
---|
| 1031 | |
---|
| 1032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1033 | for as_dir in $PATH |
---|
| 1034 | do |
---|
| 1035 | IFS=$as_save_IFS |
---|
| 1036 | test -z "$as_dir" && as_dir=. |
---|
| 1037 | echo "PATH: $as_dir" |
---|
| 1038 | done |
---|
| 1039 | |
---|
| 1040 | } >&5 |
---|
| 1041 | |
---|
| 1042 | cat >&5 <<_ACEOF |
---|
| 1043 | |
---|
| 1044 | |
---|
| 1045 | ## ----------- ## |
---|
| 1046 | ## Core tests. ## |
---|
| 1047 | ## ----------- ## |
---|
| 1048 | |
---|
| 1049 | _ACEOF |
---|
| 1050 | |
---|
| 1051 | |
---|
| 1052 | # Keep a trace of the command line. |
---|
| 1053 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1054 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1055 | # Also quote any args containing shell meta-characters. |
---|
| 1056 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1057 | ac_configure_args= |
---|
| 1058 | ac_configure_args0= |
---|
| 1059 | ac_configure_args1= |
---|
| 1060 | ac_sep= |
---|
| 1061 | ac_must_keep_next=false |
---|
| 1062 | for ac_pass in 1 2 |
---|
| 1063 | do |
---|
| 1064 | for ac_arg |
---|
| 1065 | do |
---|
| 1066 | case $ac_arg in |
---|
| 1067 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1068 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1069 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1070 | continue ;; |
---|
| 1071 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1072 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1073 | esac |
---|
| 1074 | case $ac_pass in |
---|
| 1075 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1076 | 2) |
---|
| 1077 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1078 | if test $ac_must_keep_next = true; then |
---|
| 1079 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1080 | else |
---|
| 1081 | case $ac_arg in |
---|
| 1082 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1083 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1084 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1085 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1086 | case "$ac_configure_args0 " in |
---|
| 1087 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1088 | esac |
---|
| 1089 | ;; |
---|
| 1090 | -* ) ac_must_keep_next=true ;; |
---|
| 1091 | esac |
---|
| 1092 | fi |
---|
| 1093 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1094 | # Get rid of the leading space. |
---|
| 1095 | ac_sep=" " |
---|
| 1096 | ;; |
---|
| 1097 | esac |
---|
| 1098 | done |
---|
| 1099 | done |
---|
| 1100 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1101 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1102 | |
---|
| 1103 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1104 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1105 | # would cause problems or look ugly. |
---|
| 1106 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1107 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1108 | trap 'exit_status=$? |
---|
| 1109 | # Save into config.log some information that might help in debugging. |
---|
| 1110 | { |
---|
| 1111 | echo |
---|
| 1112 | |
---|
| 1113 | cat <<\_ASBOX |
---|
| 1114 | ## ---------------- ## |
---|
| 1115 | ## Cache variables. ## |
---|
| 1116 | ## ---------------- ## |
---|
| 1117 | _ASBOX |
---|
| 1118 | echo |
---|
| 1119 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1120 | { |
---|
| 1121 | (set) 2>&1 | |
---|
| 1122 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1123 | *ac_space=\ *) |
---|
| 1124 | sed -n \ |
---|
| 1125 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1126 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1127 | ;; |
---|
| 1128 | *) |
---|
| 1129 | sed -n \ |
---|
| 1130 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1131 | ;; |
---|
| 1132 | esac; |
---|
| 1133 | } |
---|
| 1134 | echo |
---|
| 1135 | |
---|
| 1136 | cat <<\_ASBOX |
---|
| 1137 | ## ----------------- ## |
---|
| 1138 | ## Output variables. ## |
---|
| 1139 | ## ----------------- ## |
---|
| 1140 | _ASBOX |
---|
| 1141 | echo |
---|
| 1142 | for ac_var in $ac_subst_vars |
---|
| 1143 | do |
---|
| 1144 | eval ac_val=$`echo $ac_var` |
---|
| 1145 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1146 | done | sort |
---|
| 1147 | echo |
---|
| 1148 | |
---|
| 1149 | if test -n "$ac_subst_files"; then |
---|
| 1150 | cat <<\_ASBOX |
---|
| 1151 | ## ------------- ## |
---|
| 1152 | ## Output files. ## |
---|
| 1153 | ## ------------- ## |
---|
| 1154 | _ASBOX |
---|
| 1155 | echo |
---|
| 1156 | for ac_var in $ac_subst_files |
---|
| 1157 | do |
---|
| 1158 | eval ac_val=$`echo $ac_var` |
---|
| 1159 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1160 | done | sort |
---|
| 1161 | echo |
---|
| 1162 | fi |
---|
| 1163 | |
---|
| 1164 | if test -s confdefs.h; then |
---|
| 1165 | cat <<\_ASBOX |
---|
| 1166 | ## ----------- ## |
---|
| 1167 | ## confdefs.h. ## |
---|
| 1168 | ## ----------- ## |
---|
| 1169 | _ASBOX |
---|
| 1170 | echo |
---|
| 1171 | sed "/^$/d" confdefs.h | sort |
---|
| 1172 | echo |
---|
| 1173 | fi |
---|
| 1174 | test "$ac_signal" != 0 && |
---|
| 1175 | echo "$as_me: caught signal $ac_signal" |
---|
| 1176 | echo "$as_me: exit $exit_status" |
---|
| 1177 | } >&5 |
---|
| 1178 | rm -f core *.core && |
---|
| 1179 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1180 | exit $exit_status |
---|
| 1181 | ' 0 |
---|
| 1182 | for ac_signal in 1 2 13 15; do |
---|
| 1183 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1184 | done |
---|
| 1185 | ac_signal=0 |
---|
| 1186 | |
---|
| 1187 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1188 | rm -rf conftest* confdefs.h |
---|
| 1189 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1190 | echo >confdefs.h |
---|
| 1191 | |
---|
| 1192 | # Predefined preprocessor variables. |
---|
| 1193 | |
---|
| 1194 | cat >>confdefs.h <<_ACEOF |
---|
| 1195 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1196 | _ACEOF |
---|
| 1197 | |
---|
| 1198 | |
---|
| 1199 | cat >>confdefs.h <<_ACEOF |
---|
| 1200 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1201 | _ACEOF |
---|
| 1202 | |
---|
| 1203 | |
---|
| 1204 | cat >>confdefs.h <<_ACEOF |
---|
| 1205 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1206 | _ACEOF |
---|
| 1207 | |
---|
| 1208 | |
---|
| 1209 | cat >>confdefs.h <<_ACEOF |
---|
| 1210 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1211 | _ACEOF |
---|
| 1212 | |
---|
| 1213 | |
---|
| 1214 | cat >>confdefs.h <<_ACEOF |
---|
| 1215 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1216 | _ACEOF |
---|
| 1217 | |
---|
| 1218 | |
---|
| 1219 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1220 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1221 | if test -z "$CONFIG_SITE"; then |
---|
| 1222 | if test "x$prefix" != xNONE; then |
---|
| 1223 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1224 | else |
---|
| 1225 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1226 | fi |
---|
| 1227 | fi |
---|
| 1228 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1229 | if test -r "$ac_site_file"; then |
---|
| 1230 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1231 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1232 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1233 | . "$ac_site_file" |
---|
| 1234 | fi |
---|
| 1235 | done |
---|
| 1236 | |
---|
| 1237 | if test -r "$cache_file"; then |
---|
| 1238 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1239 | # files actually), so we avoid doing that. |
---|
| 1240 | if test -f "$cache_file"; then |
---|
| 1241 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1242 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1243 | case $cache_file in |
---|
| 1244 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1245 | *) . ./$cache_file;; |
---|
| 1246 | esac |
---|
| 1247 | fi |
---|
| 1248 | else |
---|
| 1249 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1250 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1251 | >$cache_file |
---|
| 1252 | fi |
---|
| 1253 | |
---|
| 1254 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1255 | # value. |
---|
| 1256 | ac_cache_corrupted=false |
---|
| 1257 | for ac_var in `(set) 2>&1 | |
---|
| 1258 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1259 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1260 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1261 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1262 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1263 | case $ac_old_set,$ac_new_set in |
---|
| 1264 | set,) |
---|
| 1265 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1266 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1267 | ac_cache_corrupted=: ;; |
---|
| 1268 | ,set) |
---|
| 1269 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1270 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1271 | ac_cache_corrupted=: ;; |
---|
| 1272 | ,);; |
---|
| 1273 | *) |
---|
| 1274 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1275 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1276 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1277 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1278 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1279 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1280 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1281 | ac_cache_corrupted=: |
---|
| 1282 | fi;; |
---|
| 1283 | esac |
---|
| 1284 | # Pass precious variables to config.status. |
---|
| 1285 | if test "$ac_new_set" = set; then |
---|
| 1286 | case $ac_new_val in |
---|
| 1287 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1288 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1289 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1290 | esac |
---|
| 1291 | case " $ac_configure_args " in |
---|
| 1292 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1293 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1294 | esac |
---|
| 1295 | fi |
---|
| 1296 | done |
---|
| 1297 | if $ac_cache_corrupted; then |
---|
| 1298 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1299 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1300 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1301 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1302 | { (exit 1); exit 1; }; } |
---|
| 1303 | fi |
---|
| 1304 | |
---|
| 1305 | ac_ext=c |
---|
| 1306 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1310 | |
---|
| 1311 | |
---|
| 1312 | |
---|
| 1313 | |
---|
| 1314 | |
---|
| 1315 | |
---|
| 1316 | |
---|
| 1317 | |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | |
---|
| 1326 | |
---|
| 1327 | |
---|
| 1328 | |
---|
| 1329 | |
---|
| 1330 | |
---|
| 1331 | |
---|
| 1332 | |
---|
| 1333 | |
---|
| 1334 | |
---|
| 1335 | |
---|
| 1336 | |
---|
[2980] | 1337 | |
---|
| 1338 | # Detect the canonical host and target build environment. |
---|
[1956] | 1339 | ac_aux_dir= |
---|
| 1340 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1341 | if test -f $ac_dir/install-sh; then |
---|
| 1342 | ac_aux_dir=$ac_dir |
---|
| 1343 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1344 | break |
---|
| 1345 | elif test -f $ac_dir/install.sh; then |
---|
| 1346 | ac_aux_dir=$ac_dir |
---|
| 1347 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1348 | break |
---|
| 1349 | elif test -f $ac_dir/shtool; then |
---|
| 1350 | ac_aux_dir=$ac_dir |
---|
| 1351 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1352 | break |
---|
| 1353 | fi |
---|
| 1354 | done |
---|
| 1355 | if test -z "$ac_aux_dir"; then |
---|
| 1356 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1357 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1358 | { (exit 1); exit 1; }; } |
---|
| 1359 | fi |
---|
| 1360 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1361 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1362 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1363 | |
---|
[2980] | 1364 | # Make sure we can run config.sub. |
---|
| 1365 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1366 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1367 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1368 | { (exit 1); exit 1; }; } |
---|
| 1369 | |
---|
| 1370 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1371 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1372 | if test "${ac_cv_build+set}" = set; then |
---|
| 1373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1374 | else |
---|
| 1375 | ac_cv_build_alias=$build_alias |
---|
| 1376 | test -z "$ac_cv_build_alias" && |
---|
| 1377 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1378 | test -z "$ac_cv_build_alias" && |
---|
| 1379 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1380 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1381 | { (exit 1); exit 1; }; } |
---|
| 1382 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1383 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1384 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1385 | { (exit 1); exit 1; }; } |
---|
| 1386 | |
---|
| 1387 | fi |
---|
| 1388 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1389 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1390 | build=$ac_cv_build |
---|
| 1391 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1392 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1393 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1394 | |
---|
| 1395 | |
---|
| 1396 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1397 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1398 | if test "${ac_cv_host+set}" = set; then |
---|
| 1399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1400 | else |
---|
| 1401 | ac_cv_host_alias=$host_alias |
---|
| 1402 | test -z "$ac_cv_host_alias" && |
---|
| 1403 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1404 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1405 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1406 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1407 | { (exit 1); exit 1; }; } |
---|
| 1408 | |
---|
| 1409 | fi |
---|
| 1410 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1411 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1412 | host=$ac_cv_host |
---|
| 1413 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1414 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1415 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1416 | |
---|
| 1417 | |
---|
| 1418 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1419 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1420 | if test "${ac_cv_target+set}" = set; then |
---|
| 1421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1422 | else |
---|
| 1423 | ac_cv_target_alias=$target_alias |
---|
| 1424 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1425 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1426 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1427 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1428 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1429 | { (exit 1); exit 1; }; } |
---|
| 1430 | |
---|
| 1431 | fi |
---|
| 1432 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1433 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1434 | target=$ac_cv_target |
---|
| 1435 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1436 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1437 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1438 | |
---|
| 1439 | |
---|
| 1440 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1441 | # will get canonicalized. |
---|
| 1442 | test -n "$target_alias" && |
---|
| 1443 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1444 | NONENONEs,x,x, && |
---|
| 1445 | program_prefix=${target_alias}- |
---|
| 1446 | |
---|
| 1447 | |
---|
| 1448 | am__api_version="1.8" |
---|
[1956] | 1449 | # Find a good install program. We prefer a C program (faster), |
---|
| 1450 | # so one script is as good as another. But avoid the broken or |
---|
| 1451 | # incompatible versions: |
---|
| 1452 | # SysV /etc/install, /usr/sbin/install |
---|
| 1453 | # SunOS /usr/etc/install |
---|
| 1454 | # IRIX /sbin/install |
---|
| 1455 | # AIX /bin/install |
---|
| 1456 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1457 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1458 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1459 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1460 | # OS/2's system install, which has a completely different semantic |
---|
| 1461 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1462 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1463 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1464 | if test -z "$INSTALL"; then |
---|
| 1465 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1467 | else |
---|
| 1468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1469 | for as_dir in $PATH |
---|
| 1470 | do |
---|
| 1471 | IFS=$as_save_IFS |
---|
| 1472 | test -z "$as_dir" && as_dir=. |
---|
| 1473 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1474 | case $as_dir/ in |
---|
| 1475 | ./ | .// | /cC/* | \ |
---|
| 1476 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1477 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1478 | /usr/ucb/* ) ;; |
---|
| 1479 | *) |
---|
| 1480 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1481 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1482 | # by default. |
---|
| 1483 | for ac_prog in ginstall scoinst install; do |
---|
| 1484 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1485 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1486 | if test $ac_prog = install && |
---|
| 1487 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1488 | # AIX install. It has an incompatible calling convention. |
---|
| 1489 | : |
---|
| 1490 | elif test $ac_prog = install && |
---|
| 1491 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1492 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1493 | : |
---|
| 1494 | else |
---|
| 1495 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1496 | break 3 |
---|
| 1497 | fi |
---|
[1853] | 1498 | fi |
---|
[1956] | 1499 | done |
---|
| 1500 | done |
---|
| 1501 | ;; |
---|
| 1502 | esac |
---|
| 1503 | done |
---|
| 1504 | |
---|
| 1505 | |
---|
[1853] | 1506 | fi |
---|
[1956] | 1507 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1508 | INSTALL=$ac_cv_path_install |
---|
| 1509 | else |
---|
| 1510 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1511 | # path for INSTALL within a source directory, because that will |
---|
| 1512 | # break other packages using the cache if that directory is |
---|
| 1513 | # removed, or if the path is relative. |
---|
| 1514 | INSTALL=$ac_install_sh |
---|
| 1515 | fi |
---|
| 1516 | fi |
---|
| 1517 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1518 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1519 | |
---|
| 1520 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1521 | # It thinks the first close brace ends the variable substitution. |
---|
| 1522 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1523 | |
---|
| 1524 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1525 | |
---|
| 1526 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1527 | |
---|
| 1528 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1529 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1530 | # Just in case |
---|
| 1531 | sleep 1 |
---|
| 1532 | echo timestamp > conftest.file |
---|
| 1533 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1534 | # arguments. Must try -L first in case configure is actually a |
---|
| 1535 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1536 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1537 | # directory). |
---|
| 1538 | if ( |
---|
| 1539 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1540 | if test "$*" = "X"; then |
---|
| 1541 | # -L didn't work. |
---|
| 1542 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1543 | fi |
---|
| 1544 | rm -f conftest.file |
---|
| 1545 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1546 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1547 | |
---|
| 1548 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1549 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1550 | # broken ls alias from the environment. This has actually |
---|
| 1551 | # happened. Such a system could not be considered "sane". |
---|
| 1552 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1553 | alias in your environment" >&5 |
---|
| 1554 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1555 | alias in your environment" >&2;} |
---|
| 1556 | { (exit 1); exit 1; }; } |
---|
| 1557 | fi |
---|
| 1558 | |
---|
| 1559 | test "$2" = conftest.file |
---|
| 1560 | ) |
---|
| 1561 | then |
---|
| 1562 | # Ok. |
---|
| 1563 | : |
---|
[1853] | 1564 | else |
---|
[1956] | 1565 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1566 | Check your system clock" >&5 |
---|
| 1567 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1568 | Check your system clock" >&2;} |
---|
| 1569 | { (exit 1); exit 1; }; } |
---|
[1853] | 1570 | fi |
---|
[1956] | 1571 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1572 | echo "${ECHO_T}yes" >&6 |
---|
| 1573 | test "$program_prefix" != NONE && |
---|
| 1574 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1575 | # Use a double $ so make ignores it. |
---|
| 1576 | test "$program_suffix" != NONE && |
---|
| 1577 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1578 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1579 | # By default was `s,x,x', remove it if useless. |
---|
| 1580 | cat <<\_ACEOF >conftest.sed |
---|
| 1581 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1582 | _ACEOF |
---|
| 1583 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1584 | rm conftest.sed |
---|
[1853] | 1585 | |
---|
[1956] | 1586 | # expand $ac_aux_dir to an absolute path |
---|
| 1587 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1588 | |
---|
| 1589 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1590 | # Use eval to expand $SHELL |
---|
| 1591 | if eval "$MISSING --run true"; then |
---|
| 1592 | am_missing_run="$MISSING --run " |
---|
| 1593 | else |
---|
| 1594 | am_missing_run= |
---|
| 1595 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1596 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1597 | fi |
---|
| 1598 | |
---|
[2819] | 1599 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
[2706] | 1600 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
| 1601 | # argument. Indeed, we sometimes output rules like |
---|
| 1602 | # $(mkdir_p) $(somedir) |
---|
| 1603 | # where $(somedir) is conditionally defined. |
---|
| 1604 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
| 1605 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
| 1606 | mkdir_p='mkdir -p -- .' |
---|
| 1607 | else |
---|
| 1608 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1609 | # recognize any option. It will interpret all options as |
---|
| 1610 | # directories to create, and then abort because `.' already |
---|
| 1611 | # exists. |
---|
[2819] | 1612 | for d in ./-p ./--version; |
---|
[2706] | 1613 | do |
---|
| 1614 | test -d $d && rmdir $d |
---|
| 1615 | done |
---|
| 1616 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1617 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1618 | mkdir_p='$(mkinstalldirs)' |
---|
| 1619 | else |
---|
| 1620 | mkdir_p='$(install_sh) -d' |
---|
| 1621 | fi |
---|
| 1622 | fi |
---|
| 1623 | |
---|
[1956] | 1624 | for ac_prog in gawk mawk nawk awk |
---|
| 1625 | do |
---|
| 1626 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1627 | set dummy $ac_prog; ac_word=$2 |
---|
| 1628 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1630 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1632 | else |
---|
| 1633 | if test -n "$AWK"; then |
---|
| 1634 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1635 | else |
---|
| 1636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1637 | for as_dir in $PATH |
---|
| 1638 | do |
---|
| 1639 | IFS=$as_save_IFS |
---|
| 1640 | test -z "$as_dir" && as_dir=. |
---|
| 1641 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1643 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1645 | break 2 |
---|
| 1646 | fi |
---|
| 1647 | done |
---|
| 1648 | done |
---|
| 1649 | |
---|
| 1650 | fi |
---|
| 1651 | fi |
---|
| 1652 | AWK=$ac_cv_prog_AWK |
---|
| 1653 | if test -n "$AWK"; then |
---|
| 1654 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1655 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1656 | else |
---|
| 1657 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1658 | echo "${ECHO_T}no" >&6 |
---|
| 1659 | fi |
---|
| 1660 | |
---|
| 1661 | test -n "$AWK" && break |
---|
| 1662 | done |
---|
| 1663 | |
---|
| 1664 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1665 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1666 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1667 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1669 | else |
---|
| 1670 | cat >conftest.make <<\_ACEOF |
---|
| 1671 | all: |
---|
| 1672 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1673 | _ACEOF |
---|
| 1674 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1675 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1676 | if test -n "$ac_maketemp"; then |
---|
| 1677 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1678 | else |
---|
| 1679 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1680 | fi |
---|
| 1681 | rm -f conftest.make |
---|
| 1682 | fi |
---|
| 1683 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1684 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1685 | echo "${ECHO_T}yes" >&6 |
---|
| 1686 | SET_MAKE= |
---|
| 1687 | else |
---|
| 1688 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1689 | echo "${ECHO_T}no" >&6 |
---|
| 1690 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1691 | fi |
---|
| 1692 | |
---|
| 1693 | rm -rf .tst 2>/dev/null |
---|
| 1694 | mkdir .tst 2>/dev/null |
---|
| 1695 | if test -d .tst; then |
---|
| 1696 | am__leading_dot=. |
---|
| 1697 | else |
---|
| 1698 | am__leading_dot=_ |
---|
| 1699 | fi |
---|
| 1700 | rmdir .tst 2>/dev/null |
---|
| 1701 | |
---|
[2706] | 1702 | # test to see if srcdir already configured |
---|
[1956] | 1703 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1704 | test -f $srcdir/config.status; then |
---|
| 1705 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1706 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1707 | { (exit 1); exit 1; }; } |
---|
| 1708 | fi |
---|
| 1709 | |
---|
| 1710 | # test whether we have cygpath |
---|
| 1711 | if test -z "$CYGPATH_W"; then |
---|
| 1712 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1713 | CYGPATH_W='cygpath -w' |
---|
| 1714 | else |
---|
| 1715 | CYGPATH_W=echo |
---|
| 1716 | fi |
---|
| 1717 | fi |
---|
| 1718 | |
---|
| 1719 | |
---|
| 1720 | # Define the identity of the package. |
---|
| 1721 | PACKAGE='orxonox' |
---|
[3399] | 1722 | VERSION='0.2.1-pre-alpha' |
---|
[1956] | 1723 | |
---|
| 1724 | |
---|
| 1725 | cat >>confdefs.h <<_ACEOF |
---|
| 1726 | #define PACKAGE "$PACKAGE" |
---|
| 1727 | _ACEOF |
---|
| 1728 | |
---|
| 1729 | |
---|
| 1730 | cat >>confdefs.h <<_ACEOF |
---|
| 1731 | #define VERSION "$VERSION" |
---|
| 1732 | _ACEOF |
---|
| 1733 | |
---|
| 1734 | # Some tools Automake needs. |
---|
| 1735 | |
---|
| 1736 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1737 | |
---|
| 1738 | |
---|
| 1739 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1740 | |
---|
| 1741 | |
---|
| 1742 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1743 | |
---|
| 1744 | |
---|
| 1745 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1746 | |
---|
| 1747 | |
---|
| 1748 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1749 | |
---|
| 1750 | |
---|
| 1751 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1752 | |
---|
| 1753 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1754 | |
---|
| 1755 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1756 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1757 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1758 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1759 | if test "$cross_compiling" != no; then |
---|
| 1760 | if test -n "$ac_tool_prefix"; then |
---|
| 1761 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1762 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1763 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1764 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1765 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1767 | else |
---|
| 1768 | if test -n "$STRIP"; then |
---|
| 1769 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1770 | else |
---|
| 1771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1772 | for as_dir in $PATH |
---|
| 1773 | do |
---|
| 1774 | IFS=$as_save_IFS |
---|
| 1775 | test -z "$as_dir" && as_dir=. |
---|
| 1776 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1777 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1778 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1779 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1780 | break 2 |
---|
| 1781 | fi |
---|
| 1782 | done |
---|
| 1783 | done |
---|
| 1784 | |
---|
| 1785 | fi |
---|
| 1786 | fi |
---|
| 1787 | STRIP=$ac_cv_prog_STRIP |
---|
| 1788 | if test -n "$STRIP"; then |
---|
| 1789 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1790 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1791 | else |
---|
| 1792 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1793 | echo "${ECHO_T}no" >&6 |
---|
| 1794 | fi |
---|
| 1795 | |
---|
| 1796 | fi |
---|
| 1797 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1798 | ac_ct_STRIP=$STRIP |
---|
| 1799 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1800 | set dummy strip; ac_word=$2 |
---|
| 1801 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1803 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1805 | else |
---|
| 1806 | if test -n "$ac_ct_STRIP"; then |
---|
| 1807 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1808 | else |
---|
| 1809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1810 | for as_dir in $PATH |
---|
| 1811 | do |
---|
| 1812 | IFS=$as_save_IFS |
---|
| 1813 | test -z "$as_dir" && as_dir=. |
---|
| 1814 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1815 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1816 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1818 | break 2 |
---|
| 1819 | fi |
---|
| 1820 | done |
---|
| 1821 | done |
---|
| 1822 | |
---|
| 1823 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1824 | fi |
---|
| 1825 | fi |
---|
| 1826 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1827 | if test -n "$ac_ct_STRIP"; then |
---|
| 1828 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1829 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1830 | else |
---|
| 1831 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1832 | echo "${ECHO_T}no" >&6 |
---|
| 1833 | fi |
---|
| 1834 | |
---|
| 1835 | STRIP=$ac_ct_STRIP |
---|
| 1836 | else |
---|
| 1837 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1838 | fi |
---|
| 1839 | |
---|
| 1840 | fi |
---|
| 1841 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1842 | |
---|
| 1843 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1844 | # some platforms. |
---|
| 1845 | |
---|
| 1846 | |
---|
| 1847 | |
---|
| 1848 | |
---|
[2627] | 1849 | |
---|
[1959] | 1850 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1851 | |
---|
| 1852 | |
---|
[2018] | 1853 | |
---|
[1956] | 1854 | # Checks for programs. |
---|
| 1855 | ac_ext=cc |
---|
| 1856 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1857 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1858 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1859 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1860 | if test -n "$ac_tool_prefix"; then |
---|
| 1861 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1862 | do |
---|
| 1863 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1864 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1865 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1866 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1867 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1869 | else |
---|
| 1870 | if test -n "$CXX"; then |
---|
| 1871 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1872 | else |
---|
| 1873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1874 | for as_dir in $PATH |
---|
| 1875 | do |
---|
| 1876 | IFS=$as_save_IFS |
---|
| 1877 | test -z "$as_dir" && as_dir=. |
---|
| 1878 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1879 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1880 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1882 | break 2 |
---|
| 1883 | fi |
---|
| 1884 | done |
---|
| 1885 | done |
---|
| 1886 | |
---|
| 1887 | fi |
---|
| 1888 | fi |
---|
| 1889 | CXX=$ac_cv_prog_CXX |
---|
| 1890 | if test -n "$CXX"; then |
---|
| 1891 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1892 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1893 | else |
---|
| 1894 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1895 | echo "${ECHO_T}no" >&6 |
---|
| 1896 | fi |
---|
| 1897 | |
---|
| 1898 | test -n "$CXX" && break |
---|
| 1899 | done |
---|
| 1900 | fi |
---|
| 1901 | if test -z "$CXX"; then |
---|
| 1902 | ac_ct_CXX=$CXX |
---|
| 1903 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1904 | do |
---|
| 1905 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1906 | set dummy $ac_prog; ac_word=$2 |
---|
| 1907 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1909 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1911 | else |
---|
| 1912 | if test -n "$ac_ct_CXX"; then |
---|
| 1913 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1914 | else |
---|
| 1915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1916 | for as_dir in $PATH |
---|
| 1917 | do |
---|
| 1918 | IFS=$as_save_IFS |
---|
| 1919 | test -z "$as_dir" && as_dir=. |
---|
| 1920 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1921 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1922 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1924 | break 2 |
---|
| 1925 | fi |
---|
| 1926 | done |
---|
| 1927 | done |
---|
| 1928 | |
---|
| 1929 | fi |
---|
| 1930 | fi |
---|
| 1931 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1932 | if test -n "$ac_ct_CXX"; then |
---|
| 1933 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1934 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1935 | else |
---|
| 1936 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1937 | echo "${ECHO_T}no" >&6 |
---|
| 1938 | fi |
---|
| 1939 | |
---|
| 1940 | test -n "$ac_ct_CXX" && break |
---|
| 1941 | done |
---|
| 1942 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1943 | |
---|
| 1944 | CXX=$ac_ct_CXX |
---|
| 1945 | fi |
---|
| 1946 | |
---|
| 1947 | |
---|
| 1948 | # Provide some information about the compiler. |
---|
| 1949 | echo "$as_me:$LINENO:" \ |
---|
| 1950 | "checking for C++ compiler version" >&5 |
---|
| 1951 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1952 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1953 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1954 | ac_status=$? |
---|
| 1955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1956 | (exit $ac_status); } |
---|
| 1957 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1958 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1959 | ac_status=$? |
---|
| 1960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1961 | (exit $ac_status); } |
---|
| 1962 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1963 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1964 | ac_status=$? |
---|
| 1965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1966 | (exit $ac_status); } |
---|
| 1967 | |
---|
| 1968 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1969 | /* confdefs.h. */ |
---|
| 1970 | _ACEOF |
---|
| 1971 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1972 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1973 | /* end confdefs.h. */ |
---|
| 1974 | |
---|
| 1975 | int |
---|
| 1976 | main () |
---|
| 1977 | { |
---|
| 1978 | |
---|
| 1979 | ; |
---|
| 1980 | return 0; |
---|
| 1981 | } |
---|
| 1982 | _ACEOF |
---|
| 1983 | ac_clean_files_save=$ac_clean_files |
---|
| 1984 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1985 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1986 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1987 | # of exeext. |
---|
| 1988 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1989 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1990 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1991 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1992 | (eval $ac_link_default) 2>&5 |
---|
| 1993 | ac_status=$? |
---|
| 1994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1995 | (exit $ac_status); }; then |
---|
| 1996 | # Find the output, starting from the most likely. This scheme is |
---|
| 1997 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 1998 | # resort. |
---|
| 1999 | |
---|
| 2000 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 2001 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 2002 | ac_cv_exeext= |
---|
| 2003 | # b.out is created by i960 compilers. |
---|
| 2004 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 2005 | do |
---|
| 2006 | test -f "$ac_file" || continue |
---|
| 2007 | case $ac_file in |
---|
| 2008 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 2009 | ;; |
---|
| 2010 | conftest.$ac_ext ) |
---|
| 2011 | # This is the source file. |
---|
| 2012 | ;; |
---|
| 2013 | [ab].out ) |
---|
| 2014 | # We found the default executable, but exeext='' is most |
---|
| 2015 | # certainly right. |
---|
| 2016 | break;; |
---|
| 2017 | *.* ) |
---|
| 2018 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2019 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 2020 | # but it would be cool to find out if it's true. Does anybody |
---|
| 2021 | # maintain Libtool? --akim. |
---|
| 2022 | export ac_cv_exeext |
---|
| 2023 | break;; |
---|
| 2024 | * ) |
---|
| 2025 | break;; |
---|
| 2026 | esac |
---|
| 2027 | done |
---|
| 2028 | else |
---|
| 2029 | echo "$as_me: failed program was:" >&5 |
---|
| 2030 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2031 | |
---|
| 2032 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 2033 | See \`config.log' for more details." >&5 |
---|
| 2034 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 2035 | See \`config.log' for more details." >&2;} |
---|
| 2036 | { (exit 77); exit 77; }; } |
---|
| 2037 | fi |
---|
| 2038 | |
---|
| 2039 | ac_exeext=$ac_cv_exeext |
---|
| 2040 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2041 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 2042 | |
---|
| 2043 | # Check the compiler produces executables we can run. If not, either |
---|
| 2044 | # the compiler is broken, or we cross compile. |
---|
| 2045 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 2046 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 2047 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2048 | # If not cross compiling, check that we can run a simple program. |
---|
| 2049 | if test "$cross_compiling" != yes; then |
---|
| 2050 | if { ac_try='./$ac_file' |
---|
| 2051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2052 | (eval $ac_try) 2>&5 |
---|
| 2053 | ac_status=$? |
---|
| 2054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2055 | (exit $ac_status); }; }; then |
---|
| 2056 | cross_compiling=no |
---|
| 2057 | else |
---|
| 2058 | if test "$cross_compiling" = maybe; then |
---|
| 2059 | cross_compiling=yes |
---|
| 2060 | else |
---|
| 2061 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 2062 | If you meant to cross compile, use \`--host'. |
---|
| 2063 | See \`config.log' for more details." >&5 |
---|
| 2064 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 2065 | If you meant to cross compile, use \`--host'. |
---|
| 2066 | See \`config.log' for more details." >&2;} |
---|
| 2067 | { (exit 1); exit 1; }; } |
---|
| 2068 | fi |
---|
| 2069 | fi |
---|
| 2070 | fi |
---|
| 2071 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2072 | echo "${ECHO_T}yes" >&6 |
---|
| 2073 | |
---|
| 2074 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2075 | ac_clean_files=$ac_clean_files_save |
---|
| 2076 | # Check the compiler produces executables we can run. If not, either |
---|
| 2077 | # the compiler is broken, or we cross compile. |
---|
| 2078 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2079 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2080 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2081 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2082 | |
---|
| 2083 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2084 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2086 | (eval $ac_link) 2>&5 |
---|
| 2087 | ac_status=$? |
---|
| 2088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2089 | (exit $ac_status); }; then |
---|
| 2090 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2091 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2092 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2093 | # `rm'. |
---|
| 2094 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2095 | test -f "$ac_file" || continue |
---|
| 2096 | case $ac_file in |
---|
| 2097 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2098 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2099 | export ac_cv_exeext |
---|
| 2100 | break;; |
---|
| 2101 | * ) break;; |
---|
| 2102 | esac |
---|
| 2103 | done |
---|
| 2104 | else |
---|
| 2105 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2106 | See \`config.log' for more details." >&5 |
---|
| 2107 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2108 | See \`config.log' for more details." >&2;} |
---|
| 2109 | { (exit 1); exit 1; }; } |
---|
| 2110 | fi |
---|
| 2111 | |
---|
| 2112 | rm -f conftest$ac_cv_exeext |
---|
| 2113 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2114 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2115 | |
---|
| 2116 | rm -f conftest.$ac_ext |
---|
| 2117 | EXEEXT=$ac_cv_exeext |
---|
| 2118 | ac_exeext=$EXEEXT |
---|
| 2119 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2120 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2121 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2123 | else |
---|
| 2124 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2125 | /* confdefs.h. */ |
---|
| 2126 | _ACEOF |
---|
| 2127 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2128 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2129 | /* end confdefs.h. */ |
---|
| 2130 | |
---|
| 2131 | int |
---|
| 2132 | main () |
---|
| 2133 | { |
---|
| 2134 | |
---|
| 2135 | ; |
---|
| 2136 | return 0; |
---|
| 2137 | } |
---|
| 2138 | _ACEOF |
---|
| 2139 | rm -f conftest.o conftest.obj |
---|
| 2140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2141 | (eval $ac_compile) 2>&5 |
---|
| 2142 | ac_status=$? |
---|
| 2143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2144 | (exit $ac_status); }; then |
---|
| 2145 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2146 | case $ac_file in |
---|
| 2147 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2148 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2149 | break;; |
---|
| 2150 | esac |
---|
| 2151 | done |
---|
| 2152 | else |
---|
| 2153 | echo "$as_me: failed program was:" >&5 |
---|
| 2154 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2155 | |
---|
| 2156 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2157 | See \`config.log' for more details." >&5 |
---|
| 2158 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2159 | See \`config.log' for more details." >&2;} |
---|
| 2160 | { (exit 1); exit 1; }; } |
---|
| 2161 | fi |
---|
| 2162 | |
---|
| 2163 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2164 | fi |
---|
| 2165 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2166 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2167 | OBJEXT=$ac_cv_objext |
---|
| 2168 | ac_objext=$OBJEXT |
---|
| 2169 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2170 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2171 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2173 | else |
---|
| 2174 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2175 | /* confdefs.h. */ |
---|
| 2176 | _ACEOF |
---|
| 2177 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2178 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2179 | /* end confdefs.h. */ |
---|
| 2180 | |
---|
| 2181 | int |
---|
| 2182 | main () |
---|
| 2183 | { |
---|
| 2184 | #ifndef __GNUC__ |
---|
| 2185 | choke me |
---|
| 2186 | #endif |
---|
| 2187 | |
---|
| 2188 | ; |
---|
| 2189 | return 0; |
---|
| 2190 | } |
---|
| 2191 | _ACEOF |
---|
| 2192 | rm -f conftest.$ac_objext |
---|
| 2193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2194 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2195 | ac_status=$? |
---|
| 2196 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2197 | rm -f conftest.er1 |
---|
| 2198 | cat conftest.err >&5 |
---|
| 2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2200 | (exit $ac_status); } && |
---|
| 2201 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2202 | || test ! -s conftest.err' |
---|
| 2203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2204 | (eval $ac_try) 2>&5 |
---|
| 2205 | ac_status=$? |
---|
| 2206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2207 | (exit $ac_status); }; } && |
---|
| 2208 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2210 | (eval $ac_try) 2>&5 |
---|
| 2211 | ac_status=$? |
---|
| 2212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2213 | (exit $ac_status); }; }; then |
---|
| 2214 | ac_compiler_gnu=yes |
---|
| 2215 | else |
---|
| 2216 | echo "$as_me: failed program was:" >&5 |
---|
| 2217 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2218 | |
---|
| 2219 | ac_compiler_gnu=no |
---|
| 2220 | fi |
---|
| 2221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2222 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2223 | |
---|
| 2224 | fi |
---|
| 2225 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2226 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2227 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2228 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2229 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2230 | CXXFLAGS="-g" |
---|
| 2231 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2232 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2233 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2235 | else |
---|
| 2236 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2237 | /* confdefs.h. */ |
---|
| 2238 | _ACEOF |
---|
| 2239 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2240 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2241 | /* end confdefs.h. */ |
---|
| 2242 | |
---|
| 2243 | int |
---|
| 2244 | main () |
---|
| 2245 | { |
---|
| 2246 | |
---|
| 2247 | ; |
---|
| 2248 | return 0; |
---|
| 2249 | } |
---|
| 2250 | _ACEOF |
---|
| 2251 | rm -f conftest.$ac_objext |
---|
| 2252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2253 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2254 | ac_status=$? |
---|
| 2255 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2256 | rm -f conftest.er1 |
---|
| 2257 | cat conftest.err >&5 |
---|
| 2258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2259 | (exit $ac_status); } && |
---|
| 2260 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2261 | || test ! -s conftest.err' |
---|
| 2262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2263 | (eval $ac_try) 2>&5 |
---|
| 2264 | ac_status=$? |
---|
| 2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2266 | (exit $ac_status); }; } && |
---|
| 2267 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2269 | (eval $ac_try) 2>&5 |
---|
| 2270 | ac_status=$? |
---|
| 2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2272 | (exit $ac_status); }; }; then |
---|
| 2273 | ac_cv_prog_cxx_g=yes |
---|
| 2274 | else |
---|
| 2275 | echo "$as_me: failed program was:" >&5 |
---|
| 2276 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2277 | |
---|
| 2278 | ac_cv_prog_cxx_g=no |
---|
| 2279 | fi |
---|
| 2280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2281 | fi |
---|
| 2282 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2283 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2284 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2285 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2286 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2287 | if test "$GXX" = yes; then |
---|
| 2288 | CXXFLAGS="-g -O2" |
---|
| 2289 | else |
---|
| 2290 | CXXFLAGS="-g" |
---|
| 2291 | fi |
---|
| 2292 | else |
---|
| 2293 | if test "$GXX" = yes; then |
---|
| 2294 | CXXFLAGS="-O2" |
---|
| 2295 | else |
---|
| 2296 | CXXFLAGS= |
---|
| 2297 | fi |
---|
| 2298 | fi |
---|
| 2299 | for ac_declaration in \ |
---|
| 2300 | '' \ |
---|
| 2301 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2302 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2303 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2304 | 'extern "C" void exit (int);' \ |
---|
| 2305 | 'void exit (int);' |
---|
| 2306 | do |
---|
| 2307 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2308 | /* confdefs.h. */ |
---|
| 2309 | _ACEOF |
---|
| 2310 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2311 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2312 | /* end confdefs.h. */ |
---|
| 2313 | $ac_declaration |
---|
| 2314 | #include <stdlib.h> |
---|
| 2315 | int |
---|
| 2316 | main () |
---|
| 2317 | { |
---|
| 2318 | exit (42); |
---|
| 2319 | ; |
---|
| 2320 | return 0; |
---|
| 2321 | } |
---|
| 2322 | _ACEOF |
---|
| 2323 | rm -f conftest.$ac_objext |
---|
| 2324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2325 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2326 | ac_status=$? |
---|
| 2327 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2328 | rm -f conftest.er1 |
---|
| 2329 | cat conftest.err >&5 |
---|
| 2330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2331 | (exit $ac_status); } && |
---|
| 2332 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2333 | || test ! -s conftest.err' |
---|
| 2334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2335 | (eval $ac_try) 2>&5 |
---|
| 2336 | ac_status=$? |
---|
| 2337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2338 | (exit $ac_status); }; } && |
---|
| 2339 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2341 | (eval $ac_try) 2>&5 |
---|
| 2342 | ac_status=$? |
---|
| 2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2344 | (exit $ac_status); }; }; then |
---|
| 2345 | : |
---|
| 2346 | else |
---|
| 2347 | echo "$as_me: failed program was:" >&5 |
---|
| 2348 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2349 | |
---|
| 2350 | continue |
---|
| 2351 | fi |
---|
| 2352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2353 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2354 | /* confdefs.h. */ |
---|
| 2355 | _ACEOF |
---|
| 2356 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2357 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2358 | /* end confdefs.h. */ |
---|
| 2359 | $ac_declaration |
---|
| 2360 | int |
---|
| 2361 | main () |
---|
| 2362 | { |
---|
| 2363 | exit (42); |
---|
| 2364 | ; |
---|
| 2365 | return 0; |
---|
| 2366 | } |
---|
| 2367 | _ACEOF |
---|
| 2368 | rm -f conftest.$ac_objext |
---|
| 2369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2370 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2371 | ac_status=$? |
---|
| 2372 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2373 | rm -f conftest.er1 |
---|
| 2374 | cat conftest.err >&5 |
---|
| 2375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2376 | (exit $ac_status); } && |
---|
| 2377 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2378 | || test ! -s conftest.err' |
---|
| 2379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2380 | (eval $ac_try) 2>&5 |
---|
| 2381 | ac_status=$? |
---|
| 2382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2383 | (exit $ac_status); }; } && |
---|
| 2384 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2386 | (eval $ac_try) 2>&5 |
---|
| 2387 | ac_status=$? |
---|
| 2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2389 | (exit $ac_status); }; }; then |
---|
| 2390 | break |
---|
| 2391 | else |
---|
| 2392 | echo "$as_me: failed program was:" >&5 |
---|
| 2393 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2394 | |
---|
| 2395 | fi |
---|
| 2396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2397 | done |
---|
| 2398 | rm -f conftest* |
---|
| 2399 | if test -n "$ac_declaration"; then |
---|
| 2400 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2401 | echo $ac_declaration >>confdefs.h |
---|
| 2402 | echo '#endif' >>confdefs.h |
---|
| 2403 | fi |
---|
| 2404 | |
---|
| 2405 | ac_ext=c |
---|
| 2406 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2407 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2408 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2409 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2410 | DEPDIR="${am__leading_dot}deps" |
---|
| 2411 | |
---|
| 2412 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2413 | |
---|
| 2414 | |
---|
| 2415 | am_make=${MAKE-make} |
---|
| 2416 | cat > confinc << 'END' |
---|
| 2417 | am__doit: |
---|
| 2418 | @echo done |
---|
| 2419 | .PHONY: am__doit |
---|
| 2420 | END |
---|
| 2421 | # If we don't find an include directive, just comment out the code. |
---|
| 2422 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2423 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2424 | am__include="#" |
---|
| 2425 | am__quote= |
---|
| 2426 | _am_result=none |
---|
| 2427 | # First try GNU make style include. |
---|
| 2428 | echo "include confinc" > confmf |
---|
| 2429 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2430 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2431 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2432 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2433 | # case it prints its new name instead of `make'. |
---|
| 2434 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2435 | am__include=include |
---|
| 2436 | am__quote= |
---|
| 2437 | _am_result=GNU |
---|
| 2438 | fi |
---|
| 2439 | # Now try BSD make style include. |
---|
| 2440 | if test "$am__include" = "#"; then |
---|
| 2441 | echo '.include "confinc"' > confmf |
---|
| 2442 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2443 | am__include=.include |
---|
| 2444 | am__quote="\"" |
---|
| 2445 | _am_result=BSD |
---|
| 2446 | fi |
---|
| 2447 | fi |
---|
| 2448 | |
---|
| 2449 | |
---|
| 2450 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2451 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2452 | rm -f confinc confmf |
---|
| 2453 | |
---|
| 2454 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2455 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2456 | enableval="$enable_dependency_tracking" |
---|
| 2457 | |
---|
| 2458 | fi; |
---|
| 2459 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2460 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2461 | AMDEPBACKSLASH='\' |
---|
| 2462 | fi |
---|
| 2463 | |
---|
| 2464 | |
---|
| 2465 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2466 | AMDEP_TRUE= |
---|
| 2467 | AMDEP_FALSE='#' |
---|
| 2468 | else |
---|
| 2469 | AMDEP_TRUE='#' |
---|
| 2470 | AMDEP_FALSE= |
---|
| 2471 | fi |
---|
| 2472 | |
---|
| 2473 | |
---|
| 2474 | |
---|
| 2475 | |
---|
| 2476 | depcc="$CXX" am_compiler_list= |
---|
| 2477 | |
---|
| 2478 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2479 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2480 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2482 | else |
---|
| 2483 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2484 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2485 | # making bogus files that we don't know about and never remove. For |
---|
| 2486 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2487 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2488 | # in D'. |
---|
| 2489 | mkdir conftest.dir |
---|
| 2490 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2491 | # using a relative directory. |
---|
| 2492 | cp "$am_depcomp" conftest.dir |
---|
| 2493 | cd conftest.dir |
---|
| 2494 | # We will build objects and dependencies in a subdirectory because |
---|
| 2495 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2496 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2497 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2498 | # the current directory while Tru64 will put them in the object |
---|
| 2499 | # directory. |
---|
| 2500 | mkdir sub |
---|
| 2501 | |
---|
| 2502 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2503 | if test "$am_compiler_list" = ""; then |
---|
| 2504 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2505 | fi |
---|
| 2506 | for depmode in $am_compiler_list; do |
---|
| 2507 | # Setup a source with many dependencies, because some compilers |
---|
| 2508 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2509 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2510 | # |
---|
| 2511 | # We need to recreate these files for each test, as the compiler may |
---|
| 2512 | # overwrite some of them when testing with obscure command lines. |
---|
| 2513 | # This happens at least with the AIX C compiler. |
---|
| 2514 | : > sub/conftest.c |
---|
| 2515 | for i in 1 2 3 4 5 6; do |
---|
| 2516 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2819] | 2517 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 2518 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 2519 | touch sub/conftst$i.h |
---|
[1956] | 2520 | done |
---|
| 2521 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2522 | |
---|
| 2523 | case $depmode in |
---|
| 2524 | nosideeffect) |
---|
| 2525 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2526 | # only be used when explicitly requested |
---|
| 2527 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2528 | continue |
---|
| 2529 | else |
---|
| 2530 | break |
---|
| 2531 | fi |
---|
| 2532 | ;; |
---|
| 2533 | none) break ;; |
---|
| 2534 | esac |
---|
| 2535 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2536 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2537 | # handle `-M -o', and we need to detect this. |
---|
| 2538 | if depmode=$depmode \ |
---|
| 2539 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2540 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2541 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2542 | >/dev/null 2>conftest.err && |
---|
| 2543 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2544 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2545 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2546 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2819] | 2547 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 2548 | # that says an option was ignored or not supported. |
---|
| 2549 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 2550 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 2551 | # The diagnosis changed in icc 8.0: |
---|
| 2552 | # icc: Command line remark: option '-MP' not supported |
---|
| 2553 | if (grep 'ignoring option' conftest.err || |
---|
| 2554 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 2555 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2556 | break |
---|
| 2557 | fi |
---|
| 2558 | fi |
---|
| 2559 | done |
---|
| 2560 | |
---|
| 2561 | cd .. |
---|
| 2562 | rm -rf conftest.dir |
---|
| 2563 | else |
---|
| 2564 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2565 | fi |
---|
| 2566 | |
---|
| 2567 | fi |
---|
| 2568 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2569 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2570 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2571 | |
---|
| 2572 | |
---|
| 2573 | |
---|
| 2574 | if |
---|
| 2575 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2576 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2577 | am__fastdepCXX_TRUE= |
---|
| 2578 | am__fastdepCXX_FALSE='#' |
---|
| 2579 | else |
---|
| 2580 | am__fastdepCXX_TRUE='#' |
---|
| 2581 | am__fastdepCXX_FALSE= |
---|
| 2582 | fi |
---|
| 2583 | |
---|
| 2584 | |
---|
| 2585 | ac_ext=c |
---|
| 2586 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2590 | if test -n "$ac_tool_prefix"; then |
---|
| 2591 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2592 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2593 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2595 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2597 | else |
---|
| 2598 | if test -n "$CC"; then |
---|
| 2599 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2600 | else |
---|
| 2601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2602 | for as_dir in $PATH |
---|
| 2603 | do |
---|
| 2604 | IFS=$as_save_IFS |
---|
| 2605 | test -z "$as_dir" && as_dir=. |
---|
| 2606 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2607 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2608 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2610 | break 2 |
---|
| 2611 | fi |
---|
| 2612 | done |
---|
| 2613 | done |
---|
| 2614 | |
---|
| 2615 | fi |
---|
| 2616 | fi |
---|
| 2617 | CC=$ac_cv_prog_CC |
---|
| 2618 | if test -n "$CC"; then |
---|
| 2619 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2620 | echo "${ECHO_T}$CC" >&6 |
---|
| 2621 | else |
---|
| 2622 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2623 | echo "${ECHO_T}no" >&6 |
---|
| 2624 | fi |
---|
| 2625 | |
---|
| 2626 | fi |
---|
| 2627 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2628 | ac_ct_CC=$CC |
---|
| 2629 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2630 | set dummy gcc; ac_word=$2 |
---|
| 2631 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2633 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2635 | else |
---|
| 2636 | if test -n "$ac_ct_CC"; then |
---|
| 2637 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2638 | else |
---|
| 2639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2640 | for as_dir in $PATH |
---|
| 2641 | do |
---|
| 2642 | IFS=$as_save_IFS |
---|
| 2643 | test -z "$as_dir" && as_dir=. |
---|
| 2644 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2645 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2646 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2648 | break 2 |
---|
| 2649 | fi |
---|
| 2650 | done |
---|
| 2651 | done |
---|
| 2652 | |
---|
| 2653 | fi |
---|
| 2654 | fi |
---|
| 2655 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2656 | if test -n "$ac_ct_CC"; then |
---|
| 2657 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2658 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2659 | else |
---|
| 2660 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2661 | echo "${ECHO_T}no" >&6 |
---|
| 2662 | fi |
---|
| 2663 | |
---|
| 2664 | CC=$ac_ct_CC |
---|
| 2665 | else |
---|
| 2666 | CC="$ac_cv_prog_CC" |
---|
| 2667 | fi |
---|
| 2668 | |
---|
| 2669 | if test -z "$CC"; then |
---|
| 2670 | if test -n "$ac_tool_prefix"; then |
---|
| 2671 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2672 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2673 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2675 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2677 | else |
---|
| 2678 | if test -n "$CC"; then |
---|
| 2679 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2680 | else |
---|
| 2681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2682 | for as_dir in $PATH |
---|
| 2683 | do |
---|
| 2684 | IFS=$as_save_IFS |
---|
| 2685 | test -z "$as_dir" && as_dir=. |
---|
| 2686 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2687 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2688 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2690 | break 2 |
---|
| 2691 | fi |
---|
| 2692 | done |
---|
| 2693 | done |
---|
| 2694 | |
---|
| 2695 | fi |
---|
| 2696 | fi |
---|
| 2697 | CC=$ac_cv_prog_CC |
---|
| 2698 | if test -n "$CC"; then |
---|
| 2699 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2700 | echo "${ECHO_T}$CC" >&6 |
---|
| 2701 | else |
---|
| 2702 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2703 | echo "${ECHO_T}no" >&6 |
---|
| 2704 | fi |
---|
| 2705 | |
---|
| 2706 | fi |
---|
| 2707 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2708 | ac_ct_CC=$CC |
---|
| 2709 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2710 | set dummy cc; ac_word=$2 |
---|
| 2711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2713 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2715 | else |
---|
| 2716 | if test -n "$ac_ct_CC"; then |
---|
| 2717 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2718 | else |
---|
| 2719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2720 | for as_dir in $PATH |
---|
| 2721 | do |
---|
| 2722 | IFS=$as_save_IFS |
---|
| 2723 | test -z "$as_dir" && as_dir=. |
---|
| 2724 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2726 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2728 | break 2 |
---|
| 2729 | fi |
---|
| 2730 | done |
---|
| 2731 | done |
---|
| 2732 | |
---|
| 2733 | fi |
---|
| 2734 | fi |
---|
| 2735 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2736 | if test -n "$ac_ct_CC"; then |
---|
| 2737 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2738 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2739 | else |
---|
| 2740 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2741 | echo "${ECHO_T}no" >&6 |
---|
| 2742 | fi |
---|
| 2743 | |
---|
| 2744 | CC=$ac_ct_CC |
---|
| 2745 | else |
---|
| 2746 | CC="$ac_cv_prog_CC" |
---|
| 2747 | fi |
---|
| 2748 | |
---|
| 2749 | fi |
---|
| 2750 | if test -z "$CC"; then |
---|
| 2751 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2752 | set dummy cc; ac_word=$2 |
---|
| 2753 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2755 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2757 | else |
---|
| 2758 | if test -n "$CC"; then |
---|
| 2759 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2760 | else |
---|
| 2761 | ac_prog_rejected=no |
---|
| 2762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2763 | for as_dir in $PATH |
---|
| 2764 | do |
---|
| 2765 | IFS=$as_save_IFS |
---|
| 2766 | test -z "$as_dir" && as_dir=. |
---|
| 2767 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2768 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2769 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2770 | ac_prog_rejected=yes |
---|
| 2771 | continue |
---|
| 2772 | fi |
---|
| 2773 | ac_cv_prog_CC="cc" |
---|
| 2774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2775 | break 2 |
---|
| 2776 | fi |
---|
| 2777 | done |
---|
| 2778 | done |
---|
| 2779 | |
---|
| 2780 | if test $ac_prog_rejected = yes; then |
---|
| 2781 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2782 | set dummy $ac_cv_prog_CC |
---|
| 2783 | shift |
---|
| 2784 | if test $# != 0; then |
---|
| 2785 | # We chose a different compiler from the bogus one. |
---|
| 2786 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2787 | # first if we set CC to just the basename; use the full file name. |
---|
| 2788 | shift |
---|
| 2789 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2790 | fi |
---|
| 2791 | fi |
---|
| 2792 | fi |
---|
| 2793 | fi |
---|
| 2794 | CC=$ac_cv_prog_CC |
---|
| 2795 | if test -n "$CC"; then |
---|
| 2796 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2797 | echo "${ECHO_T}$CC" >&6 |
---|
| 2798 | else |
---|
| 2799 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2800 | echo "${ECHO_T}no" >&6 |
---|
| 2801 | fi |
---|
| 2802 | |
---|
| 2803 | fi |
---|
| 2804 | if test -z "$CC"; then |
---|
| 2805 | if test -n "$ac_tool_prefix"; then |
---|
| 2806 | for ac_prog in cl |
---|
| 2807 | do |
---|
| 2808 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2809 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2810 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2812 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2814 | else |
---|
| 2815 | if test -n "$CC"; then |
---|
| 2816 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2817 | else |
---|
| 2818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2819 | for as_dir in $PATH |
---|
| 2820 | do |
---|
| 2821 | IFS=$as_save_IFS |
---|
| 2822 | test -z "$as_dir" && as_dir=. |
---|
| 2823 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2824 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2825 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2827 | break 2 |
---|
| 2828 | fi |
---|
| 2829 | done |
---|
| 2830 | done |
---|
| 2831 | |
---|
| 2832 | fi |
---|
| 2833 | fi |
---|
| 2834 | CC=$ac_cv_prog_CC |
---|
| 2835 | if test -n "$CC"; then |
---|
| 2836 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2837 | echo "${ECHO_T}$CC" >&6 |
---|
| 2838 | else |
---|
| 2839 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2840 | echo "${ECHO_T}no" >&6 |
---|
| 2841 | fi |
---|
| 2842 | |
---|
| 2843 | test -n "$CC" && break |
---|
| 2844 | done |
---|
| 2845 | fi |
---|
| 2846 | if test -z "$CC"; then |
---|
| 2847 | ac_ct_CC=$CC |
---|
| 2848 | for ac_prog in cl |
---|
| 2849 | do |
---|
| 2850 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2851 | set dummy $ac_prog; ac_word=$2 |
---|
| 2852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2854 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2856 | else |
---|
| 2857 | if test -n "$ac_ct_CC"; then |
---|
| 2858 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2859 | else |
---|
| 2860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2861 | for as_dir in $PATH |
---|
| 2862 | do |
---|
| 2863 | IFS=$as_save_IFS |
---|
| 2864 | test -z "$as_dir" && as_dir=. |
---|
| 2865 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2867 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2869 | break 2 |
---|
| 2870 | fi |
---|
| 2871 | done |
---|
| 2872 | done |
---|
| 2873 | |
---|
| 2874 | fi |
---|
| 2875 | fi |
---|
| 2876 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2877 | if test -n "$ac_ct_CC"; then |
---|
| 2878 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2879 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2880 | else |
---|
| 2881 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2882 | echo "${ECHO_T}no" >&6 |
---|
| 2883 | fi |
---|
| 2884 | |
---|
| 2885 | test -n "$ac_ct_CC" && break |
---|
| 2886 | done |
---|
| 2887 | |
---|
| 2888 | CC=$ac_ct_CC |
---|
| 2889 | fi |
---|
| 2890 | |
---|
| 2891 | fi |
---|
| 2892 | |
---|
| 2893 | |
---|
| 2894 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2895 | See \`config.log' for more details." >&5 |
---|
| 2896 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2897 | See \`config.log' for more details." >&2;} |
---|
| 2898 | { (exit 1); exit 1; }; } |
---|
| 2899 | |
---|
| 2900 | # Provide some information about the compiler. |
---|
| 2901 | echo "$as_me:$LINENO:" \ |
---|
| 2902 | "checking for C compiler version" >&5 |
---|
| 2903 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2904 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2905 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2906 | ac_status=$? |
---|
| 2907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2908 | (exit $ac_status); } |
---|
| 2909 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2910 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2911 | ac_status=$? |
---|
| 2912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2913 | (exit $ac_status); } |
---|
| 2914 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2915 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2916 | ac_status=$? |
---|
| 2917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2918 | (exit $ac_status); } |
---|
| 2919 | |
---|
| 2920 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2921 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2922 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2924 | else |
---|
| 2925 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2926 | /* confdefs.h. */ |
---|
| 2927 | _ACEOF |
---|
| 2928 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2929 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2930 | /* end confdefs.h. */ |
---|
| 2931 | |
---|
| 2932 | int |
---|
| 2933 | main () |
---|
| 2934 | { |
---|
| 2935 | #ifndef __GNUC__ |
---|
| 2936 | choke me |
---|
| 2937 | #endif |
---|
| 2938 | |
---|
| 2939 | ; |
---|
| 2940 | return 0; |
---|
| 2941 | } |
---|
| 2942 | _ACEOF |
---|
| 2943 | rm -f conftest.$ac_objext |
---|
| 2944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2945 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2946 | ac_status=$? |
---|
| 2947 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2948 | rm -f conftest.er1 |
---|
| 2949 | cat conftest.err >&5 |
---|
| 2950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2951 | (exit $ac_status); } && |
---|
| 2952 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2953 | || test ! -s conftest.err' |
---|
| 2954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2955 | (eval $ac_try) 2>&5 |
---|
| 2956 | ac_status=$? |
---|
| 2957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2958 | (exit $ac_status); }; } && |
---|
| 2959 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2961 | (eval $ac_try) 2>&5 |
---|
| 2962 | ac_status=$? |
---|
| 2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2964 | (exit $ac_status); }; }; then |
---|
| 2965 | ac_compiler_gnu=yes |
---|
| 2966 | else |
---|
| 2967 | echo "$as_me: failed program was:" >&5 |
---|
| 2968 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2969 | |
---|
| 2970 | ac_compiler_gnu=no |
---|
| 2971 | fi |
---|
| 2972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2973 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2974 | |
---|
| 2975 | fi |
---|
| 2976 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2977 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2978 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2979 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2980 | ac_save_CFLAGS=$CFLAGS |
---|
| 2981 | CFLAGS="-g" |
---|
| 2982 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2983 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2984 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2986 | else |
---|
| 2987 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2988 | /* confdefs.h. */ |
---|
| 2989 | _ACEOF |
---|
| 2990 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2991 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2992 | /* end confdefs.h. */ |
---|
| 2993 | |
---|
| 2994 | int |
---|
| 2995 | main () |
---|
| 2996 | { |
---|
| 2997 | |
---|
| 2998 | ; |
---|
| 2999 | return 0; |
---|
| 3000 | } |
---|
| 3001 | _ACEOF |
---|
| 3002 | rm -f conftest.$ac_objext |
---|
| 3003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3004 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3005 | ac_status=$? |
---|
| 3006 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3007 | rm -f conftest.er1 |
---|
| 3008 | cat conftest.err >&5 |
---|
| 3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3010 | (exit $ac_status); } && |
---|
| 3011 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3012 | || test ! -s conftest.err' |
---|
| 3013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3014 | (eval $ac_try) 2>&5 |
---|
| 3015 | ac_status=$? |
---|
| 3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3017 | (exit $ac_status); }; } && |
---|
| 3018 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3020 | (eval $ac_try) 2>&5 |
---|
| 3021 | ac_status=$? |
---|
| 3022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3023 | (exit $ac_status); }; }; then |
---|
| 3024 | ac_cv_prog_cc_g=yes |
---|
| 3025 | else |
---|
| 3026 | echo "$as_me: failed program was:" >&5 |
---|
| 3027 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3028 | |
---|
| 3029 | ac_cv_prog_cc_g=no |
---|
| 3030 | fi |
---|
| 3031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3032 | fi |
---|
| 3033 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3034 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 3035 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3036 | CFLAGS=$ac_save_CFLAGS |
---|
| 3037 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3038 | if test "$GCC" = yes; then |
---|
| 3039 | CFLAGS="-g -O2" |
---|
| 3040 | else |
---|
| 3041 | CFLAGS="-g" |
---|
| 3042 | fi |
---|
| 3043 | else |
---|
| 3044 | if test "$GCC" = yes; then |
---|
| 3045 | CFLAGS="-O2" |
---|
| 3046 | else |
---|
| 3047 | CFLAGS= |
---|
| 3048 | fi |
---|
| 3049 | fi |
---|
| 3050 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 3051 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 3052 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 3053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3054 | else |
---|
| 3055 | ac_cv_prog_cc_stdc=no |
---|
| 3056 | ac_save_CC=$CC |
---|
| 3057 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3058 | /* confdefs.h. */ |
---|
| 3059 | _ACEOF |
---|
| 3060 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3061 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3062 | /* end confdefs.h. */ |
---|
| 3063 | #include <stdarg.h> |
---|
| 3064 | #include <stdio.h> |
---|
| 3065 | #include <sys/types.h> |
---|
| 3066 | #include <sys/stat.h> |
---|
| 3067 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3068 | struct buf { int x; }; |
---|
| 3069 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3070 | static char *e (p, i) |
---|
| 3071 | char **p; |
---|
| 3072 | int i; |
---|
| 3073 | { |
---|
| 3074 | return p[i]; |
---|
| 3075 | } |
---|
| 3076 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3077 | { |
---|
| 3078 | char *s; |
---|
| 3079 | va_list v; |
---|
| 3080 | va_start (v,p); |
---|
| 3081 | s = g (p, va_arg (v,int)); |
---|
| 3082 | va_end (v); |
---|
| 3083 | return s; |
---|
| 3084 | } |
---|
| 3085 | |
---|
| 3086 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3087 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3088 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3089 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 3090 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3091 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3092 | that's true only with -std1. */ |
---|
| 3093 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3094 | |
---|
| 3095 | int test (int i, double x); |
---|
| 3096 | struct s1 {int (*f) (int a);}; |
---|
| 3097 | struct s2 {int (*f) (double a);}; |
---|
| 3098 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3099 | int argc; |
---|
| 3100 | char **argv; |
---|
| 3101 | int |
---|
| 3102 | main () |
---|
| 3103 | { |
---|
| 3104 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3105 | ; |
---|
| 3106 | return 0; |
---|
| 3107 | } |
---|
| 3108 | _ACEOF |
---|
| 3109 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3110 | # breaks some systems' header files. |
---|
| 3111 | # AIX -qlanglvl=ansi |
---|
| 3112 | # Ultrix and OSF/1 -std1 |
---|
| 3113 | # HP-UX 10.20 and later -Ae |
---|
| 3114 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3115 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3116 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3117 | do |
---|
| 3118 | CC="$ac_save_CC $ac_arg" |
---|
| 3119 | rm -f conftest.$ac_objext |
---|
| 3120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3121 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3122 | ac_status=$? |
---|
| 3123 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3124 | rm -f conftest.er1 |
---|
| 3125 | cat conftest.err >&5 |
---|
| 3126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3127 | (exit $ac_status); } && |
---|
| 3128 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3129 | || test ! -s conftest.err' |
---|
| 3130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3131 | (eval $ac_try) 2>&5 |
---|
| 3132 | ac_status=$? |
---|
| 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3134 | (exit $ac_status); }; } && |
---|
| 3135 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3137 | (eval $ac_try) 2>&5 |
---|
| 3138 | ac_status=$? |
---|
| 3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3140 | (exit $ac_status); }; }; then |
---|
| 3141 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3142 | break |
---|
| 3143 | else |
---|
| 3144 | echo "$as_me: failed program was:" >&5 |
---|
| 3145 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3146 | |
---|
| 3147 | fi |
---|
| 3148 | rm -f conftest.err conftest.$ac_objext |
---|
| 3149 | done |
---|
| 3150 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3151 | CC=$ac_save_CC |
---|
| 3152 | |
---|
| 3153 | fi |
---|
| 3154 | |
---|
| 3155 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3156 | x|xno) |
---|
| 3157 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3158 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3159 | *) |
---|
| 3160 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3161 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3162 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3163 | esac |
---|
| 3164 | |
---|
| 3165 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3166 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3167 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3168 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3169 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3170 | #ifndef __cplusplus |
---|
| 3171 | choke me |
---|
| 3172 | #endif |
---|
| 3173 | _ACEOF |
---|
| 3174 | rm -f conftest.$ac_objext |
---|
| 3175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3176 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3177 | ac_status=$? |
---|
| 3178 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3179 | rm -f conftest.er1 |
---|
| 3180 | cat conftest.err >&5 |
---|
| 3181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3182 | (exit $ac_status); } && |
---|
| 3183 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3184 | || test ! -s conftest.err' |
---|
| 3185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3186 | (eval $ac_try) 2>&5 |
---|
| 3187 | ac_status=$? |
---|
| 3188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3189 | (exit $ac_status); }; } && |
---|
| 3190 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3192 | (eval $ac_try) 2>&5 |
---|
| 3193 | ac_status=$? |
---|
| 3194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3195 | (exit $ac_status); }; }; then |
---|
| 3196 | for ac_declaration in \ |
---|
| 3197 | '' \ |
---|
| 3198 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3199 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3200 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3201 | 'extern "C" void exit (int);' \ |
---|
| 3202 | 'void exit (int);' |
---|
| 3203 | do |
---|
| 3204 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3205 | /* confdefs.h. */ |
---|
| 3206 | _ACEOF |
---|
| 3207 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3208 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3209 | /* end confdefs.h. */ |
---|
| 3210 | $ac_declaration |
---|
| 3211 | #include <stdlib.h> |
---|
| 3212 | int |
---|
| 3213 | main () |
---|
| 3214 | { |
---|
| 3215 | exit (42); |
---|
| 3216 | ; |
---|
| 3217 | return 0; |
---|
| 3218 | } |
---|
| 3219 | _ACEOF |
---|
| 3220 | rm -f conftest.$ac_objext |
---|
| 3221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3222 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3223 | ac_status=$? |
---|
| 3224 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3225 | rm -f conftest.er1 |
---|
| 3226 | cat conftest.err >&5 |
---|
| 3227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3228 | (exit $ac_status); } && |
---|
| 3229 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3230 | || test ! -s conftest.err' |
---|
| 3231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3232 | (eval $ac_try) 2>&5 |
---|
| 3233 | ac_status=$? |
---|
| 3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3235 | (exit $ac_status); }; } && |
---|
| 3236 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3238 | (eval $ac_try) 2>&5 |
---|
| 3239 | ac_status=$? |
---|
| 3240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3241 | (exit $ac_status); }; }; then |
---|
| 3242 | : |
---|
| 3243 | else |
---|
| 3244 | echo "$as_me: failed program was:" >&5 |
---|
| 3245 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3246 | |
---|
| 3247 | continue |
---|
| 3248 | fi |
---|
| 3249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3250 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3251 | /* confdefs.h. */ |
---|
| 3252 | _ACEOF |
---|
| 3253 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3254 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3255 | /* end confdefs.h. */ |
---|
| 3256 | $ac_declaration |
---|
| 3257 | int |
---|
| 3258 | main () |
---|
| 3259 | { |
---|
| 3260 | exit (42); |
---|
| 3261 | ; |
---|
| 3262 | return 0; |
---|
| 3263 | } |
---|
| 3264 | _ACEOF |
---|
| 3265 | rm -f conftest.$ac_objext |
---|
| 3266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3267 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3268 | ac_status=$? |
---|
| 3269 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3270 | rm -f conftest.er1 |
---|
| 3271 | cat conftest.err >&5 |
---|
| 3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3273 | (exit $ac_status); } && |
---|
| 3274 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3275 | || test ! -s conftest.err' |
---|
| 3276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3277 | (eval $ac_try) 2>&5 |
---|
| 3278 | ac_status=$? |
---|
| 3279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3280 | (exit $ac_status); }; } && |
---|
| 3281 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3283 | (eval $ac_try) 2>&5 |
---|
| 3284 | ac_status=$? |
---|
| 3285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3286 | (exit $ac_status); }; }; then |
---|
| 3287 | break |
---|
| 3288 | else |
---|
| 3289 | echo "$as_me: failed program was:" >&5 |
---|
| 3290 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3291 | |
---|
| 3292 | fi |
---|
| 3293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3294 | done |
---|
| 3295 | rm -f conftest* |
---|
| 3296 | if test -n "$ac_declaration"; then |
---|
| 3297 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3298 | echo $ac_declaration >>confdefs.h |
---|
| 3299 | echo '#endif' >>confdefs.h |
---|
| 3300 | fi |
---|
| 3301 | |
---|
| 3302 | else |
---|
| 3303 | echo "$as_me: failed program was:" >&5 |
---|
| 3304 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3305 | |
---|
| 3306 | fi |
---|
| 3307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3308 | ac_ext=c |
---|
| 3309 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3313 | |
---|
| 3314 | depcc="$CC" am_compiler_list= |
---|
| 3315 | |
---|
| 3316 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3317 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3318 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3320 | else |
---|
| 3321 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3322 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3323 | # making bogus files that we don't know about and never remove. For |
---|
| 3324 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3325 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3326 | # in D'. |
---|
| 3327 | mkdir conftest.dir |
---|
| 3328 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3329 | # using a relative directory. |
---|
| 3330 | cp "$am_depcomp" conftest.dir |
---|
| 3331 | cd conftest.dir |
---|
| 3332 | # We will build objects and dependencies in a subdirectory because |
---|
| 3333 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3334 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3335 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3336 | # the current directory while Tru64 will put them in the object |
---|
| 3337 | # directory. |
---|
| 3338 | mkdir sub |
---|
| 3339 | |
---|
| 3340 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3341 | if test "$am_compiler_list" = ""; then |
---|
| 3342 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3343 | fi |
---|
| 3344 | for depmode in $am_compiler_list; do |
---|
| 3345 | # Setup a source with many dependencies, because some compilers |
---|
| 3346 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3347 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3348 | # |
---|
| 3349 | # We need to recreate these files for each test, as the compiler may |
---|
| 3350 | # overwrite some of them when testing with obscure command lines. |
---|
| 3351 | # This happens at least with the AIX C compiler. |
---|
| 3352 | : > sub/conftest.c |
---|
| 3353 | for i in 1 2 3 4 5 6; do |
---|
| 3354 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2819] | 3355 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 3356 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 3357 | touch sub/conftst$i.h |
---|
[1956] | 3358 | done |
---|
| 3359 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3360 | |
---|
| 3361 | case $depmode in |
---|
| 3362 | nosideeffect) |
---|
| 3363 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3364 | # only be used when explicitly requested |
---|
| 3365 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3366 | continue |
---|
| 3367 | else |
---|
| 3368 | break |
---|
| 3369 | fi |
---|
| 3370 | ;; |
---|
| 3371 | none) break ;; |
---|
| 3372 | esac |
---|
| 3373 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3374 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3375 | # handle `-M -o', and we need to detect this. |
---|
| 3376 | if depmode=$depmode \ |
---|
| 3377 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3378 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3379 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3380 | >/dev/null 2>conftest.err && |
---|
| 3381 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3382 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3383 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3384 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2819] | 3385 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 3386 | # that says an option was ignored or not supported. |
---|
| 3387 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 3388 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 3389 | # The diagnosis changed in icc 8.0: |
---|
| 3390 | # icc: Command line remark: option '-MP' not supported |
---|
| 3391 | if (grep 'ignoring option' conftest.err || |
---|
| 3392 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 3393 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3394 | break |
---|
| 3395 | fi |
---|
| 3396 | fi |
---|
| 3397 | done |
---|
| 3398 | |
---|
| 3399 | cd .. |
---|
| 3400 | rm -rf conftest.dir |
---|
| 3401 | else |
---|
| 3402 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3403 | fi |
---|
| 3404 | |
---|
| 3405 | fi |
---|
| 3406 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3407 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3408 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3409 | |
---|
| 3410 | |
---|
| 3411 | |
---|
| 3412 | if |
---|
| 3413 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3414 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3415 | am__fastdepCC_TRUE= |
---|
| 3416 | am__fastdepCC_FALSE='#' |
---|
| 3417 | else |
---|
| 3418 | am__fastdepCC_TRUE='#' |
---|
| 3419 | am__fastdepCC_FALSE= |
---|
| 3420 | fi |
---|
| 3421 | |
---|
| 3422 | |
---|
| 3423 | |
---|
[1971] | 3424 | ac_ext=c |
---|
| 3425 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3426 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3427 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3429 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3430 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3431 | # On Suns, sometimes $CPP names a directory. |
---|
| 3432 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3433 | CPP= |
---|
| 3434 | fi |
---|
| 3435 | if test -z "$CPP"; then |
---|
| 3436 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3438 | else |
---|
[1971] | 3439 | # Double quotes because CPP needs to be expanded |
---|
| 3440 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3441 | do |
---|
| 3442 | ac_preproc_ok=false |
---|
| 3443 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3444 | do |
---|
| 3445 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3446 | # with a fresh cross-compiler works. |
---|
| 3447 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3448 | # <limits.h> exists even on freestanding compilers. |
---|
| 3449 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3450 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3451 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3452 | /* confdefs.h. */ |
---|
| 3453 | _ACEOF |
---|
| 3454 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3455 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3456 | /* end confdefs.h. */ |
---|
| 3457 | #ifdef __STDC__ |
---|
| 3458 | # include <limits.h> |
---|
| 3459 | #else |
---|
| 3460 | # include <assert.h> |
---|
| 3461 | #endif |
---|
| 3462 | Syntax error |
---|
| 3463 | _ACEOF |
---|
| 3464 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3465 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3466 | ac_status=$? |
---|
| 3467 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3468 | rm -f conftest.er1 |
---|
| 3469 | cat conftest.err >&5 |
---|
| 3470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3471 | (exit $ac_status); } >/dev/null; then |
---|
| 3472 | if test -s conftest.err; then |
---|
| 3473 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3474 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3475 | else |
---|
| 3476 | ac_cpp_err= |
---|
| 3477 | fi |
---|
| 3478 | else |
---|
| 3479 | ac_cpp_err=yes |
---|
| 3480 | fi |
---|
| 3481 | if test -z "$ac_cpp_err"; then |
---|
| 3482 | : |
---|
| 3483 | else |
---|
| 3484 | echo "$as_me: failed program was:" >&5 |
---|
| 3485 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3486 | |
---|
| 3487 | # Broken: fails on valid input. |
---|
| 3488 | continue |
---|
| 3489 | fi |
---|
| 3490 | rm -f conftest.err conftest.$ac_ext |
---|
| 3491 | |
---|
| 3492 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3493 | # can be detected and how. |
---|
| 3494 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3495 | /* confdefs.h. */ |
---|
| 3496 | _ACEOF |
---|
| 3497 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3498 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3499 | /* end confdefs.h. */ |
---|
| 3500 | #include <ac_nonexistent.h> |
---|
| 3501 | _ACEOF |
---|
| 3502 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3503 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3504 | ac_status=$? |
---|
| 3505 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3506 | rm -f conftest.er1 |
---|
| 3507 | cat conftest.err >&5 |
---|
| 3508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3509 | (exit $ac_status); } >/dev/null; then |
---|
| 3510 | if test -s conftest.err; then |
---|
| 3511 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3512 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3513 | else |
---|
| 3514 | ac_cpp_err= |
---|
| 3515 | fi |
---|
| 3516 | else |
---|
| 3517 | ac_cpp_err=yes |
---|
| 3518 | fi |
---|
| 3519 | if test -z "$ac_cpp_err"; then |
---|
| 3520 | # Broken: success on invalid input. |
---|
| 3521 | continue |
---|
| 3522 | else |
---|
| 3523 | echo "$as_me: failed program was:" >&5 |
---|
| 3524 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3525 | |
---|
| 3526 | # Passes both tests. |
---|
| 3527 | ac_preproc_ok=: |
---|
| 3528 | break |
---|
| 3529 | fi |
---|
| 3530 | rm -f conftest.err conftest.$ac_ext |
---|
| 3531 | |
---|
| 3532 | done |
---|
| 3533 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3534 | rm -f conftest.err conftest.$ac_ext |
---|
| 3535 | if $ac_preproc_ok; then |
---|
| 3536 | break |
---|
| 3537 | fi |
---|
| 3538 | |
---|
| 3539 | done |
---|
| 3540 | ac_cv_prog_CPP=$CPP |
---|
| 3541 | |
---|
| 3542 | fi |
---|
| 3543 | CPP=$ac_cv_prog_CPP |
---|
| 3544 | else |
---|
| 3545 | ac_cv_prog_CPP=$CPP |
---|
| 3546 | fi |
---|
| 3547 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3548 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3549 | ac_preproc_ok=false |
---|
| 3550 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3551 | do |
---|
| 3552 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3553 | # with a fresh cross-compiler works. |
---|
| 3554 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3555 | # <limits.h> exists even on freestanding compilers. |
---|
| 3556 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3557 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3558 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3559 | /* confdefs.h. */ |
---|
| 3560 | _ACEOF |
---|
| 3561 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3562 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3563 | /* end confdefs.h. */ |
---|
| 3564 | #ifdef __STDC__ |
---|
| 3565 | # include <limits.h> |
---|
| 3566 | #else |
---|
| 3567 | # include <assert.h> |
---|
| 3568 | #endif |
---|
| 3569 | Syntax error |
---|
| 3570 | _ACEOF |
---|
| 3571 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3572 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3573 | ac_status=$? |
---|
| 3574 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3575 | rm -f conftest.er1 |
---|
| 3576 | cat conftest.err >&5 |
---|
| 3577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3578 | (exit $ac_status); } >/dev/null; then |
---|
| 3579 | if test -s conftest.err; then |
---|
| 3580 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3581 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3582 | else |
---|
| 3583 | ac_cpp_err= |
---|
| 3584 | fi |
---|
| 3585 | else |
---|
| 3586 | ac_cpp_err=yes |
---|
| 3587 | fi |
---|
| 3588 | if test -z "$ac_cpp_err"; then |
---|
| 3589 | : |
---|
| 3590 | else |
---|
| 3591 | echo "$as_me: failed program was:" >&5 |
---|
| 3592 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3593 | |
---|
| 3594 | # Broken: fails on valid input. |
---|
| 3595 | continue |
---|
| 3596 | fi |
---|
| 3597 | rm -f conftest.err conftest.$ac_ext |
---|
| 3598 | |
---|
| 3599 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3600 | # can be detected and how. |
---|
| 3601 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3602 | /* confdefs.h. */ |
---|
| 3603 | _ACEOF |
---|
| 3604 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3605 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3606 | /* end confdefs.h. */ |
---|
| 3607 | #include <ac_nonexistent.h> |
---|
| 3608 | _ACEOF |
---|
| 3609 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3610 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3611 | ac_status=$? |
---|
| 3612 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3613 | rm -f conftest.er1 |
---|
| 3614 | cat conftest.err >&5 |
---|
| 3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3616 | (exit $ac_status); } >/dev/null; then |
---|
| 3617 | if test -s conftest.err; then |
---|
| 3618 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3619 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3620 | else |
---|
| 3621 | ac_cpp_err= |
---|
| 3622 | fi |
---|
| 3623 | else |
---|
| 3624 | ac_cpp_err=yes |
---|
| 3625 | fi |
---|
| 3626 | if test -z "$ac_cpp_err"; then |
---|
| 3627 | # Broken: success on invalid input. |
---|
| 3628 | continue |
---|
| 3629 | else |
---|
| 3630 | echo "$as_me: failed program was:" >&5 |
---|
| 3631 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3632 | |
---|
| 3633 | # Passes both tests. |
---|
| 3634 | ac_preproc_ok=: |
---|
| 3635 | break |
---|
| 3636 | fi |
---|
| 3637 | rm -f conftest.err conftest.$ac_ext |
---|
| 3638 | |
---|
| 3639 | done |
---|
| 3640 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3641 | rm -f conftest.err conftest.$ac_ext |
---|
| 3642 | if $ac_preproc_ok; then |
---|
| 3643 | : |
---|
| 3644 | else |
---|
| 3645 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3646 | See \`config.log' for more details." >&5 |
---|
| 3647 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3648 | See \`config.log' for more details." >&2;} |
---|
| 3649 | { (exit 1); exit 1; }; } |
---|
| 3650 | fi |
---|
| 3651 | |
---|
| 3652 | ac_ext=c |
---|
| 3653 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3657 | |
---|
| 3658 | |
---|
| 3659 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3660 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3661 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3663 | else |
---|
| 3664 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3665 | then ac_cv_prog_egrep='grep -E' |
---|
| 3666 | else ac_cv_prog_egrep='egrep' |
---|
| 3667 | fi |
---|
| 3668 | fi |
---|
| 3669 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3670 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3671 | EGREP=$ac_cv_prog_egrep |
---|
| 3672 | |
---|
| 3673 | |
---|
| 3674 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3675 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3676 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3678 | else |
---|
| 3679 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3680 | /* confdefs.h. */ |
---|
| 3681 | _ACEOF |
---|
| 3682 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3683 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3684 | /* end confdefs.h. */ |
---|
| 3685 | #include <stdlib.h> |
---|
| 3686 | #include <stdarg.h> |
---|
| 3687 | #include <string.h> |
---|
| 3688 | #include <float.h> |
---|
| 3689 | |
---|
| 3690 | int |
---|
| 3691 | main () |
---|
| 3692 | { |
---|
| 3693 | |
---|
| 3694 | ; |
---|
| 3695 | return 0; |
---|
| 3696 | } |
---|
| 3697 | _ACEOF |
---|
| 3698 | rm -f conftest.$ac_objext |
---|
| 3699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3700 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3701 | ac_status=$? |
---|
| 3702 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3703 | rm -f conftest.er1 |
---|
| 3704 | cat conftest.err >&5 |
---|
| 3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3706 | (exit $ac_status); } && |
---|
| 3707 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3708 | || test ! -s conftest.err' |
---|
| 3709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3710 | (eval $ac_try) 2>&5 |
---|
| 3711 | ac_status=$? |
---|
| 3712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3713 | (exit $ac_status); }; } && |
---|
| 3714 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3716 | (eval $ac_try) 2>&5 |
---|
| 3717 | ac_status=$? |
---|
| 3718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3719 | (exit $ac_status); }; }; then |
---|
| 3720 | ac_cv_header_stdc=yes |
---|
| 3721 | else |
---|
| 3722 | echo "$as_me: failed program was:" >&5 |
---|
| 3723 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3724 | |
---|
| 3725 | ac_cv_header_stdc=no |
---|
| 3726 | fi |
---|
| 3727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3728 | |
---|
| 3729 | if test $ac_cv_header_stdc = yes; then |
---|
| 3730 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3731 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3732 | /* confdefs.h. */ |
---|
| 3733 | _ACEOF |
---|
| 3734 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3735 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3736 | /* end confdefs.h. */ |
---|
| 3737 | #include <string.h> |
---|
| 3738 | |
---|
| 3739 | _ACEOF |
---|
| 3740 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3741 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3742 | : |
---|
| 3743 | else |
---|
| 3744 | ac_cv_header_stdc=no |
---|
| 3745 | fi |
---|
| 3746 | rm -f conftest* |
---|
| 3747 | |
---|
| 3748 | fi |
---|
| 3749 | |
---|
| 3750 | if test $ac_cv_header_stdc = yes; then |
---|
| 3751 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3752 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3753 | /* confdefs.h. */ |
---|
| 3754 | _ACEOF |
---|
| 3755 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3756 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3757 | /* end confdefs.h. */ |
---|
| 3758 | #include <stdlib.h> |
---|
| 3759 | |
---|
| 3760 | _ACEOF |
---|
| 3761 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3762 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3763 | : |
---|
| 3764 | else |
---|
| 3765 | ac_cv_header_stdc=no |
---|
| 3766 | fi |
---|
| 3767 | rm -f conftest* |
---|
| 3768 | |
---|
| 3769 | fi |
---|
| 3770 | |
---|
| 3771 | if test $ac_cv_header_stdc = yes; then |
---|
| 3772 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3773 | if test "$cross_compiling" = yes; then |
---|
| 3774 | : |
---|
| 3775 | else |
---|
| 3776 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3777 | /* confdefs.h. */ |
---|
| 3778 | _ACEOF |
---|
| 3779 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3780 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3781 | /* end confdefs.h. */ |
---|
| 3782 | #include <ctype.h> |
---|
| 3783 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3784 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3785 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3786 | #else |
---|
| 3787 | # define ISLOWER(c) \ |
---|
| 3788 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3789 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3790 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3791 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3792 | #endif |
---|
| 3793 | |
---|
| 3794 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3795 | int |
---|
| 3796 | main () |
---|
| 3797 | { |
---|
| 3798 | int i; |
---|
| 3799 | for (i = 0; i < 256; i++) |
---|
| 3800 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3801 | || toupper (i) != TOUPPER (i)) |
---|
| 3802 | exit(2); |
---|
| 3803 | exit (0); |
---|
| 3804 | } |
---|
| 3805 | _ACEOF |
---|
| 3806 | rm -f conftest$ac_exeext |
---|
| 3807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3808 | (eval $ac_link) 2>&5 |
---|
| 3809 | ac_status=$? |
---|
| 3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3811 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3813 | (eval $ac_try) 2>&5 |
---|
| 3814 | ac_status=$? |
---|
| 3815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3816 | (exit $ac_status); }; }; then |
---|
| 3817 | : |
---|
| 3818 | else |
---|
| 3819 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3820 | echo "$as_me: failed program was:" >&5 |
---|
| 3821 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3822 | |
---|
| 3823 | ( exit $ac_status ) |
---|
| 3824 | ac_cv_header_stdc=no |
---|
| 3825 | fi |
---|
| 3826 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3827 | fi |
---|
| 3828 | fi |
---|
| 3829 | fi |
---|
| 3830 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3831 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3832 | if test $ac_cv_header_stdc = yes; then |
---|
| 3833 | |
---|
| 3834 | cat >>confdefs.h <<\_ACEOF |
---|
| 3835 | #define STDC_HEADERS 1 |
---|
| 3836 | _ACEOF |
---|
| 3837 | |
---|
| 3838 | fi |
---|
| 3839 | |
---|
| 3840 | |
---|
[3238] | 3841 | ### CHECKING OPTIONAT ARGUMENTS |
---|
| 3842 | ## DEBUG-statement |
---|
| 3843 | DEBUG=no |
---|
| 3844 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
| 3845 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
| 3846 | # Check whether --enable-debug or --disable-debug was given. |
---|
| 3847 | if test "${enable_debug+set}" = set; then |
---|
| 3848 | enableval="$enable_debug" |
---|
| 3849 | DEBUG=$enableval |
---|
| 3850 | fi; |
---|
| 3851 | |
---|
| 3852 | if test "$DEBUG" = "no"; then |
---|
| 3853 | echo "no" |
---|
| 3854 | echo " -> Setting debuglevel to 1. Like this you can still see errors." |
---|
| 3855 | DEBUG=1 |
---|
| 3856 | elif test "$DEBUG" = yes; then |
---|
| 3857 | echo "yes" |
---|
| 3858 | echo " -> Setting debuglevel to 3. HARD DEBUG MODE!!." |
---|
| 3859 | DEBUG=3 |
---|
| 3860 | else |
---|
| 3861 | echo "yes set to $DEBUG" |
---|
| 3862 | fi |
---|
| 3863 | |
---|
| 3864 | cat >>confdefs.h <<_ACEOF |
---|
| 3865 | #define DEBUG $DEBUG |
---|
| 3866 | _ACEOF |
---|
| 3867 | |
---|
| 3868 | |
---|
| 3869 | |
---|
| 3870 | |
---|
| 3871 | ## GTK-disabled |
---|
| 3872 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
| 3873 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
| 3874 | |
---|
| 3875 | # Check whether --with-gtk or --without-gtk was given. |
---|
| 3876 | if test "${with_gtk+set}" = set; then |
---|
| 3877 | withval="$with_gtk" |
---|
| 3878 | def_gtk=no |
---|
| 3879 | else |
---|
| 3880 | def_gtk=yes |
---|
| 3881 | fi; |
---|
| 3882 | if test "$def_gtk" = yes; then |
---|
| 3883 | echo "yes" |
---|
| 3884 | fi |
---|
| 3885 | if test "$def_gtk" = no; then |
---|
| 3886 | echo "no" |
---|
| 3887 | fi |
---|
| 3888 | ### SDL_image-disable |
---|
| 3889 | def_sdl_image=yes |
---|
| 3890 | echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5 |
---|
| 3891 | echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6 |
---|
| 3892 | |
---|
| 3893 | # Check whether --with-sdl_image or --without-sdl_image was given. |
---|
| 3894 | if test "${with_sdl_image+set}" = set; then |
---|
| 3895 | withval="$with_sdl_image" |
---|
| 3896 | def_sdl_image=no |
---|
| 3897 | fi; |
---|
| 3898 | if test "$def_sdl_image" = yes; then |
---|
| 3899 | echo "yes" |
---|
| 3900 | fi |
---|
| 3901 | if test "$def_sdl_image" = no; then |
---|
| 3902 | echo "no" |
---|
| 3903 | fi |
---|
| 3904 | |
---|
| 3905 | |
---|
[3399] | 3906 | ### SubProject-enable |
---|
| 3907 | def_sdl_image=yes |
---|
| 3908 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
| 3909 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
| 3910 | # Check whether --enable-sub-projects or --disable-sub-projects was given. |
---|
| 3911 | if test "${enable_sub_projects+set}" = set; then |
---|
| 3912 | enableval="$enable_sub_projects" |
---|
| 3913 | def_sub_projects=yes |
---|
| 3914 | fi; |
---|
| 3915 | if test "$def_sub_projects" = yes; then |
---|
| 3916 | echo "yes" |
---|
| 3917 | fi |
---|
| 3918 | if test "$def_sub_projects" = no; then |
---|
| 3919 | echo "no" |
---|
| 3920 | fi |
---|
| 3921 | |
---|
| 3922 | |
---|
| 3923 | if test x$def_sub_projects = xyes; then |
---|
| 3924 | SUB_PROJECTS_TRUE= |
---|
| 3925 | SUB_PROJECTS_FALSE='#' |
---|
| 3926 | else |
---|
| 3927 | SUB_PROJECTS_TRUE='#' |
---|
| 3928 | SUB_PROJECTS_FALSE= |
---|
| 3929 | fi |
---|
| 3930 | |
---|
| 3931 | |
---|
[3238] | 3932 | ## PROGRAMM CHECKING |
---|
| 3933 | # checking for Doxygen |
---|
| 3934 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
| 3935 | set dummy doxygen; ac_word=$2 |
---|
| 3936 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3937 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 3938 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
| 3939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3940 | else |
---|
| 3941 | case $DOXYGEN in |
---|
| 3942 | [\\/]* | ?:[\\/]*) |
---|
| 3943 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
| 3944 | ;; |
---|
| 3945 | *) |
---|
| 3946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3947 | for as_dir in $PATH |
---|
| 3948 | do |
---|
| 3949 | IFS=$as_save_IFS |
---|
| 3950 | test -z "$as_dir" && as_dir=. |
---|
| 3951 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3952 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3953 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
| 3954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3955 | break 2 |
---|
| 3956 | fi |
---|
| 3957 | done |
---|
| 3958 | done |
---|
| 3959 | |
---|
| 3960 | ;; |
---|
| 3961 | esac |
---|
| 3962 | fi |
---|
| 3963 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
| 3964 | |
---|
| 3965 | if test -n "$DOXYGEN"; then |
---|
| 3966 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
| 3967 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
| 3968 | else |
---|
| 3969 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3970 | echo "${ECHO_T}no" >&6 |
---|
| 3971 | fi |
---|
| 3972 | |
---|
| 3973 | |
---|
| 3974 | |
---|
| 3975 | if test $DOXYGEN; then |
---|
| 3976 | DOXYGEN_TRUE= |
---|
| 3977 | DOXYGEN_FALSE='#' |
---|
| 3978 | else |
---|
| 3979 | DOXYGEN_TRUE='#' |
---|
| 3980 | DOXYGEN_FALSE= |
---|
| 3981 | fi |
---|
| 3982 | |
---|
| 3983 | |
---|
[2925] | 3984 | ### CHECKING FOR SYSTEM ### |
---|
[1971] | 3985 | |
---|
[2925] | 3986 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 3987 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
[2980] | 3988 | ## checking for openGL-environment and other sys-specific parameters |
---|
| 3989 | case "$target" in |
---|
[2925] | 3990 | ### WINDOWS ### |
---|
[2980] | 3991 | *-*-mingw32*) |
---|
[2925] | 3992 | echo "mingw-WINDOWS detected" |
---|
[1971] | 3993 | |
---|
[2925] | 3994 | mingw="yes" |
---|
| 3995 | MSBITFIELDS="-mms-bitfields" |
---|
| 3996 | MWINDOWS="-mwindows" |
---|
[1971] | 3997 | |
---|
[2925] | 3998 | # checking gl header |
---|
| 3999 | #done before loop |
---|
[1971] | 4000 | |
---|
[2968] | 4001 | # checking gl header |
---|
[2925] | 4002 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
[1971] | 4003 | |
---|
| 4004 | |
---|
| 4005 | |
---|
| 4006 | |
---|
[2925] | 4007 | |
---|
| 4008 | |
---|
| 4009 | |
---|
| 4010 | |
---|
| 4011 | |
---|
[1971] | 4012 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 4013 | inttypes.h stdint.h unistd.h |
---|
| 4014 | do |
---|
| 4015 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4016 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4018 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4020 | else |
---|
| 4021 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4022 | /* confdefs.h. */ |
---|
| 4023 | _ACEOF |
---|
| 4024 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4025 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4026 | /* end confdefs.h. */ |
---|
| 4027 | $ac_includes_default |
---|
| 4028 | |
---|
| 4029 | #include <$ac_header> |
---|
| 4030 | _ACEOF |
---|
| 4031 | rm -f conftest.$ac_objext |
---|
| 4032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4033 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4034 | ac_status=$? |
---|
| 4035 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4036 | rm -f conftest.er1 |
---|
| 4037 | cat conftest.err >&5 |
---|
| 4038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4039 | (exit $ac_status); } && |
---|
| 4040 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4041 | || test ! -s conftest.err' |
---|
| 4042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4043 | (eval $ac_try) 2>&5 |
---|
| 4044 | ac_status=$? |
---|
| 4045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4046 | (exit $ac_status); }; } && |
---|
| 4047 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4049 | (eval $ac_try) 2>&5 |
---|
| 4050 | ac_status=$? |
---|
| 4051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4052 | (exit $ac_status); }; }; then |
---|
| 4053 | eval "$as_ac_Header=yes" |
---|
| 4054 | else |
---|
| 4055 | echo "$as_me: failed program was:" >&5 |
---|
| 4056 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4057 | |
---|
| 4058 | eval "$as_ac_Header=no" |
---|
| 4059 | fi |
---|
| 4060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4061 | fi |
---|
| 4062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4063 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4064 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4065 | cat >>confdefs.h <<_ACEOF |
---|
| 4066 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4067 | _ACEOF |
---|
| 4068 | |
---|
| 4069 | fi |
---|
| 4070 | |
---|
| 4071 | done |
---|
| 4072 | |
---|
| 4073 | |
---|
| 4074 | |
---|
[2879] | 4075 | for ac_header in GL/gl.h |
---|
| 4076 | do |
---|
| 4077 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4078 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4079 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4080 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4083 | fi |
---|
| 4084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4085 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4086 | else |
---|
| 4087 | # Is the header compilable? |
---|
| 4088 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4089 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4090 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4091 | /* confdefs.h. */ |
---|
| 4092 | _ACEOF |
---|
| 4093 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4094 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4095 | /* end confdefs.h. */ |
---|
| 4096 | $ac_includes_default |
---|
| 4097 | #include <$ac_header> |
---|
| 4098 | _ACEOF |
---|
| 4099 | rm -f conftest.$ac_objext |
---|
| 4100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4101 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4102 | ac_status=$? |
---|
| 4103 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4104 | rm -f conftest.er1 |
---|
| 4105 | cat conftest.err >&5 |
---|
| 4106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4107 | (exit $ac_status); } && |
---|
| 4108 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4109 | || test ! -s conftest.err' |
---|
| 4110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4111 | (eval $ac_try) 2>&5 |
---|
| 4112 | ac_status=$? |
---|
| 4113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4114 | (exit $ac_status); }; } && |
---|
| 4115 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4117 | (eval $ac_try) 2>&5 |
---|
| 4118 | ac_status=$? |
---|
| 4119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4120 | (exit $ac_status); }; }; then |
---|
| 4121 | ac_header_compiler=yes |
---|
| 4122 | else |
---|
| 4123 | echo "$as_me: failed program was:" >&5 |
---|
| 4124 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4125 | |
---|
| 4126 | ac_header_compiler=no |
---|
| 4127 | fi |
---|
| 4128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4129 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4130 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4131 | |
---|
| 4132 | # Is the header present? |
---|
| 4133 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4134 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4135 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4136 | /* confdefs.h. */ |
---|
| 4137 | _ACEOF |
---|
| 4138 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4139 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4140 | /* end confdefs.h. */ |
---|
| 4141 | #include <$ac_header> |
---|
| 4142 | _ACEOF |
---|
| 4143 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4144 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4145 | ac_status=$? |
---|
| 4146 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4147 | rm -f conftest.er1 |
---|
| 4148 | cat conftest.err >&5 |
---|
| 4149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4150 | (exit $ac_status); } >/dev/null; then |
---|
| 4151 | if test -s conftest.err; then |
---|
| 4152 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4153 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4154 | else |
---|
| 4155 | ac_cpp_err= |
---|
| 4156 | fi |
---|
| 4157 | else |
---|
| 4158 | ac_cpp_err=yes |
---|
| 4159 | fi |
---|
| 4160 | if test -z "$ac_cpp_err"; then |
---|
| 4161 | ac_header_preproc=yes |
---|
| 4162 | else |
---|
| 4163 | echo "$as_me: failed program was:" >&5 |
---|
| 4164 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4165 | |
---|
| 4166 | ac_header_preproc=no |
---|
| 4167 | fi |
---|
| 4168 | rm -f conftest.err conftest.$ac_ext |
---|
| 4169 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4170 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4171 | |
---|
| 4172 | # So? What about this header? |
---|
| 4173 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4174 | yes:no: ) |
---|
| 4175 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4176 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4177 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4178 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4179 | ac_header_preproc=yes |
---|
| 4180 | ;; |
---|
| 4181 | no:yes:* ) |
---|
| 4182 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4183 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4184 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4185 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4186 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4187 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4188 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4189 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4190 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4191 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4192 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4193 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4194 | ( |
---|
| 4195 | cat <<\_ASBOX |
---|
[3399] | 4196 | ## ---------------------------------------------- ## |
---|
| 4197 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4198 | ## ---------------------------------------------- ## |
---|
[2879] | 4199 | _ASBOX |
---|
| 4200 | ) | |
---|
| 4201 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4202 | ;; |
---|
| 4203 | esac |
---|
| 4204 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4205 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4206 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4208 | else |
---|
| 4209 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4210 | fi |
---|
| 4211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4212 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4213 | |
---|
| 4214 | fi |
---|
| 4215 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4216 | cat >>confdefs.h <<_ACEOF |
---|
| 4217 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4218 | _ACEOF |
---|
| 4219 | |
---|
| 4220 | else |
---|
| 4221 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4222 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4223 | { (exit 1); exit 1; }; } |
---|
| 4224 | fi |
---|
| 4225 | |
---|
| 4226 | done |
---|
| 4227 | |
---|
[2701] | 4228 | # checking for Windows openGl library |
---|
[1971] | 4229 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 4230 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 4231 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1959] | 4232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4233 | else |
---|
| 4234 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4235 | LIBS="-lopengl32 $LIBS" |
---|
| 4236 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4237 | /* confdefs.h. */ |
---|
[1956] | 4238 | _ACEOF |
---|
[1959] | 4239 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4240 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4241 | /* end confdefs.h. */ |
---|
[1956] | 4242 | |
---|
[1971] | 4243 | |
---|
[1959] | 4244 | int |
---|
| 4245 | main () |
---|
| 4246 | { |
---|
[1971] | 4247 | main (); |
---|
[1959] | 4248 | ; |
---|
| 4249 | return 0; |
---|
| 4250 | } |
---|
| 4251 | _ACEOF |
---|
| 4252 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4254 | (eval $ac_link) 2>conftest.er1 |
---|
| 4255 | ac_status=$? |
---|
| 4256 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4257 | rm -f conftest.er1 |
---|
| 4258 | cat conftest.err >&5 |
---|
| 4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4260 | (exit $ac_status); } && |
---|
| 4261 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4262 | || test ! -s conftest.err' |
---|
| 4263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4264 | (eval $ac_try) 2>&5 |
---|
| 4265 | ac_status=$? |
---|
| 4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4267 | (exit $ac_status); }; } && |
---|
| 4268 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4270 | (eval $ac_try) 2>&5 |
---|
| 4271 | ac_status=$? |
---|
| 4272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4273 | (exit $ac_status); }; }; then |
---|
[1971] | 4274 | ac_cv_lib_opengl32_main=yes |
---|
[1959] | 4275 | else |
---|
| 4276 | echo "$as_me: failed program was:" >&5 |
---|
| 4277 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4278 | |
---|
[1971] | 4279 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 4280 | fi |
---|
[1959] | 4281 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4282 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4283 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4284 | fi |
---|
[1971] | 4285 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4286 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4287 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4288 | FOUND_opengl32=yes |
---|
| 4289 | else |
---|
| 4290 | "gl/gl.h" |
---|
[1959] | 4291 | fi |
---|
[1956] | 4292 | |
---|
[1971] | 4293 | if test "$FOUND_opengl32" = "yes" ; then |
---|
[1959] | 4294 | LIBS="$LIBS -lopengl32" |
---|
[1971] | 4295 | else |
---|
[1959] | 4296 | echo "------------------" |
---|
| 4297 | echo "opengl not found." |
---|
| 4298 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4299 | echo "------------------" |
---|
| 4300 | exit -1 |
---|
| 4301 | fi |
---|
| 4302 | |
---|
[2701] | 4303 | # cheking for GLU-header |
---|
[1971] | 4304 | |
---|
| 4305 | for ac_header in GL/glu.h |
---|
| 4306 | do |
---|
| 4307 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4309 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4313 | fi |
---|
| 4314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4315 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4316 | else |
---|
| 4317 | # Is the header compilable? |
---|
| 4318 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4319 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4320 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4321 | /* confdefs.h. */ |
---|
| 4322 | _ACEOF |
---|
| 4323 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4324 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4325 | /* end confdefs.h. */ |
---|
| 4326 | $ac_includes_default |
---|
| 4327 | #include <$ac_header> |
---|
| 4328 | _ACEOF |
---|
| 4329 | rm -f conftest.$ac_objext |
---|
| 4330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4331 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4332 | ac_status=$? |
---|
| 4333 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4334 | rm -f conftest.er1 |
---|
| 4335 | cat conftest.err >&5 |
---|
| 4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4337 | (exit $ac_status); } && |
---|
| 4338 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4339 | || test ! -s conftest.err' |
---|
| 4340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4341 | (eval $ac_try) 2>&5 |
---|
| 4342 | ac_status=$? |
---|
| 4343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4344 | (exit $ac_status); }; } && |
---|
| 4345 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4347 | (eval $ac_try) 2>&5 |
---|
| 4348 | ac_status=$? |
---|
| 4349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4350 | (exit $ac_status); }; }; then |
---|
| 4351 | ac_header_compiler=yes |
---|
| 4352 | else |
---|
| 4353 | echo "$as_me: failed program was:" >&5 |
---|
| 4354 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4355 | |
---|
| 4356 | ac_header_compiler=no |
---|
| 4357 | fi |
---|
| 4358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4359 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4360 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4361 | |
---|
| 4362 | # Is the header present? |
---|
| 4363 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4364 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4365 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4366 | /* confdefs.h. */ |
---|
| 4367 | _ACEOF |
---|
| 4368 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4369 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4370 | /* end confdefs.h. */ |
---|
| 4371 | #include <$ac_header> |
---|
| 4372 | _ACEOF |
---|
| 4373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4375 | ac_status=$? |
---|
| 4376 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4377 | rm -f conftest.er1 |
---|
| 4378 | cat conftest.err >&5 |
---|
| 4379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4380 | (exit $ac_status); } >/dev/null; then |
---|
| 4381 | if test -s conftest.err; then |
---|
| 4382 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4383 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4384 | else |
---|
| 4385 | ac_cpp_err= |
---|
| 4386 | fi |
---|
| 4387 | else |
---|
| 4388 | ac_cpp_err=yes |
---|
| 4389 | fi |
---|
| 4390 | if test -z "$ac_cpp_err"; then |
---|
| 4391 | ac_header_preproc=yes |
---|
| 4392 | else |
---|
| 4393 | echo "$as_me: failed program was:" >&5 |
---|
| 4394 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4395 | |
---|
| 4396 | ac_header_preproc=no |
---|
| 4397 | fi |
---|
| 4398 | rm -f conftest.err conftest.$ac_ext |
---|
| 4399 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4400 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4401 | |
---|
| 4402 | # So? What about this header? |
---|
| 4403 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4404 | yes:no: ) |
---|
| 4405 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4406 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4408 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4409 | ac_header_preproc=yes |
---|
| 4410 | ;; |
---|
| 4411 | no:yes:* ) |
---|
| 4412 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4413 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4414 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4415 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4416 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4417 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4418 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4419 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4420 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4421 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4422 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4423 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4424 | ( |
---|
| 4425 | cat <<\_ASBOX |
---|
[3399] | 4426 | ## ---------------------------------------------- ## |
---|
| 4427 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4428 | ## ---------------------------------------------- ## |
---|
[1971] | 4429 | _ASBOX |
---|
| 4430 | ) | |
---|
| 4431 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4432 | ;; |
---|
| 4433 | esac |
---|
| 4434 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4438 | else |
---|
| 4439 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4440 | fi |
---|
| 4441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4442 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4443 | |
---|
| 4444 | fi |
---|
| 4445 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4446 | cat >>confdefs.h <<_ACEOF |
---|
| 4447 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4448 | _ACEOF |
---|
| 4449 | |
---|
| 4450 | else |
---|
| 4451 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4452 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4453 | { (exit 1); exit 1; }; } |
---|
| 4454 | fi |
---|
| 4455 | |
---|
| 4456 | done |
---|
| 4457 | |
---|
| 4458 | |
---|
[2701] | 4459 | # checking for libGLU |
---|
| 4460 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4461 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4462 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
[1956] | 4463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4464 | else |
---|
| 4465 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4466 | LIBS="-lglu32 $LIBS" |
---|
[1956] | 4467 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4468 | /* confdefs.h. */ |
---|
| 4469 | _ACEOF |
---|
| 4470 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4471 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4472 | /* end confdefs.h. */ |
---|
| 4473 | |
---|
[2701] | 4474 | |
---|
[1956] | 4475 | int |
---|
| 4476 | main () |
---|
| 4477 | { |
---|
[2701] | 4478 | main (); |
---|
[1956] | 4479 | ; |
---|
| 4480 | return 0; |
---|
| 4481 | } |
---|
| 4482 | _ACEOF |
---|
| 4483 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4485 | (eval $ac_link) 2>conftest.er1 |
---|
| 4486 | ac_status=$? |
---|
| 4487 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4488 | rm -f conftest.er1 |
---|
| 4489 | cat conftest.err >&5 |
---|
| 4490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4491 | (exit $ac_status); } && |
---|
| 4492 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4493 | || test ! -s conftest.err' |
---|
| 4494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4495 | (eval $ac_try) 2>&5 |
---|
| 4496 | ac_status=$? |
---|
| 4497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4498 | (exit $ac_status); }; } && |
---|
| 4499 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4501 | (eval $ac_try) 2>&5 |
---|
| 4502 | ac_status=$? |
---|
| 4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4504 | (exit $ac_status); }; }; then |
---|
[2701] | 4505 | ac_cv_lib_glu32_main=yes |
---|
[1956] | 4506 | else |
---|
| 4507 | echo "$as_me: failed program was:" >&5 |
---|
| 4508 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4509 | |
---|
[2701] | 4510 | ac_cv_lib_glu32_main=no |
---|
[1956] | 4511 | fi |
---|
| 4512 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4513 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4514 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4515 | fi |
---|
[2701] | 4516 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4517 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 4518 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 4519 | FOUND_glu32=yes |
---|
[1959] | 4520 | fi |
---|
| 4521 | |
---|
[2701] | 4522 | if test "$FOUND_glu32" = "yes" ; then |
---|
| 4523 | LIBS="$LIBS -lGLU32" |
---|
| 4524 | else |
---|
| 4525 | echo "------------------" |
---|
| 4526 | echo "GLU library not found." |
---|
| 4527 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4528 | echo "------------------" |
---|
| 4529 | exit -1 |
---|
| 4530 | fi |
---|
| 4531 | |
---|
| 4532 | # checking for mingw32 |
---|
| 4533 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4534 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4535 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
[1959] | 4536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4537 | else |
---|
| 4538 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4539 | LIBS="-lmingw32 $LIBS" |
---|
[1959] | 4540 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4541 | /* confdefs.h. */ |
---|
[1956] | 4542 | _ACEOF |
---|
[1959] | 4543 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4544 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4545 | /* end confdefs.h. */ |
---|
[1956] | 4546 | |
---|
[1971] | 4547 | |
---|
[1959] | 4548 | int |
---|
| 4549 | main () |
---|
| 4550 | { |
---|
[1971] | 4551 | main (); |
---|
[1959] | 4552 | ; |
---|
| 4553 | return 0; |
---|
| 4554 | } |
---|
| 4555 | _ACEOF |
---|
| 4556 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4558 | (eval $ac_link) 2>conftest.er1 |
---|
| 4559 | ac_status=$? |
---|
| 4560 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4561 | rm -f conftest.er1 |
---|
| 4562 | cat conftest.err >&5 |
---|
| 4563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4564 | (exit $ac_status); } && |
---|
| 4565 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4566 | || test ! -s conftest.err' |
---|
| 4567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4568 | (eval $ac_try) 2>&5 |
---|
| 4569 | ac_status=$? |
---|
| 4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4571 | (exit $ac_status); }; } && |
---|
| 4572 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4574 | (eval $ac_try) 2>&5 |
---|
| 4575 | ac_status=$? |
---|
| 4576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4577 | (exit $ac_status); }; }; then |
---|
[2701] | 4578 | ac_cv_lib_mingw32_main=yes |
---|
[1959] | 4579 | else |
---|
| 4580 | echo "$as_me: failed program was:" >&5 |
---|
| 4581 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4582 | |
---|
[2701] | 4583 | ac_cv_lib_mingw32_main=no |
---|
[1956] | 4584 | fi |
---|
[1959] | 4585 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4586 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4587 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4588 | fi |
---|
[2701] | 4589 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4590 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4591 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4592 | FOUND_mingw32=yes |
---|
[1959] | 4593 | fi |
---|
[1956] | 4594 | |
---|
[2701] | 4595 | if test $FOUND_mingw32 = "yes"; then |
---|
| 4596 | LIBS="$LIBS -lmingw32" |
---|
| 4597 | fi |
---|
[2989] | 4598 | # checking for SDL-headers |
---|
[1959] | 4599 | |
---|
[2989] | 4600 | for ac_header in SDL/SDL.h |
---|
| 4601 | do |
---|
| 4602 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4603 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4604 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4605 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4608 | fi |
---|
| 4609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4610 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4611 | else |
---|
| 4612 | # Is the header compilable? |
---|
| 4613 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4614 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4615 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4616 | /* confdefs.h. */ |
---|
| 4617 | _ACEOF |
---|
| 4618 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4619 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4620 | /* end confdefs.h. */ |
---|
| 4621 | $ac_includes_default |
---|
| 4622 | #include <$ac_header> |
---|
| 4623 | _ACEOF |
---|
| 4624 | rm -f conftest.$ac_objext |
---|
| 4625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4626 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4627 | ac_status=$? |
---|
| 4628 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4629 | rm -f conftest.er1 |
---|
| 4630 | cat conftest.err >&5 |
---|
| 4631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4632 | (exit $ac_status); } && |
---|
| 4633 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4634 | || test ! -s conftest.err' |
---|
| 4635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4636 | (eval $ac_try) 2>&5 |
---|
| 4637 | ac_status=$? |
---|
| 4638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4639 | (exit $ac_status); }; } && |
---|
| 4640 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4642 | (eval $ac_try) 2>&5 |
---|
| 4643 | ac_status=$? |
---|
| 4644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4645 | (exit $ac_status); }; }; then |
---|
| 4646 | ac_header_compiler=yes |
---|
| 4647 | else |
---|
| 4648 | echo "$as_me: failed program was:" >&5 |
---|
| 4649 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4650 | |
---|
| 4651 | ac_header_compiler=no |
---|
| 4652 | fi |
---|
| 4653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4654 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4655 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4656 | |
---|
| 4657 | # Is the header present? |
---|
| 4658 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4659 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4660 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4661 | /* confdefs.h. */ |
---|
| 4662 | _ACEOF |
---|
| 4663 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4664 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4665 | /* end confdefs.h. */ |
---|
| 4666 | #include <$ac_header> |
---|
| 4667 | _ACEOF |
---|
| 4668 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4669 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4670 | ac_status=$? |
---|
| 4671 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4672 | rm -f conftest.er1 |
---|
| 4673 | cat conftest.err >&5 |
---|
| 4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4675 | (exit $ac_status); } >/dev/null; then |
---|
| 4676 | if test -s conftest.err; then |
---|
| 4677 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4678 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4679 | else |
---|
| 4680 | ac_cpp_err= |
---|
| 4681 | fi |
---|
| 4682 | else |
---|
| 4683 | ac_cpp_err=yes |
---|
| 4684 | fi |
---|
| 4685 | if test -z "$ac_cpp_err"; then |
---|
| 4686 | ac_header_preproc=yes |
---|
| 4687 | else |
---|
| 4688 | echo "$as_me: failed program was:" >&5 |
---|
| 4689 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4690 | |
---|
| 4691 | ac_header_preproc=no |
---|
| 4692 | fi |
---|
| 4693 | rm -f conftest.err conftest.$ac_ext |
---|
| 4694 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4695 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4696 | |
---|
| 4697 | # So? What about this header? |
---|
| 4698 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4699 | yes:no: ) |
---|
| 4700 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4701 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4702 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4703 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4704 | ac_header_preproc=yes |
---|
[2701] | 4705 | ;; |
---|
[2989] | 4706 | no:yes:* ) |
---|
| 4707 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4708 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4709 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4710 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4711 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4712 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4713 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4714 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4715 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4716 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4717 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4718 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4719 | ( |
---|
| 4720 | cat <<\_ASBOX |
---|
[3399] | 4721 | ## ---------------------------------------------- ## |
---|
| 4722 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4723 | ## ---------------------------------------------- ## |
---|
[2989] | 4724 | _ASBOX |
---|
| 4725 | ) | |
---|
| 4726 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4727 | ;; |
---|
| 4728 | esac |
---|
| 4729 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4730 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4731 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4733 | else |
---|
| 4734 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4735 | fi |
---|
| 4736 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4737 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2701] | 4738 | |
---|
[2989] | 4739 | fi |
---|
| 4740 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4741 | cat >>confdefs.h <<_ACEOF |
---|
| 4742 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4743 | _ACEOF |
---|
| 4744 | |
---|
| 4745 | else |
---|
| 4746 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 4747 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 4748 | { (exit 1); exit 1; }; } |
---|
| 4749 | fi |
---|
| 4750 | |
---|
| 4751 | done |
---|
| 4752 | |
---|
| 4753 | |
---|
| 4754 | #checking for libSDL |
---|
| 4755 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
| 4756 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
| 4757 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
| 4758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4759 | else |
---|
| 4760 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4761 | LIBS="-lsdlmain $LIBS" |
---|
| 4762 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4763 | /* confdefs.h. */ |
---|
| 4764 | _ACEOF |
---|
| 4765 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4766 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4767 | /* end confdefs.h. */ |
---|
| 4768 | |
---|
| 4769 | |
---|
| 4770 | int |
---|
| 4771 | main () |
---|
| 4772 | { |
---|
| 4773 | main (); |
---|
| 4774 | ; |
---|
| 4775 | return 0; |
---|
| 4776 | } |
---|
| 4777 | _ACEOF |
---|
| 4778 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4780 | (eval $ac_link) 2>conftest.er1 |
---|
| 4781 | ac_status=$? |
---|
| 4782 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4783 | rm -f conftest.er1 |
---|
| 4784 | cat conftest.err >&5 |
---|
| 4785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4786 | (exit $ac_status); } && |
---|
| 4787 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4788 | || test ! -s conftest.err' |
---|
| 4789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4790 | (eval $ac_try) 2>&5 |
---|
| 4791 | ac_status=$? |
---|
| 4792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4793 | (exit $ac_status); }; } && |
---|
| 4794 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4796 | (eval $ac_try) 2>&5 |
---|
| 4797 | ac_status=$? |
---|
| 4798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4799 | (exit $ac_status); }; }; then |
---|
| 4800 | ac_cv_lib_sdlmain_main=yes |
---|
| 4801 | else |
---|
| 4802 | echo "$as_me: failed program was:" >&5 |
---|
| 4803 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4804 | |
---|
| 4805 | ac_cv_lib_sdlmain_main=no |
---|
| 4806 | fi |
---|
| 4807 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4808 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4809 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4810 | fi |
---|
| 4811 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
| 4812 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
| 4813 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
| 4814 | FOUND_sdlmain=yes |
---|
| 4815 | fi |
---|
| 4816 | |
---|
| 4817 | if test "$FOUND_sdlmain" = "yes" ; then |
---|
| 4818 | LIBS="$LIBS -lsdlmain" |
---|
| 4819 | else |
---|
| 4820 | echo "------------------" |
---|
| 4821 | echo "SDL library not found." |
---|
| 4822 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4823 | echo "------------------" |
---|
| 4824 | exit 1 |
---|
| 4825 | fi |
---|
| 4826 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
| 4827 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
| 4828 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
| 4829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4830 | else |
---|
| 4831 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4832 | LIBS="-lsdl $LIBS" |
---|
| 4833 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4834 | /* confdefs.h. */ |
---|
| 4835 | _ACEOF |
---|
| 4836 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4837 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4838 | /* end confdefs.h. */ |
---|
| 4839 | |
---|
| 4840 | |
---|
| 4841 | int |
---|
| 4842 | main () |
---|
| 4843 | { |
---|
| 4844 | main (); |
---|
| 4845 | ; |
---|
| 4846 | return 0; |
---|
| 4847 | } |
---|
| 4848 | _ACEOF |
---|
| 4849 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4851 | (eval $ac_link) 2>conftest.er1 |
---|
| 4852 | ac_status=$? |
---|
| 4853 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4854 | rm -f conftest.er1 |
---|
| 4855 | cat conftest.err >&5 |
---|
| 4856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4857 | (exit $ac_status); } && |
---|
| 4858 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4859 | || test ! -s conftest.err' |
---|
| 4860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4861 | (eval $ac_try) 2>&5 |
---|
| 4862 | ac_status=$? |
---|
| 4863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4864 | (exit $ac_status); }; } && |
---|
| 4865 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4867 | (eval $ac_try) 2>&5 |
---|
| 4868 | ac_status=$? |
---|
| 4869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4870 | (exit $ac_status); }; }; then |
---|
| 4871 | ac_cv_lib_sdl_main=yes |
---|
| 4872 | else |
---|
| 4873 | echo "$as_me: failed program was:" >&5 |
---|
| 4874 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4875 | |
---|
| 4876 | ac_cv_lib_sdl_main=no |
---|
| 4877 | fi |
---|
| 4878 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4879 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4880 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4881 | fi |
---|
| 4882 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
| 4883 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
| 4884 | if test $ac_cv_lib_sdl_main = yes; then |
---|
| 4885 | FOUND_sdl=yes |
---|
| 4886 | fi |
---|
| 4887 | |
---|
| 4888 | if test "$FOUND_sdl" = "yes" ; then |
---|
| 4889 | LIBS="$LIBS -lsdl" |
---|
| 4890 | else |
---|
| 4891 | echo "------------------" |
---|
| 4892 | echo "SDL library not found." |
---|
| 4893 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4894 | echo "------------------" |
---|
| 4895 | exit -1 |
---|
| 4896 | fi |
---|
| 4897 | |
---|
| 4898 | ;; |
---|
| 4899 | |
---|
[2701] | 4900 | ### LINUX ### |
---|
[2980] | 4901 | *-*-linux*) |
---|
[2701] | 4902 | echo "Linux detected" |
---|
[1956] | 4903 | |
---|
[2701] | 4904 | Linux="yes" |
---|
| 4905 | |
---|
[3238] | 4906 | CPPFLAGS="-I/usr/X11R6/include" |
---|
[3399] | 4907 | LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
[2968] | 4908 | # checking gl header |
---|
[2701] | 4909 | |
---|
[2879] | 4910 | for ac_header in GL/gl.h |
---|
| 4911 | do |
---|
| 4912 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4913 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4914 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4915 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4916 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4918 | fi |
---|
| 4919 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4920 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4921 | else |
---|
| 4922 | # Is the header compilable? |
---|
| 4923 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4924 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4925 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4926 | /* confdefs.h. */ |
---|
| 4927 | _ACEOF |
---|
| 4928 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4929 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4930 | /* end confdefs.h. */ |
---|
| 4931 | $ac_includes_default |
---|
| 4932 | #include <$ac_header> |
---|
| 4933 | _ACEOF |
---|
| 4934 | rm -f conftest.$ac_objext |
---|
| 4935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4936 | (eval $ac_compile) 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_objext' |
---|
| 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_header_compiler=yes |
---|
| 4957 | else |
---|
| 4958 | echo "$as_me: failed program was:" >&5 |
---|
| 4959 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4960 | |
---|
| 4961 | ac_header_compiler=no |
---|
| 4962 | fi |
---|
| 4963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4964 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4965 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4966 | |
---|
| 4967 | # Is the header present? |
---|
| 4968 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4969 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4970 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4971 | /* confdefs.h. */ |
---|
| 4972 | _ACEOF |
---|
| 4973 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4974 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4975 | /* end confdefs.h. */ |
---|
| 4976 | #include <$ac_header> |
---|
| 4977 | _ACEOF |
---|
| 4978 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4979 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4980 | ac_status=$? |
---|
| 4981 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4982 | rm -f conftest.er1 |
---|
| 4983 | cat conftest.err >&5 |
---|
| 4984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4985 | (exit $ac_status); } >/dev/null; then |
---|
| 4986 | if test -s conftest.err; then |
---|
| 4987 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4988 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4989 | else |
---|
| 4990 | ac_cpp_err= |
---|
| 4991 | fi |
---|
| 4992 | else |
---|
| 4993 | ac_cpp_err=yes |
---|
| 4994 | fi |
---|
| 4995 | if test -z "$ac_cpp_err"; then |
---|
| 4996 | ac_header_preproc=yes |
---|
| 4997 | else |
---|
| 4998 | echo "$as_me: failed program was:" >&5 |
---|
| 4999 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5000 | |
---|
| 5001 | ac_header_preproc=no |
---|
| 5002 | fi |
---|
| 5003 | rm -f conftest.err conftest.$ac_ext |
---|
| 5004 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5005 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5006 | |
---|
| 5007 | # So? What about this header? |
---|
| 5008 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5009 | yes:no: ) |
---|
| 5010 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5011 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5012 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5013 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5014 | ac_header_preproc=yes |
---|
| 5015 | ;; |
---|
| 5016 | no:yes:* ) |
---|
| 5017 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5018 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5019 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5020 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5021 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5022 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5023 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5024 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5025 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5026 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5027 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5028 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5029 | ( |
---|
| 5030 | cat <<\_ASBOX |
---|
[3399] | 5031 | ## ---------------------------------------------- ## |
---|
| 5032 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5033 | ## ---------------------------------------------- ## |
---|
[2879] | 5034 | _ASBOX |
---|
| 5035 | ) | |
---|
| 5036 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5037 | ;; |
---|
| 5038 | esac |
---|
| 5039 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5040 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5041 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5043 | else |
---|
| 5044 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5045 | fi |
---|
| 5046 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5047 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5048 | |
---|
| 5049 | fi |
---|
| 5050 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5051 | cat >>confdefs.h <<_ACEOF |
---|
| 5052 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5053 | _ACEOF |
---|
| 5054 | |
---|
| 5055 | else |
---|
| 5056 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5057 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5058 | { (exit 1); exit 1; }; } |
---|
| 5059 | fi |
---|
| 5060 | |
---|
| 5061 | done |
---|
| 5062 | |
---|
| 5063 | |
---|
[2701] | 5064 | # checking for Unix GL |
---|
[3399] | 5065 | echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 |
---|
| 5066 | echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 |
---|
| 5067 | if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then |
---|
[1956] | 5068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5069 | else |
---|
| 5070 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5071 | LIBS="-lGL $LIBS" |
---|
[1956] | 5072 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5073 | /* confdefs.h. */ |
---|
| 5074 | _ACEOF |
---|
| 5075 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5076 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5077 | /* end confdefs.h. */ |
---|
| 5078 | |
---|
[3399] | 5079 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5080 | #ifdef __cplusplus |
---|
| 5081 | extern "C" |
---|
| 5082 | #endif |
---|
| 5083 | /* We use char because int might match the return type of a gcc2 |
---|
| 5084 | builtin and then its argument prototype would still apply. */ |
---|
| 5085 | char glLoadIdentity (); |
---|
[1956] | 5086 | int |
---|
| 5087 | main () |
---|
| 5088 | { |
---|
[3399] | 5089 | glLoadIdentity (); |
---|
[1956] | 5090 | ; |
---|
| 5091 | return 0; |
---|
| 5092 | } |
---|
| 5093 | _ACEOF |
---|
| 5094 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5096 | (eval $ac_link) 2>conftest.er1 |
---|
| 5097 | ac_status=$? |
---|
| 5098 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5099 | rm -f conftest.er1 |
---|
| 5100 | cat conftest.err >&5 |
---|
| 5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5102 | (exit $ac_status); } && |
---|
| 5103 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5104 | || test ! -s conftest.err' |
---|
| 5105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5106 | (eval $ac_try) 2>&5 |
---|
| 5107 | ac_status=$? |
---|
| 5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5109 | (exit $ac_status); }; } && |
---|
| 5110 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5112 | (eval $ac_try) 2>&5 |
---|
| 5113 | ac_status=$? |
---|
| 5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5115 | (exit $ac_status); }; }; then |
---|
[3399] | 5116 | ac_cv_lib_GL_glLoadIdentity=yes |
---|
[1956] | 5117 | else |
---|
| 5118 | echo "$as_me: failed program was:" >&5 |
---|
| 5119 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5120 | |
---|
[3399] | 5121 | ac_cv_lib_GL_glLoadIdentity=no |
---|
[1956] | 5122 | fi |
---|
| 5123 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5124 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5125 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5126 | fi |
---|
[3399] | 5127 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 |
---|
| 5128 | echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 |
---|
| 5129 | if test $ac_cv_lib_GL_glLoadIdentity = yes; then |
---|
[2701] | 5130 | FOUND_GL=yes |
---|
| 5131 | fi |
---|
| 5132 | |
---|
| 5133 | if test "$FOUND_GL" = "yes" ; then |
---|
| 5134 | LIBS="$LIBS -lGL" |
---|
| 5135 | else |
---|
| 5136 | echo "------------------" |
---|
| 5137 | echo "opengl not found." |
---|
| 5138 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 5139 | echo "------------------" |
---|
| 5140 | exit -1 |
---|
| 5141 | fi |
---|
| 5142 | |
---|
| 5143 | # cheking for GLU-header |
---|
| 5144 | |
---|
| 5145 | for ac_header in GL/glu.h |
---|
| 5146 | do |
---|
| 5147 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5148 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5149 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5150 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5151 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5153 | fi |
---|
| 5154 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5155 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5156 | else |
---|
| 5157 | # Is the header compilable? |
---|
| 5158 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5159 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5160 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5161 | /* confdefs.h. */ |
---|
[1956] | 5162 | _ACEOF |
---|
[2701] | 5163 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5164 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5165 | /* end confdefs.h. */ |
---|
| 5166 | $ac_includes_default |
---|
| 5167 | #include <$ac_header> |
---|
| 5168 | _ACEOF |
---|
| 5169 | rm -f conftest.$ac_objext |
---|
| 5170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5171 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5172 | ac_status=$? |
---|
| 5173 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5174 | rm -f conftest.er1 |
---|
| 5175 | cat conftest.err >&5 |
---|
| 5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5177 | (exit $ac_status); } && |
---|
| 5178 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5179 | || test ! -s conftest.err' |
---|
| 5180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5181 | (eval $ac_try) 2>&5 |
---|
| 5182 | ac_status=$? |
---|
| 5183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5184 | (exit $ac_status); }; } && |
---|
| 5185 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5187 | (eval $ac_try) 2>&5 |
---|
| 5188 | ac_status=$? |
---|
| 5189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5190 | (exit $ac_status); }; }; then |
---|
| 5191 | ac_header_compiler=yes |
---|
| 5192 | else |
---|
| 5193 | echo "$as_me: failed program was:" >&5 |
---|
| 5194 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5195 | |
---|
[2701] | 5196 | ac_header_compiler=no |
---|
| 5197 | fi |
---|
| 5198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5199 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5200 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 5201 | |
---|
[2701] | 5202 | # Is the header present? |
---|
| 5203 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5204 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5205 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5206 | /* confdefs.h. */ |
---|
| 5207 | _ACEOF |
---|
| 5208 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5209 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5210 | /* end confdefs.h. */ |
---|
| 5211 | #include <$ac_header> |
---|
| 5212 | _ACEOF |
---|
| 5213 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5214 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5215 | ac_status=$? |
---|
| 5216 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5217 | rm -f conftest.er1 |
---|
| 5218 | cat conftest.err >&5 |
---|
| 5219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5220 | (exit $ac_status); } >/dev/null; then |
---|
| 5221 | if test -s conftest.err; then |
---|
| 5222 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5223 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5224 | else |
---|
| 5225 | ac_cpp_err= |
---|
| 5226 | fi |
---|
| 5227 | else |
---|
| 5228 | ac_cpp_err=yes |
---|
[1956] | 5229 | fi |
---|
[2701] | 5230 | if test -z "$ac_cpp_err"; then |
---|
| 5231 | ac_header_preproc=yes |
---|
| 5232 | else |
---|
| 5233 | echo "$as_me: failed program was:" >&5 |
---|
| 5234 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5235 | |
---|
[2701] | 5236 | ac_header_preproc=no |
---|
| 5237 | fi |
---|
| 5238 | rm -f conftest.err conftest.$ac_ext |
---|
| 5239 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5240 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 5241 | |
---|
[2701] | 5242 | # So? What about this header? |
---|
| 5243 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5244 | yes:no: ) |
---|
| 5245 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5246 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5247 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5248 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5249 | ac_header_preproc=yes |
---|
| 5250 | ;; |
---|
| 5251 | no:yes:* ) |
---|
| 5252 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5253 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5254 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5255 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5256 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5257 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5258 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5259 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5260 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5261 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5262 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5263 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5264 | ( |
---|
| 5265 | cat <<\_ASBOX |
---|
[3399] | 5266 | ## ---------------------------------------------- ## |
---|
| 5267 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5268 | ## ---------------------------------------------- ## |
---|
[2701] | 5269 | _ASBOX |
---|
| 5270 | ) | |
---|
| 5271 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5272 | ;; |
---|
| 5273 | esac |
---|
| 5274 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5276 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5278 | else |
---|
[2701] | 5279 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5280 | fi |
---|
| 5281 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5282 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5283 | |
---|
| 5284 | fi |
---|
| 5285 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5286 | cat >>confdefs.h <<_ACEOF |
---|
| 5287 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5288 | _ACEOF |
---|
| 5289 | |
---|
| 5290 | else |
---|
| 5291 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5292 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5293 | { (exit 1); exit 1; }; } |
---|
| 5294 | fi |
---|
| 5295 | |
---|
| 5296 | done |
---|
| 5297 | |
---|
| 5298 | |
---|
| 5299 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 5300 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 5301 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 5302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5303 | else |
---|
[2190] | 5304 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5305 | LIBS="-lGLU $LIBS" |
---|
[2190] | 5306 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5307 | /* confdefs.h. */ |
---|
| 5308 | _ACEOF |
---|
| 5309 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5310 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5311 | /* end confdefs.h. */ |
---|
| 5312 | |
---|
[2701] | 5313 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5314 | #ifdef __cplusplus |
---|
| 5315 | extern "C" |
---|
| 5316 | #endif |
---|
| 5317 | /* We use char because int might match the return type of a gcc2 |
---|
| 5318 | builtin and then its argument prototype would still apply. */ |
---|
| 5319 | char gluProject (); |
---|
[2190] | 5320 | int |
---|
| 5321 | main () |
---|
| 5322 | { |
---|
[2701] | 5323 | gluProject (); |
---|
[2190] | 5324 | ; |
---|
| 5325 | return 0; |
---|
| 5326 | } |
---|
| 5327 | _ACEOF |
---|
| 5328 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5330 | (eval $ac_link) 2>conftest.er1 |
---|
| 5331 | ac_status=$? |
---|
| 5332 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5333 | rm -f conftest.er1 |
---|
| 5334 | cat conftest.err >&5 |
---|
| 5335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5336 | (exit $ac_status); } && |
---|
| 5337 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5338 | || test ! -s conftest.err' |
---|
| 5339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5340 | (eval $ac_try) 2>&5 |
---|
| 5341 | ac_status=$? |
---|
| 5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5343 | (exit $ac_status); }; } && |
---|
| 5344 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5346 | (eval $ac_try) 2>&5 |
---|
| 5347 | ac_status=$? |
---|
| 5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5349 | (exit $ac_status); }; }; then |
---|
[2701] | 5350 | ac_cv_lib_GLU_gluProject=yes |
---|
[2190] | 5351 | else |
---|
| 5352 | echo "$as_me: failed program was:" >&5 |
---|
| 5353 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5354 | |
---|
[2701] | 5355 | ac_cv_lib_GLU_gluProject=no |
---|
[2190] | 5356 | fi |
---|
| 5357 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5358 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5359 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5360 | fi |
---|
[2701] | 5361 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 5362 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 5363 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 5364 | FOUND_GLU=yes |
---|
[2190] | 5365 | fi |
---|
| 5366 | |
---|
[2701] | 5367 | if test "$FOUND_GLU" = "yes" ; then |
---|
| 5368 | LIBS="$LIBS -lGLU" |
---|
| 5369 | else |
---|
| 5370 | echo "------------------" |
---|
| 5371 | echo "GLU library not found." |
---|
| 5372 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 5373 | echo "------------------" |
---|
| 5374 | exit -1 |
---|
| 5375 | fi |
---|
[2995] | 5376 | |
---|
[2991] | 5377 | # checking for SDL-headers |
---|
[2190] | 5378 | |
---|
[2991] | 5379 | for ac_header in SDL/SDL.h |
---|
| 5380 | do |
---|
| 5381 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5382 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5383 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5384 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5385 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5387 | fi |
---|
[2991] | 5388 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5389 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2190] | 5390 | else |
---|
[2991] | 5391 | # Is the header compilable? |
---|
| 5392 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5393 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5394 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5395 | /* confdefs.h. */ |
---|
| 5396 | _ACEOF |
---|
| 5397 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5398 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5399 | /* end confdefs.h. */ |
---|
[2991] | 5400 | $ac_includes_default |
---|
| 5401 | #include <$ac_header> |
---|
[2190] | 5402 | _ACEOF |
---|
[2991] | 5403 | rm -f conftest.$ac_objext |
---|
| 5404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5405 | (eval $ac_compile) 2>conftest.er1 |
---|
[2190] | 5406 | ac_status=$? |
---|
[2991] | 5407 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5408 | rm -f conftest.er1 |
---|
| 5409 | cat conftest.err >&5 |
---|
[2190] | 5410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5411 | (exit $ac_status); } && |
---|
| 5412 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5413 | || test ! -s conftest.err' |
---|
[2190] | 5414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5415 | (eval $ac_try) 2>&5 |
---|
| 5416 | ac_status=$? |
---|
| 5417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5418 | (exit $ac_status); }; } && |
---|
| 5419 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5421 | (eval $ac_try) 2>&5 |
---|
| 5422 | ac_status=$? |
---|
| 5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2190] | 5424 | (exit $ac_status); }; }; then |
---|
[2991] | 5425 | ac_header_compiler=yes |
---|
[2190] | 5426 | else |
---|
[2991] | 5427 | echo "$as_me: failed program was:" >&5 |
---|
[2190] | 5428 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5429 | |
---|
[2991] | 5430 | ac_header_compiler=no |
---|
[2190] | 5431 | fi |
---|
[2991] | 5432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5433 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5434 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5435 | |
---|
| 5436 | # Is the header present? |
---|
| 5437 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5438 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5439 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5440 | /* confdefs.h. */ |
---|
| 5441 | _ACEOF |
---|
| 5442 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5443 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5444 | /* end confdefs.h. */ |
---|
| 5445 | #include <$ac_header> |
---|
| 5446 | _ACEOF |
---|
| 5447 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5448 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5449 | ac_status=$? |
---|
| 5450 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5451 | rm -f conftest.er1 |
---|
| 5452 | cat conftest.err >&5 |
---|
| 5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5454 | (exit $ac_status); } >/dev/null; then |
---|
| 5455 | if test -s conftest.err; then |
---|
| 5456 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5457 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5458 | else |
---|
| 5459 | ac_cpp_err= |
---|
| 5460 | fi |
---|
| 5461 | else |
---|
| 5462 | ac_cpp_err=yes |
---|
[2190] | 5463 | fi |
---|
[2991] | 5464 | if test -z "$ac_cpp_err"; then |
---|
| 5465 | ac_header_preproc=yes |
---|
| 5466 | else |
---|
| 5467 | echo "$as_me: failed program was:" >&5 |
---|
| 5468 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5469 | |
---|
| 5470 | ac_header_preproc=no |
---|
| 5471 | fi |
---|
| 5472 | rm -f conftest.err conftest.$ac_ext |
---|
| 5473 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5474 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5475 | |
---|
| 5476 | # So? What about this header? |
---|
| 5477 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5478 | yes:no: ) |
---|
| 5479 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5480 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5481 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5482 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5483 | ac_header_preproc=yes |
---|
| 5484 | ;; |
---|
| 5485 | no:yes:* ) |
---|
| 5486 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5487 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5488 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5489 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5490 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5491 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5492 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5493 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5494 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5495 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5496 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5497 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5498 | ( |
---|
| 5499 | cat <<\_ASBOX |
---|
[3399] | 5500 | ## ---------------------------------------------- ## |
---|
| 5501 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5502 | ## ---------------------------------------------- ## |
---|
[2991] | 5503 | _ASBOX |
---|
| 5504 | ) | |
---|
| 5505 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5506 | ;; |
---|
| 5507 | esac |
---|
| 5508 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5509 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5510 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5512 | else |
---|
| 5513 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5514 | fi |
---|
| 5515 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5516 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5517 | |
---|
| 5518 | fi |
---|
| 5519 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5520 | cat >>confdefs.h <<_ACEOF |
---|
| 5521 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5522 | _ACEOF |
---|
| 5523 | |
---|
| 5524 | else |
---|
| 5525 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 5526 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 5527 | { (exit 1); exit 1; }; } |
---|
| 5528 | fi |
---|
| 5529 | |
---|
| 5530 | done |
---|
| 5531 | |
---|
| 5532 | |
---|
[3238] | 5533 | # checking for SDL-lib |
---|
[2991] | 5534 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
| 5535 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
| 5536 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
| 5537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5538 | else |
---|
| 5539 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5540 | LIBS="-lSDL $LIBS" |
---|
| 5541 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5542 | /* confdefs.h. */ |
---|
| 5543 | _ACEOF |
---|
| 5544 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5545 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5546 | /* end confdefs.h. */ |
---|
| 5547 | |
---|
| 5548 | |
---|
| 5549 | int |
---|
| 5550 | main () |
---|
| 5551 | { |
---|
[2991] | 5552 | main (); |
---|
[2190] | 5553 | ; |
---|
| 5554 | return 0; |
---|
| 5555 | } |
---|
| 5556 | _ACEOF |
---|
| 5557 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5559 | (eval $ac_link) 2>conftest.er1 |
---|
| 5560 | ac_status=$? |
---|
| 5561 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5562 | rm -f conftest.er1 |
---|
| 5563 | cat conftest.err >&5 |
---|
| 5564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5565 | (exit $ac_status); } && |
---|
| 5566 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5567 | || test ! -s conftest.err' |
---|
| 5568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5569 | (eval $ac_try) 2>&5 |
---|
| 5570 | ac_status=$? |
---|
| 5571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5572 | (exit $ac_status); }; } && |
---|
| 5573 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5575 | (eval $ac_try) 2>&5 |
---|
| 5576 | ac_status=$? |
---|
| 5577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5578 | (exit $ac_status); }; }; then |
---|
[2991] | 5579 | ac_cv_lib_SDL_main=yes |
---|
[2190] | 5580 | else |
---|
| 5581 | echo "$as_me: failed program was:" >&5 |
---|
| 5582 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5583 | |
---|
[2991] | 5584 | ac_cv_lib_SDL_main=no |
---|
[2190] | 5585 | fi |
---|
| 5586 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5587 | conftest$ac_exeext conftest.$ac_ext |
---|
[2991] | 5588 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5589 | fi |
---|
| 5590 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
| 5591 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
| 5592 | if test $ac_cv_lib_SDL_main = yes; then |
---|
| 5593 | FOUND_SDL=yes |
---|
| 5594 | fi |
---|
| 5595 | |
---|
| 5596 | if test "$FOUND_SDL" = "yes" ; then |
---|
| 5597 | LIBS="$LIBS -lSDL" |
---|
| 5598 | else |
---|
| 5599 | echo "------------------" |
---|
| 5600 | echo "SDL library not found." |
---|
| 5601 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5602 | echo "------------------" |
---|
| 5603 | exit -1 |
---|
[2980] | 5604 | fi |
---|
[2701] | 5605 | |
---|
[3238] | 5606 | |
---|
[2991] | 5607 | ## checking for SDL |
---|
| 5608 | # SDL_VERSION=1.2.7 |
---|
| 5609 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 5610 | # :, |
---|
| 5611 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 5612 | # ) |
---|
| 5613 | # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 5614 | # LIBS="$LIBS $SDL_LIBS" |
---|
[2989] | 5615 | ;; |
---|
[2995] | 5616 | |
---|
| 5617 | ### OS X ### |
---|
| 5618 | *darwin*) |
---|
| 5619 | echo "OS X detected" |
---|
| 5620 | |
---|
| 5621 | osX="yes" |
---|
| 5622 | |
---|
[3238] | 5623 | CPPFLAGS="-I/sw/include $CPPFLAGS" |
---|
[2995] | 5624 | # checking gl header |
---|
| 5625 | |
---|
| 5626 | for ac_header in OpenGL/gl.h |
---|
| 5627 | do |
---|
| 5628 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5629 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5630 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5631 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5632 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5634 | fi |
---|
| 5635 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5636 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5637 | else |
---|
| 5638 | # Is the header compilable? |
---|
| 5639 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5640 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5641 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5642 | /* confdefs.h. */ |
---|
| 5643 | _ACEOF |
---|
| 5644 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5645 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5646 | /* end confdefs.h. */ |
---|
| 5647 | $ac_includes_default |
---|
| 5648 | #include <$ac_header> |
---|
| 5649 | _ACEOF |
---|
| 5650 | rm -f conftest.$ac_objext |
---|
| 5651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5652 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5653 | ac_status=$? |
---|
| 5654 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5655 | rm -f conftest.er1 |
---|
| 5656 | cat conftest.err >&5 |
---|
| 5657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5658 | (exit $ac_status); } && |
---|
| 5659 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5660 | || test ! -s conftest.err' |
---|
| 5661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5662 | (eval $ac_try) 2>&5 |
---|
| 5663 | ac_status=$? |
---|
| 5664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5665 | (exit $ac_status); }; } && |
---|
| 5666 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5668 | (eval $ac_try) 2>&5 |
---|
| 5669 | ac_status=$? |
---|
| 5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5671 | (exit $ac_status); }; }; then |
---|
| 5672 | ac_header_compiler=yes |
---|
| 5673 | else |
---|
| 5674 | echo "$as_me: failed program was:" >&5 |
---|
| 5675 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5676 | |
---|
| 5677 | ac_header_compiler=no |
---|
| 5678 | fi |
---|
| 5679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5680 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5681 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5682 | |
---|
| 5683 | # Is the header present? |
---|
| 5684 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5685 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5686 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5687 | /* confdefs.h. */ |
---|
| 5688 | _ACEOF |
---|
| 5689 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5690 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5691 | /* end confdefs.h. */ |
---|
| 5692 | #include <$ac_header> |
---|
| 5693 | _ACEOF |
---|
| 5694 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5695 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5696 | ac_status=$? |
---|
| 5697 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5698 | rm -f conftest.er1 |
---|
| 5699 | cat conftest.err >&5 |
---|
| 5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5701 | (exit $ac_status); } >/dev/null; then |
---|
| 5702 | if test -s conftest.err; then |
---|
| 5703 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5704 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5705 | else |
---|
| 5706 | ac_cpp_err= |
---|
| 5707 | fi |
---|
| 5708 | else |
---|
| 5709 | ac_cpp_err=yes |
---|
| 5710 | fi |
---|
| 5711 | if test -z "$ac_cpp_err"; then |
---|
| 5712 | ac_header_preproc=yes |
---|
| 5713 | else |
---|
| 5714 | echo "$as_me: failed program was:" >&5 |
---|
| 5715 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5716 | |
---|
| 5717 | ac_header_preproc=no |
---|
| 5718 | fi |
---|
| 5719 | rm -f conftest.err conftest.$ac_ext |
---|
| 5720 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5721 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5722 | |
---|
| 5723 | # So? What about this header? |
---|
| 5724 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5725 | yes:no: ) |
---|
| 5726 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5727 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5728 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5729 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5730 | ac_header_preproc=yes |
---|
| 5731 | ;; |
---|
| 5732 | no:yes:* ) |
---|
| 5733 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5734 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5735 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5736 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5737 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5738 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5739 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5740 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5741 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5742 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5743 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5744 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5745 | ( |
---|
| 5746 | cat <<\_ASBOX |
---|
[3399] | 5747 | ## ---------------------------------------------- ## |
---|
| 5748 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5749 | ## ---------------------------------------------- ## |
---|
[2995] | 5750 | _ASBOX |
---|
| 5751 | ) | |
---|
| 5752 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5753 | ;; |
---|
| 5754 | esac |
---|
| 5755 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5756 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5757 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5759 | else |
---|
| 5760 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5761 | fi |
---|
| 5762 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5763 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5764 | |
---|
| 5765 | fi |
---|
| 5766 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5767 | cat >>confdefs.h <<_ACEOF |
---|
| 5768 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5769 | _ACEOF |
---|
| 5770 | |
---|
| 5771 | else |
---|
| 5772 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5773 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5774 | { (exit 1); exit 1; }; } |
---|
| 5775 | fi |
---|
| 5776 | |
---|
| 5777 | done |
---|
| 5778 | |
---|
| 5779 | # cheking for GLU-header |
---|
| 5780 | |
---|
| 5781 | for ac_header in OpenGL/glu.h |
---|
| 5782 | do |
---|
| 5783 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5785 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5789 | fi |
---|
| 5790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5792 | else |
---|
| 5793 | # Is the header compilable? |
---|
| 5794 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5795 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5796 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5797 | /* confdefs.h. */ |
---|
| 5798 | _ACEOF |
---|
| 5799 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5800 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5801 | /* end confdefs.h. */ |
---|
| 5802 | $ac_includes_default |
---|
| 5803 | #include <$ac_header> |
---|
| 5804 | _ACEOF |
---|
| 5805 | rm -f conftest.$ac_objext |
---|
| 5806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5807 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5808 | ac_status=$? |
---|
| 5809 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5810 | rm -f conftest.er1 |
---|
| 5811 | cat conftest.err >&5 |
---|
| 5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5813 | (exit $ac_status); } && |
---|
| 5814 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5815 | || test ! -s conftest.err' |
---|
| 5816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5817 | (eval $ac_try) 2>&5 |
---|
| 5818 | ac_status=$? |
---|
| 5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5820 | (exit $ac_status); }; } && |
---|
| 5821 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5823 | (eval $ac_try) 2>&5 |
---|
| 5824 | ac_status=$? |
---|
| 5825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5826 | (exit $ac_status); }; }; then |
---|
| 5827 | ac_header_compiler=yes |
---|
| 5828 | else |
---|
| 5829 | echo "$as_me: failed program was:" >&5 |
---|
| 5830 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5831 | |
---|
| 5832 | ac_header_compiler=no |
---|
| 5833 | fi |
---|
| 5834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5835 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5836 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5837 | |
---|
| 5838 | # Is the header present? |
---|
| 5839 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5840 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5841 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5842 | /* confdefs.h. */ |
---|
| 5843 | _ACEOF |
---|
| 5844 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5845 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5846 | /* end confdefs.h. */ |
---|
| 5847 | #include <$ac_header> |
---|
| 5848 | _ACEOF |
---|
| 5849 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5850 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5851 | ac_status=$? |
---|
| 5852 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5853 | rm -f conftest.er1 |
---|
| 5854 | cat conftest.err >&5 |
---|
| 5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5856 | (exit $ac_status); } >/dev/null; then |
---|
| 5857 | if test -s conftest.err; then |
---|
| 5858 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5859 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5860 | else |
---|
| 5861 | ac_cpp_err= |
---|
| 5862 | fi |
---|
| 5863 | else |
---|
| 5864 | ac_cpp_err=yes |
---|
| 5865 | fi |
---|
| 5866 | if test -z "$ac_cpp_err"; then |
---|
| 5867 | ac_header_preproc=yes |
---|
| 5868 | else |
---|
| 5869 | echo "$as_me: failed program was:" >&5 |
---|
| 5870 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5871 | |
---|
| 5872 | ac_header_preproc=no |
---|
| 5873 | fi |
---|
| 5874 | rm -f conftest.err conftest.$ac_ext |
---|
| 5875 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5876 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5877 | |
---|
| 5878 | # So? What about this header? |
---|
| 5879 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5880 | yes:no: ) |
---|
| 5881 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5882 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5883 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5884 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5885 | ac_header_preproc=yes |
---|
| 5886 | ;; |
---|
| 5887 | no:yes:* ) |
---|
| 5888 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5889 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5890 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5891 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5892 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5893 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5894 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5895 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5896 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5897 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5898 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5899 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5900 | ( |
---|
| 5901 | cat <<\_ASBOX |
---|
[3399] | 5902 | ## ---------------------------------------------- ## |
---|
| 5903 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5904 | ## ---------------------------------------------- ## |
---|
[2995] | 5905 | _ASBOX |
---|
| 5906 | ) | |
---|
| 5907 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5908 | ;; |
---|
| 5909 | esac |
---|
| 5910 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5912 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5914 | else |
---|
| 5915 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5916 | fi |
---|
| 5917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5918 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5919 | |
---|
| 5920 | fi |
---|
| 5921 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5922 | cat >>confdefs.h <<_ACEOF |
---|
| 5923 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5924 | _ACEOF |
---|
| 5925 | |
---|
| 5926 | else |
---|
| 5927 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5928 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5929 | { (exit 1); exit 1; }; } |
---|
| 5930 | fi |
---|
| 5931 | |
---|
| 5932 | done |
---|
| 5933 | |
---|
| 5934 | |
---|
| 5935 | LIBS="$LIBS -framework OpenGL" |
---|
| 5936 | |
---|
| 5937 | # checking for SDL-headers |
---|
[3001] | 5938 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
| 5939 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
[2995] | 5940 | |
---|
| 5941 | ## checking for SDL |
---|
| 5942 | # SDL_VERSION=1.2.7 |
---|
| 5943 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 5944 | # :, |
---|
| 5945 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 5946 | # ) |
---|
| 5947 | |
---|
| 5948 | SDL_CFLAGS=`sdl-config --cflags` |
---|
| 5949 | SDL_LIBS=`sdl-config --libs` |
---|
| 5950 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 5951 | LIBS="$LIBS $SDL_LIBS" |
---|
[3238] | 5952 | |
---|
[2995] | 5953 | ;; |
---|
| 5954 | |
---|
[2989] | 5955 | *) |
---|
| 5956 | ;; |
---|
| 5957 | esac |
---|
[2980] | 5958 | |
---|
[2981] | 5959 | |
---|
[2989] | 5960 | |
---|
[3238] | 5961 | ## check for SDL_Image |
---|
| 5962 | if test "$def_sdl_image" = "yes"; then |
---|
| 5963 | # checking for SDL_image-headers |
---|
[2989] | 5964 | |
---|
[3238] | 5965 | for ac_header in SDL/SDL_image.h |
---|
| 5966 | do |
---|
| 5967 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5969 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5970 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5973 | fi |
---|
| 5974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5975 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5976 | else |
---|
| 5977 | # Is the header compilable? |
---|
| 5978 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5979 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5980 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5981 | /* confdefs.h. */ |
---|
| 5982 | _ACEOF |
---|
| 5983 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5984 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5985 | /* end confdefs.h. */ |
---|
| 5986 | $ac_includes_default |
---|
| 5987 | #include <$ac_header> |
---|
| 5988 | _ACEOF |
---|
| 5989 | rm -f conftest.$ac_objext |
---|
| 5990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5991 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5992 | ac_status=$? |
---|
| 5993 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5994 | rm -f conftest.er1 |
---|
| 5995 | cat conftest.err >&5 |
---|
| 5996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5997 | (exit $ac_status); } && |
---|
| 5998 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5999 | || test ! -s conftest.err' |
---|
| 6000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6001 | (eval $ac_try) 2>&5 |
---|
| 6002 | ac_status=$? |
---|
| 6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6004 | (exit $ac_status); }; } && |
---|
| 6005 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6007 | (eval $ac_try) 2>&5 |
---|
| 6008 | ac_status=$? |
---|
| 6009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6010 | (exit $ac_status); }; }; then |
---|
| 6011 | ac_header_compiler=yes |
---|
| 6012 | else |
---|
| 6013 | echo "$as_me: failed program was:" >&5 |
---|
| 6014 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2989] | 6015 | |
---|
[3238] | 6016 | ac_header_compiler=no |
---|
| 6017 | fi |
---|
| 6018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6019 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6020 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[2989] | 6021 | |
---|
[3238] | 6022 | # Is the header present? |
---|
| 6023 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6024 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6025 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6026 | /* confdefs.h. */ |
---|
| 6027 | _ACEOF |
---|
| 6028 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6029 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6030 | /* end confdefs.h. */ |
---|
| 6031 | #include <$ac_header> |
---|
| 6032 | _ACEOF |
---|
| 6033 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6034 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6035 | ac_status=$? |
---|
| 6036 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6037 | rm -f conftest.er1 |
---|
| 6038 | cat conftest.err >&5 |
---|
| 6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6040 | (exit $ac_status); } >/dev/null; then |
---|
| 6041 | if test -s conftest.err; then |
---|
| 6042 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6043 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6044 | else |
---|
| 6045 | ac_cpp_err= |
---|
| 6046 | fi |
---|
| 6047 | else |
---|
| 6048 | ac_cpp_err=yes |
---|
| 6049 | fi |
---|
| 6050 | if test -z "$ac_cpp_err"; then |
---|
| 6051 | ac_header_preproc=yes |
---|
| 6052 | else |
---|
| 6053 | echo "$as_me: failed program was:" >&5 |
---|
| 6054 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2980] | 6055 | |
---|
[3238] | 6056 | ac_header_preproc=no |
---|
| 6057 | fi |
---|
| 6058 | rm -f conftest.err conftest.$ac_ext |
---|
| 6059 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6060 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[2980] | 6061 | |
---|
[3238] | 6062 | # So? What about this header? |
---|
| 6063 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6064 | yes:no: ) |
---|
| 6065 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6066 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6067 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6068 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6069 | ac_header_preproc=yes |
---|
| 6070 | ;; |
---|
| 6071 | no:yes:* ) |
---|
| 6072 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6073 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6074 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6075 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6076 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6077 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6078 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6079 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6080 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6081 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6082 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6083 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6084 | ( |
---|
| 6085 | cat <<\_ASBOX |
---|
[3399] | 6086 | ## ---------------------------------------------- ## |
---|
| 6087 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6088 | ## ---------------------------------------------- ## |
---|
[3238] | 6089 | _ASBOX |
---|
| 6090 | ) | |
---|
| 6091 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6092 | ;; |
---|
| 6093 | esac |
---|
| 6094 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 6097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6098 | else |
---|
[3238] | 6099 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6100 | fi |
---|
| 6101 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6102 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2190] | 6103 | |
---|
[2980] | 6104 | fi |
---|
[3238] | 6105 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6106 | cat >>confdefs.h <<_ACEOF |
---|
| 6107 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6108 | _ACEOF |
---|
[2190] | 6109 | |
---|
| 6110 | else |
---|
[3238] | 6111 | echo "sdl_image not found. falling back to other options"; def_sdl_image=no |
---|
[2190] | 6112 | fi |
---|
[2701] | 6113 | |
---|
[3238] | 6114 | done |
---|
[2701] | 6115 | |
---|
[3238] | 6116 | fi |
---|
| 6117 | if test "$def_sdl_image" = "yes"; then |
---|
| 6118 | # checking for SDL_image-lib |
---|
| 6119 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
| 6120 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
| 6121 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
| 6122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6123 | else |
---|
| 6124 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6125 | LIBS="-lSDL_image $LIBS" |
---|
| 6126 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6127 | /* confdefs.h. */ |
---|
| 6128 | _ACEOF |
---|
| 6129 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6130 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6131 | /* end confdefs.h. */ |
---|
[2190] | 6132 | |
---|
[2701] | 6133 | |
---|
[3238] | 6134 | int |
---|
| 6135 | main () |
---|
| 6136 | { |
---|
| 6137 | main (); |
---|
| 6138 | ; |
---|
| 6139 | return 0; |
---|
| 6140 | } |
---|
| 6141 | _ACEOF |
---|
| 6142 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6144 | (eval $ac_link) 2>conftest.er1 |
---|
| 6145 | ac_status=$? |
---|
| 6146 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6147 | rm -f conftest.er1 |
---|
| 6148 | cat conftest.err >&5 |
---|
| 6149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6150 | (exit $ac_status); } && |
---|
| 6151 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6152 | || test ! -s conftest.err' |
---|
| 6153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6154 | (eval $ac_try) 2>&5 |
---|
| 6155 | ac_status=$? |
---|
| 6156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6157 | (exit $ac_status); }; } && |
---|
| 6158 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6160 | (eval $ac_try) 2>&5 |
---|
| 6161 | ac_status=$? |
---|
| 6162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6163 | (exit $ac_status); }; }; then |
---|
| 6164 | ac_cv_lib_SDL_image_main=yes |
---|
| 6165 | else |
---|
| 6166 | echo "$as_me: failed program was:" >&5 |
---|
| 6167 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2701] | 6168 | |
---|
[3238] | 6169 | ac_cv_lib_SDL_image_main=no |
---|
| 6170 | fi |
---|
| 6171 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6172 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6173 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6174 | fi |
---|
| 6175 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
| 6176 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
| 6177 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
| 6178 | FOUND_SDL_image=yes |
---|
| 6179 | fi |
---|
[2701] | 6180 | |
---|
[3238] | 6181 | if test "$FOUND_SDL_image" = "yes" ; then |
---|
| 6182 | LIBS="$LIBS -lSDL_image" |
---|
| 6183 | else |
---|
| 6184 | echo "------------------" |
---|
| 6185 | echo "SDL_image library not found." |
---|
| 6186 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
| 6187 | echo "------------------" |
---|
| 6188 | exit -1 |
---|
| 6189 | fi |
---|
| 6190 | fi |
---|
[2701] | 6191 | |
---|
[2190] | 6192 | |
---|
[3238] | 6193 | if test "$def_sdl_image" = "no"; then |
---|
| 6194 | ## checking for libjpeg |
---|
[2701] | 6195 | |
---|
[3238] | 6196 | for ac_header in jpeglib.h |
---|
| 6197 | do |
---|
| 6198 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6199 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6200 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6201 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6202 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6204 | fi |
---|
| 6205 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6206 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6207 | else |
---|
| 6208 | # Is the header compilable? |
---|
| 6209 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6210 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6211 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6212 | /* confdefs.h. */ |
---|
| 6213 | _ACEOF |
---|
| 6214 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6215 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6216 | /* end confdefs.h. */ |
---|
| 6217 | $ac_includes_default |
---|
| 6218 | #include <$ac_header> |
---|
| 6219 | _ACEOF |
---|
| 6220 | rm -f conftest.$ac_objext |
---|
| 6221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6222 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6223 | ac_status=$? |
---|
| 6224 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6225 | rm -f conftest.er1 |
---|
| 6226 | cat conftest.err >&5 |
---|
| 6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6228 | (exit $ac_status); } && |
---|
| 6229 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6230 | || test ! -s conftest.err' |
---|
| 6231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6232 | (eval $ac_try) 2>&5 |
---|
| 6233 | ac_status=$? |
---|
| 6234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6235 | (exit $ac_status); }; } && |
---|
| 6236 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6238 | (eval $ac_try) 2>&5 |
---|
| 6239 | ac_status=$? |
---|
| 6240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6241 | (exit $ac_status); }; }; then |
---|
| 6242 | ac_header_compiler=yes |
---|
| 6243 | else |
---|
| 6244 | echo "$as_me: failed program was:" >&5 |
---|
| 6245 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2701] | 6246 | |
---|
[3238] | 6247 | ac_header_compiler=no |
---|
| 6248 | fi |
---|
| 6249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6250 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6251 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6252 | |
---|
| 6253 | # Is the header present? |
---|
| 6254 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6255 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6256 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6257 | /* confdefs.h. */ |
---|
| 6258 | _ACEOF |
---|
| 6259 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6260 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6261 | /* end confdefs.h. */ |
---|
| 6262 | #include <$ac_header> |
---|
| 6263 | _ACEOF |
---|
| 6264 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6265 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6266 | ac_status=$? |
---|
| 6267 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6268 | rm -f conftest.er1 |
---|
| 6269 | cat conftest.err >&5 |
---|
| 6270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6271 | (exit $ac_status); } >/dev/null; then |
---|
| 6272 | if test -s conftest.err; then |
---|
| 6273 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6274 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
[2980] | 6275 | else |
---|
[3238] | 6276 | ac_cpp_err= |
---|
[2980] | 6277 | fi |
---|
[3238] | 6278 | else |
---|
| 6279 | ac_cpp_err=yes |
---|
| 6280 | fi |
---|
| 6281 | if test -z "$ac_cpp_err"; then |
---|
| 6282 | ac_header_preproc=yes |
---|
| 6283 | else |
---|
| 6284 | echo "$as_me: failed program was:" >&5 |
---|
| 6285 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2701] | 6286 | |
---|
[3238] | 6287 | ac_header_preproc=no |
---|
| 6288 | fi |
---|
| 6289 | rm -f conftest.err conftest.$ac_ext |
---|
| 6290 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6291 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[2701] | 6292 | |
---|
[3238] | 6293 | # So? What about this header? |
---|
| 6294 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6295 | yes:no: ) |
---|
| 6296 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6297 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6298 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6299 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6300 | ac_header_preproc=yes |
---|
| 6301 | ;; |
---|
| 6302 | no:yes:* ) |
---|
| 6303 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6304 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6305 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6306 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6307 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6308 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6309 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6310 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6311 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6312 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6313 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6314 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6315 | ( |
---|
| 6316 | cat <<\_ASBOX |
---|
[3399] | 6317 | ## ---------------------------------------------- ## |
---|
| 6318 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6319 | ## ---------------------------------------------- ## |
---|
[3238] | 6320 | _ASBOX |
---|
| 6321 | ) | |
---|
| 6322 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6323 | ;; |
---|
| 6324 | esac |
---|
| 6325 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6326 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6327 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6329 | else |
---|
| 6330 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6331 | fi |
---|
| 6332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6333 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2968] | 6334 | |
---|
[3238] | 6335 | fi |
---|
| 6336 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6337 | cat >>confdefs.h <<_ACEOF |
---|
| 6338 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6339 | _ACEOF |
---|
| 6340 | jpegHeader="yes" |
---|
| 6341 | else |
---|
| 6342 | jpegHeader="no" |
---|
| 6343 | fi |
---|
[2968] | 6344 | |
---|
[3238] | 6345 | done |
---|
[2968] | 6346 | |
---|
[3238] | 6347 | if test $jpegHeader = "no"; then |
---|
| 6348 | echo " not including jpeg." |
---|
| 6349 | else |
---|
| 6350 | echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 |
---|
| 6351 | echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 |
---|
| 6352 | if test "${ac_cv_lib_jpeg_main+set}" = set; then |
---|
| 6353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
[2980] | 6354 | else |
---|
[3238] | 6355 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6356 | LIBS="-ljpeg $LIBS" |
---|
| 6357 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6358 | /* confdefs.h. */ |
---|
| 6359 | _ACEOF |
---|
| 6360 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6361 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6362 | /* end confdefs.h. */ |
---|
| 6363 | |
---|
| 6364 | |
---|
| 6365 | int |
---|
| 6366 | main () |
---|
| 6367 | { |
---|
| 6368 | main (); |
---|
| 6369 | ; |
---|
| 6370 | return 0; |
---|
| 6371 | } |
---|
| 6372 | _ACEOF |
---|
| 6373 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6375 | (eval $ac_link) 2>conftest.er1 |
---|
| 6376 | ac_status=$? |
---|
| 6377 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6378 | rm -f conftest.er1 |
---|
| 6379 | cat conftest.err >&5 |
---|
| 6380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6381 | (exit $ac_status); } && |
---|
| 6382 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6383 | || test ! -s conftest.err' |
---|
| 6384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6385 | (eval $ac_try) 2>&5 |
---|
| 6386 | ac_status=$? |
---|
| 6387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6388 | (exit $ac_status); }; } && |
---|
| 6389 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6391 | (eval $ac_try) 2>&5 |
---|
| 6392 | ac_status=$? |
---|
| 6393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6394 | (exit $ac_status); }; }; then |
---|
| 6395 | ac_cv_lib_jpeg_main=yes |
---|
| 6396 | else |
---|
| 6397 | echo "$as_me: failed program was:" >&5 |
---|
| 6398 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6399 | |
---|
| 6400 | ac_cv_lib_jpeg_main=no |
---|
[2980] | 6401 | fi |
---|
[3238] | 6402 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6403 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6404 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6405 | fi |
---|
| 6406 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 |
---|
| 6407 | echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 |
---|
| 6408 | if test $ac_cv_lib_jpeg_main = yes; then |
---|
| 6409 | FOUND_jpeg=yes |
---|
| 6410 | fi |
---|
[2980] | 6411 | |
---|
[3238] | 6412 | if test "$FOUND_jpeg" = "yes" ; then |
---|
| 6413 | LIBS="$LIBS -ljpeg" |
---|
| 6414 | else |
---|
| 6415 | echo "------------------" |
---|
| 6416 | echo "jpeg library not found." |
---|
| 6417 | echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" |
---|
| 6418 | echo "------------------" |
---|
| 6419 | exit -1 |
---|
| 6420 | fi |
---|
| 6421 | fi |
---|
[2980] | 6422 | |
---|
[3238] | 6423 | ## checking for libpng |
---|
[2980] | 6424 | |
---|
[3238] | 6425 | for ac_header in png.h |
---|
| 6426 | do |
---|
| 6427 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6428 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6429 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 6432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
[3238] | 6433 | fi |
---|
| 6434 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6435 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2190] | 6436 | else |
---|
[3238] | 6437 | # Is the header compilable? |
---|
| 6438 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6439 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6440 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6441 | /* confdefs.h. */ |
---|
| 6442 | _ACEOF |
---|
| 6443 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6444 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6445 | /* end confdefs.h. */ |
---|
| 6446 | $ac_includes_default |
---|
| 6447 | #include <$ac_header> |
---|
| 6448 | _ACEOF |
---|
| 6449 | rm -f conftest.$ac_objext |
---|
| 6450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6451 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6452 | ac_status=$? |
---|
| 6453 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6454 | rm -f conftest.er1 |
---|
| 6455 | cat conftest.err >&5 |
---|
| 6456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6457 | (exit $ac_status); } && |
---|
| 6458 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6459 | || test ! -s conftest.err' |
---|
| 6460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6461 | (eval $ac_try) 2>&5 |
---|
| 6462 | ac_status=$? |
---|
| 6463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6464 | (exit $ac_status); }; } && |
---|
| 6465 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6467 | (eval $ac_try) 2>&5 |
---|
| 6468 | ac_status=$? |
---|
| 6469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6470 | (exit $ac_status); }; }; then |
---|
| 6471 | ac_header_compiler=yes |
---|
| 6472 | else |
---|
| 6473 | echo "$as_me: failed program was:" >&5 |
---|
| 6474 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6475 | |
---|
| 6476 | ac_header_compiler=no |
---|
| 6477 | fi |
---|
| 6478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6479 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6480 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6481 | |
---|
| 6482 | # Is the header present? |
---|
| 6483 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6484 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6485 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6486 | /* confdefs.h. */ |
---|
| 6487 | _ACEOF |
---|
| 6488 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6489 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6490 | /* end confdefs.h. */ |
---|
| 6491 | #include <$ac_header> |
---|
| 6492 | _ACEOF |
---|
| 6493 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6494 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6495 | ac_status=$? |
---|
| 6496 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6497 | rm -f conftest.er1 |
---|
| 6498 | cat conftest.err >&5 |
---|
| 6499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6500 | (exit $ac_status); } >/dev/null; then |
---|
| 6501 | if test -s conftest.err; then |
---|
| 6502 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6503 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6504 | else |
---|
| 6505 | ac_cpp_err= |
---|
| 6506 | fi |
---|
| 6507 | else |
---|
| 6508 | ac_cpp_err=yes |
---|
| 6509 | fi |
---|
| 6510 | if test -z "$ac_cpp_err"; then |
---|
| 6511 | ac_header_preproc=yes |
---|
| 6512 | else |
---|
| 6513 | echo "$as_me: failed program was:" >&5 |
---|
| 6514 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6515 | |
---|
| 6516 | ac_header_preproc=no |
---|
| 6517 | fi |
---|
| 6518 | rm -f conftest.err conftest.$ac_ext |
---|
| 6519 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6520 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6521 | |
---|
| 6522 | # So? What about this header? |
---|
| 6523 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6524 | yes:no: ) |
---|
| 6525 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6526 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6527 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6528 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6529 | ac_header_preproc=yes |
---|
| 6530 | ;; |
---|
| 6531 | no:yes:* ) |
---|
| 6532 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6533 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6534 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6535 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6536 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6537 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6538 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6539 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6540 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6541 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6542 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6543 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6544 | ( |
---|
| 6545 | cat <<\_ASBOX |
---|
[3399] | 6546 | ## ---------------------------------------------- ## |
---|
| 6547 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6548 | ## ---------------------------------------------- ## |
---|
[3238] | 6549 | _ASBOX |
---|
| 6550 | ) | |
---|
| 6551 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6552 | ;; |
---|
| 6553 | esac |
---|
| 6554 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6555 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6556 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6558 | else |
---|
| 6559 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6560 | fi |
---|
| 6561 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6562 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6563 | |
---|
| 6564 | fi |
---|
| 6565 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6566 | cat >>confdefs.h <<_ACEOF |
---|
| 6567 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6568 | _ACEOF |
---|
| 6569 | pngHeader="yes" |
---|
| 6570 | else |
---|
| 6571 | pngHeader="no" |
---|
| 6572 | fi |
---|
| 6573 | |
---|
| 6574 | done |
---|
| 6575 | |
---|
| 6576 | if test $pngHeader = "no"; then |
---|
| 6577 | echo " not including png." |
---|
| 6578 | else |
---|
| 6579 | echo "$as_me:$LINENO: checking for main in -lpng" >&5 |
---|
| 6580 | echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 |
---|
| 6581 | if test "${ac_cv_lib_png_main+set}" = set; then |
---|
| 6582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6583 | else |
---|
[2190] | 6584 | ac_check_lib_save_LIBS=$LIBS |
---|
[3238] | 6585 | LIBS="-lpng $LIBS" |
---|
[2190] | 6586 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6587 | /* confdefs.h. */ |
---|
| 6588 | _ACEOF |
---|
| 6589 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6590 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6591 | /* end confdefs.h. */ |
---|
| 6592 | |
---|
| 6593 | |
---|
| 6594 | int |
---|
| 6595 | main () |
---|
| 6596 | { |
---|
| 6597 | main (); |
---|
| 6598 | ; |
---|
| 6599 | return 0; |
---|
| 6600 | } |
---|
| 6601 | _ACEOF |
---|
| 6602 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6604 | (eval $ac_link) 2>conftest.er1 |
---|
| 6605 | ac_status=$? |
---|
| 6606 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6607 | rm -f conftest.er1 |
---|
| 6608 | cat conftest.err >&5 |
---|
| 6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6610 | (exit $ac_status); } && |
---|
| 6611 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6612 | || test ! -s conftest.err' |
---|
| 6613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6614 | (eval $ac_try) 2>&5 |
---|
| 6615 | ac_status=$? |
---|
| 6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6617 | (exit $ac_status); }; } && |
---|
| 6618 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6620 | (eval $ac_try) 2>&5 |
---|
| 6621 | ac_status=$? |
---|
| 6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6623 | (exit $ac_status); }; }; then |
---|
[3238] | 6624 | ac_cv_lib_png_main=yes |
---|
[2190] | 6625 | else |
---|
| 6626 | echo "$as_me: failed program was:" >&5 |
---|
| 6627 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6628 | |
---|
[3238] | 6629 | ac_cv_lib_png_main=no |
---|
[2190] | 6630 | fi |
---|
| 6631 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6632 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6633 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6634 | fi |
---|
[3238] | 6635 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 |
---|
| 6636 | echo "${ECHO_T}$ac_cv_lib_png_main" >&6 |
---|
| 6637 | if test $ac_cv_lib_png_main = yes; then |
---|
| 6638 | FOUND_png=yes |
---|
[2190] | 6639 | fi |
---|
| 6640 | |
---|
[3238] | 6641 | if test "$FOUND_png" = "yes" ; then |
---|
| 6642 | LIBS="$LIBS -lpng" |
---|
| 6643 | else |
---|
| 6644 | echo "------------------" |
---|
| 6645 | echo "png library not found." |
---|
| 6646 | echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" |
---|
| 6647 | echo "------------------" |
---|
| 6648 | exit -1 |
---|
| 6649 | fi |
---|
[2968] | 6650 | fi |
---|
[3238] | 6651 | fi |
---|
[2190] | 6652 | |
---|
[3238] | 6653 | ## checking for GTK |
---|
| 6654 | if test "$def_gtk" = yes; then |
---|
[2190] | 6655 | |
---|
[3238] | 6656 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
| 6657 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
| 6658 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
| 6659 | if `pkg-config --exists gtk+-2.0`; then |
---|
| 6660 | echo "yes" |
---|
| 6661 | have_gtk2=yes |
---|
| 6662 | GTK2_LIBS=`pkg-config --libs gtk+-2.0` |
---|
| 6663 | GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` |
---|
| 6664 | |
---|
| 6665 | cat >>confdefs.h <<_ACEOF |
---|
| 6666 | #define HAVE_GTK2 1 |
---|
| 6667 | _ACEOF |
---|
| 6668 | |
---|
| 6669 | else |
---|
| 6670 | echo "no" |
---|
| 6671 | fi |
---|
| 6672 | |
---|
| 6673 | fi |
---|
| 6674 | |
---|
| 6675 | |
---|
| 6676 | |
---|
| 6677 | |
---|
| 6678 | if test x$have_gtk2 = xyes; then |
---|
| 6679 | HAVE_GTK2_TRUE= |
---|
| 6680 | HAVE_GTK2_FALSE='#' |
---|
| 6681 | else |
---|
| 6682 | HAVE_GTK2_TRUE='#' |
---|
| 6683 | HAVE_GTK2_FALSE= |
---|
| 6684 | fi |
---|
| 6685 | |
---|
| 6686 | |
---|
| 6687 | |
---|
| 6688 | |
---|
| 6689 | #checking for pthread libs |
---|
| 6690 | # AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes) |
---|
| 6691 | # if test "$FOUND_pthread" = "yes" ; then |
---|
| 6692 | # LIBS="$LIBS -lpthread" |
---|
| 6693 | # fi |
---|
| 6694 | |
---|
| 6695 | |
---|
[1956] | 6696 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 6697 | |
---|
| 6698 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 6699 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 6700 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 6701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6702 | else |
---|
| 6703 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6704 | LIBS="-lm $LIBS" |
---|
| 6705 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6706 | /* confdefs.h. */ |
---|
| 6707 | _ACEOF |
---|
| 6708 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6709 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6710 | /* end confdefs.h. */ |
---|
| 6711 | |
---|
| 6712 | |
---|
| 6713 | int |
---|
| 6714 | main () |
---|
| 6715 | { |
---|
| 6716 | main (); |
---|
| 6717 | ; |
---|
| 6718 | return 0; |
---|
| 6719 | } |
---|
| 6720 | _ACEOF |
---|
| 6721 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6723 | (eval $ac_link) 2>conftest.er1 |
---|
| 6724 | ac_status=$? |
---|
| 6725 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6726 | rm -f conftest.er1 |
---|
| 6727 | cat conftest.err >&5 |
---|
| 6728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6729 | (exit $ac_status); } && |
---|
| 6730 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6731 | || test ! -s conftest.err' |
---|
| 6732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6733 | (eval $ac_try) 2>&5 |
---|
| 6734 | ac_status=$? |
---|
| 6735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6736 | (exit $ac_status); }; } && |
---|
| 6737 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6739 | (eval $ac_try) 2>&5 |
---|
| 6740 | ac_status=$? |
---|
| 6741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6742 | (exit $ac_status); }; }; then |
---|
| 6743 | ac_cv_lib_m_main=yes |
---|
| 6744 | else |
---|
| 6745 | echo "$as_me: failed program was:" >&5 |
---|
| 6746 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6747 | |
---|
| 6748 | ac_cv_lib_m_main=no |
---|
| 6749 | fi |
---|
| 6750 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6751 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6752 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6753 | fi |
---|
| 6754 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 6755 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 6756 | if test $ac_cv_lib_m_main = yes; then |
---|
| 6757 | cat >>confdefs.h <<_ACEOF |
---|
| 6758 | #define HAVE_LIBM 1 |
---|
| 6759 | _ACEOF |
---|
| 6760 | |
---|
| 6761 | LIBS="-lm $LIBS" |
---|
| 6762 | |
---|
| 6763 | fi |
---|
| 6764 | |
---|
| 6765 | |
---|
[2018] | 6766 | |
---|
[1956] | 6767 | # Checks for header files. |
---|
| 6768 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 6769 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 6770 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 6771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6772 | else |
---|
| 6773 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6774 | /* confdefs.h. */ |
---|
| 6775 | _ACEOF |
---|
| 6776 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6777 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6778 | /* end confdefs.h. */ |
---|
| 6779 | #include <stdlib.h> |
---|
| 6780 | #include <stdarg.h> |
---|
| 6781 | #include <string.h> |
---|
| 6782 | #include <float.h> |
---|
| 6783 | |
---|
| 6784 | int |
---|
| 6785 | main () |
---|
| 6786 | { |
---|
| 6787 | |
---|
| 6788 | ; |
---|
| 6789 | return 0; |
---|
| 6790 | } |
---|
| 6791 | _ACEOF |
---|
| 6792 | rm -f conftest.$ac_objext |
---|
| 6793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6794 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6795 | ac_status=$? |
---|
| 6796 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6797 | rm -f conftest.er1 |
---|
| 6798 | cat conftest.err >&5 |
---|
| 6799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6800 | (exit $ac_status); } && |
---|
| 6801 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6802 | || test ! -s conftest.err' |
---|
| 6803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6804 | (eval $ac_try) 2>&5 |
---|
| 6805 | ac_status=$? |
---|
| 6806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6807 | (exit $ac_status); }; } && |
---|
| 6808 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6810 | (eval $ac_try) 2>&5 |
---|
| 6811 | ac_status=$? |
---|
| 6812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6813 | (exit $ac_status); }; }; then |
---|
| 6814 | ac_cv_header_stdc=yes |
---|
| 6815 | else |
---|
| 6816 | echo "$as_me: failed program was:" >&5 |
---|
| 6817 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6818 | |
---|
| 6819 | ac_cv_header_stdc=no |
---|
| 6820 | fi |
---|
| 6821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6822 | |
---|
| 6823 | if test $ac_cv_header_stdc = yes; then |
---|
| 6824 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 6825 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6826 | /* confdefs.h. */ |
---|
| 6827 | _ACEOF |
---|
| 6828 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6829 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6830 | /* end confdefs.h. */ |
---|
| 6831 | #include <string.h> |
---|
| 6832 | |
---|
| 6833 | _ACEOF |
---|
| 6834 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 6835 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 6836 | : |
---|
| 6837 | else |
---|
| 6838 | ac_cv_header_stdc=no |
---|
| 6839 | fi |
---|
| 6840 | rm -f conftest* |
---|
| 6841 | |
---|
| 6842 | fi |
---|
| 6843 | |
---|
| 6844 | if test $ac_cv_header_stdc = yes; then |
---|
| 6845 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 6846 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6847 | /* confdefs.h. */ |
---|
| 6848 | _ACEOF |
---|
| 6849 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6850 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6851 | /* end confdefs.h. */ |
---|
| 6852 | #include <stdlib.h> |
---|
| 6853 | |
---|
| 6854 | _ACEOF |
---|
| 6855 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 6856 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 6857 | : |
---|
| 6858 | else |
---|
| 6859 | ac_cv_header_stdc=no |
---|
| 6860 | fi |
---|
| 6861 | rm -f conftest* |
---|
| 6862 | |
---|
| 6863 | fi |
---|
| 6864 | |
---|
| 6865 | if test $ac_cv_header_stdc = yes; then |
---|
| 6866 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 6867 | if test "$cross_compiling" = yes; then |
---|
| 6868 | : |
---|
| 6869 | else |
---|
| 6870 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6871 | /* confdefs.h. */ |
---|
| 6872 | _ACEOF |
---|
| 6873 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6874 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6875 | /* end confdefs.h. */ |
---|
| 6876 | #include <ctype.h> |
---|
| 6877 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 6878 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 6879 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 6880 | #else |
---|
| 6881 | # define ISLOWER(c) \ |
---|
| 6882 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 6883 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 6884 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 6885 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 6886 | #endif |
---|
| 6887 | |
---|
| 6888 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 6889 | int |
---|
| 6890 | main () |
---|
| 6891 | { |
---|
| 6892 | int i; |
---|
| 6893 | for (i = 0; i < 256; i++) |
---|
| 6894 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 6895 | || toupper (i) != TOUPPER (i)) |
---|
| 6896 | exit(2); |
---|
| 6897 | exit (0); |
---|
| 6898 | } |
---|
| 6899 | _ACEOF |
---|
| 6900 | rm -f conftest$ac_exeext |
---|
| 6901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6902 | (eval $ac_link) 2>&5 |
---|
| 6903 | ac_status=$? |
---|
| 6904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6905 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 6906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6907 | (eval $ac_try) 2>&5 |
---|
| 6908 | ac_status=$? |
---|
| 6909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6910 | (exit $ac_status); }; }; then |
---|
| 6911 | : |
---|
| 6912 | else |
---|
| 6913 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 6914 | echo "$as_me: failed program was:" >&5 |
---|
| 6915 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6916 | |
---|
| 6917 | ( exit $ac_status ) |
---|
| 6918 | ac_cv_header_stdc=no |
---|
| 6919 | fi |
---|
| 6920 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 6921 | fi |
---|
| 6922 | fi |
---|
| 6923 | fi |
---|
| 6924 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 6925 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 6926 | if test $ac_cv_header_stdc = yes; then |
---|
| 6927 | |
---|
| 6928 | cat >>confdefs.h <<\_ACEOF |
---|
| 6929 | #define STDC_HEADERS 1 |
---|
| 6930 | _ACEOF |
---|
| 6931 | |
---|
| 6932 | fi |
---|
| 6933 | |
---|
| 6934 | |
---|
| 6935 | |
---|
| 6936 | for ac_header in stdlib.h string.h |
---|
| 6937 | do |
---|
| 6938 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6939 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6940 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6941 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6944 | fi |
---|
| 6945 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6946 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6947 | else |
---|
| 6948 | # Is the header compilable? |
---|
| 6949 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6950 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6951 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6952 | /* confdefs.h. */ |
---|
| 6953 | _ACEOF |
---|
| 6954 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6955 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6956 | /* end confdefs.h. */ |
---|
| 6957 | $ac_includes_default |
---|
| 6958 | #include <$ac_header> |
---|
| 6959 | _ACEOF |
---|
| 6960 | rm -f conftest.$ac_objext |
---|
| 6961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6962 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6963 | ac_status=$? |
---|
| 6964 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6965 | rm -f conftest.er1 |
---|
| 6966 | cat conftest.err >&5 |
---|
| 6967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6968 | (exit $ac_status); } && |
---|
| 6969 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6970 | || test ! -s conftest.err' |
---|
| 6971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6972 | (eval $ac_try) 2>&5 |
---|
| 6973 | ac_status=$? |
---|
| 6974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6975 | (exit $ac_status); }; } && |
---|
| 6976 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6978 | (eval $ac_try) 2>&5 |
---|
| 6979 | ac_status=$? |
---|
| 6980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6981 | (exit $ac_status); }; }; then |
---|
| 6982 | ac_header_compiler=yes |
---|
| 6983 | else |
---|
| 6984 | echo "$as_me: failed program was:" >&5 |
---|
| 6985 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6986 | |
---|
| 6987 | ac_header_compiler=no |
---|
| 6988 | fi |
---|
| 6989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6990 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6991 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6992 | |
---|
| 6993 | # Is the header present? |
---|
| 6994 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6995 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6996 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6997 | /* confdefs.h. */ |
---|
| 6998 | _ACEOF |
---|
| 6999 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7000 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7001 | /* end confdefs.h. */ |
---|
| 7002 | #include <$ac_header> |
---|
| 7003 | _ACEOF |
---|
| 7004 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7005 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7006 | ac_status=$? |
---|
| 7007 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7008 | rm -f conftest.er1 |
---|
| 7009 | cat conftest.err >&5 |
---|
| 7010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7011 | (exit $ac_status); } >/dev/null; then |
---|
| 7012 | if test -s conftest.err; then |
---|
| 7013 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7014 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7015 | else |
---|
| 7016 | ac_cpp_err= |
---|
| 7017 | fi |
---|
| 7018 | else |
---|
| 7019 | ac_cpp_err=yes |
---|
| 7020 | fi |
---|
| 7021 | if test -z "$ac_cpp_err"; then |
---|
| 7022 | ac_header_preproc=yes |
---|
| 7023 | else |
---|
| 7024 | echo "$as_me: failed program was:" >&5 |
---|
| 7025 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7026 | |
---|
| 7027 | ac_header_preproc=no |
---|
| 7028 | fi |
---|
| 7029 | rm -f conftest.err conftest.$ac_ext |
---|
| 7030 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7031 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7032 | |
---|
| 7033 | # So? What about this header? |
---|
| 7034 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7035 | yes:no: ) |
---|
| 7036 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7037 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7038 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7039 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7040 | ac_header_preproc=yes |
---|
| 7041 | ;; |
---|
| 7042 | no:yes:* ) |
---|
| 7043 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7044 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7045 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7046 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7047 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7048 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7049 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7050 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7051 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7052 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7053 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7054 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7055 | ( |
---|
| 7056 | cat <<\_ASBOX |
---|
[3399] | 7057 | ## ---------------------------------------------- ## |
---|
| 7058 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7059 | ## ---------------------------------------------- ## |
---|
[1956] | 7060 | _ASBOX |
---|
| 7061 | ) | |
---|
| 7062 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7063 | ;; |
---|
| 7064 | esac |
---|
| 7065 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7066 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7069 | else |
---|
| 7070 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7071 | fi |
---|
| 7072 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7073 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7074 | |
---|
| 7075 | fi |
---|
| 7076 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7077 | cat >>confdefs.h <<_ACEOF |
---|
| 7078 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7079 | _ACEOF |
---|
| 7080 | |
---|
| 7081 | fi |
---|
| 7082 | |
---|
| 7083 | done |
---|
| 7084 | |
---|
| 7085 | |
---|
| 7086 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 7087 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 7088 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 7089 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 7090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7091 | else |
---|
| 7092 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7093 | /* confdefs.h. */ |
---|
| 7094 | _ACEOF |
---|
| 7095 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7096 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7097 | /* end confdefs.h. */ |
---|
| 7098 | |
---|
| 7099 | #include <stdbool.h> |
---|
| 7100 | #ifndef bool |
---|
| 7101 | # error bool is not defined |
---|
| 7102 | #endif |
---|
| 7103 | #ifndef false |
---|
| 7104 | # error false is not defined |
---|
| 7105 | #endif |
---|
| 7106 | #if false |
---|
| 7107 | # error false is not 0 |
---|
| 7108 | #endif |
---|
| 7109 | #ifndef true |
---|
| 7110 | # error true is not defined |
---|
| 7111 | #endif |
---|
| 7112 | #if true != 1 |
---|
| 7113 | # error true is not 1 |
---|
| 7114 | #endif |
---|
| 7115 | #ifndef __bool_true_false_are_defined |
---|
| 7116 | # error __bool_true_false_are_defined is not defined |
---|
| 7117 | #endif |
---|
| 7118 | |
---|
| 7119 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 7120 | |
---|
| 7121 | char a[true == 1 ? 1 : -1]; |
---|
| 7122 | char b[false == 0 ? 1 : -1]; |
---|
| 7123 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 7124 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 7125 | bool e = &s; |
---|
| 7126 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 7127 | char g[true]; |
---|
| 7128 | char h[sizeof (_Bool)]; |
---|
| 7129 | char i[sizeof s.t]; |
---|
| 7130 | |
---|
| 7131 | int |
---|
| 7132 | main () |
---|
| 7133 | { |
---|
| 7134 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 7135 | ; |
---|
| 7136 | return 0; |
---|
| 7137 | } |
---|
| 7138 | _ACEOF |
---|
| 7139 | rm -f conftest.$ac_objext |
---|
| 7140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7141 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7142 | ac_status=$? |
---|
| 7143 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7144 | rm -f conftest.er1 |
---|
| 7145 | cat conftest.err >&5 |
---|
| 7146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7147 | (exit $ac_status); } && |
---|
| 7148 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7149 | || test ! -s conftest.err' |
---|
| 7150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7151 | (eval $ac_try) 2>&5 |
---|
| 7152 | ac_status=$? |
---|
| 7153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7154 | (exit $ac_status); }; } && |
---|
| 7155 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7157 | (eval $ac_try) 2>&5 |
---|
| 7158 | ac_status=$? |
---|
| 7159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7160 | (exit $ac_status); }; }; then |
---|
| 7161 | ac_cv_header_stdbool_h=yes |
---|
| 7162 | else |
---|
| 7163 | echo "$as_me: failed program was:" >&5 |
---|
| 7164 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7165 | |
---|
| 7166 | ac_cv_header_stdbool_h=no |
---|
| 7167 | fi |
---|
| 7168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7169 | fi |
---|
| 7170 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 7171 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 7172 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 7173 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 7174 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 7175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7176 | else |
---|
| 7177 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7178 | /* confdefs.h. */ |
---|
| 7179 | _ACEOF |
---|
| 7180 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7181 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7182 | /* end confdefs.h. */ |
---|
| 7183 | $ac_includes_default |
---|
| 7184 | int |
---|
| 7185 | main () |
---|
| 7186 | { |
---|
| 7187 | if ((_Bool *) 0) |
---|
| 7188 | return 0; |
---|
| 7189 | if (sizeof (_Bool)) |
---|
| 7190 | return 0; |
---|
| 7191 | ; |
---|
| 7192 | return 0; |
---|
| 7193 | } |
---|
| 7194 | _ACEOF |
---|
| 7195 | rm -f conftest.$ac_objext |
---|
| 7196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7197 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7198 | ac_status=$? |
---|
| 7199 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7200 | rm -f conftest.er1 |
---|
| 7201 | cat conftest.err >&5 |
---|
| 7202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7203 | (exit $ac_status); } && |
---|
| 7204 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7205 | || test ! -s conftest.err' |
---|
| 7206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7207 | (eval $ac_try) 2>&5 |
---|
| 7208 | ac_status=$? |
---|
| 7209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7210 | (exit $ac_status); }; } && |
---|
| 7211 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7213 | (eval $ac_try) 2>&5 |
---|
| 7214 | ac_status=$? |
---|
| 7215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7216 | (exit $ac_status); }; }; then |
---|
| 7217 | ac_cv_type__Bool=yes |
---|
| 7218 | else |
---|
| 7219 | echo "$as_me: failed program was:" >&5 |
---|
| 7220 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7221 | |
---|
| 7222 | ac_cv_type__Bool=no |
---|
| 7223 | fi |
---|
| 7224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7225 | fi |
---|
| 7226 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 7227 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 7228 | if test $ac_cv_type__Bool = yes; then |
---|
| 7229 | |
---|
| 7230 | cat >>confdefs.h <<_ACEOF |
---|
| 7231 | #define HAVE__BOOL 1 |
---|
| 7232 | _ACEOF |
---|
| 7233 | |
---|
| 7234 | |
---|
| 7235 | fi |
---|
| 7236 | |
---|
| 7237 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 7238 | |
---|
| 7239 | cat >>confdefs.h <<\_ACEOF |
---|
| 7240 | #define HAVE_STDBOOL_H 1 |
---|
| 7241 | _ACEOF |
---|
| 7242 | |
---|
| 7243 | fi |
---|
| 7244 | |
---|
| 7245 | |
---|
| 7246 | # Checks for library functions. |
---|
| 7247 | |
---|
| 7248 | for ac_header in stdlib.h |
---|
| 7249 | do |
---|
| 7250 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7251 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7252 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7253 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7254 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7256 | fi |
---|
| 7257 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7258 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7259 | else |
---|
| 7260 | # Is the header compilable? |
---|
| 7261 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7262 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7263 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7264 | /* confdefs.h. */ |
---|
| 7265 | _ACEOF |
---|
| 7266 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7267 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7268 | /* end confdefs.h. */ |
---|
| 7269 | $ac_includes_default |
---|
| 7270 | #include <$ac_header> |
---|
| 7271 | _ACEOF |
---|
| 7272 | rm -f conftest.$ac_objext |
---|
| 7273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7274 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7275 | ac_status=$? |
---|
| 7276 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7277 | rm -f conftest.er1 |
---|
| 7278 | cat conftest.err >&5 |
---|
| 7279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7280 | (exit $ac_status); } && |
---|
| 7281 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7282 | || test ! -s conftest.err' |
---|
| 7283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7284 | (eval $ac_try) 2>&5 |
---|
| 7285 | ac_status=$? |
---|
| 7286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7287 | (exit $ac_status); }; } && |
---|
| 7288 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7290 | (eval $ac_try) 2>&5 |
---|
| 7291 | ac_status=$? |
---|
| 7292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7293 | (exit $ac_status); }; }; then |
---|
| 7294 | ac_header_compiler=yes |
---|
| 7295 | else |
---|
| 7296 | echo "$as_me: failed program was:" >&5 |
---|
| 7297 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7298 | |
---|
| 7299 | ac_header_compiler=no |
---|
| 7300 | fi |
---|
| 7301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7302 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7303 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7304 | |
---|
| 7305 | # Is the header present? |
---|
| 7306 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7307 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7308 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7309 | /* confdefs.h. */ |
---|
| 7310 | _ACEOF |
---|
| 7311 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7312 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7313 | /* end confdefs.h. */ |
---|
| 7314 | #include <$ac_header> |
---|
| 7315 | _ACEOF |
---|
| 7316 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7317 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7318 | ac_status=$? |
---|
| 7319 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7320 | rm -f conftest.er1 |
---|
| 7321 | cat conftest.err >&5 |
---|
| 7322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7323 | (exit $ac_status); } >/dev/null; then |
---|
| 7324 | if test -s conftest.err; then |
---|
| 7325 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7326 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7327 | else |
---|
| 7328 | ac_cpp_err= |
---|
| 7329 | fi |
---|
| 7330 | else |
---|
| 7331 | ac_cpp_err=yes |
---|
| 7332 | fi |
---|
| 7333 | if test -z "$ac_cpp_err"; then |
---|
| 7334 | ac_header_preproc=yes |
---|
| 7335 | else |
---|
| 7336 | echo "$as_me: failed program was:" >&5 |
---|
| 7337 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7338 | |
---|
| 7339 | ac_header_preproc=no |
---|
| 7340 | fi |
---|
| 7341 | rm -f conftest.err conftest.$ac_ext |
---|
| 7342 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7343 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7344 | |
---|
| 7345 | # So? What about this header? |
---|
| 7346 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7347 | yes:no: ) |
---|
| 7348 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7349 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7350 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7351 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7352 | ac_header_preproc=yes |
---|
| 7353 | ;; |
---|
| 7354 | no:yes:* ) |
---|
| 7355 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7356 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7357 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7358 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7359 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7360 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7361 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7362 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7363 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7364 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7365 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7366 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7367 | ( |
---|
| 7368 | cat <<\_ASBOX |
---|
[3399] | 7369 | ## ---------------------------------------------- ## |
---|
| 7370 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7371 | ## ---------------------------------------------- ## |
---|
[1956] | 7372 | _ASBOX |
---|
| 7373 | ) | |
---|
| 7374 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7375 | ;; |
---|
| 7376 | esac |
---|
| 7377 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7378 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7379 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7381 | else |
---|
| 7382 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7383 | fi |
---|
| 7384 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7385 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7386 | |
---|
| 7387 | fi |
---|
| 7388 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7389 | cat >>confdefs.h <<_ACEOF |
---|
| 7390 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7391 | _ACEOF |
---|
| 7392 | |
---|
| 7393 | fi |
---|
| 7394 | |
---|
| 7395 | done |
---|
| 7396 | |
---|
| 7397 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 7398 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 7399 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 7400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7401 | else |
---|
| 7402 | if test "$cross_compiling" = yes; then |
---|
| 7403 | ac_cv_func_malloc_0_nonnull=no |
---|
| 7404 | else |
---|
| 7405 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7406 | /* confdefs.h. */ |
---|
| 7407 | _ACEOF |
---|
| 7408 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7409 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7410 | /* end confdefs.h. */ |
---|
| 7411 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 7412 | # include <stdlib.h> |
---|
| 7413 | #else |
---|
| 7414 | char *malloc (); |
---|
| 7415 | #endif |
---|
| 7416 | |
---|
| 7417 | int |
---|
| 7418 | main () |
---|
| 7419 | { |
---|
| 7420 | exit (malloc (0) ? 0 : 1); |
---|
| 7421 | ; |
---|
| 7422 | return 0; |
---|
| 7423 | } |
---|
| 7424 | _ACEOF |
---|
| 7425 | rm -f conftest$ac_exeext |
---|
| 7426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7427 | (eval $ac_link) 2>&5 |
---|
| 7428 | ac_status=$? |
---|
| 7429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7430 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 7431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7432 | (eval $ac_try) 2>&5 |
---|
| 7433 | ac_status=$? |
---|
| 7434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7435 | (exit $ac_status); }; }; then |
---|
| 7436 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 7437 | else |
---|
| 7438 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 7439 | echo "$as_me: failed program was:" >&5 |
---|
| 7440 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7441 | |
---|
| 7442 | ( exit $ac_status ) |
---|
| 7443 | ac_cv_func_malloc_0_nonnull=no |
---|
| 7444 | fi |
---|
| 7445 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 7446 | fi |
---|
| 7447 | fi |
---|
| 7448 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 7449 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 7450 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 7451 | |
---|
| 7452 | cat >>confdefs.h <<\_ACEOF |
---|
| 7453 | #define HAVE_MALLOC 1 |
---|
| 7454 | _ACEOF |
---|
| 7455 | |
---|
| 7456 | else |
---|
| 7457 | cat >>confdefs.h <<\_ACEOF |
---|
| 7458 | #define HAVE_MALLOC 0 |
---|
| 7459 | _ACEOF |
---|
| 7460 | |
---|
| 7461 | case $LIBOBJS in |
---|
| 7462 | "malloc.$ac_objext" | \ |
---|
| 7463 | *" malloc.$ac_objext" | \ |
---|
| 7464 | "malloc.$ac_objext "* | \ |
---|
| 7465 | *" malloc.$ac_objext "* ) ;; |
---|
| 7466 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 7467 | esac |
---|
| 7468 | |
---|
| 7469 | |
---|
| 7470 | cat >>confdefs.h <<\_ACEOF |
---|
| 7471 | #define malloc rpl_malloc |
---|
| 7472 | _ACEOF |
---|
| 7473 | |
---|
| 7474 | fi |
---|
| 7475 | |
---|
| 7476 | |
---|
| 7477 | |
---|
| 7478 | |
---|
| 7479 | |
---|
| 7480 | for ac_func in bzero sqrt |
---|
| 7481 | do |
---|
| 7482 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 7483 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 7484 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 7485 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 7486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7487 | else |
---|
| 7488 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7489 | /* confdefs.h. */ |
---|
| 7490 | _ACEOF |
---|
| 7491 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7492 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7493 | /* end confdefs.h. */ |
---|
| 7494 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 7495 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 7496 | #define $ac_func innocuous_$ac_func |
---|
| 7497 | |
---|
| 7498 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 7499 | which can conflict with char $ac_func (); below. |
---|
| 7500 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 7501 | <limits.h> exists even on freestanding compilers. */ |
---|
| 7502 | |
---|
| 7503 | #ifdef __STDC__ |
---|
| 7504 | # include <limits.h> |
---|
| 7505 | #else |
---|
| 7506 | # include <assert.h> |
---|
| 7507 | #endif |
---|
| 7508 | |
---|
| 7509 | #undef $ac_func |
---|
| 7510 | |
---|
| 7511 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 7512 | #ifdef __cplusplus |
---|
| 7513 | extern "C" |
---|
| 7514 | { |
---|
| 7515 | #endif |
---|
| 7516 | /* We use char because int might match the return type of a gcc2 |
---|
| 7517 | builtin and then its argument prototype would still apply. */ |
---|
| 7518 | char $ac_func (); |
---|
| 7519 | /* The GNU C library defines this for functions which it implements |
---|
| 7520 | to always fail with ENOSYS. Some functions are actually named |
---|
| 7521 | something starting with __ and the normal name is an alias. */ |
---|
| 7522 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 7523 | choke me |
---|
| 7524 | #else |
---|
| 7525 | char (*f) () = $ac_func; |
---|
| 7526 | #endif |
---|
| 7527 | #ifdef __cplusplus |
---|
| 7528 | } |
---|
| 7529 | #endif |
---|
| 7530 | |
---|
| 7531 | int |
---|
| 7532 | main () |
---|
| 7533 | { |
---|
| 7534 | return f != $ac_func; |
---|
| 7535 | ; |
---|
| 7536 | return 0; |
---|
| 7537 | } |
---|
| 7538 | _ACEOF |
---|
| 7539 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7541 | (eval $ac_link) 2>conftest.er1 |
---|
| 7542 | ac_status=$? |
---|
| 7543 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7544 | rm -f conftest.er1 |
---|
| 7545 | cat conftest.err >&5 |
---|
| 7546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7547 | (exit $ac_status); } && |
---|
| 7548 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7549 | || test ! -s conftest.err' |
---|
| 7550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7551 | (eval $ac_try) 2>&5 |
---|
| 7552 | ac_status=$? |
---|
| 7553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7554 | (exit $ac_status); }; } && |
---|
| 7555 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7557 | (eval $ac_try) 2>&5 |
---|
| 7558 | ac_status=$? |
---|
| 7559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7560 | (exit $ac_status); }; }; then |
---|
| 7561 | eval "$as_ac_var=yes" |
---|
| 7562 | else |
---|
| 7563 | echo "$as_me: failed program was:" >&5 |
---|
| 7564 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7565 | |
---|
| 7566 | eval "$as_ac_var=no" |
---|
| 7567 | fi |
---|
| 7568 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7569 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7570 | fi |
---|
| 7571 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 7572 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 7573 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 7574 | cat >>confdefs.h <<_ACEOF |
---|
| 7575 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 7576 | _ACEOF |
---|
| 7577 | |
---|
| 7578 | fi |
---|
| 7579 | done |
---|
| 7580 | |
---|
| 7581 | |
---|
[3399] | 7582 | ac_config_files="$ac_config_files Makefile src/Makefile src/importer/Makefile src/console/Makefile src/gui/Makefile" |
---|
[1956] | 7583 | |
---|
[3399] | 7584 | |
---|
[1956] | 7585 | cat >confcache <<\_ACEOF |
---|
| 7586 | # This file is a shell script that caches the results of configure |
---|
| 7587 | # tests run on this system so they can be shared between configure |
---|
| 7588 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 7589 | # It is not useful on other systems. If it contains results you don't |
---|
| 7590 | # want to keep, you may remove or edit it. |
---|
| 7591 | # |
---|
| 7592 | # config.status only pays attention to the cache file if you give it |
---|
| 7593 | # the --recheck option to rerun configure. |
---|
| 7594 | # |
---|
| 7595 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 7596 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 7597 | # following values. |
---|
| 7598 | |
---|
| 7599 | _ACEOF |
---|
| 7600 | |
---|
| 7601 | # The following way of writing the cache mishandles newlines in values, |
---|
| 7602 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 7603 | # So, don't put newlines in cache variables' values. |
---|
| 7604 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 7605 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 7606 | { |
---|
| 7607 | (set) 2>&1 | |
---|
| 7608 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 7609 | *ac_space=\ *) |
---|
| 7610 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 7611 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 7612 | sed -n \ |
---|
| 7613 | "s/'/'\\\\''/g; |
---|
| 7614 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 7615 | ;; |
---|
| 7616 | *) |
---|
| 7617 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 7618 | sed -n \ |
---|
| 7619 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 7620 | ;; |
---|
| 7621 | esac; |
---|
| 7622 | } | |
---|
| 7623 | sed ' |
---|
| 7624 | t clear |
---|
| 7625 | : clear |
---|
| 7626 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 7627 | t end |
---|
| 7628 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 7629 | : end' >>confcache |
---|
| 7630 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 7631 | if test -w $cache_file; then |
---|
| 7632 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 7633 | cat confcache >$cache_file |
---|
| 7634 | else |
---|
| 7635 | echo "not updating unwritable cache $cache_file" |
---|
| 7636 | fi |
---|
| 7637 | fi |
---|
| 7638 | rm -f confcache |
---|
| 7639 | |
---|
| 7640 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 7641 | # Let make expand exec_prefix. |
---|
| 7642 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 7643 | |
---|
| 7644 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 7645 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 7646 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 7647 | # (actually we leave an empty line to preserve line numbers). |
---|
| 7648 | if test "x$srcdir" = x.; then |
---|
| 7649 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 7650 | s/:*\$(srcdir):*/:/; |
---|
| 7651 | s/:*\${srcdir}:*/:/; |
---|
| 7652 | s/:*@srcdir@:*/:/; |
---|
| 7653 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 7654 | s/:*$//; |
---|
| 7655 | s/^[^=]*=[ ]*$//; |
---|
| 7656 | }' |
---|
| 7657 | fi |
---|
| 7658 | |
---|
| 7659 | DEFS=-DHAVE_CONFIG_H |
---|
| 7660 | |
---|
| 7661 | ac_libobjs= |
---|
| 7662 | ac_ltlibobjs= |
---|
| 7663 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 7664 | # 1. Remove the extension, and $U if already installed. |
---|
| 7665 | ac_i=`echo "$ac_i" | |
---|
| 7666 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 7667 | # 2. Add them. |
---|
| 7668 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 7669 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 7670 | done |
---|
| 7671 | LIBOBJS=$ac_libobjs |
---|
| 7672 | |
---|
| 7673 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 7674 | |
---|
| 7675 | |
---|
| 7676 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 7677 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 7678 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 7679 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 7680 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 7681 | { (exit 1); exit 1; }; } |
---|
| 7682 | fi |
---|
| 7683 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 7684 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 7685 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 7686 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 7687 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 7688 | { (exit 1); exit 1; }; } |
---|
| 7689 | fi |
---|
| 7690 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 7691 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 7692 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 7693 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 7694 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 7695 | { (exit 1); exit 1; }; } |
---|
| 7696 | fi |
---|
[3399] | 7697 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
| 7698 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 7699 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 7700 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 7701 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 7702 | { (exit 1); exit 1; }; } |
---|
| 7703 | fi |
---|
[3238] | 7704 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
| 7705 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
| 7706 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 7707 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
| 7708 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 7709 | { (exit 1); exit 1; }; } |
---|
| 7710 | fi |
---|
[2980] | 7711 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
| 7712 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 7713 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 7714 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 7715 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 7716 | { (exit 1); exit 1; }; } |
---|
| 7717 | fi |
---|
[1956] | 7718 | |
---|
| 7719 | : ${CONFIG_STATUS=./config.status} |
---|
| 7720 | ac_clean_files_save=$ac_clean_files |
---|
| 7721 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 7722 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 7723 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 7724 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 7725 | #! $SHELL |
---|
| 7726 | # Generated by $as_me. |
---|
| 7727 | # Run this file to recreate the current configuration. |
---|
| 7728 | # Compiler output produced by configure, useful for debugging |
---|
| 7729 | # configure, is in config.log if it exists. |
---|
| 7730 | |
---|
| 7731 | debug=false |
---|
| 7732 | ac_cs_recheck=false |
---|
| 7733 | ac_cs_silent=false |
---|
| 7734 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 7735 | _ACEOF |
---|
| 7736 | |
---|
| 7737 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 7738 | ## --------------------- ## |
---|
| 7739 | ## M4sh Initialization. ## |
---|
| 7740 | ## --------------------- ## |
---|
| 7741 | |
---|
| 7742 | # Be Bourne compatible |
---|
| 7743 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 7744 | emulate sh |
---|
| 7745 | NULLCMD=: |
---|
| 7746 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 7747 | # is contrary to our usage. Disable this feature. |
---|
| 7748 | alias -g '${1+"$@"}'='"$@"' |
---|
| 7749 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 7750 | set -o posix |
---|
| 7751 | fi |
---|
| 7752 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 7753 | |
---|
| 7754 | # Support unset when possible. |
---|
| 7755 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 7756 | as_unset=unset |
---|
| 7757 | else |
---|
| 7758 | as_unset=false |
---|
| 7759 | fi |
---|
| 7760 | |
---|
| 7761 | |
---|
| 7762 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 7763 | $as_unset ENV MAIL MAILPATH |
---|
| 7764 | PS1='$ ' |
---|
| 7765 | PS2='> ' |
---|
| 7766 | PS4='+ ' |
---|
| 7767 | |
---|
| 7768 | # NLS nuisances. |
---|
| 7769 | for as_var in \ |
---|
| 7770 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 7771 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 7772 | LC_TELEPHONE LC_TIME |
---|
| 7773 | do |
---|
| 7774 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 7775 | eval $as_var=C; export $as_var |
---|
| 7776 | else |
---|
| 7777 | $as_unset $as_var |
---|
| 7778 | fi |
---|
| 7779 | done |
---|
| 7780 | |
---|
| 7781 | # Required to use basename. |
---|
| 7782 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 7783 | as_expr=expr |
---|
| 7784 | else |
---|
| 7785 | as_expr=false |
---|
| 7786 | fi |
---|
| 7787 | |
---|
| 7788 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 7789 | as_basename=basename |
---|
| 7790 | else |
---|
| 7791 | as_basename=false |
---|
| 7792 | fi |
---|
| 7793 | |
---|
| 7794 | |
---|
| 7795 | # Name of the executable. |
---|
| 7796 | as_me=`$as_basename "$0" || |
---|
| 7797 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 7798 | X"$0" : 'X\(//\)$' \| \ |
---|
| 7799 | X"$0" : 'X\(/\)$' \| \ |
---|
| 7800 | . : '\(.\)' 2>/dev/null || |
---|
| 7801 | echo X/"$0" | |
---|
| 7802 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 7803 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 7804 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 7805 | s/.*/./; q'` |
---|
| 7806 | |
---|
| 7807 | |
---|
| 7808 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 7809 | # Avoid depending upon Character Ranges. |
---|
| 7810 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 7811 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 7812 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 7813 | as_cr_digits='0123456789' |
---|
| 7814 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 7815 | |
---|
| 7816 | # The user is always right. |
---|
| 7817 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 7818 | echo "#! /bin/sh" >conf$$.sh |
---|
| 7819 | echo "exit 0" >>conf$$.sh |
---|
| 7820 | chmod +x conf$$.sh |
---|
| 7821 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 7822 | PATH_SEPARATOR=';' |
---|
| 7823 | else |
---|
| 7824 | PATH_SEPARATOR=: |
---|
| 7825 | fi |
---|
| 7826 | rm -f conf$$.sh |
---|
| 7827 | fi |
---|
| 7828 | |
---|
| 7829 | |
---|
| 7830 | as_lineno_1=$LINENO |
---|
| 7831 | as_lineno_2=$LINENO |
---|
| 7832 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 7833 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 7834 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 7835 | # Find who we are. Look in the path if we contain no path at all |
---|
| 7836 | # relative or not. |
---|
| 7837 | case $0 in |
---|
| 7838 | *[\\/]* ) as_myself=$0 ;; |
---|
| 7839 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 7840 | for as_dir in $PATH |
---|
| 7841 | do |
---|
| 7842 | IFS=$as_save_IFS |
---|
| 7843 | test -z "$as_dir" && as_dir=. |
---|
| 7844 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 7845 | done |
---|
| 7846 | |
---|
| 7847 | ;; |
---|
| 7848 | esac |
---|
| 7849 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 7850 | # in which case we are not to be found in the path. |
---|
| 7851 | if test "x$as_myself" = x; then |
---|
| 7852 | as_myself=$0 |
---|
| 7853 | fi |
---|
| 7854 | if test ! -f "$as_myself"; then |
---|
| 7855 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 7856 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 7857 | { (exit 1); exit 1; }; } |
---|
| 7858 | fi |
---|
| 7859 | case $CONFIG_SHELL in |
---|
| 7860 | '') |
---|
| 7861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 7862 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 7863 | do |
---|
| 7864 | IFS=$as_save_IFS |
---|
| 7865 | test -z "$as_dir" && as_dir=. |
---|
| 7866 | for as_base in sh bash ksh sh5; do |
---|
| 7867 | case $as_dir in |
---|
| 7868 | /*) |
---|
| 7869 | if ("$as_dir/$as_base" -c ' |
---|
| 7870 | as_lineno_1=$LINENO |
---|
| 7871 | as_lineno_2=$LINENO |
---|
| 7872 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 7873 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 7874 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 7875 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 7876 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 7877 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 7878 | export CONFIG_SHELL |
---|
| 7879 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 7880 | fi;; |
---|
| 7881 | esac |
---|
| 7882 | done |
---|
| 7883 | done |
---|
| 7884 | ;; |
---|
| 7885 | esac |
---|
| 7886 | |
---|
| 7887 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 7888 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 7889 | # line-number line before each line; the second 'sed' does the real |
---|
| 7890 | # work. The second script uses 'N' to pair each line-number line |
---|
| 7891 | # with the numbered line, and appends trailing '-' during |
---|
| 7892 | # substitution so that $LINENO is not a special case at line end. |
---|
| 7893 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 7894 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 7895 | sed '=' <$as_myself | |
---|
| 7896 | sed ' |
---|
| 7897 | N |
---|
| 7898 | s,$,-, |
---|
| 7899 | : loop |
---|
| 7900 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 7901 | t loop |
---|
| 7902 | s,-$,, |
---|
| 7903 | s,^['$as_cr_digits']*\n,, |
---|
| 7904 | ' >$as_me.lineno && |
---|
| 7905 | chmod +x $as_me.lineno || |
---|
| 7906 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 7907 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 7908 | { (exit 1); exit 1; }; } |
---|
| 7909 | |
---|
| 7910 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 7911 | # (the dirname of $[0] is not the place where we might find the |
---|
| 7912 | # original and so on. Autoconf is especially sensible to this). |
---|
| 7913 | . ./$as_me.lineno |
---|
| 7914 | # Exit status is that of the last command. |
---|
| 7915 | exit |
---|
| 7916 | } |
---|
| 7917 | |
---|
| 7918 | |
---|
| 7919 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 7920 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 7921 | ' ECHO_T=' ' ;; |
---|
| 7922 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 7923 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 7924 | esac |
---|
| 7925 | |
---|
| 7926 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 7927 | as_expr=expr |
---|
| 7928 | else |
---|
| 7929 | as_expr=false |
---|
| 7930 | fi |
---|
| 7931 | |
---|
| 7932 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 7933 | echo >conf$$.file |
---|
| 7934 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 7935 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 7936 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 7937 | if test -f conf$$.exe; then |
---|
| 7938 | # Don't use ln at all; we don't have any links |
---|
| 7939 | as_ln_s='cp -p' |
---|
| 7940 | else |
---|
| 7941 | as_ln_s='ln -s' |
---|
| 7942 | fi |
---|
| 7943 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 7944 | as_ln_s=ln |
---|
| 7945 | else |
---|
| 7946 | as_ln_s='cp -p' |
---|
| 7947 | fi |
---|
| 7948 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 7949 | |
---|
| 7950 | if mkdir -p . 2>/dev/null; then |
---|
| 7951 | as_mkdir_p=: |
---|
| 7952 | else |
---|
| 7953 | test -d ./-p && rmdir ./-p |
---|
| 7954 | as_mkdir_p=false |
---|
| 7955 | fi |
---|
| 7956 | |
---|
| 7957 | as_executable_p="test -f" |
---|
| 7958 | |
---|
| 7959 | # Sed expression to map a string onto a valid CPP name. |
---|
| 7960 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 7961 | |
---|
| 7962 | # Sed expression to map a string onto a valid variable name. |
---|
| 7963 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 7964 | |
---|
| 7965 | |
---|
| 7966 | # IFS |
---|
| 7967 | # We need space, tab and new line, in precisely that order. |
---|
| 7968 | as_nl=' |
---|
| 7969 | ' |
---|
| 7970 | IFS=" $as_nl" |
---|
| 7971 | |
---|
| 7972 | # CDPATH. |
---|
| 7973 | $as_unset CDPATH |
---|
| 7974 | |
---|
| 7975 | exec 6>&1 |
---|
| 7976 | |
---|
| 7977 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 7978 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 7979 | # values after options handling. Logging --version etc. is OK. |
---|
| 7980 | exec 5>>config.log |
---|
| 7981 | { |
---|
| 7982 | echo |
---|
| 7983 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 7984 | ## Running $as_me. ## |
---|
| 7985 | _ASBOX |
---|
| 7986 | } >&5 |
---|
| 7987 | cat >&5 <<_CSEOF |
---|
| 7988 | |
---|
[3399] | 7989 | This file was extended by orxonox $as_me 0.2.1-pre-alpha, which was |
---|
[1956] | 7990 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 7991 | |
---|
| 7992 | CONFIG_FILES = $CONFIG_FILES |
---|
| 7993 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 7994 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 7995 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 7996 | $ $0 $@ |
---|
| 7997 | |
---|
| 7998 | _CSEOF |
---|
| 7999 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 8000 | echo >&5 |
---|
| 8001 | _ACEOF |
---|
| 8002 | |
---|
| 8003 | # Files that config.status was made for. |
---|
| 8004 | if test -n "$ac_config_files"; then |
---|
| 8005 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 8006 | fi |
---|
| 8007 | |
---|
| 8008 | if test -n "$ac_config_headers"; then |
---|
| 8009 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 8010 | fi |
---|
| 8011 | |
---|
| 8012 | if test -n "$ac_config_links"; then |
---|
| 8013 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 8014 | fi |
---|
| 8015 | |
---|
| 8016 | if test -n "$ac_config_commands"; then |
---|
| 8017 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 8018 | fi |
---|
| 8019 | |
---|
| 8020 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8021 | |
---|
| 8022 | ac_cs_usage="\ |
---|
| 8023 | \`$as_me' instantiates files from templates according to the |
---|
| 8024 | current configuration. |
---|
| 8025 | |
---|
| 8026 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 8027 | |
---|
| 8028 | -h, --help print this help, then exit |
---|
| 8029 | -V, --version print version number, then exit |
---|
| 8030 | -q, --quiet do not print progress messages |
---|
| 8031 | -d, --debug don't remove temporary files |
---|
| 8032 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 8033 | --file=FILE[:TEMPLATE] |
---|
| 8034 | instantiate the configuration file FILE |
---|
| 8035 | --header=FILE[:TEMPLATE] |
---|
| 8036 | instantiate the configuration header FILE |
---|
| 8037 | |
---|
| 8038 | Configuration files: |
---|
| 8039 | $config_files |
---|
| 8040 | |
---|
| 8041 | Configuration headers: |
---|
| 8042 | $config_headers |
---|
| 8043 | |
---|
| 8044 | Configuration commands: |
---|
| 8045 | $config_commands |
---|
| 8046 | |
---|
| 8047 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 8048 | _ACEOF |
---|
| 8049 | |
---|
| 8050 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8051 | ac_cs_version="\\ |
---|
[3399] | 8052 | orxonox config.status 0.2.1-pre-alpha |
---|
[1956] | 8053 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 8054 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 8055 | |
---|
| 8056 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 8057 | This config.status script is free software; the Free Software Foundation |
---|
| 8058 | gives unlimited permission to copy, distribute and modify it." |
---|
| 8059 | srcdir=$srcdir |
---|
| 8060 | INSTALL="$INSTALL" |
---|
| 8061 | _ACEOF |
---|
| 8062 | |
---|
| 8063 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8064 | # If no file are specified by the user, then we need to provide default |
---|
| 8065 | # value. By we need to know if files were specified by the user. |
---|
| 8066 | ac_need_defaults=: |
---|
| 8067 | while test $# != 0 |
---|
| 8068 | do |
---|
| 8069 | case $1 in |
---|
| 8070 | --*=*) |
---|
| 8071 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 8072 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 8073 | ac_shift=: |
---|
| 8074 | ;; |
---|
| 8075 | -*) |
---|
| 8076 | ac_option=$1 |
---|
| 8077 | ac_optarg=$2 |
---|
| 8078 | ac_shift=shift |
---|
| 8079 | ;; |
---|
| 8080 | *) # This is not an option, so the user has probably given explicit |
---|
| 8081 | # arguments. |
---|
| 8082 | ac_option=$1 |
---|
| 8083 | ac_need_defaults=false;; |
---|
| 8084 | esac |
---|
| 8085 | |
---|
| 8086 | case $ac_option in |
---|
| 8087 | # Handling of the options. |
---|
| 8088 | _ACEOF |
---|
| 8089 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8090 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 8091 | ac_cs_recheck=: ;; |
---|
| 8092 | --version | --vers* | -V ) |
---|
| 8093 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 8094 | --he | --h) |
---|
| 8095 | # Conflict between --help and --header |
---|
| 8096 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 8097 | Try \`$0 --help' for more information." >&5 |
---|
| 8098 | echo "$as_me: error: ambiguous option: $1 |
---|
| 8099 | Try \`$0 --help' for more information." >&2;} |
---|
| 8100 | { (exit 1); exit 1; }; };; |
---|
| 8101 | --help | --hel | -h ) |
---|
| 8102 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 8103 | --debug | --d* | -d ) |
---|
| 8104 | debug=: ;; |
---|
| 8105 | --file | --fil | --fi | --f ) |
---|
| 8106 | $ac_shift |
---|
| 8107 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 8108 | ac_need_defaults=false;; |
---|
| 8109 | --header | --heade | --head | --hea ) |
---|
| 8110 | $ac_shift |
---|
| 8111 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 8112 | ac_need_defaults=false;; |
---|
| 8113 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 8114 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 8115 | ac_cs_silent=: ;; |
---|
| 8116 | |
---|
| 8117 | # This is an error. |
---|
| 8118 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 8119 | Try \`$0 --help' for more information." >&5 |
---|
| 8120 | echo "$as_me: error: unrecognized option: $1 |
---|
| 8121 | Try \`$0 --help' for more information." >&2;} |
---|
| 8122 | { (exit 1); exit 1; }; } ;; |
---|
| 8123 | |
---|
| 8124 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 8125 | |
---|
| 8126 | esac |
---|
| 8127 | shift |
---|
| 8128 | done |
---|
| 8129 | |
---|
| 8130 | ac_configure_extra_args= |
---|
| 8131 | |
---|
| 8132 | if $ac_cs_silent; then |
---|
| 8133 | exec 6>/dev/null |
---|
| 8134 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 8135 | fi |
---|
| 8136 | |
---|
| 8137 | _ACEOF |
---|
| 8138 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8139 | if \$ac_cs_recheck; then |
---|
| 8140 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 8141 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 8142 | fi |
---|
| 8143 | |
---|
| 8144 | _ACEOF |
---|
| 8145 | |
---|
| 8146 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8147 | # |
---|
| 8148 | # INIT-COMMANDS section. |
---|
| 8149 | # |
---|
| 8150 | |
---|
| 8151 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 8152 | |
---|
| 8153 | _ACEOF |
---|
| 8154 | |
---|
| 8155 | |
---|
| 8156 | |
---|
| 8157 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8158 | for ac_config_target in $ac_config_targets |
---|
| 8159 | do |
---|
| 8160 | case "$ac_config_target" in |
---|
| 8161 | # Handling of arguments. |
---|
| 8162 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
[3399] | 8163 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
| 8164 | "src/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/importer/Makefile" ;; |
---|
[3238] | 8165 | "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;; |
---|
| 8166 | "src/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;; |
---|
[1956] | 8167 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 8168 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 8169 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 8170 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 8171 | { (exit 1); exit 1; }; };; |
---|
| 8172 | esac |
---|
| 8173 | done |
---|
| 8174 | |
---|
| 8175 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 8176 | # then the envvar interface is used. Set only those that are not. |
---|
| 8177 | # We use the long form for the default assignment because of an extremely |
---|
| 8178 | # bizarre bug on SunOS 4.1.3. |
---|
| 8179 | if $ac_need_defaults; then |
---|
| 8180 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 8181 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 8182 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 8183 | fi |
---|
| 8184 | |
---|
| 8185 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 8186 | # simply because there is no reason to put it here, and in addition, |
---|
| 8187 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 8188 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 8189 | $debug || |
---|
| 8190 | { |
---|
| 8191 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 8192 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 8193 | } |
---|
| 8194 | |
---|
| 8195 | # Create a (secure) tmp directory for tmp files. |
---|
| 8196 | |
---|
| 8197 | { |
---|
| 8198 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 8199 | test -n "$tmp" && test -d "$tmp" |
---|
| 8200 | } || |
---|
| 8201 | { |
---|
| 8202 | tmp=./confstat$$-$RANDOM |
---|
| 8203 | (umask 077 && mkdir $tmp) |
---|
| 8204 | } || |
---|
| 8205 | { |
---|
| 8206 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 8207 | { (exit 1); exit 1; } |
---|
| 8208 | } |
---|
| 8209 | |
---|
| 8210 | _ACEOF |
---|
| 8211 | |
---|
| 8212 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8213 | |
---|
| 8214 | # |
---|
| 8215 | # CONFIG_FILES section. |
---|
| 8216 | # |
---|
| 8217 | |
---|
| 8218 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 8219 | # This happens for instance when ./config.status config.h |
---|
| 8220 | if test -n "\$CONFIG_FILES"; then |
---|
| 8221 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 8222 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 8223 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 8224 | s,@SHELL@,$SHELL,;t t |
---|
| 8225 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 8226 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 8227 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 8228 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 8229 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 8230 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 8231 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 8232 | s,@prefix@,$prefix,;t t |
---|
| 8233 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 8234 | s,@bindir@,$bindir,;t t |
---|
| 8235 | s,@sbindir@,$sbindir,;t t |
---|
| 8236 | s,@libexecdir@,$libexecdir,;t t |
---|
| 8237 | s,@datadir@,$datadir,;t t |
---|
| 8238 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 8239 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 8240 | s,@localstatedir@,$localstatedir,;t t |
---|
| 8241 | s,@libdir@,$libdir,;t t |
---|
| 8242 | s,@includedir@,$includedir,;t t |
---|
| 8243 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 8244 | s,@infodir@,$infodir,;t t |
---|
| 8245 | s,@mandir@,$mandir,;t t |
---|
| 8246 | s,@build_alias@,$build_alias,;t t |
---|
| 8247 | s,@host_alias@,$host_alias,;t t |
---|
| 8248 | s,@target_alias@,$target_alias,;t t |
---|
| 8249 | s,@DEFS@,$DEFS,;t t |
---|
| 8250 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 8251 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 8252 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 8253 | s,@LIBS@,$LIBS,;t t |
---|
[2980] | 8254 | s,@build@,$build,;t t |
---|
| 8255 | s,@build_cpu@,$build_cpu,;t t |
---|
| 8256 | s,@build_vendor@,$build_vendor,;t t |
---|
| 8257 | s,@build_os@,$build_os,;t t |
---|
| 8258 | s,@host@,$host,;t t |
---|
| 8259 | s,@host_cpu@,$host_cpu,;t t |
---|
| 8260 | s,@host_vendor@,$host_vendor,;t t |
---|
| 8261 | s,@host_os@,$host_os,;t t |
---|
| 8262 | s,@target@,$target,;t t |
---|
| 8263 | s,@target_cpu@,$target_cpu,;t t |
---|
| 8264 | s,@target_vendor@,$target_vendor,;t t |
---|
| 8265 | s,@target_os@,$target_os,;t t |
---|
[1956] | 8266 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 8267 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 8268 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 8269 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 8270 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 8271 | s,@VERSION@,$VERSION,;t t |
---|
| 8272 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 8273 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 8274 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 8275 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 8276 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 8277 | s,@AMTAR@,$AMTAR,;t t |
---|
| 8278 | s,@install_sh@,$install_sh,;t t |
---|
| 8279 | s,@STRIP@,$STRIP,;t t |
---|
| 8280 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 8281 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
[2706] | 8282 | s,@mkdir_p@,$mkdir_p,;t t |
---|
[1956] | 8283 | s,@AWK@,$AWK,;t t |
---|
| 8284 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 8285 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
| 8286 | s,@CXX@,$CXX,;t t |
---|
| 8287 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 8288 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 8289 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 8290 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 8291 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 8292 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 8293 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 8294 | s,@am__include@,$am__include,;t t |
---|
| 8295 | s,@am__quote@,$am__quote,;t t |
---|
| 8296 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 8297 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 8298 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 8299 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 8300 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 8301 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
| 8302 | s,@CC@,$CC,;t t |
---|
| 8303 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 8304 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 8305 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 8306 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 8307 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 8308 | s,@CPP@,$CPP,;t t |
---|
| 8309 | s,@EGREP@,$EGREP,;t t |
---|
[3238] | 8310 | s,@DEBUG@,$DEBUG,;t t |
---|
[3399] | 8311 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
| 8312 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
[3238] | 8313 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
| 8314 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
| 8315 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
[2989] | 8316 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[3238] | 8317 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
[2980] | 8318 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
| 8319 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
| 8320 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
[1956] | 8321 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 8322 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 8323 | CEOF |
---|
| 8324 | |
---|
| 8325 | _ACEOF |
---|
| 8326 | |
---|
| 8327 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8328 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 8329 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 8330 | ac_max_sed_lines=48 |
---|
| 8331 | ac_sed_frag=1 # Number of current file. |
---|
| 8332 | ac_beg=1 # First line for current file. |
---|
| 8333 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 8334 | ac_more_lines=: |
---|
| 8335 | ac_sed_cmds= |
---|
| 8336 | while $ac_more_lines; do |
---|
| 8337 | if test $ac_beg -gt 1; then |
---|
| 8338 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 8339 | else |
---|
| 8340 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 8341 | fi |
---|
| 8342 | if test ! -s $tmp/subs.frag; then |
---|
| 8343 | ac_more_lines=false |
---|
| 8344 | else |
---|
| 8345 | # The purpose of the label and of the branching condition is to |
---|
| 8346 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 8347 | # is no need to browse any of the substitutions). |
---|
| 8348 | # These are the two extra sed commands mentioned above. |
---|
| 8349 | (echo ':t |
---|
| 8350 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 8351 | if test -z "$ac_sed_cmds"; then |
---|
| 8352 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 8353 | else |
---|
| 8354 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 8355 | fi |
---|
| 8356 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 8357 | ac_beg=$ac_end |
---|
| 8358 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 8359 | fi |
---|
| 8360 | done |
---|
| 8361 | if test -z "$ac_sed_cmds"; then |
---|
| 8362 | ac_sed_cmds=cat |
---|
| 8363 | fi |
---|
| 8364 | fi # test -n "$CONFIG_FILES" |
---|
| 8365 | |
---|
| 8366 | _ACEOF |
---|
| 8367 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8368 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 8369 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 8370 | case $ac_file in |
---|
| 8371 | - | *:- | *:-:* ) # input from stdin |
---|
| 8372 | cat >$tmp/stdin |
---|
| 8373 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8374 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 8375 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8376 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 8377 | * ) ac_file_in=$ac_file.in ;; |
---|
| 8378 | esac |
---|
| 8379 | |
---|
| 8380 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 8381 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 8382 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8383 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 8384 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 8385 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 8386 | . : '\(.\)' 2>/dev/null || |
---|
| 8387 | echo X"$ac_file" | |
---|
| 8388 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8389 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8390 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8391 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8392 | s/.*/./; q'` |
---|
| 8393 | { if $as_mkdir_p; then |
---|
| 8394 | mkdir -p "$ac_dir" |
---|
| 8395 | else |
---|
| 8396 | as_dir="$ac_dir" |
---|
| 8397 | as_dirs= |
---|
| 8398 | while test ! -d "$as_dir"; do |
---|
| 8399 | as_dirs="$as_dir $as_dirs" |
---|
| 8400 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 8401 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8402 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 8403 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 8404 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 8405 | . : '\(.\)' 2>/dev/null || |
---|
| 8406 | echo X"$as_dir" | |
---|
| 8407 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8408 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8409 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8410 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8411 | s/.*/./; q'` |
---|
| 8412 | done |
---|
| 8413 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 8414 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 8415 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 8416 | { (exit 1); exit 1; }; }; } |
---|
| 8417 | |
---|
| 8418 | ac_builddir=. |
---|
| 8419 | |
---|
| 8420 | if test "$ac_dir" != .; then |
---|
| 8421 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 8422 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 8423 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 8424 | else |
---|
| 8425 | ac_dir_suffix= ac_top_builddir= |
---|
| 8426 | fi |
---|
| 8427 | |
---|
| 8428 | case $srcdir in |
---|
| 8429 | .) # No --srcdir option. We are building in place. |
---|
| 8430 | ac_srcdir=. |
---|
| 8431 | if test -z "$ac_top_builddir"; then |
---|
| 8432 | ac_top_srcdir=. |
---|
| 8433 | else |
---|
| 8434 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 8435 | fi ;; |
---|
| 8436 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 8437 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 8438 | ac_top_srcdir=$srcdir ;; |
---|
| 8439 | *) # Relative path. |
---|
| 8440 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 8441 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 8442 | esac |
---|
| 8443 | |
---|
| 8444 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 8445 | # the directories may not exist. |
---|
| 8446 | case `pwd` in |
---|
| 8447 | .) ac_abs_builddir="$ac_dir";; |
---|
| 8448 | *) |
---|
| 8449 | case "$ac_dir" in |
---|
| 8450 | .) ac_abs_builddir=`pwd`;; |
---|
| 8451 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 8452 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 8453 | esac;; |
---|
| 8454 | esac |
---|
| 8455 | case $ac_abs_builddir in |
---|
| 8456 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 8457 | *) |
---|
| 8458 | case ${ac_top_builddir}. in |
---|
| 8459 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 8460 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 8461 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 8462 | esac;; |
---|
| 8463 | esac |
---|
| 8464 | case $ac_abs_builddir in |
---|
| 8465 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 8466 | *) |
---|
| 8467 | case $ac_srcdir in |
---|
| 8468 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 8469 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 8470 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 8471 | esac;; |
---|
| 8472 | esac |
---|
| 8473 | case $ac_abs_builddir in |
---|
| 8474 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 8475 | *) |
---|
| 8476 | case $ac_top_srcdir in |
---|
| 8477 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 8478 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 8479 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 8480 | esac;; |
---|
| 8481 | esac |
---|
| 8482 | |
---|
| 8483 | |
---|
| 8484 | case $INSTALL in |
---|
| 8485 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 8486 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 8487 | esac |
---|
| 8488 | |
---|
| 8489 | if test x"$ac_file" != x-; then |
---|
| 8490 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 8491 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 8492 | rm -f "$ac_file" |
---|
| 8493 | fi |
---|
| 8494 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 8495 | # use $as_me), people would be surprised to read: |
---|
| 8496 | # /* config.h. Generated by config.status. */ |
---|
| 8497 | if test x"$ac_file" = x-; then |
---|
| 8498 | configure_input= |
---|
| 8499 | else |
---|
| 8500 | configure_input="$ac_file. " |
---|
| 8501 | fi |
---|
| 8502 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 8503 | sed 's,.*/,,'` by configure." |
---|
| 8504 | |
---|
| 8505 | # First look for the input files in the build tree, otherwise in the |
---|
| 8506 | # src tree. |
---|
| 8507 | ac_file_inputs=`IFS=: |
---|
| 8508 | for f in $ac_file_in; do |
---|
| 8509 | case $f in |
---|
| 8510 | -) echo $tmp/stdin ;; |
---|
| 8511 | [\\/$]*) |
---|
| 8512 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 8513 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 8514 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 8515 | { (exit 1); exit 1; }; } |
---|
| 8516 | echo "$f";; |
---|
| 8517 | *) # Relative |
---|
| 8518 | if test -f "$f"; then |
---|
| 8519 | # Build tree |
---|
| 8520 | echo "$f" |
---|
| 8521 | elif test -f "$srcdir/$f"; then |
---|
| 8522 | # Source tree |
---|
| 8523 | echo "$srcdir/$f" |
---|
| 8524 | else |
---|
| 8525 | # /dev/null tree |
---|
| 8526 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 8527 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 8528 | { (exit 1); exit 1; }; } |
---|
| 8529 | fi;; |
---|
| 8530 | esac |
---|
| 8531 | done` || { (exit 1); exit 1; } |
---|
| 8532 | _ACEOF |
---|
| 8533 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8534 | sed "$ac_vpsub |
---|
| 8535 | $extrasub |
---|
| 8536 | _ACEOF |
---|
| 8537 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8538 | :t |
---|
| 8539 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 8540 | s,@configure_input@,$configure_input,;t t |
---|
| 8541 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 8542 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 8543 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 8544 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 8545 | s,@builddir@,$ac_builddir,;t t |
---|
| 8546 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 8547 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 8548 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 8549 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 8550 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 8551 | rm -f $tmp/stdin |
---|
| 8552 | if test x"$ac_file" != x-; then |
---|
| 8553 | mv $tmp/out $ac_file |
---|
| 8554 | else |
---|
| 8555 | cat $tmp/out |
---|
| 8556 | rm -f $tmp/out |
---|
| 8557 | fi |
---|
| 8558 | |
---|
| 8559 | done |
---|
| 8560 | _ACEOF |
---|
| 8561 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8562 | |
---|
| 8563 | # |
---|
| 8564 | # CONFIG_HEADER section. |
---|
| 8565 | # |
---|
| 8566 | |
---|
| 8567 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 8568 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 8569 | # |
---|
| 8570 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 8571 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 8572 | ac_dB='[ ].*$,\1#\2' |
---|
| 8573 | ac_dC=' ' |
---|
| 8574 | ac_dD=',;t' |
---|
| 8575 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 8576 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 8577 | ac_uB='$,\1#\2define\3' |
---|
| 8578 | ac_uC=' ' |
---|
| 8579 | ac_uD=',;t' |
---|
| 8580 | |
---|
| 8581 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 8582 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 8583 | case $ac_file in |
---|
| 8584 | - | *:- | *:-:* ) # input from stdin |
---|
| 8585 | cat >$tmp/stdin |
---|
| 8586 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8587 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 8588 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8589 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 8590 | * ) ac_file_in=$ac_file.in ;; |
---|
| 8591 | esac |
---|
| 8592 | |
---|
| 8593 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 8594 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 8595 | |
---|
| 8596 | # First look for the input files in the build tree, otherwise in the |
---|
| 8597 | # src tree. |
---|
| 8598 | ac_file_inputs=`IFS=: |
---|
| 8599 | for f in $ac_file_in; do |
---|
| 8600 | case $f in |
---|
| 8601 | -) echo $tmp/stdin ;; |
---|
| 8602 | [\\/$]*) |
---|
| 8603 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 8604 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 8605 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 8606 | { (exit 1); exit 1; }; } |
---|
| 8607 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 8608 | echo "$f";; |
---|
| 8609 | *) # Relative |
---|
| 8610 | if test -f "$f"; then |
---|
| 8611 | # Build tree |
---|
| 8612 | echo "$f" |
---|
| 8613 | elif test -f "$srcdir/$f"; then |
---|
| 8614 | # Source tree |
---|
| 8615 | echo "$srcdir/$f" |
---|
| 8616 | else |
---|
| 8617 | # /dev/null tree |
---|
| 8618 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 8619 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 8620 | { (exit 1); exit 1; }; } |
---|
| 8621 | fi;; |
---|
| 8622 | esac |
---|
| 8623 | done` || { (exit 1); exit 1; } |
---|
| 8624 | # Remove the trailing spaces. |
---|
| 8625 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 8626 | |
---|
| 8627 | _ACEOF |
---|
| 8628 | |
---|
| 8629 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 8630 | # `conftest.undefs', that substitutes the proper values into |
---|
| 8631 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 8632 | # templates, and the second `#undef' templates. |
---|
| 8633 | # And first: Protect against being on the right side of a sed subst in |
---|
| 8634 | # config.status. Protect against being in an unquoted here document |
---|
| 8635 | # in config.status. |
---|
| 8636 | rm -f conftest.defines conftest.undefs |
---|
| 8637 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 8638 | # Putting comments in sed scripts is not portable. |
---|
| 8639 | # |
---|
| 8640 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 8641 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 8642 | # See the Autoconf documentation for `clear'. |
---|
| 8643 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 8644 | s/[\\&,]/\\&/g |
---|
| 8645 | s,[\\$`],\\&,g |
---|
| 8646 | t clear |
---|
| 8647 | : clear |
---|
| 8648 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 8649 | t end |
---|
| 8650 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 8651 | : end |
---|
| 8652 | _ACEOF |
---|
| 8653 | # If some macros were called several times there might be several times |
---|
| 8654 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 8655 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 8656 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 8657 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 8658 | rm -f confdef2sed.sed |
---|
| 8659 | |
---|
| 8660 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 8661 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 8662 | # on some systems where configure will not decide to define it. |
---|
| 8663 | cat >>conftest.undefs <<\_ACEOF |
---|
| 8664 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 8665 | _ACEOF |
---|
| 8666 | |
---|
| 8667 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 8668 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 8669 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 8670 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 8671 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 8672 | echo ' :' >>$CONFIG_STATUS |
---|
| 8673 | rm -f conftest.tail |
---|
| 8674 | while grep . conftest.defines >/dev/null |
---|
| 8675 | do |
---|
| 8676 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 8677 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 8678 | # Speed up: don't consider the non `#define' lines. |
---|
| 8679 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 8680 | # Work around the forget-to-reset-the-flag bug. |
---|
| 8681 | echo 't clr' >>$CONFIG_STATUS |
---|
| 8682 | echo ': clr' >>$CONFIG_STATUS |
---|
| 8683 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 8684 | echo 'CEOF |
---|
| 8685 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 8686 | rm -f $tmp/in |
---|
| 8687 | mv $tmp/out $tmp/in |
---|
| 8688 | ' >>$CONFIG_STATUS |
---|
| 8689 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 8690 | rm -f conftest.defines |
---|
| 8691 | mv conftest.tail conftest.defines |
---|
| 8692 | done |
---|
| 8693 | rm -f conftest.defines |
---|
| 8694 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 8695 | echo >>$CONFIG_STATUS |
---|
| 8696 | |
---|
| 8697 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 8698 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 8699 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 8700 | rm -f conftest.tail |
---|
| 8701 | while grep . conftest.undefs >/dev/null |
---|
| 8702 | do |
---|
| 8703 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 8704 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 8705 | # Speed up: don't consider the non `#undef' |
---|
| 8706 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 8707 | # Work around the forget-to-reset-the-flag bug. |
---|
| 8708 | echo 't clr' >>$CONFIG_STATUS |
---|
| 8709 | echo ': clr' >>$CONFIG_STATUS |
---|
| 8710 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 8711 | echo 'CEOF |
---|
| 8712 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 8713 | rm -f $tmp/in |
---|
| 8714 | mv $tmp/out $tmp/in |
---|
| 8715 | ' >>$CONFIG_STATUS |
---|
| 8716 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 8717 | rm -f conftest.undefs |
---|
| 8718 | mv conftest.tail conftest.undefs |
---|
| 8719 | done |
---|
| 8720 | rm -f conftest.undefs |
---|
| 8721 | |
---|
| 8722 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8723 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 8724 | # use $as_me), people would be surprised to read: |
---|
| 8725 | # /* config.h. Generated by config.status. */ |
---|
| 8726 | if test x"$ac_file" = x-; then |
---|
| 8727 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 8728 | else |
---|
| 8729 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 8730 | fi |
---|
| 8731 | cat $tmp/in >>$tmp/config.h |
---|
| 8732 | rm -f $tmp/in |
---|
| 8733 | if test x"$ac_file" != x-; then |
---|
| 8734 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 8735 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 8736 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 8737 | else |
---|
| 8738 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 8739 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8740 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 8741 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 8742 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 8743 | . : '\(.\)' 2>/dev/null || |
---|
| 8744 | echo X"$ac_file" | |
---|
| 8745 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8746 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8747 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8748 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8749 | s/.*/./; q'` |
---|
| 8750 | { if $as_mkdir_p; then |
---|
| 8751 | mkdir -p "$ac_dir" |
---|
| 8752 | else |
---|
| 8753 | as_dir="$ac_dir" |
---|
| 8754 | as_dirs= |
---|
| 8755 | while test ! -d "$as_dir"; do |
---|
| 8756 | as_dirs="$as_dir $as_dirs" |
---|
| 8757 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 8758 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8759 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 8760 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 8761 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 8762 | . : '\(.\)' 2>/dev/null || |
---|
| 8763 | echo X"$as_dir" | |
---|
| 8764 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8765 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8766 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8767 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8768 | s/.*/./; q'` |
---|
| 8769 | done |
---|
| 8770 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 8771 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 8772 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 8773 | { (exit 1); exit 1; }; }; } |
---|
| 8774 | |
---|
| 8775 | rm -f $ac_file |
---|
| 8776 | mv $tmp/config.h $ac_file |
---|
| 8777 | fi |
---|
| 8778 | else |
---|
| 8779 | cat $tmp/config.h |
---|
| 8780 | rm -f $tmp/config.h |
---|
| 8781 | fi |
---|
| 8782 | # Compute $ac_file's index in $config_headers. |
---|
| 8783 | _am_stamp_count=1 |
---|
| 8784 | for _am_header in $config_headers :; do |
---|
| 8785 | case $_am_header in |
---|
| 8786 | $ac_file | $ac_file:* ) |
---|
| 8787 | break ;; |
---|
| 8788 | * ) |
---|
| 8789 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 8790 | esac |
---|
| 8791 | done |
---|
| 8792 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 8793 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8794 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 8795 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 8796 | X$ac_file : 'X\(/\)' \| \ |
---|
| 8797 | . : '\(.\)' 2>/dev/null || |
---|
| 8798 | echo X$ac_file | |
---|
| 8799 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8800 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8801 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8802 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8803 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 8804 | done |
---|
| 8805 | _ACEOF |
---|
| 8806 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8807 | |
---|
| 8808 | # |
---|
| 8809 | # CONFIG_COMMANDS section. |
---|
| 8810 | # |
---|
| 8811 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 8812 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 8813 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 8814 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 8815 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8816 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 8817 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 8818 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 8819 | . : '\(.\)' 2>/dev/null || |
---|
| 8820 | echo X"$ac_dest" | |
---|
| 8821 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8822 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8823 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8824 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8825 | s/.*/./; q'` |
---|
| 8826 | { if $as_mkdir_p; then |
---|
| 8827 | mkdir -p "$ac_dir" |
---|
| 8828 | else |
---|
| 8829 | as_dir="$ac_dir" |
---|
| 8830 | as_dirs= |
---|
| 8831 | while test ! -d "$as_dir"; do |
---|
| 8832 | as_dirs="$as_dir $as_dirs" |
---|
| 8833 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 8834 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8835 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 8836 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 8837 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 8838 | . : '\(.\)' 2>/dev/null || |
---|
| 8839 | echo X"$as_dir" | |
---|
| 8840 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8841 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8842 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8843 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8844 | s/.*/./; q'` |
---|
| 8845 | done |
---|
| 8846 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 8847 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 8848 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 8849 | { (exit 1); exit 1; }; }; } |
---|
| 8850 | |
---|
| 8851 | ac_builddir=. |
---|
| 8852 | |
---|
| 8853 | if test "$ac_dir" != .; then |
---|
| 8854 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 8855 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 8856 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 8857 | else |
---|
| 8858 | ac_dir_suffix= ac_top_builddir= |
---|
| 8859 | fi |
---|
| 8860 | |
---|
| 8861 | case $srcdir in |
---|
| 8862 | .) # No --srcdir option. We are building in place. |
---|
| 8863 | ac_srcdir=. |
---|
| 8864 | if test -z "$ac_top_builddir"; then |
---|
| 8865 | ac_top_srcdir=. |
---|
| 8866 | else |
---|
| 8867 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 8868 | fi ;; |
---|
| 8869 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 8870 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 8871 | ac_top_srcdir=$srcdir ;; |
---|
| 8872 | *) # Relative path. |
---|
| 8873 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 8874 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 8875 | esac |
---|
| 8876 | |
---|
| 8877 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 8878 | # the directories may not exist. |
---|
| 8879 | case `pwd` in |
---|
| 8880 | .) ac_abs_builddir="$ac_dir";; |
---|
| 8881 | *) |
---|
| 8882 | case "$ac_dir" in |
---|
| 8883 | .) ac_abs_builddir=`pwd`;; |
---|
| 8884 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 8885 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 8886 | esac;; |
---|
| 8887 | esac |
---|
| 8888 | case $ac_abs_builddir in |
---|
| 8889 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 8890 | *) |
---|
| 8891 | case ${ac_top_builddir}. in |
---|
| 8892 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 8893 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 8894 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 8895 | esac;; |
---|
| 8896 | esac |
---|
| 8897 | case $ac_abs_builddir in |
---|
| 8898 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 8899 | *) |
---|
| 8900 | case $ac_srcdir in |
---|
| 8901 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 8902 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 8903 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 8904 | esac;; |
---|
| 8905 | esac |
---|
| 8906 | case $ac_abs_builddir in |
---|
| 8907 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 8908 | *) |
---|
| 8909 | case $ac_top_srcdir in |
---|
| 8910 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 8911 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 8912 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 8913 | esac;; |
---|
| 8914 | esac |
---|
| 8915 | |
---|
| 8916 | |
---|
| 8917 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 8918 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 8919 | case $ac_dest in |
---|
| 8920 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 8921 | # Strip MF so we end up with the name of the file. |
---|
| 8922 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 8923 | # Check whether this is an Automake generated Makefile or not. |
---|
| 8924 | # We used to match only the files named `Makefile.in', but |
---|
| 8925 | # some people rename them; so instead we look at the file content. |
---|
| 8926 | # Grep'ing the first line is not enough: some people post-process |
---|
| 8927 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 8928 | # So let's grep whole file. |
---|
| 8929 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 8930 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 8931 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8932 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 8933 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 8934 | X"$mf" : 'X\(/\)' \| \ |
---|
| 8935 | . : '\(.\)' 2>/dev/null || |
---|
| 8936 | echo X"$mf" | |
---|
| 8937 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8938 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8939 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8940 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8941 | s/.*/./; q'` |
---|
| 8942 | else |
---|
| 8943 | continue |
---|
| 8944 | fi |
---|
| 8945 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 8946 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 8947 | # running `make'. |
---|
[2819] | 8948 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
[1956] | 8949 | test -z "$DEPDIR" && continue |
---|
| 8950 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
[2819] | 8951 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
[1956] | 8952 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 8953 | # We invoke sed twice because it is the simplest approach to |
---|
| 8954 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
[2819] | 8955 | for file in `sed -n ' |
---|
[1956] | 8956 | /^DEP_FILES = .*\\\\$/ { |
---|
| 8957 | s/^DEP_FILES = // |
---|
| 8958 | :loop |
---|
| 8959 | s/\\\\$// |
---|
| 8960 | p |
---|
| 8961 | n |
---|
| 8962 | /\\\\$/ b loop |
---|
| 8963 | p |
---|
| 8964 | } |
---|
| 8965 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 8966 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 8967 | # Make sure the directory exists. |
---|
| 8968 | test -f "$dirpart/$file" && continue |
---|
| 8969 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 8970 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8971 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 8972 | X"$file" : 'X\(//\)$' \| \ |
---|
| 8973 | X"$file" : 'X\(/\)' \| \ |
---|
| 8974 | . : '\(.\)' 2>/dev/null || |
---|
| 8975 | echo X"$file" | |
---|
| 8976 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8977 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8978 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8979 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8980 | s/.*/./; q'` |
---|
| 8981 | { if $as_mkdir_p; then |
---|
| 8982 | mkdir -p $dirpart/$fdir |
---|
| 8983 | else |
---|
| 8984 | as_dir=$dirpart/$fdir |
---|
| 8985 | as_dirs= |
---|
| 8986 | while test ! -d "$as_dir"; do |
---|
| 8987 | as_dirs="$as_dir $as_dirs" |
---|
| 8988 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 8989 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 8990 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 8991 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 8992 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 8993 | . : '\(.\)' 2>/dev/null || |
---|
| 8994 | echo X"$as_dir" | |
---|
| 8995 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 8996 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 8997 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 8998 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 8999 | s/.*/./; q'` |
---|
| 9000 | done |
---|
| 9001 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9002 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 9003 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 9004 | { (exit 1); exit 1; }; }; } |
---|
| 9005 | |
---|
| 9006 | # echo "creating $dirpart/$file" |
---|
| 9007 | echo '# dummy' > "$dirpart/$file" |
---|
| 9008 | done |
---|
| 9009 | done |
---|
| 9010 | ;; |
---|
| 9011 | esac |
---|
| 9012 | done |
---|
| 9013 | _ACEOF |
---|
| 9014 | |
---|
| 9015 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9016 | |
---|
| 9017 | { (exit 0); exit 0; } |
---|
| 9018 | _ACEOF |
---|
| 9019 | chmod +x $CONFIG_STATUS |
---|
| 9020 | ac_clean_files=$ac_clean_files_save |
---|
| 9021 | |
---|
| 9022 | |
---|
| 9023 | # configure is writing to config.log, and then calls config.status. |
---|
| 9024 | # config.status does its own redirection, appending to config.log. |
---|
| 9025 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 9026 | # by configure, so config.status won't be able to write to it; its |
---|
| 9027 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 9028 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 9029 | # appended to by config.status. When coming back to configure, we |
---|
| 9030 | # need to make the FD available again. |
---|
| 9031 | if test "$no_create" != yes; then |
---|
| 9032 | ac_cs_success=: |
---|
| 9033 | ac_config_status_args= |
---|
| 9034 | test "$silent" = yes && |
---|
| 9035 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 9036 | exec 5>/dev/null |
---|
| 9037 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 9038 | exec 5>>config.log |
---|
| 9039 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 9040 | # would make configure fail if this is the last instruction. |
---|
| 9041 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 9042 | fi |
---|
| 9043 | |
---|