[1956] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[3243] | 3 | # Generated by GNU Autoconf 2.59 for orxonox 0.2.1-pre-alpha. |
---|
[1956] | 4 | # |
---|
[3240] | 5 | # Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
[1956] | 6 | # |
---|
| 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 8 | # This configure script is free software; the Free Software Foundation |
---|
| 9 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 10 | ## --------------------- ## |
---|
| 11 | ## M4sh Initialization. ## |
---|
| 12 | ## --------------------- ## |
---|
[1853] | 13 | |
---|
[1956] | 14 | # Be Bourne compatible |
---|
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 16 | emulate sh |
---|
| 17 | NULLCMD=: |
---|
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 19 | # is contrary to our usage. Disable this feature. |
---|
| 20 | alias -g '${1+"$@"}'='"$@"' |
---|
| 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 22 | set -o posix |
---|
| 23 | fi |
---|
| 24 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
[1853] | 25 | |
---|
[1956] | 26 | # Support unset when possible. |
---|
| 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 28 | as_unset=unset |
---|
| 29 | else |
---|
| 30 | as_unset=false |
---|
| 31 | fi |
---|
[1853] | 32 | |
---|
| 33 | |
---|
[1956] | 34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 35 | $as_unset ENV MAIL MAILPATH |
---|
| 36 | PS1='$ ' |
---|
| 37 | PS2='> ' |
---|
| 38 | PS4='+ ' |
---|
[1853] | 39 | |
---|
[1956] | 40 | # NLS nuisances. |
---|
| 41 | for as_var in \ |
---|
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 44 | LC_TELEPHONE LC_TIME |
---|
| 45 | do |
---|
| 46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 47 | eval $as_var=C; export $as_var |
---|
| 48 | else |
---|
| 49 | $as_unset $as_var |
---|
| 50 | fi |
---|
| 51 | done |
---|
[1853] | 52 | |
---|
[1956] | 53 | # Required to use basename. |
---|
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 55 | as_expr=expr |
---|
| 56 | else |
---|
| 57 | as_expr=false |
---|
| 58 | fi |
---|
[1853] | 59 | |
---|
[1956] | 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 61 | as_basename=basename |
---|
| 62 | else |
---|
| 63 | as_basename=false |
---|
| 64 | fi |
---|
[1853] | 65 | |
---|
[1956] | 66 | |
---|
| 67 | # Name of the executable. |
---|
| 68 | as_me=`$as_basename "$0" || |
---|
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 70 | X"$0" : 'X\(//\)$' \| \ |
---|
| 71 | X"$0" : 'X\(/\)$' \| \ |
---|
| 72 | . : '\(.\)' 2>/dev/null || |
---|
| 73 | echo X/"$0" | |
---|
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 77 | s/.*/./; q'` |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 81 | # Avoid depending upon Character Ranges. |
---|
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 85 | as_cr_digits='0123456789' |
---|
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 87 | |
---|
| 88 | # The user is always right. |
---|
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 90 | echo "#! /bin/sh" >conf$$.sh |
---|
| 91 | echo "exit 0" >>conf$$.sh |
---|
| 92 | chmod +x conf$$.sh |
---|
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 94 | PATH_SEPARATOR=';' |
---|
| 95 | else |
---|
| 96 | PATH_SEPARATOR=: |
---|
| 97 | fi |
---|
| 98 | rm -f conf$$.sh |
---|
| 99 | fi |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | as_lineno_1=$LINENO |
---|
| 103 | as_lineno_2=$LINENO |
---|
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 107 | # Find who we are. Look in the path if we contain no path at all |
---|
| 108 | # relative or not. |
---|
| 109 | case $0 in |
---|
| 110 | *[\\/]* ) as_myself=$0 ;; |
---|
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 112 | for as_dir in $PATH |
---|
| 113 | do |
---|
| 114 | IFS=$as_save_IFS |
---|
| 115 | test -z "$as_dir" && as_dir=. |
---|
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 117 | done |
---|
| 118 | |
---|
| 119 | ;; |
---|
| 120 | esac |
---|
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 122 | # in which case we are not to be found in the path. |
---|
| 123 | if test "x$as_myself" = x; then |
---|
| 124 | as_myself=$0 |
---|
| 125 | fi |
---|
| 126 | if test ! -f "$as_myself"; then |
---|
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
| 128 | { (exit 1); exit 1; }; } |
---|
| 129 | fi |
---|
| 130 | case $CONFIG_SHELL in |
---|
| 131 | '') |
---|
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 134 | do |
---|
| 135 | IFS=$as_save_IFS |
---|
| 136 | test -z "$as_dir" && as_dir=. |
---|
| 137 | for as_base in sh bash ksh sh5; do |
---|
| 138 | case $as_dir in |
---|
| 139 | /*) |
---|
| 140 | if ("$as_dir/$as_base" -c ' |
---|
| 141 | as_lineno_1=$LINENO |
---|
| 142 | as_lineno_2=$LINENO |
---|
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 148 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 149 | export CONFIG_SHELL |
---|
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 151 | fi;; |
---|
| 152 | esac |
---|
| 153 | done |
---|
| 154 | done |
---|
| 155 | ;; |
---|
| 156 | esac |
---|
| 157 | |
---|
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 160 | # line-number line before each line; the second 'sed' does the real |
---|
| 161 | # work. The second script uses 'N' to pair each line-number line |
---|
| 162 | # with the numbered line, and appends trailing '-' during |
---|
| 163 | # substitution so that $LINENO is not a special case at line end. |
---|
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 166 | sed '=' <$as_myself | |
---|
| 167 | sed ' |
---|
| 168 | N |
---|
| 169 | s,$,-, |
---|
| 170 | : loop |
---|
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 172 | t loop |
---|
| 173 | s,-$,, |
---|
| 174 | s,^['$as_cr_digits']*\n,, |
---|
| 175 | ' >$as_me.lineno && |
---|
| 176 | chmod +x $as_me.lineno || |
---|
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 178 | { (exit 1); exit 1; }; } |
---|
| 179 | |
---|
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 181 | # (the dirname of $[0] is not the place where we might find the |
---|
| 182 | # original and so on. Autoconf is especially sensible to this). |
---|
| 183 | . ./$as_me.lineno |
---|
| 184 | # Exit status is that of the last command. |
---|
| 185 | exit |
---|
| 186 | } |
---|
| 187 | |
---|
| 188 | |
---|
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 191 | ' ECHO_T=' ' ;; |
---|
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 194 | esac |
---|
| 195 | |
---|
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 197 | as_expr=expr |
---|
[1853] | 198 | else |
---|
[1956] | 199 | as_expr=false |
---|
[1853] | 200 | fi |
---|
| 201 | |
---|
[1956] | 202 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 203 | echo >conf$$.file |
---|
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 207 | if test -f conf$$.exe; then |
---|
| 208 | # Don't use ln at all; we don't have any links |
---|
| 209 | as_ln_s='cp -p' |
---|
| 210 | else |
---|
| 211 | as_ln_s='ln -s' |
---|
| 212 | fi |
---|
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 214 | as_ln_s=ln |
---|
| 215 | else |
---|
| 216 | as_ln_s='cp -p' |
---|
[1853] | 217 | fi |
---|
[1956] | 218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
[1853] | 219 | |
---|
[1956] | 220 | if mkdir -p . 2>/dev/null; then |
---|
| 221 | as_mkdir_p=: |
---|
| 222 | else |
---|
| 223 | test -d ./-p && rmdir ./-p |
---|
| 224 | as_mkdir_p=false |
---|
| 225 | fi |
---|
[1853] | 226 | |
---|
[1956] | 227 | as_executable_p="test -f" |
---|
| 228 | |
---|
| 229 | # Sed expression to map a string onto a valid CPP name. |
---|
| 230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 231 | |
---|
| 232 | # Sed expression to map a string onto a valid variable name. |
---|
| 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 234 | |
---|
| 235 | |
---|
| 236 | # IFS |
---|
| 237 | # We need space, tab and new line, in precisely that order. |
---|
| 238 | as_nl=' |
---|
| 239 | ' |
---|
| 240 | IFS=" $as_nl" |
---|
| 241 | |
---|
| 242 | # CDPATH. |
---|
| 243 | $as_unset CDPATH |
---|
| 244 | |
---|
| 245 | |
---|
| 246 | # Name of the host. |
---|
| 247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 248 | # so uname gets run too. |
---|
| 249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 250 | |
---|
| 251 | exec 6>&1 |
---|
| 252 | |
---|
| 253 | # |
---|
| 254 | # Initializations. |
---|
| 255 | # |
---|
| 256 | ac_default_prefix=/usr/local |
---|
| 257 | ac_config_libobj_dir=. |
---|
| 258 | cross_compiling=no |
---|
| 259 | subdirs= |
---|
| 260 | MFLAGS= |
---|
| 261 | MAKEFLAGS= |
---|
| 262 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 263 | |
---|
| 264 | # Maximum number of lines to put in a shell here document. |
---|
| 265 | # This variable seems obsolete. It should probably be removed, and |
---|
| 266 | # only ac_max_sed_lines should be used. |
---|
| 267 | : ${ac_max_here_lines=38} |
---|
| 268 | |
---|
| 269 | # Identity of this package. |
---|
| 270 | PACKAGE_NAME='orxonox' |
---|
| 271 | PACKAGE_TARNAME='orxonox' |
---|
[3243] | 272 | PACKAGE_VERSION='0.2.1-pre-alpha' |
---|
| 273 | PACKAGE_STRING='orxonox 0.2.1-pre-alpha' |
---|
[3240] | 274 | PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch' |
---|
[1956] | 275 | |
---|
| 276 | ac_unique_file="." |
---|
| 277 | # Factoring default headers for most tests. |
---|
| 278 | ac_includes_default="\ |
---|
| 279 | #include <stdio.h> |
---|
| 280 | #if HAVE_SYS_TYPES_H |
---|
| 281 | # include <sys/types.h> |
---|
| 282 | #endif |
---|
| 283 | #if HAVE_SYS_STAT_H |
---|
| 284 | # include <sys/stat.h> |
---|
| 285 | #endif |
---|
| 286 | #if STDC_HEADERS |
---|
| 287 | # include <stdlib.h> |
---|
| 288 | # include <stddef.h> |
---|
| 289 | #else |
---|
| 290 | # if HAVE_STDLIB_H |
---|
| 291 | # include <stdlib.h> |
---|
| 292 | # endif |
---|
| 293 | #endif |
---|
| 294 | #if HAVE_STRING_H |
---|
| 295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
| 296 | # include <memory.h> |
---|
| 297 | # endif |
---|
| 298 | # include <string.h> |
---|
| 299 | #endif |
---|
| 300 | #if HAVE_STRINGS_H |
---|
| 301 | # include <strings.h> |
---|
| 302 | #endif |
---|
| 303 | #if HAVE_INTTYPES_H |
---|
| 304 | # include <inttypes.h> |
---|
| 305 | #else |
---|
| 306 | # if HAVE_STDINT_H |
---|
| 307 | # include <stdint.h> |
---|
| 308 | # endif |
---|
| 309 | #endif |
---|
| 310 | #if HAVE_UNISTD_H |
---|
| 311 | # include <unistd.h> |
---|
| 312 | #endif" |
---|
| 313 | |
---|
[3561] | 314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE GTHREAD_LIBS GTHREAD_CFLAGS HAVE_GTHREAD_TRUE HAVE_GTHREAD_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS' |
---|
[1956] | 315 | ac_subst_files='' |
---|
| 316 | |
---|
| 317 | # Initialize some variables set by options. |
---|
| 318 | ac_init_help= |
---|
| 319 | ac_init_version=false |
---|
| 320 | # The variables have the same names as the options, with |
---|
| 321 | # dashes changed to underlines. |
---|
| 322 | cache_file=/dev/null |
---|
| 323 | exec_prefix=NONE |
---|
| 324 | no_create= |
---|
| 325 | no_recursion= |
---|
| 326 | prefix=NONE |
---|
| 327 | program_prefix=NONE |
---|
| 328 | program_suffix=NONE |
---|
| 329 | program_transform_name=s,x,x, |
---|
| 330 | silent= |
---|
| 331 | site= |
---|
| 332 | srcdir= |
---|
| 333 | verbose= |
---|
| 334 | x_includes=NONE |
---|
| 335 | x_libraries=NONE |
---|
| 336 | |
---|
| 337 | # Installation directory options. |
---|
| 338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 339 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 340 | # by default will actually change. |
---|
| 341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 342 | bindir='${exec_prefix}/bin' |
---|
| 343 | sbindir='${exec_prefix}/sbin' |
---|
| 344 | libexecdir='${exec_prefix}/libexec' |
---|
| 345 | datadir='${prefix}/share' |
---|
| 346 | sysconfdir='${prefix}/etc' |
---|
| 347 | sharedstatedir='${prefix}/com' |
---|
| 348 | localstatedir='${prefix}/var' |
---|
| 349 | libdir='${exec_prefix}/lib' |
---|
| 350 | includedir='${prefix}/include' |
---|
| 351 | oldincludedir='/usr/include' |
---|
| 352 | infodir='${prefix}/info' |
---|
| 353 | mandir='${prefix}/man' |
---|
| 354 | |
---|
| 355 | ac_prev= |
---|
| 356 | for ac_option |
---|
| 357 | do |
---|
| 358 | # If the previous option needs an argument, assign it. |
---|
| 359 | if test -n "$ac_prev"; then |
---|
| 360 | eval "$ac_prev=\$ac_option" |
---|
| 361 | ac_prev= |
---|
| 362 | continue |
---|
| 363 | fi |
---|
| 364 | |
---|
| 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
| 366 | |
---|
| 367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 368 | |
---|
| 369 | case $ac_option in |
---|
| 370 | |
---|
| 371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 372 | ac_prev=bindir ;; |
---|
| 373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 374 | bindir=$ac_optarg ;; |
---|
| 375 | |
---|
| 376 | -build | --build | --buil | --bui | --bu) |
---|
| 377 | ac_prev=build_alias ;; |
---|
| 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 379 | build_alias=$ac_optarg ;; |
---|
| 380 | |
---|
| 381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 383 | ac_prev=cache_file ;; |
---|
| 384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 386 | cache_file=$ac_optarg ;; |
---|
| 387 | |
---|
| 388 | --config-cache | -C) |
---|
| 389 | cache_file=config.cache ;; |
---|
| 390 | |
---|
| 391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 392 | ac_prev=datadir ;; |
---|
| 393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 394 | | --da=*) |
---|
| 395 | datadir=$ac_optarg ;; |
---|
| 396 | |
---|
| 397 | -disable-* | --disable-*) |
---|
| 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 399 | # Reject names that are not valid shell variable names. |
---|
| 400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 402 | { (exit 1); exit 1; }; } |
---|
| 403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 404 | eval "enable_$ac_feature=no" ;; |
---|
| 405 | |
---|
| 406 | -enable-* | --enable-*) |
---|
| 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 408 | # Reject names that are not valid shell variable names. |
---|
| 409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 411 | { (exit 1); exit 1; }; } |
---|
| 412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 413 | case $ac_option in |
---|
| 414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 415 | *) ac_optarg=yes ;; |
---|
| 416 | esac |
---|
| 417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
| 418 | |
---|
| 419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 421 | | --exec | --exe | --ex) |
---|
| 422 | ac_prev=exec_prefix ;; |
---|
| 423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 425 | | --exec=* | --exe=* | --ex=*) |
---|
| 426 | exec_prefix=$ac_optarg ;; |
---|
| 427 | |
---|
| 428 | -gas | --gas | --ga | --g) |
---|
| 429 | # Obsolete; use --with-gas. |
---|
| 430 | with_gas=yes ;; |
---|
| 431 | |
---|
| 432 | -help | --help | --hel | --he | -h) |
---|
| 433 | ac_init_help=long ;; |
---|
| 434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 435 | ac_init_help=recursive ;; |
---|
| 436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 437 | ac_init_help=short ;; |
---|
| 438 | |
---|
| 439 | -host | --host | --hos | --ho) |
---|
| 440 | ac_prev=host_alias ;; |
---|
| 441 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 442 | host_alias=$ac_optarg ;; |
---|
| 443 | |
---|
| 444 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 445 | | --includ | --inclu | --incl | --inc) |
---|
| 446 | ac_prev=includedir ;; |
---|
| 447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 449 | includedir=$ac_optarg ;; |
---|
| 450 | |
---|
| 451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 452 | ac_prev=infodir ;; |
---|
| 453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 454 | infodir=$ac_optarg ;; |
---|
| 455 | |
---|
| 456 | -libdir | --libdir | --libdi | --libd) |
---|
| 457 | ac_prev=libdir ;; |
---|
| 458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 459 | libdir=$ac_optarg ;; |
---|
| 460 | |
---|
| 461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 462 | | --libexe | --libex | --libe) |
---|
| 463 | ac_prev=libexecdir ;; |
---|
| 464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 465 | | --libexe=* | --libex=* | --libe=*) |
---|
| 466 | libexecdir=$ac_optarg ;; |
---|
| 467 | |
---|
| 468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 469 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 470 | | --locals | --local | --loca | --loc | --lo) |
---|
| 471 | ac_prev=localstatedir ;; |
---|
| 472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 475 | localstatedir=$ac_optarg ;; |
---|
| 476 | |
---|
| 477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 478 | ac_prev=mandir ;; |
---|
| 479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 480 | mandir=$ac_optarg ;; |
---|
| 481 | |
---|
| 482 | -nfp | --nfp | --nf) |
---|
| 483 | # Obsolete; use --without-fp. |
---|
| 484 | with_fp=no ;; |
---|
| 485 | |
---|
| 486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 487 | | --no-cr | --no-c | -n) |
---|
| 488 | no_create=yes ;; |
---|
| 489 | |
---|
| 490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 492 | no_recursion=yes ;; |
---|
| 493 | |
---|
| 494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 496 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 497 | ac_prev=oldincludedir ;; |
---|
| 498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 501 | oldincludedir=$ac_optarg ;; |
---|
| 502 | |
---|
| 503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 504 | ac_prev=prefix ;; |
---|
| 505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 506 | prefix=$ac_optarg ;; |
---|
| 507 | |
---|
| 508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 509 | | --program-pre | --program-pr | --program-p) |
---|
| 510 | ac_prev=program_prefix ;; |
---|
| 511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 513 | program_prefix=$ac_optarg ;; |
---|
| 514 | |
---|
| 515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 516 | | --program-suf | --program-su | --program-s) |
---|
| 517 | ac_prev=program_suffix ;; |
---|
| 518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 520 | program_suffix=$ac_optarg ;; |
---|
| 521 | |
---|
| 522 | -program-transform-name | --program-transform-name \ |
---|
| 523 | | --program-transform-nam | --program-transform-na \ |
---|
| 524 | | --program-transform-n | --program-transform- \ |
---|
| 525 | | --program-transform | --program-transfor \ |
---|
| 526 | | --program-transfo | --program-transf \ |
---|
| 527 | | --program-trans | --program-tran \ |
---|
| 528 | | --progr-tra | --program-tr | --program-t) |
---|
| 529 | ac_prev=program_transform_name ;; |
---|
| 530 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 531 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 532 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 533 | | --program-transform=* | --program-transfor=* \ |
---|
| 534 | | --program-transfo=* | --program-transf=* \ |
---|
| 535 | | --program-trans=* | --program-tran=* \ |
---|
| 536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 537 | program_transform_name=$ac_optarg ;; |
---|
| 538 | |
---|
| 539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 540 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 541 | silent=yes ;; |
---|
| 542 | |
---|
| 543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 544 | ac_prev=sbindir ;; |
---|
| 545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 546 | | --sbi=* | --sb=*) |
---|
| 547 | sbindir=$ac_optarg ;; |
---|
| 548 | |
---|
| 549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 551 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 552 | | --sha | --sh) |
---|
| 553 | ac_prev=sharedstatedir ;; |
---|
| 554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 557 | | --sha=* | --sh=*) |
---|
| 558 | sharedstatedir=$ac_optarg ;; |
---|
| 559 | |
---|
| 560 | -site | --site | --sit) |
---|
| 561 | ac_prev=site ;; |
---|
| 562 | -site=* | --site=* | --sit=*) |
---|
| 563 | site=$ac_optarg ;; |
---|
| 564 | |
---|
| 565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 566 | ac_prev=srcdir ;; |
---|
| 567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 568 | srcdir=$ac_optarg ;; |
---|
| 569 | |
---|
| 570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 571 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 572 | ac_prev=sysconfdir ;; |
---|
| 573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 575 | sysconfdir=$ac_optarg ;; |
---|
| 576 | |
---|
| 577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 578 | ac_prev=target_alias ;; |
---|
| 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 580 | target_alias=$ac_optarg ;; |
---|
| 581 | |
---|
| 582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 583 | verbose=yes ;; |
---|
| 584 | |
---|
| 585 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 586 | ac_init_version=: ;; |
---|
| 587 | |
---|
| 588 | -with-* | --with-*) |
---|
| 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 590 | # Reject names that are not valid shell variable names. |
---|
| 591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 593 | { (exit 1); exit 1; }; } |
---|
| 594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 595 | case $ac_option in |
---|
| 596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 597 | *) ac_optarg=yes ;; |
---|
| 598 | esac |
---|
| 599 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
| 600 | |
---|
| 601 | -without-* | --without-*) |
---|
| 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 603 | # Reject names that are not valid shell variable names. |
---|
| 604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 606 | { (exit 1); exit 1; }; } |
---|
| 607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
| 608 | eval "with_$ac_package=no" ;; |
---|
| 609 | |
---|
| 610 | --x) |
---|
| 611 | # Obsolete; use --with-x. |
---|
| 612 | with_x=yes ;; |
---|
| 613 | |
---|
| 614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 615 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 616 | ac_prev=x_includes ;; |
---|
| 617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 619 | x_includes=$ac_optarg ;; |
---|
| 620 | |
---|
| 621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 623 | ac_prev=x_libraries ;; |
---|
| 624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 626 | x_libraries=$ac_optarg ;; |
---|
| 627 | |
---|
| 628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 629 | Try \`$0 --help' for more information." >&2 |
---|
| 630 | { (exit 1); exit 1; }; } |
---|
| 631 | ;; |
---|
| 632 | |
---|
| 633 | *=*) |
---|
| 634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 635 | # Reject names that are not valid shell variable names. |
---|
| 636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 638 | { (exit 1); exit 1; }; } |
---|
| 639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
| 640 | eval "$ac_envvar='$ac_optarg'" |
---|
| 641 | export $ac_envvar ;; |
---|
| 642 | |
---|
| 643 | *) |
---|
| 644 | # FIXME: should be removed in autoconf 3.0. |
---|
| 645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 649 | ;; |
---|
| 650 | |
---|
| 651 | esac |
---|
| 652 | done |
---|
| 653 | |
---|
| 654 | if test -n "$ac_prev"; then |
---|
| 655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 657 | { (exit 1); exit 1; }; } |
---|
[1853] | 658 | fi |
---|
| 659 | |
---|
[1956] | 660 | # Be sure to have absolute paths. |
---|
| 661 | for ac_var in exec_prefix prefix |
---|
| 662 | do |
---|
| 663 | eval ac_val=$`echo $ac_var` |
---|
| 664 | case $ac_val in |
---|
| 665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
| 666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 667 | { (exit 1); exit 1; }; };; |
---|
| 668 | esac |
---|
| 669 | done |
---|
[1853] | 670 | |
---|
[1956] | 671 | # Be sure to have absolute paths. |
---|
| 672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
| 673 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
| 674 | do |
---|
| 675 | eval ac_val=$`echo $ac_var` |
---|
| 676 | case $ac_val in |
---|
| 677 | [\\/$]* | ?:[\\/]* ) ;; |
---|
| 678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 679 | { (exit 1); exit 1; }; };; |
---|
| 680 | esac |
---|
| 681 | done |
---|
| 682 | |
---|
| 683 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 684 | # used to hold the argument of --host etc. |
---|
| 685 | # FIXME: To remove some day. |
---|
| 686 | build=$build_alias |
---|
| 687 | host=$host_alias |
---|
| 688 | target=$target_alias |
---|
| 689 | |
---|
| 690 | # FIXME: To remove some day. |
---|
| 691 | if test "x$host_alias" != x; then |
---|
| 692 | if test "x$build_alias" = x; then |
---|
| 693 | cross_compiling=maybe |
---|
| 694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 696 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 697 | cross_compiling=yes |
---|
| 698 | fi |
---|
[1853] | 699 | fi |
---|
| 700 | |
---|
[1956] | 701 | ac_tool_prefix= |
---|
| 702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 703 | |
---|
| 704 | test "$silent" = yes && exec 6>/dev/null |
---|
| 705 | |
---|
| 706 | |
---|
| 707 | # Find the source files, if location was not specified. |
---|
| 708 | if test -z "$srcdir"; then |
---|
| 709 | ac_srcdir_defaulted=yes |
---|
| 710 | # Try the directory containing this script, then its parent. |
---|
| 711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
| 712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 713 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 714 | X"$0" : 'X\(//\)$' \| \ |
---|
| 715 | X"$0" : 'X\(/\)' \| \ |
---|
| 716 | . : '\(.\)' 2>/dev/null || |
---|
| 717 | echo X"$0" | |
---|
| 718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 720 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 721 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 722 | s/.*/./; q'` |
---|
| 723 | srcdir=$ac_confdir |
---|
| 724 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 725 | srcdir=.. |
---|
| 726 | fi |
---|
| 727 | else |
---|
| 728 | ac_srcdir_defaulted=no |
---|
| 729 | fi |
---|
| 730 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 731 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
| 733 | { (exit 1); exit 1; }; } |
---|
| 734 | else |
---|
| 735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
| 736 | { (exit 1); exit 1; }; } |
---|
| 737 | fi |
---|
| 738 | fi |
---|
| 739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
| 740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
| 741 | { (exit 1); exit 1; }; } |
---|
| 742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
| 743 | ac_env_build_alias_set=${build_alias+set} |
---|
| 744 | ac_env_build_alias_value=$build_alias |
---|
| 745 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
| 746 | ac_cv_env_build_alias_value=$build_alias |
---|
| 747 | ac_env_host_alias_set=${host_alias+set} |
---|
| 748 | ac_env_host_alias_value=$host_alias |
---|
| 749 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
| 750 | ac_cv_env_host_alias_value=$host_alias |
---|
| 751 | ac_env_target_alias_set=${target_alias+set} |
---|
| 752 | ac_env_target_alias_value=$target_alias |
---|
| 753 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
| 754 | ac_cv_env_target_alias_value=$target_alias |
---|
| 755 | ac_env_CXX_set=${CXX+set} |
---|
| 756 | ac_env_CXX_value=$CXX |
---|
| 757 | ac_cv_env_CXX_set=${CXX+set} |
---|
| 758 | ac_cv_env_CXX_value=$CXX |
---|
| 759 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 760 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 761 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 762 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 764 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
| 765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
| 767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 771 | ac_env_CC_set=${CC+set} |
---|
| 772 | ac_env_CC_value=$CC |
---|
| 773 | ac_cv_env_CC_set=${CC+set} |
---|
| 774 | ac_cv_env_CC_value=$CC |
---|
| 775 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
| 776 | ac_env_CFLAGS_value=$CFLAGS |
---|
| 777 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
| 778 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
| 779 | ac_env_CPP_set=${CPP+set} |
---|
| 780 | ac_env_CPP_value=$CPP |
---|
| 781 | ac_cv_env_CPP_set=${CPP+set} |
---|
| 782 | ac_cv_env_CPP_value=$CPP |
---|
| 783 | |
---|
| 784 | # |
---|
| 785 | # Report the --help message. |
---|
| 786 | # |
---|
| 787 | if test "$ac_init_help" = "long"; then |
---|
| 788 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 789 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 790 | cat <<_ACEOF |
---|
[3243] | 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 |
---|
[3243] | 858 | short | recursive ) echo "Configuration of orxonox 0.2.1-pre-alpha:";; |
---|
[1956] | 859 | esac |
---|
| 860 | cat <<\_ACEOF |
---|
| 861 | |
---|
| 862 | Optional Features: |
---|
| 863 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 864 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
[2706] | 865 | --disable-dependency-tracking speeds up one-time build |
---|
| 866 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
[3205] | 867 | --enable-debug compiles in debug mode. Lots of debug info about the |
---|
| 868 | game. |
---|
[3561] | 869 | --enable-sub-projects also builds the subProjects while make from srcdir |
---|
[1956] | 870 | |
---|
[3173] | 871 | Optional Packages: |
---|
| 872 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 873 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
[3181] | 874 | --without-gtk Prevents GTK from being loaded |
---|
[3271] | 875 | --without-gthread Prevents gThread from being loaded |
---|
[3283] | 876 | --without-pthread Prevents pthread from being loaded |
---|
[3243] | 877 | --without-curl Prevents libcURL from being loaded |
---|
[3181] | 878 | --without-sdl-image Prevents SDL_image from being loaded |
---|
[3173] | 879 | |
---|
[1956] | 880 | Some influential environment variables: |
---|
| 881 | CXX C++ compiler command |
---|
| 882 | CXXFLAGS C++ compiler flags |
---|
| 883 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 884 | nonstandard directory <lib dir> |
---|
| 885 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 886 | headers in a nonstandard directory <include dir> |
---|
| 887 | CC C compiler command |
---|
| 888 | CFLAGS C compiler flags |
---|
| 889 | CPP C preprocessor |
---|
| 890 | |
---|
| 891 | Use these variables to override the choices made by `configure' or to help |
---|
| 892 | it to find libraries and programs with nonstandard names/locations. |
---|
| 893 | |
---|
[3240] | 894 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
[1956] | 895 | _ACEOF |
---|
| 896 | fi |
---|
| 897 | |
---|
| 898 | if test "$ac_init_help" = "recursive"; then |
---|
| 899 | # If there are subdirs, report their specific --help. |
---|
| 900 | ac_popdir=`pwd` |
---|
| 901 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 902 | test -d $ac_dir || continue |
---|
| 903 | ac_builddir=. |
---|
| 904 | |
---|
| 905 | if test "$ac_dir" != .; then |
---|
| 906 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 907 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 908 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 909 | else |
---|
| 910 | ac_dir_suffix= ac_top_builddir= |
---|
| 911 | fi |
---|
| 912 | |
---|
| 913 | case $srcdir in |
---|
| 914 | .) # No --srcdir option. We are building in place. |
---|
| 915 | ac_srcdir=. |
---|
| 916 | if test -z "$ac_top_builddir"; then |
---|
| 917 | ac_top_srcdir=. |
---|
| 918 | else |
---|
| 919 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 920 | fi ;; |
---|
| 921 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 922 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 923 | ac_top_srcdir=$srcdir ;; |
---|
| 924 | *) # Relative path. |
---|
| 925 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 926 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 927 | esac |
---|
| 928 | |
---|
| 929 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 930 | # the directories may not exist. |
---|
| 931 | case `pwd` in |
---|
| 932 | .) ac_abs_builddir="$ac_dir";; |
---|
| 933 | *) |
---|
| 934 | case "$ac_dir" in |
---|
| 935 | .) ac_abs_builddir=`pwd`;; |
---|
| 936 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 937 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 938 | esac;; |
---|
| 939 | esac |
---|
| 940 | case $ac_abs_builddir in |
---|
| 941 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 942 | *) |
---|
| 943 | case ${ac_top_builddir}. in |
---|
| 944 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 945 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 946 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 947 | esac;; |
---|
| 948 | esac |
---|
| 949 | case $ac_abs_builddir in |
---|
| 950 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 951 | *) |
---|
| 952 | case $ac_srcdir in |
---|
| 953 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 954 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 955 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 956 | esac;; |
---|
| 957 | esac |
---|
| 958 | case $ac_abs_builddir in |
---|
| 959 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 960 | *) |
---|
| 961 | case $ac_top_srcdir in |
---|
| 962 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 963 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 964 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 965 | esac;; |
---|
| 966 | esac |
---|
| 967 | |
---|
| 968 | cd $ac_dir |
---|
| 969 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 970 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 971 | echo |
---|
| 972 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 973 | elif test -f $ac_srcdir/configure; then |
---|
| 974 | echo |
---|
| 975 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 976 | elif test -f $ac_srcdir/configure.ac || |
---|
| 977 | test -f $ac_srcdir/configure.in; then |
---|
| 978 | echo |
---|
| 979 | $ac_configure --help |
---|
| 980 | else |
---|
| 981 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 982 | fi |
---|
| 983 | cd $ac_popdir |
---|
| 984 | done |
---|
| 985 | fi |
---|
| 986 | |
---|
| 987 | test -n "$ac_init_help" && exit 0 |
---|
| 988 | if $ac_init_version; then |
---|
| 989 | cat <<\_ACEOF |
---|
[3243] | 990 | orxonox configure 0.2.1-pre-alpha |
---|
[1956] | 991 | generated by GNU Autoconf 2.59 |
---|
| 992 | |
---|
| 993 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 994 | This configure script is free software; the Free Software Foundation |
---|
| 995 | gives unlimited permission to copy, distribute and modify it. |
---|
| 996 | _ACEOF |
---|
| 997 | exit 0 |
---|
| 998 | fi |
---|
| 999 | exec 5>config.log |
---|
| 1000 | cat >&5 <<_ACEOF |
---|
| 1001 | This file contains any messages produced by compilers while |
---|
| 1002 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1003 | |
---|
[3243] | 1004 | It was created by orxonox $as_me 0.2.1-pre-alpha, which was |
---|
[1956] | 1005 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 1006 | |
---|
| 1007 | $ $0 $@ |
---|
| 1008 | |
---|
| 1009 | _ACEOF |
---|
| 1010 | { |
---|
| 1011 | cat <<_ASUNAME |
---|
| 1012 | ## --------- ## |
---|
| 1013 | ## Platform. ## |
---|
| 1014 | ## --------- ## |
---|
| 1015 | |
---|
| 1016 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1017 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1018 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1019 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1020 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1021 | |
---|
| 1022 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1023 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1024 | |
---|
| 1025 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1026 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1027 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1028 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1029 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1030 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1031 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1032 | |
---|
| 1033 | _ASUNAME |
---|
| 1034 | |
---|
| 1035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1036 | for as_dir in $PATH |
---|
| 1037 | do |
---|
| 1038 | IFS=$as_save_IFS |
---|
| 1039 | test -z "$as_dir" && as_dir=. |
---|
| 1040 | echo "PATH: $as_dir" |
---|
| 1041 | done |
---|
| 1042 | |
---|
| 1043 | } >&5 |
---|
| 1044 | |
---|
| 1045 | cat >&5 <<_ACEOF |
---|
| 1046 | |
---|
| 1047 | |
---|
| 1048 | ## ----------- ## |
---|
| 1049 | ## Core tests. ## |
---|
| 1050 | ## ----------- ## |
---|
| 1051 | |
---|
| 1052 | _ACEOF |
---|
| 1053 | |
---|
| 1054 | |
---|
| 1055 | # Keep a trace of the command line. |
---|
| 1056 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1057 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1058 | # Also quote any args containing shell meta-characters. |
---|
| 1059 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1060 | ac_configure_args= |
---|
| 1061 | ac_configure_args0= |
---|
| 1062 | ac_configure_args1= |
---|
| 1063 | ac_sep= |
---|
| 1064 | ac_must_keep_next=false |
---|
| 1065 | for ac_pass in 1 2 |
---|
| 1066 | do |
---|
| 1067 | for ac_arg |
---|
| 1068 | do |
---|
| 1069 | case $ac_arg in |
---|
| 1070 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1071 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1072 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1073 | continue ;; |
---|
| 1074 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1075 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1076 | esac |
---|
| 1077 | case $ac_pass in |
---|
| 1078 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1079 | 2) |
---|
| 1080 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1081 | if test $ac_must_keep_next = true; then |
---|
| 1082 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1083 | else |
---|
| 1084 | case $ac_arg in |
---|
| 1085 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1086 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1087 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1088 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1089 | case "$ac_configure_args0 " in |
---|
| 1090 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1091 | esac |
---|
| 1092 | ;; |
---|
| 1093 | -* ) ac_must_keep_next=true ;; |
---|
| 1094 | esac |
---|
| 1095 | fi |
---|
| 1096 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1097 | # Get rid of the leading space. |
---|
| 1098 | ac_sep=" " |
---|
| 1099 | ;; |
---|
| 1100 | esac |
---|
| 1101 | done |
---|
| 1102 | done |
---|
| 1103 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1104 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1105 | |
---|
| 1106 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1107 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1108 | # would cause problems or look ugly. |
---|
| 1109 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1110 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1111 | trap 'exit_status=$? |
---|
| 1112 | # Save into config.log some information that might help in debugging. |
---|
| 1113 | { |
---|
| 1114 | echo |
---|
| 1115 | |
---|
| 1116 | cat <<\_ASBOX |
---|
| 1117 | ## ---------------- ## |
---|
| 1118 | ## Cache variables. ## |
---|
| 1119 | ## ---------------- ## |
---|
| 1120 | _ASBOX |
---|
| 1121 | echo |
---|
| 1122 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1123 | { |
---|
| 1124 | (set) 2>&1 | |
---|
| 1125 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1126 | *ac_space=\ *) |
---|
| 1127 | sed -n \ |
---|
| 1128 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1129 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1130 | ;; |
---|
| 1131 | *) |
---|
| 1132 | sed -n \ |
---|
| 1133 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1134 | ;; |
---|
| 1135 | esac; |
---|
| 1136 | } |
---|
| 1137 | echo |
---|
| 1138 | |
---|
| 1139 | cat <<\_ASBOX |
---|
| 1140 | ## ----------------- ## |
---|
| 1141 | ## Output variables. ## |
---|
| 1142 | ## ----------------- ## |
---|
| 1143 | _ASBOX |
---|
| 1144 | echo |
---|
| 1145 | for ac_var in $ac_subst_vars |
---|
| 1146 | do |
---|
| 1147 | eval ac_val=$`echo $ac_var` |
---|
| 1148 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1149 | done | sort |
---|
| 1150 | echo |
---|
| 1151 | |
---|
| 1152 | if test -n "$ac_subst_files"; then |
---|
| 1153 | cat <<\_ASBOX |
---|
| 1154 | ## ------------- ## |
---|
| 1155 | ## Output files. ## |
---|
| 1156 | ## ------------- ## |
---|
| 1157 | _ASBOX |
---|
| 1158 | echo |
---|
| 1159 | for ac_var in $ac_subst_files |
---|
| 1160 | do |
---|
| 1161 | eval ac_val=$`echo $ac_var` |
---|
| 1162 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1163 | done | sort |
---|
| 1164 | echo |
---|
| 1165 | fi |
---|
| 1166 | |
---|
| 1167 | if test -s confdefs.h; then |
---|
| 1168 | cat <<\_ASBOX |
---|
| 1169 | ## ----------- ## |
---|
| 1170 | ## confdefs.h. ## |
---|
| 1171 | ## ----------- ## |
---|
| 1172 | _ASBOX |
---|
| 1173 | echo |
---|
| 1174 | sed "/^$/d" confdefs.h | sort |
---|
| 1175 | echo |
---|
| 1176 | fi |
---|
| 1177 | test "$ac_signal" != 0 && |
---|
| 1178 | echo "$as_me: caught signal $ac_signal" |
---|
| 1179 | echo "$as_me: exit $exit_status" |
---|
| 1180 | } >&5 |
---|
| 1181 | rm -f core *.core && |
---|
| 1182 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1183 | exit $exit_status |
---|
| 1184 | ' 0 |
---|
| 1185 | for ac_signal in 1 2 13 15; do |
---|
| 1186 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1187 | done |
---|
| 1188 | ac_signal=0 |
---|
| 1189 | |
---|
| 1190 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1191 | rm -rf conftest* confdefs.h |
---|
| 1192 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1193 | echo >confdefs.h |
---|
| 1194 | |
---|
| 1195 | # Predefined preprocessor variables. |
---|
| 1196 | |
---|
| 1197 | cat >>confdefs.h <<_ACEOF |
---|
| 1198 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1199 | _ACEOF |
---|
| 1200 | |
---|
| 1201 | |
---|
| 1202 | cat >>confdefs.h <<_ACEOF |
---|
| 1203 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1204 | _ACEOF |
---|
| 1205 | |
---|
| 1206 | |
---|
| 1207 | cat >>confdefs.h <<_ACEOF |
---|
| 1208 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1209 | _ACEOF |
---|
| 1210 | |
---|
| 1211 | |
---|
| 1212 | cat >>confdefs.h <<_ACEOF |
---|
| 1213 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1214 | _ACEOF |
---|
| 1215 | |
---|
| 1216 | |
---|
| 1217 | cat >>confdefs.h <<_ACEOF |
---|
| 1218 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1219 | _ACEOF |
---|
| 1220 | |
---|
| 1221 | |
---|
| 1222 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1223 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1224 | if test -z "$CONFIG_SITE"; then |
---|
| 1225 | if test "x$prefix" != xNONE; then |
---|
| 1226 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1227 | else |
---|
| 1228 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1229 | fi |
---|
| 1230 | fi |
---|
| 1231 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1232 | if test -r "$ac_site_file"; then |
---|
| 1233 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1234 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1235 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1236 | . "$ac_site_file" |
---|
| 1237 | fi |
---|
| 1238 | done |
---|
| 1239 | |
---|
| 1240 | if test -r "$cache_file"; then |
---|
| 1241 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1242 | # files actually), so we avoid doing that. |
---|
| 1243 | if test -f "$cache_file"; then |
---|
| 1244 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1245 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1246 | case $cache_file in |
---|
| 1247 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1248 | *) . ./$cache_file;; |
---|
| 1249 | esac |
---|
| 1250 | fi |
---|
| 1251 | else |
---|
| 1252 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1253 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1254 | >$cache_file |
---|
| 1255 | fi |
---|
| 1256 | |
---|
| 1257 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1258 | # value. |
---|
| 1259 | ac_cache_corrupted=false |
---|
| 1260 | for ac_var in `(set) 2>&1 | |
---|
| 1261 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1262 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1263 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1264 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1265 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1266 | case $ac_old_set,$ac_new_set in |
---|
| 1267 | set,) |
---|
| 1268 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1269 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1270 | ac_cache_corrupted=: ;; |
---|
| 1271 | ,set) |
---|
| 1272 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1273 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1274 | ac_cache_corrupted=: ;; |
---|
| 1275 | ,);; |
---|
| 1276 | *) |
---|
| 1277 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1278 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1279 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1280 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1281 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1282 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1283 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1284 | ac_cache_corrupted=: |
---|
| 1285 | fi;; |
---|
| 1286 | esac |
---|
| 1287 | # Pass precious variables to config.status. |
---|
| 1288 | if test "$ac_new_set" = set; then |
---|
| 1289 | case $ac_new_val in |
---|
| 1290 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1291 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1292 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1293 | esac |
---|
| 1294 | case " $ac_configure_args " in |
---|
| 1295 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1296 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1297 | esac |
---|
| 1298 | fi |
---|
| 1299 | done |
---|
| 1300 | if $ac_cache_corrupted; then |
---|
| 1301 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1302 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1303 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1304 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1305 | { (exit 1); exit 1; }; } |
---|
| 1306 | fi |
---|
| 1307 | |
---|
| 1308 | ac_ext=c |
---|
| 1309 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1313 | |
---|
| 1314 | |
---|
| 1315 | |
---|
| 1316 | |
---|
| 1317 | |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | |
---|
| 1326 | |
---|
| 1327 | |
---|
| 1328 | |
---|
| 1329 | |
---|
| 1330 | |
---|
| 1331 | |
---|
| 1332 | |
---|
| 1333 | |
---|
| 1334 | |
---|
| 1335 | |
---|
| 1336 | |
---|
| 1337 | |
---|
| 1338 | |
---|
| 1339 | |
---|
[2980] | 1340 | |
---|
[3561] | 1341 | ## Detect the canonical host and target build environment. |
---|
[1956] | 1342 | ac_aux_dir= |
---|
| 1343 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1344 | if test -f $ac_dir/install-sh; then |
---|
| 1345 | ac_aux_dir=$ac_dir |
---|
| 1346 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1347 | break |
---|
| 1348 | elif test -f $ac_dir/install.sh; then |
---|
| 1349 | ac_aux_dir=$ac_dir |
---|
| 1350 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1351 | break |
---|
| 1352 | elif test -f $ac_dir/shtool; then |
---|
| 1353 | ac_aux_dir=$ac_dir |
---|
| 1354 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1355 | break |
---|
| 1356 | fi |
---|
| 1357 | done |
---|
| 1358 | if test -z "$ac_aux_dir"; then |
---|
| 1359 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1360 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1361 | { (exit 1); exit 1; }; } |
---|
| 1362 | fi |
---|
| 1363 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1364 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1365 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1366 | |
---|
[2980] | 1367 | # Make sure we can run config.sub. |
---|
| 1368 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1369 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1370 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1371 | { (exit 1); exit 1; }; } |
---|
| 1372 | |
---|
| 1373 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1374 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1375 | if test "${ac_cv_build+set}" = set; then |
---|
| 1376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1377 | else |
---|
| 1378 | ac_cv_build_alias=$build_alias |
---|
| 1379 | test -z "$ac_cv_build_alias" && |
---|
| 1380 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1381 | test -z "$ac_cv_build_alias" && |
---|
| 1382 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1383 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1384 | { (exit 1); exit 1; }; } |
---|
| 1385 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1386 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1387 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1388 | { (exit 1); exit 1; }; } |
---|
| 1389 | |
---|
| 1390 | fi |
---|
| 1391 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1392 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1393 | build=$ac_cv_build |
---|
| 1394 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1395 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1396 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1397 | |
---|
| 1398 | |
---|
| 1399 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1400 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1401 | if test "${ac_cv_host+set}" = set; then |
---|
| 1402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1403 | else |
---|
| 1404 | ac_cv_host_alias=$host_alias |
---|
| 1405 | test -z "$ac_cv_host_alias" && |
---|
| 1406 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1407 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1408 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1409 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1410 | { (exit 1); exit 1; }; } |
---|
| 1411 | |
---|
| 1412 | fi |
---|
| 1413 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1414 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1415 | host=$ac_cv_host |
---|
| 1416 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1417 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1418 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1419 | |
---|
| 1420 | |
---|
| 1421 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1422 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1423 | if test "${ac_cv_target+set}" = set; then |
---|
| 1424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1425 | else |
---|
| 1426 | ac_cv_target_alias=$target_alias |
---|
| 1427 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1428 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1429 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1430 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1431 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1432 | { (exit 1); exit 1; }; } |
---|
| 1433 | |
---|
| 1434 | fi |
---|
| 1435 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1436 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1437 | target=$ac_cv_target |
---|
| 1438 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1439 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1440 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1441 | |
---|
| 1442 | |
---|
| 1443 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1444 | # will get canonicalized. |
---|
| 1445 | test -n "$target_alias" && |
---|
| 1446 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1447 | NONENONEs,x,x, && |
---|
| 1448 | program_prefix=${target_alias}- |
---|
| 1449 | |
---|
| 1450 | am__api_version="1.8" |
---|
[1956] | 1451 | # Find a good install program. We prefer a C program (faster), |
---|
| 1452 | # so one script is as good as another. But avoid the broken or |
---|
| 1453 | # incompatible versions: |
---|
| 1454 | # SysV /etc/install, /usr/sbin/install |
---|
| 1455 | # SunOS /usr/etc/install |
---|
| 1456 | # IRIX /sbin/install |
---|
| 1457 | # AIX /bin/install |
---|
| 1458 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1459 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1460 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1461 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1462 | # OS/2's system install, which has a completely different semantic |
---|
| 1463 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1464 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1465 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1466 | if test -z "$INSTALL"; then |
---|
| 1467 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1469 | else |
---|
| 1470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1471 | for as_dir in $PATH |
---|
| 1472 | do |
---|
| 1473 | IFS=$as_save_IFS |
---|
| 1474 | test -z "$as_dir" && as_dir=. |
---|
| 1475 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1476 | case $as_dir/ in |
---|
| 1477 | ./ | .// | /cC/* | \ |
---|
| 1478 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1479 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1480 | /usr/ucb/* ) ;; |
---|
| 1481 | *) |
---|
| 1482 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1483 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1484 | # by default. |
---|
| 1485 | for ac_prog in ginstall scoinst install; do |
---|
| 1486 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1487 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1488 | if test $ac_prog = install && |
---|
| 1489 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1490 | # AIX install. It has an incompatible calling convention. |
---|
| 1491 | : |
---|
| 1492 | elif test $ac_prog = install && |
---|
| 1493 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1494 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1495 | : |
---|
| 1496 | else |
---|
| 1497 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1498 | break 3 |
---|
| 1499 | fi |
---|
[1853] | 1500 | fi |
---|
[1956] | 1501 | done |
---|
| 1502 | done |
---|
| 1503 | ;; |
---|
| 1504 | esac |
---|
| 1505 | done |
---|
| 1506 | |
---|
| 1507 | |
---|
[1853] | 1508 | fi |
---|
[1956] | 1509 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1510 | INSTALL=$ac_cv_path_install |
---|
| 1511 | else |
---|
| 1512 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1513 | # path for INSTALL within a source directory, because that will |
---|
| 1514 | # break other packages using the cache if that directory is |
---|
| 1515 | # removed, or if the path is relative. |
---|
| 1516 | INSTALL=$ac_install_sh |
---|
| 1517 | fi |
---|
| 1518 | fi |
---|
| 1519 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1520 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1521 | |
---|
| 1522 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1523 | # It thinks the first close brace ends the variable substitution. |
---|
| 1524 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1525 | |
---|
| 1526 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1527 | |
---|
| 1528 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1529 | |
---|
| 1530 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1531 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1532 | # Just in case |
---|
| 1533 | sleep 1 |
---|
| 1534 | echo timestamp > conftest.file |
---|
| 1535 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1536 | # arguments. Must try -L first in case configure is actually a |
---|
| 1537 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1538 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1539 | # directory). |
---|
| 1540 | if ( |
---|
| 1541 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1542 | if test "$*" = "X"; then |
---|
| 1543 | # -L didn't work. |
---|
| 1544 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1545 | fi |
---|
| 1546 | rm -f conftest.file |
---|
| 1547 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1548 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1549 | |
---|
| 1550 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1551 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1552 | # broken ls alias from the environment. This has actually |
---|
| 1553 | # happened. Such a system could not be considered "sane". |
---|
| 1554 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1555 | alias in your environment" >&5 |
---|
| 1556 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1557 | alias in your environment" >&2;} |
---|
| 1558 | { (exit 1); exit 1; }; } |
---|
| 1559 | fi |
---|
| 1560 | |
---|
| 1561 | test "$2" = conftest.file |
---|
| 1562 | ) |
---|
| 1563 | then |
---|
| 1564 | # Ok. |
---|
| 1565 | : |
---|
[1853] | 1566 | else |
---|
[1956] | 1567 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1568 | Check your system clock" >&5 |
---|
| 1569 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1570 | Check your system clock" >&2;} |
---|
| 1571 | { (exit 1); exit 1; }; } |
---|
[1853] | 1572 | fi |
---|
[1956] | 1573 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1574 | echo "${ECHO_T}yes" >&6 |
---|
| 1575 | test "$program_prefix" != NONE && |
---|
| 1576 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1577 | # Use a double $ so make ignores it. |
---|
| 1578 | test "$program_suffix" != NONE && |
---|
| 1579 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1580 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1581 | # By default was `s,x,x', remove it if useless. |
---|
| 1582 | cat <<\_ACEOF >conftest.sed |
---|
| 1583 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1584 | _ACEOF |
---|
| 1585 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1586 | rm conftest.sed |
---|
[1853] | 1587 | |
---|
[1956] | 1588 | # expand $ac_aux_dir to an absolute path |
---|
| 1589 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1590 | |
---|
| 1591 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1592 | # Use eval to expand $SHELL |
---|
| 1593 | if eval "$MISSING --run true"; then |
---|
| 1594 | am_missing_run="$MISSING --run " |
---|
| 1595 | else |
---|
| 1596 | am_missing_run= |
---|
| 1597 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1598 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1599 | fi |
---|
| 1600 | |
---|
[2819] | 1601 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
[2706] | 1602 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
| 1603 | # argument. Indeed, we sometimes output rules like |
---|
| 1604 | # $(mkdir_p) $(somedir) |
---|
| 1605 | # where $(somedir) is conditionally defined. |
---|
| 1606 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
| 1607 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
| 1608 | mkdir_p='mkdir -p -- .' |
---|
| 1609 | else |
---|
| 1610 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1611 | # recognize any option. It will interpret all options as |
---|
| 1612 | # directories to create, and then abort because `.' already |
---|
| 1613 | # exists. |
---|
[2819] | 1614 | for d in ./-p ./--version; |
---|
[2706] | 1615 | do |
---|
| 1616 | test -d $d && rmdir $d |
---|
| 1617 | done |
---|
| 1618 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1619 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1620 | mkdir_p='$(mkinstalldirs)' |
---|
| 1621 | else |
---|
| 1622 | mkdir_p='$(install_sh) -d' |
---|
| 1623 | fi |
---|
| 1624 | fi |
---|
| 1625 | |
---|
[1956] | 1626 | for ac_prog in gawk mawk nawk awk |
---|
| 1627 | do |
---|
| 1628 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1629 | set dummy $ac_prog; ac_word=$2 |
---|
| 1630 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1632 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1634 | else |
---|
| 1635 | if test -n "$AWK"; then |
---|
| 1636 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1637 | else |
---|
| 1638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1639 | for as_dir in $PATH |
---|
| 1640 | do |
---|
| 1641 | IFS=$as_save_IFS |
---|
| 1642 | test -z "$as_dir" && as_dir=. |
---|
| 1643 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1644 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1645 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1647 | break 2 |
---|
| 1648 | fi |
---|
| 1649 | done |
---|
| 1650 | done |
---|
| 1651 | |
---|
| 1652 | fi |
---|
| 1653 | fi |
---|
| 1654 | AWK=$ac_cv_prog_AWK |
---|
| 1655 | if test -n "$AWK"; then |
---|
| 1656 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1657 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1658 | else |
---|
| 1659 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1660 | echo "${ECHO_T}no" >&6 |
---|
| 1661 | fi |
---|
| 1662 | |
---|
| 1663 | test -n "$AWK" && break |
---|
| 1664 | done |
---|
| 1665 | |
---|
| 1666 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1667 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1668 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1669 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1671 | else |
---|
| 1672 | cat >conftest.make <<\_ACEOF |
---|
| 1673 | all: |
---|
| 1674 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1675 | _ACEOF |
---|
| 1676 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1677 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1678 | if test -n "$ac_maketemp"; then |
---|
| 1679 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1680 | else |
---|
| 1681 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1682 | fi |
---|
| 1683 | rm -f conftest.make |
---|
| 1684 | fi |
---|
| 1685 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1686 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1687 | echo "${ECHO_T}yes" >&6 |
---|
| 1688 | SET_MAKE= |
---|
| 1689 | else |
---|
| 1690 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1691 | echo "${ECHO_T}no" >&6 |
---|
| 1692 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1693 | fi |
---|
| 1694 | |
---|
| 1695 | rm -rf .tst 2>/dev/null |
---|
| 1696 | mkdir .tst 2>/dev/null |
---|
| 1697 | if test -d .tst; then |
---|
| 1698 | am__leading_dot=. |
---|
| 1699 | else |
---|
| 1700 | am__leading_dot=_ |
---|
| 1701 | fi |
---|
| 1702 | rmdir .tst 2>/dev/null |
---|
| 1703 | |
---|
[2706] | 1704 | # test to see if srcdir already configured |
---|
[1956] | 1705 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1706 | test -f $srcdir/config.status; then |
---|
| 1707 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1708 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1709 | { (exit 1); exit 1; }; } |
---|
| 1710 | fi |
---|
| 1711 | |
---|
| 1712 | # test whether we have cygpath |
---|
| 1713 | if test -z "$CYGPATH_W"; then |
---|
| 1714 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1715 | CYGPATH_W='cygpath -w' |
---|
| 1716 | else |
---|
| 1717 | CYGPATH_W=echo |
---|
| 1718 | fi |
---|
| 1719 | fi |
---|
| 1720 | |
---|
| 1721 | |
---|
| 1722 | # Define the identity of the package. |
---|
| 1723 | PACKAGE='orxonox' |
---|
[3243] | 1724 | VERSION='0.2.1-pre-alpha' |
---|
[1956] | 1725 | |
---|
| 1726 | |
---|
| 1727 | cat >>confdefs.h <<_ACEOF |
---|
| 1728 | #define PACKAGE "$PACKAGE" |
---|
| 1729 | _ACEOF |
---|
| 1730 | |
---|
| 1731 | |
---|
| 1732 | cat >>confdefs.h <<_ACEOF |
---|
| 1733 | #define VERSION "$VERSION" |
---|
| 1734 | _ACEOF |
---|
| 1735 | |
---|
| 1736 | # Some tools Automake needs. |
---|
| 1737 | |
---|
| 1738 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1739 | |
---|
| 1740 | |
---|
| 1741 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1742 | |
---|
| 1743 | |
---|
| 1744 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1745 | |
---|
| 1746 | |
---|
| 1747 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1748 | |
---|
| 1749 | |
---|
| 1750 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1751 | |
---|
| 1752 | |
---|
| 1753 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1754 | |
---|
| 1755 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1756 | |
---|
| 1757 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1758 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1759 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1760 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1761 | if test "$cross_compiling" != no; then |
---|
| 1762 | if test -n "$ac_tool_prefix"; then |
---|
| 1763 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1764 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1767 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1769 | else |
---|
| 1770 | if test -n "$STRIP"; then |
---|
| 1771 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1772 | else |
---|
| 1773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1774 | for as_dir in $PATH |
---|
| 1775 | do |
---|
| 1776 | IFS=$as_save_IFS |
---|
| 1777 | test -z "$as_dir" && as_dir=. |
---|
| 1778 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1779 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1780 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1782 | break 2 |
---|
| 1783 | fi |
---|
| 1784 | done |
---|
| 1785 | done |
---|
| 1786 | |
---|
| 1787 | fi |
---|
| 1788 | fi |
---|
| 1789 | STRIP=$ac_cv_prog_STRIP |
---|
| 1790 | if test -n "$STRIP"; then |
---|
| 1791 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1792 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1793 | else |
---|
| 1794 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1795 | echo "${ECHO_T}no" >&6 |
---|
| 1796 | fi |
---|
| 1797 | |
---|
| 1798 | fi |
---|
| 1799 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1800 | ac_ct_STRIP=$STRIP |
---|
| 1801 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1802 | set dummy strip; ac_word=$2 |
---|
| 1803 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1804 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1805 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1807 | else |
---|
| 1808 | if test -n "$ac_ct_STRIP"; then |
---|
| 1809 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1810 | else |
---|
| 1811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1812 | for as_dir in $PATH |
---|
| 1813 | do |
---|
| 1814 | IFS=$as_save_IFS |
---|
| 1815 | test -z "$as_dir" && as_dir=. |
---|
| 1816 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1817 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1818 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1819 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1820 | break 2 |
---|
| 1821 | fi |
---|
| 1822 | done |
---|
| 1823 | done |
---|
| 1824 | |
---|
| 1825 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1826 | fi |
---|
| 1827 | fi |
---|
| 1828 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1829 | if test -n "$ac_ct_STRIP"; then |
---|
| 1830 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1831 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1832 | else |
---|
| 1833 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1834 | echo "${ECHO_T}no" >&6 |
---|
| 1835 | fi |
---|
| 1836 | |
---|
| 1837 | STRIP=$ac_ct_STRIP |
---|
| 1838 | else |
---|
| 1839 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1840 | fi |
---|
| 1841 | |
---|
| 1842 | fi |
---|
| 1843 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1844 | |
---|
| 1845 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1846 | # some platforms. |
---|
| 1847 | |
---|
| 1848 | |
---|
| 1849 | |
---|
| 1850 | |
---|
[2627] | 1851 | |
---|
[1959] | 1852 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1853 | |
---|
| 1854 | |
---|
[3561] | 1855 | ######################### |
---|
| 1856 | ## Checks for programs ## |
---|
| 1857 | ######################### |
---|
[1956] | 1858 | ac_ext=cc |
---|
| 1859 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1860 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1861 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1862 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1863 | if test -n "$ac_tool_prefix"; then |
---|
| 1864 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1865 | do |
---|
| 1866 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1867 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1870 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1872 | else |
---|
| 1873 | if test -n "$CXX"; then |
---|
| 1874 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1875 | else |
---|
| 1876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1877 | for as_dir in $PATH |
---|
| 1878 | do |
---|
| 1879 | IFS=$as_save_IFS |
---|
| 1880 | test -z "$as_dir" && as_dir=. |
---|
| 1881 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1883 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1885 | break 2 |
---|
| 1886 | fi |
---|
| 1887 | done |
---|
| 1888 | done |
---|
| 1889 | |
---|
| 1890 | fi |
---|
| 1891 | fi |
---|
| 1892 | CXX=$ac_cv_prog_CXX |
---|
| 1893 | if test -n "$CXX"; then |
---|
| 1894 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1895 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1896 | else |
---|
| 1897 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1898 | echo "${ECHO_T}no" >&6 |
---|
| 1899 | fi |
---|
| 1900 | |
---|
| 1901 | test -n "$CXX" && break |
---|
| 1902 | done |
---|
| 1903 | fi |
---|
| 1904 | if test -z "$CXX"; then |
---|
| 1905 | ac_ct_CXX=$CXX |
---|
| 1906 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1907 | do |
---|
| 1908 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1909 | set dummy $ac_prog; ac_word=$2 |
---|
| 1910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1912 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1914 | else |
---|
| 1915 | if test -n "$ac_ct_CXX"; then |
---|
| 1916 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1917 | else |
---|
| 1918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1919 | for as_dir in $PATH |
---|
| 1920 | do |
---|
| 1921 | IFS=$as_save_IFS |
---|
| 1922 | test -z "$as_dir" && as_dir=. |
---|
| 1923 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1924 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1925 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1927 | break 2 |
---|
| 1928 | fi |
---|
| 1929 | done |
---|
| 1930 | done |
---|
| 1931 | |
---|
| 1932 | fi |
---|
| 1933 | fi |
---|
| 1934 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1935 | if test -n "$ac_ct_CXX"; then |
---|
| 1936 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1937 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1938 | else |
---|
| 1939 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1940 | echo "${ECHO_T}no" >&6 |
---|
| 1941 | fi |
---|
| 1942 | |
---|
| 1943 | test -n "$ac_ct_CXX" && break |
---|
| 1944 | done |
---|
| 1945 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1946 | |
---|
| 1947 | CXX=$ac_ct_CXX |
---|
| 1948 | fi |
---|
| 1949 | |
---|
| 1950 | |
---|
| 1951 | # Provide some information about the compiler. |
---|
| 1952 | echo "$as_me:$LINENO:" \ |
---|
| 1953 | "checking for C++ compiler version" >&5 |
---|
| 1954 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1955 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1956 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1957 | ac_status=$? |
---|
| 1958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1959 | (exit $ac_status); } |
---|
| 1960 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1961 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1962 | ac_status=$? |
---|
| 1963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1964 | (exit $ac_status); } |
---|
| 1965 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1966 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1967 | ac_status=$? |
---|
| 1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1969 | (exit $ac_status); } |
---|
| 1970 | |
---|
| 1971 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1972 | /* confdefs.h. */ |
---|
| 1973 | _ACEOF |
---|
| 1974 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1975 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1976 | /* end confdefs.h. */ |
---|
| 1977 | |
---|
| 1978 | int |
---|
| 1979 | main () |
---|
| 1980 | { |
---|
| 1981 | |
---|
| 1982 | ; |
---|
| 1983 | return 0; |
---|
| 1984 | } |
---|
| 1985 | _ACEOF |
---|
| 1986 | ac_clean_files_save=$ac_clean_files |
---|
| 1987 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1988 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1989 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1990 | # of exeext. |
---|
| 1991 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1992 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1993 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1994 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1995 | (eval $ac_link_default) 2>&5 |
---|
| 1996 | ac_status=$? |
---|
| 1997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1998 | (exit $ac_status); }; then |
---|
| 1999 | # Find the output, starting from the most likely. This scheme is |
---|
| 2000 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 2001 | # resort. |
---|
| 2002 | |
---|
| 2003 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 2004 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 2005 | ac_cv_exeext= |
---|
| 2006 | # b.out is created by i960 compilers. |
---|
| 2007 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 2008 | do |
---|
| 2009 | test -f "$ac_file" || continue |
---|
| 2010 | case $ac_file in |
---|
| 2011 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 2012 | ;; |
---|
| 2013 | conftest.$ac_ext ) |
---|
| 2014 | # This is the source file. |
---|
| 2015 | ;; |
---|
| 2016 | [ab].out ) |
---|
| 2017 | # We found the default executable, but exeext='' is most |
---|
| 2018 | # certainly right. |
---|
| 2019 | break;; |
---|
| 2020 | *.* ) |
---|
| 2021 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2022 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 2023 | # but it would be cool to find out if it's true. Does anybody |
---|
| 2024 | # maintain Libtool? --akim. |
---|
| 2025 | export ac_cv_exeext |
---|
| 2026 | break;; |
---|
| 2027 | * ) |
---|
| 2028 | break;; |
---|
| 2029 | esac |
---|
| 2030 | done |
---|
| 2031 | else |
---|
| 2032 | echo "$as_me: failed program was:" >&5 |
---|
| 2033 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2034 | |
---|
| 2035 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 2036 | See \`config.log' for more details." >&5 |
---|
| 2037 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 2038 | See \`config.log' for more details." >&2;} |
---|
| 2039 | { (exit 77); exit 77; }; } |
---|
| 2040 | fi |
---|
| 2041 | |
---|
| 2042 | ac_exeext=$ac_cv_exeext |
---|
| 2043 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2044 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 2045 | |
---|
| 2046 | # Check the compiler produces executables we can run. If not, either |
---|
| 2047 | # the compiler is broken, or we cross compile. |
---|
| 2048 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 2049 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 2050 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2051 | # If not cross compiling, check that we can run a simple program. |
---|
| 2052 | if test "$cross_compiling" != yes; then |
---|
| 2053 | if { ac_try='./$ac_file' |
---|
| 2054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2055 | (eval $ac_try) 2>&5 |
---|
| 2056 | ac_status=$? |
---|
| 2057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2058 | (exit $ac_status); }; }; then |
---|
| 2059 | cross_compiling=no |
---|
| 2060 | else |
---|
| 2061 | if test "$cross_compiling" = maybe; then |
---|
| 2062 | cross_compiling=yes |
---|
| 2063 | else |
---|
| 2064 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 2065 | If you meant to cross compile, use \`--host'. |
---|
| 2066 | See \`config.log' for more details." >&5 |
---|
| 2067 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 2068 | If you meant to cross compile, use \`--host'. |
---|
| 2069 | See \`config.log' for more details." >&2;} |
---|
| 2070 | { (exit 1); exit 1; }; } |
---|
| 2071 | fi |
---|
| 2072 | fi |
---|
| 2073 | fi |
---|
| 2074 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2075 | echo "${ECHO_T}yes" >&6 |
---|
| 2076 | |
---|
| 2077 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2078 | ac_clean_files=$ac_clean_files_save |
---|
| 2079 | # Check the compiler produces executables we can run. If not, either |
---|
| 2080 | # the compiler is broken, or we cross compile. |
---|
| 2081 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2082 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2083 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2084 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2085 | |
---|
| 2086 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2087 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2089 | (eval $ac_link) 2>&5 |
---|
| 2090 | ac_status=$? |
---|
| 2091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2092 | (exit $ac_status); }; then |
---|
| 2093 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2094 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2095 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2096 | # `rm'. |
---|
| 2097 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2098 | test -f "$ac_file" || continue |
---|
| 2099 | case $ac_file in |
---|
| 2100 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2101 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2102 | export ac_cv_exeext |
---|
| 2103 | break;; |
---|
| 2104 | * ) break;; |
---|
| 2105 | esac |
---|
| 2106 | done |
---|
| 2107 | else |
---|
| 2108 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2109 | See \`config.log' for more details." >&5 |
---|
| 2110 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2111 | See \`config.log' for more details." >&2;} |
---|
| 2112 | { (exit 1); exit 1; }; } |
---|
| 2113 | fi |
---|
| 2114 | |
---|
| 2115 | rm -f conftest$ac_cv_exeext |
---|
| 2116 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2117 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2118 | |
---|
| 2119 | rm -f conftest.$ac_ext |
---|
| 2120 | EXEEXT=$ac_cv_exeext |
---|
| 2121 | ac_exeext=$EXEEXT |
---|
| 2122 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2123 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2124 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2126 | else |
---|
| 2127 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2128 | /* confdefs.h. */ |
---|
| 2129 | _ACEOF |
---|
| 2130 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2131 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2132 | /* end confdefs.h. */ |
---|
| 2133 | |
---|
| 2134 | int |
---|
| 2135 | main () |
---|
| 2136 | { |
---|
| 2137 | |
---|
| 2138 | ; |
---|
| 2139 | return 0; |
---|
| 2140 | } |
---|
| 2141 | _ACEOF |
---|
| 2142 | rm -f conftest.o conftest.obj |
---|
| 2143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2144 | (eval $ac_compile) 2>&5 |
---|
| 2145 | ac_status=$? |
---|
| 2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2147 | (exit $ac_status); }; then |
---|
| 2148 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2149 | case $ac_file in |
---|
| 2150 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2151 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2152 | break;; |
---|
| 2153 | esac |
---|
| 2154 | done |
---|
| 2155 | else |
---|
| 2156 | echo "$as_me: failed program was:" >&5 |
---|
| 2157 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2158 | |
---|
| 2159 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2160 | See \`config.log' for more details." >&5 |
---|
| 2161 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2162 | See \`config.log' for more details." >&2;} |
---|
| 2163 | { (exit 1); exit 1; }; } |
---|
| 2164 | fi |
---|
| 2165 | |
---|
| 2166 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2167 | fi |
---|
| 2168 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2169 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2170 | OBJEXT=$ac_cv_objext |
---|
| 2171 | ac_objext=$OBJEXT |
---|
| 2172 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2173 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2174 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2176 | else |
---|
| 2177 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2178 | /* confdefs.h. */ |
---|
| 2179 | _ACEOF |
---|
| 2180 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2181 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2182 | /* end confdefs.h. */ |
---|
| 2183 | |
---|
| 2184 | int |
---|
| 2185 | main () |
---|
| 2186 | { |
---|
| 2187 | #ifndef __GNUC__ |
---|
| 2188 | choke me |
---|
| 2189 | #endif |
---|
| 2190 | |
---|
| 2191 | ; |
---|
| 2192 | return 0; |
---|
| 2193 | } |
---|
| 2194 | _ACEOF |
---|
| 2195 | rm -f conftest.$ac_objext |
---|
| 2196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2197 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2198 | ac_status=$? |
---|
| 2199 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2200 | rm -f conftest.er1 |
---|
| 2201 | cat conftest.err >&5 |
---|
| 2202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2203 | (exit $ac_status); } && |
---|
| 2204 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2205 | || test ! -s conftest.err' |
---|
| 2206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2207 | (eval $ac_try) 2>&5 |
---|
| 2208 | ac_status=$? |
---|
| 2209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2210 | (exit $ac_status); }; } && |
---|
| 2211 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2213 | (eval $ac_try) 2>&5 |
---|
| 2214 | ac_status=$? |
---|
| 2215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2216 | (exit $ac_status); }; }; then |
---|
| 2217 | ac_compiler_gnu=yes |
---|
| 2218 | else |
---|
| 2219 | echo "$as_me: failed program was:" >&5 |
---|
| 2220 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2221 | |
---|
| 2222 | ac_compiler_gnu=no |
---|
| 2223 | fi |
---|
| 2224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2225 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2226 | |
---|
| 2227 | fi |
---|
| 2228 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2229 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2230 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2231 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2232 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2233 | CXXFLAGS="-g" |
---|
| 2234 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2235 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2236 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2238 | else |
---|
| 2239 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2240 | /* confdefs.h. */ |
---|
| 2241 | _ACEOF |
---|
| 2242 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2243 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2244 | /* end confdefs.h. */ |
---|
| 2245 | |
---|
| 2246 | int |
---|
| 2247 | main () |
---|
| 2248 | { |
---|
| 2249 | |
---|
| 2250 | ; |
---|
| 2251 | return 0; |
---|
| 2252 | } |
---|
| 2253 | _ACEOF |
---|
| 2254 | rm -f conftest.$ac_objext |
---|
| 2255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2256 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2257 | ac_status=$? |
---|
| 2258 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2259 | rm -f conftest.er1 |
---|
| 2260 | cat conftest.err >&5 |
---|
| 2261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2262 | (exit $ac_status); } && |
---|
| 2263 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2264 | || test ! -s conftest.err' |
---|
| 2265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2266 | (eval $ac_try) 2>&5 |
---|
| 2267 | ac_status=$? |
---|
| 2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2269 | (exit $ac_status); }; } && |
---|
| 2270 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2272 | (eval $ac_try) 2>&5 |
---|
| 2273 | ac_status=$? |
---|
| 2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2275 | (exit $ac_status); }; }; then |
---|
| 2276 | ac_cv_prog_cxx_g=yes |
---|
| 2277 | else |
---|
| 2278 | echo "$as_me: failed program was:" >&5 |
---|
| 2279 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2280 | |
---|
| 2281 | ac_cv_prog_cxx_g=no |
---|
| 2282 | fi |
---|
| 2283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2284 | fi |
---|
| 2285 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2286 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2287 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2288 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2289 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2290 | if test "$GXX" = yes; then |
---|
| 2291 | CXXFLAGS="-g -O2" |
---|
| 2292 | else |
---|
| 2293 | CXXFLAGS="-g" |
---|
| 2294 | fi |
---|
| 2295 | else |
---|
| 2296 | if test "$GXX" = yes; then |
---|
| 2297 | CXXFLAGS="-O2" |
---|
| 2298 | else |
---|
| 2299 | CXXFLAGS= |
---|
| 2300 | fi |
---|
| 2301 | fi |
---|
| 2302 | for ac_declaration in \ |
---|
| 2303 | '' \ |
---|
| 2304 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2305 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2306 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2307 | 'extern "C" void exit (int);' \ |
---|
| 2308 | 'void exit (int);' |
---|
| 2309 | do |
---|
| 2310 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2311 | /* confdefs.h. */ |
---|
| 2312 | _ACEOF |
---|
| 2313 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2314 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2315 | /* end confdefs.h. */ |
---|
| 2316 | $ac_declaration |
---|
| 2317 | #include <stdlib.h> |
---|
| 2318 | int |
---|
| 2319 | main () |
---|
| 2320 | { |
---|
| 2321 | exit (42); |
---|
| 2322 | ; |
---|
| 2323 | return 0; |
---|
| 2324 | } |
---|
| 2325 | _ACEOF |
---|
| 2326 | rm -f conftest.$ac_objext |
---|
| 2327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2328 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2329 | ac_status=$? |
---|
| 2330 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2331 | rm -f conftest.er1 |
---|
| 2332 | cat conftest.err >&5 |
---|
| 2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2334 | (exit $ac_status); } && |
---|
| 2335 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2336 | || test ! -s conftest.err' |
---|
| 2337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2338 | (eval $ac_try) 2>&5 |
---|
| 2339 | ac_status=$? |
---|
| 2340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2341 | (exit $ac_status); }; } && |
---|
| 2342 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2344 | (eval $ac_try) 2>&5 |
---|
| 2345 | ac_status=$? |
---|
| 2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2347 | (exit $ac_status); }; }; then |
---|
| 2348 | : |
---|
| 2349 | else |
---|
| 2350 | echo "$as_me: failed program was:" >&5 |
---|
| 2351 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2352 | |
---|
| 2353 | continue |
---|
| 2354 | fi |
---|
| 2355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2356 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2357 | /* confdefs.h. */ |
---|
| 2358 | _ACEOF |
---|
| 2359 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2360 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2361 | /* end confdefs.h. */ |
---|
| 2362 | $ac_declaration |
---|
| 2363 | int |
---|
| 2364 | main () |
---|
| 2365 | { |
---|
| 2366 | exit (42); |
---|
| 2367 | ; |
---|
| 2368 | return 0; |
---|
| 2369 | } |
---|
| 2370 | _ACEOF |
---|
| 2371 | rm -f conftest.$ac_objext |
---|
| 2372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2373 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2374 | ac_status=$? |
---|
| 2375 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2376 | rm -f conftest.er1 |
---|
| 2377 | cat conftest.err >&5 |
---|
| 2378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2379 | (exit $ac_status); } && |
---|
| 2380 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2381 | || test ! -s conftest.err' |
---|
| 2382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2383 | (eval $ac_try) 2>&5 |
---|
| 2384 | ac_status=$? |
---|
| 2385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2386 | (exit $ac_status); }; } && |
---|
| 2387 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2389 | (eval $ac_try) 2>&5 |
---|
| 2390 | ac_status=$? |
---|
| 2391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2392 | (exit $ac_status); }; }; then |
---|
| 2393 | break |
---|
| 2394 | else |
---|
| 2395 | echo "$as_me: failed program was:" >&5 |
---|
| 2396 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2397 | |
---|
| 2398 | fi |
---|
| 2399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2400 | done |
---|
| 2401 | rm -f conftest* |
---|
| 2402 | if test -n "$ac_declaration"; then |
---|
| 2403 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2404 | echo $ac_declaration >>confdefs.h |
---|
| 2405 | echo '#endif' >>confdefs.h |
---|
| 2406 | fi |
---|
| 2407 | |
---|
| 2408 | ac_ext=c |
---|
| 2409 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2413 | DEPDIR="${am__leading_dot}deps" |
---|
| 2414 | |
---|
| 2415 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2416 | |
---|
| 2417 | |
---|
| 2418 | am_make=${MAKE-make} |
---|
| 2419 | cat > confinc << 'END' |
---|
| 2420 | am__doit: |
---|
| 2421 | @echo done |
---|
| 2422 | .PHONY: am__doit |
---|
| 2423 | END |
---|
| 2424 | # If we don't find an include directive, just comment out the code. |
---|
| 2425 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2426 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2427 | am__include="#" |
---|
| 2428 | am__quote= |
---|
| 2429 | _am_result=none |
---|
| 2430 | # First try GNU make style include. |
---|
| 2431 | echo "include confinc" > confmf |
---|
| 2432 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2433 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2434 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2435 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2436 | # case it prints its new name instead of `make'. |
---|
| 2437 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2438 | am__include=include |
---|
| 2439 | am__quote= |
---|
| 2440 | _am_result=GNU |
---|
| 2441 | fi |
---|
| 2442 | # Now try BSD make style include. |
---|
| 2443 | if test "$am__include" = "#"; then |
---|
| 2444 | echo '.include "confinc"' > confmf |
---|
| 2445 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2446 | am__include=.include |
---|
| 2447 | am__quote="\"" |
---|
| 2448 | _am_result=BSD |
---|
| 2449 | fi |
---|
| 2450 | fi |
---|
| 2451 | |
---|
| 2452 | |
---|
| 2453 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2454 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2455 | rm -f confinc confmf |
---|
| 2456 | |
---|
| 2457 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2458 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2459 | enableval="$enable_dependency_tracking" |
---|
| 2460 | |
---|
| 2461 | fi; |
---|
| 2462 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2463 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2464 | AMDEPBACKSLASH='\' |
---|
| 2465 | fi |
---|
| 2466 | |
---|
| 2467 | |
---|
| 2468 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2469 | AMDEP_TRUE= |
---|
| 2470 | AMDEP_FALSE='#' |
---|
| 2471 | else |
---|
| 2472 | AMDEP_TRUE='#' |
---|
| 2473 | AMDEP_FALSE= |
---|
| 2474 | fi |
---|
| 2475 | |
---|
| 2476 | |
---|
| 2477 | |
---|
| 2478 | |
---|
| 2479 | depcc="$CXX" am_compiler_list= |
---|
| 2480 | |
---|
| 2481 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2482 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2483 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2485 | else |
---|
| 2486 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2487 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2488 | # making bogus files that we don't know about and never remove. For |
---|
| 2489 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2490 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2491 | # in D'. |
---|
| 2492 | mkdir conftest.dir |
---|
| 2493 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2494 | # using a relative directory. |
---|
| 2495 | cp "$am_depcomp" conftest.dir |
---|
| 2496 | cd conftest.dir |
---|
| 2497 | # We will build objects and dependencies in a subdirectory because |
---|
| 2498 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2499 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2500 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2501 | # the current directory while Tru64 will put them in the object |
---|
| 2502 | # directory. |
---|
| 2503 | mkdir sub |
---|
| 2504 | |
---|
| 2505 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2506 | if test "$am_compiler_list" = ""; then |
---|
| 2507 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2508 | fi |
---|
| 2509 | for depmode in $am_compiler_list; do |
---|
| 2510 | # Setup a source with many dependencies, because some compilers |
---|
| 2511 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2512 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2513 | # |
---|
| 2514 | # We need to recreate these files for each test, as the compiler may |
---|
| 2515 | # overwrite some of them when testing with obscure command lines. |
---|
| 2516 | # This happens at least with the AIX C compiler. |
---|
| 2517 | : > sub/conftest.c |
---|
| 2518 | for i in 1 2 3 4 5 6; do |
---|
| 2519 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2819] | 2520 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 2521 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 2522 | touch sub/conftst$i.h |
---|
[1956] | 2523 | done |
---|
| 2524 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2525 | |
---|
| 2526 | case $depmode in |
---|
| 2527 | nosideeffect) |
---|
| 2528 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2529 | # only be used when explicitly requested |
---|
| 2530 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2531 | continue |
---|
| 2532 | else |
---|
| 2533 | break |
---|
| 2534 | fi |
---|
| 2535 | ;; |
---|
| 2536 | none) break ;; |
---|
| 2537 | esac |
---|
| 2538 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2539 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2540 | # handle `-M -o', and we need to detect this. |
---|
| 2541 | if depmode=$depmode \ |
---|
| 2542 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2543 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2544 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2545 | >/dev/null 2>conftest.err && |
---|
| 2546 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2547 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2548 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2549 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2819] | 2550 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 2551 | # that says an option was ignored or not supported. |
---|
| 2552 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 2553 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 2554 | # The diagnosis changed in icc 8.0: |
---|
| 2555 | # icc: Command line remark: option '-MP' not supported |
---|
| 2556 | if (grep 'ignoring option' conftest.err || |
---|
| 2557 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 2558 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2559 | break |
---|
| 2560 | fi |
---|
| 2561 | fi |
---|
| 2562 | done |
---|
| 2563 | |
---|
| 2564 | cd .. |
---|
| 2565 | rm -rf conftest.dir |
---|
| 2566 | else |
---|
| 2567 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2568 | fi |
---|
| 2569 | |
---|
| 2570 | fi |
---|
| 2571 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2572 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2573 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2574 | |
---|
| 2575 | |
---|
| 2576 | |
---|
| 2577 | if |
---|
| 2578 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2579 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2580 | am__fastdepCXX_TRUE= |
---|
| 2581 | am__fastdepCXX_FALSE='#' |
---|
| 2582 | else |
---|
| 2583 | am__fastdepCXX_TRUE='#' |
---|
| 2584 | am__fastdepCXX_FALSE= |
---|
| 2585 | fi |
---|
| 2586 | |
---|
| 2587 | |
---|
| 2588 | ac_ext=c |
---|
| 2589 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2593 | if test -n "$ac_tool_prefix"; then |
---|
| 2594 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2595 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2596 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2598 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2600 | else |
---|
| 2601 | if test -n "$CC"; then |
---|
| 2602 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2603 | else |
---|
| 2604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2605 | for as_dir in $PATH |
---|
| 2606 | do |
---|
| 2607 | IFS=$as_save_IFS |
---|
| 2608 | test -z "$as_dir" && as_dir=. |
---|
| 2609 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2611 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2613 | break 2 |
---|
| 2614 | fi |
---|
| 2615 | done |
---|
| 2616 | done |
---|
| 2617 | |
---|
| 2618 | fi |
---|
| 2619 | fi |
---|
| 2620 | CC=$ac_cv_prog_CC |
---|
| 2621 | if test -n "$CC"; then |
---|
| 2622 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2623 | echo "${ECHO_T}$CC" >&6 |
---|
| 2624 | else |
---|
| 2625 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2626 | echo "${ECHO_T}no" >&6 |
---|
| 2627 | fi |
---|
| 2628 | |
---|
| 2629 | fi |
---|
| 2630 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2631 | ac_ct_CC=$CC |
---|
| 2632 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2633 | set dummy gcc; ac_word=$2 |
---|
| 2634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2636 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2638 | else |
---|
| 2639 | if test -n "$ac_ct_CC"; then |
---|
| 2640 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2641 | else |
---|
| 2642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2643 | for as_dir in $PATH |
---|
| 2644 | do |
---|
| 2645 | IFS=$as_save_IFS |
---|
| 2646 | test -z "$as_dir" && as_dir=. |
---|
| 2647 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2649 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2651 | break 2 |
---|
| 2652 | fi |
---|
| 2653 | done |
---|
| 2654 | done |
---|
| 2655 | |
---|
| 2656 | fi |
---|
| 2657 | fi |
---|
| 2658 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2659 | if test -n "$ac_ct_CC"; then |
---|
| 2660 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2661 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2662 | else |
---|
| 2663 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2664 | echo "${ECHO_T}no" >&6 |
---|
| 2665 | fi |
---|
| 2666 | |
---|
| 2667 | CC=$ac_ct_CC |
---|
| 2668 | else |
---|
| 2669 | CC="$ac_cv_prog_CC" |
---|
| 2670 | fi |
---|
| 2671 | |
---|
| 2672 | if test -z "$CC"; then |
---|
| 2673 | if test -n "$ac_tool_prefix"; then |
---|
| 2674 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2675 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2678 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2680 | else |
---|
| 2681 | if test -n "$CC"; then |
---|
| 2682 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2683 | else |
---|
| 2684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2685 | for as_dir in $PATH |
---|
| 2686 | do |
---|
| 2687 | IFS=$as_save_IFS |
---|
| 2688 | test -z "$as_dir" && as_dir=. |
---|
| 2689 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2691 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2693 | break 2 |
---|
| 2694 | fi |
---|
| 2695 | done |
---|
| 2696 | done |
---|
| 2697 | |
---|
| 2698 | fi |
---|
| 2699 | fi |
---|
| 2700 | CC=$ac_cv_prog_CC |
---|
| 2701 | if test -n "$CC"; then |
---|
| 2702 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2703 | echo "${ECHO_T}$CC" >&6 |
---|
| 2704 | else |
---|
| 2705 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2706 | echo "${ECHO_T}no" >&6 |
---|
| 2707 | fi |
---|
| 2708 | |
---|
| 2709 | fi |
---|
| 2710 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2711 | ac_ct_CC=$CC |
---|
| 2712 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2713 | set dummy cc; ac_word=$2 |
---|
| 2714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2716 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2718 | else |
---|
| 2719 | if test -n "$ac_ct_CC"; then |
---|
| 2720 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2721 | else |
---|
| 2722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2723 | for as_dir in $PATH |
---|
| 2724 | do |
---|
| 2725 | IFS=$as_save_IFS |
---|
| 2726 | test -z "$as_dir" && as_dir=. |
---|
| 2727 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2729 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2731 | break 2 |
---|
| 2732 | fi |
---|
| 2733 | done |
---|
| 2734 | done |
---|
| 2735 | |
---|
| 2736 | fi |
---|
| 2737 | fi |
---|
| 2738 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2739 | if test -n "$ac_ct_CC"; then |
---|
| 2740 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2741 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2742 | else |
---|
| 2743 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2744 | echo "${ECHO_T}no" >&6 |
---|
| 2745 | fi |
---|
| 2746 | |
---|
| 2747 | CC=$ac_ct_CC |
---|
| 2748 | else |
---|
| 2749 | CC="$ac_cv_prog_CC" |
---|
| 2750 | fi |
---|
| 2751 | |
---|
| 2752 | fi |
---|
| 2753 | if test -z "$CC"; then |
---|
| 2754 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2755 | set dummy cc; ac_word=$2 |
---|
| 2756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2758 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2760 | else |
---|
| 2761 | if test -n "$CC"; then |
---|
| 2762 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2763 | else |
---|
| 2764 | ac_prog_rejected=no |
---|
| 2765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2766 | for as_dir in $PATH |
---|
| 2767 | do |
---|
| 2768 | IFS=$as_save_IFS |
---|
| 2769 | test -z "$as_dir" && as_dir=. |
---|
| 2770 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2771 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2772 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2773 | ac_prog_rejected=yes |
---|
| 2774 | continue |
---|
| 2775 | fi |
---|
| 2776 | ac_cv_prog_CC="cc" |
---|
| 2777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2778 | break 2 |
---|
| 2779 | fi |
---|
| 2780 | done |
---|
| 2781 | done |
---|
| 2782 | |
---|
| 2783 | if test $ac_prog_rejected = yes; then |
---|
| 2784 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2785 | set dummy $ac_cv_prog_CC |
---|
| 2786 | shift |
---|
| 2787 | if test $# != 0; then |
---|
| 2788 | # We chose a different compiler from the bogus one. |
---|
| 2789 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2790 | # first if we set CC to just the basename; use the full file name. |
---|
| 2791 | shift |
---|
| 2792 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2793 | fi |
---|
| 2794 | fi |
---|
| 2795 | fi |
---|
| 2796 | fi |
---|
| 2797 | CC=$ac_cv_prog_CC |
---|
| 2798 | if test -n "$CC"; then |
---|
| 2799 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2800 | echo "${ECHO_T}$CC" >&6 |
---|
| 2801 | else |
---|
| 2802 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2803 | echo "${ECHO_T}no" >&6 |
---|
| 2804 | fi |
---|
| 2805 | |
---|
| 2806 | fi |
---|
| 2807 | if test -z "$CC"; then |
---|
| 2808 | if test -n "$ac_tool_prefix"; then |
---|
| 2809 | for ac_prog in cl |
---|
| 2810 | do |
---|
| 2811 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2812 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2813 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2814 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2815 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2817 | else |
---|
| 2818 | if test -n "$CC"; then |
---|
| 2819 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2820 | else |
---|
| 2821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2822 | for as_dir in $PATH |
---|
| 2823 | do |
---|
| 2824 | IFS=$as_save_IFS |
---|
| 2825 | test -z "$as_dir" && as_dir=. |
---|
| 2826 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2827 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2828 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2829 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2830 | break 2 |
---|
| 2831 | fi |
---|
| 2832 | done |
---|
| 2833 | done |
---|
| 2834 | |
---|
| 2835 | fi |
---|
| 2836 | fi |
---|
| 2837 | CC=$ac_cv_prog_CC |
---|
| 2838 | if test -n "$CC"; then |
---|
| 2839 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2840 | echo "${ECHO_T}$CC" >&6 |
---|
| 2841 | else |
---|
| 2842 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2843 | echo "${ECHO_T}no" >&6 |
---|
| 2844 | fi |
---|
| 2845 | |
---|
| 2846 | test -n "$CC" && break |
---|
| 2847 | done |
---|
| 2848 | fi |
---|
| 2849 | if test -z "$CC"; then |
---|
| 2850 | ac_ct_CC=$CC |
---|
| 2851 | for ac_prog in cl |
---|
| 2852 | do |
---|
| 2853 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2854 | set dummy $ac_prog; ac_word=$2 |
---|
| 2855 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2857 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2859 | else |
---|
| 2860 | if test -n "$ac_ct_CC"; then |
---|
| 2861 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2862 | else |
---|
| 2863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2864 | for as_dir in $PATH |
---|
| 2865 | do |
---|
| 2866 | IFS=$as_save_IFS |
---|
| 2867 | test -z "$as_dir" && as_dir=. |
---|
| 2868 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2869 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2870 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2872 | break 2 |
---|
| 2873 | fi |
---|
| 2874 | done |
---|
| 2875 | done |
---|
| 2876 | |
---|
| 2877 | fi |
---|
| 2878 | fi |
---|
| 2879 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2880 | if test -n "$ac_ct_CC"; then |
---|
| 2881 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2882 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2883 | else |
---|
| 2884 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2885 | echo "${ECHO_T}no" >&6 |
---|
| 2886 | fi |
---|
| 2887 | |
---|
| 2888 | test -n "$ac_ct_CC" && break |
---|
| 2889 | done |
---|
| 2890 | |
---|
| 2891 | CC=$ac_ct_CC |
---|
| 2892 | fi |
---|
| 2893 | |
---|
| 2894 | fi |
---|
| 2895 | |
---|
| 2896 | |
---|
| 2897 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2898 | See \`config.log' for more details." >&5 |
---|
| 2899 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2900 | See \`config.log' for more details." >&2;} |
---|
| 2901 | { (exit 1); exit 1; }; } |
---|
| 2902 | |
---|
| 2903 | # Provide some information about the compiler. |
---|
| 2904 | echo "$as_me:$LINENO:" \ |
---|
| 2905 | "checking for C compiler version" >&5 |
---|
| 2906 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2907 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2908 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2909 | ac_status=$? |
---|
| 2910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2911 | (exit $ac_status); } |
---|
| 2912 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2913 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2914 | ac_status=$? |
---|
| 2915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2916 | (exit $ac_status); } |
---|
| 2917 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2918 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2919 | ac_status=$? |
---|
| 2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2921 | (exit $ac_status); } |
---|
| 2922 | |
---|
| 2923 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2924 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2925 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2927 | else |
---|
| 2928 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2929 | /* confdefs.h. */ |
---|
| 2930 | _ACEOF |
---|
| 2931 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2932 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2933 | /* end confdefs.h. */ |
---|
| 2934 | |
---|
| 2935 | int |
---|
| 2936 | main () |
---|
| 2937 | { |
---|
| 2938 | #ifndef __GNUC__ |
---|
| 2939 | choke me |
---|
| 2940 | #endif |
---|
| 2941 | |
---|
| 2942 | ; |
---|
| 2943 | return 0; |
---|
| 2944 | } |
---|
| 2945 | _ACEOF |
---|
| 2946 | rm -f conftest.$ac_objext |
---|
| 2947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2948 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2949 | ac_status=$? |
---|
| 2950 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2951 | rm -f conftest.er1 |
---|
| 2952 | cat conftest.err >&5 |
---|
| 2953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2954 | (exit $ac_status); } && |
---|
| 2955 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2956 | || test ! -s conftest.err' |
---|
| 2957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2958 | (eval $ac_try) 2>&5 |
---|
| 2959 | ac_status=$? |
---|
| 2960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2961 | (exit $ac_status); }; } && |
---|
| 2962 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2964 | (eval $ac_try) 2>&5 |
---|
| 2965 | ac_status=$? |
---|
| 2966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2967 | (exit $ac_status); }; }; then |
---|
| 2968 | ac_compiler_gnu=yes |
---|
| 2969 | else |
---|
| 2970 | echo "$as_me: failed program was:" >&5 |
---|
| 2971 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2972 | |
---|
| 2973 | ac_compiler_gnu=no |
---|
| 2974 | fi |
---|
| 2975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2976 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2977 | |
---|
| 2978 | fi |
---|
| 2979 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2980 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2981 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2982 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2983 | ac_save_CFLAGS=$CFLAGS |
---|
| 2984 | CFLAGS="-g" |
---|
| 2985 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2986 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2987 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2989 | else |
---|
| 2990 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2991 | /* confdefs.h. */ |
---|
| 2992 | _ACEOF |
---|
| 2993 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2994 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2995 | /* end confdefs.h. */ |
---|
| 2996 | |
---|
| 2997 | int |
---|
| 2998 | main () |
---|
| 2999 | { |
---|
| 3000 | |
---|
| 3001 | ; |
---|
| 3002 | return 0; |
---|
| 3003 | } |
---|
| 3004 | _ACEOF |
---|
| 3005 | rm -f conftest.$ac_objext |
---|
| 3006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3007 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3008 | ac_status=$? |
---|
| 3009 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3010 | rm -f conftest.er1 |
---|
| 3011 | cat conftest.err >&5 |
---|
| 3012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3013 | (exit $ac_status); } && |
---|
| 3014 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3015 | || test ! -s conftest.err' |
---|
| 3016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3017 | (eval $ac_try) 2>&5 |
---|
| 3018 | ac_status=$? |
---|
| 3019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3020 | (exit $ac_status); }; } && |
---|
| 3021 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3023 | (eval $ac_try) 2>&5 |
---|
| 3024 | ac_status=$? |
---|
| 3025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3026 | (exit $ac_status); }; }; then |
---|
| 3027 | ac_cv_prog_cc_g=yes |
---|
| 3028 | else |
---|
| 3029 | echo "$as_me: failed program was:" >&5 |
---|
| 3030 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3031 | |
---|
| 3032 | ac_cv_prog_cc_g=no |
---|
| 3033 | fi |
---|
| 3034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3035 | fi |
---|
| 3036 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3037 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 3038 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3039 | CFLAGS=$ac_save_CFLAGS |
---|
| 3040 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3041 | if test "$GCC" = yes; then |
---|
| 3042 | CFLAGS="-g -O2" |
---|
| 3043 | else |
---|
| 3044 | CFLAGS="-g" |
---|
| 3045 | fi |
---|
| 3046 | else |
---|
| 3047 | if test "$GCC" = yes; then |
---|
| 3048 | CFLAGS="-O2" |
---|
| 3049 | else |
---|
| 3050 | CFLAGS= |
---|
| 3051 | fi |
---|
| 3052 | fi |
---|
| 3053 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 3054 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 3055 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 3056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3057 | else |
---|
| 3058 | ac_cv_prog_cc_stdc=no |
---|
| 3059 | ac_save_CC=$CC |
---|
| 3060 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3061 | /* confdefs.h. */ |
---|
| 3062 | _ACEOF |
---|
| 3063 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3064 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3065 | /* end confdefs.h. */ |
---|
| 3066 | #include <stdarg.h> |
---|
| 3067 | #include <stdio.h> |
---|
| 3068 | #include <sys/types.h> |
---|
| 3069 | #include <sys/stat.h> |
---|
| 3070 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3071 | struct buf { int x; }; |
---|
| 3072 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3073 | static char *e (p, i) |
---|
| 3074 | char **p; |
---|
| 3075 | int i; |
---|
| 3076 | { |
---|
| 3077 | return p[i]; |
---|
| 3078 | } |
---|
| 3079 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3080 | { |
---|
| 3081 | char *s; |
---|
| 3082 | va_list v; |
---|
| 3083 | va_start (v,p); |
---|
| 3084 | s = g (p, va_arg (v,int)); |
---|
| 3085 | va_end (v); |
---|
| 3086 | return s; |
---|
| 3087 | } |
---|
| 3088 | |
---|
| 3089 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3090 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3091 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3092 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 3093 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3094 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3095 | that's true only with -std1. */ |
---|
| 3096 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3097 | |
---|
| 3098 | int test (int i, double x); |
---|
| 3099 | struct s1 {int (*f) (int a);}; |
---|
| 3100 | struct s2 {int (*f) (double a);}; |
---|
| 3101 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3102 | int argc; |
---|
| 3103 | char **argv; |
---|
| 3104 | int |
---|
| 3105 | main () |
---|
| 3106 | { |
---|
| 3107 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3108 | ; |
---|
| 3109 | return 0; |
---|
| 3110 | } |
---|
| 3111 | _ACEOF |
---|
| 3112 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3113 | # breaks some systems' header files. |
---|
| 3114 | # AIX -qlanglvl=ansi |
---|
| 3115 | # Ultrix and OSF/1 -std1 |
---|
| 3116 | # HP-UX 10.20 and later -Ae |
---|
| 3117 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3118 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3119 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3120 | do |
---|
| 3121 | CC="$ac_save_CC $ac_arg" |
---|
| 3122 | rm -f conftest.$ac_objext |
---|
| 3123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3124 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3125 | ac_status=$? |
---|
| 3126 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3127 | rm -f conftest.er1 |
---|
| 3128 | cat conftest.err >&5 |
---|
| 3129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3130 | (exit $ac_status); } && |
---|
| 3131 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3132 | || test ! -s conftest.err' |
---|
| 3133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3134 | (eval $ac_try) 2>&5 |
---|
| 3135 | ac_status=$? |
---|
| 3136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3137 | (exit $ac_status); }; } && |
---|
| 3138 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3140 | (eval $ac_try) 2>&5 |
---|
| 3141 | ac_status=$? |
---|
| 3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3143 | (exit $ac_status); }; }; then |
---|
| 3144 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3145 | break |
---|
| 3146 | else |
---|
| 3147 | echo "$as_me: failed program was:" >&5 |
---|
| 3148 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3149 | |
---|
| 3150 | fi |
---|
| 3151 | rm -f conftest.err conftest.$ac_objext |
---|
| 3152 | done |
---|
| 3153 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3154 | CC=$ac_save_CC |
---|
| 3155 | |
---|
| 3156 | fi |
---|
| 3157 | |
---|
| 3158 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3159 | x|xno) |
---|
| 3160 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3161 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3162 | *) |
---|
| 3163 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3164 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3165 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3166 | esac |
---|
| 3167 | |
---|
| 3168 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3169 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3170 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3171 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3172 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3173 | #ifndef __cplusplus |
---|
| 3174 | choke me |
---|
| 3175 | #endif |
---|
| 3176 | _ACEOF |
---|
| 3177 | rm -f conftest.$ac_objext |
---|
| 3178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3179 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3180 | ac_status=$? |
---|
| 3181 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3182 | rm -f conftest.er1 |
---|
| 3183 | cat conftest.err >&5 |
---|
| 3184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3185 | (exit $ac_status); } && |
---|
| 3186 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3187 | || test ! -s conftest.err' |
---|
| 3188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3189 | (eval $ac_try) 2>&5 |
---|
| 3190 | ac_status=$? |
---|
| 3191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3192 | (exit $ac_status); }; } && |
---|
| 3193 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3195 | (eval $ac_try) 2>&5 |
---|
| 3196 | ac_status=$? |
---|
| 3197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3198 | (exit $ac_status); }; }; then |
---|
| 3199 | for ac_declaration in \ |
---|
| 3200 | '' \ |
---|
| 3201 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3202 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3203 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3204 | 'extern "C" void exit (int);' \ |
---|
| 3205 | 'void exit (int);' |
---|
| 3206 | do |
---|
| 3207 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3208 | /* confdefs.h. */ |
---|
| 3209 | _ACEOF |
---|
| 3210 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3211 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3212 | /* end confdefs.h. */ |
---|
| 3213 | $ac_declaration |
---|
| 3214 | #include <stdlib.h> |
---|
| 3215 | int |
---|
| 3216 | main () |
---|
| 3217 | { |
---|
| 3218 | exit (42); |
---|
| 3219 | ; |
---|
| 3220 | return 0; |
---|
| 3221 | } |
---|
| 3222 | _ACEOF |
---|
| 3223 | rm -f conftest.$ac_objext |
---|
| 3224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3225 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3226 | ac_status=$? |
---|
| 3227 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3228 | rm -f conftest.er1 |
---|
| 3229 | cat conftest.err >&5 |
---|
| 3230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3231 | (exit $ac_status); } && |
---|
| 3232 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3233 | || test ! -s conftest.err' |
---|
| 3234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3235 | (eval $ac_try) 2>&5 |
---|
| 3236 | ac_status=$? |
---|
| 3237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3238 | (exit $ac_status); }; } && |
---|
| 3239 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3241 | (eval $ac_try) 2>&5 |
---|
| 3242 | ac_status=$? |
---|
| 3243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3244 | (exit $ac_status); }; }; then |
---|
| 3245 | : |
---|
| 3246 | else |
---|
| 3247 | echo "$as_me: failed program was:" >&5 |
---|
| 3248 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3249 | |
---|
| 3250 | continue |
---|
| 3251 | fi |
---|
| 3252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3253 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3254 | /* confdefs.h. */ |
---|
| 3255 | _ACEOF |
---|
| 3256 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3257 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3258 | /* end confdefs.h. */ |
---|
| 3259 | $ac_declaration |
---|
| 3260 | int |
---|
| 3261 | main () |
---|
| 3262 | { |
---|
| 3263 | exit (42); |
---|
| 3264 | ; |
---|
| 3265 | return 0; |
---|
| 3266 | } |
---|
| 3267 | _ACEOF |
---|
| 3268 | rm -f conftest.$ac_objext |
---|
| 3269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3270 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3271 | ac_status=$? |
---|
| 3272 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3273 | rm -f conftest.er1 |
---|
| 3274 | cat conftest.err >&5 |
---|
| 3275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3276 | (exit $ac_status); } && |
---|
| 3277 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3278 | || test ! -s conftest.err' |
---|
| 3279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3280 | (eval $ac_try) 2>&5 |
---|
| 3281 | ac_status=$? |
---|
| 3282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3283 | (exit $ac_status); }; } && |
---|
| 3284 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3286 | (eval $ac_try) 2>&5 |
---|
| 3287 | ac_status=$? |
---|
| 3288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3289 | (exit $ac_status); }; }; then |
---|
| 3290 | break |
---|
| 3291 | else |
---|
| 3292 | echo "$as_me: failed program was:" >&5 |
---|
| 3293 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3294 | |
---|
| 3295 | fi |
---|
| 3296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3297 | done |
---|
| 3298 | rm -f conftest* |
---|
| 3299 | if test -n "$ac_declaration"; then |
---|
| 3300 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3301 | echo $ac_declaration >>confdefs.h |
---|
| 3302 | echo '#endif' >>confdefs.h |
---|
| 3303 | fi |
---|
| 3304 | |
---|
| 3305 | else |
---|
| 3306 | echo "$as_me: failed program was:" >&5 |
---|
| 3307 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3308 | |
---|
| 3309 | fi |
---|
| 3310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3311 | ac_ext=c |
---|
| 3312 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3316 | |
---|
| 3317 | depcc="$CC" am_compiler_list= |
---|
| 3318 | |
---|
| 3319 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3320 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3321 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3323 | else |
---|
| 3324 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3325 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3326 | # making bogus files that we don't know about and never remove. For |
---|
| 3327 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3328 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3329 | # in D'. |
---|
| 3330 | mkdir conftest.dir |
---|
| 3331 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3332 | # using a relative directory. |
---|
| 3333 | cp "$am_depcomp" conftest.dir |
---|
| 3334 | cd conftest.dir |
---|
| 3335 | # We will build objects and dependencies in a subdirectory because |
---|
| 3336 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3337 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3338 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3339 | # the current directory while Tru64 will put them in the object |
---|
| 3340 | # directory. |
---|
| 3341 | mkdir sub |
---|
| 3342 | |
---|
| 3343 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3344 | if test "$am_compiler_list" = ""; then |
---|
| 3345 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3346 | fi |
---|
| 3347 | for depmode in $am_compiler_list; do |
---|
| 3348 | # Setup a source with many dependencies, because some compilers |
---|
| 3349 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3350 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3351 | # |
---|
| 3352 | # We need to recreate these files for each test, as the compiler may |
---|
| 3353 | # overwrite some of them when testing with obscure command lines. |
---|
| 3354 | # This happens at least with the AIX C compiler. |
---|
| 3355 | : > sub/conftest.c |
---|
| 3356 | for i in 1 2 3 4 5 6; do |
---|
| 3357 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[2819] | 3358 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
| 3359 | # Solaris 8's {/usr,}/bin/sh. |
---|
| 3360 | touch sub/conftst$i.h |
---|
[1956] | 3361 | done |
---|
| 3362 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3363 | |
---|
| 3364 | case $depmode in |
---|
| 3365 | nosideeffect) |
---|
| 3366 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3367 | # only be used when explicitly requested |
---|
| 3368 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3369 | continue |
---|
| 3370 | else |
---|
| 3371 | break |
---|
| 3372 | fi |
---|
| 3373 | ;; |
---|
| 3374 | none) break ;; |
---|
| 3375 | esac |
---|
| 3376 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3377 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3378 | # handle `-M -o', and we need to detect this. |
---|
| 3379 | if depmode=$depmode \ |
---|
| 3380 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3381 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3382 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3383 | >/dev/null 2>conftest.err && |
---|
| 3384 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3385 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3386 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3387 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[2819] | 3388 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
| 3389 | # that says an option was ignored or not supported. |
---|
| 3390 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
| 3391 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
| 3392 | # The diagnosis changed in icc 8.0: |
---|
| 3393 | # icc: Command line remark: option '-MP' not supported |
---|
| 3394 | if (grep 'ignoring option' conftest.err || |
---|
| 3395 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
[1956] | 3396 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3397 | break |
---|
| 3398 | fi |
---|
| 3399 | fi |
---|
| 3400 | done |
---|
| 3401 | |
---|
| 3402 | cd .. |
---|
| 3403 | rm -rf conftest.dir |
---|
| 3404 | else |
---|
| 3405 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3406 | fi |
---|
| 3407 | |
---|
| 3408 | fi |
---|
| 3409 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3410 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3411 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3412 | |
---|
| 3413 | |
---|
| 3414 | |
---|
| 3415 | if |
---|
| 3416 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3417 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3418 | am__fastdepCC_TRUE= |
---|
| 3419 | am__fastdepCC_FALSE='#' |
---|
| 3420 | else |
---|
| 3421 | am__fastdepCC_TRUE='#' |
---|
| 3422 | am__fastdepCC_FALSE= |
---|
| 3423 | fi |
---|
| 3424 | |
---|
| 3425 | |
---|
| 3426 | |
---|
[1971] | 3427 | ac_ext=c |
---|
| 3428 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3432 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3433 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3434 | # On Suns, sometimes $CPP names a directory. |
---|
| 3435 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3436 | CPP= |
---|
| 3437 | fi |
---|
| 3438 | if test -z "$CPP"; then |
---|
| 3439 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3441 | else |
---|
[1971] | 3442 | # Double quotes because CPP needs to be expanded |
---|
| 3443 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3444 | do |
---|
| 3445 | ac_preproc_ok=false |
---|
| 3446 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3447 | do |
---|
| 3448 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3449 | # with a fresh cross-compiler works. |
---|
| 3450 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3451 | # <limits.h> exists even on freestanding compilers. |
---|
| 3452 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3453 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3454 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3455 | /* confdefs.h. */ |
---|
| 3456 | _ACEOF |
---|
| 3457 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3458 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3459 | /* end confdefs.h. */ |
---|
| 3460 | #ifdef __STDC__ |
---|
| 3461 | # include <limits.h> |
---|
| 3462 | #else |
---|
| 3463 | # include <assert.h> |
---|
| 3464 | #endif |
---|
| 3465 | Syntax error |
---|
| 3466 | _ACEOF |
---|
| 3467 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3468 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3469 | ac_status=$? |
---|
| 3470 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3471 | rm -f conftest.er1 |
---|
| 3472 | cat conftest.err >&5 |
---|
| 3473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3474 | (exit $ac_status); } >/dev/null; then |
---|
| 3475 | if test -s conftest.err; then |
---|
| 3476 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3477 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3478 | else |
---|
| 3479 | ac_cpp_err= |
---|
| 3480 | fi |
---|
| 3481 | else |
---|
| 3482 | ac_cpp_err=yes |
---|
| 3483 | fi |
---|
| 3484 | if test -z "$ac_cpp_err"; then |
---|
| 3485 | : |
---|
| 3486 | else |
---|
| 3487 | echo "$as_me: failed program was:" >&5 |
---|
| 3488 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3489 | |
---|
| 3490 | # Broken: fails on valid input. |
---|
| 3491 | continue |
---|
| 3492 | fi |
---|
| 3493 | rm -f conftest.err conftest.$ac_ext |
---|
| 3494 | |
---|
| 3495 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3496 | # can be detected and how. |
---|
| 3497 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3498 | /* confdefs.h. */ |
---|
| 3499 | _ACEOF |
---|
| 3500 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3501 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3502 | /* end confdefs.h. */ |
---|
| 3503 | #include <ac_nonexistent.h> |
---|
| 3504 | _ACEOF |
---|
| 3505 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3506 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3507 | ac_status=$? |
---|
| 3508 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3509 | rm -f conftest.er1 |
---|
| 3510 | cat conftest.err >&5 |
---|
| 3511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3512 | (exit $ac_status); } >/dev/null; then |
---|
| 3513 | if test -s conftest.err; then |
---|
| 3514 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3515 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3516 | else |
---|
| 3517 | ac_cpp_err= |
---|
| 3518 | fi |
---|
| 3519 | else |
---|
| 3520 | ac_cpp_err=yes |
---|
| 3521 | fi |
---|
| 3522 | if test -z "$ac_cpp_err"; then |
---|
| 3523 | # Broken: success on invalid input. |
---|
| 3524 | continue |
---|
| 3525 | else |
---|
| 3526 | echo "$as_me: failed program was:" >&5 |
---|
| 3527 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3528 | |
---|
| 3529 | # Passes both tests. |
---|
| 3530 | ac_preproc_ok=: |
---|
| 3531 | break |
---|
| 3532 | fi |
---|
| 3533 | rm -f conftest.err conftest.$ac_ext |
---|
| 3534 | |
---|
| 3535 | done |
---|
| 3536 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3537 | rm -f conftest.err conftest.$ac_ext |
---|
| 3538 | if $ac_preproc_ok; then |
---|
| 3539 | break |
---|
| 3540 | fi |
---|
| 3541 | |
---|
| 3542 | done |
---|
| 3543 | ac_cv_prog_CPP=$CPP |
---|
| 3544 | |
---|
| 3545 | fi |
---|
| 3546 | CPP=$ac_cv_prog_CPP |
---|
| 3547 | else |
---|
| 3548 | ac_cv_prog_CPP=$CPP |
---|
| 3549 | fi |
---|
| 3550 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3551 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3552 | ac_preproc_ok=false |
---|
| 3553 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3554 | do |
---|
| 3555 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3556 | # with a fresh cross-compiler works. |
---|
| 3557 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3558 | # <limits.h> exists even on freestanding compilers. |
---|
| 3559 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3560 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3561 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3562 | /* confdefs.h. */ |
---|
| 3563 | _ACEOF |
---|
| 3564 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3565 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3566 | /* end confdefs.h. */ |
---|
| 3567 | #ifdef __STDC__ |
---|
| 3568 | # include <limits.h> |
---|
| 3569 | #else |
---|
| 3570 | # include <assert.h> |
---|
| 3571 | #endif |
---|
| 3572 | Syntax error |
---|
| 3573 | _ACEOF |
---|
| 3574 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3575 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3576 | ac_status=$? |
---|
| 3577 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3578 | rm -f conftest.er1 |
---|
| 3579 | cat conftest.err >&5 |
---|
| 3580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3581 | (exit $ac_status); } >/dev/null; then |
---|
| 3582 | if test -s conftest.err; then |
---|
| 3583 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3584 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3585 | else |
---|
| 3586 | ac_cpp_err= |
---|
| 3587 | fi |
---|
| 3588 | else |
---|
| 3589 | ac_cpp_err=yes |
---|
| 3590 | fi |
---|
| 3591 | if test -z "$ac_cpp_err"; then |
---|
| 3592 | : |
---|
| 3593 | else |
---|
| 3594 | echo "$as_me: failed program was:" >&5 |
---|
| 3595 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3596 | |
---|
| 3597 | # Broken: fails on valid input. |
---|
| 3598 | continue |
---|
| 3599 | fi |
---|
| 3600 | rm -f conftest.err conftest.$ac_ext |
---|
| 3601 | |
---|
| 3602 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3603 | # can be detected and how. |
---|
| 3604 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3605 | /* confdefs.h. */ |
---|
| 3606 | _ACEOF |
---|
| 3607 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3608 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3609 | /* end confdefs.h. */ |
---|
| 3610 | #include <ac_nonexistent.h> |
---|
| 3611 | _ACEOF |
---|
| 3612 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3613 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3614 | ac_status=$? |
---|
| 3615 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3616 | rm -f conftest.er1 |
---|
| 3617 | cat conftest.err >&5 |
---|
| 3618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3619 | (exit $ac_status); } >/dev/null; then |
---|
| 3620 | if test -s conftest.err; then |
---|
| 3621 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3622 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3623 | else |
---|
| 3624 | ac_cpp_err= |
---|
| 3625 | fi |
---|
| 3626 | else |
---|
| 3627 | ac_cpp_err=yes |
---|
| 3628 | fi |
---|
| 3629 | if test -z "$ac_cpp_err"; then |
---|
| 3630 | # Broken: success on invalid input. |
---|
| 3631 | continue |
---|
| 3632 | else |
---|
| 3633 | echo "$as_me: failed program was:" >&5 |
---|
| 3634 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3635 | |
---|
| 3636 | # Passes both tests. |
---|
| 3637 | ac_preproc_ok=: |
---|
| 3638 | break |
---|
| 3639 | fi |
---|
| 3640 | rm -f conftest.err conftest.$ac_ext |
---|
| 3641 | |
---|
| 3642 | done |
---|
| 3643 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3644 | rm -f conftest.err conftest.$ac_ext |
---|
| 3645 | if $ac_preproc_ok; then |
---|
| 3646 | : |
---|
| 3647 | else |
---|
| 3648 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3649 | See \`config.log' for more details." >&5 |
---|
| 3650 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3651 | See \`config.log' for more details." >&2;} |
---|
| 3652 | { (exit 1); exit 1; }; } |
---|
| 3653 | fi |
---|
| 3654 | |
---|
| 3655 | ac_ext=c |
---|
| 3656 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3657 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3658 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3659 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3660 | |
---|
| 3661 | |
---|
| 3662 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3663 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3664 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3666 | else |
---|
| 3667 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3668 | then ac_cv_prog_egrep='grep -E' |
---|
| 3669 | else ac_cv_prog_egrep='egrep' |
---|
| 3670 | fi |
---|
| 3671 | fi |
---|
| 3672 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3673 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3674 | EGREP=$ac_cv_prog_egrep |
---|
| 3675 | |
---|
| 3676 | |
---|
| 3677 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3678 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3679 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3681 | else |
---|
| 3682 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3683 | /* confdefs.h. */ |
---|
| 3684 | _ACEOF |
---|
| 3685 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3686 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3687 | /* end confdefs.h. */ |
---|
| 3688 | #include <stdlib.h> |
---|
| 3689 | #include <stdarg.h> |
---|
| 3690 | #include <string.h> |
---|
| 3691 | #include <float.h> |
---|
| 3692 | |
---|
| 3693 | int |
---|
| 3694 | main () |
---|
| 3695 | { |
---|
| 3696 | |
---|
| 3697 | ; |
---|
| 3698 | return 0; |
---|
| 3699 | } |
---|
| 3700 | _ACEOF |
---|
| 3701 | rm -f conftest.$ac_objext |
---|
| 3702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3703 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3704 | ac_status=$? |
---|
| 3705 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3706 | rm -f conftest.er1 |
---|
| 3707 | cat conftest.err >&5 |
---|
| 3708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3709 | (exit $ac_status); } && |
---|
| 3710 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3711 | || test ! -s conftest.err' |
---|
| 3712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3713 | (eval $ac_try) 2>&5 |
---|
| 3714 | ac_status=$? |
---|
| 3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3716 | (exit $ac_status); }; } && |
---|
| 3717 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3719 | (eval $ac_try) 2>&5 |
---|
| 3720 | ac_status=$? |
---|
| 3721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3722 | (exit $ac_status); }; }; then |
---|
| 3723 | ac_cv_header_stdc=yes |
---|
| 3724 | else |
---|
| 3725 | echo "$as_me: failed program was:" >&5 |
---|
| 3726 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3727 | |
---|
| 3728 | ac_cv_header_stdc=no |
---|
| 3729 | fi |
---|
| 3730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3731 | |
---|
| 3732 | if test $ac_cv_header_stdc = yes; then |
---|
| 3733 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3734 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3735 | /* confdefs.h. */ |
---|
| 3736 | _ACEOF |
---|
| 3737 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3738 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3739 | /* end confdefs.h. */ |
---|
| 3740 | #include <string.h> |
---|
| 3741 | |
---|
| 3742 | _ACEOF |
---|
| 3743 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3744 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3745 | : |
---|
| 3746 | else |
---|
| 3747 | ac_cv_header_stdc=no |
---|
| 3748 | fi |
---|
| 3749 | rm -f conftest* |
---|
| 3750 | |
---|
| 3751 | fi |
---|
| 3752 | |
---|
| 3753 | if test $ac_cv_header_stdc = yes; then |
---|
| 3754 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3755 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3756 | /* confdefs.h. */ |
---|
| 3757 | _ACEOF |
---|
| 3758 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3759 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3760 | /* end confdefs.h. */ |
---|
| 3761 | #include <stdlib.h> |
---|
| 3762 | |
---|
| 3763 | _ACEOF |
---|
| 3764 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3765 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3766 | : |
---|
| 3767 | else |
---|
| 3768 | ac_cv_header_stdc=no |
---|
| 3769 | fi |
---|
| 3770 | rm -f conftest* |
---|
| 3771 | |
---|
| 3772 | fi |
---|
| 3773 | |
---|
| 3774 | if test $ac_cv_header_stdc = yes; then |
---|
| 3775 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3776 | if test "$cross_compiling" = yes; then |
---|
| 3777 | : |
---|
| 3778 | else |
---|
| 3779 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3780 | /* confdefs.h. */ |
---|
| 3781 | _ACEOF |
---|
| 3782 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3783 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3784 | /* end confdefs.h. */ |
---|
| 3785 | #include <ctype.h> |
---|
| 3786 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3787 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3788 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3789 | #else |
---|
| 3790 | # define ISLOWER(c) \ |
---|
| 3791 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3792 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3793 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3794 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3795 | #endif |
---|
| 3796 | |
---|
| 3797 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3798 | int |
---|
| 3799 | main () |
---|
| 3800 | { |
---|
| 3801 | int i; |
---|
| 3802 | for (i = 0; i < 256; i++) |
---|
| 3803 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3804 | || toupper (i) != TOUPPER (i)) |
---|
| 3805 | exit(2); |
---|
| 3806 | exit (0); |
---|
| 3807 | } |
---|
| 3808 | _ACEOF |
---|
| 3809 | rm -f conftest$ac_exeext |
---|
| 3810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3811 | (eval $ac_link) 2>&5 |
---|
| 3812 | ac_status=$? |
---|
| 3813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3814 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3816 | (eval $ac_try) 2>&5 |
---|
| 3817 | ac_status=$? |
---|
| 3818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3819 | (exit $ac_status); }; }; then |
---|
| 3820 | : |
---|
| 3821 | else |
---|
| 3822 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3823 | echo "$as_me: failed program was:" >&5 |
---|
| 3824 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3825 | |
---|
| 3826 | ( exit $ac_status ) |
---|
| 3827 | ac_cv_header_stdc=no |
---|
| 3828 | fi |
---|
| 3829 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3830 | fi |
---|
| 3831 | fi |
---|
| 3832 | fi |
---|
| 3833 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3834 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3835 | if test $ac_cv_header_stdc = yes; then |
---|
| 3836 | |
---|
| 3837 | cat >>confdefs.h <<\_ACEOF |
---|
| 3838 | #define STDC_HEADERS 1 |
---|
| 3839 | _ACEOF |
---|
| 3840 | |
---|
| 3841 | fi |
---|
| 3842 | |
---|
| 3843 | |
---|
[3561] | 3844 | ################################## |
---|
| 3845 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
| 3846 | ################################## |
---|
| 3847 | |
---|
| 3848 | #-----------------# |
---|
| 3849 | # DEBUG-statement # |
---|
| 3850 | #-----------------# |
---|
[3173] | 3851 | DEBUG=no |
---|
| 3852 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
| 3853 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3854 | # Check whether --enable-debug or --disable-debug was given. |
---|
| 3855 | if test "${enable_debug+set}" = set; then |
---|
| 3856 | enableval="$enable_debug" |
---|
[3205] | 3857 | DEBUG=$enableval |
---|
[3173] | 3858 | fi; |
---|
| 3859 | |
---|
[3561] | 3860 | if test x$DEBUG = xno; then |
---|
[3205] | 3861 | echo "no" |
---|
[3561] | 3862 | echo " -> Setting debuglevel to 3. (orxonox is still in Development. It really is needed." |
---|
| 3863 | DEBUG=3 |
---|
| 3864 | elif test x$DEBUG = xyes; then |
---|
[3205] | 3865 | echo "yes" |
---|
[3561] | 3866 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
| 3867 | DEBUG=4 |
---|
[3205] | 3868 | else |
---|
[3561] | 3869 | echo "yes: setting debuglevel to to $DEBUG" |
---|
[3205] | 3870 | fi |
---|
| 3871 | |
---|
[3173] | 3872 | cat >>confdefs.h <<_ACEOF |
---|
[3205] | 3873 | #define DEBUG $DEBUG |
---|
[3173] | 3874 | _ACEOF |
---|
| 3875 | |
---|
| 3876 | |
---|
| 3877 | |
---|
| 3878 | |
---|
[3561] | 3879 | #--------------# |
---|
| 3880 | # GTK-disabled # |
---|
| 3881 | #--------------# |
---|
[3100] | 3882 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
| 3883 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3884 | |
---|
| 3885 | # Check whether --with-gtk or --without-gtk was given. |
---|
| 3886 | if test "${with_gtk+set}" = set; then |
---|
| 3887 | withval="$with_gtk" |
---|
[3100] | 3888 | def_gtk=no |
---|
[3205] | 3889 | else |
---|
| 3890 | def_gtk=yes |
---|
[3100] | 3891 | fi; |
---|
[3561] | 3892 | if test x$def_gtk = xyes; then |
---|
[3100] | 3893 | echo "yes" |
---|
| 3894 | fi |
---|
[3561] | 3895 | if test x$def_gtk = xno; then |
---|
[3100] | 3896 | echo "no" |
---|
| 3897 | fi |
---|
[3243] | 3898 | |
---|
[3561] | 3899 | #------------------# |
---|
| 3900 | # gThread-disabled # |
---|
| 3901 | #------------------# |
---|
[3271] | 3902 | echo "$as_me:$LINENO: checking if gThread should be enabled" >&5 |
---|
| 3903 | echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6 |
---|
| 3904 | |
---|
| 3905 | # Check whether --with-gthread or --without-gthread was given. |
---|
| 3906 | if test "${with_gthread+set}" = set; then |
---|
| 3907 | withval="$with_gthread" |
---|
| 3908 | def_gthread=no |
---|
| 3909 | else |
---|
| 3910 | def_gthread=yes |
---|
| 3911 | fi; |
---|
[3561] | 3912 | if test x$def_gthread = xyes; then |
---|
[3271] | 3913 | echo "yes" |
---|
| 3914 | fi |
---|
[3561] | 3915 | if test x$def_gthread = xno; then |
---|
[3271] | 3916 | echo "no" |
---|
| 3917 | fi |
---|
| 3918 | |
---|
[3561] | 3919 | #------------------# |
---|
| 3920 | # pthread-disabled # |
---|
| 3921 | #------------------# |
---|
[3283] | 3922 | echo "$as_me:$LINENO: checking if pthread should be enabled" >&5 |
---|
| 3923 | echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6 |
---|
| 3924 | |
---|
| 3925 | # Check whether --with-pthread or --without-pthread was given. |
---|
| 3926 | if test "${with_pthread+set}" = set; then |
---|
| 3927 | withval="$with_pthread" |
---|
| 3928 | def_pthread=no |
---|
| 3929 | else |
---|
| 3930 | def_pthread=yes |
---|
| 3931 | fi; |
---|
[3561] | 3932 | if test x$def_pthread = xyes; then |
---|
[3283] | 3933 | echo "yes" |
---|
| 3934 | fi |
---|
[3561] | 3935 | if test x$def_pthread = xno; then |
---|
[3283] | 3936 | echo "no" |
---|
| 3937 | fi |
---|
| 3938 | |
---|
[3561] | 3939 | #------------------# |
---|
| 3940 | # libCurl-disabled # |
---|
| 3941 | #------------------# |
---|
[3243] | 3942 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
| 3943 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
| 3944 | |
---|
| 3945 | # Check whether --with-curl or --without-curl was given. |
---|
| 3946 | if test "${with_curl+set}" = set; then |
---|
| 3947 | withval="$with_curl" |
---|
| 3948 | def_curl=no |
---|
| 3949 | else |
---|
| 3950 | def_curl=yes |
---|
| 3951 | fi; |
---|
[3561] | 3952 | if test x$def_curl = xyes; then |
---|
[3243] | 3953 | echo "yes" |
---|
| 3954 | fi |
---|
[3561] | 3955 | if test x$def_curl = xno; then |
---|
[3243] | 3956 | echo "no" |
---|
| 3957 | fi |
---|
| 3958 | |
---|
[3561] | 3959 | #-------------------# |
---|
| 3960 | # SDL_image-disable # |
---|
| 3961 | #-------------------# |
---|
[3140] | 3962 | def_sdl_image=yes |
---|
| 3963 | echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5 |
---|
| 3964 | echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3965 | |
---|
| 3966 | # Check whether --with-sdl_image or --without-sdl_image was given. |
---|
| 3967 | if test "${with_sdl_image+set}" = set; then |
---|
| 3968 | withval="$with_sdl_image" |
---|
[3140] | 3969 | def_sdl_image=no |
---|
| 3970 | fi; |
---|
[3561] | 3971 | if test x$def_sdl_image = xyes; then |
---|
[3140] | 3972 | echo "yes" |
---|
| 3973 | fi |
---|
[3561] | 3974 | if test x$def_sdl_image = xno; then |
---|
[3140] | 3975 | echo "no" |
---|
| 3976 | fi |
---|
[3561] | 3977 | #-------------------# |
---|
| 3978 | # SubProject-enable # |
---|
| 3979 | #-------------------# |
---|
| 3980 | def_sub_projects=no |
---|
| 3981 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
| 3982 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
| 3983 | # Check whether --enable-sub-projects or --disable-sub-projects was given. |
---|
| 3984 | if test "${enable_sub_projects+set}" = set; then |
---|
| 3985 | enableval="$enable_sub_projects" |
---|
| 3986 | def_sub_projects=yes |
---|
| 3987 | fi; |
---|
| 3988 | if test x$def_sub_projects = xyes; then |
---|
| 3989 | echo "yes" |
---|
| 3990 | fi |
---|
| 3991 | if test x$def_sub_projects = xno; then |
---|
| 3992 | echo "no" |
---|
| 3993 | fi |
---|
[3100] | 3994 | |
---|
[3219] | 3995 | |
---|
[3561] | 3996 | if test x$def_sub_projects = xyes; then |
---|
| 3997 | SUB_PROJECTS_TRUE= |
---|
| 3998 | SUB_PROJECTS_FALSE='#' |
---|
| 3999 | else |
---|
| 4000 | SUB_PROJECTS_TRUE='#' |
---|
| 4001 | SUB_PROJECTS_FALSE= |
---|
| 4002 | fi |
---|
| 4003 | |
---|
| 4004 | |
---|
| 4005 | ####################### |
---|
| 4006 | ## PROGRAMM CHECKING ## |
---|
| 4007 | ## 3. party Programs ## |
---|
| 4008 | ####################### |
---|
| 4009 | |
---|
| 4010 | #----------------------# |
---|
| 4011 | # checking for Doxygen # |
---|
| 4012 | #----------------------# |
---|
[3219] | 4013 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
| 4014 | set dummy doxygen; ac_word=$2 |
---|
| 4015 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4017 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
| 4018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4019 | else |
---|
| 4020 | case $DOXYGEN in |
---|
| 4021 | [\\/]* | ?:[\\/]*) |
---|
| 4022 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
| 4023 | ;; |
---|
| 4024 | *) |
---|
| 4025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4026 | for as_dir in $PATH |
---|
| 4027 | do |
---|
| 4028 | IFS=$as_save_IFS |
---|
| 4029 | test -z "$as_dir" && as_dir=. |
---|
| 4030 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4031 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4032 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4034 | break 2 |
---|
| 4035 | fi |
---|
| 4036 | done |
---|
| 4037 | done |
---|
| 4038 | |
---|
| 4039 | ;; |
---|
| 4040 | esac |
---|
| 4041 | fi |
---|
| 4042 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
| 4043 | |
---|
| 4044 | if test -n "$DOXYGEN"; then |
---|
| 4045 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
| 4046 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
| 4047 | else |
---|
| 4048 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4049 | echo "${ECHO_T}no" >&6 |
---|
| 4050 | fi |
---|
| 4051 | |
---|
| 4052 | |
---|
| 4053 | |
---|
| 4054 | if test $DOXYGEN; then |
---|
| 4055 | DOXYGEN_TRUE= |
---|
| 4056 | DOXYGEN_FALSE='#' |
---|
| 4057 | else |
---|
| 4058 | DOXYGEN_TRUE='#' |
---|
| 4059 | DOXYGEN_FALSE= |
---|
| 4060 | fi |
---|
| 4061 | |
---|
| 4062 | |
---|
[3561] | 4063 | ######################### |
---|
| 4064 | ## CHECKING FOR SYSTEM ## |
---|
| 4065 | ######################### |
---|
| 4066 | ## here the system is checked, and openGL is included |
---|
| 4067 | ## also checking for SDL on differen Systems |
---|
[1971] | 4068 | |
---|
[2925] | 4069 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 4070 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
[2980] | 4071 | ## checking for openGL-environment and other sys-specific parameters |
---|
| 4072 | case "$target" in |
---|
[3561] | 4073 | #---------# |
---|
| 4074 | # WINDOWS # |
---|
| 4075 | #---------# |
---|
[2980] | 4076 | *-*-mingw32*) |
---|
[2925] | 4077 | echo "mingw-WINDOWS detected" |
---|
[1971] | 4078 | |
---|
[2925] | 4079 | mingw="yes" |
---|
| 4080 | MSBITFIELDS="-mms-bitfields" |
---|
| 4081 | MWINDOWS="-mwindows" |
---|
[1971] | 4082 | |
---|
[2925] | 4083 | # checking gl header |
---|
| 4084 | #done before loop |
---|
[1971] | 4085 | |
---|
[2968] | 4086 | # checking gl header |
---|
[2925] | 4087 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
[1971] | 4088 | |
---|
| 4089 | |
---|
| 4090 | |
---|
| 4091 | |
---|
[2925] | 4092 | |
---|
| 4093 | |
---|
| 4094 | |
---|
| 4095 | |
---|
| 4096 | |
---|
[1971] | 4097 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 4098 | inttypes.h stdint.h unistd.h |
---|
| 4099 | do |
---|
| 4100 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4101 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4102 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4103 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4105 | else |
---|
| 4106 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4107 | /* confdefs.h. */ |
---|
| 4108 | _ACEOF |
---|
| 4109 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4110 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4111 | /* end confdefs.h. */ |
---|
| 4112 | $ac_includes_default |
---|
| 4113 | |
---|
| 4114 | #include <$ac_header> |
---|
| 4115 | _ACEOF |
---|
| 4116 | rm -f conftest.$ac_objext |
---|
| 4117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4118 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4119 | ac_status=$? |
---|
| 4120 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4121 | rm -f conftest.er1 |
---|
| 4122 | cat conftest.err >&5 |
---|
| 4123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4124 | (exit $ac_status); } && |
---|
| 4125 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4126 | || test ! -s conftest.err' |
---|
| 4127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4128 | (eval $ac_try) 2>&5 |
---|
| 4129 | ac_status=$? |
---|
| 4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4131 | (exit $ac_status); }; } && |
---|
| 4132 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4134 | (eval $ac_try) 2>&5 |
---|
| 4135 | ac_status=$? |
---|
| 4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4137 | (exit $ac_status); }; }; then |
---|
| 4138 | eval "$as_ac_Header=yes" |
---|
| 4139 | else |
---|
| 4140 | echo "$as_me: failed program was:" >&5 |
---|
| 4141 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4142 | |
---|
| 4143 | eval "$as_ac_Header=no" |
---|
| 4144 | fi |
---|
| 4145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4146 | fi |
---|
| 4147 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4148 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4149 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4150 | cat >>confdefs.h <<_ACEOF |
---|
| 4151 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4152 | _ACEOF |
---|
| 4153 | |
---|
| 4154 | fi |
---|
| 4155 | |
---|
| 4156 | done |
---|
| 4157 | |
---|
| 4158 | |
---|
| 4159 | |
---|
[2879] | 4160 | for ac_header in GL/gl.h |
---|
| 4161 | do |
---|
| 4162 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4164 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4165 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4166 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4168 | fi |
---|
| 4169 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4170 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4171 | else |
---|
| 4172 | # Is the header compilable? |
---|
| 4173 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4174 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4175 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4176 | /* confdefs.h. */ |
---|
| 4177 | _ACEOF |
---|
| 4178 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4179 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4180 | /* end confdefs.h. */ |
---|
| 4181 | $ac_includes_default |
---|
| 4182 | #include <$ac_header> |
---|
| 4183 | _ACEOF |
---|
| 4184 | rm -f conftest.$ac_objext |
---|
| 4185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4186 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4187 | ac_status=$? |
---|
| 4188 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4189 | rm -f conftest.er1 |
---|
| 4190 | cat conftest.err >&5 |
---|
| 4191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4192 | (exit $ac_status); } && |
---|
| 4193 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4194 | || test ! -s conftest.err' |
---|
| 4195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4196 | (eval $ac_try) 2>&5 |
---|
| 4197 | ac_status=$? |
---|
| 4198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4199 | (exit $ac_status); }; } && |
---|
| 4200 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4202 | (eval $ac_try) 2>&5 |
---|
| 4203 | ac_status=$? |
---|
| 4204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4205 | (exit $ac_status); }; }; then |
---|
| 4206 | ac_header_compiler=yes |
---|
| 4207 | else |
---|
| 4208 | echo "$as_me: failed program was:" >&5 |
---|
| 4209 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4210 | |
---|
| 4211 | ac_header_compiler=no |
---|
| 4212 | fi |
---|
| 4213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4214 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4215 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4216 | |
---|
| 4217 | # Is the header present? |
---|
| 4218 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4219 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4220 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4221 | /* confdefs.h. */ |
---|
| 4222 | _ACEOF |
---|
| 4223 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4224 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4225 | /* end confdefs.h. */ |
---|
| 4226 | #include <$ac_header> |
---|
| 4227 | _ACEOF |
---|
| 4228 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4229 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4230 | ac_status=$? |
---|
| 4231 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4232 | rm -f conftest.er1 |
---|
| 4233 | cat conftest.err >&5 |
---|
| 4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4235 | (exit $ac_status); } >/dev/null; then |
---|
| 4236 | if test -s conftest.err; then |
---|
| 4237 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4238 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4239 | else |
---|
| 4240 | ac_cpp_err= |
---|
| 4241 | fi |
---|
| 4242 | else |
---|
| 4243 | ac_cpp_err=yes |
---|
| 4244 | fi |
---|
| 4245 | if test -z "$ac_cpp_err"; then |
---|
| 4246 | ac_header_preproc=yes |
---|
| 4247 | else |
---|
| 4248 | echo "$as_me: failed program was:" >&5 |
---|
| 4249 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4250 | |
---|
| 4251 | ac_header_preproc=no |
---|
| 4252 | fi |
---|
| 4253 | rm -f conftest.err conftest.$ac_ext |
---|
| 4254 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4255 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4256 | |
---|
| 4257 | # So? What about this header? |
---|
| 4258 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4259 | yes:no: ) |
---|
| 4260 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4261 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4262 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4263 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4264 | ac_header_preproc=yes |
---|
| 4265 | ;; |
---|
| 4266 | no:yes:* ) |
---|
| 4267 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4268 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4269 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4270 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4271 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4272 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4273 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4274 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4275 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4276 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4277 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4278 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4279 | ( |
---|
| 4280 | cat <<\_ASBOX |
---|
[3240] | 4281 | ## ---------------------------------------------- ## |
---|
| 4282 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4283 | ## ---------------------------------------------- ## |
---|
[2879] | 4284 | _ASBOX |
---|
| 4285 | ) | |
---|
| 4286 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4287 | ;; |
---|
| 4288 | esac |
---|
| 4289 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4290 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4291 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4293 | else |
---|
| 4294 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4295 | fi |
---|
| 4296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4297 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4298 | |
---|
| 4299 | fi |
---|
| 4300 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4301 | cat >>confdefs.h <<_ACEOF |
---|
| 4302 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4303 | _ACEOF |
---|
| 4304 | |
---|
| 4305 | else |
---|
| 4306 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4307 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4308 | { (exit 1); exit 1; }; } |
---|
| 4309 | fi |
---|
| 4310 | |
---|
| 4311 | done |
---|
| 4312 | |
---|
[2701] | 4313 | # checking for Windows openGl library |
---|
[1971] | 4314 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 4315 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 4316 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1959] | 4317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4318 | else |
---|
| 4319 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4320 | LIBS="-lopengl32 $LIBS" |
---|
| 4321 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4322 | /* confdefs.h. */ |
---|
[1956] | 4323 | _ACEOF |
---|
[1959] | 4324 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4325 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4326 | /* end confdefs.h. */ |
---|
[1956] | 4327 | |
---|
[1971] | 4328 | |
---|
[1959] | 4329 | int |
---|
| 4330 | main () |
---|
| 4331 | { |
---|
[1971] | 4332 | main (); |
---|
[1959] | 4333 | ; |
---|
| 4334 | return 0; |
---|
| 4335 | } |
---|
| 4336 | _ACEOF |
---|
| 4337 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4339 | (eval $ac_link) 2>conftest.er1 |
---|
| 4340 | ac_status=$? |
---|
| 4341 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4342 | rm -f conftest.er1 |
---|
| 4343 | cat conftest.err >&5 |
---|
| 4344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4345 | (exit $ac_status); } && |
---|
| 4346 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4347 | || test ! -s conftest.err' |
---|
| 4348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4349 | (eval $ac_try) 2>&5 |
---|
| 4350 | ac_status=$? |
---|
| 4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4352 | (exit $ac_status); }; } && |
---|
| 4353 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4355 | (eval $ac_try) 2>&5 |
---|
| 4356 | ac_status=$? |
---|
| 4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4358 | (exit $ac_status); }; }; then |
---|
[1971] | 4359 | ac_cv_lib_opengl32_main=yes |
---|
[1959] | 4360 | else |
---|
| 4361 | echo "$as_me: failed program was:" >&5 |
---|
| 4362 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4363 | |
---|
[1971] | 4364 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 4365 | fi |
---|
[1959] | 4366 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4367 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4368 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4369 | fi |
---|
[1971] | 4370 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4371 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4372 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4373 | FOUND_opengl32=yes |
---|
| 4374 | else |
---|
| 4375 | "gl/gl.h" |
---|
[1959] | 4376 | fi |
---|
[1956] | 4377 | |
---|
[3561] | 4378 | if test x$FOUND_opengl32 = xyes ; then |
---|
[1959] | 4379 | LIBS="$LIBS -lopengl32" |
---|
[1971] | 4380 | else |
---|
[1959] | 4381 | echo "------------------" |
---|
| 4382 | echo "opengl not found." |
---|
| 4383 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4384 | echo "------------------" |
---|
| 4385 | exit -1 |
---|
| 4386 | fi |
---|
| 4387 | |
---|
[2701] | 4388 | # cheking for GLU-header |
---|
[1971] | 4389 | |
---|
| 4390 | for ac_header in GL/glu.h |
---|
| 4391 | do |
---|
| 4392 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4394 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4395 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4398 | fi |
---|
| 4399 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4400 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4401 | else |
---|
| 4402 | # Is the header compilable? |
---|
| 4403 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4404 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4405 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4406 | /* confdefs.h. */ |
---|
| 4407 | _ACEOF |
---|
| 4408 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4409 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4410 | /* end confdefs.h. */ |
---|
| 4411 | $ac_includes_default |
---|
| 4412 | #include <$ac_header> |
---|
| 4413 | _ACEOF |
---|
| 4414 | rm -f conftest.$ac_objext |
---|
| 4415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4416 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4417 | ac_status=$? |
---|
| 4418 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4419 | rm -f conftest.er1 |
---|
| 4420 | cat conftest.err >&5 |
---|
| 4421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4422 | (exit $ac_status); } && |
---|
| 4423 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4424 | || test ! -s conftest.err' |
---|
| 4425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4426 | (eval $ac_try) 2>&5 |
---|
| 4427 | ac_status=$? |
---|
| 4428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4429 | (exit $ac_status); }; } && |
---|
| 4430 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4432 | (eval $ac_try) 2>&5 |
---|
| 4433 | ac_status=$? |
---|
| 4434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4435 | (exit $ac_status); }; }; then |
---|
| 4436 | ac_header_compiler=yes |
---|
| 4437 | else |
---|
| 4438 | echo "$as_me: failed program was:" >&5 |
---|
| 4439 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4440 | |
---|
| 4441 | ac_header_compiler=no |
---|
| 4442 | fi |
---|
| 4443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4444 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4445 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4446 | |
---|
| 4447 | # Is the header present? |
---|
| 4448 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4449 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4450 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4451 | /* confdefs.h. */ |
---|
| 4452 | _ACEOF |
---|
| 4453 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4454 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4455 | /* end confdefs.h. */ |
---|
| 4456 | #include <$ac_header> |
---|
| 4457 | _ACEOF |
---|
| 4458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4460 | ac_status=$? |
---|
| 4461 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4462 | rm -f conftest.er1 |
---|
| 4463 | cat conftest.err >&5 |
---|
| 4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4465 | (exit $ac_status); } >/dev/null; then |
---|
| 4466 | if test -s conftest.err; then |
---|
| 4467 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4469 | else |
---|
| 4470 | ac_cpp_err= |
---|
| 4471 | fi |
---|
| 4472 | else |
---|
| 4473 | ac_cpp_err=yes |
---|
| 4474 | fi |
---|
| 4475 | if test -z "$ac_cpp_err"; then |
---|
| 4476 | ac_header_preproc=yes |
---|
| 4477 | else |
---|
| 4478 | echo "$as_me: failed program was:" >&5 |
---|
| 4479 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4480 | |
---|
| 4481 | ac_header_preproc=no |
---|
| 4482 | fi |
---|
| 4483 | rm -f conftest.err conftest.$ac_ext |
---|
| 4484 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4485 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4486 | |
---|
| 4487 | # So? What about this header? |
---|
| 4488 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4489 | yes:no: ) |
---|
| 4490 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4491 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4493 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4494 | ac_header_preproc=yes |
---|
| 4495 | ;; |
---|
| 4496 | no:yes:* ) |
---|
| 4497 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4498 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4499 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4500 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4501 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4502 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4503 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4504 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4505 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4506 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4507 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4508 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4509 | ( |
---|
| 4510 | cat <<\_ASBOX |
---|
[3240] | 4511 | ## ---------------------------------------------- ## |
---|
| 4512 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4513 | ## ---------------------------------------------- ## |
---|
[1971] | 4514 | _ASBOX |
---|
| 4515 | ) | |
---|
| 4516 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4517 | ;; |
---|
| 4518 | esac |
---|
| 4519 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4520 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4521 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4523 | else |
---|
| 4524 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4525 | fi |
---|
| 4526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4528 | |
---|
| 4529 | fi |
---|
| 4530 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4531 | cat >>confdefs.h <<_ACEOF |
---|
| 4532 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4533 | _ACEOF |
---|
| 4534 | |
---|
| 4535 | else |
---|
| 4536 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4537 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4538 | { (exit 1); exit 1; }; } |
---|
| 4539 | fi |
---|
| 4540 | |
---|
| 4541 | done |
---|
| 4542 | |
---|
| 4543 | |
---|
[2701] | 4544 | # checking for libGLU |
---|
| 4545 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4546 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4547 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
[1956] | 4548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4549 | else |
---|
| 4550 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4551 | LIBS="-lglu32 $LIBS" |
---|
[1956] | 4552 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4553 | /* confdefs.h. */ |
---|
| 4554 | _ACEOF |
---|
| 4555 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4556 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4557 | /* end confdefs.h. */ |
---|
| 4558 | |
---|
[2701] | 4559 | |
---|
[1956] | 4560 | int |
---|
| 4561 | main () |
---|
| 4562 | { |
---|
[2701] | 4563 | main (); |
---|
[1956] | 4564 | ; |
---|
| 4565 | return 0; |
---|
| 4566 | } |
---|
| 4567 | _ACEOF |
---|
| 4568 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4570 | (eval $ac_link) 2>conftest.er1 |
---|
| 4571 | ac_status=$? |
---|
| 4572 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4573 | rm -f conftest.er1 |
---|
| 4574 | cat conftest.err >&5 |
---|
| 4575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4576 | (exit $ac_status); } && |
---|
| 4577 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4578 | || test ! -s conftest.err' |
---|
| 4579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4580 | (eval $ac_try) 2>&5 |
---|
| 4581 | ac_status=$? |
---|
| 4582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4583 | (exit $ac_status); }; } && |
---|
| 4584 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4586 | (eval $ac_try) 2>&5 |
---|
| 4587 | ac_status=$? |
---|
| 4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4589 | (exit $ac_status); }; }; then |
---|
[2701] | 4590 | ac_cv_lib_glu32_main=yes |
---|
[1956] | 4591 | else |
---|
| 4592 | echo "$as_me: failed program was:" >&5 |
---|
| 4593 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4594 | |
---|
[2701] | 4595 | ac_cv_lib_glu32_main=no |
---|
[1956] | 4596 | fi |
---|
| 4597 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4598 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4599 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4600 | fi |
---|
[2701] | 4601 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4602 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 4603 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 4604 | FOUND_glu32=yes |
---|
[1959] | 4605 | fi |
---|
| 4606 | |
---|
[3561] | 4607 | if test x$FOUND_glu32 = xyes ; then |
---|
[2701] | 4608 | LIBS="$LIBS -lGLU32" |
---|
| 4609 | else |
---|
| 4610 | echo "------------------" |
---|
| 4611 | echo "GLU library not found." |
---|
| 4612 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4613 | echo "------------------" |
---|
| 4614 | exit -1 |
---|
| 4615 | fi |
---|
| 4616 | |
---|
| 4617 | # checking for mingw32 |
---|
| 4618 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4619 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4620 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
[1959] | 4621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4622 | else |
---|
| 4623 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4624 | LIBS="-lmingw32 $LIBS" |
---|
[1959] | 4625 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4626 | /* confdefs.h. */ |
---|
[1956] | 4627 | _ACEOF |
---|
[1959] | 4628 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4629 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4630 | /* end confdefs.h. */ |
---|
[1956] | 4631 | |
---|
[1971] | 4632 | |
---|
[1959] | 4633 | int |
---|
| 4634 | main () |
---|
| 4635 | { |
---|
[1971] | 4636 | main (); |
---|
[1959] | 4637 | ; |
---|
| 4638 | return 0; |
---|
| 4639 | } |
---|
| 4640 | _ACEOF |
---|
| 4641 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4643 | (eval $ac_link) 2>conftest.er1 |
---|
| 4644 | ac_status=$? |
---|
| 4645 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4646 | rm -f conftest.er1 |
---|
| 4647 | cat conftest.err >&5 |
---|
| 4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4649 | (exit $ac_status); } && |
---|
| 4650 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4651 | || test ! -s conftest.err' |
---|
| 4652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4653 | (eval $ac_try) 2>&5 |
---|
| 4654 | ac_status=$? |
---|
| 4655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4656 | (exit $ac_status); }; } && |
---|
| 4657 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4659 | (eval $ac_try) 2>&5 |
---|
| 4660 | ac_status=$? |
---|
| 4661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4662 | (exit $ac_status); }; }; then |
---|
[2701] | 4663 | ac_cv_lib_mingw32_main=yes |
---|
[1959] | 4664 | else |
---|
| 4665 | echo "$as_me: failed program was:" >&5 |
---|
| 4666 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4667 | |
---|
[2701] | 4668 | ac_cv_lib_mingw32_main=no |
---|
[1956] | 4669 | fi |
---|
[1959] | 4670 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4671 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4672 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4673 | fi |
---|
[2701] | 4674 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4675 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4676 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4677 | FOUND_mingw32=yes |
---|
[1959] | 4678 | fi |
---|
[1956] | 4679 | |
---|
[3561] | 4680 | if test x$FOUND_mingw32 = xyes; then |
---|
[2701] | 4681 | LIBS="$LIBS -lmingw32" |
---|
| 4682 | fi |
---|
[2989] | 4683 | # checking for SDL-headers |
---|
[1959] | 4684 | |
---|
[2989] | 4685 | for ac_header in SDL/SDL.h |
---|
| 4686 | do |
---|
| 4687 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4688 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4689 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4690 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4691 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4693 | fi |
---|
| 4694 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4695 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4696 | else |
---|
| 4697 | # Is the header compilable? |
---|
| 4698 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4699 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4700 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4701 | /* confdefs.h. */ |
---|
| 4702 | _ACEOF |
---|
| 4703 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4704 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4705 | /* end confdefs.h. */ |
---|
| 4706 | $ac_includes_default |
---|
| 4707 | #include <$ac_header> |
---|
| 4708 | _ACEOF |
---|
| 4709 | rm -f conftest.$ac_objext |
---|
| 4710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4711 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4712 | ac_status=$? |
---|
| 4713 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4714 | rm -f conftest.er1 |
---|
| 4715 | cat conftest.err >&5 |
---|
| 4716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4717 | (exit $ac_status); } && |
---|
| 4718 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4719 | || test ! -s conftest.err' |
---|
| 4720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4721 | (eval $ac_try) 2>&5 |
---|
| 4722 | ac_status=$? |
---|
| 4723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4724 | (exit $ac_status); }; } && |
---|
| 4725 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4727 | (eval $ac_try) 2>&5 |
---|
| 4728 | ac_status=$? |
---|
| 4729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4730 | (exit $ac_status); }; }; then |
---|
| 4731 | ac_header_compiler=yes |
---|
| 4732 | else |
---|
| 4733 | echo "$as_me: failed program was:" >&5 |
---|
| 4734 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4735 | |
---|
| 4736 | ac_header_compiler=no |
---|
| 4737 | fi |
---|
| 4738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4739 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4740 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4741 | |
---|
| 4742 | # Is the header present? |
---|
| 4743 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4744 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4745 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4746 | /* confdefs.h. */ |
---|
| 4747 | _ACEOF |
---|
| 4748 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4749 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4750 | /* end confdefs.h. */ |
---|
| 4751 | #include <$ac_header> |
---|
| 4752 | _ACEOF |
---|
| 4753 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4754 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4755 | ac_status=$? |
---|
| 4756 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4757 | rm -f conftest.er1 |
---|
| 4758 | cat conftest.err >&5 |
---|
| 4759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4760 | (exit $ac_status); } >/dev/null; then |
---|
| 4761 | if test -s conftest.err; then |
---|
| 4762 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4763 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4764 | else |
---|
| 4765 | ac_cpp_err= |
---|
| 4766 | fi |
---|
| 4767 | else |
---|
| 4768 | ac_cpp_err=yes |
---|
| 4769 | fi |
---|
| 4770 | if test -z "$ac_cpp_err"; then |
---|
| 4771 | ac_header_preproc=yes |
---|
| 4772 | else |
---|
| 4773 | echo "$as_me: failed program was:" >&5 |
---|
| 4774 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4775 | |
---|
| 4776 | ac_header_preproc=no |
---|
| 4777 | fi |
---|
| 4778 | rm -f conftest.err conftest.$ac_ext |
---|
| 4779 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4780 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4781 | |
---|
| 4782 | # So? What about this header? |
---|
| 4783 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4784 | yes:no: ) |
---|
| 4785 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4786 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4787 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4788 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4789 | ac_header_preproc=yes |
---|
[2701] | 4790 | ;; |
---|
[2989] | 4791 | no:yes:* ) |
---|
| 4792 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4793 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4794 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4795 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4796 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4797 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4798 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4799 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4800 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4801 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4802 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4803 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4804 | ( |
---|
| 4805 | cat <<\_ASBOX |
---|
[3240] | 4806 | ## ---------------------------------------------- ## |
---|
| 4807 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4808 | ## ---------------------------------------------- ## |
---|
[2989] | 4809 | _ASBOX |
---|
| 4810 | ) | |
---|
| 4811 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4812 | ;; |
---|
| 4813 | esac |
---|
| 4814 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4816 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4818 | else |
---|
| 4819 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4820 | fi |
---|
| 4821 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4822 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2701] | 4823 | |
---|
[2989] | 4824 | fi |
---|
| 4825 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4826 | cat >>confdefs.h <<_ACEOF |
---|
| 4827 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4828 | _ACEOF |
---|
| 4829 | |
---|
| 4830 | else |
---|
| 4831 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 4832 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 4833 | { (exit 1); exit 1; }; } |
---|
| 4834 | fi |
---|
| 4835 | |
---|
| 4836 | done |
---|
| 4837 | |
---|
| 4838 | |
---|
| 4839 | #checking for libSDL |
---|
| 4840 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
| 4841 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
| 4842 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
| 4843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4844 | else |
---|
| 4845 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4846 | LIBS="-lsdlmain $LIBS" |
---|
| 4847 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4848 | /* confdefs.h. */ |
---|
| 4849 | _ACEOF |
---|
| 4850 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4851 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4852 | /* end confdefs.h. */ |
---|
| 4853 | |
---|
| 4854 | |
---|
| 4855 | int |
---|
| 4856 | main () |
---|
| 4857 | { |
---|
| 4858 | main (); |
---|
| 4859 | ; |
---|
| 4860 | return 0; |
---|
| 4861 | } |
---|
| 4862 | _ACEOF |
---|
| 4863 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4865 | (eval $ac_link) 2>conftest.er1 |
---|
| 4866 | ac_status=$? |
---|
| 4867 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4868 | rm -f conftest.er1 |
---|
| 4869 | cat conftest.err >&5 |
---|
| 4870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4871 | (exit $ac_status); } && |
---|
| 4872 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4873 | || test ! -s conftest.err' |
---|
| 4874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4875 | (eval $ac_try) 2>&5 |
---|
| 4876 | ac_status=$? |
---|
| 4877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4878 | (exit $ac_status); }; } && |
---|
| 4879 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4881 | (eval $ac_try) 2>&5 |
---|
| 4882 | ac_status=$? |
---|
| 4883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4884 | (exit $ac_status); }; }; then |
---|
| 4885 | ac_cv_lib_sdlmain_main=yes |
---|
| 4886 | else |
---|
| 4887 | echo "$as_me: failed program was:" >&5 |
---|
| 4888 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4889 | |
---|
| 4890 | ac_cv_lib_sdlmain_main=no |
---|
| 4891 | fi |
---|
| 4892 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4893 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4894 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4895 | fi |
---|
| 4896 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
| 4897 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
| 4898 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
| 4899 | FOUND_sdlmain=yes |
---|
| 4900 | fi |
---|
| 4901 | |
---|
[3561] | 4902 | if test x$FOUND_sdlmain = xyes ; then |
---|
[2989] | 4903 | LIBS="$LIBS -lsdlmain" |
---|
| 4904 | else |
---|
| 4905 | echo "------------------" |
---|
| 4906 | echo "SDL library not found." |
---|
| 4907 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4908 | echo "------------------" |
---|
| 4909 | exit 1 |
---|
| 4910 | fi |
---|
| 4911 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
| 4912 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
| 4913 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
| 4914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4915 | else |
---|
| 4916 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4917 | LIBS="-lsdl $LIBS" |
---|
| 4918 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4919 | /* confdefs.h. */ |
---|
| 4920 | _ACEOF |
---|
| 4921 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4922 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4923 | /* end confdefs.h. */ |
---|
| 4924 | |
---|
| 4925 | |
---|
| 4926 | int |
---|
| 4927 | main () |
---|
| 4928 | { |
---|
| 4929 | main (); |
---|
| 4930 | ; |
---|
| 4931 | return 0; |
---|
| 4932 | } |
---|
| 4933 | _ACEOF |
---|
| 4934 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4936 | (eval $ac_link) 2>conftest.er1 |
---|
| 4937 | ac_status=$? |
---|
| 4938 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4939 | rm -f conftest.er1 |
---|
| 4940 | cat conftest.err >&5 |
---|
| 4941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4942 | (exit $ac_status); } && |
---|
| 4943 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4944 | || test ! -s conftest.err' |
---|
| 4945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4946 | (eval $ac_try) 2>&5 |
---|
| 4947 | ac_status=$? |
---|
| 4948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4949 | (exit $ac_status); }; } && |
---|
| 4950 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4952 | (eval $ac_try) 2>&5 |
---|
| 4953 | ac_status=$? |
---|
| 4954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4955 | (exit $ac_status); }; }; then |
---|
| 4956 | ac_cv_lib_sdl_main=yes |
---|
| 4957 | else |
---|
| 4958 | echo "$as_me: failed program was:" >&5 |
---|
| 4959 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4960 | |
---|
| 4961 | ac_cv_lib_sdl_main=no |
---|
| 4962 | fi |
---|
| 4963 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4964 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4965 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4966 | fi |
---|
| 4967 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
| 4968 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
| 4969 | if test $ac_cv_lib_sdl_main = yes; then |
---|
| 4970 | FOUND_sdl=yes |
---|
| 4971 | fi |
---|
| 4972 | |
---|
[3561] | 4973 | if test x$FOUND_sdl = xyes ; then |
---|
[2989] | 4974 | LIBS="$LIBS -lsdl" |
---|
| 4975 | else |
---|
| 4976 | echo "------------------" |
---|
| 4977 | echo "SDL library not found." |
---|
| 4978 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4979 | echo "------------------" |
---|
| 4980 | exit -1 |
---|
| 4981 | fi |
---|
| 4982 | |
---|
| 4983 | ;; |
---|
[3561] | 4984 | #-------# |
---|
| 4985 | # LINUX # |
---|
| 4986 | #-------# |
---|
[2980] | 4987 | *-*-linux*) |
---|
[2701] | 4988 | echo "Linux detected" |
---|
[1956] | 4989 | |
---|
[2701] | 4990 | Linux="yes" |
---|
| 4991 | |
---|
[3180] | 4992 | CPPFLAGS="-I/usr/X11R6/include" |
---|
[3561] | 4993 | LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
[2968] | 4994 | # checking gl header |
---|
[2701] | 4995 | |
---|
[2879] | 4996 | for ac_header in GL/gl.h |
---|
| 4997 | do |
---|
| 4998 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4999 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5000 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5001 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5002 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5004 | fi |
---|
| 5005 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5006 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5007 | else |
---|
| 5008 | # Is the header compilable? |
---|
| 5009 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5010 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5011 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5012 | /* confdefs.h. */ |
---|
| 5013 | _ACEOF |
---|
| 5014 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5015 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5016 | /* end confdefs.h. */ |
---|
| 5017 | $ac_includes_default |
---|
| 5018 | #include <$ac_header> |
---|
| 5019 | _ACEOF |
---|
| 5020 | rm -f conftest.$ac_objext |
---|
| 5021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5022 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5023 | ac_status=$? |
---|
| 5024 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5025 | rm -f conftest.er1 |
---|
| 5026 | cat conftest.err >&5 |
---|
| 5027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5028 | (exit $ac_status); } && |
---|
| 5029 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5030 | || test ! -s conftest.err' |
---|
| 5031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5032 | (eval $ac_try) 2>&5 |
---|
| 5033 | ac_status=$? |
---|
| 5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5035 | (exit $ac_status); }; } && |
---|
| 5036 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5038 | (eval $ac_try) 2>&5 |
---|
| 5039 | ac_status=$? |
---|
| 5040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5041 | (exit $ac_status); }; }; then |
---|
| 5042 | ac_header_compiler=yes |
---|
| 5043 | else |
---|
| 5044 | echo "$as_me: failed program was:" >&5 |
---|
| 5045 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5046 | |
---|
| 5047 | ac_header_compiler=no |
---|
| 5048 | fi |
---|
| 5049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5050 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5051 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5052 | |
---|
| 5053 | # Is the header present? |
---|
| 5054 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5055 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5056 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5057 | /* confdefs.h. */ |
---|
| 5058 | _ACEOF |
---|
| 5059 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5060 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5061 | /* end confdefs.h. */ |
---|
| 5062 | #include <$ac_header> |
---|
| 5063 | _ACEOF |
---|
| 5064 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5065 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5066 | ac_status=$? |
---|
| 5067 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5068 | rm -f conftest.er1 |
---|
| 5069 | cat conftest.err >&5 |
---|
| 5070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5071 | (exit $ac_status); } >/dev/null; then |
---|
| 5072 | if test -s conftest.err; then |
---|
| 5073 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5074 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5075 | else |
---|
| 5076 | ac_cpp_err= |
---|
| 5077 | fi |
---|
| 5078 | else |
---|
| 5079 | ac_cpp_err=yes |
---|
| 5080 | fi |
---|
| 5081 | if test -z "$ac_cpp_err"; then |
---|
| 5082 | ac_header_preproc=yes |
---|
| 5083 | else |
---|
| 5084 | echo "$as_me: failed program was:" >&5 |
---|
| 5085 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5086 | |
---|
| 5087 | ac_header_preproc=no |
---|
| 5088 | fi |
---|
| 5089 | rm -f conftest.err conftest.$ac_ext |
---|
| 5090 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5091 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5092 | |
---|
| 5093 | # So? What about this header? |
---|
| 5094 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5095 | yes:no: ) |
---|
| 5096 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5097 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5098 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5099 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5100 | ac_header_preproc=yes |
---|
| 5101 | ;; |
---|
| 5102 | no:yes:* ) |
---|
| 5103 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5104 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5105 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5106 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5107 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5108 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5109 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5110 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5111 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5112 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5113 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5114 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5115 | ( |
---|
| 5116 | cat <<\_ASBOX |
---|
[3240] | 5117 | ## ---------------------------------------------- ## |
---|
| 5118 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5119 | ## ---------------------------------------------- ## |
---|
[2879] | 5120 | _ASBOX |
---|
| 5121 | ) | |
---|
| 5122 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5123 | ;; |
---|
| 5124 | esac |
---|
| 5125 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5126 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5127 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5129 | else |
---|
| 5130 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5131 | fi |
---|
| 5132 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5133 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5134 | |
---|
| 5135 | fi |
---|
| 5136 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5137 | cat >>confdefs.h <<_ACEOF |
---|
| 5138 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5139 | _ACEOF |
---|
| 5140 | |
---|
| 5141 | else |
---|
| 5142 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5143 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5144 | { (exit 1); exit 1; }; } |
---|
| 5145 | fi |
---|
| 5146 | |
---|
| 5147 | done |
---|
| 5148 | |
---|
| 5149 | |
---|
[2701] | 5150 | # checking for Unix GL |
---|
[3561] | 5151 | echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 |
---|
| 5152 | echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 |
---|
| 5153 | if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then |
---|
[1956] | 5154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5155 | else |
---|
| 5156 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5157 | LIBS="-lGL $LIBS" |
---|
[1956] | 5158 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5159 | /* confdefs.h. */ |
---|
| 5160 | _ACEOF |
---|
| 5161 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5162 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5163 | /* end confdefs.h. */ |
---|
| 5164 | |
---|
[3561] | 5165 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5166 | #ifdef __cplusplus |
---|
| 5167 | extern "C" |
---|
| 5168 | #endif |
---|
| 5169 | /* We use char because int might match the return type of a gcc2 |
---|
| 5170 | builtin and then its argument prototype would still apply. */ |
---|
| 5171 | char glLoadIdentity (); |
---|
[1956] | 5172 | int |
---|
| 5173 | main () |
---|
| 5174 | { |
---|
[3561] | 5175 | glLoadIdentity (); |
---|
[1956] | 5176 | ; |
---|
| 5177 | return 0; |
---|
| 5178 | } |
---|
| 5179 | _ACEOF |
---|
| 5180 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5182 | (eval $ac_link) 2>conftest.er1 |
---|
| 5183 | ac_status=$? |
---|
| 5184 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5185 | rm -f conftest.er1 |
---|
| 5186 | cat conftest.err >&5 |
---|
| 5187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5188 | (exit $ac_status); } && |
---|
| 5189 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5190 | || test ! -s conftest.err' |
---|
| 5191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5192 | (eval $ac_try) 2>&5 |
---|
| 5193 | ac_status=$? |
---|
| 5194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5195 | (exit $ac_status); }; } && |
---|
| 5196 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5198 | (eval $ac_try) 2>&5 |
---|
| 5199 | ac_status=$? |
---|
| 5200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5201 | (exit $ac_status); }; }; then |
---|
[3561] | 5202 | ac_cv_lib_GL_glLoadIdentity=yes |
---|
[1956] | 5203 | else |
---|
| 5204 | echo "$as_me: failed program was:" >&5 |
---|
| 5205 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5206 | |
---|
[3561] | 5207 | ac_cv_lib_GL_glLoadIdentity=no |
---|
[1956] | 5208 | fi |
---|
| 5209 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5210 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5211 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5212 | fi |
---|
[3561] | 5213 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 |
---|
| 5214 | echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 |
---|
| 5215 | if test $ac_cv_lib_GL_glLoadIdentity = yes; then |
---|
[2701] | 5216 | FOUND_GL=yes |
---|
| 5217 | fi |
---|
| 5218 | |
---|
[3561] | 5219 | if test x$FOUND_GL = xyes ; then |
---|
[2701] | 5220 | LIBS="$LIBS -lGL" |
---|
| 5221 | else |
---|
| 5222 | echo "------------------" |
---|
| 5223 | echo "opengl not found." |
---|
| 5224 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 5225 | echo "------------------" |
---|
| 5226 | exit -1 |
---|
| 5227 | fi |
---|
| 5228 | |
---|
| 5229 | # cheking for GLU-header |
---|
| 5230 | |
---|
| 5231 | for ac_header in GL/glu.h |
---|
| 5232 | do |
---|
| 5233 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5234 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5235 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5236 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5239 | fi |
---|
| 5240 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5241 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5242 | else |
---|
| 5243 | # Is the header compilable? |
---|
| 5244 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5245 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5246 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5247 | /* confdefs.h. */ |
---|
[1956] | 5248 | _ACEOF |
---|
[2701] | 5249 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5250 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5251 | /* end confdefs.h. */ |
---|
| 5252 | $ac_includes_default |
---|
| 5253 | #include <$ac_header> |
---|
| 5254 | _ACEOF |
---|
| 5255 | rm -f conftest.$ac_objext |
---|
| 5256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5257 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5258 | ac_status=$? |
---|
| 5259 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5260 | rm -f conftest.er1 |
---|
| 5261 | cat conftest.err >&5 |
---|
| 5262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5263 | (exit $ac_status); } && |
---|
| 5264 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5265 | || test ! -s conftest.err' |
---|
| 5266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5267 | (eval $ac_try) 2>&5 |
---|
| 5268 | ac_status=$? |
---|
| 5269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5270 | (exit $ac_status); }; } && |
---|
| 5271 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5273 | (eval $ac_try) 2>&5 |
---|
| 5274 | ac_status=$? |
---|
| 5275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5276 | (exit $ac_status); }; }; then |
---|
| 5277 | ac_header_compiler=yes |
---|
| 5278 | else |
---|
| 5279 | echo "$as_me: failed program was:" >&5 |
---|
| 5280 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5281 | |
---|
[2701] | 5282 | ac_header_compiler=no |
---|
| 5283 | fi |
---|
| 5284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5285 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5286 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 5287 | |
---|
[2701] | 5288 | # Is the header present? |
---|
| 5289 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5290 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5291 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5292 | /* confdefs.h. */ |
---|
| 5293 | _ACEOF |
---|
| 5294 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5295 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5296 | /* end confdefs.h. */ |
---|
| 5297 | #include <$ac_header> |
---|
| 5298 | _ACEOF |
---|
| 5299 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5300 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5301 | ac_status=$? |
---|
| 5302 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5303 | rm -f conftest.er1 |
---|
| 5304 | cat conftest.err >&5 |
---|
| 5305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5306 | (exit $ac_status); } >/dev/null; then |
---|
| 5307 | if test -s conftest.err; then |
---|
| 5308 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5309 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5310 | else |
---|
| 5311 | ac_cpp_err= |
---|
| 5312 | fi |
---|
| 5313 | else |
---|
| 5314 | ac_cpp_err=yes |
---|
[1956] | 5315 | fi |
---|
[2701] | 5316 | if test -z "$ac_cpp_err"; then |
---|
| 5317 | ac_header_preproc=yes |
---|
| 5318 | else |
---|
| 5319 | echo "$as_me: failed program was:" >&5 |
---|
| 5320 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5321 | |
---|
[2701] | 5322 | ac_header_preproc=no |
---|
| 5323 | fi |
---|
| 5324 | rm -f conftest.err conftest.$ac_ext |
---|
| 5325 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5326 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 5327 | |
---|
[2701] | 5328 | # So? What about this header? |
---|
| 5329 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5330 | yes:no: ) |
---|
| 5331 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5332 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5333 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5334 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5335 | ac_header_preproc=yes |
---|
| 5336 | ;; |
---|
| 5337 | no:yes:* ) |
---|
| 5338 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5339 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5340 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5341 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5342 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5343 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5344 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5345 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5346 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5347 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5348 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5349 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5350 | ( |
---|
| 5351 | cat <<\_ASBOX |
---|
[3240] | 5352 | ## ---------------------------------------------- ## |
---|
| 5353 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5354 | ## ---------------------------------------------- ## |
---|
[2701] | 5355 | _ASBOX |
---|
| 5356 | ) | |
---|
| 5357 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5358 | ;; |
---|
| 5359 | esac |
---|
| 5360 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5361 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5362 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5364 | else |
---|
[2701] | 5365 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5366 | fi |
---|
| 5367 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5368 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5369 | |
---|
| 5370 | fi |
---|
| 5371 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5372 | cat >>confdefs.h <<_ACEOF |
---|
| 5373 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5374 | _ACEOF |
---|
| 5375 | |
---|
| 5376 | else |
---|
| 5377 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5378 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5379 | { (exit 1); exit 1; }; } |
---|
| 5380 | fi |
---|
| 5381 | |
---|
| 5382 | done |
---|
| 5383 | |
---|
| 5384 | |
---|
| 5385 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 5386 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 5387 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 5388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5389 | else |
---|
[2190] | 5390 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5391 | LIBS="-lGLU $LIBS" |
---|
[2190] | 5392 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5393 | /* confdefs.h. */ |
---|
| 5394 | _ACEOF |
---|
| 5395 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5396 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5397 | /* end confdefs.h. */ |
---|
| 5398 | |
---|
[2701] | 5399 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5400 | #ifdef __cplusplus |
---|
| 5401 | extern "C" |
---|
| 5402 | #endif |
---|
| 5403 | /* We use char because int might match the return type of a gcc2 |
---|
| 5404 | builtin and then its argument prototype would still apply. */ |
---|
| 5405 | char gluProject (); |
---|
[2190] | 5406 | int |
---|
| 5407 | main () |
---|
| 5408 | { |
---|
[2701] | 5409 | gluProject (); |
---|
[2190] | 5410 | ; |
---|
| 5411 | return 0; |
---|
| 5412 | } |
---|
| 5413 | _ACEOF |
---|
| 5414 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5416 | (eval $ac_link) 2>conftest.er1 |
---|
| 5417 | ac_status=$? |
---|
| 5418 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5419 | rm -f conftest.er1 |
---|
| 5420 | cat conftest.err >&5 |
---|
| 5421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5422 | (exit $ac_status); } && |
---|
| 5423 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5424 | || test ! -s conftest.err' |
---|
| 5425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5426 | (eval $ac_try) 2>&5 |
---|
| 5427 | ac_status=$? |
---|
| 5428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5429 | (exit $ac_status); }; } && |
---|
| 5430 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5432 | (eval $ac_try) 2>&5 |
---|
| 5433 | ac_status=$? |
---|
| 5434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5435 | (exit $ac_status); }; }; then |
---|
[2701] | 5436 | ac_cv_lib_GLU_gluProject=yes |
---|
[2190] | 5437 | else |
---|
| 5438 | echo "$as_me: failed program was:" >&5 |
---|
| 5439 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5440 | |
---|
[2701] | 5441 | ac_cv_lib_GLU_gluProject=no |
---|
[2190] | 5442 | fi |
---|
| 5443 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5444 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5445 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5446 | fi |
---|
[2701] | 5447 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 5448 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 5449 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 5450 | FOUND_GLU=yes |
---|
[2190] | 5451 | fi |
---|
| 5452 | |
---|
[3561] | 5453 | if test x$FOUND_GLU = xyes ; then |
---|
[2701] | 5454 | LIBS="$LIBS -lGLU" |
---|
| 5455 | else |
---|
| 5456 | echo "------------------" |
---|
| 5457 | echo "GLU library not found." |
---|
| 5458 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 5459 | echo "------------------" |
---|
| 5460 | exit -1 |
---|
| 5461 | fi |
---|
[2995] | 5462 | |
---|
[2991] | 5463 | # checking for SDL-headers |
---|
[2190] | 5464 | |
---|
[2991] | 5465 | for ac_header in SDL/SDL.h |
---|
| 5466 | do |
---|
| 5467 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5468 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5469 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5470 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5471 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5473 | fi |
---|
[2991] | 5474 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5475 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2190] | 5476 | else |
---|
[2991] | 5477 | # Is the header compilable? |
---|
| 5478 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5479 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5480 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5481 | /* confdefs.h. */ |
---|
| 5482 | _ACEOF |
---|
| 5483 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5484 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5485 | /* end confdefs.h. */ |
---|
[2991] | 5486 | $ac_includes_default |
---|
| 5487 | #include <$ac_header> |
---|
[2190] | 5488 | _ACEOF |
---|
[2991] | 5489 | rm -f conftest.$ac_objext |
---|
| 5490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5491 | (eval $ac_compile) 2>conftest.er1 |
---|
[2190] | 5492 | ac_status=$? |
---|
[2991] | 5493 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5494 | rm -f conftest.er1 |
---|
| 5495 | cat conftest.err >&5 |
---|
[2190] | 5496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5497 | (exit $ac_status); } && |
---|
| 5498 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5499 | || test ! -s conftest.err' |
---|
[2190] | 5500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5501 | (eval $ac_try) 2>&5 |
---|
| 5502 | ac_status=$? |
---|
| 5503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5504 | (exit $ac_status); }; } && |
---|
| 5505 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5507 | (eval $ac_try) 2>&5 |
---|
| 5508 | ac_status=$? |
---|
| 5509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2190] | 5510 | (exit $ac_status); }; }; then |
---|
[2991] | 5511 | ac_header_compiler=yes |
---|
[2190] | 5512 | else |
---|
[2991] | 5513 | echo "$as_me: failed program was:" >&5 |
---|
[2190] | 5514 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5515 | |
---|
[2991] | 5516 | ac_header_compiler=no |
---|
[2190] | 5517 | fi |
---|
[2991] | 5518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5519 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5520 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5521 | |
---|
| 5522 | # Is the header present? |
---|
| 5523 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5524 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5525 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5526 | /* confdefs.h. */ |
---|
| 5527 | _ACEOF |
---|
| 5528 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5529 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5530 | /* end confdefs.h. */ |
---|
| 5531 | #include <$ac_header> |
---|
| 5532 | _ACEOF |
---|
| 5533 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5534 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5535 | ac_status=$? |
---|
| 5536 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5537 | rm -f conftest.er1 |
---|
| 5538 | cat conftest.err >&5 |
---|
| 5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5540 | (exit $ac_status); } >/dev/null; then |
---|
| 5541 | if test -s conftest.err; then |
---|
| 5542 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5543 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5544 | else |
---|
| 5545 | ac_cpp_err= |
---|
| 5546 | fi |
---|
| 5547 | else |
---|
| 5548 | ac_cpp_err=yes |
---|
[2190] | 5549 | fi |
---|
[2991] | 5550 | if test -z "$ac_cpp_err"; then |
---|
| 5551 | ac_header_preproc=yes |
---|
| 5552 | else |
---|
| 5553 | echo "$as_me: failed program was:" >&5 |
---|
| 5554 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5555 | |
---|
| 5556 | ac_header_preproc=no |
---|
| 5557 | fi |
---|
| 5558 | rm -f conftest.err conftest.$ac_ext |
---|
| 5559 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5560 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5561 | |
---|
| 5562 | # So? What about this header? |
---|
| 5563 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5564 | yes:no: ) |
---|
| 5565 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5566 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5567 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5568 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5569 | ac_header_preproc=yes |
---|
| 5570 | ;; |
---|
| 5571 | no:yes:* ) |
---|
| 5572 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5573 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5574 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5575 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5576 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5577 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5578 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5579 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5580 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5581 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5582 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5583 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5584 | ( |
---|
| 5585 | cat <<\_ASBOX |
---|
[3240] | 5586 | ## ---------------------------------------------- ## |
---|
| 5587 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5588 | ## ---------------------------------------------- ## |
---|
[2991] | 5589 | _ASBOX |
---|
| 5590 | ) | |
---|
| 5591 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5592 | ;; |
---|
| 5593 | esac |
---|
| 5594 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5595 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5596 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5598 | else |
---|
| 5599 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5600 | fi |
---|
| 5601 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5602 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5603 | |
---|
| 5604 | fi |
---|
| 5605 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5606 | cat >>confdefs.h <<_ACEOF |
---|
| 5607 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5608 | _ACEOF |
---|
| 5609 | |
---|
| 5610 | else |
---|
| 5611 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 5612 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 5613 | { (exit 1); exit 1; }; } |
---|
| 5614 | fi |
---|
| 5615 | |
---|
| 5616 | done |
---|
| 5617 | |
---|
| 5618 | |
---|
[3140] | 5619 | # checking for SDL-lib |
---|
[2991] | 5620 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
| 5621 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
| 5622 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
| 5623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5624 | else |
---|
| 5625 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5626 | LIBS="-lSDL $LIBS" |
---|
| 5627 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5628 | /* confdefs.h. */ |
---|
| 5629 | _ACEOF |
---|
| 5630 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5631 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5632 | /* end confdefs.h. */ |
---|
| 5633 | |
---|
| 5634 | |
---|
| 5635 | int |
---|
| 5636 | main () |
---|
| 5637 | { |
---|
[2991] | 5638 | main (); |
---|
[2190] | 5639 | ; |
---|
| 5640 | return 0; |
---|
| 5641 | } |
---|
| 5642 | _ACEOF |
---|
| 5643 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5645 | (eval $ac_link) 2>conftest.er1 |
---|
| 5646 | ac_status=$? |
---|
| 5647 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5648 | rm -f conftest.er1 |
---|
| 5649 | cat conftest.err >&5 |
---|
| 5650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5651 | (exit $ac_status); } && |
---|
| 5652 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5653 | || test ! -s conftest.err' |
---|
| 5654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5655 | (eval $ac_try) 2>&5 |
---|
| 5656 | ac_status=$? |
---|
| 5657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5658 | (exit $ac_status); }; } && |
---|
| 5659 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5661 | (eval $ac_try) 2>&5 |
---|
| 5662 | ac_status=$? |
---|
| 5663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5664 | (exit $ac_status); }; }; then |
---|
[2991] | 5665 | ac_cv_lib_SDL_main=yes |
---|
[2190] | 5666 | else |
---|
| 5667 | echo "$as_me: failed program was:" >&5 |
---|
| 5668 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5669 | |
---|
[2991] | 5670 | ac_cv_lib_SDL_main=no |
---|
[2190] | 5671 | fi |
---|
| 5672 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5673 | conftest$ac_exeext conftest.$ac_ext |
---|
[2991] | 5674 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5675 | fi |
---|
| 5676 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
| 5677 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
| 5678 | if test $ac_cv_lib_SDL_main = yes; then |
---|
| 5679 | FOUND_SDL=yes |
---|
| 5680 | fi |
---|
| 5681 | |
---|
[3561] | 5682 | if test x$FOUND_SDL = xyes ; then |
---|
[2991] | 5683 | LIBS="$LIBS -lSDL" |
---|
| 5684 | else |
---|
| 5685 | echo "------------------" |
---|
| 5686 | echo "SDL library not found." |
---|
| 5687 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5688 | echo "------------------" |
---|
| 5689 | exit -1 |
---|
[2980] | 5690 | fi |
---|
[2701] | 5691 | |
---|
[3140] | 5692 | |
---|
[2991] | 5693 | ## checking for SDL |
---|
| 5694 | # SDL_VERSION=1.2.7 |
---|
| 5695 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 5696 | # :, |
---|
| 5697 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 5698 | # ) |
---|
| 5699 | # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 5700 | # LIBS="$LIBS $SDL_LIBS" |
---|
[2989] | 5701 | ;; |
---|
[3561] | 5702 | #-----------# |
---|
| 5703 | # MAC -OS X # |
---|
| 5704 | #-----------# |
---|
[2995] | 5705 | *darwin*) |
---|
[3561] | 5706 | echo "OS X detected" |
---|
[2995] | 5707 | |
---|
| 5708 | osX="yes" |
---|
| 5709 | |
---|
[3140] | 5710 | CPPFLAGS="-I/sw/include $CPPFLAGS" |
---|
[2995] | 5711 | # checking gl header |
---|
| 5712 | |
---|
| 5713 | for ac_header in OpenGL/gl.h |
---|
| 5714 | do |
---|
| 5715 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5716 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5717 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5721 | fi |
---|
| 5722 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5723 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5724 | else |
---|
| 5725 | # Is the header compilable? |
---|
| 5726 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5727 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5728 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5729 | /* confdefs.h. */ |
---|
| 5730 | _ACEOF |
---|
| 5731 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5732 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5733 | /* end confdefs.h. */ |
---|
| 5734 | $ac_includes_default |
---|
| 5735 | #include <$ac_header> |
---|
| 5736 | _ACEOF |
---|
| 5737 | rm -f conftest.$ac_objext |
---|
| 5738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5739 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5740 | ac_status=$? |
---|
| 5741 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5742 | rm -f conftest.er1 |
---|
| 5743 | cat conftest.err >&5 |
---|
| 5744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5745 | (exit $ac_status); } && |
---|
| 5746 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5747 | || test ! -s conftest.err' |
---|
| 5748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5749 | (eval $ac_try) 2>&5 |
---|
| 5750 | ac_status=$? |
---|
| 5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5752 | (exit $ac_status); }; } && |
---|
| 5753 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5755 | (eval $ac_try) 2>&5 |
---|
| 5756 | ac_status=$? |
---|
| 5757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5758 | (exit $ac_status); }; }; then |
---|
| 5759 | ac_header_compiler=yes |
---|
| 5760 | else |
---|
| 5761 | echo "$as_me: failed program was:" >&5 |
---|
| 5762 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5763 | |
---|
| 5764 | ac_header_compiler=no |
---|
| 5765 | fi |
---|
| 5766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5767 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5768 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5769 | |
---|
| 5770 | # Is the header present? |
---|
| 5771 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5772 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5773 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5774 | /* confdefs.h. */ |
---|
| 5775 | _ACEOF |
---|
| 5776 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5777 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5778 | /* end confdefs.h. */ |
---|
| 5779 | #include <$ac_header> |
---|
| 5780 | _ACEOF |
---|
| 5781 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5782 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5783 | ac_status=$? |
---|
| 5784 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5785 | rm -f conftest.er1 |
---|
| 5786 | cat conftest.err >&5 |
---|
| 5787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5788 | (exit $ac_status); } >/dev/null; then |
---|
| 5789 | if test -s conftest.err; then |
---|
| 5790 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5791 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5792 | else |
---|
| 5793 | ac_cpp_err= |
---|
| 5794 | fi |
---|
| 5795 | else |
---|
| 5796 | ac_cpp_err=yes |
---|
| 5797 | fi |
---|
| 5798 | if test -z "$ac_cpp_err"; then |
---|
| 5799 | ac_header_preproc=yes |
---|
| 5800 | else |
---|
| 5801 | echo "$as_me: failed program was:" >&5 |
---|
| 5802 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5803 | |
---|
| 5804 | ac_header_preproc=no |
---|
| 5805 | fi |
---|
| 5806 | rm -f conftest.err conftest.$ac_ext |
---|
| 5807 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5808 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5809 | |
---|
| 5810 | # So? What about this header? |
---|
| 5811 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5812 | yes:no: ) |
---|
| 5813 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5814 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5815 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5816 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5817 | ac_header_preproc=yes |
---|
| 5818 | ;; |
---|
| 5819 | no:yes:* ) |
---|
| 5820 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5821 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5822 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5823 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5824 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5825 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5826 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5827 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5828 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5829 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5830 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5831 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5832 | ( |
---|
| 5833 | cat <<\_ASBOX |
---|
[3240] | 5834 | ## ---------------------------------------------- ## |
---|
| 5835 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5836 | ## ---------------------------------------------- ## |
---|
[2995] | 5837 | _ASBOX |
---|
| 5838 | ) | |
---|
| 5839 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5840 | ;; |
---|
| 5841 | esac |
---|
| 5842 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5843 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5844 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5846 | else |
---|
| 5847 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5848 | fi |
---|
| 5849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5850 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5851 | |
---|
| 5852 | fi |
---|
| 5853 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5854 | cat >>confdefs.h <<_ACEOF |
---|
| 5855 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5856 | _ACEOF |
---|
| 5857 | |
---|
| 5858 | else |
---|
| 5859 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5860 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5861 | { (exit 1); exit 1; }; } |
---|
| 5862 | fi |
---|
| 5863 | |
---|
| 5864 | done |
---|
| 5865 | |
---|
| 5866 | # cheking for GLU-header |
---|
| 5867 | |
---|
| 5868 | for ac_header in OpenGL/glu.h |
---|
| 5869 | do |
---|
| 5870 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5871 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5872 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5876 | fi |
---|
| 5877 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5878 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5879 | else |
---|
| 5880 | # Is the header compilable? |
---|
| 5881 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5882 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5883 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5884 | /* confdefs.h. */ |
---|
| 5885 | _ACEOF |
---|
| 5886 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5887 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5888 | /* end confdefs.h. */ |
---|
| 5889 | $ac_includes_default |
---|
| 5890 | #include <$ac_header> |
---|
| 5891 | _ACEOF |
---|
| 5892 | rm -f conftest.$ac_objext |
---|
| 5893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5894 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5895 | ac_status=$? |
---|
| 5896 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5897 | rm -f conftest.er1 |
---|
| 5898 | cat conftest.err >&5 |
---|
| 5899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5900 | (exit $ac_status); } && |
---|
| 5901 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5902 | || test ! -s conftest.err' |
---|
| 5903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5904 | (eval $ac_try) 2>&5 |
---|
| 5905 | ac_status=$? |
---|
| 5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5907 | (exit $ac_status); }; } && |
---|
| 5908 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5910 | (eval $ac_try) 2>&5 |
---|
| 5911 | ac_status=$? |
---|
| 5912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5913 | (exit $ac_status); }; }; then |
---|
| 5914 | ac_header_compiler=yes |
---|
| 5915 | else |
---|
| 5916 | echo "$as_me: failed program was:" >&5 |
---|
| 5917 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5918 | |
---|
| 5919 | ac_header_compiler=no |
---|
| 5920 | fi |
---|
| 5921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5922 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5923 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5924 | |
---|
| 5925 | # Is the header present? |
---|
| 5926 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5927 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5928 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5929 | /* confdefs.h. */ |
---|
| 5930 | _ACEOF |
---|
| 5931 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5932 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5933 | /* end confdefs.h. */ |
---|
| 5934 | #include <$ac_header> |
---|
| 5935 | _ACEOF |
---|
| 5936 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5937 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5938 | ac_status=$? |
---|
| 5939 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5940 | rm -f conftest.er1 |
---|
| 5941 | cat conftest.err >&5 |
---|
| 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5943 | (exit $ac_status); } >/dev/null; then |
---|
| 5944 | if test -s conftest.err; then |
---|
| 5945 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5946 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5947 | else |
---|
| 5948 | ac_cpp_err= |
---|
| 5949 | fi |
---|
| 5950 | else |
---|
| 5951 | ac_cpp_err=yes |
---|
| 5952 | fi |
---|
| 5953 | if test -z "$ac_cpp_err"; then |
---|
| 5954 | ac_header_preproc=yes |
---|
| 5955 | else |
---|
| 5956 | echo "$as_me: failed program was:" >&5 |
---|
| 5957 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5958 | |
---|
| 5959 | ac_header_preproc=no |
---|
| 5960 | fi |
---|
| 5961 | rm -f conftest.err conftest.$ac_ext |
---|
| 5962 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5963 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5964 | |
---|
| 5965 | # So? What about this header? |
---|
| 5966 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5967 | yes:no: ) |
---|
| 5968 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5969 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5970 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5971 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5972 | ac_header_preproc=yes |
---|
| 5973 | ;; |
---|
| 5974 | no:yes:* ) |
---|
| 5975 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5976 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5977 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5978 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5979 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5980 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5981 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5982 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5983 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5984 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5985 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5986 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5987 | ( |
---|
| 5988 | cat <<\_ASBOX |
---|
[3240] | 5989 | ## ---------------------------------------------- ## |
---|
| 5990 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5991 | ## ---------------------------------------------- ## |
---|
[2995] | 5992 | _ASBOX |
---|
| 5993 | ) | |
---|
| 5994 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5995 | ;; |
---|
| 5996 | esac |
---|
| 5997 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5998 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5999 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6001 | else |
---|
| 6002 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6003 | fi |
---|
| 6004 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6005 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6006 | |
---|
| 6007 | fi |
---|
| 6008 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6009 | cat >>confdefs.h <<_ACEOF |
---|
| 6010 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6011 | _ACEOF |
---|
| 6012 | |
---|
| 6013 | else |
---|
| 6014 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 6015 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 6016 | { (exit 1); exit 1; }; } |
---|
| 6017 | fi |
---|
| 6018 | |
---|
| 6019 | done |
---|
| 6020 | |
---|
| 6021 | |
---|
| 6022 | LIBS="$LIBS -framework OpenGL" |
---|
| 6023 | |
---|
[3561] | 6024 | SDL_CFLAGS=`sdl-config --cflags` |
---|
| 6025 | SDL_LIBS=`sdl-config --libs` |
---|
| 6026 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 6027 | LIBS="$LIBS $SDL_LIBS" |
---|
| 6028 | |
---|
| 6029 | |
---|
[2995] | 6030 | # checking for SDL-headers |
---|
[3001] | 6031 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
| 6032 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
[2995] | 6033 | |
---|
| 6034 | ## checking for SDL |
---|
| 6035 | # SDL_VERSION=1.2.7 |
---|
| 6036 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 6037 | # :, |
---|
| 6038 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 6039 | # ) |
---|
| 6040 | |
---|
[3140] | 6041 | |
---|
[2995] | 6042 | ;; |
---|
| 6043 | |
---|
[2989] | 6044 | *) |
---|
| 6045 | ;; |
---|
| 6046 | esac |
---|
[2980] | 6047 | |
---|
[2981] | 6048 | |
---|
[2989] | 6049 | |
---|
[3561] | 6050 | ################################### |
---|
| 6051 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
| 6052 | ################################### |
---|
| 6053 | |
---|
| 6054 | #-----------# |
---|
| 6055 | # SDL_Image # |
---|
| 6056 | #-----------# |
---|
| 6057 | if test x$def_sdl_image = xyes; then |
---|
[3140] | 6058 | # checking for SDL_image-headers |
---|
[2989] | 6059 | |
---|
[3140] | 6060 | for ac_header in SDL/SDL_image.h |
---|
| 6061 | do |
---|
| 6062 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6064 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6068 | fi |
---|
| 6069 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6070 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6071 | else |
---|
| 6072 | # Is the header compilable? |
---|
| 6073 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6074 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6075 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6076 | /* confdefs.h. */ |
---|
| 6077 | _ACEOF |
---|
| 6078 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6079 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6080 | /* end confdefs.h. */ |
---|
| 6081 | $ac_includes_default |
---|
| 6082 | #include <$ac_header> |
---|
| 6083 | _ACEOF |
---|
| 6084 | rm -f conftest.$ac_objext |
---|
| 6085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6086 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6087 | ac_status=$? |
---|
| 6088 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6089 | rm -f conftest.er1 |
---|
| 6090 | cat conftest.err >&5 |
---|
| 6091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6092 | (exit $ac_status); } && |
---|
| 6093 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6094 | || test ! -s conftest.err' |
---|
| 6095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6096 | (eval $ac_try) 2>&5 |
---|
| 6097 | ac_status=$? |
---|
| 6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6099 | (exit $ac_status); }; } && |
---|
| 6100 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6102 | (eval $ac_try) 2>&5 |
---|
| 6103 | ac_status=$? |
---|
| 6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6105 | (exit $ac_status); }; }; then |
---|
| 6106 | ac_header_compiler=yes |
---|
| 6107 | else |
---|
| 6108 | echo "$as_me: failed program was:" >&5 |
---|
| 6109 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2989] | 6110 | |
---|
[3140] | 6111 | ac_header_compiler=no |
---|
| 6112 | fi |
---|
| 6113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6114 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6115 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[2989] | 6116 | |
---|
[3140] | 6117 | # Is the header present? |
---|
| 6118 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6119 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6120 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6121 | /* confdefs.h. */ |
---|
| 6122 | _ACEOF |
---|
| 6123 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6124 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6125 | /* end confdefs.h. */ |
---|
| 6126 | #include <$ac_header> |
---|
| 6127 | _ACEOF |
---|
| 6128 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6129 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6130 | ac_status=$? |
---|
| 6131 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6132 | rm -f conftest.er1 |
---|
| 6133 | cat conftest.err >&5 |
---|
| 6134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6135 | (exit $ac_status); } >/dev/null; then |
---|
| 6136 | if test -s conftest.err; then |
---|
| 6137 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6138 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6139 | else |
---|
| 6140 | ac_cpp_err= |
---|
| 6141 | fi |
---|
| 6142 | else |
---|
| 6143 | ac_cpp_err=yes |
---|
| 6144 | fi |
---|
| 6145 | if test -z "$ac_cpp_err"; then |
---|
| 6146 | ac_header_preproc=yes |
---|
| 6147 | else |
---|
| 6148 | echo "$as_me: failed program was:" >&5 |
---|
| 6149 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6150 | |
---|
| 6151 | ac_header_preproc=no |
---|
| 6152 | fi |
---|
| 6153 | rm -f conftest.err conftest.$ac_ext |
---|
| 6154 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6155 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6156 | |
---|
| 6157 | # So? What about this header? |
---|
| 6158 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6159 | yes:no: ) |
---|
| 6160 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6161 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6162 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6163 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6164 | ac_header_preproc=yes |
---|
| 6165 | ;; |
---|
| 6166 | no:yes:* ) |
---|
| 6167 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6168 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6169 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6170 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6171 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6172 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6173 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6174 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6176 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6177 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6178 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6179 | ( |
---|
| 6180 | cat <<\_ASBOX |
---|
[3240] | 6181 | ## ---------------------------------------------- ## |
---|
| 6182 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6183 | ## ---------------------------------------------- ## |
---|
[3140] | 6184 | _ASBOX |
---|
| 6185 | ) | |
---|
| 6186 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6187 | ;; |
---|
| 6188 | esac |
---|
| 6189 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6190 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6193 | else |
---|
| 6194 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6195 | fi |
---|
| 6196 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6197 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6198 | |
---|
| 6199 | fi |
---|
| 6200 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6201 | cat >>confdefs.h <<_ACEOF |
---|
| 6202 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6203 | _ACEOF |
---|
| 6204 | |
---|
| 6205 | else |
---|
| 6206 | echo "sdl_image not found. falling back to other options"; def_sdl_image=no |
---|
| 6207 | fi |
---|
| 6208 | |
---|
| 6209 | done |
---|
| 6210 | |
---|
| 6211 | fi |
---|
[3561] | 6212 | if test x$def_sdl_image = xyes; then |
---|
[3140] | 6213 | # checking for SDL_image-lib |
---|
| 6214 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
| 6215 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
| 6216 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
| 6217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6218 | else |
---|
| 6219 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6220 | LIBS="-lSDL_image $LIBS" |
---|
| 6221 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6222 | /* confdefs.h. */ |
---|
| 6223 | _ACEOF |
---|
| 6224 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6225 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6226 | /* end confdefs.h. */ |
---|
| 6227 | |
---|
| 6228 | |
---|
| 6229 | int |
---|
| 6230 | main () |
---|
| 6231 | { |
---|
| 6232 | main (); |
---|
| 6233 | ; |
---|
| 6234 | return 0; |
---|
| 6235 | } |
---|
| 6236 | _ACEOF |
---|
| 6237 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6239 | (eval $ac_link) 2>conftest.er1 |
---|
| 6240 | ac_status=$? |
---|
| 6241 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6242 | rm -f conftest.er1 |
---|
| 6243 | cat conftest.err >&5 |
---|
| 6244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6245 | (exit $ac_status); } && |
---|
| 6246 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6247 | || test ! -s conftest.err' |
---|
| 6248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6249 | (eval $ac_try) 2>&5 |
---|
| 6250 | ac_status=$? |
---|
| 6251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6252 | (exit $ac_status); }; } && |
---|
| 6253 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6255 | (eval $ac_try) 2>&5 |
---|
| 6256 | ac_status=$? |
---|
| 6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6258 | (exit $ac_status); }; }; then |
---|
| 6259 | ac_cv_lib_SDL_image_main=yes |
---|
| 6260 | else |
---|
| 6261 | echo "$as_me: failed program was:" >&5 |
---|
| 6262 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6263 | |
---|
| 6264 | ac_cv_lib_SDL_image_main=no |
---|
| 6265 | fi |
---|
| 6266 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6267 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6268 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6269 | fi |
---|
| 6270 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
| 6271 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
| 6272 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
| 6273 | FOUND_SDL_image=yes |
---|
| 6274 | fi |
---|
| 6275 | |
---|
[3561] | 6276 | if test x$FOUND_SDL_image = xyes ; then |
---|
[3140] | 6277 | LIBS="$LIBS -lSDL_image" |
---|
| 6278 | else |
---|
| 6279 | echo "------------------" |
---|
| 6280 | echo "SDL_image library not found." |
---|
| 6281 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
| 6282 | echo "------------------" |
---|
| 6283 | exit -1 |
---|
| 6284 | fi |
---|
| 6285 | fi |
---|
| 6286 | |
---|
[3561] | 6287 | ## case no SDL-image: |
---|
| 6288 | if test x$def_sdl_image = xno; then |
---|
| 6289 | #---------# |
---|
| 6290 | # libjpeg # |
---|
| 6291 | #---------# |
---|
[3140] | 6292 | |
---|
| 6293 | for ac_header in jpeglib.h |
---|
| 6294 | do |
---|
| 6295 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6296 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6297 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6298 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6299 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6301 | fi |
---|
| 6302 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6303 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6304 | else |
---|
| 6305 | # Is the header compilable? |
---|
| 6306 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6307 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6308 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6309 | /* confdefs.h. */ |
---|
| 6310 | _ACEOF |
---|
| 6311 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6312 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6313 | /* end confdefs.h. */ |
---|
| 6314 | $ac_includes_default |
---|
| 6315 | #include <$ac_header> |
---|
| 6316 | _ACEOF |
---|
| 6317 | rm -f conftest.$ac_objext |
---|
| 6318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6319 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6320 | ac_status=$? |
---|
| 6321 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6322 | rm -f conftest.er1 |
---|
| 6323 | cat conftest.err >&5 |
---|
| 6324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6325 | (exit $ac_status); } && |
---|
| 6326 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6327 | || test ! -s conftest.err' |
---|
| 6328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6329 | (eval $ac_try) 2>&5 |
---|
| 6330 | ac_status=$? |
---|
| 6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6332 | (exit $ac_status); }; } && |
---|
| 6333 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6335 | (eval $ac_try) 2>&5 |
---|
| 6336 | ac_status=$? |
---|
| 6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6338 | (exit $ac_status); }; }; then |
---|
| 6339 | ac_header_compiler=yes |
---|
| 6340 | else |
---|
| 6341 | echo "$as_me: failed program was:" >&5 |
---|
| 6342 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6343 | |
---|
| 6344 | ac_header_compiler=no |
---|
| 6345 | fi |
---|
| 6346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6347 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6348 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6349 | |
---|
| 6350 | # Is the header present? |
---|
| 6351 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6352 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6353 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6354 | /* confdefs.h. */ |
---|
| 6355 | _ACEOF |
---|
| 6356 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6357 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6358 | /* end confdefs.h. */ |
---|
| 6359 | #include <$ac_header> |
---|
| 6360 | _ACEOF |
---|
| 6361 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6362 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6363 | ac_status=$? |
---|
| 6364 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6365 | rm -f conftest.er1 |
---|
| 6366 | cat conftest.err >&5 |
---|
| 6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6368 | (exit $ac_status); } >/dev/null; then |
---|
| 6369 | if test -s conftest.err; then |
---|
| 6370 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6371 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6372 | else |
---|
| 6373 | ac_cpp_err= |
---|
| 6374 | fi |
---|
| 6375 | else |
---|
| 6376 | ac_cpp_err=yes |
---|
| 6377 | fi |
---|
| 6378 | if test -z "$ac_cpp_err"; then |
---|
| 6379 | ac_header_preproc=yes |
---|
| 6380 | else |
---|
| 6381 | echo "$as_me: failed program was:" >&5 |
---|
| 6382 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6383 | |
---|
| 6384 | ac_header_preproc=no |
---|
| 6385 | fi |
---|
| 6386 | rm -f conftest.err conftest.$ac_ext |
---|
| 6387 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6388 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6389 | |
---|
| 6390 | # So? What about this header? |
---|
| 6391 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6392 | yes:no: ) |
---|
| 6393 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6394 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6395 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6396 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6397 | ac_header_preproc=yes |
---|
| 6398 | ;; |
---|
| 6399 | no:yes:* ) |
---|
| 6400 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6401 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6402 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6403 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6404 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6405 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6406 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6407 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6408 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6409 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6410 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6411 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6412 | ( |
---|
| 6413 | cat <<\_ASBOX |
---|
[3240] | 6414 | ## ---------------------------------------------- ## |
---|
| 6415 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6416 | ## ---------------------------------------------- ## |
---|
[3140] | 6417 | _ASBOX |
---|
| 6418 | ) | |
---|
| 6419 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6420 | ;; |
---|
| 6421 | esac |
---|
| 6422 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6423 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6424 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6426 | else |
---|
| 6427 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6428 | fi |
---|
| 6429 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6430 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6431 | |
---|
| 6432 | fi |
---|
| 6433 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6434 | cat >>confdefs.h <<_ACEOF |
---|
| 6435 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6436 | _ACEOF |
---|
| 6437 | jpegHeader="yes" |
---|
| 6438 | else |
---|
| 6439 | jpegHeader="no" |
---|
| 6440 | fi |
---|
| 6441 | |
---|
| 6442 | done |
---|
| 6443 | |
---|
[3561] | 6444 | if test x$jpegHeader = xno; then |
---|
[3140] | 6445 | echo " not including jpeg." |
---|
| 6446 | else |
---|
| 6447 | echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 |
---|
| 6448 | echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 |
---|
| 6449 | if test "${ac_cv_lib_jpeg_main+set}" = set; then |
---|
| 6450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6451 | else |
---|
| 6452 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6453 | LIBS="-ljpeg $LIBS" |
---|
| 6454 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6455 | /* confdefs.h. */ |
---|
| 6456 | _ACEOF |
---|
| 6457 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6458 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6459 | /* end confdefs.h. */ |
---|
| 6460 | |
---|
| 6461 | |
---|
| 6462 | int |
---|
| 6463 | main () |
---|
| 6464 | { |
---|
| 6465 | main (); |
---|
| 6466 | ; |
---|
| 6467 | return 0; |
---|
| 6468 | } |
---|
| 6469 | _ACEOF |
---|
| 6470 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6472 | (eval $ac_link) 2>conftest.er1 |
---|
| 6473 | ac_status=$? |
---|
| 6474 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6475 | rm -f conftest.er1 |
---|
| 6476 | cat conftest.err >&5 |
---|
| 6477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6478 | (exit $ac_status); } && |
---|
| 6479 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6480 | || test ! -s conftest.err' |
---|
| 6481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6482 | (eval $ac_try) 2>&5 |
---|
| 6483 | ac_status=$? |
---|
| 6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6485 | (exit $ac_status); }; } && |
---|
| 6486 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6488 | (eval $ac_try) 2>&5 |
---|
| 6489 | ac_status=$? |
---|
| 6490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6491 | (exit $ac_status); }; }; then |
---|
| 6492 | ac_cv_lib_jpeg_main=yes |
---|
| 6493 | else |
---|
| 6494 | echo "$as_me: failed program was:" >&5 |
---|
| 6495 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6496 | |
---|
| 6497 | ac_cv_lib_jpeg_main=no |
---|
| 6498 | fi |
---|
| 6499 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6500 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6501 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6502 | fi |
---|
| 6503 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 |
---|
| 6504 | echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 |
---|
| 6505 | if test $ac_cv_lib_jpeg_main = yes; then |
---|
| 6506 | FOUND_jpeg=yes |
---|
| 6507 | fi |
---|
| 6508 | |
---|
[3561] | 6509 | if test x$FOUND_jpeg = xyes ; then |
---|
[3140] | 6510 | LIBS="$LIBS -ljpeg" |
---|
| 6511 | else |
---|
| 6512 | echo "------------------" |
---|
| 6513 | echo "jpeg library not found." |
---|
| 6514 | echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" |
---|
| 6515 | echo "------------------" |
---|
| 6516 | exit -1 |
---|
| 6517 | fi |
---|
| 6518 | fi |
---|
| 6519 | |
---|
[3561] | 6520 | #--------# |
---|
| 6521 | # libpng # |
---|
| 6522 | #--------# |
---|
[3140] | 6523 | |
---|
| 6524 | for ac_header in png.h |
---|
| 6525 | do |
---|
| 6526 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6528 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6529 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6530 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6532 | fi |
---|
| 6533 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6534 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6535 | else |
---|
| 6536 | # Is the header compilable? |
---|
| 6537 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6538 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6539 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6540 | /* confdefs.h. */ |
---|
| 6541 | _ACEOF |
---|
| 6542 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6543 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6544 | /* end confdefs.h. */ |
---|
| 6545 | $ac_includes_default |
---|
| 6546 | #include <$ac_header> |
---|
| 6547 | _ACEOF |
---|
| 6548 | rm -f conftest.$ac_objext |
---|
| 6549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6550 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6551 | ac_status=$? |
---|
| 6552 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6553 | rm -f conftest.er1 |
---|
| 6554 | cat conftest.err >&5 |
---|
| 6555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6556 | (exit $ac_status); } && |
---|
| 6557 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6558 | || test ! -s conftest.err' |
---|
| 6559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6560 | (eval $ac_try) 2>&5 |
---|
| 6561 | ac_status=$? |
---|
| 6562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6563 | (exit $ac_status); }; } && |
---|
| 6564 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6566 | (eval $ac_try) 2>&5 |
---|
| 6567 | ac_status=$? |
---|
| 6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6569 | (exit $ac_status); }; }; then |
---|
| 6570 | ac_header_compiler=yes |
---|
| 6571 | else |
---|
| 6572 | echo "$as_me: failed program was:" >&5 |
---|
| 6573 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6574 | |
---|
| 6575 | ac_header_compiler=no |
---|
| 6576 | fi |
---|
| 6577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6578 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6579 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6580 | |
---|
| 6581 | # Is the header present? |
---|
| 6582 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6583 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6584 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6585 | /* confdefs.h. */ |
---|
| 6586 | _ACEOF |
---|
| 6587 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6588 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6589 | /* end confdefs.h. */ |
---|
| 6590 | #include <$ac_header> |
---|
| 6591 | _ACEOF |
---|
| 6592 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6593 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6594 | ac_status=$? |
---|
| 6595 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6596 | rm -f conftest.er1 |
---|
| 6597 | cat conftest.err >&5 |
---|
| 6598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6599 | (exit $ac_status); } >/dev/null; then |
---|
| 6600 | if test -s conftest.err; then |
---|
| 6601 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6602 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6603 | else |
---|
| 6604 | ac_cpp_err= |
---|
| 6605 | fi |
---|
| 6606 | else |
---|
| 6607 | ac_cpp_err=yes |
---|
| 6608 | fi |
---|
| 6609 | if test -z "$ac_cpp_err"; then |
---|
| 6610 | ac_header_preproc=yes |
---|
| 6611 | else |
---|
| 6612 | echo "$as_me: failed program was:" >&5 |
---|
| 6613 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6614 | |
---|
| 6615 | ac_header_preproc=no |
---|
| 6616 | fi |
---|
| 6617 | rm -f conftest.err conftest.$ac_ext |
---|
| 6618 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6619 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6620 | |
---|
| 6621 | # So? What about this header? |
---|
| 6622 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6623 | yes:no: ) |
---|
| 6624 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6625 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6626 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6627 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6628 | ac_header_preproc=yes |
---|
| 6629 | ;; |
---|
| 6630 | no:yes:* ) |
---|
| 6631 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6632 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6633 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6634 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6635 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6636 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6637 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6638 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6639 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6640 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6641 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6642 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6643 | ( |
---|
| 6644 | cat <<\_ASBOX |
---|
[3240] | 6645 | ## ---------------------------------------------- ## |
---|
| 6646 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6647 | ## ---------------------------------------------- ## |
---|
[3140] | 6648 | _ASBOX |
---|
| 6649 | ) | |
---|
| 6650 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6651 | ;; |
---|
| 6652 | esac |
---|
| 6653 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6654 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6657 | else |
---|
| 6658 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6659 | fi |
---|
| 6660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6661 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6662 | |
---|
| 6663 | fi |
---|
| 6664 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6665 | cat >>confdefs.h <<_ACEOF |
---|
| 6666 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6667 | _ACEOF |
---|
| 6668 | pngHeader="yes" |
---|
| 6669 | else |
---|
| 6670 | pngHeader="no" |
---|
| 6671 | fi |
---|
| 6672 | |
---|
| 6673 | done |
---|
| 6674 | |
---|
[3561] | 6675 | if test x$pngHeader = xno; then |
---|
[3140] | 6676 | echo " not including png." |
---|
| 6677 | else |
---|
| 6678 | echo "$as_me:$LINENO: checking for main in -lpng" >&5 |
---|
| 6679 | echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 |
---|
| 6680 | if test "${ac_cv_lib_png_main+set}" = set; then |
---|
| 6681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6682 | else |
---|
| 6683 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6684 | LIBS="-lpng $LIBS" |
---|
| 6685 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6686 | /* confdefs.h. */ |
---|
| 6687 | _ACEOF |
---|
| 6688 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6689 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6690 | /* end confdefs.h. */ |
---|
| 6691 | |
---|
| 6692 | |
---|
| 6693 | int |
---|
| 6694 | main () |
---|
| 6695 | { |
---|
| 6696 | main (); |
---|
| 6697 | ; |
---|
| 6698 | return 0; |
---|
| 6699 | } |
---|
| 6700 | _ACEOF |
---|
| 6701 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6703 | (eval $ac_link) 2>conftest.er1 |
---|
| 6704 | ac_status=$? |
---|
| 6705 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6706 | rm -f conftest.er1 |
---|
| 6707 | cat conftest.err >&5 |
---|
| 6708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6709 | (exit $ac_status); } && |
---|
| 6710 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6711 | || test ! -s conftest.err' |
---|
| 6712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6713 | (eval $ac_try) 2>&5 |
---|
| 6714 | ac_status=$? |
---|
| 6715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6716 | (exit $ac_status); }; } && |
---|
| 6717 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6719 | (eval $ac_try) 2>&5 |
---|
| 6720 | ac_status=$? |
---|
| 6721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6722 | (exit $ac_status); }; }; then |
---|
| 6723 | ac_cv_lib_png_main=yes |
---|
| 6724 | else |
---|
| 6725 | echo "$as_me: failed program was:" >&5 |
---|
| 6726 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6727 | |
---|
| 6728 | ac_cv_lib_png_main=no |
---|
| 6729 | fi |
---|
| 6730 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6731 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6732 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6733 | fi |
---|
| 6734 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 |
---|
| 6735 | echo "${ECHO_T}$ac_cv_lib_png_main" >&6 |
---|
| 6736 | if test $ac_cv_lib_png_main = yes; then |
---|
| 6737 | FOUND_png=yes |
---|
| 6738 | fi |
---|
| 6739 | |
---|
[3561] | 6740 | if test x$FOUND_png = xyes ; then |
---|
[3140] | 6741 | LIBS="$LIBS -lpng" |
---|
| 6742 | else |
---|
| 6743 | echo "------------------" |
---|
| 6744 | echo "png library not found." |
---|
| 6745 | echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" |
---|
| 6746 | echo "------------------" |
---|
| 6747 | exit -1 |
---|
| 6748 | fi |
---|
| 6749 | fi |
---|
| 6750 | fi |
---|
| 6751 | |
---|
[3561] | 6752 | #-----# |
---|
| 6753 | # GTK # |
---|
| 6754 | #-----# |
---|
| 6755 | if test x$def_gtk = xyes; then |
---|
[3100] | 6756 | |
---|
| 6757 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
| 6758 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
[3099] | 6759 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
[3100] | 6760 | if `pkg-config --exists gtk+-2.0`; then |
---|
| 6761 | echo "yes" |
---|
| 6762 | have_gtk2=yes |
---|
| 6763 | GTK2_LIBS=`pkg-config --libs gtk+-2.0` |
---|
| 6764 | GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` |
---|
[3101] | 6765 | |
---|
| 6766 | cat >>confdefs.h <<_ACEOF |
---|
| 6767 | #define HAVE_GTK2 1 |
---|
| 6768 | _ACEOF |
---|
| 6769 | |
---|
[3100] | 6770 | else |
---|
| 6771 | echo "no" |
---|
| 6772 | fi |
---|
| 6773 | |
---|
[2980] | 6774 | fi |
---|
[2190] | 6775 | |
---|
[2701] | 6776 | |
---|
| 6777 | |
---|
[2190] | 6778 | |
---|
[3100] | 6779 | if test x$have_gtk2 = xyes; then |
---|
[2980] | 6780 | HAVE_GTK2_TRUE= |
---|
| 6781 | HAVE_GTK2_FALSE='#' |
---|
| 6782 | else |
---|
| 6783 | HAVE_GTK2_TRUE='#' |
---|
| 6784 | HAVE_GTK2_FALSE= |
---|
| 6785 | fi |
---|
| 6786 | |
---|
| 6787 | |
---|
[3561] | 6788 | #---------# |
---|
| 6789 | # gThread # |
---|
| 6790 | #---------# |
---|
| 6791 | if test x$def_gthread = xyes; then |
---|
[3271] | 6792 | |
---|
| 6793 | echo "$as_me:$LINENO: checking for gthread" >&5 |
---|
| 6794 | echo $ECHO_N "checking for gthread... $ECHO_C" >&6 |
---|
| 6795 | if `pkg-config --exists gthread-2.0`; then |
---|
| 6796 | echo "yes" |
---|
| 6797 | have_gthread=yes |
---|
| 6798 | GTHREAD_LIBS=`pkg-config --libs gthread-2.0` |
---|
| 6799 | GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0` |
---|
| 6800 | |
---|
| 6801 | cat >>confdefs.h <<_ACEOF |
---|
| 6802 | #define HAVE_GTHREAD 1 |
---|
| 6803 | _ACEOF |
---|
| 6804 | |
---|
| 6805 | else |
---|
| 6806 | echo "no" |
---|
| 6807 | fi |
---|
| 6808 | |
---|
| 6809 | fi |
---|
| 6810 | |
---|
| 6811 | |
---|
| 6812 | |
---|
| 6813 | |
---|
| 6814 | if test x$have_gthread = xyes; then |
---|
| 6815 | HAVE_GTHREAD_TRUE= |
---|
| 6816 | HAVE_GTHREAD_FALSE='#' |
---|
| 6817 | else |
---|
| 6818 | HAVE_GTHREAD_TRUE='#' |
---|
| 6819 | HAVE_GTHREAD_FALSE= |
---|
| 6820 | fi |
---|
| 6821 | |
---|
| 6822 | |
---|
[3561] | 6823 | #---------# |
---|
| 6824 | # libcURL # |
---|
| 6825 | #---------# |
---|
| 6826 | if test x$def_curl = xyes; then |
---|
[2980] | 6827 | |
---|
[3100] | 6828 | |
---|
[3243] | 6829 | for ac_header in curl/curl.h |
---|
| 6830 | do |
---|
| 6831 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6832 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6833 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6834 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6835 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6837 | fi |
---|
| 6838 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6839 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6840 | else |
---|
| 6841 | # Is the header compilable? |
---|
| 6842 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6843 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6844 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6845 | /* confdefs.h. */ |
---|
| 6846 | _ACEOF |
---|
| 6847 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6848 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6849 | /* end confdefs.h. */ |
---|
| 6850 | $ac_includes_default |
---|
| 6851 | #include <$ac_header> |
---|
| 6852 | _ACEOF |
---|
| 6853 | rm -f conftest.$ac_objext |
---|
| 6854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6855 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6856 | ac_status=$? |
---|
| 6857 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6858 | rm -f conftest.er1 |
---|
| 6859 | cat conftest.err >&5 |
---|
| 6860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6861 | (exit $ac_status); } && |
---|
| 6862 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6863 | || test ! -s conftest.err' |
---|
| 6864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6865 | (eval $ac_try) 2>&5 |
---|
| 6866 | ac_status=$? |
---|
| 6867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6868 | (exit $ac_status); }; } && |
---|
| 6869 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6871 | (eval $ac_try) 2>&5 |
---|
| 6872 | ac_status=$? |
---|
| 6873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6874 | (exit $ac_status); }; }; then |
---|
| 6875 | ac_header_compiler=yes |
---|
| 6876 | else |
---|
| 6877 | echo "$as_me: failed program was:" >&5 |
---|
| 6878 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6879 | |
---|
| 6880 | ac_header_compiler=no |
---|
| 6881 | fi |
---|
| 6882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6883 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6884 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6885 | |
---|
| 6886 | # Is the header present? |
---|
| 6887 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6888 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6889 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6890 | /* confdefs.h. */ |
---|
| 6891 | _ACEOF |
---|
| 6892 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6893 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6894 | /* end confdefs.h. */ |
---|
| 6895 | #include <$ac_header> |
---|
| 6896 | _ACEOF |
---|
| 6897 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6898 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6899 | ac_status=$? |
---|
| 6900 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6901 | rm -f conftest.er1 |
---|
| 6902 | cat conftest.err >&5 |
---|
| 6903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6904 | (exit $ac_status); } >/dev/null; then |
---|
| 6905 | if test -s conftest.err; then |
---|
| 6906 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6907 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6908 | else |
---|
| 6909 | ac_cpp_err= |
---|
| 6910 | fi |
---|
| 6911 | else |
---|
| 6912 | ac_cpp_err=yes |
---|
| 6913 | fi |
---|
| 6914 | if test -z "$ac_cpp_err"; then |
---|
| 6915 | ac_header_preproc=yes |
---|
| 6916 | else |
---|
| 6917 | echo "$as_me: failed program was:" >&5 |
---|
| 6918 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6919 | |
---|
| 6920 | ac_header_preproc=no |
---|
| 6921 | fi |
---|
| 6922 | rm -f conftest.err conftest.$ac_ext |
---|
| 6923 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6924 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6925 | |
---|
| 6926 | # So? What about this header? |
---|
| 6927 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6928 | yes:no: ) |
---|
| 6929 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6930 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6931 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6932 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6933 | ac_header_preproc=yes |
---|
| 6934 | ;; |
---|
| 6935 | no:yes:* ) |
---|
| 6936 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6937 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6938 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6939 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6940 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6941 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6942 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6943 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6944 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6945 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6946 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6947 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6948 | ( |
---|
| 6949 | cat <<\_ASBOX |
---|
| 6950 | ## ---------------------------------------------- ## |
---|
| 6951 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6952 | ## ---------------------------------------------- ## |
---|
| 6953 | _ASBOX |
---|
| 6954 | ) | |
---|
| 6955 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6956 | ;; |
---|
| 6957 | esac |
---|
| 6958 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6959 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6962 | else |
---|
| 6963 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6964 | fi |
---|
| 6965 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6966 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6967 | |
---|
| 6968 | fi |
---|
| 6969 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6970 | cat >>confdefs.h <<_ACEOF |
---|
| 6971 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6972 | _ACEOF |
---|
| 6973 | curlHeader="yes" |
---|
| 6974 | else |
---|
| 6975 | curlHeader="no" |
---|
| 6976 | fi |
---|
| 6977 | |
---|
| 6978 | done |
---|
| 6979 | |
---|
| 6980 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
| 6981 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
| 6982 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
| 6983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6984 | else |
---|
| 6985 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6986 | LIBS="-lcurl $LIBS" |
---|
| 6987 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6988 | /* confdefs.h. */ |
---|
| 6989 | _ACEOF |
---|
| 6990 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6991 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6992 | /* end confdefs.h. */ |
---|
| 6993 | |
---|
| 6994 | |
---|
| 6995 | int |
---|
| 6996 | main () |
---|
| 6997 | { |
---|
| 6998 | main (); |
---|
| 6999 | ; |
---|
| 7000 | return 0; |
---|
| 7001 | } |
---|
| 7002 | _ACEOF |
---|
| 7003 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7005 | (eval $ac_link) 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); } && |
---|
| 7012 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7013 | || test ! -s conftest.err' |
---|
| 7014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7015 | (eval $ac_try) 2>&5 |
---|
| 7016 | ac_status=$? |
---|
| 7017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7018 | (exit $ac_status); }; } && |
---|
| 7019 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7021 | (eval $ac_try) 2>&5 |
---|
| 7022 | ac_status=$? |
---|
| 7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7024 | (exit $ac_status); }; }; then |
---|
| 7025 | ac_cv_lib_curl_main=yes |
---|
| 7026 | else |
---|
| 7027 | echo "$as_me: failed program was:" >&5 |
---|
| 7028 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7029 | |
---|
| 7030 | ac_cv_lib_curl_main=no |
---|
| 7031 | fi |
---|
| 7032 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7033 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7034 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7035 | fi |
---|
| 7036 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
| 7037 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
| 7038 | if test $ac_cv_lib_curl_main = yes; then |
---|
| 7039 | FOUND_curl=yes |
---|
| 7040 | fi |
---|
| 7041 | |
---|
| 7042 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
| 7043 | have_curl=yes |
---|
| 7044 | CURL_LIBS=`curl-config --libs` |
---|
| 7045 | CURLCFLAGS=`curl-config --cflags` |
---|
| 7046 | |
---|
| 7047 | cat >>confdefs.h <<_ACEOF |
---|
| 7048 | #define HAVE_CURL 1 |
---|
| 7049 | _ACEOF |
---|
| 7050 | |
---|
| 7051 | else |
---|
| 7052 | have_curl=no |
---|
| 7053 | fi |
---|
| 7054 | |
---|
| 7055 | fi |
---|
| 7056 | |
---|
| 7057 | |
---|
| 7058 | |
---|
| 7059 | |
---|
| 7060 | if test x$have_curl = xyes; then |
---|
| 7061 | HAVE_CURL_TRUE= |
---|
| 7062 | HAVE_CURL_FALSE='#' |
---|
| 7063 | else |
---|
| 7064 | HAVE_CURL_TRUE='#' |
---|
| 7065 | HAVE_CURL_FALSE= |
---|
| 7066 | fi |
---|
| 7067 | |
---|
| 7068 | |
---|
[3561] | 7069 | #---------# |
---|
| 7070 | # pthread # |
---|
| 7071 | #---------# |
---|
[3283] | 7072 | if test x$def_pthread = xyes ; then |
---|
| 7073 | if test x$have_gthread = xyes ; then |
---|
[3273] | 7074 | |
---|
| 7075 | for ac_header in pthread.h |
---|
| 7076 | do |
---|
| 7077 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7078 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7079 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7080 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7083 | fi |
---|
| 7084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7085 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7086 | else |
---|
| 7087 | # Is the header compilable? |
---|
| 7088 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7089 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7090 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7091 | /* confdefs.h. */ |
---|
| 7092 | _ACEOF |
---|
| 7093 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7094 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7095 | /* end confdefs.h. */ |
---|
| 7096 | $ac_includes_default |
---|
| 7097 | #include <$ac_header> |
---|
| 7098 | _ACEOF |
---|
| 7099 | rm -f conftest.$ac_objext |
---|
| 7100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7101 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7102 | ac_status=$? |
---|
| 7103 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7104 | rm -f conftest.er1 |
---|
| 7105 | cat conftest.err >&5 |
---|
| 7106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7107 | (exit $ac_status); } && |
---|
| 7108 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7109 | || test ! -s conftest.err' |
---|
| 7110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7111 | (eval $ac_try) 2>&5 |
---|
| 7112 | ac_status=$? |
---|
| 7113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7114 | (exit $ac_status); }; } && |
---|
| 7115 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7117 | (eval $ac_try) 2>&5 |
---|
| 7118 | ac_status=$? |
---|
| 7119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7120 | (exit $ac_status); }; }; then |
---|
| 7121 | ac_header_compiler=yes |
---|
| 7122 | else |
---|
| 7123 | echo "$as_me: failed program was:" >&5 |
---|
| 7124 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7125 | |
---|
| 7126 | ac_header_compiler=no |
---|
| 7127 | fi |
---|
| 7128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7129 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7130 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7131 | |
---|
| 7132 | # Is the header present? |
---|
| 7133 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7134 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7135 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7136 | /* confdefs.h. */ |
---|
| 7137 | _ACEOF |
---|
| 7138 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7139 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7140 | /* end confdefs.h. */ |
---|
| 7141 | #include <$ac_header> |
---|
| 7142 | _ACEOF |
---|
| 7143 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7144 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7145 | ac_status=$? |
---|
| 7146 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7147 | rm -f conftest.er1 |
---|
| 7148 | cat conftest.err >&5 |
---|
| 7149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7150 | (exit $ac_status); } >/dev/null; then |
---|
| 7151 | if test -s conftest.err; then |
---|
| 7152 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7153 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7154 | else |
---|
| 7155 | ac_cpp_err= |
---|
| 7156 | fi |
---|
| 7157 | else |
---|
| 7158 | ac_cpp_err=yes |
---|
| 7159 | fi |
---|
| 7160 | if test -z "$ac_cpp_err"; then |
---|
| 7161 | ac_header_preproc=yes |
---|
| 7162 | else |
---|
| 7163 | echo "$as_me: failed program was:" >&5 |
---|
| 7164 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7165 | |
---|
| 7166 | ac_header_preproc=no |
---|
| 7167 | fi |
---|
| 7168 | rm -f conftest.err conftest.$ac_ext |
---|
| 7169 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7170 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7171 | |
---|
| 7172 | # So? What about this header? |
---|
| 7173 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7174 | yes:no: ) |
---|
| 7175 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7176 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7177 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7178 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7179 | ac_header_preproc=yes |
---|
| 7180 | ;; |
---|
| 7181 | no:yes:* ) |
---|
| 7182 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7183 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7184 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7185 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7186 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7187 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7188 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7189 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7190 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7191 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7192 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7193 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7194 | ( |
---|
| 7195 | cat <<\_ASBOX |
---|
| 7196 | ## ---------------------------------------------- ## |
---|
| 7197 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7198 | ## ---------------------------------------------- ## |
---|
| 7199 | _ASBOX |
---|
| 7200 | ) | |
---|
| 7201 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7202 | ;; |
---|
| 7203 | esac |
---|
| 7204 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7205 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7206 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7208 | else |
---|
| 7209 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7210 | fi |
---|
| 7211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7212 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7213 | |
---|
| 7214 | fi |
---|
| 7215 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7216 | cat >>confdefs.h <<_ACEOF |
---|
| 7217 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7218 | _ACEOF |
---|
| 7219 | pthreadHeader="yes" |
---|
| 7220 | else |
---|
| 7221 | pthreadHeader="no" |
---|
| 7222 | fi |
---|
| 7223 | |
---|
| 7224 | done |
---|
| 7225 | |
---|
[3274] | 7226 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
[3272] | 7227 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
| 7228 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
| 7229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7230 | else |
---|
| 7231 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7232 | LIBS="-lpthread $LIBS" |
---|
| 7233 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7234 | /* confdefs.h. */ |
---|
| 7235 | _ACEOF |
---|
| 7236 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7237 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7238 | /* end confdefs.h. */ |
---|
[2190] | 7239 | |
---|
| 7240 | |
---|
[3272] | 7241 | int |
---|
| 7242 | main () |
---|
| 7243 | { |
---|
| 7244 | main (); |
---|
| 7245 | ; |
---|
| 7246 | return 0; |
---|
| 7247 | } |
---|
| 7248 | _ACEOF |
---|
| 7249 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7250 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7251 | (eval $ac_link) 2>conftest.er1 |
---|
| 7252 | ac_status=$? |
---|
| 7253 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7254 | rm -f conftest.er1 |
---|
| 7255 | cat conftest.err >&5 |
---|
| 7256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7257 | (exit $ac_status); } && |
---|
| 7258 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7259 | || test ! -s conftest.err' |
---|
| 7260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7261 | (eval $ac_try) 2>&5 |
---|
| 7262 | ac_status=$? |
---|
| 7263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7264 | (exit $ac_status); }; } && |
---|
| 7265 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7267 | (eval $ac_try) 2>&5 |
---|
| 7268 | ac_status=$? |
---|
| 7269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7270 | (exit $ac_status); }; }; then |
---|
| 7271 | ac_cv_lib_pthread_main=yes |
---|
| 7272 | else |
---|
| 7273 | echo "$as_me: failed program was:" >&5 |
---|
| 7274 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7275 | |
---|
| 7276 | ac_cv_lib_pthread_main=no |
---|
| 7277 | fi |
---|
| 7278 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7279 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7280 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7281 | fi |
---|
| 7282 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
| 7283 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
| 7284 | if test $ac_cv_lib_pthread_main = yes; then |
---|
| 7285 | FOUND_pthread=yes |
---|
| 7286 | fi |
---|
| 7287 | |
---|
[3561] | 7288 | if test x$FOUND_pthread = xyes ; then |
---|
[3274] | 7289 | LIBS="$LIBS -lpthread" |
---|
| 7290 | fi |
---|
[3283] | 7291 | fi |
---|
[3274] | 7292 | fi |
---|
[3561] | 7293 | |
---|
| 7294 | |
---|
[1956] | 7295 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 7296 | |
---|
| 7297 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 7298 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 7299 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 7300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7301 | else |
---|
| 7302 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7303 | LIBS="-lm $LIBS" |
---|
| 7304 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7305 | /* confdefs.h. */ |
---|
| 7306 | _ACEOF |
---|
| 7307 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7308 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7309 | /* end confdefs.h. */ |
---|
| 7310 | |
---|
| 7311 | |
---|
| 7312 | int |
---|
| 7313 | main () |
---|
| 7314 | { |
---|
| 7315 | main (); |
---|
| 7316 | ; |
---|
| 7317 | return 0; |
---|
| 7318 | } |
---|
| 7319 | _ACEOF |
---|
| 7320 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7322 | (eval $ac_link) 2>conftest.er1 |
---|
| 7323 | ac_status=$? |
---|
| 7324 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7325 | rm -f conftest.er1 |
---|
| 7326 | cat conftest.err >&5 |
---|
| 7327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7328 | (exit $ac_status); } && |
---|
| 7329 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7330 | || test ! -s conftest.err' |
---|
| 7331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7332 | (eval $ac_try) 2>&5 |
---|
| 7333 | ac_status=$? |
---|
| 7334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7335 | (exit $ac_status); }; } && |
---|
| 7336 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7338 | (eval $ac_try) 2>&5 |
---|
| 7339 | ac_status=$? |
---|
| 7340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7341 | (exit $ac_status); }; }; then |
---|
| 7342 | ac_cv_lib_m_main=yes |
---|
| 7343 | else |
---|
| 7344 | echo "$as_me: failed program was:" >&5 |
---|
| 7345 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7346 | |
---|
| 7347 | ac_cv_lib_m_main=no |
---|
| 7348 | fi |
---|
| 7349 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7350 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7351 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7352 | fi |
---|
| 7353 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 7354 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 7355 | if test $ac_cv_lib_m_main = yes; then |
---|
| 7356 | cat >>confdefs.h <<_ACEOF |
---|
| 7357 | #define HAVE_LIBM 1 |
---|
| 7358 | _ACEOF |
---|
| 7359 | |
---|
| 7360 | LIBS="-lm $LIBS" |
---|
| 7361 | |
---|
| 7362 | fi |
---|
| 7363 | |
---|
| 7364 | |
---|
[2018] | 7365 | |
---|
[1956] | 7366 | # Checks for header files. |
---|
| 7367 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 7368 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 7369 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 7370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7371 | else |
---|
| 7372 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7373 | /* confdefs.h. */ |
---|
| 7374 | _ACEOF |
---|
| 7375 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7376 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7377 | /* end confdefs.h. */ |
---|
| 7378 | #include <stdlib.h> |
---|
| 7379 | #include <stdarg.h> |
---|
| 7380 | #include <string.h> |
---|
| 7381 | #include <float.h> |
---|
| 7382 | |
---|
| 7383 | int |
---|
| 7384 | main () |
---|
| 7385 | { |
---|
| 7386 | |
---|
| 7387 | ; |
---|
| 7388 | return 0; |
---|
| 7389 | } |
---|
| 7390 | _ACEOF |
---|
| 7391 | rm -f conftest.$ac_objext |
---|
| 7392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7393 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7394 | ac_status=$? |
---|
| 7395 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7396 | rm -f conftest.er1 |
---|
| 7397 | cat conftest.err >&5 |
---|
| 7398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7399 | (exit $ac_status); } && |
---|
| 7400 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7401 | || test ! -s conftest.err' |
---|
| 7402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7403 | (eval $ac_try) 2>&5 |
---|
| 7404 | ac_status=$? |
---|
| 7405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7406 | (exit $ac_status); }; } && |
---|
| 7407 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7409 | (eval $ac_try) 2>&5 |
---|
| 7410 | ac_status=$? |
---|
| 7411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7412 | (exit $ac_status); }; }; then |
---|
| 7413 | ac_cv_header_stdc=yes |
---|
| 7414 | else |
---|
| 7415 | echo "$as_me: failed program was:" >&5 |
---|
| 7416 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7417 | |
---|
| 7418 | ac_cv_header_stdc=no |
---|
| 7419 | fi |
---|
| 7420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7421 | |
---|
| 7422 | if test $ac_cv_header_stdc = yes; then |
---|
| 7423 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 7424 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7425 | /* confdefs.h. */ |
---|
| 7426 | _ACEOF |
---|
| 7427 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7428 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7429 | /* end confdefs.h. */ |
---|
| 7430 | #include <string.h> |
---|
| 7431 | |
---|
| 7432 | _ACEOF |
---|
| 7433 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 7434 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 7435 | : |
---|
| 7436 | else |
---|
| 7437 | ac_cv_header_stdc=no |
---|
| 7438 | fi |
---|
| 7439 | rm -f conftest* |
---|
| 7440 | |
---|
| 7441 | fi |
---|
| 7442 | |
---|
| 7443 | if test $ac_cv_header_stdc = yes; then |
---|
| 7444 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 7445 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7446 | /* confdefs.h. */ |
---|
| 7447 | _ACEOF |
---|
| 7448 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7449 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7450 | /* end confdefs.h. */ |
---|
| 7451 | #include <stdlib.h> |
---|
| 7452 | |
---|
| 7453 | _ACEOF |
---|
| 7454 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 7455 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 7456 | : |
---|
| 7457 | else |
---|
| 7458 | ac_cv_header_stdc=no |
---|
| 7459 | fi |
---|
| 7460 | rm -f conftest* |
---|
| 7461 | |
---|
| 7462 | fi |
---|
| 7463 | |
---|
| 7464 | if test $ac_cv_header_stdc = yes; then |
---|
| 7465 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 7466 | if test "$cross_compiling" = yes; then |
---|
| 7467 | : |
---|
| 7468 | else |
---|
| 7469 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7470 | /* confdefs.h. */ |
---|
| 7471 | _ACEOF |
---|
| 7472 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7473 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7474 | /* end confdefs.h. */ |
---|
| 7475 | #include <ctype.h> |
---|
| 7476 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 7477 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 7478 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 7479 | #else |
---|
| 7480 | # define ISLOWER(c) \ |
---|
| 7481 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 7482 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 7483 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 7484 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 7485 | #endif |
---|
| 7486 | |
---|
| 7487 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 7488 | int |
---|
| 7489 | main () |
---|
| 7490 | { |
---|
| 7491 | int i; |
---|
| 7492 | for (i = 0; i < 256; i++) |
---|
| 7493 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 7494 | || toupper (i) != TOUPPER (i)) |
---|
| 7495 | exit(2); |
---|
| 7496 | exit (0); |
---|
| 7497 | } |
---|
| 7498 | _ACEOF |
---|
| 7499 | rm -f conftest$ac_exeext |
---|
| 7500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7501 | (eval $ac_link) 2>&5 |
---|
| 7502 | ac_status=$? |
---|
| 7503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7504 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 7505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7506 | (eval $ac_try) 2>&5 |
---|
| 7507 | ac_status=$? |
---|
| 7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7509 | (exit $ac_status); }; }; then |
---|
| 7510 | : |
---|
| 7511 | else |
---|
| 7512 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 7513 | echo "$as_me: failed program was:" >&5 |
---|
| 7514 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7515 | |
---|
| 7516 | ( exit $ac_status ) |
---|
| 7517 | ac_cv_header_stdc=no |
---|
| 7518 | fi |
---|
| 7519 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 7520 | fi |
---|
| 7521 | fi |
---|
| 7522 | fi |
---|
| 7523 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 7524 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 7525 | if test $ac_cv_header_stdc = yes; then |
---|
| 7526 | |
---|
| 7527 | cat >>confdefs.h <<\_ACEOF |
---|
| 7528 | #define STDC_HEADERS 1 |
---|
| 7529 | _ACEOF |
---|
| 7530 | |
---|
| 7531 | fi |
---|
| 7532 | |
---|
| 7533 | |
---|
| 7534 | |
---|
| 7535 | for ac_header in stdlib.h string.h |
---|
| 7536 | do |
---|
| 7537 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7538 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7539 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7540 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7541 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7543 | fi |
---|
| 7544 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7545 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7546 | else |
---|
| 7547 | # Is the header compilable? |
---|
| 7548 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7549 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7550 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7551 | /* confdefs.h. */ |
---|
| 7552 | _ACEOF |
---|
| 7553 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7554 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7555 | /* end confdefs.h. */ |
---|
| 7556 | $ac_includes_default |
---|
| 7557 | #include <$ac_header> |
---|
| 7558 | _ACEOF |
---|
| 7559 | rm -f conftest.$ac_objext |
---|
| 7560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7561 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7562 | ac_status=$? |
---|
| 7563 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7564 | rm -f conftest.er1 |
---|
| 7565 | cat conftest.err >&5 |
---|
| 7566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7567 | (exit $ac_status); } && |
---|
| 7568 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7569 | || test ! -s conftest.err' |
---|
| 7570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7571 | (eval $ac_try) 2>&5 |
---|
| 7572 | ac_status=$? |
---|
| 7573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7574 | (exit $ac_status); }; } && |
---|
| 7575 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7577 | (eval $ac_try) 2>&5 |
---|
| 7578 | ac_status=$? |
---|
| 7579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7580 | (exit $ac_status); }; }; then |
---|
| 7581 | ac_header_compiler=yes |
---|
| 7582 | else |
---|
| 7583 | echo "$as_me: failed program was:" >&5 |
---|
| 7584 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7585 | |
---|
| 7586 | ac_header_compiler=no |
---|
| 7587 | fi |
---|
| 7588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7589 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7590 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7591 | |
---|
| 7592 | # Is the header present? |
---|
| 7593 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7594 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7595 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7596 | /* confdefs.h. */ |
---|
| 7597 | _ACEOF |
---|
| 7598 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7599 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7600 | /* end confdefs.h. */ |
---|
| 7601 | #include <$ac_header> |
---|
| 7602 | _ACEOF |
---|
| 7603 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7604 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7605 | ac_status=$? |
---|
| 7606 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7607 | rm -f conftest.er1 |
---|
| 7608 | cat conftest.err >&5 |
---|
| 7609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7610 | (exit $ac_status); } >/dev/null; then |
---|
| 7611 | if test -s conftest.err; then |
---|
| 7612 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7613 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7614 | else |
---|
| 7615 | ac_cpp_err= |
---|
| 7616 | fi |
---|
| 7617 | else |
---|
| 7618 | ac_cpp_err=yes |
---|
| 7619 | fi |
---|
| 7620 | if test -z "$ac_cpp_err"; then |
---|
| 7621 | ac_header_preproc=yes |
---|
| 7622 | else |
---|
| 7623 | echo "$as_me: failed program was:" >&5 |
---|
| 7624 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7625 | |
---|
| 7626 | ac_header_preproc=no |
---|
| 7627 | fi |
---|
| 7628 | rm -f conftest.err conftest.$ac_ext |
---|
| 7629 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7630 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7631 | |
---|
| 7632 | # So? What about this header? |
---|
| 7633 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7634 | yes:no: ) |
---|
| 7635 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7636 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7637 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7638 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7639 | ac_header_preproc=yes |
---|
| 7640 | ;; |
---|
| 7641 | no:yes:* ) |
---|
| 7642 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7643 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7644 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7645 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7646 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7647 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7648 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7649 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7650 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7651 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7652 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7653 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7654 | ( |
---|
| 7655 | cat <<\_ASBOX |
---|
[3240] | 7656 | ## ---------------------------------------------- ## |
---|
| 7657 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7658 | ## ---------------------------------------------- ## |
---|
[1956] | 7659 | _ASBOX |
---|
| 7660 | ) | |
---|
| 7661 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7662 | ;; |
---|
| 7663 | esac |
---|
| 7664 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7665 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7666 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7668 | else |
---|
| 7669 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7670 | fi |
---|
| 7671 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7672 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7673 | |
---|
| 7674 | fi |
---|
| 7675 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7676 | cat >>confdefs.h <<_ACEOF |
---|
| 7677 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7678 | _ACEOF |
---|
| 7679 | |
---|
| 7680 | fi |
---|
| 7681 | |
---|
| 7682 | done |
---|
| 7683 | |
---|
| 7684 | |
---|
| 7685 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 7686 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 7687 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 7688 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 7689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7690 | else |
---|
| 7691 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7692 | /* confdefs.h. */ |
---|
| 7693 | _ACEOF |
---|
| 7694 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7695 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7696 | /* end confdefs.h. */ |
---|
| 7697 | |
---|
| 7698 | #include <stdbool.h> |
---|
| 7699 | #ifndef bool |
---|
| 7700 | # error bool is not defined |
---|
| 7701 | #endif |
---|
| 7702 | #ifndef false |
---|
| 7703 | # error false is not defined |
---|
| 7704 | #endif |
---|
| 7705 | #if false |
---|
| 7706 | # error false is not 0 |
---|
| 7707 | #endif |
---|
| 7708 | #ifndef true |
---|
| 7709 | # error true is not defined |
---|
| 7710 | #endif |
---|
| 7711 | #if true != 1 |
---|
| 7712 | # error true is not 1 |
---|
| 7713 | #endif |
---|
| 7714 | #ifndef __bool_true_false_are_defined |
---|
| 7715 | # error __bool_true_false_are_defined is not defined |
---|
| 7716 | #endif |
---|
| 7717 | |
---|
| 7718 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 7719 | |
---|
| 7720 | char a[true == 1 ? 1 : -1]; |
---|
| 7721 | char b[false == 0 ? 1 : -1]; |
---|
| 7722 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 7723 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 7724 | bool e = &s; |
---|
| 7725 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 7726 | char g[true]; |
---|
| 7727 | char h[sizeof (_Bool)]; |
---|
| 7728 | char i[sizeof s.t]; |
---|
| 7729 | |
---|
| 7730 | int |
---|
| 7731 | main () |
---|
| 7732 | { |
---|
| 7733 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 7734 | ; |
---|
| 7735 | return 0; |
---|
| 7736 | } |
---|
| 7737 | _ACEOF |
---|
| 7738 | rm -f conftest.$ac_objext |
---|
| 7739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7740 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7741 | ac_status=$? |
---|
| 7742 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7743 | rm -f conftest.er1 |
---|
| 7744 | cat conftest.err >&5 |
---|
| 7745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7746 | (exit $ac_status); } && |
---|
| 7747 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7748 | || test ! -s conftest.err' |
---|
| 7749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7750 | (eval $ac_try) 2>&5 |
---|
| 7751 | ac_status=$? |
---|
| 7752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7753 | (exit $ac_status); }; } && |
---|
| 7754 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7756 | (eval $ac_try) 2>&5 |
---|
| 7757 | ac_status=$? |
---|
| 7758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7759 | (exit $ac_status); }; }; then |
---|
| 7760 | ac_cv_header_stdbool_h=yes |
---|
| 7761 | else |
---|
| 7762 | echo "$as_me: failed program was:" >&5 |
---|
| 7763 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7764 | |
---|
| 7765 | ac_cv_header_stdbool_h=no |
---|
| 7766 | fi |
---|
| 7767 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7768 | fi |
---|
| 7769 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 7770 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 7771 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 7772 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 7773 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 7774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7775 | else |
---|
| 7776 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7777 | /* confdefs.h. */ |
---|
| 7778 | _ACEOF |
---|
| 7779 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7780 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7781 | /* end confdefs.h. */ |
---|
| 7782 | $ac_includes_default |
---|
| 7783 | int |
---|
| 7784 | main () |
---|
| 7785 | { |
---|
| 7786 | if ((_Bool *) 0) |
---|
| 7787 | return 0; |
---|
| 7788 | if (sizeof (_Bool)) |
---|
| 7789 | return 0; |
---|
| 7790 | ; |
---|
| 7791 | return 0; |
---|
| 7792 | } |
---|
| 7793 | _ACEOF |
---|
| 7794 | rm -f conftest.$ac_objext |
---|
| 7795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7796 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7797 | ac_status=$? |
---|
| 7798 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7799 | rm -f conftest.er1 |
---|
| 7800 | cat conftest.err >&5 |
---|
| 7801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7802 | (exit $ac_status); } && |
---|
| 7803 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7804 | || test ! -s conftest.err' |
---|
| 7805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7806 | (eval $ac_try) 2>&5 |
---|
| 7807 | ac_status=$? |
---|
| 7808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7809 | (exit $ac_status); }; } && |
---|
| 7810 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7812 | (eval $ac_try) 2>&5 |
---|
| 7813 | ac_status=$? |
---|
| 7814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7815 | (exit $ac_status); }; }; then |
---|
| 7816 | ac_cv_type__Bool=yes |
---|
| 7817 | else |
---|
| 7818 | echo "$as_me: failed program was:" >&5 |
---|
| 7819 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7820 | |
---|
| 7821 | ac_cv_type__Bool=no |
---|
| 7822 | fi |
---|
| 7823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7824 | fi |
---|
| 7825 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 7826 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 7827 | if test $ac_cv_type__Bool = yes; then |
---|
| 7828 | |
---|
| 7829 | cat >>confdefs.h <<_ACEOF |
---|
| 7830 | #define HAVE__BOOL 1 |
---|
| 7831 | _ACEOF |
---|
| 7832 | |
---|
| 7833 | |
---|
| 7834 | fi |
---|
| 7835 | |
---|
| 7836 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 7837 | |
---|
| 7838 | cat >>confdefs.h <<\_ACEOF |
---|
| 7839 | #define HAVE_STDBOOL_H 1 |
---|
| 7840 | _ACEOF |
---|
| 7841 | |
---|
| 7842 | fi |
---|
| 7843 | |
---|
| 7844 | |
---|
| 7845 | # Checks for library functions. |
---|
| 7846 | |
---|
| 7847 | for ac_header in stdlib.h |
---|
| 7848 | do |
---|
| 7849 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7850 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7851 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7852 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7853 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7855 | fi |
---|
| 7856 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7857 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7858 | else |
---|
| 7859 | # Is the header compilable? |
---|
| 7860 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7861 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7862 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7863 | /* confdefs.h. */ |
---|
| 7864 | _ACEOF |
---|
| 7865 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7866 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7867 | /* end confdefs.h. */ |
---|
| 7868 | $ac_includes_default |
---|
| 7869 | #include <$ac_header> |
---|
| 7870 | _ACEOF |
---|
| 7871 | rm -f conftest.$ac_objext |
---|
| 7872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7873 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7874 | ac_status=$? |
---|
| 7875 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7876 | rm -f conftest.er1 |
---|
| 7877 | cat conftest.err >&5 |
---|
| 7878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7879 | (exit $ac_status); } && |
---|
| 7880 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7881 | || test ! -s conftest.err' |
---|
| 7882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7883 | (eval $ac_try) 2>&5 |
---|
| 7884 | ac_status=$? |
---|
| 7885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7886 | (exit $ac_status); }; } && |
---|
| 7887 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7889 | (eval $ac_try) 2>&5 |
---|
| 7890 | ac_status=$? |
---|
| 7891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7892 | (exit $ac_status); }; }; then |
---|
| 7893 | ac_header_compiler=yes |
---|
| 7894 | else |
---|
| 7895 | echo "$as_me: failed program was:" >&5 |
---|
| 7896 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7897 | |
---|
| 7898 | ac_header_compiler=no |
---|
| 7899 | fi |
---|
| 7900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7901 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7902 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7903 | |
---|
| 7904 | # Is the header present? |
---|
| 7905 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7906 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7907 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7908 | /* confdefs.h. */ |
---|
| 7909 | _ACEOF |
---|
| 7910 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7911 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7912 | /* end confdefs.h. */ |
---|
| 7913 | #include <$ac_header> |
---|
| 7914 | _ACEOF |
---|
| 7915 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7916 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7917 | ac_status=$? |
---|
| 7918 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7919 | rm -f conftest.er1 |
---|
| 7920 | cat conftest.err >&5 |
---|
| 7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7922 | (exit $ac_status); } >/dev/null; then |
---|
| 7923 | if test -s conftest.err; then |
---|
| 7924 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7925 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7926 | else |
---|
| 7927 | ac_cpp_err= |
---|
| 7928 | fi |
---|
| 7929 | else |
---|
| 7930 | ac_cpp_err=yes |
---|
| 7931 | fi |
---|
| 7932 | if test -z "$ac_cpp_err"; then |
---|
| 7933 | ac_header_preproc=yes |
---|
| 7934 | else |
---|
| 7935 | echo "$as_me: failed program was:" >&5 |
---|
| 7936 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7937 | |
---|
| 7938 | ac_header_preproc=no |
---|
| 7939 | fi |
---|
| 7940 | rm -f conftest.err conftest.$ac_ext |
---|
| 7941 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7942 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7943 | |
---|
| 7944 | # So? What about this header? |
---|
| 7945 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7946 | yes:no: ) |
---|
| 7947 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7948 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7949 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7950 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7951 | ac_header_preproc=yes |
---|
| 7952 | ;; |
---|
| 7953 | no:yes:* ) |
---|
| 7954 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7955 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7956 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7957 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7958 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7959 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7960 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7961 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7962 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7963 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7964 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7965 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7966 | ( |
---|
| 7967 | cat <<\_ASBOX |
---|
[3240] | 7968 | ## ---------------------------------------------- ## |
---|
| 7969 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7970 | ## ---------------------------------------------- ## |
---|
[1956] | 7971 | _ASBOX |
---|
| 7972 | ) | |
---|
| 7973 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7974 | ;; |
---|
| 7975 | esac |
---|
| 7976 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7977 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7978 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7980 | else |
---|
| 7981 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7982 | fi |
---|
| 7983 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7984 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7985 | |
---|
| 7986 | fi |
---|
| 7987 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7988 | cat >>confdefs.h <<_ACEOF |
---|
| 7989 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7990 | _ACEOF |
---|
| 7991 | |
---|
| 7992 | fi |
---|
| 7993 | |
---|
| 7994 | done |
---|
| 7995 | |
---|
| 7996 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 7997 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 7998 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 7999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8000 | else |
---|
| 8001 | if test "$cross_compiling" = yes; then |
---|
| 8002 | ac_cv_func_malloc_0_nonnull=no |
---|
| 8003 | else |
---|
| 8004 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8005 | /* confdefs.h. */ |
---|
| 8006 | _ACEOF |
---|
| 8007 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8008 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8009 | /* end confdefs.h. */ |
---|
| 8010 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 8011 | # include <stdlib.h> |
---|
| 8012 | #else |
---|
| 8013 | char *malloc (); |
---|
| 8014 | #endif |
---|
| 8015 | |
---|
| 8016 | int |
---|
| 8017 | main () |
---|
| 8018 | { |
---|
| 8019 | exit (malloc (0) ? 0 : 1); |
---|
| 8020 | ; |
---|
| 8021 | return 0; |
---|
| 8022 | } |
---|
| 8023 | _ACEOF |
---|
| 8024 | rm -f conftest$ac_exeext |
---|
| 8025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8026 | (eval $ac_link) 2>&5 |
---|
| 8027 | ac_status=$? |
---|
| 8028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8029 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 8030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8031 | (eval $ac_try) 2>&5 |
---|
| 8032 | ac_status=$? |
---|
| 8033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8034 | (exit $ac_status); }; }; then |
---|
| 8035 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 8036 | else |
---|
| 8037 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 8038 | echo "$as_me: failed program was:" >&5 |
---|
| 8039 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8040 | |
---|
| 8041 | ( exit $ac_status ) |
---|
| 8042 | ac_cv_func_malloc_0_nonnull=no |
---|
| 8043 | fi |
---|
| 8044 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 8045 | fi |
---|
| 8046 | fi |
---|
| 8047 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 8048 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 8049 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 8050 | |
---|
| 8051 | cat >>confdefs.h <<\_ACEOF |
---|
| 8052 | #define HAVE_MALLOC 1 |
---|
| 8053 | _ACEOF |
---|
| 8054 | |
---|
| 8055 | else |
---|
| 8056 | cat >>confdefs.h <<\_ACEOF |
---|
| 8057 | #define HAVE_MALLOC 0 |
---|
| 8058 | _ACEOF |
---|
| 8059 | |
---|
| 8060 | case $LIBOBJS in |
---|
| 8061 | "malloc.$ac_objext" | \ |
---|
| 8062 | *" malloc.$ac_objext" | \ |
---|
| 8063 | "malloc.$ac_objext "* | \ |
---|
| 8064 | *" malloc.$ac_objext "* ) ;; |
---|
| 8065 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 8066 | esac |
---|
| 8067 | |
---|
| 8068 | |
---|
| 8069 | cat >>confdefs.h <<\_ACEOF |
---|
| 8070 | #define malloc rpl_malloc |
---|
| 8071 | _ACEOF |
---|
| 8072 | |
---|
| 8073 | fi |
---|
| 8074 | |
---|
| 8075 | |
---|
| 8076 | |
---|
| 8077 | |
---|
| 8078 | |
---|
| 8079 | for ac_func in bzero sqrt |
---|
| 8080 | do |
---|
| 8081 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 8082 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 8083 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 8084 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 8085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8086 | else |
---|
| 8087 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8088 | /* confdefs.h. */ |
---|
| 8089 | _ACEOF |
---|
| 8090 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8091 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8092 | /* end confdefs.h. */ |
---|
| 8093 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 8094 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 8095 | #define $ac_func innocuous_$ac_func |
---|
| 8096 | |
---|
| 8097 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 8098 | which can conflict with char $ac_func (); below. |
---|
| 8099 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 8100 | <limits.h> exists even on freestanding compilers. */ |
---|
| 8101 | |
---|
| 8102 | #ifdef __STDC__ |
---|
| 8103 | # include <limits.h> |
---|
| 8104 | #else |
---|
| 8105 | # include <assert.h> |
---|
| 8106 | #endif |
---|
| 8107 | |
---|
| 8108 | #undef $ac_func |
---|
| 8109 | |
---|
| 8110 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 8111 | #ifdef __cplusplus |
---|
| 8112 | extern "C" |
---|
| 8113 | { |
---|
| 8114 | #endif |
---|
| 8115 | /* We use char because int might match the return type of a gcc2 |
---|
| 8116 | builtin and then its argument prototype would still apply. */ |
---|
| 8117 | char $ac_func (); |
---|
| 8118 | /* The GNU C library defines this for functions which it implements |
---|
| 8119 | to always fail with ENOSYS. Some functions are actually named |
---|
| 8120 | something starting with __ and the normal name is an alias. */ |
---|
| 8121 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 8122 | choke me |
---|
| 8123 | #else |
---|
| 8124 | char (*f) () = $ac_func; |
---|
| 8125 | #endif |
---|
| 8126 | #ifdef __cplusplus |
---|
| 8127 | } |
---|
| 8128 | #endif |
---|
| 8129 | |
---|
| 8130 | int |
---|
| 8131 | main () |
---|
| 8132 | { |
---|
| 8133 | return f != $ac_func; |
---|
| 8134 | ; |
---|
| 8135 | return 0; |
---|
| 8136 | } |
---|
| 8137 | _ACEOF |
---|
| 8138 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 8139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8140 | (eval $ac_link) 2>conftest.er1 |
---|
| 8141 | ac_status=$? |
---|
| 8142 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8143 | rm -f conftest.er1 |
---|
| 8144 | cat conftest.err >&5 |
---|
| 8145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8146 | (exit $ac_status); } && |
---|
| 8147 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8148 | || test ! -s conftest.err' |
---|
| 8149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8150 | (eval $ac_try) 2>&5 |
---|
| 8151 | ac_status=$? |
---|
| 8152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8153 | (exit $ac_status); }; } && |
---|
| 8154 | { ac_try='test -s conftest$ac_exeext' |
---|
| 8155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8156 | (eval $ac_try) 2>&5 |
---|
| 8157 | ac_status=$? |
---|
| 8158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8159 | (exit $ac_status); }; }; then |
---|
| 8160 | eval "$as_ac_var=yes" |
---|
| 8161 | else |
---|
| 8162 | echo "$as_me: failed program was:" >&5 |
---|
| 8163 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8164 | |
---|
| 8165 | eval "$as_ac_var=no" |
---|
| 8166 | fi |
---|
| 8167 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 8168 | conftest$ac_exeext conftest.$ac_ext |
---|
| 8169 | fi |
---|
| 8170 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 8171 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 8172 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 8173 | cat >>confdefs.h <<_ACEOF |
---|
| 8174 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 8175 | _ACEOF |
---|
| 8176 | |
---|
| 8177 | fi |
---|
| 8178 | done |
---|
| 8179 | |
---|
| 8180 | |
---|
[3561] | 8181 | ###################### |
---|
| 8182 | ## OUTPUT CONFIGURE ## |
---|
| 8183 | ###################### |
---|
| 8184 | ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/gui/Makefile src/lib/gui/console/Makefile src/lib/gui/gui/Makefile" |
---|
[1956] | 8185 | |
---|
[3561] | 8186 | |
---|
[1956] | 8187 | cat >confcache <<\_ACEOF |
---|
| 8188 | # This file is a shell script that caches the results of configure |
---|
| 8189 | # tests run on this system so they can be shared between configure |
---|
| 8190 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 8191 | # It is not useful on other systems. If it contains results you don't |
---|
| 8192 | # want to keep, you may remove or edit it. |
---|
| 8193 | # |
---|
| 8194 | # config.status only pays attention to the cache file if you give it |
---|
| 8195 | # the --recheck option to rerun configure. |
---|
| 8196 | # |
---|
| 8197 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 8198 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 8199 | # following values. |
---|
| 8200 | |
---|
| 8201 | _ACEOF |
---|
| 8202 | |
---|
| 8203 | # The following way of writing the cache mishandles newlines in values, |
---|
| 8204 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 8205 | # So, don't put newlines in cache variables' values. |
---|
| 8206 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 8207 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 8208 | { |
---|
| 8209 | (set) 2>&1 | |
---|
| 8210 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 8211 | *ac_space=\ *) |
---|
| 8212 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 8213 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 8214 | sed -n \ |
---|
| 8215 | "s/'/'\\\\''/g; |
---|
| 8216 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 8217 | ;; |
---|
| 8218 | *) |
---|
| 8219 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 8220 | sed -n \ |
---|
| 8221 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 8222 | ;; |
---|
| 8223 | esac; |
---|
| 8224 | } | |
---|
| 8225 | sed ' |
---|
| 8226 | t clear |
---|
| 8227 | : clear |
---|
| 8228 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 8229 | t end |
---|
| 8230 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 8231 | : end' >>confcache |
---|
| 8232 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 8233 | if test -w $cache_file; then |
---|
| 8234 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 8235 | cat confcache >$cache_file |
---|
| 8236 | else |
---|
| 8237 | echo "not updating unwritable cache $cache_file" |
---|
| 8238 | fi |
---|
| 8239 | fi |
---|
| 8240 | rm -f confcache |
---|
| 8241 | |
---|
| 8242 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 8243 | # Let make expand exec_prefix. |
---|
| 8244 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 8245 | |
---|
| 8246 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 8247 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 8248 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 8249 | # (actually we leave an empty line to preserve line numbers). |
---|
| 8250 | if test "x$srcdir" = x.; then |
---|
| 8251 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 8252 | s/:*\$(srcdir):*/:/; |
---|
| 8253 | s/:*\${srcdir}:*/:/; |
---|
| 8254 | s/:*@srcdir@:*/:/; |
---|
| 8255 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 8256 | s/:*$//; |
---|
| 8257 | s/^[^=]*=[ ]*$//; |
---|
| 8258 | }' |
---|
| 8259 | fi |
---|
| 8260 | |
---|
| 8261 | DEFS=-DHAVE_CONFIG_H |
---|
| 8262 | |
---|
| 8263 | ac_libobjs= |
---|
| 8264 | ac_ltlibobjs= |
---|
| 8265 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 8266 | # 1. Remove the extension, and $U if already installed. |
---|
| 8267 | ac_i=`echo "$ac_i" | |
---|
| 8268 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 8269 | # 2. Add them. |
---|
| 8270 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 8271 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 8272 | done |
---|
| 8273 | LIBOBJS=$ac_libobjs |
---|
| 8274 | |
---|
| 8275 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 8276 | |
---|
| 8277 | |
---|
| 8278 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 8279 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 8280 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8281 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 8282 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8283 | { (exit 1); exit 1; }; } |
---|
| 8284 | fi |
---|
| 8285 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 8286 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 8287 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8288 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 8289 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8290 | { (exit 1); exit 1; }; } |
---|
| 8291 | fi |
---|
| 8292 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 8293 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 8294 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8295 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 8296 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8297 | { (exit 1); exit 1; }; } |
---|
| 8298 | fi |
---|
[3561] | 8299 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
| 8300 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 8301 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8302 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 8303 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8304 | { (exit 1); exit 1; }; } |
---|
| 8305 | fi |
---|
[3219] | 8306 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
| 8307 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
| 8308 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8309 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
| 8310 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8311 | { (exit 1); exit 1; }; } |
---|
| 8312 | fi |
---|
[2980] | 8313 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
| 8314 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 8315 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8316 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 8317 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8318 | { (exit 1); exit 1; }; } |
---|
| 8319 | fi |
---|
[3271] | 8320 | if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then |
---|
| 8321 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
| 8322 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8323 | echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
| 8324 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8325 | { (exit 1); exit 1; }; } |
---|
| 8326 | fi |
---|
[3243] | 8327 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
| 8328 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 8329 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8330 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 8331 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8332 | { (exit 1); exit 1; }; } |
---|
| 8333 | fi |
---|
[1956] | 8334 | |
---|
| 8335 | : ${CONFIG_STATUS=./config.status} |
---|
| 8336 | ac_clean_files_save=$ac_clean_files |
---|
| 8337 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 8338 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 8339 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 8340 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 8341 | #! $SHELL |
---|
| 8342 | # Generated by $as_me. |
---|
| 8343 | # Run this file to recreate the current configuration. |
---|
| 8344 | # Compiler output produced by configure, useful for debugging |
---|
| 8345 | # configure, is in config.log if it exists. |
---|
| 8346 | |
---|
| 8347 | debug=false |
---|
| 8348 | ac_cs_recheck=false |
---|
| 8349 | ac_cs_silent=false |
---|
| 8350 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 8351 | _ACEOF |
---|
| 8352 | |
---|
| 8353 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8354 | ## --------------------- ## |
---|
| 8355 | ## M4sh Initialization. ## |
---|
| 8356 | ## --------------------- ## |
---|
| 8357 | |
---|
| 8358 | # Be Bourne compatible |
---|
| 8359 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 8360 | emulate sh |
---|
| 8361 | NULLCMD=: |
---|
| 8362 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 8363 | # is contrary to our usage. Disable this feature. |
---|
| 8364 | alias -g '${1+"$@"}'='"$@"' |
---|
| 8365 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 8366 | set -o posix |
---|
| 8367 | fi |
---|
| 8368 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 8369 | |
---|
| 8370 | # Support unset when possible. |
---|
| 8371 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 8372 | as_unset=unset |
---|
| 8373 | else |
---|
| 8374 | as_unset=false |
---|
| 8375 | fi |
---|
| 8376 | |
---|
| 8377 | |
---|
| 8378 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 8379 | $as_unset ENV MAIL MAILPATH |
---|
| 8380 | PS1='$ ' |
---|
| 8381 | PS2='> ' |
---|
| 8382 | PS4='+ ' |
---|
| 8383 | |
---|
| 8384 | # NLS nuisances. |
---|
| 8385 | for as_var in \ |
---|
| 8386 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 8387 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 8388 | LC_TELEPHONE LC_TIME |
---|
| 8389 | do |
---|
| 8390 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 8391 | eval $as_var=C; export $as_var |
---|
| 8392 | else |
---|
| 8393 | $as_unset $as_var |
---|
| 8394 | fi |
---|
| 8395 | done |
---|
| 8396 | |
---|
| 8397 | # Required to use basename. |
---|
| 8398 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 8399 | as_expr=expr |
---|
| 8400 | else |
---|
| 8401 | as_expr=false |
---|
| 8402 | fi |
---|
| 8403 | |
---|
| 8404 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 8405 | as_basename=basename |
---|
| 8406 | else |
---|
| 8407 | as_basename=false |
---|
| 8408 | fi |
---|
| 8409 | |
---|
| 8410 | |
---|
| 8411 | # Name of the executable. |
---|
| 8412 | as_me=`$as_basename "$0" || |
---|
| 8413 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 8414 | X"$0" : 'X\(//\)$' \| \ |
---|
| 8415 | X"$0" : 'X\(/\)$' \| \ |
---|
| 8416 | . : '\(.\)' 2>/dev/null || |
---|
| 8417 | echo X/"$0" | |
---|
| 8418 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 8419 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 8420 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 8421 | s/.*/./; q'` |
---|
| 8422 | |
---|
| 8423 | |
---|
| 8424 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 8425 | # Avoid depending upon Character Ranges. |
---|
| 8426 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 8427 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 8428 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 8429 | as_cr_digits='0123456789' |
---|
| 8430 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 8431 | |
---|
| 8432 | # The user is always right. |
---|
| 8433 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 8434 | echo "#! /bin/sh" >conf$$.sh |
---|
| 8435 | echo "exit 0" >>conf$$.sh |
---|
| 8436 | chmod +x conf$$.sh |
---|
| 8437 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 8438 | PATH_SEPARATOR=';' |
---|
| 8439 | else |
---|
| 8440 | PATH_SEPARATOR=: |
---|
| 8441 | fi |
---|
| 8442 | rm -f conf$$.sh |
---|
| 8443 | fi |
---|
| 8444 | |
---|
| 8445 | |
---|
| 8446 | as_lineno_1=$LINENO |
---|
| 8447 | as_lineno_2=$LINENO |
---|
| 8448 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 8449 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 8450 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 8451 | # Find who we are. Look in the path if we contain no path at all |
---|
| 8452 | # relative or not. |
---|
| 8453 | case $0 in |
---|
| 8454 | *[\\/]* ) as_myself=$0 ;; |
---|
| 8455 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 8456 | for as_dir in $PATH |
---|
| 8457 | do |
---|
| 8458 | IFS=$as_save_IFS |
---|
| 8459 | test -z "$as_dir" && as_dir=. |
---|
| 8460 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 8461 | done |
---|
| 8462 | |
---|
| 8463 | ;; |
---|
| 8464 | esac |
---|
| 8465 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 8466 | # in which case we are not to be found in the path. |
---|
| 8467 | if test "x$as_myself" = x; then |
---|
| 8468 | as_myself=$0 |
---|
| 8469 | fi |
---|
| 8470 | if test ! -f "$as_myself"; then |
---|
| 8471 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 8472 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 8473 | { (exit 1); exit 1; }; } |
---|
| 8474 | fi |
---|
| 8475 | case $CONFIG_SHELL in |
---|
| 8476 | '') |
---|
| 8477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 8478 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 8479 | do |
---|
| 8480 | IFS=$as_save_IFS |
---|
| 8481 | test -z "$as_dir" && as_dir=. |
---|
| 8482 | for as_base in sh bash ksh sh5; do |
---|
| 8483 | case $as_dir in |
---|
| 8484 | /*) |
---|
| 8485 | if ("$as_dir/$as_base" -c ' |
---|
| 8486 | as_lineno_1=$LINENO |
---|
| 8487 | as_lineno_2=$LINENO |
---|
| 8488 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 8489 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 8490 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 8491 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 8492 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 8493 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 8494 | export CONFIG_SHELL |
---|
| 8495 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 8496 | fi;; |
---|
| 8497 | esac |
---|
| 8498 | done |
---|
| 8499 | done |
---|
| 8500 | ;; |
---|
| 8501 | esac |
---|
| 8502 | |
---|
| 8503 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 8504 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 8505 | # line-number line before each line; the second 'sed' does the real |
---|
| 8506 | # work. The second script uses 'N' to pair each line-number line |
---|
| 8507 | # with the numbered line, and appends trailing '-' during |
---|
| 8508 | # substitution so that $LINENO is not a special case at line end. |
---|
| 8509 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 8510 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 8511 | sed '=' <$as_myself | |
---|
| 8512 | sed ' |
---|
| 8513 | N |
---|
| 8514 | s,$,-, |
---|
| 8515 | : loop |
---|
| 8516 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 8517 | t loop |
---|
| 8518 | s,-$,, |
---|
| 8519 | s,^['$as_cr_digits']*\n,, |
---|
| 8520 | ' >$as_me.lineno && |
---|
| 8521 | chmod +x $as_me.lineno || |
---|
| 8522 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 8523 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 8524 | { (exit 1); exit 1; }; } |
---|
| 8525 | |
---|
| 8526 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 8527 | # (the dirname of $[0] is not the place where we might find the |
---|
| 8528 | # original and so on. Autoconf is especially sensible to this). |
---|
| 8529 | . ./$as_me.lineno |
---|
| 8530 | # Exit status is that of the last command. |
---|
| 8531 | exit |
---|
| 8532 | } |
---|
| 8533 | |
---|
| 8534 | |
---|
| 8535 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 8536 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 8537 | ' ECHO_T=' ' ;; |
---|
| 8538 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 8539 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 8540 | esac |
---|
| 8541 | |
---|
| 8542 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 8543 | as_expr=expr |
---|
| 8544 | else |
---|
| 8545 | as_expr=false |
---|
| 8546 | fi |
---|
| 8547 | |
---|
| 8548 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 8549 | echo >conf$$.file |
---|
| 8550 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 8551 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 8552 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 8553 | if test -f conf$$.exe; then |
---|
| 8554 | # Don't use ln at all; we don't have any links |
---|
| 8555 | as_ln_s='cp -p' |
---|
| 8556 | else |
---|
| 8557 | as_ln_s='ln -s' |
---|
| 8558 | fi |
---|
| 8559 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 8560 | as_ln_s=ln |
---|
| 8561 | else |
---|
| 8562 | as_ln_s='cp -p' |
---|
| 8563 | fi |
---|
| 8564 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 8565 | |
---|
| 8566 | if mkdir -p . 2>/dev/null; then |
---|
| 8567 | as_mkdir_p=: |
---|
| 8568 | else |
---|
| 8569 | test -d ./-p && rmdir ./-p |
---|
| 8570 | as_mkdir_p=false |
---|
| 8571 | fi |
---|
| 8572 | |
---|
| 8573 | as_executable_p="test -f" |
---|
| 8574 | |
---|
| 8575 | # Sed expression to map a string onto a valid CPP name. |
---|
| 8576 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 8577 | |
---|
| 8578 | # Sed expression to map a string onto a valid variable name. |
---|
| 8579 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 8580 | |
---|
| 8581 | |
---|
| 8582 | # IFS |
---|
| 8583 | # We need space, tab and new line, in precisely that order. |
---|
| 8584 | as_nl=' |
---|
| 8585 | ' |
---|
| 8586 | IFS=" $as_nl" |
---|
| 8587 | |
---|
| 8588 | # CDPATH. |
---|
| 8589 | $as_unset CDPATH |
---|
| 8590 | |
---|
| 8591 | exec 6>&1 |
---|
| 8592 | |
---|
| 8593 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 8594 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 8595 | # values after options handling. Logging --version etc. is OK. |
---|
| 8596 | exec 5>>config.log |
---|
| 8597 | { |
---|
| 8598 | echo |
---|
| 8599 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 8600 | ## Running $as_me. ## |
---|
| 8601 | _ASBOX |
---|
| 8602 | } >&5 |
---|
| 8603 | cat >&5 <<_CSEOF |
---|
| 8604 | |
---|
[3243] | 8605 | This file was extended by orxonox $as_me 0.2.1-pre-alpha, which was |
---|
[1956] | 8606 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 8607 | |
---|
| 8608 | CONFIG_FILES = $CONFIG_FILES |
---|
| 8609 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 8610 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 8611 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 8612 | $ $0 $@ |
---|
| 8613 | |
---|
| 8614 | _CSEOF |
---|
| 8615 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 8616 | echo >&5 |
---|
| 8617 | _ACEOF |
---|
| 8618 | |
---|
| 8619 | # Files that config.status was made for. |
---|
| 8620 | if test -n "$ac_config_files"; then |
---|
| 8621 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 8622 | fi |
---|
| 8623 | |
---|
| 8624 | if test -n "$ac_config_headers"; then |
---|
| 8625 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 8626 | fi |
---|
| 8627 | |
---|
| 8628 | if test -n "$ac_config_links"; then |
---|
| 8629 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 8630 | fi |
---|
| 8631 | |
---|
| 8632 | if test -n "$ac_config_commands"; then |
---|
| 8633 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 8634 | fi |
---|
| 8635 | |
---|
| 8636 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8637 | |
---|
| 8638 | ac_cs_usage="\ |
---|
| 8639 | \`$as_me' instantiates files from templates according to the |
---|
| 8640 | current configuration. |
---|
| 8641 | |
---|
| 8642 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 8643 | |
---|
| 8644 | -h, --help print this help, then exit |
---|
| 8645 | -V, --version print version number, then exit |
---|
| 8646 | -q, --quiet do not print progress messages |
---|
| 8647 | -d, --debug don't remove temporary files |
---|
| 8648 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 8649 | --file=FILE[:TEMPLATE] |
---|
| 8650 | instantiate the configuration file FILE |
---|
| 8651 | --header=FILE[:TEMPLATE] |
---|
| 8652 | instantiate the configuration header FILE |
---|
| 8653 | |
---|
| 8654 | Configuration files: |
---|
| 8655 | $config_files |
---|
| 8656 | |
---|
| 8657 | Configuration headers: |
---|
| 8658 | $config_headers |
---|
| 8659 | |
---|
| 8660 | Configuration commands: |
---|
| 8661 | $config_commands |
---|
| 8662 | |
---|
| 8663 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 8664 | _ACEOF |
---|
| 8665 | |
---|
| 8666 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8667 | ac_cs_version="\\ |
---|
[3243] | 8668 | orxonox config.status 0.2.1-pre-alpha |
---|
[1956] | 8669 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 8670 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 8671 | |
---|
| 8672 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 8673 | This config.status script is free software; the Free Software Foundation |
---|
| 8674 | gives unlimited permission to copy, distribute and modify it." |
---|
| 8675 | srcdir=$srcdir |
---|
| 8676 | INSTALL="$INSTALL" |
---|
| 8677 | _ACEOF |
---|
| 8678 | |
---|
| 8679 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8680 | # If no file are specified by the user, then we need to provide default |
---|
| 8681 | # value. By we need to know if files were specified by the user. |
---|
| 8682 | ac_need_defaults=: |
---|
| 8683 | while test $# != 0 |
---|
| 8684 | do |
---|
| 8685 | case $1 in |
---|
| 8686 | --*=*) |
---|
| 8687 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 8688 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 8689 | ac_shift=: |
---|
| 8690 | ;; |
---|
| 8691 | -*) |
---|
| 8692 | ac_option=$1 |
---|
| 8693 | ac_optarg=$2 |
---|
| 8694 | ac_shift=shift |
---|
| 8695 | ;; |
---|
| 8696 | *) # This is not an option, so the user has probably given explicit |
---|
| 8697 | # arguments. |
---|
| 8698 | ac_option=$1 |
---|
| 8699 | ac_need_defaults=false;; |
---|
| 8700 | esac |
---|
| 8701 | |
---|
| 8702 | case $ac_option in |
---|
| 8703 | # Handling of the options. |
---|
| 8704 | _ACEOF |
---|
| 8705 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8706 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 8707 | ac_cs_recheck=: ;; |
---|
| 8708 | --version | --vers* | -V ) |
---|
| 8709 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 8710 | --he | --h) |
---|
| 8711 | # Conflict between --help and --header |
---|
| 8712 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 8713 | Try \`$0 --help' for more information." >&5 |
---|
| 8714 | echo "$as_me: error: ambiguous option: $1 |
---|
| 8715 | Try \`$0 --help' for more information." >&2;} |
---|
| 8716 | { (exit 1); exit 1; }; };; |
---|
| 8717 | --help | --hel | -h ) |
---|
| 8718 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 8719 | --debug | --d* | -d ) |
---|
| 8720 | debug=: ;; |
---|
| 8721 | --file | --fil | --fi | --f ) |
---|
| 8722 | $ac_shift |
---|
| 8723 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 8724 | ac_need_defaults=false;; |
---|
| 8725 | --header | --heade | --head | --hea ) |
---|
| 8726 | $ac_shift |
---|
| 8727 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 8728 | ac_need_defaults=false;; |
---|
| 8729 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 8730 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 8731 | ac_cs_silent=: ;; |
---|
| 8732 | |
---|
| 8733 | # This is an error. |
---|
| 8734 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 8735 | Try \`$0 --help' for more information." >&5 |
---|
| 8736 | echo "$as_me: error: unrecognized option: $1 |
---|
| 8737 | Try \`$0 --help' for more information." >&2;} |
---|
| 8738 | { (exit 1); exit 1; }; } ;; |
---|
| 8739 | |
---|
| 8740 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 8741 | |
---|
| 8742 | esac |
---|
| 8743 | shift |
---|
| 8744 | done |
---|
| 8745 | |
---|
| 8746 | ac_configure_extra_args= |
---|
| 8747 | |
---|
| 8748 | if $ac_cs_silent; then |
---|
| 8749 | exec 6>/dev/null |
---|
| 8750 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 8751 | fi |
---|
| 8752 | |
---|
| 8753 | _ACEOF |
---|
| 8754 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8755 | if \$ac_cs_recheck; then |
---|
| 8756 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 8757 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 8758 | fi |
---|
| 8759 | |
---|
| 8760 | _ACEOF |
---|
| 8761 | |
---|
| 8762 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8763 | # |
---|
| 8764 | # INIT-COMMANDS section. |
---|
| 8765 | # |
---|
| 8766 | |
---|
| 8767 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 8768 | |
---|
| 8769 | _ACEOF |
---|
| 8770 | |
---|
| 8771 | |
---|
| 8772 | |
---|
| 8773 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8774 | for ac_config_target in $ac_config_targets |
---|
| 8775 | do |
---|
| 8776 | case "$ac_config_target" in |
---|
| 8777 | # Handling of arguments. |
---|
| 8778 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 8779 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
[3561] | 8780 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
| 8781 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
| 8782 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
| 8783 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
| 8784 | "src/lib/gui/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/console/Makefile" ;; |
---|
| 8785 | "src/lib/gui/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gui/Makefile" ;; |
---|
[1956] | 8786 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 8787 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 8788 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 8789 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 8790 | { (exit 1); exit 1; }; };; |
---|
| 8791 | esac |
---|
| 8792 | done |
---|
| 8793 | |
---|
| 8794 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 8795 | # then the envvar interface is used. Set only those that are not. |
---|
| 8796 | # We use the long form for the default assignment because of an extremely |
---|
| 8797 | # bizarre bug on SunOS 4.1.3. |
---|
| 8798 | if $ac_need_defaults; then |
---|
| 8799 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 8800 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 8801 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 8802 | fi |
---|
| 8803 | |
---|
| 8804 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 8805 | # simply because there is no reason to put it here, and in addition, |
---|
| 8806 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 8807 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 8808 | $debug || |
---|
| 8809 | { |
---|
| 8810 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 8811 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 8812 | } |
---|
| 8813 | |
---|
| 8814 | # Create a (secure) tmp directory for tmp files. |
---|
| 8815 | |
---|
| 8816 | { |
---|
| 8817 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 8818 | test -n "$tmp" && test -d "$tmp" |
---|
| 8819 | } || |
---|
| 8820 | { |
---|
| 8821 | tmp=./confstat$$-$RANDOM |
---|
| 8822 | (umask 077 && mkdir $tmp) |
---|
| 8823 | } || |
---|
| 8824 | { |
---|
| 8825 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 8826 | { (exit 1); exit 1; } |
---|
| 8827 | } |
---|
| 8828 | |
---|
| 8829 | _ACEOF |
---|
| 8830 | |
---|
| 8831 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8832 | |
---|
| 8833 | # |
---|
| 8834 | # CONFIG_FILES section. |
---|
| 8835 | # |
---|
| 8836 | |
---|
| 8837 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 8838 | # This happens for instance when ./config.status config.h |
---|
| 8839 | if test -n "\$CONFIG_FILES"; then |
---|
| 8840 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 8841 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 8842 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 8843 | s,@SHELL@,$SHELL,;t t |
---|
| 8844 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 8845 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 8846 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 8847 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 8848 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 8849 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 8850 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 8851 | s,@prefix@,$prefix,;t t |
---|
| 8852 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 8853 | s,@bindir@,$bindir,;t t |
---|
| 8854 | s,@sbindir@,$sbindir,;t t |
---|
| 8855 | s,@libexecdir@,$libexecdir,;t t |
---|
| 8856 | s,@datadir@,$datadir,;t t |
---|
| 8857 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 8858 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 8859 | s,@localstatedir@,$localstatedir,;t t |
---|
| 8860 | s,@libdir@,$libdir,;t t |
---|
| 8861 | s,@includedir@,$includedir,;t t |
---|
| 8862 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 8863 | s,@infodir@,$infodir,;t t |
---|
| 8864 | s,@mandir@,$mandir,;t t |
---|
| 8865 | s,@build_alias@,$build_alias,;t t |
---|
| 8866 | s,@host_alias@,$host_alias,;t t |
---|
| 8867 | s,@target_alias@,$target_alias,;t t |
---|
| 8868 | s,@DEFS@,$DEFS,;t t |
---|
| 8869 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 8870 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 8871 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 8872 | s,@LIBS@,$LIBS,;t t |
---|
[2980] | 8873 | s,@build@,$build,;t t |
---|
| 8874 | s,@build_cpu@,$build_cpu,;t t |
---|
| 8875 | s,@build_vendor@,$build_vendor,;t t |
---|
| 8876 | s,@build_os@,$build_os,;t t |
---|
| 8877 | s,@host@,$host,;t t |
---|
| 8878 | s,@host_cpu@,$host_cpu,;t t |
---|
| 8879 | s,@host_vendor@,$host_vendor,;t t |
---|
| 8880 | s,@host_os@,$host_os,;t t |
---|
| 8881 | s,@target@,$target,;t t |
---|
| 8882 | s,@target_cpu@,$target_cpu,;t t |
---|
| 8883 | s,@target_vendor@,$target_vendor,;t t |
---|
| 8884 | s,@target_os@,$target_os,;t t |
---|
[1956] | 8885 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 8886 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 8887 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 8888 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 8889 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 8890 | s,@VERSION@,$VERSION,;t t |
---|
| 8891 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 8892 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 8893 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 8894 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 8895 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 8896 | s,@AMTAR@,$AMTAR,;t t |
---|
| 8897 | s,@install_sh@,$install_sh,;t t |
---|
| 8898 | s,@STRIP@,$STRIP,;t t |
---|
| 8899 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 8900 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
[2706] | 8901 | s,@mkdir_p@,$mkdir_p,;t t |
---|
[1956] | 8902 | s,@AWK@,$AWK,;t t |
---|
| 8903 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 8904 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
| 8905 | s,@CXX@,$CXX,;t t |
---|
| 8906 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 8907 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 8908 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 8909 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 8910 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 8911 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 8912 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 8913 | s,@am__include@,$am__include,;t t |
---|
| 8914 | s,@am__quote@,$am__quote,;t t |
---|
| 8915 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 8916 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 8917 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 8918 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 8919 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 8920 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
| 8921 | s,@CC@,$CC,;t t |
---|
| 8922 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 8923 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 8924 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 8925 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 8926 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 8927 | s,@CPP@,$CPP,;t t |
---|
| 8928 | s,@EGREP@,$EGREP,;t t |
---|
[3173] | 8929 | s,@DEBUG@,$DEBUG,;t t |
---|
[3561] | 8930 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
| 8931 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
[3219] | 8932 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
| 8933 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
| 8934 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
[2989] | 8935 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[3099] | 8936 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
[2980] | 8937 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
| 8938 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
| 8939 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
[3271] | 8940 | s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t |
---|
| 8941 | s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t |
---|
| 8942 | s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t |
---|
| 8943 | s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t |
---|
[3243] | 8944 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
| 8945 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
| 8946 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
| 8947 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
[1956] | 8948 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 8949 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 8950 | CEOF |
---|
| 8951 | |
---|
| 8952 | _ACEOF |
---|
| 8953 | |
---|
| 8954 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8955 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 8956 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 8957 | ac_max_sed_lines=48 |
---|
| 8958 | ac_sed_frag=1 # Number of current file. |
---|
| 8959 | ac_beg=1 # First line for current file. |
---|
| 8960 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 8961 | ac_more_lines=: |
---|
| 8962 | ac_sed_cmds= |
---|
| 8963 | while $ac_more_lines; do |
---|
| 8964 | if test $ac_beg -gt 1; then |
---|
| 8965 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 8966 | else |
---|
| 8967 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 8968 | fi |
---|
| 8969 | if test ! -s $tmp/subs.frag; then |
---|
| 8970 | ac_more_lines=false |
---|
| 8971 | else |
---|
| 8972 | # The purpose of the label and of the branching condition is to |
---|
| 8973 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 8974 | # is no need to browse any of the substitutions). |
---|
| 8975 | # These are the two extra sed commands mentioned above. |
---|
| 8976 | (echo ':t |
---|
| 8977 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 8978 | if test -z "$ac_sed_cmds"; then |
---|
| 8979 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 8980 | else |
---|
| 8981 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 8982 | fi |
---|
| 8983 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 8984 | ac_beg=$ac_end |
---|
| 8985 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 8986 | fi |
---|
| 8987 | done |
---|
| 8988 | if test -z "$ac_sed_cmds"; then |
---|
| 8989 | ac_sed_cmds=cat |
---|
| 8990 | fi |
---|
| 8991 | fi # test -n "$CONFIG_FILES" |
---|
| 8992 | |
---|
| 8993 | _ACEOF |
---|
| 8994 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8995 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 8996 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 8997 | case $ac_file in |
---|
| 8998 | - | *:- | *:-:* ) # input from stdin |
---|
| 8999 | cat >$tmp/stdin |
---|
| 9000 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9001 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9002 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9003 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9004 | * ) ac_file_in=$ac_file.in ;; |
---|
| 9005 | esac |
---|
| 9006 | |
---|
| 9007 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 9008 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 9009 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9010 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 9011 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 9012 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 9013 | . : '\(.\)' 2>/dev/null || |
---|
| 9014 | echo X"$ac_file" | |
---|
| 9015 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9016 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9017 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9018 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9019 | s/.*/./; q'` |
---|
| 9020 | { if $as_mkdir_p; then |
---|
| 9021 | mkdir -p "$ac_dir" |
---|
| 9022 | else |
---|
| 9023 | as_dir="$ac_dir" |
---|
| 9024 | as_dirs= |
---|
| 9025 | while test ! -d "$as_dir"; do |
---|
| 9026 | as_dirs="$as_dir $as_dirs" |
---|
| 9027 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9028 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9029 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9030 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9031 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9032 | . : '\(.\)' 2>/dev/null || |
---|
| 9033 | echo X"$as_dir" | |
---|
| 9034 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9035 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9036 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9037 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9038 | s/.*/./; q'` |
---|
| 9039 | done |
---|
| 9040 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9041 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9042 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9043 | { (exit 1); exit 1; }; }; } |
---|
| 9044 | |
---|
| 9045 | ac_builddir=. |
---|
| 9046 | |
---|
| 9047 | if test "$ac_dir" != .; then |
---|
| 9048 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 9049 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 9050 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 9051 | else |
---|
| 9052 | ac_dir_suffix= ac_top_builddir= |
---|
| 9053 | fi |
---|
| 9054 | |
---|
| 9055 | case $srcdir in |
---|
| 9056 | .) # No --srcdir option. We are building in place. |
---|
| 9057 | ac_srcdir=. |
---|
| 9058 | if test -z "$ac_top_builddir"; then |
---|
| 9059 | ac_top_srcdir=. |
---|
| 9060 | else |
---|
| 9061 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 9062 | fi ;; |
---|
| 9063 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 9064 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 9065 | ac_top_srcdir=$srcdir ;; |
---|
| 9066 | *) # Relative path. |
---|
| 9067 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 9068 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 9069 | esac |
---|
| 9070 | |
---|
| 9071 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 9072 | # the directories may not exist. |
---|
| 9073 | case `pwd` in |
---|
| 9074 | .) ac_abs_builddir="$ac_dir";; |
---|
| 9075 | *) |
---|
| 9076 | case "$ac_dir" in |
---|
| 9077 | .) ac_abs_builddir=`pwd`;; |
---|
| 9078 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 9079 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 9080 | esac;; |
---|
| 9081 | esac |
---|
| 9082 | case $ac_abs_builddir in |
---|
| 9083 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9084 | *) |
---|
| 9085 | case ${ac_top_builddir}. in |
---|
| 9086 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 9087 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9088 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 9089 | esac;; |
---|
| 9090 | esac |
---|
| 9091 | case $ac_abs_builddir in |
---|
| 9092 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9093 | *) |
---|
| 9094 | case $ac_srcdir in |
---|
| 9095 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 9096 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9097 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 9098 | esac;; |
---|
| 9099 | esac |
---|
| 9100 | case $ac_abs_builddir in |
---|
| 9101 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9102 | *) |
---|
| 9103 | case $ac_top_srcdir in |
---|
| 9104 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 9105 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9106 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 9107 | esac;; |
---|
| 9108 | esac |
---|
| 9109 | |
---|
| 9110 | |
---|
| 9111 | case $INSTALL in |
---|
| 9112 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 9113 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 9114 | esac |
---|
| 9115 | |
---|
| 9116 | if test x"$ac_file" != x-; then |
---|
| 9117 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9118 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9119 | rm -f "$ac_file" |
---|
| 9120 | fi |
---|
| 9121 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 9122 | # use $as_me), people would be surprised to read: |
---|
| 9123 | # /* config.h. Generated by config.status. */ |
---|
| 9124 | if test x"$ac_file" = x-; then |
---|
| 9125 | configure_input= |
---|
| 9126 | else |
---|
| 9127 | configure_input="$ac_file. " |
---|
| 9128 | fi |
---|
| 9129 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 9130 | sed 's,.*/,,'` by configure." |
---|
| 9131 | |
---|
| 9132 | # First look for the input files in the build tree, otherwise in the |
---|
| 9133 | # src tree. |
---|
| 9134 | ac_file_inputs=`IFS=: |
---|
| 9135 | for f in $ac_file_in; do |
---|
| 9136 | case $f in |
---|
| 9137 | -) echo $tmp/stdin ;; |
---|
| 9138 | [\\/$]*) |
---|
| 9139 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9140 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9141 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9142 | { (exit 1); exit 1; }; } |
---|
| 9143 | echo "$f";; |
---|
| 9144 | *) # Relative |
---|
| 9145 | if test -f "$f"; then |
---|
| 9146 | # Build tree |
---|
| 9147 | echo "$f" |
---|
| 9148 | elif test -f "$srcdir/$f"; then |
---|
| 9149 | # Source tree |
---|
| 9150 | echo "$srcdir/$f" |
---|
| 9151 | else |
---|
| 9152 | # /dev/null tree |
---|
| 9153 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9154 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9155 | { (exit 1); exit 1; }; } |
---|
| 9156 | fi;; |
---|
| 9157 | esac |
---|
| 9158 | done` || { (exit 1); exit 1; } |
---|
| 9159 | _ACEOF |
---|
| 9160 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9161 | sed "$ac_vpsub |
---|
| 9162 | $extrasub |
---|
| 9163 | _ACEOF |
---|
| 9164 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9165 | :t |
---|
| 9166 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 9167 | s,@configure_input@,$configure_input,;t t |
---|
| 9168 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 9169 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 9170 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 9171 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 9172 | s,@builddir@,$ac_builddir,;t t |
---|
| 9173 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 9174 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 9175 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 9176 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 9177 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 9178 | rm -f $tmp/stdin |
---|
| 9179 | if test x"$ac_file" != x-; then |
---|
| 9180 | mv $tmp/out $ac_file |
---|
| 9181 | else |
---|
| 9182 | cat $tmp/out |
---|
| 9183 | rm -f $tmp/out |
---|
| 9184 | fi |
---|
| 9185 | |
---|
| 9186 | done |
---|
| 9187 | _ACEOF |
---|
| 9188 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9189 | |
---|
| 9190 | # |
---|
| 9191 | # CONFIG_HEADER section. |
---|
| 9192 | # |
---|
| 9193 | |
---|
| 9194 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 9195 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 9196 | # |
---|
| 9197 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 9198 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 9199 | ac_dB='[ ].*$,\1#\2' |
---|
| 9200 | ac_dC=' ' |
---|
| 9201 | ac_dD=',;t' |
---|
| 9202 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 9203 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 9204 | ac_uB='$,\1#\2define\3' |
---|
| 9205 | ac_uC=' ' |
---|
| 9206 | ac_uD=',;t' |
---|
| 9207 | |
---|
| 9208 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 9209 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 9210 | case $ac_file in |
---|
| 9211 | - | *:- | *:-:* ) # input from stdin |
---|
| 9212 | cat >$tmp/stdin |
---|
| 9213 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9214 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9215 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9216 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9217 | * ) ac_file_in=$ac_file.in ;; |
---|
| 9218 | esac |
---|
| 9219 | |
---|
| 9220 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9221 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9222 | |
---|
| 9223 | # First look for the input files in the build tree, otherwise in the |
---|
| 9224 | # src tree. |
---|
| 9225 | ac_file_inputs=`IFS=: |
---|
| 9226 | for f in $ac_file_in; do |
---|
| 9227 | case $f in |
---|
| 9228 | -) echo $tmp/stdin ;; |
---|
| 9229 | [\\/$]*) |
---|
| 9230 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9231 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9232 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9233 | { (exit 1); exit 1; }; } |
---|
| 9234 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 9235 | echo "$f";; |
---|
| 9236 | *) # Relative |
---|
| 9237 | if test -f "$f"; then |
---|
| 9238 | # Build tree |
---|
| 9239 | echo "$f" |
---|
| 9240 | elif test -f "$srcdir/$f"; then |
---|
| 9241 | # Source tree |
---|
| 9242 | echo "$srcdir/$f" |
---|
| 9243 | else |
---|
| 9244 | # /dev/null tree |
---|
| 9245 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9246 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9247 | { (exit 1); exit 1; }; } |
---|
| 9248 | fi;; |
---|
| 9249 | esac |
---|
| 9250 | done` || { (exit 1); exit 1; } |
---|
| 9251 | # Remove the trailing spaces. |
---|
| 9252 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 9253 | |
---|
| 9254 | _ACEOF |
---|
| 9255 | |
---|
| 9256 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 9257 | # `conftest.undefs', that substitutes the proper values into |
---|
| 9258 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 9259 | # templates, and the second `#undef' templates. |
---|
| 9260 | # And first: Protect against being on the right side of a sed subst in |
---|
| 9261 | # config.status. Protect against being in an unquoted here document |
---|
| 9262 | # in config.status. |
---|
| 9263 | rm -f conftest.defines conftest.undefs |
---|
| 9264 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 9265 | # Putting comments in sed scripts is not portable. |
---|
| 9266 | # |
---|
| 9267 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 9268 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 9269 | # See the Autoconf documentation for `clear'. |
---|
| 9270 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 9271 | s/[\\&,]/\\&/g |
---|
| 9272 | s,[\\$`],\\&,g |
---|
| 9273 | t clear |
---|
| 9274 | : clear |
---|
| 9275 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 9276 | t end |
---|
| 9277 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 9278 | : end |
---|
| 9279 | _ACEOF |
---|
| 9280 | # If some macros were called several times there might be several times |
---|
| 9281 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 9282 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 9283 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 9284 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 9285 | rm -f confdef2sed.sed |
---|
| 9286 | |
---|
| 9287 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 9288 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 9289 | # on some systems where configure will not decide to define it. |
---|
| 9290 | cat >>conftest.undefs <<\_ACEOF |
---|
| 9291 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 9292 | _ACEOF |
---|
| 9293 | |
---|
| 9294 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 9295 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 9296 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 9297 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 9298 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 9299 | echo ' :' >>$CONFIG_STATUS |
---|
| 9300 | rm -f conftest.tail |
---|
| 9301 | while grep . conftest.defines >/dev/null |
---|
| 9302 | do |
---|
| 9303 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 9304 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 9305 | # Speed up: don't consider the non `#define' lines. |
---|
| 9306 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 9307 | # Work around the forget-to-reset-the-flag bug. |
---|
| 9308 | echo 't clr' >>$CONFIG_STATUS |
---|
| 9309 | echo ': clr' >>$CONFIG_STATUS |
---|
| 9310 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 9311 | echo 'CEOF |
---|
| 9312 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 9313 | rm -f $tmp/in |
---|
| 9314 | mv $tmp/out $tmp/in |
---|
| 9315 | ' >>$CONFIG_STATUS |
---|
| 9316 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 9317 | rm -f conftest.defines |
---|
| 9318 | mv conftest.tail conftest.defines |
---|
| 9319 | done |
---|
| 9320 | rm -f conftest.defines |
---|
| 9321 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 9322 | echo >>$CONFIG_STATUS |
---|
| 9323 | |
---|
| 9324 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 9325 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 9326 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 9327 | rm -f conftest.tail |
---|
| 9328 | while grep . conftest.undefs >/dev/null |
---|
| 9329 | do |
---|
| 9330 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 9331 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 9332 | # Speed up: don't consider the non `#undef' |
---|
| 9333 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 9334 | # Work around the forget-to-reset-the-flag bug. |
---|
| 9335 | echo 't clr' >>$CONFIG_STATUS |
---|
| 9336 | echo ': clr' >>$CONFIG_STATUS |
---|
| 9337 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 9338 | echo 'CEOF |
---|
| 9339 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 9340 | rm -f $tmp/in |
---|
| 9341 | mv $tmp/out $tmp/in |
---|
| 9342 | ' >>$CONFIG_STATUS |
---|
| 9343 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 9344 | rm -f conftest.undefs |
---|
| 9345 | mv conftest.tail conftest.undefs |
---|
| 9346 | done |
---|
| 9347 | rm -f conftest.undefs |
---|
| 9348 | |
---|
| 9349 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9350 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 9351 | # use $as_me), people would be surprised to read: |
---|
| 9352 | # /* config.h. Generated by config.status. */ |
---|
| 9353 | if test x"$ac_file" = x-; then |
---|
| 9354 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 9355 | else |
---|
| 9356 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 9357 | fi |
---|
| 9358 | cat $tmp/in >>$tmp/config.h |
---|
| 9359 | rm -f $tmp/in |
---|
| 9360 | if test x"$ac_file" != x-; then |
---|
| 9361 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 9362 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 9363 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 9364 | else |
---|
| 9365 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 9366 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9367 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 9368 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 9369 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 9370 | . : '\(.\)' 2>/dev/null || |
---|
| 9371 | echo X"$ac_file" | |
---|
| 9372 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9373 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9374 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9375 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9376 | s/.*/./; q'` |
---|
| 9377 | { if $as_mkdir_p; then |
---|
| 9378 | mkdir -p "$ac_dir" |
---|
| 9379 | else |
---|
| 9380 | as_dir="$ac_dir" |
---|
| 9381 | as_dirs= |
---|
| 9382 | while test ! -d "$as_dir"; do |
---|
| 9383 | as_dirs="$as_dir $as_dirs" |
---|
| 9384 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9385 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9386 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9387 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9388 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9389 | . : '\(.\)' 2>/dev/null || |
---|
| 9390 | echo X"$as_dir" | |
---|
| 9391 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9392 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9393 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9394 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9395 | s/.*/./; q'` |
---|
| 9396 | done |
---|
| 9397 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9398 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9399 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9400 | { (exit 1); exit 1; }; }; } |
---|
| 9401 | |
---|
| 9402 | rm -f $ac_file |
---|
| 9403 | mv $tmp/config.h $ac_file |
---|
| 9404 | fi |
---|
| 9405 | else |
---|
| 9406 | cat $tmp/config.h |
---|
| 9407 | rm -f $tmp/config.h |
---|
| 9408 | fi |
---|
| 9409 | # Compute $ac_file's index in $config_headers. |
---|
| 9410 | _am_stamp_count=1 |
---|
| 9411 | for _am_header in $config_headers :; do |
---|
| 9412 | case $_am_header in |
---|
| 9413 | $ac_file | $ac_file:* ) |
---|
| 9414 | break ;; |
---|
| 9415 | * ) |
---|
| 9416 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 9417 | esac |
---|
| 9418 | done |
---|
| 9419 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 9420 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9421 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 9422 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 9423 | X$ac_file : 'X\(/\)' \| \ |
---|
| 9424 | . : '\(.\)' 2>/dev/null || |
---|
| 9425 | echo X$ac_file | |
---|
| 9426 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9427 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9428 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9429 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9430 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 9431 | done |
---|
| 9432 | _ACEOF |
---|
| 9433 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9434 | |
---|
| 9435 | # |
---|
| 9436 | # CONFIG_COMMANDS section. |
---|
| 9437 | # |
---|
| 9438 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 9439 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 9440 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9441 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 9442 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9443 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 9444 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 9445 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 9446 | . : '\(.\)' 2>/dev/null || |
---|
| 9447 | echo X"$ac_dest" | |
---|
| 9448 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9449 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9450 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9451 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9452 | s/.*/./; q'` |
---|
| 9453 | { if $as_mkdir_p; then |
---|
| 9454 | mkdir -p "$ac_dir" |
---|
| 9455 | else |
---|
| 9456 | as_dir="$ac_dir" |
---|
| 9457 | as_dirs= |
---|
| 9458 | while test ! -d "$as_dir"; do |
---|
| 9459 | as_dirs="$as_dir $as_dirs" |
---|
| 9460 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9461 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9462 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9463 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9464 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9465 | . : '\(.\)' 2>/dev/null || |
---|
| 9466 | echo X"$as_dir" | |
---|
| 9467 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9468 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9469 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9470 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9471 | s/.*/./; q'` |
---|
| 9472 | done |
---|
| 9473 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9474 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9475 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9476 | { (exit 1); exit 1; }; }; } |
---|
| 9477 | |
---|
| 9478 | ac_builddir=. |
---|
| 9479 | |
---|
| 9480 | if test "$ac_dir" != .; then |
---|
| 9481 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 9482 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 9483 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 9484 | else |
---|
| 9485 | ac_dir_suffix= ac_top_builddir= |
---|
| 9486 | fi |
---|
| 9487 | |
---|
| 9488 | case $srcdir in |
---|
| 9489 | .) # No --srcdir option. We are building in place. |
---|
| 9490 | ac_srcdir=. |
---|
| 9491 | if test -z "$ac_top_builddir"; then |
---|
| 9492 | ac_top_srcdir=. |
---|
| 9493 | else |
---|
| 9494 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 9495 | fi ;; |
---|
| 9496 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 9497 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 9498 | ac_top_srcdir=$srcdir ;; |
---|
| 9499 | *) # Relative path. |
---|
| 9500 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 9501 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 9502 | esac |
---|
| 9503 | |
---|
| 9504 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 9505 | # the directories may not exist. |
---|
| 9506 | case `pwd` in |
---|
| 9507 | .) ac_abs_builddir="$ac_dir";; |
---|
| 9508 | *) |
---|
| 9509 | case "$ac_dir" in |
---|
| 9510 | .) ac_abs_builddir=`pwd`;; |
---|
| 9511 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 9512 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 9513 | esac;; |
---|
| 9514 | esac |
---|
| 9515 | case $ac_abs_builddir in |
---|
| 9516 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9517 | *) |
---|
| 9518 | case ${ac_top_builddir}. in |
---|
| 9519 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 9520 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9521 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 9522 | esac;; |
---|
| 9523 | esac |
---|
| 9524 | case $ac_abs_builddir in |
---|
| 9525 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9526 | *) |
---|
| 9527 | case $ac_srcdir in |
---|
| 9528 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 9529 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9530 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 9531 | esac;; |
---|
| 9532 | esac |
---|
| 9533 | case $ac_abs_builddir in |
---|
| 9534 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9535 | *) |
---|
| 9536 | case $ac_top_srcdir in |
---|
| 9537 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 9538 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9539 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 9540 | esac;; |
---|
| 9541 | esac |
---|
| 9542 | |
---|
| 9543 | |
---|
| 9544 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 9545 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 9546 | case $ac_dest in |
---|
| 9547 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 9548 | # Strip MF so we end up with the name of the file. |
---|
| 9549 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 9550 | # Check whether this is an Automake generated Makefile or not. |
---|
| 9551 | # We used to match only the files named `Makefile.in', but |
---|
| 9552 | # some people rename them; so instead we look at the file content. |
---|
| 9553 | # Grep'ing the first line is not enough: some people post-process |
---|
| 9554 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 9555 | # So let's grep whole file. |
---|
| 9556 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 9557 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 9558 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9559 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 9560 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 9561 | X"$mf" : 'X\(/\)' \| \ |
---|
| 9562 | . : '\(.\)' 2>/dev/null || |
---|
| 9563 | echo X"$mf" | |
---|
| 9564 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9565 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9566 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9567 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9568 | s/.*/./; q'` |
---|
| 9569 | else |
---|
| 9570 | continue |
---|
| 9571 | fi |
---|
| 9572 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 9573 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 9574 | # running `make'. |
---|
[2819] | 9575 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
[1956] | 9576 | test -z "$DEPDIR" && continue |
---|
| 9577 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
[2819] | 9578 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
[1956] | 9579 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 9580 | # We invoke sed twice because it is the simplest approach to |
---|
| 9581 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
[2819] | 9582 | for file in `sed -n ' |
---|
[1956] | 9583 | /^DEP_FILES = .*\\\\$/ { |
---|
| 9584 | s/^DEP_FILES = // |
---|
| 9585 | :loop |
---|
| 9586 | s/\\\\$// |
---|
| 9587 | p |
---|
| 9588 | n |
---|
| 9589 | /\\\\$/ b loop |
---|
| 9590 | p |
---|
| 9591 | } |
---|
| 9592 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 9593 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 9594 | # Make sure the directory exists. |
---|
| 9595 | test -f "$dirpart/$file" && continue |
---|
| 9596 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 9597 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9598 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 9599 | X"$file" : 'X\(//\)$' \| \ |
---|
| 9600 | X"$file" : 'X\(/\)' \| \ |
---|
| 9601 | . : '\(.\)' 2>/dev/null || |
---|
| 9602 | echo X"$file" | |
---|
| 9603 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9604 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9605 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9606 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9607 | s/.*/./; q'` |
---|
| 9608 | { if $as_mkdir_p; then |
---|
| 9609 | mkdir -p $dirpart/$fdir |
---|
| 9610 | else |
---|
| 9611 | as_dir=$dirpart/$fdir |
---|
| 9612 | as_dirs= |
---|
| 9613 | while test ! -d "$as_dir"; do |
---|
| 9614 | as_dirs="$as_dir $as_dirs" |
---|
| 9615 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9616 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9617 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9618 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9619 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9620 | . : '\(.\)' 2>/dev/null || |
---|
| 9621 | echo X"$as_dir" | |
---|
| 9622 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9623 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9624 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9625 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9626 | s/.*/./; q'` |
---|
| 9627 | done |
---|
| 9628 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9629 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 9630 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 9631 | { (exit 1); exit 1; }; }; } |
---|
| 9632 | |
---|
| 9633 | # echo "creating $dirpart/$file" |
---|
| 9634 | echo '# dummy' > "$dirpart/$file" |
---|
| 9635 | done |
---|
| 9636 | done |
---|
| 9637 | ;; |
---|
| 9638 | esac |
---|
| 9639 | done |
---|
| 9640 | _ACEOF |
---|
| 9641 | |
---|
| 9642 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9643 | |
---|
| 9644 | { (exit 0); exit 0; } |
---|
| 9645 | _ACEOF |
---|
| 9646 | chmod +x $CONFIG_STATUS |
---|
| 9647 | ac_clean_files=$ac_clean_files_save |
---|
| 9648 | |
---|
| 9649 | |
---|
| 9650 | # configure is writing to config.log, and then calls config.status. |
---|
| 9651 | # config.status does its own redirection, appending to config.log. |
---|
| 9652 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 9653 | # by configure, so config.status won't be able to write to it; its |
---|
| 9654 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 9655 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 9656 | # appended to by config.status. When coming back to configure, we |
---|
| 9657 | # need to make the FD available again. |
---|
| 9658 | if test "$no_create" != yes; then |
---|
| 9659 | ac_cs_success=: |
---|
| 9660 | ac_config_status_args= |
---|
| 9661 | test "$silent" = yes && |
---|
| 9662 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 9663 | exec 5>/dev/null |
---|
| 9664 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 9665 | exec 5>>config.log |
---|
| 9666 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 9667 | # would make configure fail if this is the last instruction. |
---|
| 9668 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 9669 | fi |
---|
| 9670 | |
---|