[1956] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[3605] | 3 | # Generated by GNU Autoconf 2.59 for orxonox 0.2.2-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' |
---|
[3605] | 272 | PACKAGE_VERSION='0.2.2-pre-alpha' |
---|
| 273 | PACKAGE_STRING='orxonox 0.2.2-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 | |
---|
[3605] | 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 DOCUMENTATION_TRUE DOCUMENTATION_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 |
---|
[3605] | 791 | \`configure' configures orxonox 0.2.2-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 |
---|
[3605] | 858 | short | recursive ) echo "Configuration of orxonox 0.2.2-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. |
---|
[3605] | 869 | --disable-modular-debug compiles in modular-debug mode, that logs |
---|
| 870 | differently on the many modules of orxonox. |
---|
[3499] | 871 | --enable-sub-projects also builds the subProjects while make from srcdir |
---|
[3605] | 872 | --enable-documentation also builds the sDocumentation while make from |
---|
| 873 | srcdir |
---|
[1956] | 874 | |
---|
[3173] | 875 | Optional Packages: |
---|
| 876 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 877 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
[3181] | 878 | --without-gtk Prevents GTK from being loaded |
---|
[3499] | 879 | --without-gthread Prevents gThread from being loaded |
---|
| 880 | --without-pthread Prevents pthread from being loaded |
---|
| 881 | --without-curl Prevents libcURL from being loaded |
---|
[3181] | 882 | --without-sdl-image Prevents SDL_image from being loaded |
---|
[3173] | 883 | |
---|
[1956] | 884 | Some influential environment variables: |
---|
| 885 | CXX C++ compiler command |
---|
| 886 | CXXFLAGS C++ compiler flags |
---|
| 887 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 888 | nonstandard directory <lib dir> |
---|
| 889 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 890 | headers in a nonstandard directory <include dir> |
---|
| 891 | CC C compiler command |
---|
| 892 | CFLAGS C compiler flags |
---|
| 893 | CPP C preprocessor |
---|
| 894 | |
---|
| 895 | Use these variables to override the choices made by `configure' or to help |
---|
| 896 | it to find libraries and programs with nonstandard names/locations. |
---|
| 897 | |
---|
[3240] | 898 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
[1956] | 899 | _ACEOF |
---|
| 900 | fi |
---|
| 901 | |
---|
| 902 | if test "$ac_init_help" = "recursive"; then |
---|
| 903 | # If there are subdirs, report their specific --help. |
---|
| 904 | ac_popdir=`pwd` |
---|
| 905 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 906 | test -d $ac_dir || continue |
---|
| 907 | ac_builddir=. |
---|
| 908 | |
---|
| 909 | if test "$ac_dir" != .; then |
---|
| 910 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 911 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 912 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 913 | else |
---|
| 914 | ac_dir_suffix= ac_top_builddir= |
---|
| 915 | fi |
---|
| 916 | |
---|
| 917 | case $srcdir in |
---|
| 918 | .) # No --srcdir option. We are building in place. |
---|
| 919 | ac_srcdir=. |
---|
| 920 | if test -z "$ac_top_builddir"; then |
---|
| 921 | ac_top_srcdir=. |
---|
| 922 | else |
---|
| 923 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 924 | fi ;; |
---|
| 925 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 926 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 927 | ac_top_srcdir=$srcdir ;; |
---|
| 928 | *) # Relative path. |
---|
| 929 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 930 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 931 | esac |
---|
| 932 | |
---|
| 933 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 934 | # the directories may not exist. |
---|
| 935 | case `pwd` in |
---|
| 936 | .) ac_abs_builddir="$ac_dir";; |
---|
| 937 | *) |
---|
| 938 | case "$ac_dir" in |
---|
| 939 | .) ac_abs_builddir=`pwd`;; |
---|
| 940 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 941 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 942 | esac;; |
---|
| 943 | esac |
---|
| 944 | case $ac_abs_builddir in |
---|
| 945 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 946 | *) |
---|
| 947 | case ${ac_top_builddir}. in |
---|
| 948 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 949 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 950 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 951 | esac;; |
---|
| 952 | esac |
---|
| 953 | case $ac_abs_builddir in |
---|
| 954 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 955 | *) |
---|
| 956 | case $ac_srcdir in |
---|
| 957 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 958 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 959 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 960 | esac;; |
---|
| 961 | esac |
---|
| 962 | case $ac_abs_builddir in |
---|
| 963 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 964 | *) |
---|
| 965 | case $ac_top_srcdir in |
---|
| 966 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 967 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 968 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 969 | esac;; |
---|
| 970 | esac |
---|
| 971 | |
---|
| 972 | cd $ac_dir |
---|
| 973 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 974 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 975 | echo |
---|
| 976 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 977 | elif test -f $ac_srcdir/configure; then |
---|
| 978 | echo |
---|
| 979 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 980 | elif test -f $ac_srcdir/configure.ac || |
---|
| 981 | test -f $ac_srcdir/configure.in; then |
---|
| 982 | echo |
---|
| 983 | $ac_configure --help |
---|
| 984 | else |
---|
| 985 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 986 | fi |
---|
| 987 | cd $ac_popdir |
---|
| 988 | done |
---|
| 989 | fi |
---|
| 990 | |
---|
| 991 | test -n "$ac_init_help" && exit 0 |
---|
| 992 | if $ac_init_version; then |
---|
| 993 | cat <<\_ACEOF |
---|
[3605] | 994 | orxonox configure 0.2.2-pre-alpha |
---|
[1956] | 995 | generated by GNU Autoconf 2.59 |
---|
| 996 | |
---|
| 997 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 998 | This configure script is free software; the Free Software Foundation |
---|
| 999 | gives unlimited permission to copy, distribute and modify it. |
---|
| 1000 | _ACEOF |
---|
| 1001 | exit 0 |
---|
| 1002 | fi |
---|
| 1003 | exec 5>config.log |
---|
| 1004 | cat >&5 <<_ACEOF |
---|
| 1005 | This file contains any messages produced by compilers while |
---|
| 1006 | running configure, to aid debugging if configure makes a mistake. |
---|
| 1007 | |
---|
[3605] | 1008 | It was created by orxonox $as_me 0.2.2-pre-alpha, which was |
---|
[1956] | 1009 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 1010 | |
---|
| 1011 | $ $0 $@ |
---|
| 1012 | |
---|
| 1013 | _ACEOF |
---|
| 1014 | { |
---|
| 1015 | cat <<_ASUNAME |
---|
| 1016 | ## --------- ## |
---|
| 1017 | ## Platform. ## |
---|
| 1018 | ## --------- ## |
---|
| 1019 | |
---|
| 1020 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1021 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1022 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1023 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1024 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1025 | |
---|
| 1026 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1027 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1028 | |
---|
| 1029 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1030 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1031 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1032 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1033 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1034 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1035 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1036 | |
---|
| 1037 | _ASUNAME |
---|
| 1038 | |
---|
| 1039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1040 | for as_dir in $PATH |
---|
| 1041 | do |
---|
| 1042 | IFS=$as_save_IFS |
---|
| 1043 | test -z "$as_dir" && as_dir=. |
---|
| 1044 | echo "PATH: $as_dir" |
---|
| 1045 | done |
---|
| 1046 | |
---|
| 1047 | } >&5 |
---|
| 1048 | |
---|
| 1049 | cat >&5 <<_ACEOF |
---|
| 1050 | |
---|
| 1051 | |
---|
| 1052 | ## ----------- ## |
---|
| 1053 | ## Core tests. ## |
---|
| 1054 | ## ----------- ## |
---|
| 1055 | |
---|
| 1056 | _ACEOF |
---|
| 1057 | |
---|
| 1058 | |
---|
| 1059 | # Keep a trace of the command line. |
---|
| 1060 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1061 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1062 | # Also quote any args containing shell meta-characters. |
---|
| 1063 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1064 | ac_configure_args= |
---|
| 1065 | ac_configure_args0= |
---|
| 1066 | ac_configure_args1= |
---|
| 1067 | ac_sep= |
---|
| 1068 | ac_must_keep_next=false |
---|
| 1069 | for ac_pass in 1 2 |
---|
| 1070 | do |
---|
| 1071 | for ac_arg |
---|
| 1072 | do |
---|
| 1073 | case $ac_arg in |
---|
| 1074 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1075 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1076 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1077 | continue ;; |
---|
| 1078 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1079 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1080 | esac |
---|
| 1081 | case $ac_pass in |
---|
| 1082 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1083 | 2) |
---|
| 1084 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1085 | if test $ac_must_keep_next = true; then |
---|
| 1086 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1087 | else |
---|
| 1088 | case $ac_arg in |
---|
| 1089 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1090 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1091 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1092 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1093 | case "$ac_configure_args0 " in |
---|
| 1094 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1095 | esac |
---|
| 1096 | ;; |
---|
| 1097 | -* ) ac_must_keep_next=true ;; |
---|
| 1098 | esac |
---|
| 1099 | fi |
---|
| 1100 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1101 | # Get rid of the leading space. |
---|
| 1102 | ac_sep=" " |
---|
| 1103 | ;; |
---|
| 1104 | esac |
---|
| 1105 | done |
---|
| 1106 | done |
---|
| 1107 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1108 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1109 | |
---|
| 1110 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1111 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1112 | # would cause problems or look ugly. |
---|
| 1113 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1114 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1115 | trap 'exit_status=$? |
---|
| 1116 | # Save into config.log some information that might help in debugging. |
---|
| 1117 | { |
---|
| 1118 | echo |
---|
| 1119 | |
---|
| 1120 | cat <<\_ASBOX |
---|
| 1121 | ## ---------------- ## |
---|
| 1122 | ## Cache variables. ## |
---|
| 1123 | ## ---------------- ## |
---|
| 1124 | _ASBOX |
---|
| 1125 | echo |
---|
| 1126 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1127 | { |
---|
| 1128 | (set) 2>&1 | |
---|
| 1129 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1130 | *ac_space=\ *) |
---|
| 1131 | sed -n \ |
---|
| 1132 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1133 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1134 | ;; |
---|
| 1135 | *) |
---|
| 1136 | sed -n \ |
---|
| 1137 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1138 | ;; |
---|
| 1139 | esac; |
---|
| 1140 | } |
---|
| 1141 | echo |
---|
| 1142 | |
---|
| 1143 | cat <<\_ASBOX |
---|
| 1144 | ## ----------------- ## |
---|
| 1145 | ## Output variables. ## |
---|
| 1146 | ## ----------------- ## |
---|
| 1147 | _ASBOX |
---|
| 1148 | echo |
---|
| 1149 | for ac_var in $ac_subst_vars |
---|
| 1150 | do |
---|
| 1151 | eval ac_val=$`echo $ac_var` |
---|
| 1152 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1153 | done | sort |
---|
| 1154 | echo |
---|
| 1155 | |
---|
| 1156 | if test -n "$ac_subst_files"; then |
---|
| 1157 | cat <<\_ASBOX |
---|
| 1158 | ## ------------- ## |
---|
| 1159 | ## Output files. ## |
---|
| 1160 | ## ------------- ## |
---|
| 1161 | _ASBOX |
---|
| 1162 | echo |
---|
| 1163 | for ac_var in $ac_subst_files |
---|
| 1164 | do |
---|
| 1165 | eval ac_val=$`echo $ac_var` |
---|
| 1166 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1167 | done | sort |
---|
| 1168 | echo |
---|
| 1169 | fi |
---|
| 1170 | |
---|
| 1171 | if test -s confdefs.h; then |
---|
| 1172 | cat <<\_ASBOX |
---|
| 1173 | ## ----------- ## |
---|
| 1174 | ## confdefs.h. ## |
---|
| 1175 | ## ----------- ## |
---|
| 1176 | _ASBOX |
---|
| 1177 | echo |
---|
| 1178 | sed "/^$/d" confdefs.h | sort |
---|
| 1179 | echo |
---|
| 1180 | fi |
---|
| 1181 | test "$ac_signal" != 0 && |
---|
| 1182 | echo "$as_me: caught signal $ac_signal" |
---|
| 1183 | echo "$as_me: exit $exit_status" |
---|
| 1184 | } >&5 |
---|
| 1185 | rm -f core *.core && |
---|
| 1186 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1187 | exit $exit_status |
---|
| 1188 | ' 0 |
---|
| 1189 | for ac_signal in 1 2 13 15; do |
---|
| 1190 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1191 | done |
---|
| 1192 | ac_signal=0 |
---|
| 1193 | |
---|
| 1194 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1195 | rm -rf conftest* confdefs.h |
---|
| 1196 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1197 | echo >confdefs.h |
---|
| 1198 | |
---|
| 1199 | # Predefined preprocessor variables. |
---|
| 1200 | |
---|
| 1201 | cat >>confdefs.h <<_ACEOF |
---|
| 1202 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1203 | _ACEOF |
---|
| 1204 | |
---|
| 1205 | |
---|
| 1206 | cat >>confdefs.h <<_ACEOF |
---|
| 1207 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1208 | _ACEOF |
---|
| 1209 | |
---|
| 1210 | |
---|
| 1211 | cat >>confdefs.h <<_ACEOF |
---|
| 1212 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1213 | _ACEOF |
---|
| 1214 | |
---|
| 1215 | |
---|
| 1216 | cat >>confdefs.h <<_ACEOF |
---|
| 1217 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1218 | _ACEOF |
---|
| 1219 | |
---|
| 1220 | |
---|
| 1221 | cat >>confdefs.h <<_ACEOF |
---|
| 1222 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1223 | _ACEOF |
---|
| 1224 | |
---|
| 1225 | |
---|
| 1226 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1227 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1228 | if test -z "$CONFIG_SITE"; then |
---|
| 1229 | if test "x$prefix" != xNONE; then |
---|
| 1230 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1231 | else |
---|
| 1232 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1233 | fi |
---|
| 1234 | fi |
---|
| 1235 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1236 | if test -r "$ac_site_file"; then |
---|
| 1237 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1238 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1239 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1240 | . "$ac_site_file" |
---|
| 1241 | fi |
---|
| 1242 | done |
---|
| 1243 | |
---|
| 1244 | if test -r "$cache_file"; then |
---|
| 1245 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1246 | # files actually), so we avoid doing that. |
---|
| 1247 | if test -f "$cache_file"; then |
---|
| 1248 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1249 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1250 | case $cache_file in |
---|
| 1251 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1252 | *) . ./$cache_file;; |
---|
| 1253 | esac |
---|
| 1254 | fi |
---|
| 1255 | else |
---|
| 1256 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1257 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1258 | >$cache_file |
---|
| 1259 | fi |
---|
| 1260 | |
---|
| 1261 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1262 | # value. |
---|
| 1263 | ac_cache_corrupted=false |
---|
| 1264 | for ac_var in `(set) 2>&1 | |
---|
| 1265 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1266 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1267 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1268 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1269 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1270 | case $ac_old_set,$ac_new_set in |
---|
| 1271 | set,) |
---|
| 1272 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1273 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1274 | ac_cache_corrupted=: ;; |
---|
| 1275 | ,set) |
---|
| 1276 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1277 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1278 | ac_cache_corrupted=: ;; |
---|
| 1279 | ,);; |
---|
| 1280 | *) |
---|
| 1281 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1282 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1283 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1284 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1285 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1286 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1287 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1288 | ac_cache_corrupted=: |
---|
| 1289 | fi;; |
---|
| 1290 | esac |
---|
| 1291 | # Pass precious variables to config.status. |
---|
| 1292 | if test "$ac_new_set" = set; then |
---|
| 1293 | case $ac_new_val in |
---|
| 1294 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1295 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1296 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1297 | esac |
---|
| 1298 | case " $ac_configure_args " in |
---|
| 1299 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1300 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1301 | esac |
---|
| 1302 | fi |
---|
| 1303 | done |
---|
| 1304 | if $ac_cache_corrupted; then |
---|
| 1305 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1306 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1307 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1308 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1309 | { (exit 1); exit 1; }; } |
---|
| 1310 | fi |
---|
| 1311 | |
---|
| 1312 | ac_ext=c |
---|
| 1313 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1317 | |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | |
---|
| 1322 | |
---|
| 1323 | |
---|
| 1324 | |
---|
| 1325 | |
---|
| 1326 | |
---|
| 1327 | |
---|
| 1328 | |
---|
| 1329 | |
---|
| 1330 | |
---|
| 1331 | |
---|
| 1332 | |
---|
| 1333 | |
---|
| 1334 | |
---|
| 1335 | |
---|
| 1336 | |
---|
| 1337 | |
---|
| 1338 | |
---|
| 1339 | |
---|
| 1340 | |
---|
| 1341 | |
---|
| 1342 | |
---|
| 1343 | |
---|
[2980] | 1344 | |
---|
[3499] | 1345 | ## Detect the canonical host and target build environment. |
---|
[1956] | 1346 | ac_aux_dir= |
---|
| 1347 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 1348 | if 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/install.sh; then |
---|
| 1353 | ac_aux_dir=$ac_dir |
---|
| 1354 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1355 | break |
---|
| 1356 | elif test -f $ac_dir/shtool; then |
---|
| 1357 | ac_aux_dir=$ac_dir |
---|
| 1358 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1359 | break |
---|
| 1360 | fi |
---|
| 1361 | done |
---|
| 1362 | if test -z "$ac_aux_dir"; then |
---|
| 1363 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
| 1364 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
| 1365 | { (exit 1); exit 1; }; } |
---|
| 1366 | fi |
---|
| 1367 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1368 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1369 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1370 | |
---|
[2980] | 1371 | # Make sure we can run config.sub. |
---|
| 1372 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1373 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1374 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1375 | { (exit 1); exit 1; }; } |
---|
| 1376 | |
---|
| 1377 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1378 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1379 | if test "${ac_cv_build+set}" = set; then |
---|
| 1380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1381 | else |
---|
| 1382 | ac_cv_build_alias=$build_alias |
---|
| 1383 | test -z "$ac_cv_build_alias" && |
---|
| 1384 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1385 | test -z "$ac_cv_build_alias" && |
---|
| 1386 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1387 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1388 | { (exit 1); exit 1; }; } |
---|
| 1389 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1390 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1391 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1392 | { (exit 1); exit 1; }; } |
---|
| 1393 | |
---|
| 1394 | fi |
---|
| 1395 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1396 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1397 | build=$ac_cv_build |
---|
| 1398 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1399 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1400 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1401 | |
---|
| 1402 | |
---|
| 1403 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1404 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1405 | if test "${ac_cv_host+set}" = set; then |
---|
| 1406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1407 | else |
---|
| 1408 | ac_cv_host_alias=$host_alias |
---|
| 1409 | test -z "$ac_cv_host_alias" && |
---|
| 1410 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1411 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1412 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1413 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1414 | { (exit 1); exit 1; }; } |
---|
| 1415 | |
---|
| 1416 | fi |
---|
| 1417 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1418 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1419 | host=$ac_cv_host |
---|
| 1420 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1421 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1422 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1423 | |
---|
| 1424 | |
---|
| 1425 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1426 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1427 | if test "${ac_cv_target+set}" = set; then |
---|
| 1428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1429 | else |
---|
| 1430 | ac_cv_target_alias=$target_alias |
---|
| 1431 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1432 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1433 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1434 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1435 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1436 | { (exit 1); exit 1; }; } |
---|
| 1437 | |
---|
| 1438 | fi |
---|
| 1439 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1440 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1441 | target=$ac_cv_target |
---|
| 1442 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1443 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1444 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1445 | |
---|
| 1446 | |
---|
| 1447 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1448 | # will get canonicalized. |
---|
| 1449 | test -n "$target_alias" && |
---|
| 1450 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1451 | NONENONEs,x,x, && |
---|
| 1452 | program_prefix=${target_alias}- |
---|
| 1453 | |
---|
| 1454 | am__api_version="1.8" |
---|
[1956] | 1455 | # Find a good install program. We prefer a C program (faster), |
---|
| 1456 | # so one script is as good as another. But avoid the broken or |
---|
| 1457 | # incompatible versions: |
---|
| 1458 | # SysV /etc/install, /usr/sbin/install |
---|
| 1459 | # SunOS /usr/etc/install |
---|
| 1460 | # IRIX /sbin/install |
---|
| 1461 | # AIX /bin/install |
---|
| 1462 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1463 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1464 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1465 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1466 | # OS/2's system install, which has a completely different semantic |
---|
| 1467 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1468 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1469 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1470 | if test -z "$INSTALL"; then |
---|
| 1471 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1473 | else |
---|
| 1474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1475 | for as_dir in $PATH |
---|
| 1476 | do |
---|
| 1477 | IFS=$as_save_IFS |
---|
| 1478 | test -z "$as_dir" && as_dir=. |
---|
| 1479 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1480 | case $as_dir/ in |
---|
| 1481 | ./ | .// | /cC/* | \ |
---|
| 1482 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1483 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1484 | /usr/ucb/* ) ;; |
---|
| 1485 | *) |
---|
| 1486 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1487 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1488 | # by default. |
---|
| 1489 | for ac_prog in ginstall scoinst install; do |
---|
| 1490 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1491 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1492 | if test $ac_prog = install && |
---|
| 1493 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1494 | # AIX install. It has an incompatible calling convention. |
---|
| 1495 | : |
---|
| 1496 | elif test $ac_prog = install && |
---|
| 1497 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1498 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1499 | : |
---|
| 1500 | else |
---|
| 1501 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1502 | break 3 |
---|
| 1503 | fi |
---|
[1853] | 1504 | fi |
---|
[1956] | 1505 | done |
---|
| 1506 | done |
---|
| 1507 | ;; |
---|
| 1508 | esac |
---|
| 1509 | done |
---|
| 1510 | |
---|
| 1511 | |
---|
[1853] | 1512 | fi |
---|
[1956] | 1513 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1514 | INSTALL=$ac_cv_path_install |
---|
| 1515 | else |
---|
| 1516 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1517 | # path for INSTALL within a source directory, because that will |
---|
| 1518 | # break other packages using the cache if that directory is |
---|
| 1519 | # removed, or if the path is relative. |
---|
| 1520 | INSTALL=$ac_install_sh |
---|
| 1521 | fi |
---|
| 1522 | fi |
---|
| 1523 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1524 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1525 | |
---|
| 1526 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1527 | # It thinks the first close brace ends the variable substitution. |
---|
| 1528 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1529 | |
---|
| 1530 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1531 | |
---|
| 1532 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1533 | |
---|
| 1534 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
| 1535 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
| 1536 | # Just in case |
---|
| 1537 | sleep 1 |
---|
| 1538 | echo timestamp > conftest.file |
---|
| 1539 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 1540 | # arguments. Must try -L first in case configure is actually a |
---|
| 1541 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 1542 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 1543 | # directory). |
---|
| 1544 | if ( |
---|
| 1545 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
| 1546 | if test "$*" = "X"; then |
---|
| 1547 | # -L didn't work. |
---|
| 1548 | set X `ls -t $srcdir/configure conftest.file` |
---|
| 1549 | fi |
---|
| 1550 | rm -f conftest.file |
---|
| 1551 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
| 1552 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
| 1553 | |
---|
| 1554 | # If neither matched, then we have a broken ls. This can happen |
---|
| 1555 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 1556 | # broken ls alias from the environment. This has actually |
---|
| 1557 | # happened. Such a system could not be considered "sane". |
---|
| 1558 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1559 | alias in your environment" >&5 |
---|
| 1560 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 1561 | alias in your environment" >&2;} |
---|
| 1562 | { (exit 1); exit 1; }; } |
---|
| 1563 | fi |
---|
| 1564 | |
---|
| 1565 | test "$2" = conftest.file |
---|
| 1566 | ) |
---|
| 1567 | then |
---|
| 1568 | # Ok. |
---|
| 1569 | : |
---|
[1853] | 1570 | else |
---|
[1956] | 1571 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
| 1572 | Check your system clock" >&5 |
---|
| 1573 | echo "$as_me: error: newly created file is older than distributed files! |
---|
| 1574 | Check your system clock" >&2;} |
---|
| 1575 | { (exit 1); exit 1; }; } |
---|
[1853] | 1576 | fi |
---|
[1956] | 1577 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1578 | echo "${ECHO_T}yes" >&6 |
---|
| 1579 | test "$program_prefix" != NONE && |
---|
| 1580 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
| 1581 | # Use a double $ so make ignores it. |
---|
| 1582 | test "$program_suffix" != NONE && |
---|
| 1583 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
| 1584 | # Double any \ or $. echo might interpret backslashes. |
---|
| 1585 | # By default was `s,x,x', remove it if useless. |
---|
| 1586 | cat <<\_ACEOF >conftest.sed |
---|
| 1587 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
| 1588 | _ACEOF |
---|
| 1589 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
| 1590 | rm conftest.sed |
---|
[1853] | 1591 | |
---|
[1956] | 1592 | # expand $ac_aux_dir to an absolute path |
---|
| 1593 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
| 1594 | |
---|
| 1595 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
| 1596 | # Use eval to expand $SHELL |
---|
| 1597 | if eval "$MISSING --run true"; then |
---|
| 1598 | am_missing_run="$MISSING --run " |
---|
| 1599 | else |
---|
| 1600 | am_missing_run= |
---|
| 1601 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
| 1602 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
| 1603 | fi |
---|
| 1604 | |
---|
[3746] | 1605 | if mkdir -p -- . 2>/dev/null; then |
---|
[2706] | 1606 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
| 1607 | # argument. Indeed, we sometimes output rules like |
---|
| 1608 | # $(mkdir_p) $(somedir) |
---|
| 1609 | # where $(somedir) is conditionally defined. |
---|
| 1610 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
| 1611 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
| 1612 | mkdir_p='mkdir -p -- .' |
---|
| 1613 | else |
---|
| 1614 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
| 1615 | # recognize any option. It will interpret all options as |
---|
| 1616 | # directories to create, and then abort because `.' already |
---|
| 1617 | # exists. |
---|
[3746] | 1618 | for d in ./-p ./--; |
---|
[2706] | 1619 | do |
---|
| 1620 | test -d $d && rmdir $d |
---|
| 1621 | done |
---|
| 1622 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
| 1623 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
| 1624 | mkdir_p='$(mkinstalldirs)' |
---|
| 1625 | else |
---|
| 1626 | mkdir_p='$(install_sh) -d' |
---|
| 1627 | fi |
---|
| 1628 | fi |
---|
| 1629 | |
---|
[1956] | 1630 | for ac_prog in gawk mawk nawk awk |
---|
| 1631 | do |
---|
| 1632 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1633 | set dummy $ac_prog; ac_word=$2 |
---|
| 1634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1636 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1638 | else |
---|
| 1639 | if test -n "$AWK"; then |
---|
| 1640 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1641 | else |
---|
| 1642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1643 | for as_dir in $PATH |
---|
| 1644 | do |
---|
| 1645 | IFS=$as_save_IFS |
---|
| 1646 | test -z "$as_dir" && as_dir=. |
---|
| 1647 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1649 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1651 | break 2 |
---|
| 1652 | fi |
---|
| 1653 | done |
---|
| 1654 | done |
---|
| 1655 | |
---|
| 1656 | fi |
---|
| 1657 | fi |
---|
| 1658 | AWK=$ac_cv_prog_AWK |
---|
| 1659 | if test -n "$AWK"; then |
---|
| 1660 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1661 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1662 | else |
---|
| 1663 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1664 | echo "${ECHO_T}no" >&6 |
---|
| 1665 | fi |
---|
| 1666 | |
---|
| 1667 | test -n "$AWK" && break |
---|
| 1668 | done |
---|
| 1669 | |
---|
| 1670 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1671 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1672 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1673 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1675 | else |
---|
| 1676 | cat >conftest.make <<\_ACEOF |
---|
| 1677 | all: |
---|
| 1678 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1679 | _ACEOF |
---|
| 1680 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1681 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1682 | if test -n "$ac_maketemp"; then |
---|
| 1683 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1684 | else |
---|
| 1685 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1686 | fi |
---|
| 1687 | rm -f conftest.make |
---|
| 1688 | fi |
---|
| 1689 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1690 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1691 | echo "${ECHO_T}yes" >&6 |
---|
| 1692 | SET_MAKE= |
---|
| 1693 | else |
---|
| 1694 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1695 | echo "${ECHO_T}no" >&6 |
---|
| 1696 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 1697 | fi |
---|
| 1698 | |
---|
| 1699 | rm -rf .tst 2>/dev/null |
---|
| 1700 | mkdir .tst 2>/dev/null |
---|
| 1701 | if test -d .tst; then |
---|
| 1702 | am__leading_dot=. |
---|
| 1703 | else |
---|
| 1704 | am__leading_dot=_ |
---|
| 1705 | fi |
---|
| 1706 | rmdir .tst 2>/dev/null |
---|
| 1707 | |
---|
[2706] | 1708 | # test to see if srcdir already configured |
---|
[1956] | 1709 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
| 1710 | test -f $srcdir/config.status; then |
---|
| 1711 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
| 1712 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
| 1713 | { (exit 1); exit 1; }; } |
---|
| 1714 | fi |
---|
| 1715 | |
---|
| 1716 | # test whether we have cygpath |
---|
| 1717 | if test -z "$CYGPATH_W"; then |
---|
| 1718 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
| 1719 | CYGPATH_W='cygpath -w' |
---|
| 1720 | else |
---|
| 1721 | CYGPATH_W=echo |
---|
| 1722 | fi |
---|
| 1723 | fi |
---|
| 1724 | |
---|
| 1725 | |
---|
| 1726 | # Define the identity of the package. |
---|
| 1727 | PACKAGE='orxonox' |
---|
[3605] | 1728 | VERSION='0.2.2-pre-alpha' |
---|
[1956] | 1729 | |
---|
| 1730 | |
---|
| 1731 | cat >>confdefs.h <<_ACEOF |
---|
| 1732 | #define PACKAGE "$PACKAGE" |
---|
| 1733 | _ACEOF |
---|
| 1734 | |
---|
| 1735 | |
---|
| 1736 | cat >>confdefs.h <<_ACEOF |
---|
| 1737 | #define VERSION "$VERSION" |
---|
| 1738 | _ACEOF |
---|
| 1739 | |
---|
| 1740 | # Some tools Automake needs. |
---|
| 1741 | |
---|
| 1742 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
| 1743 | |
---|
| 1744 | |
---|
| 1745 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
| 1746 | |
---|
| 1747 | |
---|
| 1748 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
| 1749 | |
---|
| 1750 | |
---|
| 1751 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
| 1752 | |
---|
| 1753 | |
---|
| 1754 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
| 1755 | |
---|
| 1756 | |
---|
| 1757 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
| 1758 | |
---|
| 1759 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
| 1760 | |
---|
| 1761 | # Installed binaries are usually stripped using `strip' when the user |
---|
| 1762 | # run `make install-strip'. However `strip' might not be the right |
---|
| 1763 | # tool to use in cross-compilation environments, therefore Automake |
---|
| 1764 | # will honor the `STRIP' environment variable to overrule this program. |
---|
| 1765 | if test "$cross_compiling" != no; then |
---|
| 1766 | if test -n "$ac_tool_prefix"; then |
---|
| 1767 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
| 1768 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
| 1769 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1771 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
| 1772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1773 | else |
---|
| 1774 | if test -n "$STRIP"; then |
---|
| 1775 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
| 1776 | else |
---|
| 1777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1778 | for as_dir in $PATH |
---|
| 1779 | do |
---|
| 1780 | IFS=$as_save_IFS |
---|
| 1781 | test -z "$as_dir" && as_dir=. |
---|
| 1782 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1783 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1784 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
| 1785 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1786 | break 2 |
---|
| 1787 | fi |
---|
| 1788 | done |
---|
| 1789 | done |
---|
| 1790 | |
---|
| 1791 | fi |
---|
| 1792 | fi |
---|
| 1793 | STRIP=$ac_cv_prog_STRIP |
---|
| 1794 | if test -n "$STRIP"; then |
---|
| 1795 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
| 1796 | echo "${ECHO_T}$STRIP" >&6 |
---|
| 1797 | else |
---|
| 1798 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1799 | echo "${ECHO_T}no" >&6 |
---|
| 1800 | fi |
---|
| 1801 | |
---|
| 1802 | fi |
---|
| 1803 | if test -z "$ac_cv_prog_STRIP"; then |
---|
| 1804 | ac_ct_STRIP=$STRIP |
---|
| 1805 | # Extract the first word of "strip", so it can be a program name with args. |
---|
| 1806 | set dummy strip; ac_word=$2 |
---|
| 1807 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1809 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
| 1810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1811 | else |
---|
| 1812 | if test -n "$ac_ct_STRIP"; then |
---|
| 1813 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
| 1814 | else |
---|
| 1815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1816 | for as_dir in $PATH |
---|
| 1817 | do |
---|
| 1818 | IFS=$as_save_IFS |
---|
| 1819 | test -z "$as_dir" && as_dir=. |
---|
| 1820 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1821 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1822 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
| 1823 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1824 | break 2 |
---|
| 1825 | fi |
---|
| 1826 | done |
---|
| 1827 | done |
---|
| 1828 | |
---|
| 1829 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
| 1830 | fi |
---|
| 1831 | fi |
---|
| 1832 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
| 1833 | if test -n "$ac_ct_STRIP"; then |
---|
| 1834 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
| 1835 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
| 1836 | else |
---|
| 1837 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1838 | echo "${ECHO_T}no" >&6 |
---|
| 1839 | fi |
---|
| 1840 | |
---|
| 1841 | STRIP=$ac_ct_STRIP |
---|
| 1842 | else |
---|
| 1843 | STRIP="$ac_cv_prog_STRIP" |
---|
| 1844 | fi |
---|
| 1845 | |
---|
| 1846 | fi |
---|
| 1847 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
| 1848 | |
---|
| 1849 | # We need awk for the "check" target. The system "awk" is bad on |
---|
| 1850 | # some platforms. |
---|
| 1851 | |
---|
| 1852 | |
---|
| 1853 | |
---|
| 1854 | |
---|
[2627] | 1855 | |
---|
[1959] | 1856 | ac_config_headers="$ac_config_headers config.h" |
---|
| 1857 | |
---|
| 1858 | |
---|
[3499] | 1859 | ######################### |
---|
| 1860 | ## Checks for programs ## |
---|
| 1861 | ######################### |
---|
[1956] | 1862 | ac_ext=cc |
---|
| 1863 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1864 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1865 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1866 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1867 | if test -n "$ac_tool_prefix"; then |
---|
| 1868 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1869 | do |
---|
| 1870 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1871 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1872 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1874 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1876 | else |
---|
| 1877 | if test -n "$CXX"; then |
---|
| 1878 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1879 | else |
---|
| 1880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1881 | for as_dir in $PATH |
---|
| 1882 | do |
---|
| 1883 | IFS=$as_save_IFS |
---|
| 1884 | test -z "$as_dir" && as_dir=. |
---|
| 1885 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1886 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1887 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1889 | break 2 |
---|
| 1890 | fi |
---|
| 1891 | done |
---|
| 1892 | done |
---|
| 1893 | |
---|
| 1894 | fi |
---|
| 1895 | fi |
---|
| 1896 | CXX=$ac_cv_prog_CXX |
---|
| 1897 | if test -n "$CXX"; then |
---|
| 1898 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1899 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1900 | else |
---|
| 1901 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1902 | echo "${ECHO_T}no" >&6 |
---|
| 1903 | fi |
---|
| 1904 | |
---|
| 1905 | test -n "$CXX" && break |
---|
| 1906 | done |
---|
| 1907 | fi |
---|
| 1908 | if test -z "$CXX"; then |
---|
| 1909 | ac_ct_CXX=$CXX |
---|
| 1910 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1911 | do |
---|
| 1912 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1913 | set dummy $ac_prog; ac_word=$2 |
---|
| 1914 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1916 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1918 | else |
---|
| 1919 | if test -n "$ac_ct_CXX"; then |
---|
| 1920 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1921 | else |
---|
| 1922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1923 | for as_dir in $PATH |
---|
| 1924 | do |
---|
| 1925 | IFS=$as_save_IFS |
---|
| 1926 | test -z "$as_dir" && as_dir=. |
---|
| 1927 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1928 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1929 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1931 | break 2 |
---|
| 1932 | fi |
---|
| 1933 | done |
---|
| 1934 | done |
---|
| 1935 | |
---|
| 1936 | fi |
---|
| 1937 | fi |
---|
| 1938 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1939 | if test -n "$ac_ct_CXX"; then |
---|
| 1940 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1941 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1942 | else |
---|
| 1943 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1944 | echo "${ECHO_T}no" >&6 |
---|
| 1945 | fi |
---|
| 1946 | |
---|
| 1947 | test -n "$ac_ct_CXX" && break |
---|
| 1948 | done |
---|
| 1949 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1950 | |
---|
| 1951 | CXX=$ac_ct_CXX |
---|
| 1952 | fi |
---|
| 1953 | |
---|
| 1954 | |
---|
| 1955 | # Provide some information about the compiler. |
---|
| 1956 | echo "$as_me:$LINENO:" \ |
---|
| 1957 | "checking for C++ compiler version" >&5 |
---|
| 1958 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1959 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1960 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1961 | ac_status=$? |
---|
| 1962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1963 | (exit $ac_status); } |
---|
| 1964 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1965 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1966 | ac_status=$? |
---|
| 1967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1968 | (exit $ac_status); } |
---|
| 1969 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1970 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1971 | ac_status=$? |
---|
| 1972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1973 | (exit $ac_status); } |
---|
| 1974 | |
---|
| 1975 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1976 | /* confdefs.h. */ |
---|
| 1977 | _ACEOF |
---|
| 1978 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1979 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1980 | /* end confdefs.h. */ |
---|
| 1981 | |
---|
| 1982 | int |
---|
| 1983 | main () |
---|
| 1984 | { |
---|
| 1985 | |
---|
| 1986 | ; |
---|
| 1987 | return 0; |
---|
| 1988 | } |
---|
| 1989 | _ACEOF |
---|
| 1990 | ac_clean_files_save=$ac_clean_files |
---|
| 1991 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1992 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1993 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1994 | # of exeext. |
---|
| 1995 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1996 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1997 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1998 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1999 | (eval $ac_link_default) 2>&5 |
---|
| 2000 | ac_status=$? |
---|
| 2001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2002 | (exit $ac_status); }; then |
---|
| 2003 | # Find the output, starting from the most likely. This scheme is |
---|
| 2004 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 2005 | # resort. |
---|
| 2006 | |
---|
| 2007 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 2008 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 2009 | ac_cv_exeext= |
---|
| 2010 | # b.out is created by i960 compilers. |
---|
| 2011 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 2012 | do |
---|
| 2013 | test -f "$ac_file" || continue |
---|
| 2014 | case $ac_file in |
---|
| 2015 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 2016 | ;; |
---|
| 2017 | conftest.$ac_ext ) |
---|
| 2018 | # This is the source file. |
---|
| 2019 | ;; |
---|
| 2020 | [ab].out ) |
---|
| 2021 | # We found the default executable, but exeext='' is most |
---|
| 2022 | # certainly right. |
---|
| 2023 | break;; |
---|
| 2024 | *.* ) |
---|
| 2025 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2026 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 2027 | # but it would be cool to find out if it's true. Does anybody |
---|
| 2028 | # maintain Libtool? --akim. |
---|
| 2029 | export ac_cv_exeext |
---|
| 2030 | break;; |
---|
| 2031 | * ) |
---|
| 2032 | break;; |
---|
| 2033 | esac |
---|
| 2034 | done |
---|
| 2035 | else |
---|
| 2036 | echo "$as_me: failed program was:" >&5 |
---|
| 2037 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2038 | |
---|
| 2039 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 2040 | See \`config.log' for more details." >&5 |
---|
| 2041 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 2042 | See \`config.log' for more details." >&2;} |
---|
| 2043 | { (exit 77); exit 77; }; } |
---|
| 2044 | fi |
---|
| 2045 | |
---|
| 2046 | ac_exeext=$ac_cv_exeext |
---|
| 2047 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2048 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 2049 | |
---|
| 2050 | # Check the compiler produces executables we can run. If not, either |
---|
| 2051 | # the compiler is broken, or we cross compile. |
---|
| 2052 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 2053 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 2054 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2055 | # If not cross compiling, check that we can run a simple program. |
---|
| 2056 | if test "$cross_compiling" != yes; then |
---|
| 2057 | if { ac_try='./$ac_file' |
---|
| 2058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2059 | (eval $ac_try) 2>&5 |
---|
| 2060 | ac_status=$? |
---|
| 2061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2062 | (exit $ac_status); }; }; then |
---|
| 2063 | cross_compiling=no |
---|
| 2064 | else |
---|
| 2065 | if test "$cross_compiling" = maybe; then |
---|
| 2066 | cross_compiling=yes |
---|
| 2067 | else |
---|
| 2068 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 2069 | If you meant to cross compile, use \`--host'. |
---|
| 2070 | See \`config.log' for more details." >&5 |
---|
| 2071 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 2072 | If you meant to cross compile, use \`--host'. |
---|
| 2073 | See \`config.log' for more details." >&2;} |
---|
| 2074 | { (exit 1); exit 1; }; } |
---|
| 2075 | fi |
---|
| 2076 | fi |
---|
| 2077 | fi |
---|
| 2078 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2079 | echo "${ECHO_T}yes" >&6 |
---|
| 2080 | |
---|
| 2081 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2082 | ac_clean_files=$ac_clean_files_save |
---|
| 2083 | # Check the compiler produces executables we can run. If not, either |
---|
| 2084 | # the compiler is broken, or we cross compile. |
---|
| 2085 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2086 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2087 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2088 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2089 | |
---|
| 2090 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2091 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2093 | (eval $ac_link) 2>&5 |
---|
| 2094 | ac_status=$? |
---|
| 2095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2096 | (exit $ac_status); }; then |
---|
| 2097 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2098 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2099 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2100 | # `rm'. |
---|
| 2101 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2102 | test -f "$ac_file" || continue |
---|
| 2103 | case $ac_file in |
---|
| 2104 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2105 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2106 | export ac_cv_exeext |
---|
| 2107 | break;; |
---|
| 2108 | * ) break;; |
---|
| 2109 | esac |
---|
| 2110 | done |
---|
| 2111 | else |
---|
| 2112 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2113 | See \`config.log' for more details." >&5 |
---|
| 2114 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2115 | See \`config.log' for more details." >&2;} |
---|
| 2116 | { (exit 1); exit 1; }; } |
---|
| 2117 | fi |
---|
| 2118 | |
---|
| 2119 | rm -f conftest$ac_cv_exeext |
---|
| 2120 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2121 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2122 | |
---|
| 2123 | rm -f conftest.$ac_ext |
---|
| 2124 | EXEEXT=$ac_cv_exeext |
---|
| 2125 | ac_exeext=$EXEEXT |
---|
| 2126 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2127 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2128 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2130 | else |
---|
| 2131 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2132 | /* confdefs.h. */ |
---|
| 2133 | _ACEOF |
---|
| 2134 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2135 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2136 | /* end confdefs.h. */ |
---|
| 2137 | |
---|
| 2138 | int |
---|
| 2139 | main () |
---|
| 2140 | { |
---|
| 2141 | |
---|
| 2142 | ; |
---|
| 2143 | return 0; |
---|
| 2144 | } |
---|
| 2145 | _ACEOF |
---|
| 2146 | rm -f conftest.o conftest.obj |
---|
| 2147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2148 | (eval $ac_compile) 2>&5 |
---|
| 2149 | ac_status=$? |
---|
| 2150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2151 | (exit $ac_status); }; then |
---|
| 2152 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2153 | case $ac_file in |
---|
| 2154 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2155 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2156 | break;; |
---|
| 2157 | esac |
---|
| 2158 | done |
---|
| 2159 | else |
---|
| 2160 | echo "$as_me: failed program was:" >&5 |
---|
| 2161 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2162 | |
---|
| 2163 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2164 | See \`config.log' for more details." >&5 |
---|
| 2165 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2166 | See \`config.log' for more details." >&2;} |
---|
| 2167 | { (exit 1); exit 1; }; } |
---|
| 2168 | fi |
---|
| 2169 | |
---|
| 2170 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2171 | fi |
---|
| 2172 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2173 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2174 | OBJEXT=$ac_cv_objext |
---|
| 2175 | ac_objext=$OBJEXT |
---|
| 2176 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 2177 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 2178 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 2179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2180 | else |
---|
| 2181 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2182 | /* confdefs.h. */ |
---|
| 2183 | _ACEOF |
---|
| 2184 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2185 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2186 | /* end confdefs.h. */ |
---|
| 2187 | |
---|
| 2188 | int |
---|
| 2189 | main () |
---|
| 2190 | { |
---|
| 2191 | #ifndef __GNUC__ |
---|
| 2192 | choke me |
---|
| 2193 | #endif |
---|
| 2194 | |
---|
| 2195 | ; |
---|
| 2196 | return 0; |
---|
| 2197 | } |
---|
| 2198 | _ACEOF |
---|
| 2199 | rm -f conftest.$ac_objext |
---|
| 2200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2201 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2202 | ac_status=$? |
---|
| 2203 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2204 | rm -f conftest.er1 |
---|
| 2205 | cat conftest.err >&5 |
---|
| 2206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2207 | (exit $ac_status); } && |
---|
| 2208 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2209 | || test ! -s conftest.err' |
---|
| 2210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2211 | (eval $ac_try) 2>&5 |
---|
| 2212 | ac_status=$? |
---|
| 2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2214 | (exit $ac_status); }; } && |
---|
| 2215 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2217 | (eval $ac_try) 2>&5 |
---|
| 2218 | ac_status=$? |
---|
| 2219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2220 | (exit $ac_status); }; }; then |
---|
| 2221 | ac_compiler_gnu=yes |
---|
| 2222 | else |
---|
| 2223 | echo "$as_me: failed program was:" >&5 |
---|
| 2224 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2225 | |
---|
| 2226 | ac_compiler_gnu=no |
---|
| 2227 | fi |
---|
| 2228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2229 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 2230 | |
---|
| 2231 | fi |
---|
| 2232 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 2233 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 2234 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2235 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 2236 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 2237 | CXXFLAGS="-g" |
---|
| 2238 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 2239 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 2240 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 2241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2242 | else |
---|
| 2243 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2244 | /* confdefs.h. */ |
---|
| 2245 | _ACEOF |
---|
| 2246 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2247 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2248 | /* end confdefs.h. */ |
---|
| 2249 | |
---|
| 2250 | int |
---|
| 2251 | main () |
---|
| 2252 | { |
---|
| 2253 | |
---|
| 2254 | ; |
---|
| 2255 | return 0; |
---|
| 2256 | } |
---|
| 2257 | _ACEOF |
---|
| 2258 | rm -f conftest.$ac_objext |
---|
| 2259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2260 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2261 | ac_status=$? |
---|
| 2262 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2263 | rm -f conftest.er1 |
---|
| 2264 | cat conftest.err >&5 |
---|
| 2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2266 | (exit $ac_status); } && |
---|
| 2267 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2268 | || test ! -s conftest.err' |
---|
| 2269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2270 | (eval $ac_try) 2>&5 |
---|
| 2271 | ac_status=$? |
---|
| 2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2273 | (exit $ac_status); }; } && |
---|
| 2274 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2276 | (eval $ac_try) 2>&5 |
---|
| 2277 | ac_status=$? |
---|
| 2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2279 | (exit $ac_status); }; }; then |
---|
| 2280 | ac_cv_prog_cxx_g=yes |
---|
| 2281 | else |
---|
| 2282 | echo "$as_me: failed program was:" >&5 |
---|
| 2283 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2284 | |
---|
| 2285 | ac_cv_prog_cxx_g=no |
---|
| 2286 | fi |
---|
| 2287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2288 | fi |
---|
| 2289 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 2290 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 2291 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 2292 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 2293 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 2294 | if test "$GXX" = yes; then |
---|
| 2295 | CXXFLAGS="-g -O2" |
---|
| 2296 | else |
---|
| 2297 | CXXFLAGS="-g" |
---|
| 2298 | fi |
---|
| 2299 | else |
---|
| 2300 | if test "$GXX" = yes; then |
---|
| 2301 | CXXFLAGS="-O2" |
---|
| 2302 | else |
---|
| 2303 | CXXFLAGS= |
---|
| 2304 | fi |
---|
| 2305 | fi |
---|
| 2306 | for ac_declaration in \ |
---|
| 2307 | '' \ |
---|
| 2308 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2309 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2310 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2311 | 'extern "C" void exit (int);' \ |
---|
| 2312 | 'void exit (int);' |
---|
| 2313 | do |
---|
| 2314 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2315 | /* confdefs.h. */ |
---|
| 2316 | _ACEOF |
---|
| 2317 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2318 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2319 | /* end confdefs.h. */ |
---|
| 2320 | $ac_declaration |
---|
| 2321 | #include <stdlib.h> |
---|
| 2322 | int |
---|
| 2323 | main () |
---|
| 2324 | { |
---|
| 2325 | exit (42); |
---|
| 2326 | ; |
---|
| 2327 | return 0; |
---|
| 2328 | } |
---|
| 2329 | _ACEOF |
---|
| 2330 | rm -f conftest.$ac_objext |
---|
| 2331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2332 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2333 | ac_status=$? |
---|
| 2334 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2335 | rm -f conftest.er1 |
---|
| 2336 | cat conftest.err >&5 |
---|
| 2337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2338 | (exit $ac_status); } && |
---|
| 2339 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2340 | || test ! -s conftest.err' |
---|
| 2341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2342 | (eval $ac_try) 2>&5 |
---|
| 2343 | ac_status=$? |
---|
| 2344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2345 | (exit $ac_status); }; } && |
---|
| 2346 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2348 | (eval $ac_try) 2>&5 |
---|
| 2349 | ac_status=$? |
---|
| 2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2351 | (exit $ac_status); }; }; then |
---|
| 2352 | : |
---|
| 2353 | else |
---|
| 2354 | echo "$as_me: failed program was:" >&5 |
---|
| 2355 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2356 | |
---|
| 2357 | continue |
---|
| 2358 | fi |
---|
| 2359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2360 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2361 | /* confdefs.h. */ |
---|
| 2362 | _ACEOF |
---|
| 2363 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2364 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2365 | /* end confdefs.h. */ |
---|
| 2366 | $ac_declaration |
---|
| 2367 | int |
---|
| 2368 | main () |
---|
| 2369 | { |
---|
| 2370 | exit (42); |
---|
| 2371 | ; |
---|
| 2372 | return 0; |
---|
| 2373 | } |
---|
| 2374 | _ACEOF |
---|
| 2375 | rm -f conftest.$ac_objext |
---|
| 2376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2377 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2378 | ac_status=$? |
---|
| 2379 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2380 | rm -f conftest.er1 |
---|
| 2381 | cat conftest.err >&5 |
---|
| 2382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2383 | (exit $ac_status); } && |
---|
| 2384 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
| 2385 | || test ! -s conftest.err' |
---|
| 2386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2387 | (eval $ac_try) 2>&5 |
---|
| 2388 | ac_status=$? |
---|
| 2389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2390 | (exit $ac_status); }; } && |
---|
| 2391 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2393 | (eval $ac_try) 2>&5 |
---|
| 2394 | ac_status=$? |
---|
| 2395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2396 | (exit $ac_status); }; }; then |
---|
| 2397 | break |
---|
| 2398 | else |
---|
| 2399 | echo "$as_me: failed program was:" >&5 |
---|
| 2400 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2401 | |
---|
| 2402 | fi |
---|
| 2403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2404 | done |
---|
| 2405 | rm -f conftest* |
---|
| 2406 | if test -n "$ac_declaration"; then |
---|
| 2407 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2408 | echo $ac_declaration >>confdefs.h |
---|
| 2409 | echo '#endif' >>confdefs.h |
---|
| 2410 | fi |
---|
| 2411 | |
---|
| 2412 | ac_ext=c |
---|
| 2413 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2417 | DEPDIR="${am__leading_dot}deps" |
---|
| 2418 | |
---|
| 2419 | ac_config_commands="$ac_config_commands depfiles" |
---|
| 2420 | |
---|
| 2421 | |
---|
| 2422 | am_make=${MAKE-make} |
---|
| 2423 | cat > confinc << 'END' |
---|
| 2424 | am__doit: |
---|
| 2425 | @echo done |
---|
| 2426 | .PHONY: am__doit |
---|
| 2427 | END |
---|
| 2428 | # If we don't find an include directive, just comment out the code. |
---|
| 2429 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
| 2430 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
| 2431 | am__include="#" |
---|
| 2432 | am__quote= |
---|
| 2433 | _am_result=none |
---|
| 2434 | # First try GNU make style include. |
---|
| 2435 | echo "include confinc" > confmf |
---|
| 2436 | # We grep out `Entering directory' and `Leaving directory' |
---|
| 2437 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
| 2438 | # In particular we don't look at `^make:' because GNU make might |
---|
| 2439 | # be invoked under some other name (usually "gmake"), in which |
---|
| 2440 | # case it prints its new name instead of `make'. |
---|
| 2441 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
| 2442 | am__include=include |
---|
| 2443 | am__quote= |
---|
| 2444 | _am_result=GNU |
---|
| 2445 | fi |
---|
| 2446 | # Now try BSD make style include. |
---|
| 2447 | if test "$am__include" = "#"; then |
---|
| 2448 | echo '.include "confinc"' > confmf |
---|
| 2449 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
| 2450 | am__include=.include |
---|
| 2451 | am__quote="\"" |
---|
| 2452 | _am_result=BSD |
---|
| 2453 | fi |
---|
| 2454 | fi |
---|
| 2455 | |
---|
| 2456 | |
---|
| 2457 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
| 2458 | echo "${ECHO_T}$_am_result" >&6 |
---|
| 2459 | rm -f confinc confmf |
---|
| 2460 | |
---|
| 2461 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
| 2462 | if test "${enable_dependency_tracking+set}" = set; then |
---|
| 2463 | enableval="$enable_dependency_tracking" |
---|
| 2464 | |
---|
| 2465 | fi; |
---|
| 2466 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2467 | am_depcomp="$ac_aux_dir/depcomp" |
---|
| 2468 | AMDEPBACKSLASH='\' |
---|
| 2469 | fi |
---|
| 2470 | |
---|
| 2471 | |
---|
| 2472 | if test "x$enable_dependency_tracking" != xno; then |
---|
| 2473 | AMDEP_TRUE= |
---|
| 2474 | AMDEP_FALSE='#' |
---|
| 2475 | else |
---|
| 2476 | AMDEP_TRUE='#' |
---|
| 2477 | AMDEP_FALSE= |
---|
| 2478 | fi |
---|
| 2479 | |
---|
| 2480 | |
---|
| 2481 | |
---|
| 2482 | |
---|
| 2483 | depcc="$CXX" am_compiler_list= |
---|
| 2484 | |
---|
| 2485 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 2486 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 2487 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
| 2488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2489 | else |
---|
| 2490 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 2491 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 2492 | # making bogus files that we don't know about and never remove. For |
---|
| 2493 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 2494 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 2495 | # in D'. |
---|
| 2496 | mkdir conftest.dir |
---|
| 2497 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 2498 | # using a relative directory. |
---|
| 2499 | cp "$am_depcomp" conftest.dir |
---|
| 2500 | cd conftest.dir |
---|
| 2501 | # We will build objects and dependencies in a subdirectory because |
---|
| 2502 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 2503 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 2504 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 2505 | # the current directory while Tru64 will put them in the object |
---|
| 2506 | # directory. |
---|
| 2507 | mkdir sub |
---|
| 2508 | |
---|
| 2509 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2510 | if test "$am_compiler_list" = ""; then |
---|
| 2511 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 2512 | fi |
---|
| 2513 | for depmode in $am_compiler_list; do |
---|
| 2514 | # Setup a source with many dependencies, because some compilers |
---|
| 2515 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 2516 | # we should not choose a depcomp mode which is confused by this. |
---|
| 2517 | # |
---|
| 2518 | # We need to recreate these files for each test, as the compiler may |
---|
| 2519 | # overwrite some of them when testing with obscure command lines. |
---|
| 2520 | # This happens at least with the AIX C compiler. |
---|
| 2521 | : > sub/conftest.c |
---|
| 2522 | for i in 1 2 3 4 5 6; do |
---|
| 2523 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[3746] | 2524 | : > sub/conftst$i.h |
---|
[1956] | 2525 | done |
---|
| 2526 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 2527 | |
---|
| 2528 | case $depmode in |
---|
| 2529 | nosideeffect) |
---|
| 2530 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 2531 | # only be used when explicitly requested |
---|
| 2532 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 2533 | continue |
---|
| 2534 | else |
---|
| 2535 | break |
---|
| 2536 | fi |
---|
| 2537 | ;; |
---|
| 2538 | none) break ;; |
---|
| 2539 | esac |
---|
| 2540 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 2541 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 2542 | # handle `-M -o', and we need to detect this. |
---|
| 2543 | if depmode=$depmode \ |
---|
| 2544 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 2545 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 2546 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 2547 | >/dev/null 2>conftest.err && |
---|
| 2548 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2549 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 2550 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 2551 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[3746] | 2552 | # (even with -Werror). So we grep stderr for any message |
---|
| 2553 | # that says an option was ignored. |
---|
| 2554 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
[1956] | 2555 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
| 2556 | break |
---|
| 2557 | fi |
---|
| 2558 | fi |
---|
| 2559 | done |
---|
| 2560 | |
---|
| 2561 | cd .. |
---|
| 2562 | rm -rf conftest.dir |
---|
| 2563 | else |
---|
| 2564 | am_cv_CXX_dependencies_compiler_type=none |
---|
| 2565 | fi |
---|
| 2566 | |
---|
| 2567 | fi |
---|
| 2568 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
| 2569 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
| 2570 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
| 2571 | |
---|
| 2572 | |
---|
| 2573 | |
---|
| 2574 | if |
---|
| 2575 | test "x$enable_dependency_tracking" != xno \ |
---|
| 2576 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
| 2577 | am__fastdepCXX_TRUE= |
---|
| 2578 | am__fastdepCXX_FALSE='#' |
---|
| 2579 | else |
---|
| 2580 | am__fastdepCXX_TRUE='#' |
---|
| 2581 | am__fastdepCXX_FALSE= |
---|
| 2582 | fi |
---|
| 2583 | |
---|
| 2584 | |
---|
| 2585 | ac_ext=c |
---|
| 2586 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2590 | if test -n "$ac_tool_prefix"; then |
---|
| 2591 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2592 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2593 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2595 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2597 | else |
---|
| 2598 | if test -n "$CC"; then |
---|
| 2599 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2600 | else |
---|
| 2601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2602 | for as_dir in $PATH |
---|
| 2603 | do |
---|
| 2604 | IFS=$as_save_IFS |
---|
| 2605 | test -z "$as_dir" && as_dir=. |
---|
| 2606 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2607 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2608 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2610 | break 2 |
---|
| 2611 | fi |
---|
| 2612 | done |
---|
| 2613 | done |
---|
| 2614 | |
---|
| 2615 | fi |
---|
| 2616 | fi |
---|
| 2617 | CC=$ac_cv_prog_CC |
---|
| 2618 | if test -n "$CC"; then |
---|
| 2619 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2620 | echo "${ECHO_T}$CC" >&6 |
---|
| 2621 | else |
---|
| 2622 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2623 | echo "${ECHO_T}no" >&6 |
---|
| 2624 | fi |
---|
| 2625 | |
---|
| 2626 | fi |
---|
| 2627 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2628 | ac_ct_CC=$CC |
---|
| 2629 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2630 | set dummy gcc; ac_word=$2 |
---|
| 2631 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2633 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2635 | else |
---|
| 2636 | if test -n "$ac_ct_CC"; then |
---|
| 2637 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2638 | else |
---|
| 2639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2640 | for as_dir in $PATH |
---|
| 2641 | do |
---|
| 2642 | IFS=$as_save_IFS |
---|
| 2643 | test -z "$as_dir" && as_dir=. |
---|
| 2644 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2645 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2646 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2648 | break 2 |
---|
| 2649 | fi |
---|
| 2650 | done |
---|
| 2651 | done |
---|
| 2652 | |
---|
| 2653 | fi |
---|
| 2654 | fi |
---|
| 2655 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2656 | if test -n "$ac_ct_CC"; then |
---|
| 2657 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2658 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2659 | else |
---|
| 2660 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2661 | echo "${ECHO_T}no" >&6 |
---|
| 2662 | fi |
---|
| 2663 | |
---|
| 2664 | CC=$ac_ct_CC |
---|
| 2665 | else |
---|
| 2666 | CC="$ac_cv_prog_CC" |
---|
| 2667 | fi |
---|
| 2668 | |
---|
| 2669 | if test -z "$CC"; then |
---|
| 2670 | if test -n "$ac_tool_prefix"; then |
---|
| 2671 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2672 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2673 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2675 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2677 | else |
---|
| 2678 | if test -n "$CC"; then |
---|
| 2679 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2680 | else |
---|
| 2681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2682 | for as_dir in $PATH |
---|
| 2683 | do |
---|
| 2684 | IFS=$as_save_IFS |
---|
| 2685 | test -z "$as_dir" && as_dir=. |
---|
| 2686 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2687 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2688 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2690 | break 2 |
---|
| 2691 | fi |
---|
| 2692 | done |
---|
| 2693 | done |
---|
| 2694 | |
---|
| 2695 | fi |
---|
| 2696 | fi |
---|
| 2697 | CC=$ac_cv_prog_CC |
---|
| 2698 | if test -n "$CC"; then |
---|
| 2699 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2700 | echo "${ECHO_T}$CC" >&6 |
---|
| 2701 | else |
---|
| 2702 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2703 | echo "${ECHO_T}no" >&6 |
---|
| 2704 | fi |
---|
| 2705 | |
---|
| 2706 | fi |
---|
| 2707 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2708 | ac_ct_CC=$CC |
---|
| 2709 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2710 | set dummy cc; ac_word=$2 |
---|
| 2711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2713 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2715 | else |
---|
| 2716 | if test -n "$ac_ct_CC"; then |
---|
| 2717 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2718 | else |
---|
| 2719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2720 | for as_dir in $PATH |
---|
| 2721 | do |
---|
| 2722 | IFS=$as_save_IFS |
---|
| 2723 | test -z "$as_dir" && as_dir=. |
---|
| 2724 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2726 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2728 | break 2 |
---|
| 2729 | fi |
---|
| 2730 | done |
---|
| 2731 | done |
---|
| 2732 | |
---|
| 2733 | fi |
---|
| 2734 | fi |
---|
| 2735 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2736 | if test -n "$ac_ct_CC"; then |
---|
| 2737 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2738 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2739 | else |
---|
| 2740 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2741 | echo "${ECHO_T}no" >&6 |
---|
| 2742 | fi |
---|
| 2743 | |
---|
| 2744 | CC=$ac_ct_CC |
---|
| 2745 | else |
---|
| 2746 | CC="$ac_cv_prog_CC" |
---|
| 2747 | fi |
---|
| 2748 | |
---|
| 2749 | fi |
---|
| 2750 | if test -z "$CC"; then |
---|
| 2751 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2752 | set dummy cc; ac_word=$2 |
---|
| 2753 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2755 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2757 | else |
---|
| 2758 | if test -n "$CC"; then |
---|
| 2759 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2760 | else |
---|
| 2761 | ac_prog_rejected=no |
---|
| 2762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2763 | for as_dir in $PATH |
---|
| 2764 | do |
---|
| 2765 | IFS=$as_save_IFS |
---|
| 2766 | test -z "$as_dir" && as_dir=. |
---|
| 2767 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2768 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2769 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2770 | ac_prog_rejected=yes |
---|
| 2771 | continue |
---|
| 2772 | fi |
---|
| 2773 | ac_cv_prog_CC="cc" |
---|
| 2774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2775 | break 2 |
---|
| 2776 | fi |
---|
| 2777 | done |
---|
| 2778 | done |
---|
| 2779 | |
---|
| 2780 | if test $ac_prog_rejected = yes; then |
---|
| 2781 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2782 | set dummy $ac_cv_prog_CC |
---|
| 2783 | shift |
---|
| 2784 | if test $# != 0; then |
---|
| 2785 | # We chose a different compiler from the bogus one. |
---|
| 2786 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2787 | # first if we set CC to just the basename; use the full file name. |
---|
| 2788 | shift |
---|
| 2789 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2790 | fi |
---|
| 2791 | fi |
---|
| 2792 | fi |
---|
| 2793 | fi |
---|
| 2794 | CC=$ac_cv_prog_CC |
---|
| 2795 | if test -n "$CC"; then |
---|
| 2796 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2797 | echo "${ECHO_T}$CC" >&6 |
---|
| 2798 | else |
---|
| 2799 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2800 | echo "${ECHO_T}no" >&6 |
---|
| 2801 | fi |
---|
| 2802 | |
---|
| 2803 | fi |
---|
| 2804 | if test -z "$CC"; then |
---|
| 2805 | if test -n "$ac_tool_prefix"; then |
---|
| 2806 | for ac_prog in cl |
---|
| 2807 | do |
---|
| 2808 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2809 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2810 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2812 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2814 | else |
---|
| 2815 | if test -n "$CC"; then |
---|
| 2816 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2817 | else |
---|
| 2818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2819 | for as_dir in $PATH |
---|
| 2820 | do |
---|
| 2821 | IFS=$as_save_IFS |
---|
| 2822 | test -z "$as_dir" && as_dir=. |
---|
| 2823 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2824 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2825 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2827 | break 2 |
---|
| 2828 | fi |
---|
| 2829 | done |
---|
| 2830 | done |
---|
| 2831 | |
---|
| 2832 | fi |
---|
| 2833 | fi |
---|
| 2834 | CC=$ac_cv_prog_CC |
---|
| 2835 | if test -n "$CC"; then |
---|
| 2836 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2837 | echo "${ECHO_T}$CC" >&6 |
---|
| 2838 | else |
---|
| 2839 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2840 | echo "${ECHO_T}no" >&6 |
---|
| 2841 | fi |
---|
| 2842 | |
---|
| 2843 | test -n "$CC" && break |
---|
| 2844 | done |
---|
| 2845 | fi |
---|
| 2846 | if test -z "$CC"; then |
---|
| 2847 | ac_ct_CC=$CC |
---|
| 2848 | for ac_prog in cl |
---|
| 2849 | do |
---|
| 2850 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2851 | set dummy $ac_prog; ac_word=$2 |
---|
| 2852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2854 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2856 | else |
---|
| 2857 | if test -n "$ac_ct_CC"; then |
---|
| 2858 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2859 | else |
---|
| 2860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2861 | for as_dir in $PATH |
---|
| 2862 | do |
---|
| 2863 | IFS=$as_save_IFS |
---|
| 2864 | test -z "$as_dir" && as_dir=. |
---|
| 2865 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2867 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2869 | break 2 |
---|
| 2870 | fi |
---|
| 2871 | done |
---|
| 2872 | done |
---|
| 2873 | |
---|
| 2874 | fi |
---|
| 2875 | fi |
---|
| 2876 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2877 | if test -n "$ac_ct_CC"; then |
---|
| 2878 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2879 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2880 | else |
---|
| 2881 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2882 | echo "${ECHO_T}no" >&6 |
---|
| 2883 | fi |
---|
| 2884 | |
---|
| 2885 | test -n "$ac_ct_CC" && break |
---|
| 2886 | done |
---|
| 2887 | |
---|
| 2888 | CC=$ac_ct_CC |
---|
| 2889 | fi |
---|
| 2890 | |
---|
| 2891 | fi |
---|
| 2892 | |
---|
| 2893 | |
---|
| 2894 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2895 | See \`config.log' for more details." >&5 |
---|
| 2896 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2897 | See \`config.log' for more details." >&2;} |
---|
| 2898 | { (exit 1); exit 1; }; } |
---|
| 2899 | |
---|
| 2900 | # Provide some information about the compiler. |
---|
| 2901 | echo "$as_me:$LINENO:" \ |
---|
| 2902 | "checking for C compiler version" >&5 |
---|
| 2903 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2904 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2905 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2906 | ac_status=$? |
---|
| 2907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2908 | (exit $ac_status); } |
---|
| 2909 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2910 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2911 | ac_status=$? |
---|
| 2912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2913 | (exit $ac_status); } |
---|
| 2914 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2915 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2916 | ac_status=$? |
---|
| 2917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2918 | (exit $ac_status); } |
---|
| 2919 | |
---|
| 2920 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2921 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2922 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2924 | else |
---|
| 2925 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2926 | /* confdefs.h. */ |
---|
| 2927 | _ACEOF |
---|
| 2928 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2929 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2930 | /* end confdefs.h. */ |
---|
| 2931 | |
---|
| 2932 | int |
---|
| 2933 | main () |
---|
| 2934 | { |
---|
| 2935 | #ifndef __GNUC__ |
---|
| 2936 | choke me |
---|
| 2937 | #endif |
---|
| 2938 | |
---|
| 2939 | ; |
---|
| 2940 | return 0; |
---|
| 2941 | } |
---|
| 2942 | _ACEOF |
---|
| 2943 | rm -f conftest.$ac_objext |
---|
| 2944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2945 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2946 | ac_status=$? |
---|
| 2947 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2948 | rm -f conftest.er1 |
---|
| 2949 | cat conftest.err >&5 |
---|
| 2950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2951 | (exit $ac_status); } && |
---|
| 2952 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2953 | || test ! -s conftest.err' |
---|
| 2954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2955 | (eval $ac_try) 2>&5 |
---|
| 2956 | ac_status=$? |
---|
| 2957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2958 | (exit $ac_status); }; } && |
---|
| 2959 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2961 | (eval $ac_try) 2>&5 |
---|
| 2962 | ac_status=$? |
---|
| 2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2964 | (exit $ac_status); }; }; then |
---|
| 2965 | ac_compiler_gnu=yes |
---|
| 2966 | else |
---|
| 2967 | echo "$as_me: failed program was:" >&5 |
---|
| 2968 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2969 | |
---|
| 2970 | ac_compiler_gnu=no |
---|
| 2971 | fi |
---|
| 2972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2973 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2974 | |
---|
| 2975 | fi |
---|
| 2976 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2977 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2978 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2979 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2980 | ac_save_CFLAGS=$CFLAGS |
---|
| 2981 | CFLAGS="-g" |
---|
| 2982 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2983 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2984 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2986 | else |
---|
| 2987 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2988 | /* confdefs.h. */ |
---|
| 2989 | _ACEOF |
---|
| 2990 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2991 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2992 | /* end confdefs.h. */ |
---|
| 2993 | |
---|
| 2994 | int |
---|
| 2995 | main () |
---|
| 2996 | { |
---|
| 2997 | |
---|
| 2998 | ; |
---|
| 2999 | return 0; |
---|
| 3000 | } |
---|
| 3001 | _ACEOF |
---|
| 3002 | rm -f conftest.$ac_objext |
---|
| 3003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3004 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3005 | ac_status=$? |
---|
| 3006 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3007 | rm -f conftest.er1 |
---|
| 3008 | cat conftest.err >&5 |
---|
| 3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3010 | (exit $ac_status); } && |
---|
| 3011 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3012 | || test ! -s conftest.err' |
---|
| 3013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3014 | (eval $ac_try) 2>&5 |
---|
| 3015 | ac_status=$? |
---|
| 3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3017 | (exit $ac_status); }; } && |
---|
| 3018 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3020 | (eval $ac_try) 2>&5 |
---|
| 3021 | ac_status=$? |
---|
| 3022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3023 | (exit $ac_status); }; }; then |
---|
| 3024 | ac_cv_prog_cc_g=yes |
---|
| 3025 | else |
---|
| 3026 | echo "$as_me: failed program was:" >&5 |
---|
| 3027 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3028 | |
---|
| 3029 | ac_cv_prog_cc_g=no |
---|
| 3030 | fi |
---|
| 3031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3032 | fi |
---|
| 3033 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 3034 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 3035 | if test "$ac_test_CFLAGS" = set; then |
---|
| 3036 | CFLAGS=$ac_save_CFLAGS |
---|
| 3037 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 3038 | if test "$GCC" = yes; then |
---|
| 3039 | CFLAGS="-g -O2" |
---|
| 3040 | else |
---|
| 3041 | CFLAGS="-g" |
---|
| 3042 | fi |
---|
| 3043 | else |
---|
| 3044 | if test "$GCC" = yes; then |
---|
| 3045 | CFLAGS="-O2" |
---|
| 3046 | else |
---|
| 3047 | CFLAGS= |
---|
| 3048 | fi |
---|
| 3049 | fi |
---|
| 3050 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 3051 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 3052 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 3053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3054 | else |
---|
| 3055 | ac_cv_prog_cc_stdc=no |
---|
| 3056 | ac_save_CC=$CC |
---|
| 3057 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3058 | /* confdefs.h. */ |
---|
| 3059 | _ACEOF |
---|
| 3060 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3061 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3062 | /* end confdefs.h. */ |
---|
| 3063 | #include <stdarg.h> |
---|
| 3064 | #include <stdio.h> |
---|
| 3065 | #include <sys/types.h> |
---|
| 3066 | #include <sys/stat.h> |
---|
| 3067 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 3068 | struct buf { int x; }; |
---|
| 3069 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 3070 | static char *e (p, i) |
---|
| 3071 | char **p; |
---|
| 3072 | int i; |
---|
| 3073 | { |
---|
| 3074 | return p[i]; |
---|
| 3075 | } |
---|
| 3076 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 3077 | { |
---|
| 3078 | char *s; |
---|
| 3079 | va_list v; |
---|
| 3080 | va_start (v,p); |
---|
| 3081 | s = g (p, va_arg (v,int)); |
---|
| 3082 | va_end (v); |
---|
| 3083 | return s; |
---|
| 3084 | } |
---|
| 3085 | |
---|
| 3086 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 3087 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 3088 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 3089 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 3090 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 3091 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 3092 | that's true only with -std1. */ |
---|
| 3093 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 3094 | |
---|
| 3095 | int test (int i, double x); |
---|
| 3096 | struct s1 {int (*f) (int a);}; |
---|
| 3097 | struct s2 {int (*f) (double a);}; |
---|
| 3098 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3099 | int argc; |
---|
| 3100 | char **argv; |
---|
| 3101 | int |
---|
| 3102 | main () |
---|
| 3103 | { |
---|
| 3104 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3105 | ; |
---|
| 3106 | return 0; |
---|
| 3107 | } |
---|
| 3108 | _ACEOF |
---|
| 3109 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3110 | # breaks some systems' header files. |
---|
| 3111 | # AIX -qlanglvl=ansi |
---|
| 3112 | # Ultrix and OSF/1 -std1 |
---|
| 3113 | # HP-UX 10.20 and later -Ae |
---|
| 3114 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3115 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3116 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3117 | do |
---|
| 3118 | CC="$ac_save_CC $ac_arg" |
---|
| 3119 | rm -f conftest.$ac_objext |
---|
| 3120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3121 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3122 | ac_status=$? |
---|
| 3123 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3124 | rm -f conftest.er1 |
---|
| 3125 | cat conftest.err >&5 |
---|
| 3126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3127 | (exit $ac_status); } && |
---|
| 3128 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3129 | || test ! -s conftest.err' |
---|
| 3130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3131 | (eval $ac_try) 2>&5 |
---|
| 3132 | ac_status=$? |
---|
| 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3134 | (exit $ac_status); }; } && |
---|
| 3135 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3137 | (eval $ac_try) 2>&5 |
---|
| 3138 | ac_status=$? |
---|
| 3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3140 | (exit $ac_status); }; }; then |
---|
| 3141 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3142 | break |
---|
| 3143 | else |
---|
| 3144 | echo "$as_me: failed program was:" >&5 |
---|
| 3145 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3146 | |
---|
| 3147 | fi |
---|
| 3148 | rm -f conftest.err conftest.$ac_objext |
---|
| 3149 | done |
---|
| 3150 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3151 | CC=$ac_save_CC |
---|
| 3152 | |
---|
| 3153 | fi |
---|
| 3154 | |
---|
| 3155 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3156 | x|xno) |
---|
| 3157 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3158 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3159 | *) |
---|
| 3160 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3161 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3162 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3163 | esac |
---|
| 3164 | |
---|
| 3165 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3166 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3167 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3168 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3169 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3170 | #ifndef __cplusplus |
---|
| 3171 | choke me |
---|
| 3172 | #endif |
---|
| 3173 | _ACEOF |
---|
| 3174 | rm -f conftest.$ac_objext |
---|
| 3175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3176 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3177 | ac_status=$? |
---|
| 3178 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3179 | rm -f conftest.er1 |
---|
| 3180 | cat conftest.err >&5 |
---|
| 3181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3182 | (exit $ac_status); } && |
---|
| 3183 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3184 | || test ! -s conftest.err' |
---|
| 3185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3186 | (eval $ac_try) 2>&5 |
---|
| 3187 | ac_status=$? |
---|
| 3188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3189 | (exit $ac_status); }; } && |
---|
| 3190 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3192 | (eval $ac_try) 2>&5 |
---|
| 3193 | ac_status=$? |
---|
| 3194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3195 | (exit $ac_status); }; }; then |
---|
| 3196 | for ac_declaration in \ |
---|
| 3197 | '' \ |
---|
| 3198 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3199 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3200 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3201 | 'extern "C" void exit (int);' \ |
---|
| 3202 | 'void exit (int);' |
---|
| 3203 | do |
---|
| 3204 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3205 | /* confdefs.h. */ |
---|
| 3206 | _ACEOF |
---|
| 3207 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3208 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3209 | /* end confdefs.h. */ |
---|
| 3210 | $ac_declaration |
---|
| 3211 | #include <stdlib.h> |
---|
| 3212 | int |
---|
| 3213 | main () |
---|
| 3214 | { |
---|
| 3215 | exit (42); |
---|
| 3216 | ; |
---|
| 3217 | return 0; |
---|
| 3218 | } |
---|
| 3219 | _ACEOF |
---|
| 3220 | rm -f conftest.$ac_objext |
---|
| 3221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3222 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3223 | ac_status=$? |
---|
| 3224 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3225 | rm -f conftest.er1 |
---|
| 3226 | cat conftest.err >&5 |
---|
| 3227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3228 | (exit $ac_status); } && |
---|
| 3229 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3230 | || test ! -s conftest.err' |
---|
| 3231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3232 | (eval $ac_try) 2>&5 |
---|
| 3233 | ac_status=$? |
---|
| 3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3235 | (exit $ac_status); }; } && |
---|
| 3236 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3238 | (eval $ac_try) 2>&5 |
---|
| 3239 | ac_status=$? |
---|
| 3240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3241 | (exit $ac_status); }; }; then |
---|
| 3242 | : |
---|
| 3243 | else |
---|
| 3244 | echo "$as_me: failed program was:" >&5 |
---|
| 3245 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3246 | |
---|
| 3247 | continue |
---|
| 3248 | fi |
---|
| 3249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3250 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3251 | /* confdefs.h. */ |
---|
| 3252 | _ACEOF |
---|
| 3253 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3254 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3255 | /* end confdefs.h. */ |
---|
| 3256 | $ac_declaration |
---|
| 3257 | int |
---|
| 3258 | main () |
---|
| 3259 | { |
---|
| 3260 | exit (42); |
---|
| 3261 | ; |
---|
| 3262 | return 0; |
---|
| 3263 | } |
---|
| 3264 | _ACEOF |
---|
| 3265 | rm -f conftest.$ac_objext |
---|
| 3266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3267 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3268 | ac_status=$? |
---|
| 3269 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3270 | rm -f conftest.er1 |
---|
| 3271 | cat conftest.err >&5 |
---|
| 3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3273 | (exit $ac_status); } && |
---|
| 3274 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3275 | || test ! -s conftest.err' |
---|
| 3276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3277 | (eval $ac_try) 2>&5 |
---|
| 3278 | ac_status=$? |
---|
| 3279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3280 | (exit $ac_status); }; } && |
---|
| 3281 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3283 | (eval $ac_try) 2>&5 |
---|
| 3284 | ac_status=$? |
---|
| 3285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3286 | (exit $ac_status); }; }; then |
---|
| 3287 | break |
---|
| 3288 | else |
---|
| 3289 | echo "$as_me: failed program was:" >&5 |
---|
| 3290 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3291 | |
---|
| 3292 | fi |
---|
| 3293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3294 | done |
---|
| 3295 | rm -f conftest* |
---|
| 3296 | if test -n "$ac_declaration"; then |
---|
| 3297 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3298 | echo $ac_declaration >>confdefs.h |
---|
| 3299 | echo '#endif' >>confdefs.h |
---|
| 3300 | fi |
---|
| 3301 | |
---|
| 3302 | else |
---|
| 3303 | echo "$as_me: failed program was:" >&5 |
---|
| 3304 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3305 | |
---|
| 3306 | fi |
---|
| 3307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3308 | ac_ext=c |
---|
| 3309 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3313 | |
---|
| 3314 | depcc="$CC" am_compiler_list= |
---|
| 3315 | |
---|
| 3316 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
| 3317 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
| 3318 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
| 3319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3320 | else |
---|
| 3321 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
| 3322 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
| 3323 | # making bogus files that we don't know about and never remove. For |
---|
| 3324 | # instance it was reported that on HP-UX the gcc test will end up |
---|
| 3325 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
| 3326 | # in D'. |
---|
| 3327 | mkdir conftest.dir |
---|
| 3328 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
| 3329 | # using a relative directory. |
---|
| 3330 | cp "$am_depcomp" conftest.dir |
---|
| 3331 | cd conftest.dir |
---|
| 3332 | # We will build objects and dependencies in a subdirectory because |
---|
| 3333 | # it helps to detect inapplicable dependency modes. For instance |
---|
| 3334 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
| 3335 | # side effect of compilation, but ICC will put the dependencies in |
---|
| 3336 | # the current directory while Tru64 will put them in the object |
---|
| 3337 | # directory. |
---|
| 3338 | mkdir sub |
---|
| 3339 | |
---|
| 3340 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3341 | if test "$am_compiler_list" = ""; then |
---|
| 3342 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
| 3343 | fi |
---|
| 3344 | for depmode in $am_compiler_list; do |
---|
| 3345 | # Setup a source with many dependencies, because some compilers |
---|
| 3346 | # like to wrap large dependency lists on column 80 (with \), and |
---|
| 3347 | # we should not choose a depcomp mode which is confused by this. |
---|
| 3348 | # |
---|
| 3349 | # We need to recreate these files for each test, as the compiler may |
---|
| 3350 | # overwrite some of them when testing with obscure command lines. |
---|
| 3351 | # This happens at least with the AIX C compiler. |
---|
| 3352 | : > sub/conftest.c |
---|
| 3353 | for i in 1 2 3 4 5 6; do |
---|
| 3354 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
[3746] | 3355 | : > sub/conftst$i.h |
---|
[1956] | 3356 | done |
---|
| 3357 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
| 3358 | |
---|
| 3359 | case $depmode in |
---|
| 3360 | nosideeffect) |
---|
| 3361 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
| 3362 | # only be used when explicitly requested |
---|
| 3363 | if test "x$enable_dependency_tracking" = xyes; then |
---|
| 3364 | continue |
---|
| 3365 | else |
---|
| 3366 | break |
---|
| 3367 | fi |
---|
| 3368 | ;; |
---|
| 3369 | none) break ;; |
---|
| 3370 | esac |
---|
| 3371 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
| 3372 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
| 3373 | # handle `-M -o', and we need to detect this. |
---|
| 3374 | if depmode=$depmode \ |
---|
| 3375 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
| 3376 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
| 3377 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
| 3378 | >/dev/null 2>conftest.err && |
---|
| 3379 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3380 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
| 3381 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
| 3382 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
[3746] | 3383 | # (even with -Werror). So we grep stderr for any message |
---|
| 3384 | # that says an option was ignored. |
---|
| 3385 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
[1956] | 3386 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
| 3387 | break |
---|
| 3388 | fi |
---|
| 3389 | fi |
---|
| 3390 | done |
---|
| 3391 | |
---|
| 3392 | cd .. |
---|
| 3393 | rm -rf conftest.dir |
---|
| 3394 | else |
---|
| 3395 | am_cv_CC_dependencies_compiler_type=none |
---|
| 3396 | fi |
---|
| 3397 | |
---|
| 3398 | fi |
---|
| 3399 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
| 3400 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
| 3401 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
| 3402 | |
---|
| 3403 | |
---|
| 3404 | |
---|
| 3405 | if |
---|
| 3406 | test "x$enable_dependency_tracking" != xno \ |
---|
| 3407 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
| 3408 | am__fastdepCC_TRUE= |
---|
| 3409 | am__fastdepCC_FALSE='#' |
---|
| 3410 | else |
---|
| 3411 | am__fastdepCC_TRUE='#' |
---|
| 3412 | am__fastdepCC_FALSE= |
---|
| 3413 | fi |
---|
| 3414 | |
---|
| 3415 | |
---|
| 3416 | |
---|
[1971] | 3417 | ac_ext=c |
---|
| 3418 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3422 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3423 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3424 | # On Suns, sometimes $CPP names a directory. |
---|
| 3425 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3426 | CPP= |
---|
| 3427 | fi |
---|
| 3428 | if test -z "$CPP"; then |
---|
| 3429 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
[1956] | 3430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3431 | else |
---|
[1971] | 3432 | # Double quotes because CPP needs to be expanded |
---|
| 3433 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3434 | do |
---|
| 3435 | ac_preproc_ok=false |
---|
| 3436 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3437 | do |
---|
| 3438 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3439 | # with a fresh cross-compiler works. |
---|
| 3440 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3441 | # <limits.h> exists even on freestanding compilers. |
---|
| 3442 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3443 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3444 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3445 | /* confdefs.h. */ |
---|
| 3446 | _ACEOF |
---|
| 3447 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3448 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3449 | /* end confdefs.h. */ |
---|
| 3450 | #ifdef __STDC__ |
---|
| 3451 | # include <limits.h> |
---|
| 3452 | #else |
---|
| 3453 | # include <assert.h> |
---|
| 3454 | #endif |
---|
| 3455 | Syntax error |
---|
| 3456 | _ACEOF |
---|
| 3457 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3458 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3459 | ac_status=$? |
---|
| 3460 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3461 | rm -f conftest.er1 |
---|
| 3462 | cat conftest.err >&5 |
---|
| 3463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3464 | (exit $ac_status); } >/dev/null; then |
---|
| 3465 | if test -s conftest.err; then |
---|
| 3466 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3467 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3468 | else |
---|
| 3469 | ac_cpp_err= |
---|
| 3470 | fi |
---|
| 3471 | else |
---|
| 3472 | ac_cpp_err=yes |
---|
| 3473 | fi |
---|
| 3474 | if test -z "$ac_cpp_err"; then |
---|
| 3475 | : |
---|
| 3476 | else |
---|
| 3477 | echo "$as_me: failed program was:" >&5 |
---|
| 3478 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3479 | |
---|
| 3480 | # Broken: fails on valid input. |
---|
| 3481 | continue |
---|
| 3482 | fi |
---|
| 3483 | rm -f conftest.err conftest.$ac_ext |
---|
| 3484 | |
---|
| 3485 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3486 | # can be detected and how. |
---|
| 3487 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3488 | /* confdefs.h. */ |
---|
| 3489 | _ACEOF |
---|
| 3490 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3491 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3492 | /* end confdefs.h. */ |
---|
| 3493 | #include <ac_nonexistent.h> |
---|
| 3494 | _ACEOF |
---|
| 3495 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3496 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3497 | ac_status=$? |
---|
| 3498 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3499 | rm -f conftest.er1 |
---|
| 3500 | cat conftest.err >&5 |
---|
| 3501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3502 | (exit $ac_status); } >/dev/null; then |
---|
| 3503 | if test -s conftest.err; then |
---|
| 3504 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3505 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3506 | else |
---|
| 3507 | ac_cpp_err= |
---|
| 3508 | fi |
---|
| 3509 | else |
---|
| 3510 | ac_cpp_err=yes |
---|
| 3511 | fi |
---|
| 3512 | if test -z "$ac_cpp_err"; then |
---|
| 3513 | # Broken: success on invalid input. |
---|
| 3514 | continue |
---|
| 3515 | else |
---|
| 3516 | echo "$as_me: failed program was:" >&5 |
---|
| 3517 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3518 | |
---|
| 3519 | # Passes both tests. |
---|
| 3520 | ac_preproc_ok=: |
---|
| 3521 | break |
---|
| 3522 | fi |
---|
| 3523 | rm -f conftest.err conftest.$ac_ext |
---|
| 3524 | |
---|
| 3525 | done |
---|
| 3526 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3527 | rm -f conftest.err conftest.$ac_ext |
---|
| 3528 | if $ac_preproc_ok; then |
---|
| 3529 | break |
---|
| 3530 | fi |
---|
| 3531 | |
---|
| 3532 | done |
---|
| 3533 | ac_cv_prog_CPP=$CPP |
---|
| 3534 | |
---|
| 3535 | fi |
---|
| 3536 | CPP=$ac_cv_prog_CPP |
---|
| 3537 | else |
---|
| 3538 | ac_cv_prog_CPP=$CPP |
---|
| 3539 | fi |
---|
| 3540 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3541 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3542 | ac_preproc_ok=false |
---|
| 3543 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3544 | do |
---|
| 3545 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3546 | # with a fresh cross-compiler works. |
---|
| 3547 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3548 | # <limits.h> exists even on freestanding compilers. |
---|
| 3549 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3550 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3551 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3552 | /* confdefs.h. */ |
---|
| 3553 | _ACEOF |
---|
| 3554 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3555 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3556 | /* end confdefs.h. */ |
---|
| 3557 | #ifdef __STDC__ |
---|
| 3558 | # include <limits.h> |
---|
| 3559 | #else |
---|
| 3560 | # include <assert.h> |
---|
| 3561 | #endif |
---|
| 3562 | Syntax error |
---|
| 3563 | _ACEOF |
---|
| 3564 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3565 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3566 | ac_status=$? |
---|
| 3567 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3568 | rm -f conftest.er1 |
---|
| 3569 | cat conftest.err >&5 |
---|
| 3570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3571 | (exit $ac_status); } >/dev/null; then |
---|
| 3572 | if test -s conftest.err; then |
---|
| 3573 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3574 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3575 | else |
---|
| 3576 | ac_cpp_err= |
---|
| 3577 | fi |
---|
| 3578 | else |
---|
| 3579 | ac_cpp_err=yes |
---|
| 3580 | fi |
---|
| 3581 | if test -z "$ac_cpp_err"; then |
---|
| 3582 | : |
---|
| 3583 | else |
---|
| 3584 | echo "$as_me: failed program was:" >&5 |
---|
| 3585 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3586 | |
---|
| 3587 | # Broken: fails on valid input. |
---|
| 3588 | continue |
---|
| 3589 | fi |
---|
| 3590 | rm -f conftest.err conftest.$ac_ext |
---|
| 3591 | |
---|
| 3592 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3593 | # can be detected and how. |
---|
| 3594 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3595 | /* confdefs.h. */ |
---|
| 3596 | _ACEOF |
---|
| 3597 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3598 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3599 | /* end confdefs.h. */ |
---|
| 3600 | #include <ac_nonexistent.h> |
---|
| 3601 | _ACEOF |
---|
| 3602 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3603 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3604 | ac_status=$? |
---|
| 3605 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3606 | rm -f conftest.er1 |
---|
| 3607 | cat conftest.err >&5 |
---|
| 3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3609 | (exit $ac_status); } >/dev/null; then |
---|
| 3610 | if test -s conftest.err; then |
---|
| 3611 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3612 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3613 | else |
---|
| 3614 | ac_cpp_err= |
---|
| 3615 | fi |
---|
| 3616 | else |
---|
| 3617 | ac_cpp_err=yes |
---|
| 3618 | fi |
---|
| 3619 | if test -z "$ac_cpp_err"; then |
---|
| 3620 | # Broken: success on invalid input. |
---|
| 3621 | continue |
---|
| 3622 | else |
---|
| 3623 | echo "$as_me: failed program was:" >&5 |
---|
| 3624 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3625 | |
---|
| 3626 | # Passes both tests. |
---|
| 3627 | ac_preproc_ok=: |
---|
| 3628 | break |
---|
| 3629 | fi |
---|
| 3630 | rm -f conftest.err conftest.$ac_ext |
---|
| 3631 | |
---|
| 3632 | done |
---|
| 3633 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3634 | rm -f conftest.err conftest.$ac_ext |
---|
| 3635 | if $ac_preproc_ok; then |
---|
| 3636 | : |
---|
| 3637 | else |
---|
| 3638 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3639 | See \`config.log' for more details." >&5 |
---|
| 3640 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3641 | See \`config.log' for more details." >&2;} |
---|
| 3642 | { (exit 1); exit 1; }; } |
---|
| 3643 | fi |
---|
| 3644 | |
---|
| 3645 | ac_ext=c |
---|
| 3646 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3647 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3648 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3649 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3650 | |
---|
| 3651 | |
---|
| 3652 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3653 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3654 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3656 | else |
---|
| 3657 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3658 | then ac_cv_prog_egrep='grep -E' |
---|
| 3659 | else ac_cv_prog_egrep='egrep' |
---|
| 3660 | fi |
---|
| 3661 | fi |
---|
| 3662 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3663 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3664 | EGREP=$ac_cv_prog_egrep |
---|
| 3665 | |
---|
| 3666 | |
---|
| 3667 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3668 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3669 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3671 | else |
---|
| 3672 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3673 | /* confdefs.h. */ |
---|
| 3674 | _ACEOF |
---|
| 3675 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3676 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3677 | /* end confdefs.h. */ |
---|
| 3678 | #include <stdlib.h> |
---|
| 3679 | #include <stdarg.h> |
---|
| 3680 | #include <string.h> |
---|
| 3681 | #include <float.h> |
---|
| 3682 | |
---|
| 3683 | int |
---|
| 3684 | main () |
---|
| 3685 | { |
---|
| 3686 | |
---|
| 3687 | ; |
---|
| 3688 | return 0; |
---|
| 3689 | } |
---|
| 3690 | _ACEOF |
---|
| 3691 | rm -f conftest.$ac_objext |
---|
| 3692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3693 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3694 | ac_status=$? |
---|
| 3695 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3696 | rm -f conftest.er1 |
---|
| 3697 | cat conftest.err >&5 |
---|
| 3698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3699 | (exit $ac_status); } && |
---|
| 3700 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3701 | || test ! -s conftest.err' |
---|
| 3702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3703 | (eval $ac_try) 2>&5 |
---|
| 3704 | ac_status=$? |
---|
| 3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3706 | (exit $ac_status); }; } && |
---|
| 3707 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3709 | (eval $ac_try) 2>&5 |
---|
| 3710 | ac_status=$? |
---|
| 3711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3712 | (exit $ac_status); }; }; then |
---|
| 3713 | ac_cv_header_stdc=yes |
---|
| 3714 | else |
---|
| 3715 | echo "$as_me: failed program was:" >&5 |
---|
| 3716 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3717 | |
---|
| 3718 | ac_cv_header_stdc=no |
---|
| 3719 | fi |
---|
| 3720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3721 | |
---|
| 3722 | if test $ac_cv_header_stdc = yes; then |
---|
| 3723 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3724 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3725 | /* confdefs.h. */ |
---|
| 3726 | _ACEOF |
---|
| 3727 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3728 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3729 | /* end confdefs.h. */ |
---|
| 3730 | #include <string.h> |
---|
| 3731 | |
---|
| 3732 | _ACEOF |
---|
| 3733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3734 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3735 | : |
---|
| 3736 | else |
---|
| 3737 | ac_cv_header_stdc=no |
---|
| 3738 | fi |
---|
| 3739 | rm -f conftest* |
---|
| 3740 | |
---|
| 3741 | fi |
---|
| 3742 | |
---|
| 3743 | if test $ac_cv_header_stdc = yes; then |
---|
| 3744 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3745 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3746 | /* confdefs.h. */ |
---|
| 3747 | _ACEOF |
---|
| 3748 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3749 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3750 | /* end confdefs.h. */ |
---|
| 3751 | #include <stdlib.h> |
---|
| 3752 | |
---|
| 3753 | _ACEOF |
---|
| 3754 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3755 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3756 | : |
---|
| 3757 | else |
---|
| 3758 | ac_cv_header_stdc=no |
---|
| 3759 | fi |
---|
| 3760 | rm -f conftest* |
---|
| 3761 | |
---|
| 3762 | fi |
---|
| 3763 | |
---|
| 3764 | if test $ac_cv_header_stdc = yes; then |
---|
| 3765 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3766 | if test "$cross_compiling" = yes; then |
---|
| 3767 | : |
---|
| 3768 | else |
---|
| 3769 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3770 | /* confdefs.h. */ |
---|
| 3771 | _ACEOF |
---|
| 3772 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3773 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3774 | /* end confdefs.h. */ |
---|
| 3775 | #include <ctype.h> |
---|
| 3776 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3777 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3778 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3779 | #else |
---|
| 3780 | # define ISLOWER(c) \ |
---|
| 3781 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3782 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3783 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3784 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3785 | #endif |
---|
| 3786 | |
---|
| 3787 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3788 | int |
---|
| 3789 | main () |
---|
| 3790 | { |
---|
| 3791 | int i; |
---|
| 3792 | for (i = 0; i < 256; i++) |
---|
| 3793 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3794 | || toupper (i) != TOUPPER (i)) |
---|
| 3795 | exit(2); |
---|
| 3796 | exit (0); |
---|
| 3797 | } |
---|
| 3798 | _ACEOF |
---|
| 3799 | rm -f conftest$ac_exeext |
---|
| 3800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3801 | (eval $ac_link) 2>&5 |
---|
| 3802 | ac_status=$? |
---|
| 3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3806 | (eval $ac_try) 2>&5 |
---|
| 3807 | ac_status=$? |
---|
| 3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3809 | (exit $ac_status); }; }; then |
---|
| 3810 | : |
---|
| 3811 | else |
---|
| 3812 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3813 | echo "$as_me: failed program was:" >&5 |
---|
| 3814 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3815 | |
---|
| 3816 | ( exit $ac_status ) |
---|
| 3817 | ac_cv_header_stdc=no |
---|
| 3818 | fi |
---|
| 3819 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3820 | fi |
---|
| 3821 | fi |
---|
| 3822 | fi |
---|
| 3823 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3824 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3825 | if test $ac_cv_header_stdc = yes; then |
---|
| 3826 | |
---|
| 3827 | cat >>confdefs.h <<\_ACEOF |
---|
| 3828 | #define STDC_HEADERS 1 |
---|
| 3829 | _ACEOF |
---|
| 3830 | |
---|
| 3831 | fi |
---|
| 3832 | |
---|
| 3833 | |
---|
[3499] | 3834 | ################################## |
---|
| 3835 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
| 3836 | ################################## |
---|
| 3837 | |
---|
| 3838 | #-----------------# |
---|
| 3839 | # DEBUG-statement # |
---|
| 3840 | #-----------------# |
---|
[3173] | 3841 | DEBUG=no |
---|
| 3842 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
| 3843 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3844 | # Check whether --enable-debug or --disable-debug was given. |
---|
| 3845 | if test "${enable_debug+set}" = set; then |
---|
| 3846 | enableval="$enable_debug" |
---|
[3205] | 3847 | DEBUG=$enableval |
---|
[3173] | 3848 | fi; |
---|
| 3849 | |
---|
[3499] | 3850 | if test x$DEBUG = xno; then |
---|
[3205] | 3851 | echo "no" |
---|
[3605] | 3852 | echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." |
---|
| 3853 | DEBUG=4 |
---|
[3499] | 3854 | elif test x$DEBUG = xyes; then |
---|
[3205] | 3855 | echo "yes" |
---|
[3499] | 3856 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
| 3857 | DEBUG=4 |
---|
[3205] | 3858 | else |
---|
[3499] | 3859 | echo "yes: setting debuglevel to to $DEBUG" |
---|
[3205] | 3860 | fi |
---|
| 3861 | |
---|
[3173] | 3862 | cat >>confdefs.h <<_ACEOF |
---|
[3205] | 3863 | #define DEBUG $DEBUG |
---|
[3173] | 3864 | _ACEOF |
---|
| 3865 | |
---|
| 3866 | |
---|
| 3867 | |
---|
| 3868 | |
---|
[3605] | 3869 | #---------------# |
---|
| 3870 | # Modular Debug # |
---|
| 3871 | #---------------# |
---|
| 3872 | MODULAR_DEBUG=yes |
---|
| 3873 | echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 |
---|
| 3874 | echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 |
---|
| 3875 | # Check whether --enable-modular-debug or --disable-modular-debug was given. |
---|
| 3876 | if test "${enable_modular_debug+set}" = set; then |
---|
| 3877 | enableval="$enable_modular_debug" |
---|
| 3878 | MODULAR_DEBUG=$enableval |
---|
| 3879 | fi; |
---|
| 3880 | |
---|
| 3881 | if test x$MODULAR_DEBUG = xno; then |
---|
| 3882 | echo "no" |
---|
| 3883 | elif test x$MODULAR_DEBUG = xyes; then |
---|
| 3884 | echo "yes" |
---|
| 3885 | |
---|
| 3886 | cat >>confdefs.h <<_ACEOF |
---|
| 3887 | #define MODULAR_DEBUG 1 |
---|
| 3888 | _ACEOF |
---|
| 3889 | |
---|
| 3890 | fi |
---|
| 3891 | |
---|
[3499] | 3892 | #--------------# |
---|
| 3893 | # GTK-disabled # |
---|
| 3894 | #--------------# |
---|
[3100] | 3895 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
| 3896 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3897 | |
---|
| 3898 | # Check whether --with-gtk or --without-gtk was given. |
---|
| 3899 | if test "${with_gtk+set}" = set; then |
---|
| 3900 | withval="$with_gtk" |
---|
[3100] | 3901 | def_gtk=no |
---|
[3205] | 3902 | else |
---|
| 3903 | def_gtk=yes |
---|
[3100] | 3904 | fi; |
---|
[3499] | 3905 | if test x$def_gtk = xyes; then |
---|
[3100] | 3906 | echo "yes" |
---|
| 3907 | fi |
---|
[3499] | 3908 | if test x$def_gtk = xno; then |
---|
[3100] | 3909 | echo "no" |
---|
| 3910 | fi |
---|
[3499] | 3911 | |
---|
| 3912 | #------------------# |
---|
| 3913 | # gThread-disabled # |
---|
| 3914 | #------------------# |
---|
| 3915 | echo "$as_me:$LINENO: checking if gThread should be enabled" >&5 |
---|
| 3916 | echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6 |
---|
| 3917 | |
---|
| 3918 | # Check whether --with-gthread or --without-gthread was given. |
---|
| 3919 | if test "${with_gthread+set}" = set; then |
---|
| 3920 | withval="$with_gthread" |
---|
| 3921 | def_gthread=no |
---|
| 3922 | else |
---|
| 3923 | def_gthread=yes |
---|
| 3924 | fi; |
---|
| 3925 | if test x$def_gthread = xyes; then |
---|
| 3926 | echo "yes" |
---|
| 3927 | fi |
---|
| 3928 | if test x$def_gthread = xno; then |
---|
| 3929 | echo "no" |
---|
| 3930 | fi |
---|
| 3931 | |
---|
| 3932 | #------------------# |
---|
| 3933 | # pthread-disabled # |
---|
| 3934 | #------------------# |
---|
| 3935 | echo "$as_me:$LINENO: checking if pthread should be enabled" >&5 |
---|
| 3936 | echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6 |
---|
| 3937 | |
---|
| 3938 | # Check whether --with-pthread or --without-pthread was given. |
---|
| 3939 | if test "${with_pthread+set}" = set; then |
---|
| 3940 | withval="$with_pthread" |
---|
| 3941 | def_pthread=no |
---|
| 3942 | else |
---|
| 3943 | def_pthread=yes |
---|
| 3944 | fi; |
---|
| 3945 | if test x$def_pthread = xyes; then |
---|
| 3946 | echo "yes" |
---|
| 3947 | fi |
---|
| 3948 | if test x$def_pthread = xno; then |
---|
| 3949 | echo "no" |
---|
| 3950 | fi |
---|
| 3951 | |
---|
| 3952 | #------------------# |
---|
| 3953 | # libCurl-disabled # |
---|
| 3954 | #------------------# |
---|
| 3955 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
| 3956 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
| 3957 | |
---|
| 3958 | # Check whether --with-curl or --without-curl was given. |
---|
| 3959 | if test "${with_curl+set}" = set; then |
---|
| 3960 | withval="$with_curl" |
---|
| 3961 | def_curl=no |
---|
| 3962 | else |
---|
| 3963 | def_curl=yes |
---|
| 3964 | fi; |
---|
| 3965 | if test x$def_curl = xyes; then |
---|
| 3966 | echo "yes" |
---|
| 3967 | fi |
---|
| 3968 | if test x$def_curl = xno; then |
---|
| 3969 | echo "no" |
---|
| 3970 | fi |
---|
| 3971 | |
---|
| 3972 | #-------------------# |
---|
| 3973 | # SDL_image-disable # |
---|
| 3974 | #-------------------# |
---|
[3140] | 3975 | def_sdl_image=yes |
---|
| 3976 | echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5 |
---|
| 3977 | echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6 |
---|
[3181] | 3978 | |
---|
| 3979 | # Check whether --with-sdl_image or --without-sdl_image was given. |
---|
| 3980 | if test "${with_sdl_image+set}" = set; then |
---|
| 3981 | withval="$with_sdl_image" |
---|
[3140] | 3982 | def_sdl_image=no |
---|
| 3983 | fi; |
---|
[3499] | 3984 | if test x$def_sdl_image = xyes; then |
---|
[3140] | 3985 | echo "yes" |
---|
| 3986 | fi |
---|
[3499] | 3987 | if test x$def_sdl_image = xno; then |
---|
[3140] | 3988 | echo "no" |
---|
| 3989 | fi |
---|
[3605] | 3990 | |
---|
[3499] | 3991 | #-------------------# |
---|
| 3992 | # SubProject-enable # |
---|
| 3993 | #-------------------# |
---|
| 3994 | def_sub_projects=no |
---|
[3377] | 3995 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
| 3996 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
| 3997 | # Check whether --enable-sub-projects or --disable-sub-projects was given. |
---|
| 3998 | if test "${enable_sub_projects+set}" = set; then |
---|
| 3999 | enableval="$enable_sub_projects" |
---|
| 4000 | def_sub_projects=yes |
---|
| 4001 | fi; |
---|
[3499] | 4002 | if test x$def_sub_projects = xyes; then |
---|
[3377] | 4003 | echo "yes" |
---|
| 4004 | fi |
---|
[3499] | 4005 | if test x$def_sub_projects = xno; then |
---|
[3377] | 4006 | echo "no" |
---|
| 4007 | fi |
---|
| 4008 | |
---|
| 4009 | |
---|
| 4010 | if test x$def_sub_projects = xyes; then |
---|
| 4011 | SUB_PROJECTS_TRUE= |
---|
| 4012 | SUB_PROJECTS_FALSE='#' |
---|
| 4013 | else |
---|
| 4014 | SUB_PROJECTS_TRUE='#' |
---|
| 4015 | SUB_PROJECTS_FALSE= |
---|
| 4016 | fi |
---|
| 4017 | |
---|
| 4018 | |
---|
[3605] | 4019 | #----------------------# |
---|
| 4020 | # Documentation-enable # |
---|
| 4021 | #----------------------# |
---|
| 4022 | def_documentation=no |
---|
| 4023 | echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 |
---|
| 4024 | echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 |
---|
| 4025 | # Check whether --enable-documentation or --disable-documentation was given. |
---|
| 4026 | if test "${enable_documentation+set}" = set; then |
---|
| 4027 | enableval="$enable_documentation" |
---|
| 4028 | def_documentation=yes |
---|
| 4029 | fi; |
---|
| 4030 | if test x$def_documentation = xyes; then |
---|
| 4031 | echo "yes" |
---|
| 4032 | fi |
---|
| 4033 | if test x$def_documentation = xno; then |
---|
| 4034 | echo "no" |
---|
| 4035 | fi |
---|
| 4036 | |
---|
| 4037 | |
---|
| 4038 | if test x$def_documentation = xyes; then |
---|
| 4039 | DOCUMENTATION_TRUE= |
---|
| 4040 | DOCUMENTATION_FALSE='#' |
---|
| 4041 | else |
---|
| 4042 | DOCUMENTATION_TRUE='#' |
---|
| 4043 | DOCUMENTATION_FALSE= |
---|
| 4044 | fi |
---|
| 4045 | |
---|
[3499] | 4046 | ####################### |
---|
| 4047 | ## PROGRAMM CHECKING ## |
---|
| 4048 | ## 3. party Programs ## |
---|
| 4049 | ####################### |
---|
| 4050 | |
---|
| 4051 | #----------------------# |
---|
| 4052 | # checking for Doxygen # |
---|
| 4053 | #----------------------# |
---|
[3219] | 4054 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
| 4055 | set dummy doxygen; ac_word=$2 |
---|
| 4056 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 4057 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 4058 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
| 4059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4060 | else |
---|
| 4061 | case $DOXYGEN in |
---|
| 4062 | [\\/]* | ?:[\\/]*) |
---|
| 4063 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
| 4064 | ;; |
---|
| 4065 | *) |
---|
| 4066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4067 | for as_dir in $PATH |
---|
| 4068 | do |
---|
| 4069 | IFS=$as_save_IFS |
---|
| 4070 | test -z "$as_dir" && as_dir=. |
---|
| 4071 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 4072 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 4073 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
| 4074 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 4075 | break 2 |
---|
| 4076 | fi |
---|
| 4077 | done |
---|
| 4078 | done |
---|
| 4079 | |
---|
| 4080 | ;; |
---|
| 4081 | esac |
---|
| 4082 | fi |
---|
| 4083 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
| 4084 | |
---|
| 4085 | if test -n "$DOXYGEN"; then |
---|
| 4086 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
| 4087 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
| 4088 | else |
---|
| 4089 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4090 | echo "${ECHO_T}no" >&6 |
---|
| 4091 | fi |
---|
| 4092 | |
---|
| 4093 | |
---|
| 4094 | |
---|
| 4095 | if test $DOXYGEN; then |
---|
| 4096 | DOXYGEN_TRUE= |
---|
| 4097 | DOXYGEN_FALSE='#' |
---|
| 4098 | else |
---|
| 4099 | DOXYGEN_TRUE='#' |
---|
| 4100 | DOXYGEN_FALSE= |
---|
| 4101 | fi |
---|
| 4102 | |
---|
| 4103 | |
---|
[3499] | 4104 | ######################### |
---|
| 4105 | ## CHECKING FOR SYSTEM ## |
---|
| 4106 | ######################### |
---|
| 4107 | ## here the system is checked, and openGL is included |
---|
| 4108 | ## also checking for SDL on differen Systems |
---|
[1971] | 4109 | |
---|
[2925] | 4110 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
| 4111 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
[2980] | 4112 | ## checking for openGL-environment and other sys-specific parameters |
---|
| 4113 | case "$target" in |
---|
[3499] | 4114 | #---------# |
---|
| 4115 | # WINDOWS # |
---|
| 4116 | #---------# |
---|
[2980] | 4117 | *-*-mingw32*) |
---|
[2925] | 4118 | echo "mingw-WINDOWS detected" |
---|
[1971] | 4119 | |
---|
[2925] | 4120 | mingw="yes" |
---|
| 4121 | MSBITFIELDS="-mms-bitfields" |
---|
| 4122 | MWINDOWS="-mwindows" |
---|
[1971] | 4123 | |
---|
[2925] | 4124 | # checking gl header |
---|
| 4125 | #done before loop |
---|
[1971] | 4126 | |
---|
[2968] | 4127 | # checking gl header |
---|
[2925] | 4128 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
[1971] | 4129 | |
---|
| 4130 | |
---|
| 4131 | |
---|
| 4132 | |
---|
[2925] | 4133 | |
---|
| 4134 | |
---|
| 4135 | |
---|
| 4136 | |
---|
| 4137 | |
---|
[1971] | 4138 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 4139 | inttypes.h stdint.h unistd.h |
---|
| 4140 | do |
---|
| 4141 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4142 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4143 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4144 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4146 | else |
---|
| 4147 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4148 | /* confdefs.h. */ |
---|
| 4149 | _ACEOF |
---|
| 4150 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4151 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4152 | /* end confdefs.h. */ |
---|
| 4153 | $ac_includes_default |
---|
| 4154 | |
---|
| 4155 | #include <$ac_header> |
---|
| 4156 | _ACEOF |
---|
| 4157 | rm -f conftest.$ac_objext |
---|
| 4158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4159 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4160 | ac_status=$? |
---|
| 4161 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4162 | rm -f conftest.er1 |
---|
| 4163 | cat conftest.err >&5 |
---|
| 4164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4165 | (exit $ac_status); } && |
---|
| 4166 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4167 | || test ! -s conftest.err' |
---|
| 4168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4169 | (eval $ac_try) 2>&5 |
---|
| 4170 | ac_status=$? |
---|
| 4171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4172 | (exit $ac_status); }; } && |
---|
| 4173 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4175 | (eval $ac_try) 2>&5 |
---|
| 4176 | ac_status=$? |
---|
| 4177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4178 | (exit $ac_status); }; }; then |
---|
| 4179 | eval "$as_ac_Header=yes" |
---|
| 4180 | else |
---|
| 4181 | echo "$as_me: failed program was:" >&5 |
---|
| 4182 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4183 | |
---|
| 4184 | eval "$as_ac_Header=no" |
---|
| 4185 | fi |
---|
| 4186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4187 | fi |
---|
| 4188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4189 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4190 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4191 | cat >>confdefs.h <<_ACEOF |
---|
| 4192 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4193 | _ACEOF |
---|
| 4194 | |
---|
| 4195 | fi |
---|
| 4196 | |
---|
| 4197 | done |
---|
| 4198 | |
---|
| 4199 | |
---|
| 4200 | |
---|
[2879] | 4201 | for ac_header in GL/gl.h |
---|
| 4202 | do |
---|
| 4203 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4205 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4207 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4209 | fi |
---|
| 4210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4212 | else |
---|
| 4213 | # Is the header compilable? |
---|
| 4214 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4215 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4216 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4217 | /* confdefs.h. */ |
---|
| 4218 | _ACEOF |
---|
| 4219 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4220 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4221 | /* end confdefs.h. */ |
---|
| 4222 | $ac_includes_default |
---|
| 4223 | #include <$ac_header> |
---|
| 4224 | _ACEOF |
---|
| 4225 | rm -f conftest.$ac_objext |
---|
| 4226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4227 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4228 | ac_status=$? |
---|
| 4229 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4230 | rm -f conftest.er1 |
---|
| 4231 | cat conftest.err >&5 |
---|
| 4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4233 | (exit $ac_status); } && |
---|
| 4234 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4235 | || test ! -s conftest.err' |
---|
| 4236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4237 | (eval $ac_try) 2>&5 |
---|
| 4238 | ac_status=$? |
---|
| 4239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4240 | (exit $ac_status); }; } && |
---|
| 4241 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4243 | (eval $ac_try) 2>&5 |
---|
| 4244 | ac_status=$? |
---|
| 4245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4246 | (exit $ac_status); }; }; then |
---|
| 4247 | ac_header_compiler=yes |
---|
| 4248 | else |
---|
| 4249 | echo "$as_me: failed program was:" >&5 |
---|
| 4250 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4251 | |
---|
| 4252 | ac_header_compiler=no |
---|
| 4253 | fi |
---|
| 4254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4255 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4256 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4257 | |
---|
| 4258 | # Is the header present? |
---|
| 4259 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4260 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4261 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4262 | /* confdefs.h. */ |
---|
| 4263 | _ACEOF |
---|
| 4264 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4265 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4266 | /* end confdefs.h. */ |
---|
| 4267 | #include <$ac_header> |
---|
| 4268 | _ACEOF |
---|
| 4269 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4270 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4271 | ac_status=$? |
---|
| 4272 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4273 | rm -f conftest.er1 |
---|
| 4274 | cat conftest.err >&5 |
---|
| 4275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4276 | (exit $ac_status); } >/dev/null; then |
---|
| 4277 | if test -s conftest.err; then |
---|
| 4278 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4279 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4280 | else |
---|
| 4281 | ac_cpp_err= |
---|
| 4282 | fi |
---|
| 4283 | else |
---|
| 4284 | ac_cpp_err=yes |
---|
| 4285 | fi |
---|
| 4286 | if test -z "$ac_cpp_err"; then |
---|
| 4287 | ac_header_preproc=yes |
---|
| 4288 | else |
---|
| 4289 | echo "$as_me: failed program was:" >&5 |
---|
| 4290 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4291 | |
---|
| 4292 | ac_header_preproc=no |
---|
| 4293 | fi |
---|
| 4294 | rm -f conftest.err conftest.$ac_ext |
---|
| 4295 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4296 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4297 | |
---|
| 4298 | # So? What about this header? |
---|
| 4299 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4300 | yes:no: ) |
---|
| 4301 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4302 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4304 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4305 | ac_header_preproc=yes |
---|
| 4306 | ;; |
---|
| 4307 | no:yes:* ) |
---|
| 4308 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4309 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4310 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4311 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4312 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4313 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4314 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4315 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4316 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4317 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4318 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4319 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4320 | ( |
---|
| 4321 | cat <<\_ASBOX |
---|
[3240] | 4322 | ## ---------------------------------------------- ## |
---|
| 4323 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4324 | ## ---------------------------------------------- ## |
---|
[2879] | 4325 | _ASBOX |
---|
| 4326 | ) | |
---|
| 4327 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4328 | ;; |
---|
| 4329 | esac |
---|
| 4330 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4331 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4332 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4334 | else |
---|
| 4335 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4336 | fi |
---|
| 4337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4338 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4339 | |
---|
| 4340 | fi |
---|
| 4341 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4342 | cat >>confdefs.h <<_ACEOF |
---|
| 4343 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4344 | _ACEOF |
---|
| 4345 | |
---|
| 4346 | else |
---|
| 4347 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4348 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4349 | { (exit 1); exit 1; }; } |
---|
| 4350 | fi |
---|
| 4351 | |
---|
| 4352 | done |
---|
| 4353 | |
---|
[2701] | 4354 | # checking for Windows openGl library |
---|
[1971] | 4355 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
| 4356 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
| 4357 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
[1959] | 4358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4359 | else |
---|
| 4360 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4361 | LIBS="-lopengl32 $LIBS" |
---|
| 4362 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4363 | /* confdefs.h. */ |
---|
[1956] | 4364 | _ACEOF |
---|
[1959] | 4365 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4366 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4367 | /* end confdefs.h. */ |
---|
[1956] | 4368 | |
---|
[1971] | 4369 | |
---|
[1959] | 4370 | int |
---|
| 4371 | main () |
---|
| 4372 | { |
---|
[1971] | 4373 | main (); |
---|
[1959] | 4374 | ; |
---|
| 4375 | return 0; |
---|
| 4376 | } |
---|
| 4377 | _ACEOF |
---|
| 4378 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4380 | (eval $ac_link) 2>conftest.er1 |
---|
| 4381 | ac_status=$? |
---|
| 4382 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4383 | rm -f conftest.er1 |
---|
| 4384 | cat conftest.err >&5 |
---|
| 4385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4386 | (exit $ac_status); } && |
---|
| 4387 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4388 | || test ! -s conftest.err' |
---|
| 4389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4390 | (eval $ac_try) 2>&5 |
---|
| 4391 | ac_status=$? |
---|
| 4392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4393 | (exit $ac_status); }; } && |
---|
| 4394 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4396 | (eval $ac_try) 2>&5 |
---|
| 4397 | ac_status=$? |
---|
| 4398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4399 | (exit $ac_status); }; }; then |
---|
[1971] | 4400 | ac_cv_lib_opengl32_main=yes |
---|
[1959] | 4401 | else |
---|
| 4402 | echo "$as_me: failed program was:" >&5 |
---|
| 4403 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4404 | |
---|
[1971] | 4405 | ac_cv_lib_opengl32_main=no |
---|
[1956] | 4406 | fi |
---|
[1959] | 4407 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4408 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4409 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4410 | fi |
---|
[1971] | 4411 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
| 4412 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
| 4413 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
| 4414 | FOUND_opengl32=yes |
---|
| 4415 | else |
---|
| 4416 | "gl/gl.h" |
---|
[1959] | 4417 | fi |
---|
[1956] | 4418 | |
---|
[3499] | 4419 | if test x$FOUND_opengl32 = xyes ; then |
---|
[1959] | 4420 | LIBS="$LIBS -lopengl32" |
---|
[1971] | 4421 | else |
---|
[1959] | 4422 | echo "------------------" |
---|
| 4423 | echo "opengl not found." |
---|
| 4424 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 4425 | echo "------------------" |
---|
| 4426 | exit -1 |
---|
| 4427 | fi |
---|
| 4428 | |
---|
[2701] | 4429 | # cheking for GLU-header |
---|
[1971] | 4430 | |
---|
| 4431 | for ac_header in GL/glu.h |
---|
| 4432 | do |
---|
| 4433 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4434 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4435 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4436 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4439 | fi |
---|
| 4440 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4441 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4442 | else |
---|
| 4443 | # Is the header compilable? |
---|
| 4444 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4445 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4446 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4447 | /* confdefs.h. */ |
---|
| 4448 | _ACEOF |
---|
| 4449 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4450 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4451 | /* end confdefs.h. */ |
---|
| 4452 | $ac_includes_default |
---|
| 4453 | #include <$ac_header> |
---|
| 4454 | _ACEOF |
---|
| 4455 | rm -f conftest.$ac_objext |
---|
| 4456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4457 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4458 | ac_status=$? |
---|
| 4459 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4460 | rm -f conftest.er1 |
---|
| 4461 | cat conftest.err >&5 |
---|
| 4462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4463 | (exit $ac_status); } && |
---|
| 4464 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4465 | || test ! -s conftest.err' |
---|
| 4466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4467 | (eval $ac_try) 2>&5 |
---|
| 4468 | ac_status=$? |
---|
| 4469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4470 | (exit $ac_status); }; } && |
---|
| 4471 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4473 | (eval $ac_try) 2>&5 |
---|
| 4474 | ac_status=$? |
---|
| 4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4476 | (exit $ac_status); }; }; then |
---|
| 4477 | ac_header_compiler=yes |
---|
| 4478 | else |
---|
| 4479 | echo "$as_me: failed program was:" >&5 |
---|
| 4480 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4481 | |
---|
| 4482 | ac_header_compiler=no |
---|
| 4483 | fi |
---|
| 4484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4485 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4486 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4487 | |
---|
| 4488 | # Is the header present? |
---|
| 4489 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4490 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4491 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4492 | /* confdefs.h. */ |
---|
| 4493 | _ACEOF |
---|
| 4494 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4495 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4496 | /* end confdefs.h. */ |
---|
| 4497 | #include <$ac_header> |
---|
| 4498 | _ACEOF |
---|
| 4499 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4500 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4501 | ac_status=$? |
---|
| 4502 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4503 | rm -f conftest.er1 |
---|
| 4504 | cat conftest.err >&5 |
---|
| 4505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4506 | (exit $ac_status); } >/dev/null; then |
---|
| 4507 | if test -s conftest.err; then |
---|
| 4508 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4509 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4510 | else |
---|
| 4511 | ac_cpp_err= |
---|
| 4512 | fi |
---|
| 4513 | else |
---|
| 4514 | ac_cpp_err=yes |
---|
| 4515 | fi |
---|
| 4516 | if test -z "$ac_cpp_err"; then |
---|
| 4517 | ac_header_preproc=yes |
---|
| 4518 | else |
---|
| 4519 | echo "$as_me: failed program was:" >&5 |
---|
| 4520 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4521 | |
---|
| 4522 | ac_header_preproc=no |
---|
| 4523 | fi |
---|
| 4524 | rm -f conftest.err conftest.$ac_ext |
---|
| 4525 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4526 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4527 | |
---|
| 4528 | # So? What about this header? |
---|
| 4529 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4530 | yes:no: ) |
---|
| 4531 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4532 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4533 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4534 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4535 | ac_header_preproc=yes |
---|
| 4536 | ;; |
---|
| 4537 | no:yes:* ) |
---|
| 4538 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4539 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4540 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4541 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4542 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4543 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4544 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4545 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4546 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4547 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4548 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4549 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4550 | ( |
---|
| 4551 | cat <<\_ASBOX |
---|
[3240] | 4552 | ## ---------------------------------------------- ## |
---|
| 4553 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4554 | ## ---------------------------------------------- ## |
---|
[1971] | 4555 | _ASBOX |
---|
| 4556 | ) | |
---|
| 4557 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4558 | ;; |
---|
| 4559 | esac |
---|
| 4560 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4561 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4562 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4564 | else |
---|
| 4565 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4566 | fi |
---|
| 4567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4568 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4569 | |
---|
| 4570 | fi |
---|
| 4571 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4572 | cat >>confdefs.h <<_ACEOF |
---|
| 4573 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4574 | _ACEOF |
---|
| 4575 | |
---|
| 4576 | else |
---|
| 4577 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 4578 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 4579 | { (exit 1); exit 1; }; } |
---|
| 4580 | fi |
---|
| 4581 | |
---|
| 4582 | done |
---|
| 4583 | |
---|
| 4584 | |
---|
[2701] | 4585 | # checking for libGLU |
---|
| 4586 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
| 4587 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
| 4588 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
[1956] | 4589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4590 | else |
---|
| 4591 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4592 | LIBS="-lglu32 $LIBS" |
---|
[1956] | 4593 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4594 | /* confdefs.h. */ |
---|
| 4595 | _ACEOF |
---|
| 4596 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4597 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4598 | /* end confdefs.h. */ |
---|
| 4599 | |
---|
[2701] | 4600 | |
---|
[1956] | 4601 | int |
---|
| 4602 | main () |
---|
| 4603 | { |
---|
[2701] | 4604 | main (); |
---|
[1956] | 4605 | ; |
---|
| 4606 | return 0; |
---|
| 4607 | } |
---|
| 4608 | _ACEOF |
---|
| 4609 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4611 | (eval $ac_link) 2>conftest.er1 |
---|
| 4612 | ac_status=$? |
---|
| 4613 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4614 | rm -f conftest.er1 |
---|
| 4615 | cat conftest.err >&5 |
---|
| 4616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4617 | (exit $ac_status); } && |
---|
| 4618 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4619 | || test ! -s conftest.err' |
---|
| 4620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4621 | (eval $ac_try) 2>&5 |
---|
| 4622 | ac_status=$? |
---|
| 4623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4624 | (exit $ac_status); }; } && |
---|
| 4625 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4627 | (eval $ac_try) 2>&5 |
---|
| 4628 | ac_status=$? |
---|
| 4629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4630 | (exit $ac_status); }; }; then |
---|
[2701] | 4631 | ac_cv_lib_glu32_main=yes |
---|
[1956] | 4632 | else |
---|
| 4633 | echo "$as_me: failed program was:" >&5 |
---|
| 4634 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4635 | |
---|
[2701] | 4636 | ac_cv_lib_glu32_main=no |
---|
[1956] | 4637 | fi |
---|
| 4638 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4639 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4640 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4641 | fi |
---|
[2701] | 4642 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
| 4643 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
| 4644 | if test $ac_cv_lib_glu32_main = yes; then |
---|
| 4645 | FOUND_glu32=yes |
---|
[1959] | 4646 | fi |
---|
| 4647 | |
---|
[3499] | 4648 | if test x$FOUND_glu32 = xyes ; then |
---|
[2701] | 4649 | LIBS="$LIBS -lGLU32" |
---|
| 4650 | else |
---|
| 4651 | echo "------------------" |
---|
| 4652 | echo "GLU library not found." |
---|
| 4653 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 4654 | echo "------------------" |
---|
| 4655 | exit -1 |
---|
| 4656 | fi |
---|
| 4657 | |
---|
| 4658 | # checking for mingw32 |
---|
| 4659 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
| 4660 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
| 4661 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
[1959] | 4662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4663 | else |
---|
| 4664 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 4665 | LIBS="-lmingw32 $LIBS" |
---|
[1959] | 4666 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4667 | /* confdefs.h. */ |
---|
[1956] | 4668 | _ACEOF |
---|
[1959] | 4669 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4670 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4671 | /* end confdefs.h. */ |
---|
[1956] | 4672 | |
---|
[1971] | 4673 | |
---|
[1959] | 4674 | int |
---|
| 4675 | main () |
---|
| 4676 | { |
---|
[1971] | 4677 | main (); |
---|
[1959] | 4678 | ; |
---|
| 4679 | return 0; |
---|
| 4680 | } |
---|
| 4681 | _ACEOF |
---|
| 4682 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4684 | (eval $ac_link) 2>conftest.er1 |
---|
| 4685 | ac_status=$? |
---|
| 4686 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4687 | rm -f conftest.er1 |
---|
| 4688 | cat conftest.err >&5 |
---|
| 4689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4690 | (exit $ac_status); } && |
---|
| 4691 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4692 | || test ! -s conftest.err' |
---|
| 4693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4694 | (eval $ac_try) 2>&5 |
---|
| 4695 | ac_status=$? |
---|
| 4696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4697 | (exit $ac_status); }; } && |
---|
| 4698 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4700 | (eval $ac_try) 2>&5 |
---|
| 4701 | ac_status=$? |
---|
| 4702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4703 | (exit $ac_status); }; }; then |
---|
[2701] | 4704 | ac_cv_lib_mingw32_main=yes |
---|
[1959] | 4705 | else |
---|
| 4706 | echo "$as_me: failed program was:" >&5 |
---|
| 4707 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 4708 | |
---|
[2701] | 4709 | ac_cv_lib_mingw32_main=no |
---|
[1956] | 4710 | fi |
---|
[1959] | 4711 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4712 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4713 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4714 | fi |
---|
[2701] | 4715 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
| 4716 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
| 4717 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
| 4718 | FOUND_mingw32=yes |
---|
[1959] | 4719 | fi |
---|
[1956] | 4720 | |
---|
[3499] | 4721 | if test x$FOUND_mingw32 = xyes; then |
---|
[2701] | 4722 | LIBS="$LIBS -lmingw32" |
---|
| 4723 | fi |
---|
[2989] | 4724 | # checking for SDL-headers |
---|
[1959] | 4725 | |
---|
[2989] | 4726 | for ac_header in SDL/SDL.h |
---|
| 4727 | do |
---|
| 4728 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4729 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4730 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4731 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4732 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4734 | fi |
---|
| 4735 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4736 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4737 | else |
---|
| 4738 | # Is the header compilable? |
---|
| 4739 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4740 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4741 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4742 | /* confdefs.h. */ |
---|
| 4743 | _ACEOF |
---|
| 4744 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4745 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4746 | /* end confdefs.h. */ |
---|
| 4747 | $ac_includes_default |
---|
| 4748 | #include <$ac_header> |
---|
| 4749 | _ACEOF |
---|
| 4750 | rm -f conftest.$ac_objext |
---|
| 4751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4752 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4753 | ac_status=$? |
---|
| 4754 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4755 | rm -f conftest.er1 |
---|
| 4756 | cat conftest.err >&5 |
---|
| 4757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4758 | (exit $ac_status); } && |
---|
| 4759 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4760 | || test ! -s conftest.err' |
---|
| 4761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4762 | (eval $ac_try) 2>&5 |
---|
| 4763 | ac_status=$? |
---|
| 4764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4765 | (exit $ac_status); }; } && |
---|
| 4766 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4768 | (eval $ac_try) 2>&5 |
---|
| 4769 | ac_status=$? |
---|
| 4770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4771 | (exit $ac_status); }; }; then |
---|
| 4772 | ac_header_compiler=yes |
---|
| 4773 | else |
---|
| 4774 | echo "$as_me: failed program was:" >&5 |
---|
| 4775 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4776 | |
---|
| 4777 | ac_header_compiler=no |
---|
| 4778 | fi |
---|
| 4779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4780 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4781 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4782 | |
---|
| 4783 | # Is the header present? |
---|
| 4784 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4785 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4786 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4787 | /* confdefs.h. */ |
---|
| 4788 | _ACEOF |
---|
| 4789 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4790 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4791 | /* end confdefs.h. */ |
---|
| 4792 | #include <$ac_header> |
---|
| 4793 | _ACEOF |
---|
| 4794 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4795 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4796 | ac_status=$? |
---|
| 4797 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4798 | rm -f conftest.er1 |
---|
| 4799 | cat conftest.err >&5 |
---|
| 4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4801 | (exit $ac_status); } >/dev/null; then |
---|
| 4802 | if test -s conftest.err; then |
---|
| 4803 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4804 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4805 | else |
---|
| 4806 | ac_cpp_err= |
---|
| 4807 | fi |
---|
| 4808 | else |
---|
| 4809 | ac_cpp_err=yes |
---|
| 4810 | fi |
---|
| 4811 | if test -z "$ac_cpp_err"; then |
---|
| 4812 | ac_header_preproc=yes |
---|
| 4813 | else |
---|
| 4814 | echo "$as_me: failed program was:" >&5 |
---|
| 4815 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4816 | |
---|
| 4817 | ac_header_preproc=no |
---|
| 4818 | fi |
---|
| 4819 | rm -f conftest.err conftest.$ac_ext |
---|
| 4820 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4821 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4822 | |
---|
| 4823 | # So? What about this header? |
---|
| 4824 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4825 | yes:no: ) |
---|
| 4826 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4827 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4828 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4829 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4830 | ac_header_preproc=yes |
---|
[2701] | 4831 | ;; |
---|
[2989] | 4832 | no:yes:* ) |
---|
| 4833 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4834 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4835 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4836 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4837 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4838 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4839 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4840 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4841 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4842 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4843 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4844 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4845 | ( |
---|
| 4846 | cat <<\_ASBOX |
---|
[3240] | 4847 | ## ---------------------------------------------- ## |
---|
| 4848 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 4849 | ## ---------------------------------------------- ## |
---|
[2989] | 4850 | _ASBOX |
---|
| 4851 | ) | |
---|
| 4852 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4853 | ;; |
---|
| 4854 | esac |
---|
| 4855 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4856 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4857 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4859 | else |
---|
| 4860 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4861 | fi |
---|
| 4862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4863 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2701] | 4864 | |
---|
[2989] | 4865 | fi |
---|
| 4866 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4867 | cat >>confdefs.h <<_ACEOF |
---|
| 4868 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4869 | _ACEOF |
---|
| 4870 | |
---|
| 4871 | else |
---|
| 4872 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 4873 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 4874 | { (exit 1); exit 1; }; } |
---|
| 4875 | fi |
---|
| 4876 | |
---|
| 4877 | done |
---|
| 4878 | |
---|
| 4879 | |
---|
| 4880 | #checking for libSDL |
---|
| 4881 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
| 4882 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
| 4883 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
| 4884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4885 | else |
---|
| 4886 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4887 | LIBS="-lsdlmain $LIBS" |
---|
| 4888 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4889 | /* confdefs.h. */ |
---|
| 4890 | _ACEOF |
---|
| 4891 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4892 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4893 | /* end confdefs.h. */ |
---|
| 4894 | |
---|
| 4895 | |
---|
| 4896 | int |
---|
| 4897 | main () |
---|
| 4898 | { |
---|
| 4899 | main (); |
---|
| 4900 | ; |
---|
| 4901 | return 0; |
---|
| 4902 | } |
---|
| 4903 | _ACEOF |
---|
| 4904 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4906 | (eval $ac_link) 2>conftest.er1 |
---|
| 4907 | ac_status=$? |
---|
| 4908 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4909 | rm -f conftest.er1 |
---|
| 4910 | cat conftest.err >&5 |
---|
| 4911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4912 | (exit $ac_status); } && |
---|
| 4913 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4914 | || test ! -s conftest.err' |
---|
| 4915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4916 | (eval $ac_try) 2>&5 |
---|
| 4917 | ac_status=$? |
---|
| 4918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4919 | (exit $ac_status); }; } && |
---|
| 4920 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4922 | (eval $ac_try) 2>&5 |
---|
| 4923 | ac_status=$? |
---|
| 4924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4925 | (exit $ac_status); }; }; then |
---|
| 4926 | ac_cv_lib_sdlmain_main=yes |
---|
| 4927 | else |
---|
| 4928 | echo "$as_me: failed program was:" >&5 |
---|
| 4929 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4930 | |
---|
| 4931 | ac_cv_lib_sdlmain_main=no |
---|
| 4932 | fi |
---|
| 4933 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4934 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4935 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4936 | fi |
---|
| 4937 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
| 4938 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
| 4939 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
| 4940 | FOUND_sdlmain=yes |
---|
| 4941 | fi |
---|
| 4942 | |
---|
[3499] | 4943 | if test x$FOUND_sdlmain = xyes ; then |
---|
[2989] | 4944 | LIBS="$LIBS -lsdlmain" |
---|
| 4945 | else |
---|
| 4946 | echo "------------------" |
---|
| 4947 | echo "SDL library not found." |
---|
| 4948 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 4949 | echo "------------------" |
---|
| 4950 | exit 1 |
---|
| 4951 | fi |
---|
| 4952 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
| 4953 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
| 4954 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
| 4955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4956 | else |
---|
| 4957 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4958 | LIBS="-lsdl $LIBS" |
---|
| 4959 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4960 | /* confdefs.h. */ |
---|
| 4961 | _ACEOF |
---|
| 4962 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4963 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4964 | /* end confdefs.h. */ |
---|
| 4965 | |
---|
| 4966 | |
---|
| 4967 | int |
---|
| 4968 | main () |
---|
| 4969 | { |
---|
| 4970 | main (); |
---|
| 4971 | ; |
---|
| 4972 | return 0; |
---|
| 4973 | } |
---|
| 4974 | _ACEOF |
---|
| 4975 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4977 | (eval $ac_link) 2>conftest.er1 |
---|
| 4978 | ac_status=$? |
---|
| 4979 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4980 | rm -f conftest.er1 |
---|
| 4981 | cat conftest.err >&5 |
---|
| 4982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4983 | (exit $ac_status); } && |
---|
| 4984 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4985 | || test ! -s conftest.err' |
---|
| 4986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4987 | (eval $ac_try) 2>&5 |
---|
| 4988 | ac_status=$? |
---|
| 4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4990 | (exit $ac_status); }; } && |
---|
| 4991 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4993 | (eval $ac_try) 2>&5 |
---|
| 4994 | ac_status=$? |
---|
| 4995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4996 | (exit $ac_status); }; }; then |
---|
| 4997 | ac_cv_lib_sdl_main=yes |
---|
| 4998 | else |
---|
| 4999 | echo "$as_me: failed program was:" >&5 |
---|
| 5000 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5001 | |
---|
| 5002 | ac_cv_lib_sdl_main=no |
---|
| 5003 | fi |
---|
| 5004 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5005 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5006 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5007 | fi |
---|
| 5008 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
| 5009 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
| 5010 | if test $ac_cv_lib_sdl_main = yes; then |
---|
| 5011 | FOUND_sdl=yes |
---|
| 5012 | fi |
---|
| 5013 | |
---|
[3499] | 5014 | if test x$FOUND_sdl = xyes ; then |
---|
[2989] | 5015 | LIBS="$LIBS -lsdl" |
---|
| 5016 | else |
---|
| 5017 | echo "------------------" |
---|
| 5018 | echo "SDL library not found." |
---|
| 5019 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5020 | echo "------------------" |
---|
| 5021 | exit -1 |
---|
| 5022 | fi |
---|
| 5023 | |
---|
| 5024 | ;; |
---|
[3499] | 5025 | #-------# |
---|
| 5026 | # LINUX # |
---|
| 5027 | #-------# |
---|
[2980] | 5028 | *-*-linux*) |
---|
[2701] | 5029 | echo "Linux detected" |
---|
[1956] | 5030 | |
---|
[2701] | 5031 | Linux="yes" |
---|
| 5032 | |
---|
[3180] | 5033 | CPPFLAGS="-I/usr/X11R6/include" |
---|
[3385] | 5034 | LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS" |
---|
[2968] | 5035 | # checking gl header |
---|
[2701] | 5036 | |
---|
[2879] | 5037 | for ac_header in GL/gl.h |
---|
| 5038 | do |
---|
| 5039 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5040 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5041 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5042 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5043 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5045 | fi |
---|
| 5046 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5047 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5048 | else |
---|
| 5049 | # Is the header compilable? |
---|
| 5050 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5051 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5052 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5053 | /* confdefs.h. */ |
---|
| 5054 | _ACEOF |
---|
| 5055 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5056 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5057 | /* end confdefs.h. */ |
---|
| 5058 | $ac_includes_default |
---|
| 5059 | #include <$ac_header> |
---|
| 5060 | _ACEOF |
---|
| 5061 | rm -f conftest.$ac_objext |
---|
| 5062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5063 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5064 | ac_status=$? |
---|
| 5065 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5066 | rm -f conftest.er1 |
---|
| 5067 | cat conftest.err >&5 |
---|
| 5068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5069 | (exit $ac_status); } && |
---|
| 5070 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5071 | || test ! -s conftest.err' |
---|
| 5072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5073 | (eval $ac_try) 2>&5 |
---|
| 5074 | ac_status=$? |
---|
| 5075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5076 | (exit $ac_status); }; } && |
---|
| 5077 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5079 | (eval $ac_try) 2>&5 |
---|
| 5080 | ac_status=$? |
---|
| 5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5082 | (exit $ac_status); }; }; then |
---|
| 5083 | ac_header_compiler=yes |
---|
| 5084 | else |
---|
| 5085 | echo "$as_me: failed program was:" >&5 |
---|
| 5086 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5087 | |
---|
| 5088 | ac_header_compiler=no |
---|
| 5089 | fi |
---|
| 5090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5091 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5092 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5093 | |
---|
| 5094 | # Is the header present? |
---|
| 5095 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5096 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5097 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5098 | /* confdefs.h. */ |
---|
| 5099 | _ACEOF |
---|
| 5100 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5101 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5102 | /* end confdefs.h. */ |
---|
| 5103 | #include <$ac_header> |
---|
| 5104 | _ACEOF |
---|
| 5105 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5106 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5107 | ac_status=$? |
---|
| 5108 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5109 | rm -f conftest.er1 |
---|
| 5110 | cat conftest.err >&5 |
---|
| 5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5112 | (exit $ac_status); } >/dev/null; then |
---|
| 5113 | if test -s conftest.err; then |
---|
| 5114 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5115 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5116 | else |
---|
| 5117 | ac_cpp_err= |
---|
| 5118 | fi |
---|
| 5119 | else |
---|
| 5120 | ac_cpp_err=yes |
---|
| 5121 | fi |
---|
| 5122 | if test -z "$ac_cpp_err"; then |
---|
| 5123 | ac_header_preproc=yes |
---|
| 5124 | else |
---|
| 5125 | echo "$as_me: failed program was:" >&5 |
---|
| 5126 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5127 | |
---|
| 5128 | ac_header_preproc=no |
---|
| 5129 | fi |
---|
| 5130 | rm -f conftest.err conftest.$ac_ext |
---|
| 5131 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5132 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5133 | |
---|
| 5134 | # So? What about this header? |
---|
| 5135 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5136 | yes:no: ) |
---|
| 5137 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5138 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5139 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5140 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5141 | ac_header_preproc=yes |
---|
| 5142 | ;; |
---|
| 5143 | no:yes:* ) |
---|
| 5144 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5145 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5146 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5147 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5148 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5149 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5150 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5151 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5152 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5153 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5154 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5155 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5156 | ( |
---|
| 5157 | cat <<\_ASBOX |
---|
[3240] | 5158 | ## ---------------------------------------------- ## |
---|
| 5159 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5160 | ## ---------------------------------------------- ## |
---|
[2879] | 5161 | _ASBOX |
---|
| 5162 | ) | |
---|
| 5163 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5164 | ;; |
---|
| 5165 | esac |
---|
| 5166 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5167 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5168 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5170 | else |
---|
| 5171 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5172 | fi |
---|
| 5173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5174 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5175 | |
---|
| 5176 | fi |
---|
| 5177 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5178 | cat >>confdefs.h <<_ACEOF |
---|
| 5179 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5180 | _ACEOF |
---|
| 5181 | |
---|
| 5182 | else |
---|
| 5183 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5184 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5185 | { (exit 1); exit 1; }; } |
---|
| 5186 | fi |
---|
| 5187 | |
---|
| 5188 | done |
---|
| 5189 | |
---|
| 5190 | |
---|
[2701] | 5191 | # checking for Unix GL |
---|
[3385] | 5192 | echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5 |
---|
| 5193 | echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6 |
---|
| 5194 | if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then |
---|
[1956] | 5195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5196 | else |
---|
| 5197 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5198 | LIBS="-lGL $LIBS" |
---|
[1956] | 5199 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5200 | /* confdefs.h. */ |
---|
| 5201 | _ACEOF |
---|
| 5202 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5203 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5204 | /* end confdefs.h. */ |
---|
| 5205 | |
---|
[3385] | 5206 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5207 | #ifdef __cplusplus |
---|
| 5208 | extern "C" |
---|
| 5209 | #endif |
---|
| 5210 | /* We use char because int might match the return type of a gcc2 |
---|
| 5211 | builtin and then its argument prototype would still apply. */ |
---|
| 5212 | char glLoadIdentity (); |
---|
[1956] | 5213 | int |
---|
| 5214 | main () |
---|
| 5215 | { |
---|
[3385] | 5216 | glLoadIdentity (); |
---|
[1956] | 5217 | ; |
---|
| 5218 | return 0; |
---|
| 5219 | } |
---|
| 5220 | _ACEOF |
---|
| 5221 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5223 | (eval $ac_link) 2>conftest.er1 |
---|
| 5224 | ac_status=$? |
---|
| 5225 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5226 | rm -f conftest.er1 |
---|
| 5227 | cat conftest.err >&5 |
---|
| 5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5229 | (exit $ac_status); } && |
---|
| 5230 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5231 | || test ! -s conftest.err' |
---|
| 5232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5233 | (eval $ac_try) 2>&5 |
---|
| 5234 | ac_status=$? |
---|
| 5235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5236 | (exit $ac_status); }; } && |
---|
| 5237 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5239 | (eval $ac_try) 2>&5 |
---|
| 5240 | ac_status=$? |
---|
| 5241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5242 | (exit $ac_status); }; }; then |
---|
[3385] | 5243 | ac_cv_lib_GL_glLoadIdentity=yes |
---|
[1956] | 5244 | else |
---|
| 5245 | echo "$as_me: failed program was:" >&5 |
---|
| 5246 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5247 | |
---|
[3385] | 5248 | ac_cv_lib_GL_glLoadIdentity=no |
---|
[1956] | 5249 | fi |
---|
| 5250 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5251 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5252 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5253 | fi |
---|
[3385] | 5254 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5 |
---|
| 5255 | echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6 |
---|
| 5256 | if test $ac_cv_lib_GL_glLoadIdentity = yes; then |
---|
[2701] | 5257 | FOUND_GL=yes |
---|
| 5258 | fi |
---|
| 5259 | |
---|
[3499] | 5260 | if test x$FOUND_GL = xyes ; then |
---|
[2701] | 5261 | LIBS="$LIBS -lGL" |
---|
| 5262 | else |
---|
| 5263 | echo "------------------" |
---|
| 5264 | echo "opengl not found." |
---|
| 5265 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
| 5266 | echo "------------------" |
---|
| 5267 | exit -1 |
---|
| 5268 | fi |
---|
| 5269 | |
---|
| 5270 | # cheking for GLU-header |
---|
| 5271 | |
---|
| 5272 | for ac_header in GL/glu.h |
---|
| 5273 | do |
---|
| 5274 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5275 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5276 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5277 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5278 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5280 | fi |
---|
| 5281 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5282 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5283 | else |
---|
| 5284 | # Is the header compilable? |
---|
| 5285 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5286 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5287 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5288 | /* confdefs.h. */ |
---|
[1956] | 5289 | _ACEOF |
---|
[2701] | 5290 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5291 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5292 | /* end confdefs.h. */ |
---|
| 5293 | $ac_includes_default |
---|
| 5294 | #include <$ac_header> |
---|
| 5295 | _ACEOF |
---|
| 5296 | rm -f conftest.$ac_objext |
---|
| 5297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5298 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5299 | ac_status=$? |
---|
| 5300 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5301 | rm -f conftest.er1 |
---|
| 5302 | cat conftest.err >&5 |
---|
| 5303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5304 | (exit $ac_status); } && |
---|
| 5305 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5306 | || test ! -s conftest.err' |
---|
| 5307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5308 | (eval $ac_try) 2>&5 |
---|
| 5309 | ac_status=$? |
---|
| 5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5311 | (exit $ac_status); }; } && |
---|
| 5312 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5314 | (eval $ac_try) 2>&5 |
---|
| 5315 | ac_status=$? |
---|
| 5316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5317 | (exit $ac_status); }; }; then |
---|
| 5318 | ac_header_compiler=yes |
---|
| 5319 | else |
---|
| 5320 | echo "$as_me: failed program was:" >&5 |
---|
| 5321 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5322 | |
---|
[2701] | 5323 | ac_header_compiler=no |
---|
| 5324 | fi |
---|
| 5325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5326 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5327 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[1956] | 5328 | |
---|
[2701] | 5329 | # Is the header present? |
---|
| 5330 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5331 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5332 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5333 | /* confdefs.h. */ |
---|
| 5334 | _ACEOF |
---|
| 5335 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5336 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5337 | /* end confdefs.h. */ |
---|
| 5338 | #include <$ac_header> |
---|
| 5339 | _ACEOF |
---|
| 5340 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5341 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5342 | ac_status=$? |
---|
| 5343 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5344 | rm -f conftest.er1 |
---|
| 5345 | cat conftest.err >&5 |
---|
| 5346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5347 | (exit $ac_status); } >/dev/null; then |
---|
| 5348 | if test -s conftest.err; then |
---|
| 5349 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5350 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5351 | else |
---|
| 5352 | ac_cpp_err= |
---|
| 5353 | fi |
---|
| 5354 | else |
---|
| 5355 | ac_cpp_err=yes |
---|
[1956] | 5356 | fi |
---|
[2701] | 5357 | if test -z "$ac_cpp_err"; then |
---|
| 5358 | ac_header_preproc=yes |
---|
| 5359 | else |
---|
| 5360 | echo "$as_me: failed program was:" >&5 |
---|
| 5361 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[1956] | 5362 | |
---|
[2701] | 5363 | ac_header_preproc=no |
---|
| 5364 | fi |
---|
| 5365 | rm -f conftest.err conftest.$ac_ext |
---|
| 5366 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5367 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
[1956] | 5368 | |
---|
[2701] | 5369 | # So? What about this header? |
---|
| 5370 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5371 | yes:no: ) |
---|
| 5372 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5373 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5374 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5375 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5376 | ac_header_preproc=yes |
---|
| 5377 | ;; |
---|
| 5378 | no:yes:* ) |
---|
| 5379 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5380 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5381 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5382 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5383 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5384 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5385 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5386 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5387 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5388 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5389 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5390 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5391 | ( |
---|
| 5392 | cat <<\_ASBOX |
---|
[3240] | 5393 | ## ---------------------------------------------- ## |
---|
| 5394 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5395 | ## ---------------------------------------------- ## |
---|
[2701] | 5396 | _ASBOX |
---|
| 5397 | ) | |
---|
| 5398 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5399 | ;; |
---|
| 5400 | esac |
---|
| 5401 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5402 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5403 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5405 | else |
---|
[2701] | 5406 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5407 | fi |
---|
| 5408 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5409 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5410 | |
---|
| 5411 | fi |
---|
| 5412 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5413 | cat >>confdefs.h <<_ACEOF |
---|
| 5414 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5415 | _ACEOF |
---|
| 5416 | |
---|
| 5417 | else |
---|
| 5418 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5419 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5420 | { (exit 1); exit 1; }; } |
---|
| 5421 | fi |
---|
| 5422 | |
---|
| 5423 | done |
---|
| 5424 | |
---|
| 5425 | |
---|
| 5426 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
| 5427 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
| 5428 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
| 5429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5430 | else |
---|
[2190] | 5431 | ac_check_lib_save_LIBS=$LIBS |
---|
[2701] | 5432 | LIBS="-lGLU $LIBS" |
---|
[2190] | 5433 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5434 | /* confdefs.h. */ |
---|
| 5435 | _ACEOF |
---|
| 5436 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5437 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5438 | /* end confdefs.h. */ |
---|
| 5439 | |
---|
[2701] | 5440 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5441 | #ifdef __cplusplus |
---|
| 5442 | extern "C" |
---|
| 5443 | #endif |
---|
| 5444 | /* We use char because int might match the return type of a gcc2 |
---|
| 5445 | builtin and then its argument prototype would still apply. */ |
---|
| 5446 | char gluProject (); |
---|
[2190] | 5447 | int |
---|
| 5448 | main () |
---|
| 5449 | { |
---|
[2701] | 5450 | gluProject (); |
---|
[2190] | 5451 | ; |
---|
| 5452 | return 0; |
---|
| 5453 | } |
---|
| 5454 | _ACEOF |
---|
| 5455 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5457 | (eval $ac_link) 2>conftest.er1 |
---|
| 5458 | ac_status=$? |
---|
| 5459 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5460 | rm -f conftest.er1 |
---|
| 5461 | cat conftest.err >&5 |
---|
| 5462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5463 | (exit $ac_status); } && |
---|
| 5464 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5465 | || test ! -s conftest.err' |
---|
| 5466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5467 | (eval $ac_try) 2>&5 |
---|
| 5468 | ac_status=$? |
---|
| 5469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5470 | (exit $ac_status); }; } && |
---|
| 5471 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5473 | (eval $ac_try) 2>&5 |
---|
| 5474 | ac_status=$? |
---|
| 5475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5476 | (exit $ac_status); }; }; then |
---|
[2701] | 5477 | ac_cv_lib_GLU_gluProject=yes |
---|
[2190] | 5478 | else |
---|
| 5479 | echo "$as_me: failed program was:" >&5 |
---|
| 5480 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5481 | |
---|
[2701] | 5482 | ac_cv_lib_GLU_gluProject=no |
---|
[2190] | 5483 | fi |
---|
| 5484 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5485 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5486 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5487 | fi |
---|
[2701] | 5488 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
| 5489 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
| 5490 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
| 5491 | FOUND_GLU=yes |
---|
[2190] | 5492 | fi |
---|
| 5493 | |
---|
[3499] | 5494 | if test x$FOUND_GLU = xyes ; then |
---|
[2701] | 5495 | LIBS="$LIBS -lGLU" |
---|
| 5496 | else |
---|
| 5497 | echo "------------------" |
---|
| 5498 | echo "GLU library not found." |
---|
| 5499 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
| 5500 | echo "------------------" |
---|
| 5501 | exit -1 |
---|
| 5502 | fi |
---|
[2995] | 5503 | |
---|
[2991] | 5504 | # checking for SDL-headers |
---|
[2190] | 5505 | |
---|
[2991] | 5506 | for ac_header in SDL/SDL.h |
---|
| 5507 | do |
---|
| 5508 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5509 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5510 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5511 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5512 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
[2190] | 5513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5514 | fi |
---|
[2991] | 5515 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5516 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
[2190] | 5517 | else |
---|
[2991] | 5518 | # Is the header compilable? |
---|
| 5519 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5520 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5521 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5522 | /* confdefs.h. */ |
---|
| 5523 | _ACEOF |
---|
| 5524 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5525 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5526 | /* end confdefs.h. */ |
---|
[2991] | 5527 | $ac_includes_default |
---|
| 5528 | #include <$ac_header> |
---|
[2190] | 5529 | _ACEOF |
---|
[2991] | 5530 | rm -f conftest.$ac_objext |
---|
| 5531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5532 | (eval $ac_compile) 2>conftest.er1 |
---|
[2190] | 5533 | ac_status=$? |
---|
[2991] | 5534 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5535 | rm -f conftest.er1 |
---|
| 5536 | cat conftest.err >&5 |
---|
[2190] | 5537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5538 | (exit $ac_status); } && |
---|
| 5539 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5540 | || test ! -s conftest.err' |
---|
[2190] | 5541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5542 | (eval $ac_try) 2>&5 |
---|
| 5543 | ac_status=$? |
---|
| 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2991] | 5545 | (exit $ac_status); }; } && |
---|
| 5546 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5548 | (eval $ac_try) 2>&5 |
---|
| 5549 | ac_status=$? |
---|
| 5550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
[2190] | 5551 | (exit $ac_status); }; }; then |
---|
[2991] | 5552 | ac_header_compiler=yes |
---|
[2190] | 5553 | else |
---|
[2991] | 5554 | echo "$as_me: failed program was:" >&5 |
---|
[2190] | 5555 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5556 | |
---|
[2991] | 5557 | ac_header_compiler=no |
---|
[2190] | 5558 | fi |
---|
[2991] | 5559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5560 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5561 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5562 | |
---|
| 5563 | # Is the header present? |
---|
| 5564 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5565 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5566 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5567 | /* confdefs.h. */ |
---|
| 5568 | _ACEOF |
---|
| 5569 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5570 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5571 | /* end confdefs.h. */ |
---|
| 5572 | #include <$ac_header> |
---|
| 5573 | _ACEOF |
---|
| 5574 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5575 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5576 | ac_status=$? |
---|
| 5577 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5578 | rm -f conftest.er1 |
---|
| 5579 | cat conftest.err >&5 |
---|
| 5580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5581 | (exit $ac_status); } >/dev/null; then |
---|
| 5582 | if test -s conftest.err; then |
---|
| 5583 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5584 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5585 | else |
---|
| 5586 | ac_cpp_err= |
---|
| 5587 | fi |
---|
| 5588 | else |
---|
| 5589 | ac_cpp_err=yes |
---|
[2190] | 5590 | fi |
---|
[2991] | 5591 | if test -z "$ac_cpp_err"; then |
---|
| 5592 | ac_header_preproc=yes |
---|
| 5593 | else |
---|
| 5594 | echo "$as_me: failed program was:" >&5 |
---|
| 5595 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5596 | |
---|
| 5597 | ac_header_preproc=no |
---|
| 5598 | fi |
---|
| 5599 | rm -f conftest.err conftest.$ac_ext |
---|
| 5600 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5601 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5602 | |
---|
| 5603 | # So? What about this header? |
---|
| 5604 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5605 | yes:no: ) |
---|
| 5606 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5607 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5608 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5609 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5610 | ac_header_preproc=yes |
---|
| 5611 | ;; |
---|
| 5612 | no:yes:* ) |
---|
| 5613 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5614 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5615 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5616 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5617 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5618 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5619 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5620 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5621 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5622 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5623 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5624 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5625 | ( |
---|
| 5626 | cat <<\_ASBOX |
---|
[3240] | 5627 | ## ---------------------------------------------- ## |
---|
| 5628 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5629 | ## ---------------------------------------------- ## |
---|
[2991] | 5630 | _ASBOX |
---|
| 5631 | ) | |
---|
| 5632 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5633 | ;; |
---|
| 5634 | esac |
---|
| 5635 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5639 | else |
---|
| 5640 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5641 | fi |
---|
| 5642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5643 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5644 | |
---|
| 5645 | fi |
---|
| 5646 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5647 | cat >>confdefs.h <<_ACEOF |
---|
| 5648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5649 | _ACEOF |
---|
| 5650 | |
---|
| 5651 | else |
---|
| 5652 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
| 5653 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
| 5654 | { (exit 1); exit 1; }; } |
---|
| 5655 | fi |
---|
| 5656 | |
---|
| 5657 | done |
---|
| 5658 | |
---|
| 5659 | |
---|
[3140] | 5660 | # checking for SDL-lib |
---|
[2991] | 5661 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
| 5662 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
| 5663 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
| 5664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5665 | else |
---|
| 5666 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5667 | LIBS="-lSDL $LIBS" |
---|
| 5668 | cat >conftest.$ac_ext <<_ACEOF |
---|
[2190] | 5669 | /* confdefs.h. */ |
---|
| 5670 | _ACEOF |
---|
| 5671 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5672 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5673 | /* end confdefs.h. */ |
---|
| 5674 | |
---|
| 5675 | |
---|
| 5676 | int |
---|
| 5677 | main () |
---|
| 5678 | { |
---|
[2991] | 5679 | main (); |
---|
[2190] | 5680 | ; |
---|
| 5681 | return 0; |
---|
| 5682 | } |
---|
| 5683 | _ACEOF |
---|
| 5684 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5686 | (eval $ac_link) 2>conftest.er1 |
---|
| 5687 | ac_status=$? |
---|
| 5688 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5689 | rm -f conftest.er1 |
---|
| 5690 | cat conftest.err >&5 |
---|
| 5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5692 | (exit $ac_status); } && |
---|
| 5693 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5694 | || test ! -s conftest.err' |
---|
| 5695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5696 | (eval $ac_try) 2>&5 |
---|
| 5697 | ac_status=$? |
---|
| 5698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5699 | (exit $ac_status); }; } && |
---|
| 5700 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5702 | (eval $ac_try) 2>&5 |
---|
| 5703 | ac_status=$? |
---|
| 5704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5705 | (exit $ac_status); }; }; then |
---|
[2991] | 5706 | ac_cv_lib_SDL_main=yes |
---|
[2190] | 5707 | else |
---|
| 5708 | echo "$as_me: failed program was:" >&5 |
---|
| 5709 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5710 | |
---|
[2991] | 5711 | ac_cv_lib_SDL_main=no |
---|
[2190] | 5712 | fi |
---|
| 5713 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5714 | conftest$ac_exeext conftest.$ac_ext |
---|
[2991] | 5715 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5716 | fi |
---|
| 5717 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
| 5718 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
| 5719 | if test $ac_cv_lib_SDL_main = yes; then |
---|
| 5720 | FOUND_SDL=yes |
---|
| 5721 | fi |
---|
| 5722 | |
---|
[3499] | 5723 | if test x$FOUND_SDL = xyes ; then |
---|
[2991] | 5724 | LIBS="$LIBS -lSDL" |
---|
| 5725 | else |
---|
| 5726 | echo "------------------" |
---|
| 5727 | echo "SDL library not found." |
---|
| 5728 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
| 5729 | echo "------------------" |
---|
| 5730 | exit -1 |
---|
[2980] | 5731 | fi |
---|
[2701] | 5732 | |
---|
[3140] | 5733 | |
---|
[2991] | 5734 | ## checking for SDL |
---|
| 5735 | # SDL_VERSION=1.2.7 |
---|
| 5736 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 5737 | # :, |
---|
| 5738 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 5739 | # ) |
---|
| 5740 | # CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 5741 | # LIBS="$LIBS $SDL_LIBS" |
---|
[2989] | 5742 | ;; |
---|
[3499] | 5743 | #-----------# |
---|
| 5744 | # MAC -OS X # |
---|
| 5745 | #-----------# |
---|
[2995] | 5746 | *darwin*) |
---|
[3499] | 5747 | echo "OS X detected" |
---|
[2995] | 5748 | |
---|
| 5749 | osX="yes" |
---|
| 5750 | |
---|
[3140] | 5751 | CPPFLAGS="-I/sw/include $CPPFLAGS" |
---|
[2995] | 5752 | # checking gl header |
---|
| 5753 | |
---|
| 5754 | for ac_header in OpenGL/gl.h |
---|
| 5755 | do |
---|
| 5756 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5757 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5758 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5759 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5760 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5762 | fi |
---|
| 5763 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5764 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5765 | else |
---|
| 5766 | # Is the header compilable? |
---|
| 5767 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5768 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5769 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5770 | /* confdefs.h. */ |
---|
| 5771 | _ACEOF |
---|
| 5772 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5773 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5774 | /* end confdefs.h. */ |
---|
| 5775 | $ac_includes_default |
---|
| 5776 | #include <$ac_header> |
---|
| 5777 | _ACEOF |
---|
| 5778 | rm -f conftest.$ac_objext |
---|
| 5779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5780 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5781 | ac_status=$? |
---|
| 5782 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5783 | rm -f conftest.er1 |
---|
| 5784 | cat conftest.err >&5 |
---|
| 5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5786 | (exit $ac_status); } && |
---|
| 5787 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5788 | || test ! -s conftest.err' |
---|
| 5789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5790 | (eval $ac_try) 2>&5 |
---|
| 5791 | ac_status=$? |
---|
| 5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5793 | (exit $ac_status); }; } && |
---|
| 5794 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5796 | (eval $ac_try) 2>&5 |
---|
| 5797 | ac_status=$? |
---|
| 5798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5799 | (exit $ac_status); }; }; then |
---|
| 5800 | ac_header_compiler=yes |
---|
| 5801 | else |
---|
| 5802 | echo "$as_me: failed program was:" >&5 |
---|
| 5803 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5804 | |
---|
| 5805 | ac_header_compiler=no |
---|
| 5806 | fi |
---|
| 5807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5808 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5809 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5810 | |
---|
| 5811 | # Is the header present? |
---|
| 5812 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5813 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5814 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5815 | /* confdefs.h. */ |
---|
| 5816 | _ACEOF |
---|
| 5817 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5818 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5819 | /* end confdefs.h. */ |
---|
| 5820 | #include <$ac_header> |
---|
| 5821 | _ACEOF |
---|
| 5822 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5823 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5824 | ac_status=$? |
---|
| 5825 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5826 | rm -f conftest.er1 |
---|
| 5827 | cat conftest.err >&5 |
---|
| 5828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5829 | (exit $ac_status); } >/dev/null; then |
---|
| 5830 | if test -s conftest.err; then |
---|
| 5831 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5832 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5833 | else |
---|
| 5834 | ac_cpp_err= |
---|
| 5835 | fi |
---|
| 5836 | else |
---|
| 5837 | ac_cpp_err=yes |
---|
| 5838 | fi |
---|
| 5839 | if test -z "$ac_cpp_err"; then |
---|
| 5840 | ac_header_preproc=yes |
---|
| 5841 | else |
---|
| 5842 | echo "$as_me: failed program was:" >&5 |
---|
| 5843 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5844 | |
---|
| 5845 | ac_header_preproc=no |
---|
| 5846 | fi |
---|
| 5847 | rm -f conftest.err conftest.$ac_ext |
---|
| 5848 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5849 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5850 | |
---|
| 5851 | # So? What about this header? |
---|
| 5852 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 5853 | yes:no: ) |
---|
| 5854 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5855 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5856 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 5857 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 5858 | ac_header_preproc=yes |
---|
| 5859 | ;; |
---|
| 5860 | no:yes:* ) |
---|
| 5861 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5862 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5863 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5864 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5865 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 5866 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 5867 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 5868 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 5869 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5870 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5871 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 5872 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 5873 | ( |
---|
| 5874 | cat <<\_ASBOX |
---|
[3240] | 5875 | ## ---------------------------------------------- ## |
---|
| 5876 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 5877 | ## ---------------------------------------------- ## |
---|
[2995] | 5878 | _ASBOX |
---|
| 5879 | ) | |
---|
| 5880 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5881 | ;; |
---|
| 5882 | esac |
---|
| 5883 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5884 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5885 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5887 | else |
---|
| 5888 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 5889 | fi |
---|
| 5890 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5891 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5892 | |
---|
| 5893 | fi |
---|
| 5894 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5895 | cat >>confdefs.h <<_ACEOF |
---|
| 5896 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5897 | _ACEOF |
---|
| 5898 | |
---|
| 5899 | else |
---|
| 5900 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 5901 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 5902 | { (exit 1); exit 1; }; } |
---|
| 5903 | fi |
---|
| 5904 | |
---|
| 5905 | done |
---|
| 5906 | |
---|
| 5907 | # cheking for GLU-header |
---|
| 5908 | |
---|
| 5909 | for ac_header in OpenGL/glu.h |
---|
| 5910 | do |
---|
| 5911 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5912 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5913 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5914 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5915 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5917 | fi |
---|
| 5918 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5919 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5920 | else |
---|
| 5921 | # Is the header compilable? |
---|
| 5922 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5923 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5924 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5925 | /* confdefs.h. */ |
---|
| 5926 | _ACEOF |
---|
| 5927 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5928 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5929 | /* end confdefs.h. */ |
---|
| 5930 | $ac_includes_default |
---|
| 5931 | #include <$ac_header> |
---|
| 5932 | _ACEOF |
---|
| 5933 | rm -f conftest.$ac_objext |
---|
| 5934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5935 | (eval $ac_compile) 2>conftest.er1 |
---|
| 5936 | ac_status=$? |
---|
| 5937 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5938 | rm -f conftest.er1 |
---|
| 5939 | cat conftest.err >&5 |
---|
| 5940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5941 | (exit $ac_status); } && |
---|
| 5942 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5943 | || test ! -s conftest.err' |
---|
| 5944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5945 | (eval $ac_try) 2>&5 |
---|
| 5946 | ac_status=$? |
---|
| 5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5948 | (exit $ac_status); }; } && |
---|
| 5949 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5951 | (eval $ac_try) 2>&5 |
---|
| 5952 | ac_status=$? |
---|
| 5953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5954 | (exit $ac_status); }; }; then |
---|
| 5955 | ac_header_compiler=yes |
---|
| 5956 | else |
---|
| 5957 | echo "$as_me: failed program was:" >&5 |
---|
| 5958 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5959 | |
---|
| 5960 | ac_header_compiler=no |
---|
| 5961 | fi |
---|
| 5962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 5963 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5964 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5965 | |
---|
| 5966 | # Is the header present? |
---|
| 5967 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5968 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5969 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5970 | /* confdefs.h. */ |
---|
| 5971 | _ACEOF |
---|
| 5972 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5973 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5974 | /* end confdefs.h. */ |
---|
| 5975 | #include <$ac_header> |
---|
| 5976 | _ACEOF |
---|
| 5977 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5978 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5979 | ac_status=$? |
---|
| 5980 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5981 | rm -f conftest.er1 |
---|
| 5982 | cat conftest.err >&5 |
---|
| 5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5984 | (exit $ac_status); } >/dev/null; then |
---|
| 5985 | if test -s conftest.err; then |
---|
| 5986 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5987 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 5988 | else |
---|
| 5989 | ac_cpp_err= |
---|
| 5990 | fi |
---|
| 5991 | else |
---|
| 5992 | ac_cpp_err=yes |
---|
| 5993 | fi |
---|
| 5994 | if test -z "$ac_cpp_err"; then |
---|
| 5995 | ac_header_preproc=yes |
---|
| 5996 | else |
---|
| 5997 | echo "$as_me: failed program was:" >&5 |
---|
| 5998 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5999 | |
---|
| 6000 | ac_header_preproc=no |
---|
| 6001 | fi |
---|
| 6002 | rm -f conftest.err conftest.$ac_ext |
---|
| 6003 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6004 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6005 | |
---|
| 6006 | # So? What about this header? |
---|
| 6007 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6008 | yes:no: ) |
---|
| 6009 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6010 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6011 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6012 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6013 | ac_header_preproc=yes |
---|
| 6014 | ;; |
---|
| 6015 | no:yes:* ) |
---|
| 6016 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6017 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6018 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6019 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6020 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6021 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6022 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6023 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6024 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6025 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6026 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6027 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6028 | ( |
---|
| 6029 | cat <<\_ASBOX |
---|
[3240] | 6030 | ## ---------------------------------------------- ## |
---|
| 6031 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6032 | ## ---------------------------------------------- ## |
---|
[2995] | 6033 | _ASBOX |
---|
| 6034 | ) | |
---|
| 6035 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6036 | ;; |
---|
| 6037 | esac |
---|
| 6038 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6039 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6040 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6042 | else |
---|
| 6043 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6044 | fi |
---|
| 6045 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6046 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6047 | |
---|
| 6048 | fi |
---|
| 6049 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6050 | cat >>confdefs.h <<_ACEOF |
---|
| 6051 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6052 | _ACEOF |
---|
| 6053 | |
---|
| 6054 | else |
---|
| 6055 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
| 6056 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
| 6057 | { (exit 1); exit 1; }; } |
---|
| 6058 | fi |
---|
| 6059 | |
---|
| 6060 | done |
---|
| 6061 | |
---|
| 6062 | |
---|
| 6063 | LIBS="$LIBS -framework OpenGL" |
---|
| 6064 | |
---|
[3499] | 6065 | SDL_CFLAGS=`sdl-config --cflags` |
---|
| 6066 | SDL_LIBS=`sdl-config --libs` |
---|
| 6067 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
| 6068 | LIBS="$LIBS $SDL_LIBS" |
---|
| 6069 | |
---|
| 6070 | |
---|
[2995] | 6071 | # checking for SDL-headers |
---|
[3001] | 6072 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
| 6073 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
[2995] | 6074 | |
---|
| 6075 | ## checking for SDL |
---|
| 6076 | # SDL_VERSION=1.2.7 |
---|
| 6077 | # AM_PATH_SDL($SDL_VERSION, |
---|
| 6078 | # :, |
---|
| 6079 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
| 6080 | # ) |
---|
| 6081 | |
---|
[3140] | 6082 | |
---|
[2995] | 6083 | ;; |
---|
| 6084 | |
---|
[2989] | 6085 | *) |
---|
| 6086 | ;; |
---|
| 6087 | esac |
---|
[2980] | 6088 | |
---|
[2981] | 6089 | |
---|
[2989] | 6090 | |
---|
[3499] | 6091 | ################################### |
---|
| 6092 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
| 6093 | ################################### |
---|
| 6094 | |
---|
| 6095 | #-----------# |
---|
| 6096 | # SDL_Image # |
---|
| 6097 | #-----------# |
---|
| 6098 | if test x$def_sdl_image = xyes; then |
---|
[3140] | 6099 | # checking for SDL_image-headers |
---|
[2989] | 6100 | |
---|
[3140] | 6101 | for ac_header in SDL/SDL_image.h |
---|
| 6102 | do |
---|
| 6103 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6104 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6105 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6106 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6107 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6109 | fi |
---|
| 6110 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6111 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6112 | else |
---|
| 6113 | # Is the header compilable? |
---|
| 6114 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6115 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6116 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6117 | /* confdefs.h. */ |
---|
| 6118 | _ACEOF |
---|
| 6119 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6120 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6121 | /* end confdefs.h. */ |
---|
| 6122 | $ac_includes_default |
---|
| 6123 | #include <$ac_header> |
---|
| 6124 | _ACEOF |
---|
| 6125 | rm -f conftest.$ac_objext |
---|
| 6126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6127 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6128 | ac_status=$? |
---|
| 6129 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6130 | rm -f conftest.er1 |
---|
| 6131 | cat conftest.err >&5 |
---|
| 6132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6133 | (exit $ac_status); } && |
---|
| 6134 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6135 | || test ! -s conftest.err' |
---|
| 6136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6137 | (eval $ac_try) 2>&5 |
---|
| 6138 | ac_status=$? |
---|
| 6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6140 | (exit $ac_status); }; } && |
---|
| 6141 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6143 | (eval $ac_try) 2>&5 |
---|
| 6144 | ac_status=$? |
---|
| 6145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6146 | (exit $ac_status); }; }; then |
---|
| 6147 | ac_header_compiler=yes |
---|
| 6148 | else |
---|
| 6149 | echo "$as_me: failed program was:" >&5 |
---|
| 6150 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
[2989] | 6151 | |
---|
[3140] | 6152 | ac_header_compiler=no |
---|
| 6153 | fi |
---|
| 6154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6155 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6156 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
[2989] | 6157 | |
---|
[3140] | 6158 | # Is the header present? |
---|
| 6159 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6160 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6161 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6162 | /* confdefs.h. */ |
---|
| 6163 | _ACEOF |
---|
| 6164 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6165 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6166 | /* end confdefs.h. */ |
---|
| 6167 | #include <$ac_header> |
---|
| 6168 | _ACEOF |
---|
| 6169 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6170 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6171 | ac_status=$? |
---|
| 6172 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6173 | rm -f conftest.er1 |
---|
| 6174 | cat conftest.err >&5 |
---|
| 6175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6176 | (exit $ac_status); } >/dev/null; then |
---|
| 6177 | if test -s conftest.err; then |
---|
| 6178 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6179 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6180 | else |
---|
| 6181 | ac_cpp_err= |
---|
| 6182 | fi |
---|
| 6183 | else |
---|
| 6184 | ac_cpp_err=yes |
---|
| 6185 | fi |
---|
| 6186 | if test -z "$ac_cpp_err"; then |
---|
| 6187 | ac_header_preproc=yes |
---|
| 6188 | else |
---|
| 6189 | echo "$as_me: failed program was:" >&5 |
---|
| 6190 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6191 | |
---|
| 6192 | ac_header_preproc=no |
---|
| 6193 | fi |
---|
| 6194 | rm -f conftest.err conftest.$ac_ext |
---|
| 6195 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6196 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6197 | |
---|
| 6198 | # So? What about this header? |
---|
| 6199 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6200 | yes:no: ) |
---|
| 6201 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6202 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6203 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6204 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6205 | ac_header_preproc=yes |
---|
| 6206 | ;; |
---|
| 6207 | no:yes:* ) |
---|
| 6208 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6209 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6210 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6211 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6212 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6213 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6214 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6215 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6216 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6217 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6218 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6219 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6220 | ( |
---|
| 6221 | cat <<\_ASBOX |
---|
[3240] | 6222 | ## ---------------------------------------------- ## |
---|
| 6223 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6224 | ## ---------------------------------------------- ## |
---|
[3140] | 6225 | _ASBOX |
---|
| 6226 | ) | |
---|
| 6227 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6228 | ;; |
---|
| 6229 | esac |
---|
| 6230 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6231 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6232 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6234 | else |
---|
| 6235 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6236 | fi |
---|
| 6237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6238 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6239 | |
---|
| 6240 | fi |
---|
| 6241 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6242 | cat >>confdefs.h <<_ACEOF |
---|
| 6243 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6244 | _ACEOF |
---|
| 6245 | |
---|
| 6246 | else |
---|
| 6247 | echo "sdl_image not found. falling back to other options"; def_sdl_image=no |
---|
| 6248 | fi |
---|
| 6249 | |
---|
| 6250 | done |
---|
| 6251 | |
---|
| 6252 | fi |
---|
[3499] | 6253 | if test x$def_sdl_image = xyes; then |
---|
[3140] | 6254 | # checking for SDL_image-lib |
---|
| 6255 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
| 6256 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
| 6257 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
| 6258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6259 | else |
---|
| 6260 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6261 | LIBS="-lSDL_image $LIBS" |
---|
| 6262 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6263 | /* confdefs.h. */ |
---|
| 6264 | _ACEOF |
---|
| 6265 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6266 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6267 | /* end confdefs.h. */ |
---|
| 6268 | |
---|
| 6269 | |
---|
| 6270 | int |
---|
| 6271 | main () |
---|
| 6272 | { |
---|
| 6273 | main (); |
---|
| 6274 | ; |
---|
| 6275 | return 0; |
---|
| 6276 | } |
---|
| 6277 | _ACEOF |
---|
| 6278 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6280 | (eval $ac_link) 2>conftest.er1 |
---|
| 6281 | ac_status=$? |
---|
| 6282 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6283 | rm -f conftest.er1 |
---|
| 6284 | cat conftest.err >&5 |
---|
| 6285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6286 | (exit $ac_status); } && |
---|
| 6287 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6288 | || test ! -s conftest.err' |
---|
| 6289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6290 | (eval $ac_try) 2>&5 |
---|
| 6291 | ac_status=$? |
---|
| 6292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6293 | (exit $ac_status); }; } && |
---|
| 6294 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6296 | (eval $ac_try) 2>&5 |
---|
| 6297 | ac_status=$? |
---|
| 6298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6299 | (exit $ac_status); }; }; then |
---|
| 6300 | ac_cv_lib_SDL_image_main=yes |
---|
| 6301 | else |
---|
| 6302 | echo "$as_me: failed program was:" >&5 |
---|
| 6303 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6304 | |
---|
| 6305 | ac_cv_lib_SDL_image_main=no |
---|
| 6306 | fi |
---|
| 6307 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6308 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6309 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6310 | fi |
---|
| 6311 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
| 6312 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
| 6313 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
| 6314 | FOUND_SDL_image=yes |
---|
| 6315 | fi |
---|
| 6316 | |
---|
[3499] | 6317 | if test x$FOUND_SDL_image = xyes ; then |
---|
[3140] | 6318 | LIBS="$LIBS -lSDL_image" |
---|
| 6319 | else |
---|
| 6320 | echo "------------------" |
---|
| 6321 | echo "SDL_image library not found." |
---|
| 6322 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
| 6323 | echo "------------------" |
---|
| 6324 | exit -1 |
---|
| 6325 | fi |
---|
| 6326 | fi |
---|
| 6327 | |
---|
[3499] | 6328 | ## case no SDL-image: |
---|
| 6329 | if test x$def_sdl_image = xno; then |
---|
| 6330 | #---------# |
---|
| 6331 | # libjpeg # |
---|
| 6332 | #---------# |
---|
[3140] | 6333 | |
---|
| 6334 | for ac_header in jpeglib.h |
---|
| 6335 | do |
---|
| 6336 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6337 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6338 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6339 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6340 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6342 | fi |
---|
| 6343 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6344 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6345 | else |
---|
| 6346 | # Is the header compilable? |
---|
| 6347 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6348 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6349 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6350 | /* confdefs.h. */ |
---|
| 6351 | _ACEOF |
---|
| 6352 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6353 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6354 | /* end confdefs.h. */ |
---|
| 6355 | $ac_includes_default |
---|
| 6356 | #include <$ac_header> |
---|
| 6357 | _ACEOF |
---|
| 6358 | rm -f conftest.$ac_objext |
---|
| 6359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6360 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6361 | ac_status=$? |
---|
| 6362 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6363 | rm -f conftest.er1 |
---|
| 6364 | cat conftest.err >&5 |
---|
| 6365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6366 | (exit $ac_status); } && |
---|
| 6367 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6368 | || test ! -s conftest.err' |
---|
| 6369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6370 | (eval $ac_try) 2>&5 |
---|
| 6371 | ac_status=$? |
---|
| 6372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6373 | (exit $ac_status); }; } && |
---|
| 6374 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6376 | (eval $ac_try) 2>&5 |
---|
| 6377 | ac_status=$? |
---|
| 6378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6379 | (exit $ac_status); }; }; then |
---|
| 6380 | ac_header_compiler=yes |
---|
| 6381 | else |
---|
| 6382 | echo "$as_me: failed program was:" >&5 |
---|
| 6383 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6384 | |
---|
| 6385 | ac_header_compiler=no |
---|
| 6386 | fi |
---|
| 6387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6388 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6389 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6390 | |
---|
| 6391 | # Is the header present? |
---|
| 6392 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6393 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6394 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6395 | /* confdefs.h. */ |
---|
| 6396 | _ACEOF |
---|
| 6397 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6398 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6399 | /* end confdefs.h. */ |
---|
| 6400 | #include <$ac_header> |
---|
| 6401 | _ACEOF |
---|
| 6402 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6403 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6404 | ac_status=$? |
---|
| 6405 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6406 | rm -f conftest.er1 |
---|
| 6407 | cat conftest.err >&5 |
---|
| 6408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6409 | (exit $ac_status); } >/dev/null; then |
---|
| 6410 | if test -s conftest.err; then |
---|
| 6411 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6412 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6413 | else |
---|
| 6414 | ac_cpp_err= |
---|
| 6415 | fi |
---|
| 6416 | else |
---|
| 6417 | ac_cpp_err=yes |
---|
| 6418 | fi |
---|
| 6419 | if test -z "$ac_cpp_err"; then |
---|
| 6420 | ac_header_preproc=yes |
---|
| 6421 | else |
---|
| 6422 | echo "$as_me: failed program was:" >&5 |
---|
| 6423 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6424 | |
---|
| 6425 | ac_header_preproc=no |
---|
| 6426 | fi |
---|
| 6427 | rm -f conftest.err conftest.$ac_ext |
---|
| 6428 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6429 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6430 | |
---|
| 6431 | # So? What about this header? |
---|
| 6432 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6433 | yes:no: ) |
---|
| 6434 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6435 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6436 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6437 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6438 | ac_header_preproc=yes |
---|
| 6439 | ;; |
---|
| 6440 | no:yes:* ) |
---|
| 6441 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6442 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6443 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6444 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6445 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6446 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6447 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6448 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6449 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6450 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6451 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6452 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6453 | ( |
---|
| 6454 | cat <<\_ASBOX |
---|
[3240] | 6455 | ## ---------------------------------------------- ## |
---|
| 6456 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6457 | ## ---------------------------------------------- ## |
---|
[3140] | 6458 | _ASBOX |
---|
| 6459 | ) | |
---|
| 6460 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6461 | ;; |
---|
| 6462 | esac |
---|
| 6463 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6467 | else |
---|
| 6468 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6469 | fi |
---|
| 6470 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6471 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6472 | |
---|
| 6473 | fi |
---|
| 6474 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6475 | cat >>confdefs.h <<_ACEOF |
---|
| 6476 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6477 | _ACEOF |
---|
| 6478 | jpegHeader="yes" |
---|
| 6479 | else |
---|
| 6480 | jpegHeader="no" |
---|
| 6481 | fi |
---|
| 6482 | |
---|
| 6483 | done |
---|
| 6484 | |
---|
[3499] | 6485 | if test x$jpegHeader = xno; then |
---|
[3140] | 6486 | echo " not including jpeg." |
---|
| 6487 | else |
---|
| 6488 | echo "$as_me:$LINENO: checking for main in -ljpeg" >&5 |
---|
| 6489 | echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6 |
---|
| 6490 | if test "${ac_cv_lib_jpeg_main+set}" = set; then |
---|
| 6491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6492 | else |
---|
| 6493 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6494 | LIBS="-ljpeg $LIBS" |
---|
| 6495 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6496 | /* confdefs.h. */ |
---|
| 6497 | _ACEOF |
---|
| 6498 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6499 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6500 | /* end confdefs.h. */ |
---|
| 6501 | |
---|
| 6502 | |
---|
| 6503 | int |
---|
| 6504 | main () |
---|
| 6505 | { |
---|
| 6506 | main (); |
---|
| 6507 | ; |
---|
| 6508 | return 0; |
---|
| 6509 | } |
---|
| 6510 | _ACEOF |
---|
| 6511 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6513 | (eval $ac_link) 2>conftest.er1 |
---|
| 6514 | ac_status=$? |
---|
| 6515 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6516 | rm -f conftest.er1 |
---|
| 6517 | cat conftest.err >&5 |
---|
| 6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6519 | (exit $ac_status); } && |
---|
| 6520 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6521 | || test ! -s conftest.err' |
---|
| 6522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6523 | (eval $ac_try) 2>&5 |
---|
| 6524 | ac_status=$? |
---|
| 6525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6526 | (exit $ac_status); }; } && |
---|
| 6527 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6529 | (eval $ac_try) 2>&5 |
---|
| 6530 | ac_status=$? |
---|
| 6531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6532 | (exit $ac_status); }; }; then |
---|
| 6533 | ac_cv_lib_jpeg_main=yes |
---|
| 6534 | else |
---|
| 6535 | echo "$as_me: failed program was:" >&5 |
---|
| 6536 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6537 | |
---|
| 6538 | ac_cv_lib_jpeg_main=no |
---|
| 6539 | fi |
---|
| 6540 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6541 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6542 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6543 | fi |
---|
| 6544 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5 |
---|
| 6545 | echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6 |
---|
| 6546 | if test $ac_cv_lib_jpeg_main = yes; then |
---|
| 6547 | FOUND_jpeg=yes |
---|
| 6548 | fi |
---|
| 6549 | |
---|
[3499] | 6550 | if test x$FOUND_jpeg = xyes ; then |
---|
[3140] | 6551 | LIBS="$LIBS -ljpeg" |
---|
| 6552 | else |
---|
| 6553 | echo "------------------" |
---|
| 6554 | echo "jpeg library not found." |
---|
| 6555 | echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org" |
---|
| 6556 | echo "------------------" |
---|
| 6557 | exit -1 |
---|
| 6558 | fi |
---|
| 6559 | fi |
---|
| 6560 | |
---|
[3499] | 6561 | #--------# |
---|
| 6562 | # libpng # |
---|
| 6563 | #--------# |
---|
[3140] | 6564 | |
---|
| 6565 | for ac_header in png.h |
---|
| 6566 | do |
---|
| 6567 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6568 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6569 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6570 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6571 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6573 | fi |
---|
| 6574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6575 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6576 | else |
---|
| 6577 | # Is the header compilable? |
---|
| 6578 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6579 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6580 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6581 | /* confdefs.h. */ |
---|
| 6582 | _ACEOF |
---|
| 6583 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6584 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6585 | /* end confdefs.h. */ |
---|
| 6586 | $ac_includes_default |
---|
| 6587 | #include <$ac_header> |
---|
| 6588 | _ACEOF |
---|
| 6589 | rm -f conftest.$ac_objext |
---|
| 6590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6591 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6592 | ac_status=$? |
---|
| 6593 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6594 | rm -f conftest.er1 |
---|
| 6595 | cat conftest.err >&5 |
---|
| 6596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6597 | (exit $ac_status); } && |
---|
| 6598 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6599 | || test ! -s conftest.err' |
---|
| 6600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6601 | (eval $ac_try) 2>&5 |
---|
| 6602 | ac_status=$? |
---|
| 6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6604 | (exit $ac_status); }; } && |
---|
| 6605 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6607 | (eval $ac_try) 2>&5 |
---|
| 6608 | ac_status=$? |
---|
| 6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6610 | (exit $ac_status); }; }; then |
---|
| 6611 | ac_header_compiler=yes |
---|
| 6612 | else |
---|
| 6613 | echo "$as_me: failed program was:" >&5 |
---|
| 6614 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6615 | |
---|
| 6616 | ac_header_compiler=no |
---|
| 6617 | fi |
---|
| 6618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6619 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6620 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6621 | |
---|
| 6622 | # Is the header present? |
---|
| 6623 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6624 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6625 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6626 | /* confdefs.h. */ |
---|
| 6627 | _ACEOF |
---|
| 6628 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6629 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6630 | /* end confdefs.h. */ |
---|
| 6631 | #include <$ac_header> |
---|
| 6632 | _ACEOF |
---|
| 6633 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6634 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6635 | ac_status=$? |
---|
| 6636 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6637 | rm -f conftest.er1 |
---|
| 6638 | cat conftest.err >&5 |
---|
| 6639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6640 | (exit $ac_status); } >/dev/null; then |
---|
| 6641 | if test -s conftest.err; then |
---|
| 6642 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6643 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6644 | else |
---|
| 6645 | ac_cpp_err= |
---|
| 6646 | fi |
---|
| 6647 | else |
---|
| 6648 | ac_cpp_err=yes |
---|
| 6649 | fi |
---|
| 6650 | if test -z "$ac_cpp_err"; then |
---|
| 6651 | ac_header_preproc=yes |
---|
| 6652 | else |
---|
| 6653 | echo "$as_me: failed program was:" >&5 |
---|
| 6654 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6655 | |
---|
| 6656 | ac_header_preproc=no |
---|
| 6657 | fi |
---|
| 6658 | rm -f conftest.err conftest.$ac_ext |
---|
| 6659 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6660 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6661 | |
---|
| 6662 | # So? What about this header? |
---|
| 6663 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6664 | yes:no: ) |
---|
| 6665 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6666 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6667 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6668 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6669 | ac_header_preproc=yes |
---|
| 6670 | ;; |
---|
| 6671 | no:yes:* ) |
---|
| 6672 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6673 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6674 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6675 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6676 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6677 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6678 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6679 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6680 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6681 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6682 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6683 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6684 | ( |
---|
| 6685 | cat <<\_ASBOX |
---|
[3240] | 6686 | ## ---------------------------------------------- ## |
---|
| 6687 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6688 | ## ---------------------------------------------- ## |
---|
[3140] | 6689 | _ASBOX |
---|
| 6690 | ) | |
---|
| 6691 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6692 | ;; |
---|
| 6693 | esac |
---|
| 6694 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6695 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6696 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6698 | else |
---|
| 6699 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 6700 | fi |
---|
| 6701 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6702 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6703 | |
---|
| 6704 | fi |
---|
| 6705 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 6706 | cat >>confdefs.h <<_ACEOF |
---|
| 6707 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 6708 | _ACEOF |
---|
| 6709 | pngHeader="yes" |
---|
| 6710 | else |
---|
| 6711 | pngHeader="no" |
---|
| 6712 | fi |
---|
| 6713 | |
---|
| 6714 | done |
---|
| 6715 | |
---|
[3499] | 6716 | if test x$pngHeader = xno; then |
---|
[3140] | 6717 | echo " not including png." |
---|
| 6718 | else |
---|
| 6719 | echo "$as_me:$LINENO: checking for main in -lpng" >&5 |
---|
| 6720 | echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6 |
---|
| 6721 | if test "${ac_cv_lib_png_main+set}" = set; then |
---|
| 6722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6723 | else |
---|
| 6724 | ac_check_lib_save_LIBS=$LIBS |
---|
| 6725 | LIBS="-lpng $LIBS" |
---|
| 6726 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6727 | /* confdefs.h. */ |
---|
| 6728 | _ACEOF |
---|
| 6729 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6730 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6731 | /* end confdefs.h. */ |
---|
| 6732 | |
---|
| 6733 | |
---|
| 6734 | int |
---|
| 6735 | main () |
---|
| 6736 | { |
---|
| 6737 | main (); |
---|
| 6738 | ; |
---|
| 6739 | return 0; |
---|
| 6740 | } |
---|
| 6741 | _ACEOF |
---|
| 6742 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6744 | (eval $ac_link) 2>conftest.er1 |
---|
| 6745 | ac_status=$? |
---|
| 6746 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6747 | rm -f conftest.er1 |
---|
| 6748 | cat conftest.err >&5 |
---|
| 6749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6750 | (exit $ac_status); } && |
---|
| 6751 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6752 | || test ! -s conftest.err' |
---|
| 6753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6754 | (eval $ac_try) 2>&5 |
---|
| 6755 | ac_status=$? |
---|
| 6756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6757 | (exit $ac_status); }; } && |
---|
| 6758 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6760 | (eval $ac_try) 2>&5 |
---|
| 6761 | ac_status=$? |
---|
| 6762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6763 | (exit $ac_status); }; }; then |
---|
| 6764 | ac_cv_lib_png_main=yes |
---|
| 6765 | else |
---|
| 6766 | echo "$as_me: failed program was:" >&5 |
---|
| 6767 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6768 | |
---|
| 6769 | ac_cv_lib_png_main=no |
---|
| 6770 | fi |
---|
| 6771 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 6772 | conftest$ac_exeext conftest.$ac_ext |
---|
| 6773 | LIBS=$ac_check_lib_save_LIBS |
---|
| 6774 | fi |
---|
| 6775 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5 |
---|
| 6776 | echo "${ECHO_T}$ac_cv_lib_png_main" >&6 |
---|
| 6777 | if test $ac_cv_lib_png_main = yes; then |
---|
| 6778 | FOUND_png=yes |
---|
| 6779 | fi |
---|
| 6780 | |
---|
[3499] | 6781 | if test x$FOUND_png = xyes ; then |
---|
[3140] | 6782 | LIBS="$LIBS -lpng" |
---|
| 6783 | else |
---|
| 6784 | echo "------------------" |
---|
| 6785 | echo "png library not found." |
---|
| 6786 | echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html" |
---|
| 6787 | echo "------------------" |
---|
| 6788 | exit -1 |
---|
| 6789 | fi |
---|
| 6790 | fi |
---|
| 6791 | fi |
---|
| 6792 | |
---|
[3499] | 6793 | #-----# |
---|
| 6794 | # GTK # |
---|
| 6795 | #-----# |
---|
| 6796 | if test x$def_gtk = xyes; then |
---|
[3100] | 6797 | |
---|
| 6798 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
| 6799 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
[3099] | 6800 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
[3100] | 6801 | if `pkg-config --exists gtk+-2.0`; then |
---|
| 6802 | echo "yes" |
---|
| 6803 | have_gtk2=yes |
---|
| 6804 | GTK2_LIBS=`pkg-config --libs gtk+-2.0` |
---|
| 6805 | GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0` |
---|
[3101] | 6806 | |
---|
| 6807 | cat >>confdefs.h <<_ACEOF |
---|
| 6808 | #define HAVE_GTK2 1 |
---|
| 6809 | _ACEOF |
---|
| 6810 | |
---|
[3100] | 6811 | else |
---|
| 6812 | echo "no" |
---|
| 6813 | fi |
---|
| 6814 | |
---|
[2980] | 6815 | fi |
---|
[2190] | 6816 | |
---|
[2701] | 6817 | |
---|
| 6818 | |
---|
[2190] | 6819 | |
---|
[3100] | 6820 | if test x$have_gtk2 = xyes; then |
---|
[2980] | 6821 | HAVE_GTK2_TRUE= |
---|
| 6822 | HAVE_GTK2_FALSE='#' |
---|
| 6823 | else |
---|
| 6824 | HAVE_GTK2_TRUE='#' |
---|
| 6825 | HAVE_GTK2_FALSE= |
---|
| 6826 | fi |
---|
| 6827 | |
---|
| 6828 | |
---|
[3499] | 6829 | #---------# |
---|
| 6830 | # gThread # |
---|
| 6831 | #---------# |
---|
| 6832 | if test x$def_gthread = xyes; then |
---|
[2980] | 6833 | |
---|
[3499] | 6834 | echo "$as_me:$LINENO: checking for gthread" >&5 |
---|
| 6835 | echo $ECHO_N "checking for gthread... $ECHO_C" >&6 |
---|
| 6836 | if `pkg-config --exists gthread-2.0`; then |
---|
| 6837 | echo "yes" |
---|
| 6838 | have_gthread=yes |
---|
| 6839 | GTHREAD_LIBS=`pkg-config --libs gthread-2.0` |
---|
| 6840 | GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0` |
---|
[3100] | 6841 | |
---|
[3499] | 6842 | cat >>confdefs.h <<_ACEOF |
---|
| 6843 | #define HAVE_GTHREAD 1 |
---|
| 6844 | _ACEOF |
---|
[2190] | 6845 | |
---|
[3499] | 6846 | else |
---|
| 6847 | echo "no" |
---|
| 6848 | fi |
---|
[2190] | 6849 | |
---|
[3499] | 6850 | fi |
---|
| 6851 | |
---|
| 6852 | |
---|
| 6853 | |
---|
| 6854 | |
---|
| 6855 | if test x$have_gthread = xyes; then |
---|
| 6856 | HAVE_GTHREAD_TRUE= |
---|
| 6857 | HAVE_GTHREAD_FALSE='#' |
---|
| 6858 | else |
---|
| 6859 | HAVE_GTHREAD_TRUE='#' |
---|
| 6860 | HAVE_GTHREAD_FALSE= |
---|
| 6861 | fi |
---|
| 6862 | |
---|
| 6863 | |
---|
| 6864 | #---------# |
---|
| 6865 | # libcURL # |
---|
| 6866 | #---------# |
---|
| 6867 | if test x$def_curl = xyes; then |
---|
| 6868 | |
---|
| 6869 | |
---|
| 6870 | for ac_header in curl/curl.h |
---|
| 6871 | do |
---|
| 6872 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 6873 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6874 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 6875 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 6876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 6877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6878 | fi |
---|
| 6879 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 6880 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 6881 | else |
---|
| 6882 | # Is the header compilable? |
---|
| 6883 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 6884 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 6885 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6886 | /* confdefs.h. */ |
---|
| 6887 | _ACEOF |
---|
| 6888 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6889 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6890 | /* end confdefs.h. */ |
---|
| 6891 | $ac_includes_default |
---|
| 6892 | #include <$ac_header> |
---|
| 6893 | _ACEOF |
---|
| 6894 | rm -f conftest.$ac_objext |
---|
| 6895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 6896 | (eval $ac_compile) 2>conftest.er1 |
---|
| 6897 | ac_status=$? |
---|
| 6898 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6899 | rm -f conftest.er1 |
---|
| 6900 | cat conftest.err >&5 |
---|
| 6901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6902 | (exit $ac_status); } && |
---|
| 6903 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 6904 | || test ! -s conftest.err' |
---|
| 6905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6906 | (eval $ac_try) 2>&5 |
---|
| 6907 | ac_status=$? |
---|
| 6908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6909 | (exit $ac_status); }; } && |
---|
| 6910 | { ac_try='test -s conftest.$ac_objext' |
---|
| 6911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6912 | (eval $ac_try) 2>&5 |
---|
| 6913 | ac_status=$? |
---|
| 6914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6915 | (exit $ac_status); }; }; then |
---|
| 6916 | ac_header_compiler=yes |
---|
| 6917 | else |
---|
| 6918 | echo "$as_me: failed program was:" >&5 |
---|
| 6919 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6920 | |
---|
| 6921 | ac_header_compiler=no |
---|
| 6922 | fi |
---|
| 6923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 6924 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 6925 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 6926 | |
---|
| 6927 | # Is the header present? |
---|
| 6928 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 6929 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 6930 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6931 | /* confdefs.h. */ |
---|
| 6932 | _ACEOF |
---|
| 6933 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6934 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6935 | /* end confdefs.h. */ |
---|
| 6936 | #include <$ac_header> |
---|
| 6937 | _ACEOF |
---|
| 6938 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 6939 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 6940 | ac_status=$? |
---|
| 6941 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 6942 | rm -f conftest.er1 |
---|
| 6943 | cat conftest.err >&5 |
---|
| 6944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6945 | (exit $ac_status); } >/dev/null; then |
---|
| 6946 | if test -s conftest.err; then |
---|
| 6947 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 6948 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 6949 | else |
---|
| 6950 | ac_cpp_err= |
---|
| 6951 | fi |
---|
| 6952 | else |
---|
| 6953 | ac_cpp_err=yes |
---|
| 6954 | fi |
---|
| 6955 | if test -z "$ac_cpp_err"; then |
---|
| 6956 | ac_header_preproc=yes |
---|
| 6957 | else |
---|
| 6958 | echo "$as_me: failed program was:" >&5 |
---|
| 6959 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6960 | |
---|
| 6961 | ac_header_preproc=no |
---|
| 6962 | fi |
---|
| 6963 | rm -f conftest.err conftest.$ac_ext |
---|
| 6964 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 6965 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 6966 | |
---|
| 6967 | # So? What about this header? |
---|
| 6968 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 6969 | yes:no: ) |
---|
| 6970 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 6971 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 6972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 6973 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 6974 | ac_header_preproc=yes |
---|
| 6975 | ;; |
---|
| 6976 | no:yes:* ) |
---|
| 6977 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 6978 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 6979 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 6980 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 6981 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 6982 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 6983 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 6984 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 6985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 6986 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 6987 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 6988 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 6989 | ( |
---|
| 6990 | cat <<\_ASBOX |
---|
| 6991 | ## ---------------------------------------------- ## |
---|
| 6992 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 6993 | ## ---------------------------------------------- ## |
---|
| 6994 | _ASBOX |
---|
| 6995 | ) | |
---|
| 6996 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 6997 | ;; |
---|
| 6998 | esac |
---|
| 6999 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7001 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7003 | else |
---|
| 7004 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7005 | fi |
---|
| 7006 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7007 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7008 | |
---|
| 7009 | fi |
---|
| 7010 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7011 | cat >>confdefs.h <<_ACEOF |
---|
| 7012 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7013 | _ACEOF |
---|
| 7014 | curlHeader="yes" |
---|
| 7015 | else |
---|
| 7016 | curlHeader="no" |
---|
| 7017 | fi |
---|
| 7018 | |
---|
| 7019 | done |
---|
| 7020 | |
---|
| 7021 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
| 7022 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
| 7023 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
| 7024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7025 | else |
---|
| 7026 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7027 | LIBS="-lcurl $LIBS" |
---|
| 7028 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7029 | /* confdefs.h. */ |
---|
| 7030 | _ACEOF |
---|
| 7031 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7032 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7033 | /* end confdefs.h. */ |
---|
| 7034 | |
---|
| 7035 | |
---|
| 7036 | int |
---|
| 7037 | main () |
---|
| 7038 | { |
---|
| 7039 | main (); |
---|
| 7040 | ; |
---|
| 7041 | return 0; |
---|
| 7042 | } |
---|
| 7043 | _ACEOF |
---|
| 7044 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7046 | (eval $ac_link) 2>conftest.er1 |
---|
| 7047 | ac_status=$? |
---|
| 7048 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7049 | rm -f conftest.er1 |
---|
| 7050 | cat conftest.err >&5 |
---|
| 7051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7052 | (exit $ac_status); } && |
---|
| 7053 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7054 | || test ! -s conftest.err' |
---|
| 7055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7056 | (eval $ac_try) 2>&5 |
---|
| 7057 | ac_status=$? |
---|
| 7058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7059 | (exit $ac_status); }; } && |
---|
| 7060 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7062 | (eval $ac_try) 2>&5 |
---|
| 7063 | ac_status=$? |
---|
| 7064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7065 | (exit $ac_status); }; }; then |
---|
| 7066 | ac_cv_lib_curl_main=yes |
---|
| 7067 | else |
---|
| 7068 | echo "$as_me: failed program was:" >&5 |
---|
| 7069 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7070 | |
---|
| 7071 | ac_cv_lib_curl_main=no |
---|
| 7072 | fi |
---|
| 7073 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7074 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7075 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7076 | fi |
---|
| 7077 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
| 7078 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
| 7079 | if test $ac_cv_lib_curl_main = yes; then |
---|
| 7080 | FOUND_curl=yes |
---|
| 7081 | fi |
---|
| 7082 | |
---|
| 7083 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
| 7084 | have_curl=yes |
---|
| 7085 | CURL_LIBS=`curl-config --libs` |
---|
| 7086 | CURLCFLAGS=`curl-config --cflags` |
---|
| 7087 | |
---|
| 7088 | cat >>confdefs.h <<_ACEOF |
---|
| 7089 | #define HAVE_CURL 1 |
---|
| 7090 | _ACEOF |
---|
| 7091 | |
---|
| 7092 | else |
---|
| 7093 | have_curl=no |
---|
| 7094 | fi |
---|
| 7095 | |
---|
| 7096 | fi |
---|
| 7097 | |
---|
| 7098 | |
---|
| 7099 | |
---|
| 7100 | |
---|
| 7101 | if test x$have_curl = xyes; then |
---|
| 7102 | HAVE_CURL_TRUE= |
---|
| 7103 | HAVE_CURL_FALSE='#' |
---|
| 7104 | else |
---|
| 7105 | HAVE_CURL_TRUE='#' |
---|
| 7106 | HAVE_CURL_FALSE= |
---|
| 7107 | fi |
---|
| 7108 | |
---|
| 7109 | |
---|
| 7110 | #---------# |
---|
| 7111 | # pthread # |
---|
| 7112 | #---------# |
---|
| 7113 | if test x$def_pthread = xyes ; then |
---|
| 7114 | if test x$have_gthread = xyes ; then |
---|
| 7115 | |
---|
| 7116 | for ac_header in pthread.h |
---|
| 7117 | do |
---|
| 7118 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7119 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7120 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7121 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7122 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7124 | fi |
---|
| 7125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7126 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7127 | else |
---|
| 7128 | # Is the header compilable? |
---|
| 7129 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7130 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7131 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7132 | /* confdefs.h. */ |
---|
| 7133 | _ACEOF |
---|
| 7134 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7135 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7136 | /* end confdefs.h. */ |
---|
| 7137 | $ac_includes_default |
---|
| 7138 | #include <$ac_header> |
---|
| 7139 | _ACEOF |
---|
| 7140 | rm -f conftest.$ac_objext |
---|
| 7141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7142 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7143 | ac_status=$? |
---|
| 7144 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7145 | rm -f conftest.er1 |
---|
| 7146 | cat conftest.err >&5 |
---|
| 7147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7148 | (exit $ac_status); } && |
---|
| 7149 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7150 | || test ! -s conftest.err' |
---|
| 7151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7152 | (eval $ac_try) 2>&5 |
---|
| 7153 | ac_status=$? |
---|
| 7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7155 | (exit $ac_status); }; } && |
---|
| 7156 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7158 | (eval $ac_try) 2>&5 |
---|
| 7159 | ac_status=$? |
---|
| 7160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7161 | (exit $ac_status); }; }; then |
---|
| 7162 | ac_header_compiler=yes |
---|
| 7163 | else |
---|
| 7164 | echo "$as_me: failed program was:" >&5 |
---|
| 7165 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7166 | |
---|
| 7167 | ac_header_compiler=no |
---|
| 7168 | fi |
---|
| 7169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7170 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7171 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7172 | |
---|
| 7173 | # Is the header present? |
---|
| 7174 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7175 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7176 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7177 | /* confdefs.h. */ |
---|
| 7178 | _ACEOF |
---|
| 7179 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7180 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7181 | /* end confdefs.h. */ |
---|
| 7182 | #include <$ac_header> |
---|
| 7183 | _ACEOF |
---|
| 7184 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7185 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7186 | ac_status=$? |
---|
| 7187 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7188 | rm -f conftest.er1 |
---|
| 7189 | cat conftest.err >&5 |
---|
| 7190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7191 | (exit $ac_status); } >/dev/null; then |
---|
| 7192 | if test -s conftest.err; then |
---|
| 7193 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7194 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7195 | else |
---|
| 7196 | ac_cpp_err= |
---|
| 7197 | fi |
---|
| 7198 | else |
---|
| 7199 | ac_cpp_err=yes |
---|
| 7200 | fi |
---|
| 7201 | if test -z "$ac_cpp_err"; then |
---|
| 7202 | ac_header_preproc=yes |
---|
| 7203 | else |
---|
| 7204 | echo "$as_me: failed program was:" >&5 |
---|
| 7205 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7206 | |
---|
| 7207 | ac_header_preproc=no |
---|
| 7208 | fi |
---|
| 7209 | rm -f conftest.err conftest.$ac_ext |
---|
| 7210 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7211 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7212 | |
---|
| 7213 | # So? What about this header? |
---|
| 7214 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7215 | yes:no: ) |
---|
| 7216 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7217 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7218 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7219 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7220 | ac_header_preproc=yes |
---|
| 7221 | ;; |
---|
| 7222 | no:yes:* ) |
---|
| 7223 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7224 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7225 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7226 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7227 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7228 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7229 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7230 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7231 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7232 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7233 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7234 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7235 | ( |
---|
| 7236 | cat <<\_ASBOX |
---|
| 7237 | ## ---------------------------------------------- ## |
---|
| 7238 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7239 | ## ---------------------------------------------- ## |
---|
| 7240 | _ASBOX |
---|
| 7241 | ) | |
---|
| 7242 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7243 | ;; |
---|
| 7244 | esac |
---|
| 7245 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7246 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7249 | else |
---|
| 7250 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7251 | fi |
---|
| 7252 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7253 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7254 | |
---|
| 7255 | fi |
---|
| 7256 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7257 | cat >>confdefs.h <<_ACEOF |
---|
| 7258 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7259 | _ACEOF |
---|
| 7260 | pthreadHeader="yes" |
---|
| 7261 | else |
---|
| 7262 | pthreadHeader="no" |
---|
| 7263 | fi |
---|
| 7264 | |
---|
| 7265 | done |
---|
| 7266 | |
---|
| 7267 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
| 7268 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
| 7269 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
| 7270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7271 | else |
---|
| 7272 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7273 | LIBS="-lpthread $LIBS" |
---|
| 7274 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7275 | /* confdefs.h. */ |
---|
| 7276 | _ACEOF |
---|
| 7277 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7278 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7279 | /* end confdefs.h. */ |
---|
| 7280 | |
---|
| 7281 | |
---|
| 7282 | int |
---|
| 7283 | main () |
---|
| 7284 | { |
---|
| 7285 | main (); |
---|
| 7286 | ; |
---|
| 7287 | return 0; |
---|
| 7288 | } |
---|
| 7289 | _ACEOF |
---|
| 7290 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7292 | (eval $ac_link) 2>conftest.er1 |
---|
| 7293 | ac_status=$? |
---|
| 7294 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7295 | rm -f conftest.er1 |
---|
| 7296 | cat conftest.err >&5 |
---|
| 7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7298 | (exit $ac_status); } && |
---|
| 7299 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7300 | || test ! -s conftest.err' |
---|
| 7301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7302 | (eval $ac_try) 2>&5 |
---|
| 7303 | ac_status=$? |
---|
| 7304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7305 | (exit $ac_status); }; } && |
---|
| 7306 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7308 | (eval $ac_try) 2>&5 |
---|
| 7309 | ac_status=$? |
---|
| 7310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7311 | (exit $ac_status); }; }; then |
---|
| 7312 | ac_cv_lib_pthread_main=yes |
---|
| 7313 | else |
---|
| 7314 | echo "$as_me: failed program was:" >&5 |
---|
| 7315 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7316 | |
---|
| 7317 | ac_cv_lib_pthread_main=no |
---|
| 7318 | fi |
---|
| 7319 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7320 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7321 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7322 | fi |
---|
| 7323 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
| 7324 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
| 7325 | if test $ac_cv_lib_pthread_main = yes; then |
---|
| 7326 | FOUND_pthread=yes |
---|
| 7327 | fi |
---|
| 7328 | |
---|
| 7329 | if test x$FOUND_pthread = xyes ; then |
---|
| 7330 | LIBS="$LIBS -lpthread" |
---|
| 7331 | fi |
---|
| 7332 | fi |
---|
| 7333 | fi |
---|
| 7334 | |
---|
| 7335 | |
---|
[1956] | 7336 | # FIXME: Replace `main' with a function in `-lm': |
---|
| 7337 | |
---|
| 7338 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 7339 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 7340 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 7341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7342 | else |
---|
| 7343 | ac_check_lib_save_LIBS=$LIBS |
---|
| 7344 | LIBS="-lm $LIBS" |
---|
| 7345 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7346 | /* confdefs.h. */ |
---|
| 7347 | _ACEOF |
---|
| 7348 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7349 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7350 | /* end confdefs.h. */ |
---|
| 7351 | |
---|
| 7352 | |
---|
| 7353 | int |
---|
| 7354 | main () |
---|
| 7355 | { |
---|
| 7356 | main (); |
---|
| 7357 | ; |
---|
| 7358 | return 0; |
---|
| 7359 | } |
---|
| 7360 | _ACEOF |
---|
| 7361 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 7362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7363 | (eval $ac_link) 2>conftest.er1 |
---|
| 7364 | ac_status=$? |
---|
| 7365 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7366 | rm -f conftest.er1 |
---|
| 7367 | cat conftest.err >&5 |
---|
| 7368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7369 | (exit $ac_status); } && |
---|
| 7370 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7371 | || test ! -s conftest.err' |
---|
| 7372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7373 | (eval $ac_try) 2>&5 |
---|
| 7374 | ac_status=$? |
---|
| 7375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7376 | (exit $ac_status); }; } && |
---|
| 7377 | { ac_try='test -s conftest$ac_exeext' |
---|
| 7378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7379 | (eval $ac_try) 2>&5 |
---|
| 7380 | ac_status=$? |
---|
| 7381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7382 | (exit $ac_status); }; }; then |
---|
| 7383 | ac_cv_lib_m_main=yes |
---|
| 7384 | else |
---|
| 7385 | echo "$as_me: failed program was:" >&5 |
---|
| 7386 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7387 | |
---|
| 7388 | ac_cv_lib_m_main=no |
---|
| 7389 | fi |
---|
| 7390 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 7391 | conftest$ac_exeext conftest.$ac_ext |
---|
| 7392 | LIBS=$ac_check_lib_save_LIBS |
---|
| 7393 | fi |
---|
| 7394 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 7395 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 7396 | if test $ac_cv_lib_m_main = yes; then |
---|
| 7397 | cat >>confdefs.h <<_ACEOF |
---|
| 7398 | #define HAVE_LIBM 1 |
---|
| 7399 | _ACEOF |
---|
| 7400 | |
---|
| 7401 | LIBS="-lm $LIBS" |
---|
| 7402 | |
---|
| 7403 | fi |
---|
| 7404 | |
---|
| 7405 | |
---|
[2018] | 7406 | |
---|
[1956] | 7407 | # Checks for header files. |
---|
| 7408 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 7409 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 7410 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 7411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7412 | else |
---|
| 7413 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7414 | /* confdefs.h. */ |
---|
| 7415 | _ACEOF |
---|
| 7416 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7417 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7418 | /* end confdefs.h. */ |
---|
| 7419 | #include <stdlib.h> |
---|
| 7420 | #include <stdarg.h> |
---|
| 7421 | #include <string.h> |
---|
| 7422 | #include <float.h> |
---|
| 7423 | |
---|
| 7424 | int |
---|
| 7425 | main () |
---|
| 7426 | { |
---|
| 7427 | |
---|
| 7428 | ; |
---|
| 7429 | return 0; |
---|
| 7430 | } |
---|
| 7431 | _ACEOF |
---|
| 7432 | rm -f conftest.$ac_objext |
---|
| 7433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7434 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7435 | ac_status=$? |
---|
| 7436 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7437 | rm -f conftest.er1 |
---|
| 7438 | cat conftest.err >&5 |
---|
| 7439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7440 | (exit $ac_status); } && |
---|
| 7441 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7442 | || test ! -s conftest.err' |
---|
| 7443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7444 | (eval $ac_try) 2>&5 |
---|
| 7445 | ac_status=$? |
---|
| 7446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7447 | (exit $ac_status); }; } && |
---|
| 7448 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7450 | (eval $ac_try) 2>&5 |
---|
| 7451 | ac_status=$? |
---|
| 7452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7453 | (exit $ac_status); }; }; then |
---|
| 7454 | ac_cv_header_stdc=yes |
---|
| 7455 | else |
---|
| 7456 | echo "$as_me: failed program was:" >&5 |
---|
| 7457 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7458 | |
---|
| 7459 | ac_cv_header_stdc=no |
---|
| 7460 | fi |
---|
| 7461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7462 | |
---|
| 7463 | if test $ac_cv_header_stdc = yes; then |
---|
| 7464 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 7465 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7466 | /* confdefs.h. */ |
---|
| 7467 | _ACEOF |
---|
| 7468 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7469 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7470 | /* end confdefs.h. */ |
---|
| 7471 | #include <string.h> |
---|
| 7472 | |
---|
| 7473 | _ACEOF |
---|
| 7474 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 7475 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 7476 | : |
---|
| 7477 | else |
---|
| 7478 | ac_cv_header_stdc=no |
---|
| 7479 | fi |
---|
| 7480 | rm -f conftest* |
---|
| 7481 | |
---|
| 7482 | fi |
---|
| 7483 | |
---|
| 7484 | if test $ac_cv_header_stdc = yes; then |
---|
| 7485 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 7486 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7487 | /* confdefs.h. */ |
---|
| 7488 | _ACEOF |
---|
| 7489 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7490 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7491 | /* end confdefs.h. */ |
---|
| 7492 | #include <stdlib.h> |
---|
| 7493 | |
---|
| 7494 | _ACEOF |
---|
| 7495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 7496 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 7497 | : |
---|
| 7498 | else |
---|
| 7499 | ac_cv_header_stdc=no |
---|
| 7500 | fi |
---|
| 7501 | rm -f conftest* |
---|
| 7502 | |
---|
| 7503 | fi |
---|
| 7504 | |
---|
| 7505 | if test $ac_cv_header_stdc = yes; then |
---|
| 7506 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 7507 | if test "$cross_compiling" = yes; then |
---|
| 7508 | : |
---|
| 7509 | else |
---|
| 7510 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7511 | /* confdefs.h. */ |
---|
| 7512 | _ACEOF |
---|
| 7513 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7514 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7515 | /* end confdefs.h. */ |
---|
| 7516 | #include <ctype.h> |
---|
| 7517 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 7518 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 7519 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 7520 | #else |
---|
| 7521 | # define ISLOWER(c) \ |
---|
| 7522 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 7523 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 7524 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 7525 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 7526 | #endif |
---|
| 7527 | |
---|
| 7528 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 7529 | int |
---|
| 7530 | main () |
---|
| 7531 | { |
---|
| 7532 | int i; |
---|
| 7533 | for (i = 0; i < 256; i++) |
---|
| 7534 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 7535 | || toupper (i) != TOUPPER (i)) |
---|
| 7536 | exit(2); |
---|
| 7537 | exit (0); |
---|
| 7538 | } |
---|
| 7539 | _ACEOF |
---|
| 7540 | rm -f conftest$ac_exeext |
---|
| 7541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 7542 | (eval $ac_link) 2>&5 |
---|
| 7543 | ac_status=$? |
---|
| 7544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7545 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 7546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7547 | (eval $ac_try) 2>&5 |
---|
| 7548 | ac_status=$? |
---|
| 7549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7550 | (exit $ac_status); }; }; then |
---|
| 7551 | : |
---|
| 7552 | else |
---|
| 7553 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 7554 | echo "$as_me: failed program was:" >&5 |
---|
| 7555 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7556 | |
---|
| 7557 | ( exit $ac_status ) |
---|
| 7558 | ac_cv_header_stdc=no |
---|
| 7559 | fi |
---|
| 7560 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 7561 | fi |
---|
| 7562 | fi |
---|
| 7563 | fi |
---|
| 7564 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 7565 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 7566 | if test $ac_cv_header_stdc = yes; then |
---|
| 7567 | |
---|
| 7568 | cat >>confdefs.h <<\_ACEOF |
---|
| 7569 | #define STDC_HEADERS 1 |
---|
| 7570 | _ACEOF |
---|
| 7571 | |
---|
| 7572 | fi |
---|
| 7573 | |
---|
| 7574 | |
---|
| 7575 | |
---|
| 7576 | for ac_header in stdlib.h string.h |
---|
| 7577 | do |
---|
| 7578 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7579 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7580 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7581 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7582 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7584 | fi |
---|
| 7585 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7586 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7587 | else |
---|
| 7588 | # Is the header compilable? |
---|
| 7589 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7590 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7591 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7592 | /* confdefs.h. */ |
---|
| 7593 | _ACEOF |
---|
| 7594 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7595 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7596 | /* end confdefs.h. */ |
---|
| 7597 | $ac_includes_default |
---|
| 7598 | #include <$ac_header> |
---|
| 7599 | _ACEOF |
---|
| 7600 | rm -f conftest.$ac_objext |
---|
| 7601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7602 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7603 | ac_status=$? |
---|
| 7604 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7605 | rm -f conftest.er1 |
---|
| 7606 | cat conftest.err >&5 |
---|
| 7607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7608 | (exit $ac_status); } && |
---|
| 7609 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7610 | || test ! -s conftest.err' |
---|
| 7611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7612 | (eval $ac_try) 2>&5 |
---|
| 7613 | ac_status=$? |
---|
| 7614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7615 | (exit $ac_status); }; } && |
---|
| 7616 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7618 | (eval $ac_try) 2>&5 |
---|
| 7619 | ac_status=$? |
---|
| 7620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7621 | (exit $ac_status); }; }; then |
---|
| 7622 | ac_header_compiler=yes |
---|
| 7623 | else |
---|
| 7624 | echo "$as_me: failed program was:" >&5 |
---|
| 7625 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7626 | |
---|
| 7627 | ac_header_compiler=no |
---|
| 7628 | fi |
---|
| 7629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7630 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7631 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7632 | |
---|
| 7633 | # Is the header present? |
---|
| 7634 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7635 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7636 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7637 | /* confdefs.h. */ |
---|
| 7638 | _ACEOF |
---|
| 7639 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7640 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7641 | /* end confdefs.h. */ |
---|
| 7642 | #include <$ac_header> |
---|
| 7643 | _ACEOF |
---|
| 7644 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7645 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7646 | ac_status=$? |
---|
| 7647 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7648 | rm -f conftest.er1 |
---|
| 7649 | cat conftest.err >&5 |
---|
| 7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7651 | (exit $ac_status); } >/dev/null; then |
---|
| 7652 | if test -s conftest.err; then |
---|
| 7653 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7654 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7655 | else |
---|
| 7656 | ac_cpp_err= |
---|
| 7657 | fi |
---|
| 7658 | else |
---|
| 7659 | ac_cpp_err=yes |
---|
| 7660 | fi |
---|
| 7661 | if test -z "$ac_cpp_err"; then |
---|
| 7662 | ac_header_preproc=yes |
---|
| 7663 | else |
---|
| 7664 | echo "$as_me: failed program was:" >&5 |
---|
| 7665 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7666 | |
---|
| 7667 | ac_header_preproc=no |
---|
| 7668 | fi |
---|
| 7669 | rm -f conftest.err conftest.$ac_ext |
---|
| 7670 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7671 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7672 | |
---|
| 7673 | # So? What about this header? |
---|
| 7674 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7675 | yes:no: ) |
---|
| 7676 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7677 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7678 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7679 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7680 | ac_header_preproc=yes |
---|
| 7681 | ;; |
---|
| 7682 | no:yes:* ) |
---|
| 7683 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7684 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7685 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7686 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7687 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 7688 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 7689 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 7690 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 7691 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 7692 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 7693 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 7694 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 7695 | ( |
---|
| 7696 | cat <<\_ASBOX |
---|
[3240] | 7697 | ## ---------------------------------------------- ## |
---|
| 7698 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 7699 | ## ---------------------------------------------- ## |
---|
[1956] | 7700 | _ASBOX |
---|
| 7701 | ) | |
---|
| 7702 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 7703 | ;; |
---|
| 7704 | esac |
---|
| 7705 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7706 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7707 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7709 | else |
---|
| 7710 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 7711 | fi |
---|
| 7712 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7713 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7714 | |
---|
| 7715 | fi |
---|
| 7716 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 7717 | cat >>confdefs.h <<_ACEOF |
---|
| 7718 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 7719 | _ACEOF |
---|
| 7720 | |
---|
| 7721 | fi |
---|
| 7722 | |
---|
| 7723 | done |
---|
| 7724 | |
---|
| 7725 | |
---|
| 7726 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 7727 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 7728 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 7729 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 7730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7731 | else |
---|
| 7732 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7733 | /* confdefs.h. */ |
---|
| 7734 | _ACEOF |
---|
| 7735 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7736 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7737 | /* end confdefs.h. */ |
---|
| 7738 | |
---|
| 7739 | #include <stdbool.h> |
---|
| 7740 | #ifndef bool |
---|
| 7741 | # error bool is not defined |
---|
| 7742 | #endif |
---|
| 7743 | #ifndef false |
---|
| 7744 | # error false is not defined |
---|
| 7745 | #endif |
---|
| 7746 | #if false |
---|
| 7747 | # error false is not 0 |
---|
| 7748 | #endif |
---|
| 7749 | #ifndef true |
---|
| 7750 | # error true is not defined |
---|
| 7751 | #endif |
---|
| 7752 | #if true != 1 |
---|
| 7753 | # error true is not 1 |
---|
| 7754 | #endif |
---|
| 7755 | #ifndef __bool_true_false_are_defined |
---|
| 7756 | # error __bool_true_false_are_defined is not defined |
---|
| 7757 | #endif |
---|
| 7758 | |
---|
| 7759 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 7760 | |
---|
| 7761 | char a[true == 1 ? 1 : -1]; |
---|
| 7762 | char b[false == 0 ? 1 : -1]; |
---|
| 7763 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 7764 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 7765 | bool e = &s; |
---|
| 7766 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 7767 | char g[true]; |
---|
| 7768 | char h[sizeof (_Bool)]; |
---|
| 7769 | char i[sizeof s.t]; |
---|
| 7770 | |
---|
| 7771 | int |
---|
| 7772 | main () |
---|
| 7773 | { |
---|
| 7774 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 7775 | ; |
---|
| 7776 | return 0; |
---|
| 7777 | } |
---|
| 7778 | _ACEOF |
---|
| 7779 | rm -f conftest.$ac_objext |
---|
| 7780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7781 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7782 | ac_status=$? |
---|
| 7783 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7784 | rm -f conftest.er1 |
---|
| 7785 | cat conftest.err >&5 |
---|
| 7786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7787 | (exit $ac_status); } && |
---|
| 7788 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7789 | || test ! -s conftest.err' |
---|
| 7790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7791 | (eval $ac_try) 2>&5 |
---|
| 7792 | ac_status=$? |
---|
| 7793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7794 | (exit $ac_status); }; } && |
---|
| 7795 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7797 | (eval $ac_try) 2>&5 |
---|
| 7798 | ac_status=$? |
---|
| 7799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7800 | (exit $ac_status); }; }; then |
---|
| 7801 | ac_cv_header_stdbool_h=yes |
---|
| 7802 | else |
---|
| 7803 | echo "$as_me: failed program was:" >&5 |
---|
| 7804 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7805 | |
---|
| 7806 | ac_cv_header_stdbool_h=no |
---|
| 7807 | fi |
---|
| 7808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7809 | fi |
---|
| 7810 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 7811 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 7812 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 7813 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 7814 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 7815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7816 | else |
---|
| 7817 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7818 | /* confdefs.h. */ |
---|
| 7819 | _ACEOF |
---|
| 7820 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7821 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7822 | /* end confdefs.h. */ |
---|
| 7823 | $ac_includes_default |
---|
| 7824 | int |
---|
| 7825 | main () |
---|
| 7826 | { |
---|
| 7827 | if ((_Bool *) 0) |
---|
| 7828 | return 0; |
---|
| 7829 | if (sizeof (_Bool)) |
---|
| 7830 | return 0; |
---|
| 7831 | ; |
---|
| 7832 | return 0; |
---|
| 7833 | } |
---|
| 7834 | _ACEOF |
---|
| 7835 | rm -f conftest.$ac_objext |
---|
| 7836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7837 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7838 | ac_status=$? |
---|
| 7839 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7840 | rm -f conftest.er1 |
---|
| 7841 | cat conftest.err >&5 |
---|
| 7842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7843 | (exit $ac_status); } && |
---|
| 7844 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7845 | || test ! -s conftest.err' |
---|
| 7846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7847 | (eval $ac_try) 2>&5 |
---|
| 7848 | ac_status=$? |
---|
| 7849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7850 | (exit $ac_status); }; } && |
---|
| 7851 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7853 | (eval $ac_try) 2>&5 |
---|
| 7854 | ac_status=$? |
---|
| 7855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7856 | (exit $ac_status); }; }; then |
---|
| 7857 | ac_cv_type__Bool=yes |
---|
| 7858 | else |
---|
| 7859 | echo "$as_me: failed program was:" >&5 |
---|
| 7860 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7861 | |
---|
| 7862 | ac_cv_type__Bool=no |
---|
| 7863 | fi |
---|
| 7864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7865 | fi |
---|
| 7866 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 7867 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 7868 | if test $ac_cv_type__Bool = yes; then |
---|
| 7869 | |
---|
| 7870 | cat >>confdefs.h <<_ACEOF |
---|
| 7871 | #define HAVE__BOOL 1 |
---|
| 7872 | _ACEOF |
---|
| 7873 | |
---|
| 7874 | |
---|
| 7875 | fi |
---|
| 7876 | |
---|
| 7877 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 7878 | |
---|
| 7879 | cat >>confdefs.h <<\_ACEOF |
---|
| 7880 | #define HAVE_STDBOOL_H 1 |
---|
| 7881 | _ACEOF |
---|
| 7882 | |
---|
| 7883 | fi |
---|
| 7884 | |
---|
| 7885 | |
---|
| 7886 | # Checks for library functions. |
---|
| 7887 | |
---|
| 7888 | for ac_header in stdlib.h |
---|
| 7889 | do |
---|
| 7890 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 7891 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7892 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 7893 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 7894 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 7895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 7896 | fi |
---|
| 7897 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 7898 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 7899 | else |
---|
| 7900 | # Is the header compilable? |
---|
| 7901 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 7902 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 7903 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7904 | /* confdefs.h. */ |
---|
| 7905 | _ACEOF |
---|
| 7906 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7907 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7908 | /* end confdefs.h. */ |
---|
| 7909 | $ac_includes_default |
---|
| 7910 | #include <$ac_header> |
---|
| 7911 | _ACEOF |
---|
| 7912 | rm -f conftest.$ac_objext |
---|
| 7913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 7914 | (eval $ac_compile) 2>conftest.er1 |
---|
| 7915 | ac_status=$? |
---|
| 7916 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7917 | rm -f conftest.er1 |
---|
| 7918 | cat conftest.err >&5 |
---|
| 7919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7920 | (exit $ac_status); } && |
---|
| 7921 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 7922 | || test ! -s conftest.err' |
---|
| 7923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7924 | (eval $ac_try) 2>&5 |
---|
| 7925 | ac_status=$? |
---|
| 7926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7927 | (exit $ac_status); }; } && |
---|
| 7928 | { ac_try='test -s conftest.$ac_objext' |
---|
| 7929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 7930 | (eval $ac_try) 2>&5 |
---|
| 7931 | ac_status=$? |
---|
| 7932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7933 | (exit $ac_status); }; }; then |
---|
| 7934 | ac_header_compiler=yes |
---|
| 7935 | else |
---|
| 7936 | echo "$as_me: failed program was:" >&5 |
---|
| 7937 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7938 | |
---|
| 7939 | ac_header_compiler=no |
---|
| 7940 | fi |
---|
| 7941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 7942 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 7943 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 7944 | |
---|
| 7945 | # Is the header present? |
---|
| 7946 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 7947 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 7948 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 7949 | /* confdefs.h. */ |
---|
| 7950 | _ACEOF |
---|
| 7951 | cat confdefs.h >>conftest.$ac_ext |
---|
| 7952 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 7953 | /* end confdefs.h. */ |
---|
| 7954 | #include <$ac_header> |
---|
| 7955 | _ACEOF |
---|
| 7956 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 7957 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 7958 | ac_status=$? |
---|
| 7959 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 7960 | rm -f conftest.er1 |
---|
| 7961 | cat conftest.err >&5 |
---|
| 7962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 7963 | (exit $ac_status); } >/dev/null; then |
---|
| 7964 | if test -s conftest.err; then |
---|
| 7965 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 7966 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 7967 | else |
---|
| 7968 | ac_cpp_err= |
---|
| 7969 | fi |
---|
| 7970 | else |
---|
| 7971 | ac_cpp_err=yes |
---|
| 7972 | fi |
---|
| 7973 | if test -z "$ac_cpp_err"; then |
---|
| 7974 | ac_header_preproc=yes |
---|
| 7975 | else |
---|
| 7976 | echo "$as_me: failed program was:" >&5 |
---|
| 7977 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 7978 | |
---|
| 7979 | ac_header_preproc=no |
---|
| 7980 | fi |
---|
| 7981 | rm -f conftest.err conftest.$ac_ext |
---|
| 7982 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 7983 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 7984 | |
---|
| 7985 | # So? What about this header? |
---|
| 7986 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 7987 | yes:no: ) |
---|
| 7988 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 7989 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 7990 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 7991 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 7992 | ac_header_preproc=yes |
---|
| 7993 | ;; |
---|
| 7994 | no:yes:* ) |
---|
| 7995 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 7996 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 7997 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 7998 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 7999 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 8000 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 8001 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 8002 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 8003 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 8004 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 8005 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 8006 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 8007 | ( |
---|
| 8008 | cat <<\_ASBOX |
---|
[3240] | 8009 | ## ---------------------------------------------- ## |
---|
| 8010 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
| 8011 | ## ---------------------------------------------- ## |
---|
[1956] | 8012 | _ASBOX |
---|
| 8013 | ) | |
---|
| 8014 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 8015 | ;; |
---|
| 8016 | esac |
---|
| 8017 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 8018 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 8019 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 8020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8021 | else |
---|
| 8022 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 8023 | fi |
---|
| 8024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 8025 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 8026 | |
---|
| 8027 | fi |
---|
| 8028 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 8029 | cat >>confdefs.h <<_ACEOF |
---|
| 8030 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 8031 | _ACEOF |
---|
| 8032 | |
---|
| 8033 | fi |
---|
| 8034 | |
---|
| 8035 | done |
---|
| 8036 | |
---|
| 8037 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
| 8038 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
| 8039 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
| 8040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8041 | else |
---|
| 8042 | if test "$cross_compiling" = yes; then |
---|
| 8043 | ac_cv_func_malloc_0_nonnull=no |
---|
| 8044 | else |
---|
| 8045 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8046 | /* confdefs.h. */ |
---|
| 8047 | _ACEOF |
---|
| 8048 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8049 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8050 | /* end confdefs.h. */ |
---|
| 8051 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
| 8052 | # include <stdlib.h> |
---|
| 8053 | #else |
---|
| 8054 | char *malloc (); |
---|
| 8055 | #endif |
---|
| 8056 | |
---|
| 8057 | int |
---|
| 8058 | main () |
---|
| 8059 | { |
---|
| 8060 | exit (malloc (0) ? 0 : 1); |
---|
| 8061 | ; |
---|
| 8062 | return 0; |
---|
| 8063 | } |
---|
| 8064 | _ACEOF |
---|
| 8065 | rm -f conftest$ac_exeext |
---|
| 8066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8067 | (eval $ac_link) 2>&5 |
---|
| 8068 | ac_status=$? |
---|
| 8069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8070 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 8071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8072 | (eval $ac_try) 2>&5 |
---|
| 8073 | ac_status=$? |
---|
| 8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8075 | (exit $ac_status); }; }; then |
---|
| 8076 | ac_cv_func_malloc_0_nonnull=yes |
---|
| 8077 | else |
---|
| 8078 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 8079 | echo "$as_me: failed program was:" >&5 |
---|
| 8080 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8081 | |
---|
| 8082 | ( exit $ac_status ) |
---|
| 8083 | ac_cv_func_malloc_0_nonnull=no |
---|
| 8084 | fi |
---|
| 8085 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 8086 | fi |
---|
| 8087 | fi |
---|
| 8088 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
| 8089 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
| 8090 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
| 8091 | |
---|
| 8092 | cat >>confdefs.h <<\_ACEOF |
---|
| 8093 | #define HAVE_MALLOC 1 |
---|
| 8094 | _ACEOF |
---|
| 8095 | |
---|
| 8096 | else |
---|
| 8097 | cat >>confdefs.h <<\_ACEOF |
---|
| 8098 | #define HAVE_MALLOC 0 |
---|
| 8099 | _ACEOF |
---|
| 8100 | |
---|
| 8101 | case $LIBOBJS in |
---|
| 8102 | "malloc.$ac_objext" | \ |
---|
| 8103 | *" malloc.$ac_objext" | \ |
---|
| 8104 | "malloc.$ac_objext "* | \ |
---|
| 8105 | *" malloc.$ac_objext "* ) ;; |
---|
| 8106 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
| 8107 | esac |
---|
| 8108 | |
---|
| 8109 | |
---|
| 8110 | cat >>confdefs.h <<\_ACEOF |
---|
| 8111 | #define malloc rpl_malloc |
---|
| 8112 | _ACEOF |
---|
| 8113 | |
---|
| 8114 | fi |
---|
| 8115 | |
---|
| 8116 | |
---|
| 8117 | |
---|
| 8118 | |
---|
| 8119 | |
---|
| 8120 | for ac_func in bzero sqrt |
---|
| 8121 | do |
---|
| 8122 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 8123 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 8124 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 8125 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 8126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 8127 | else |
---|
| 8128 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 8129 | /* confdefs.h. */ |
---|
| 8130 | _ACEOF |
---|
| 8131 | cat confdefs.h >>conftest.$ac_ext |
---|
| 8132 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 8133 | /* end confdefs.h. */ |
---|
| 8134 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 8135 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 8136 | #define $ac_func innocuous_$ac_func |
---|
| 8137 | |
---|
| 8138 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 8139 | which can conflict with char $ac_func (); below. |
---|
| 8140 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 8141 | <limits.h> exists even on freestanding compilers. */ |
---|
| 8142 | |
---|
| 8143 | #ifdef __STDC__ |
---|
| 8144 | # include <limits.h> |
---|
| 8145 | #else |
---|
| 8146 | # include <assert.h> |
---|
| 8147 | #endif |
---|
| 8148 | |
---|
| 8149 | #undef $ac_func |
---|
| 8150 | |
---|
| 8151 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 8152 | #ifdef __cplusplus |
---|
| 8153 | extern "C" |
---|
| 8154 | { |
---|
| 8155 | #endif |
---|
| 8156 | /* We use char because int might match the return type of a gcc2 |
---|
| 8157 | builtin and then its argument prototype would still apply. */ |
---|
| 8158 | char $ac_func (); |
---|
| 8159 | /* The GNU C library defines this for functions which it implements |
---|
| 8160 | to always fail with ENOSYS. Some functions are actually named |
---|
| 8161 | something starting with __ and the normal name is an alias. */ |
---|
| 8162 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 8163 | choke me |
---|
| 8164 | #else |
---|
| 8165 | char (*f) () = $ac_func; |
---|
| 8166 | #endif |
---|
| 8167 | #ifdef __cplusplus |
---|
| 8168 | } |
---|
| 8169 | #endif |
---|
| 8170 | |
---|
| 8171 | int |
---|
| 8172 | main () |
---|
| 8173 | { |
---|
| 8174 | return f != $ac_func; |
---|
| 8175 | ; |
---|
| 8176 | return 0; |
---|
| 8177 | } |
---|
| 8178 | _ACEOF |
---|
| 8179 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 8180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 8181 | (eval $ac_link) 2>conftest.er1 |
---|
| 8182 | ac_status=$? |
---|
| 8183 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 8184 | rm -f conftest.er1 |
---|
| 8185 | cat conftest.err >&5 |
---|
| 8186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8187 | (exit $ac_status); } && |
---|
| 8188 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 8189 | || test ! -s conftest.err' |
---|
| 8190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8191 | (eval $ac_try) 2>&5 |
---|
| 8192 | ac_status=$? |
---|
| 8193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8194 | (exit $ac_status); }; } && |
---|
| 8195 | { ac_try='test -s conftest$ac_exeext' |
---|
| 8196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 8197 | (eval $ac_try) 2>&5 |
---|
| 8198 | ac_status=$? |
---|
| 8199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 8200 | (exit $ac_status); }; }; then |
---|
| 8201 | eval "$as_ac_var=yes" |
---|
| 8202 | else |
---|
| 8203 | echo "$as_me: failed program was:" >&5 |
---|
| 8204 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 8205 | |
---|
| 8206 | eval "$as_ac_var=no" |
---|
| 8207 | fi |
---|
| 8208 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 8209 | conftest$ac_exeext conftest.$ac_ext |
---|
| 8210 | fi |
---|
| 8211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 8212 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 8213 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 8214 | cat >>confdefs.h <<_ACEOF |
---|
| 8215 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 8216 | _ACEOF |
---|
| 8217 | |
---|
| 8218 | fi |
---|
| 8219 | done |
---|
| 8220 | |
---|
| 8221 | |
---|
[3499] | 8222 | ###################### |
---|
| 8223 | ## OUTPUT CONFIGURE ## |
---|
| 8224 | ###################### |
---|
[3605] | 8225 | 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 src/subprojects/Makefile src/subprojects/testmain/Makefile" |
---|
[1956] | 8226 | |
---|
[3377] | 8227 | |
---|
[1956] | 8228 | cat >confcache <<\_ACEOF |
---|
| 8229 | # This file is a shell script that caches the results of configure |
---|
| 8230 | # tests run on this system so they can be shared between configure |
---|
| 8231 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 8232 | # It is not useful on other systems. If it contains results you don't |
---|
| 8233 | # want to keep, you may remove or edit it. |
---|
| 8234 | # |
---|
| 8235 | # config.status only pays attention to the cache file if you give it |
---|
| 8236 | # the --recheck option to rerun configure. |
---|
| 8237 | # |
---|
| 8238 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 8239 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 8240 | # following values. |
---|
| 8241 | |
---|
| 8242 | _ACEOF |
---|
| 8243 | |
---|
| 8244 | # The following way of writing the cache mishandles newlines in values, |
---|
| 8245 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 8246 | # So, don't put newlines in cache variables' values. |
---|
| 8247 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 8248 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 8249 | { |
---|
| 8250 | (set) 2>&1 | |
---|
| 8251 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 8252 | *ac_space=\ *) |
---|
| 8253 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 8254 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 8255 | sed -n \ |
---|
| 8256 | "s/'/'\\\\''/g; |
---|
| 8257 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 8258 | ;; |
---|
| 8259 | *) |
---|
| 8260 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 8261 | sed -n \ |
---|
| 8262 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 8263 | ;; |
---|
| 8264 | esac; |
---|
| 8265 | } | |
---|
| 8266 | sed ' |
---|
| 8267 | t clear |
---|
| 8268 | : clear |
---|
| 8269 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 8270 | t end |
---|
| 8271 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 8272 | : end' >>confcache |
---|
| 8273 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 8274 | if test -w $cache_file; then |
---|
| 8275 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 8276 | cat confcache >$cache_file |
---|
| 8277 | else |
---|
| 8278 | echo "not updating unwritable cache $cache_file" |
---|
| 8279 | fi |
---|
| 8280 | fi |
---|
| 8281 | rm -f confcache |
---|
| 8282 | |
---|
| 8283 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 8284 | # Let make expand exec_prefix. |
---|
| 8285 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 8286 | |
---|
| 8287 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 8288 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 8289 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 8290 | # (actually we leave an empty line to preserve line numbers). |
---|
| 8291 | if test "x$srcdir" = x.; then |
---|
| 8292 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 8293 | s/:*\$(srcdir):*/:/; |
---|
| 8294 | s/:*\${srcdir}:*/:/; |
---|
| 8295 | s/:*@srcdir@:*/:/; |
---|
| 8296 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 8297 | s/:*$//; |
---|
| 8298 | s/^[^=]*=[ ]*$//; |
---|
| 8299 | }' |
---|
| 8300 | fi |
---|
| 8301 | |
---|
| 8302 | DEFS=-DHAVE_CONFIG_H |
---|
| 8303 | |
---|
| 8304 | ac_libobjs= |
---|
| 8305 | ac_ltlibobjs= |
---|
| 8306 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 8307 | # 1. Remove the extension, and $U if already installed. |
---|
| 8308 | ac_i=`echo "$ac_i" | |
---|
| 8309 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 8310 | # 2. Add them. |
---|
| 8311 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 8312 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 8313 | done |
---|
| 8314 | LIBOBJS=$ac_libobjs |
---|
| 8315 | |
---|
| 8316 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 8317 | |
---|
| 8318 | |
---|
| 8319 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
| 8320 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
| 8321 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8322 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
| 8323 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8324 | { (exit 1); exit 1; }; } |
---|
| 8325 | fi |
---|
| 8326 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
| 8327 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 8328 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8329 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
| 8330 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8331 | { (exit 1); exit 1; }; } |
---|
| 8332 | fi |
---|
| 8333 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
| 8334 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 8335 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8336 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
| 8337 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8338 | { (exit 1); exit 1; }; } |
---|
| 8339 | fi |
---|
[3377] | 8340 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
| 8341 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 8342 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8343 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
| 8344 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8345 | { (exit 1); exit 1; }; } |
---|
| 8346 | fi |
---|
[3605] | 8347 | if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then |
---|
| 8348 | { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined. |
---|
| 8349 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8350 | echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined. |
---|
| 8351 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8352 | { (exit 1); exit 1; }; } |
---|
| 8353 | fi |
---|
[3219] | 8354 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
| 8355 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
| 8356 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8357 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
| 8358 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8359 | { (exit 1); exit 1; }; } |
---|
| 8360 | fi |
---|
[2980] | 8361 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
| 8362 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 8363 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8364 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
| 8365 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8366 | { (exit 1); exit 1; }; } |
---|
| 8367 | fi |
---|
[3499] | 8368 | if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then |
---|
| 8369 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
| 8370 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8371 | echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined. |
---|
| 8372 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8373 | { (exit 1); exit 1; }; } |
---|
| 8374 | fi |
---|
| 8375 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
| 8376 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 8377 | Usually this means the macro was only invoked conditionally." >&5 |
---|
| 8378 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
| 8379 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
| 8380 | { (exit 1); exit 1; }; } |
---|
| 8381 | fi |
---|
[1956] | 8382 | |
---|
| 8383 | : ${CONFIG_STATUS=./config.status} |
---|
| 8384 | ac_clean_files_save=$ac_clean_files |
---|
| 8385 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 8386 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 8387 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 8388 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 8389 | #! $SHELL |
---|
| 8390 | # Generated by $as_me. |
---|
| 8391 | # Run this file to recreate the current configuration. |
---|
| 8392 | # Compiler output produced by configure, useful for debugging |
---|
| 8393 | # configure, is in config.log if it exists. |
---|
| 8394 | |
---|
| 8395 | debug=false |
---|
| 8396 | ac_cs_recheck=false |
---|
| 8397 | ac_cs_silent=false |
---|
| 8398 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 8399 | _ACEOF |
---|
| 8400 | |
---|
| 8401 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8402 | ## --------------------- ## |
---|
| 8403 | ## M4sh Initialization. ## |
---|
| 8404 | ## --------------------- ## |
---|
| 8405 | |
---|
| 8406 | # Be Bourne compatible |
---|
| 8407 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 8408 | emulate sh |
---|
| 8409 | NULLCMD=: |
---|
| 8410 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 8411 | # is contrary to our usage. Disable this feature. |
---|
| 8412 | alias -g '${1+"$@"}'='"$@"' |
---|
| 8413 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 8414 | set -o posix |
---|
| 8415 | fi |
---|
| 8416 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 8417 | |
---|
| 8418 | # Support unset when possible. |
---|
| 8419 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 8420 | as_unset=unset |
---|
| 8421 | else |
---|
| 8422 | as_unset=false |
---|
| 8423 | fi |
---|
| 8424 | |
---|
| 8425 | |
---|
| 8426 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 8427 | $as_unset ENV MAIL MAILPATH |
---|
| 8428 | PS1='$ ' |
---|
| 8429 | PS2='> ' |
---|
| 8430 | PS4='+ ' |
---|
| 8431 | |
---|
| 8432 | # NLS nuisances. |
---|
| 8433 | for as_var in \ |
---|
| 8434 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 8435 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 8436 | LC_TELEPHONE LC_TIME |
---|
| 8437 | do |
---|
| 8438 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 8439 | eval $as_var=C; export $as_var |
---|
| 8440 | else |
---|
| 8441 | $as_unset $as_var |
---|
| 8442 | fi |
---|
| 8443 | done |
---|
| 8444 | |
---|
| 8445 | # Required to use basename. |
---|
| 8446 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 8447 | as_expr=expr |
---|
| 8448 | else |
---|
| 8449 | as_expr=false |
---|
| 8450 | fi |
---|
| 8451 | |
---|
| 8452 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 8453 | as_basename=basename |
---|
| 8454 | else |
---|
| 8455 | as_basename=false |
---|
| 8456 | fi |
---|
| 8457 | |
---|
| 8458 | |
---|
| 8459 | # Name of the executable. |
---|
| 8460 | as_me=`$as_basename "$0" || |
---|
| 8461 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 8462 | X"$0" : 'X\(//\)$' \| \ |
---|
| 8463 | X"$0" : 'X\(/\)$' \| \ |
---|
| 8464 | . : '\(.\)' 2>/dev/null || |
---|
| 8465 | echo X/"$0" | |
---|
| 8466 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 8467 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 8468 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 8469 | s/.*/./; q'` |
---|
| 8470 | |
---|
| 8471 | |
---|
| 8472 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 8473 | # Avoid depending upon Character Ranges. |
---|
| 8474 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 8475 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 8476 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 8477 | as_cr_digits='0123456789' |
---|
| 8478 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 8479 | |
---|
| 8480 | # The user is always right. |
---|
| 8481 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 8482 | echo "#! /bin/sh" >conf$$.sh |
---|
| 8483 | echo "exit 0" >>conf$$.sh |
---|
| 8484 | chmod +x conf$$.sh |
---|
| 8485 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 8486 | PATH_SEPARATOR=';' |
---|
| 8487 | else |
---|
| 8488 | PATH_SEPARATOR=: |
---|
| 8489 | fi |
---|
| 8490 | rm -f conf$$.sh |
---|
| 8491 | fi |
---|
| 8492 | |
---|
| 8493 | |
---|
| 8494 | as_lineno_1=$LINENO |
---|
| 8495 | as_lineno_2=$LINENO |
---|
| 8496 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 8497 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 8498 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 8499 | # Find who we are. Look in the path if we contain no path at all |
---|
| 8500 | # relative or not. |
---|
| 8501 | case $0 in |
---|
| 8502 | *[\\/]* ) as_myself=$0 ;; |
---|
| 8503 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 8504 | for as_dir in $PATH |
---|
| 8505 | do |
---|
| 8506 | IFS=$as_save_IFS |
---|
| 8507 | test -z "$as_dir" && as_dir=. |
---|
| 8508 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 8509 | done |
---|
| 8510 | |
---|
| 8511 | ;; |
---|
| 8512 | esac |
---|
| 8513 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 8514 | # in which case we are not to be found in the path. |
---|
| 8515 | if test "x$as_myself" = x; then |
---|
| 8516 | as_myself=$0 |
---|
| 8517 | fi |
---|
| 8518 | if test ! -f "$as_myself"; then |
---|
| 8519 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 8520 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 8521 | { (exit 1); exit 1; }; } |
---|
| 8522 | fi |
---|
| 8523 | case $CONFIG_SHELL in |
---|
| 8524 | '') |
---|
| 8525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 8526 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 8527 | do |
---|
| 8528 | IFS=$as_save_IFS |
---|
| 8529 | test -z "$as_dir" && as_dir=. |
---|
| 8530 | for as_base in sh bash ksh sh5; do |
---|
| 8531 | case $as_dir in |
---|
| 8532 | /*) |
---|
| 8533 | if ("$as_dir/$as_base" -c ' |
---|
| 8534 | as_lineno_1=$LINENO |
---|
| 8535 | as_lineno_2=$LINENO |
---|
| 8536 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 8537 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 8538 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 8539 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 8540 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 8541 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 8542 | export CONFIG_SHELL |
---|
| 8543 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 8544 | fi;; |
---|
| 8545 | esac |
---|
| 8546 | done |
---|
| 8547 | done |
---|
| 8548 | ;; |
---|
| 8549 | esac |
---|
| 8550 | |
---|
| 8551 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 8552 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 8553 | # line-number line before each line; the second 'sed' does the real |
---|
| 8554 | # work. The second script uses 'N' to pair each line-number line |
---|
| 8555 | # with the numbered line, and appends trailing '-' during |
---|
| 8556 | # substitution so that $LINENO is not a special case at line end. |
---|
| 8557 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 8558 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 8559 | sed '=' <$as_myself | |
---|
| 8560 | sed ' |
---|
| 8561 | N |
---|
| 8562 | s,$,-, |
---|
| 8563 | : loop |
---|
| 8564 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 8565 | t loop |
---|
| 8566 | s,-$,, |
---|
| 8567 | s,^['$as_cr_digits']*\n,, |
---|
| 8568 | ' >$as_me.lineno && |
---|
| 8569 | chmod +x $as_me.lineno || |
---|
| 8570 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 8571 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 8572 | { (exit 1); exit 1; }; } |
---|
| 8573 | |
---|
| 8574 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 8575 | # (the dirname of $[0] is not the place where we might find the |
---|
| 8576 | # original and so on. Autoconf is especially sensible to this). |
---|
| 8577 | . ./$as_me.lineno |
---|
| 8578 | # Exit status is that of the last command. |
---|
| 8579 | exit |
---|
| 8580 | } |
---|
| 8581 | |
---|
| 8582 | |
---|
| 8583 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 8584 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 8585 | ' ECHO_T=' ' ;; |
---|
| 8586 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 8587 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 8588 | esac |
---|
| 8589 | |
---|
| 8590 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 8591 | as_expr=expr |
---|
| 8592 | else |
---|
| 8593 | as_expr=false |
---|
| 8594 | fi |
---|
| 8595 | |
---|
| 8596 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 8597 | echo >conf$$.file |
---|
| 8598 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 8599 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 8600 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 8601 | if test -f conf$$.exe; then |
---|
| 8602 | # Don't use ln at all; we don't have any links |
---|
| 8603 | as_ln_s='cp -p' |
---|
| 8604 | else |
---|
| 8605 | as_ln_s='ln -s' |
---|
| 8606 | fi |
---|
| 8607 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 8608 | as_ln_s=ln |
---|
| 8609 | else |
---|
| 8610 | as_ln_s='cp -p' |
---|
| 8611 | fi |
---|
| 8612 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 8613 | |
---|
| 8614 | if mkdir -p . 2>/dev/null; then |
---|
| 8615 | as_mkdir_p=: |
---|
| 8616 | else |
---|
| 8617 | test -d ./-p && rmdir ./-p |
---|
| 8618 | as_mkdir_p=false |
---|
| 8619 | fi |
---|
| 8620 | |
---|
| 8621 | as_executable_p="test -f" |
---|
| 8622 | |
---|
| 8623 | # Sed expression to map a string onto a valid CPP name. |
---|
| 8624 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 8625 | |
---|
| 8626 | # Sed expression to map a string onto a valid variable name. |
---|
| 8627 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 8628 | |
---|
| 8629 | |
---|
| 8630 | # IFS |
---|
| 8631 | # We need space, tab and new line, in precisely that order. |
---|
| 8632 | as_nl=' |
---|
| 8633 | ' |
---|
| 8634 | IFS=" $as_nl" |
---|
| 8635 | |
---|
| 8636 | # CDPATH. |
---|
| 8637 | $as_unset CDPATH |
---|
| 8638 | |
---|
| 8639 | exec 6>&1 |
---|
| 8640 | |
---|
| 8641 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 8642 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 8643 | # values after options handling. Logging --version etc. is OK. |
---|
| 8644 | exec 5>>config.log |
---|
| 8645 | { |
---|
| 8646 | echo |
---|
| 8647 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 8648 | ## Running $as_me. ## |
---|
| 8649 | _ASBOX |
---|
| 8650 | } >&5 |
---|
| 8651 | cat >&5 <<_CSEOF |
---|
| 8652 | |
---|
[3605] | 8653 | This file was extended by orxonox $as_me 0.2.2-pre-alpha, which was |
---|
[1956] | 8654 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 8655 | |
---|
| 8656 | CONFIG_FILES = $CONFIG_FILES |
---|
| 8657 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 8658 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 8659 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 8660 | $ $0 $@ |
---|
| 8661 | |
---|
| 8662 | _CSEOF |
---|
| 8663 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 8664 | echo >&5 |
---|
| 8665 | _ACEOF |
---|
| 8666 | |
---|
| 8667 | # Files that config.status was made for. |
---|
| 8668 | if test -n "$ac_config_files"; then |
---|
| 8669 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 8670 | fi |
---|
| 8671 | |
---|
| 8672 | if test -n "$ac_config_headers"; then |
---|
| 8673 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 8674 | fi |
---|
| 8675 | |
---|
| 8676 | if test -n "$ac_config_links"; then |
---|
| 8677 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 8678 | fi |
---|
| 8679 | |
---|
| 8680 | if test -n "$ac_config_commands"; then |
---|
| 8681 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 8682 | fi |
---|
| 8683 | |
---|
| 8684 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8685 | |
---|
| 8686 | ac_cs_usage="\ |
---|
| 8687 | \`$as_me' instantiates files from templates according to the |
---|
| 8688 | current configuration. |
---|
| 8689 | |
---|
| 8690 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 8691 | |
---|
| 8692 | -h, --help print this help, then exit |
---|
| 8693 | -V, --version print version number, then exit |
---|
| 8694 | -q, --quiet do not print progress messages |
---|
| 8695 | -d, --debug don't remove temporary files |
---|
| 8696 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 8697 | --file=FILE[:TEMPLATE] |
---|
| 8698 | instantiate the configuration file FILE |
---|
| 8699 | --header=FILE[:TEMPLATE] |
---|
| 8700 | instantiate the configuration header FILE |
---|
| 8701 | |
---|
| 8702 | Configuration files: |
---|
| 8703 | $config_files |
---|
| 8704 | |
---|
| 8705 | Configuration headers: |
---|
| 8706 | $config_headers |
---|
| 8707 | |
---|
| 8708 | Configuration commands: |
---|
| 8709 | $config_commands |
---|
| 8710 | |
---|
| 8711 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 8712 | _ACEOF |
---|
| 8713 | |
---|
| 8714 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8715 | ac_cs_version="\\ |
---|
[3605] | 8716 | orxonox config.status 0.2.2-pre-alpha |
---|
[1956] | 8717 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 8718 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 8719 | |
---|
| 8720 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 8721 | This config.status script is free software; the Free Software Foundation |
---|
| 8722 | gives unlimited permission to copy, distribute and modify it." |
---|
| 8723 | srcdir=$srcdir |
---|
| 8724 | INSTALL="$INSTALL" |
---|
| 8725 | _ACEOF |
---|
| 8726 | |
---|
| 8727 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8728 | # If no file are specified by the user, then we need to provide default |
---|
| 8729 | # value. By we need to know if files were specified by the user. |
---|
| 8730 | ac_need_defaults=: |
---|
| 8731 | while test $# != 0 |
---|
| 8732 | do |
---|
| 8733 | case $1 in |
---|
| 8734 | --*=*) |
---|
| 8735 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 8736 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 8737 | ac_shift=: |
---|
| 8738 | ;; |
---|
| 8739 | -*) |
---|
| 8740 | ac_option=$1 |
---|
| 8741 | ac_optarg=$2 |
---|
| 8742 | ac_shift=shift |
---|
| 8743 | ;; |
---|
| 8744 | *) # This is not an option, so the user has probably given explicit |
---|
| 8745 | # arguments. |
---|
| 8746 | ac_option=$1 |
---|
| 8747 | ac_need_defaults=false;; |
---|
| 8748 | esac |
---|
| 8749 | |
---|
| 8750 | case $ac_option in |
---|
| 8751 | # Handling of the options. |
---|
| 8752 | _ACEOF |
---|
| 8753 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8754 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 8755 | ac_cs_recheck=: ;; |
---|
| 8756 | --version | --vers* | -V ) |
---|
| 8757 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 8758 | --he | --h) |
---|
| 8759 | # Conflict between --help and --header |
---|
| 8760 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 8761 | Try \`$0 --help' for more information." >&5 |
---|
| 8762 | echo "$as_me: error: ambiguous option: $1 |
---|
| 8763 | Try \`$0 --help' for more information." >&2;} |
---|
| 8764 | { (exit 1); exit 1; }; };; |
---|
| 8765 | --help | --hel | -h ) |
---|
| 8766 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 8767 | --debug | --d* | -d ) |
---|
| 8768 | debug=: ;; |
---|
| 8769 | --file | --fil | --fi | --f ) |
---|
| 8770 | $ac_shift |
---|
| 8771 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 8772 | ac_need_defaults=false;; |
---|
| 8773 | --header | --heade | --head | --hea ) |
---|
| 8774 | $ac_shift |
---|
| 8775 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 8776 | ac_need_defaults=false;; |
---|
| 8777 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 8778 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 8779 | ac_cs_silent=: ;; |
---|
| 8780 | |
---|
| 8781 | # This is an error. |
---|
| 8782 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 8783 | Try \`$0 --help' for more information." >&5 |
---|
| 8784 | echo "$as_me: error: unrecognized option: $1 |
---|
| 8785 | Try \`$0 --help' for more information." >&2;} |
---|
| 8786 | { (exit 1); exit 1; }; } ;; |
---|
| 8787 | |
---|
| 8788 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 8789 | |
---|
| 8790 | esac |
---|
| 8791 | shift |
---|
| 8792 | done |
---|
| 8793 | |
---|
| 8794 | ac_configure_extra_args= |
---|
| 8795 | |
---|
| 8796 | if $ac_cs_silent; then |
---|
| 8797 | exec 6>/dev/null |
---|
| 8798 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 8799 | fi |
---|
| 8800 | |
---|
| 8801 | _ACEOF |
---|
| 8802 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8803 | if \$ac_cs_recheck; then |
---|
| 8804 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 8805 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 8806 | fi |
---|
| 8807 | |
---|
| 8808 | _ACEOF |
---|
| 8809 | |
---|
| 8810 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8811 | # |
---|
| 8812 | # INIT-COMMANDS section. |
---|
| 8813 | # |
---|
| 8814 | |
---|
| 8815 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
| 8816 | |
---|
| 8817 | _ACEOF |
---|
| 8818 | |
---|
| 8819 | |
---|
| 8820 | |
---|
| 8821 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 8822 | for ac_config_target in $ac_config_targets |
---|
| 8823 | do |
---|
| 8824 | case "$ac_config_target" in |
---|
| 8825 | # Handling of arguments. |
---|
| 8826 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
[3377] | 8827 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
[3499] | 8828 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
| 8829 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
| 8830 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
| 8831 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
| 8832 | "src/lib/gui/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/console/Makefile" ;; |
---|
| 8833 | "src/lib/gui/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gui/Makefile" ;; |
---|
[3605] | 8834 | "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; |
---|
| 8835 | "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; |
---|
[1956] | 8836 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
| 8837 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
| 8838 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 8839 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 8840 | { (exit 1); exit 1; }; };; |
---|
| 8841 | esac |
---|
| 8842 | done |
---|
| 8843 | |
---|
| 8844 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 8845 | # then the envvar interface is used. Set only those that are not. |
---|
| 8846 | # We use the long form for the default assignment because of an extremely |
---|
| 8847 | # bizarre bug on SunOS 4.1.3. |
---|
| 8848 | if $ac_need_defaults; then |
---|
| 8849 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 8850 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 8851 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
| 8852 | fi |
---|
| 8853 | |
---|
| 8854 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 8855 | # simply because there is no reason to put it here, and in addition, |
---|
| 8856 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 8857 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 8858 | $debug || |
---|
| 8859 | { |
---|
| 8860 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 8861 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 8862 | } |
---|
| 8863 | |
---|
| 8864 | # Create a (secure) tmp directory for tmp files. |
---|
| 8865 | |
---|
| 8866 | { |
---|
| 8867 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 8868 | test -n "$tmp" && test -d "$tmp" |
---|
| 8869 | } || |
---|
| 8870 | { |
---|
| 8871 | tmp=./confstat$$-$RANDOM |
---|
| 8872 | (umask 077 && mkdir $tmp) |
---|
| 8873 | } || |
---|
| 8874 | { |
---|
| 8875 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 8876 | { (exit 1); exit 1; } |
---|
| 8877 | } |
---|
| 8878 | |
---|
| 8879 | _ACEOF |
---|
| 8880 | |
---|
| 8881 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 8882 | |
---|
| 8883 | # |
---|
| 8884 | # CONFIG_FILES section. |
---|
| 8885 | # |
---|
| 8886 | |
---|
| 8887 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 8888 | # This happens for instance when ./config.status config.h |
---|
| 8889 | if test -n "\$CONFIG_FILES"; then |
---|
| 8890 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 8891 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 8892 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 8893 | s,@SHELL@,$SHELL,;t t |
---|
| 8894 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 8895 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 8896 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 8897 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 8898 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 8899 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 8900 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 8901 | s,@prefix@,$prefix,;t t |
---|
| 8902 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 8903 | s,@bindir@,$bindir,;t t |
---|
| 8904 | s,@sbindir@,$sbindir,;t t |
---|
| 8905 | s,@libexecdir@,$libexecdir,;t t |
---|
| 8906 | s,@datadir@,$datadir,;t t |
---|
| 8907 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 8908 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 8909 | s,@localstatedir@,$localstatedir,;t t |
---|
| 8910 | s,@libdir@,$libdir,;t t |
---|
| 8911 | s,@includedir@,$includedir,;t t |
---|
| 8912 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 8913 | s,@infodir@,$infodir,;t t |
---|
| 8914 | s,@mandir@,$mandir,;t t |
---|
| 8915 | s,@build_alias@,$build_alias,;t t |
---|
| 8916 | s,@host_alias@,$host_alias,;t t |
---|
| 8917 | s,@target_alias@,$target_alias,;t t |
---|
| 8918 | s,@DEFS@,$DEFS,;t t |
---|
| 8919 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 8920 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 8921 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 8922 | s,@LIBS@,$LIBS,;t t |
---|
[2980] | 8923 | s,@build@,$build,;t t |
---|
| 8924 | s,@build_cpu@,$build_cpu,;t t |
---|
| 8925 | s,@build_vendor@,$build_vendor,;t t |
---|
| 8926 | s,@build_os@,$build_os,;t t |
---|
| 8927 | s,@host@,$host,;t t |
---|
| 8928 | s,@host_cpu@,$host_cpu,;t t |
---|
| 8929 | s,@host_vendor@,$host_vendor,;t t |
---|
| 8930 | s,@host_os@,$host_os,;t t |
---|
| 8931 | s,@target@,$target,;t t |
---|
| 8932 | s,@target_cpu@,$target_cpu,;t t |
---|
| 8933 | s,@target_vendor@,$target_vendor,;t t |
---|
| 8934 | s,@target_os@,$target_os,;t t |
---|
[1956] | 8935 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 8936 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 8937 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 8938 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
| 8939 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 8940 | s,@VERSION@,$VERSION,;t t |
---|
| 8941 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
| 8942 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
| 8943 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
| 8944 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
| 8945 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
| 8946 | s,@AMTAR@,$AMTAR,;t t |
---|
| 8947 | s,@install_sh@,$install_sh,;t t |
---|
| 8948 | s,@STRIP@,$STRIP,;t t |
---|
| 8949 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
| 8950 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
[2706] | 8951 | s,@mkdir_p@,$mkdir_p,;t t |
---|
[1956] | 8952 | s,@AWK@,$AWK,;t t |
---|
| 8953 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 8954 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
| 8955 | s,@CXX@,$CXX,;t t |
---|
| 8956 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 8957 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 8958 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 8959 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 8960 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 8961 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 8962 | s,@DEPDIR@,$DEPDIR,;t t |
---|
| 8963 | s,@am__include@,$am__include,;t t |
---|
| 8964 | s,@am__quote@,$am__quote,;t t |
---|
| 8965 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
| 8966 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
| 8967 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
| 8968 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
| 8969 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
| 8970 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
| 8971 | s,@CC@,$CC,;t t |
---|
| 8972 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 8973 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 8974 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
| 8975 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
| 8976 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
| 8977 | s,@CPP@,$CPP,;t t |
---|
| 8978 | s,@EGREP@,$EGREP,;t t |
---|
[3173] | 8979 | s,@DEBUG@,$DEBUG,;t t |
---|
[3377] | 8980 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
| 8981 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
[3605] | 8982 | s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t |
---|
| 8983 | s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t |
---|
[3219] | 8984 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
| 8985 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
| 8986 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
[2989] | 8987 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
[3099] | 8988 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
[2980] | 8989 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
| 8990 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
| 8991 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
[3499] | 8992 | s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t |
---|
| 8993 | s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t |
---|
| 8994 | s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t |
---|
| 8995 | s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t |
---|
| 8996 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
| 8997 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
| 8998 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
| 8999 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
[1956] | 9000 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 9001 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 9002 | CEOF |
---|
| 9003 | |
---|
| 9004 | _ACEOF |
---|
| 9005 | |
---|
| 9006 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9007 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 9008 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 9009 | ac_max_sed_lines=48 |
---|
| 9010 | ac_sed_frag=1 # Number of current file. |
---|
| 9011 | ac_beg=1 # First line for current file. |
---|
| 9012 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 9013 | ac_more_lines=: |
---|
| 9014 | ac_sed_cmds= |
---|
| 9015 | while $ac_more_lines; do |
---|
| 9016 | if test $ac_beg -gt 1; then |
---|
| 9017 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 9018 | else |
---|
| 9019 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 9020 | fi |
---|
| 9021 | if test ! -s $tmp/subs.frag; then |
---|
| 9022 | ac_more_lines=false |
---|
| 9023 | else |
---|
| 9024 | # The purpose of the label and of the branching condition is to |
---|
| 9025 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 9026 | # is no need to browse any of the substitutions). |
---|
| 9027 | # These are the two extra sed commands mentioned above. |
---|
| 9028 | (echo ':t |
---|
| 9029 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 9030 | if test -z "$ac_sed_cmds"; then |
---|
| 9031 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 9032 | else |
---|
| 9033 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 9034 | fi |
---|
| 9035 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 9036 | ac_beg=$ac_end |
---|
| 9037 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 9038 | fi |
---|
| 9039 | done |
---|
| 9040 | if test -z "$ac_sed_cmds"; then |
---|
| 9041 | ac_sed_cmds=cat |
---|
| 9042 | fi |
---|
| 9043 | fi # test -n "$CONFIG_FILES" |
---|
| 9044 | |
---|
| 9045 | _ACEOF |
---|
| 9046 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9047 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 9048 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 9049 | case $ac_file in |
---|
| 9050 | - | *:- | *:-:* ) # input from stdin |
---|
| 9051 | cat >$tmp/stdin |
---|
| 9052 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9053 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9054 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9055 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9056 | * ) ac_file_in=$ac_file.in ;; |
---|
| 9057 | esac |
---|
| 9058 | |
---|
| 9059 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 9060 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 9061 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9062 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 9063 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 9064 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 9065 | . : '\(.\)' 2>/dev/null || |
---|
| 9066 | echo X"$ac_file" | |
---|
| 9067 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9068 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9069 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9070 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9071 | s/.*/./; q'` |
---|
| 9072 | { if $as_mkdir_p; then |
---|
| 9073 | mkdir -p "$ac_dir" |
---|
| 9074 | else |
---|
| 9075 | as_dir="$ac_dir" |
---|
| 9076 | as_dirs= |
---|
| 9077 | while test ! -d "$as_dir"; do |
---|
| 9078 | as_dirs="$as_dir $as_dirs" |
---|
| 9079 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9080 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9081 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9082 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9083 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9084 | . : '\(.\)' 2>/dev/null || |
---|
| 9085 | echo X"$as_dir" | |
---|
| 9086 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9087 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9088 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9089 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9090 | s/.*/./; q'` |
---|
| 9091 | done |
---|
| 9092 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9093 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9094 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9095 | { (exit 1); exit 1; }; }; } |
---|
| 9096 | |
---|
| 9097 | ac_builddir=. |
---|
| 9098 | |
---|
| 9099 | if test "$ac_dir" != .; then |
---|
| 9100 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 9101 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 9102 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 9103 | else |
---|
| 9104 | ac_dir_suffix= ac_top_builddir= |
---|
| 9105 | fi |
---|
| 9106 | |
---|
| 9107 | case $srcdir in |
---|
| 9108 | .) # No --srcdir option. We are building in place. |
---|
| 9109 | ac_srcdir=. |
---|
| 9110 | if test -z "$ac_top_builddir"; then |
---|
| 9111 | ac_top_srcdir=. |
---|
| 9112 | else |
---|
| 9113 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 9114 | fi ;; |
---|
| 9115 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 9116 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 9117 | ac_top_srcdir=$srcdir ;; |
---|
| 9118 | *) # Relative path. |
---|
| 9119 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 9120 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 9121 | esac |
---|
| 9122 | |
---|
| 9123 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 9124 | # the directories may not exist. |
---|
| 9125 | case `pwd` in |
---|
| 9126 | .) ac_abs_builddir="$ac_dir";; |
---|
| 9127 | *) |
---|
| 9128 | case "$ac_dir" in |
---|
| 9129 | .) ac_abs_builddir=`pwd`;; |
---|
| 9130 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 9131 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 9132 | esac;; |
---|
| 9133 | esac |
---|
| 9134 | case $ac_abs_builddir in |
---|
| 9135 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9136 | *) |
---|
| 9137 | case ${ac_top_builddir}. in |
---|
| 9138 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 9139 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9140 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 9141 | esac;; |
---|
| 9142 | esac |
---|
| 9143 | case $ac_abs_builddir in |
---|
| 9144 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9145 | *) |
---|
| 9146 | case $ac_srcdir in |
---|
| 9147 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 9148 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9149 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 9150 | esac;; |
---|
| 9151 | esac |
---|
| 9152 | case $ac_abs_builddir in |
---|
| 9153 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9154 | *) |
---|
| 9155 | case $ac_top_srcdir in |
---|
| 9156 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 9157 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9158 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 9159 | esac;; |
---|
| 9160 | esac |
---|
| 9161 | |
---|
| 9162 | |
---|
| 9163 | case $INSTALL in |
---|
| 9164 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 9165 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 9166 | esac |
---|
| 9167 | |
---|
| 9168 | if test x"$ac_file" != x-; then |
---|
| 9169 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9170 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9171 | rm -f "$ac_file" |
---|
| 9172 | fi |
---|
| 9173 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 9174 | # use $as_me), people would be surprised to read: |
---|
| 9175 | # /* config.h. Generated by config.status. */ |
---|
| 9176 | if test x"$ac_file" = x-; then |
---|
| 9177 | configure_input= |
---|
| 9178 | else |
---|
| 9179 | configure_input="$ac_file. " |
---|
| 9180 | fi |
---|
| 9181 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 9182 | sed 's,.*/,,'` by configure." |
---|
| 9183 | |
---|
| 9184 | # First look for the input files in the build tree, otherwise in the |
---|
| 9185 | # src tree. |
---|
| 9186 | ac_file_inputs=`IFS=: |
---|
| 9187 | for f in $ac_file_in; do |
---|
| 9188 | case $f in |
---|
| 9189 | -) echo $tmp/stdin ;; |
---|
| 9190 | [\\/$]*) |
---|
| 9191 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9192 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9193 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9194 | { (exit 1); exit 1; }; } |
---|
| 9195 | echo "$f";; |
---|
| 9196 | *) # Relative |
---|
| 9197 | if test -f "$f"; then |
---|
| 9198 | # Build tree |
---|
| 9199 | echo "$f" |
---|
| 9200 | elif test -f "$srcdir/$f"; then |
---|
| 9201 | # Source tree |
---|
| 9202 | echo "$srcdir/$f" |
---|
| 9203 | else |
---|
| 9204 | # /dev/null tree |
---|
| 9205 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9206 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9207 | { (exit 1); exit 1; }; } |
---|
| 9208 | fi;; |
---|
| 9209 | esac |
---|
| 9210 | done` || { (exit 1); exit 1; } |
---|
| 9211 | _ACEOF |
---|
| 9212 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 9213 | sed "$ac_vpsub |
---|
| 9214 | $extrasub |
---|
| 9215 | _ACEOF |
---|
| 9216 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9217 | :t |
---|
| 9218 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 9219 | s,@configure_input@,$configure_input,;t t |
---|
| 9220 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 9221 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 9222 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 9223 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 9224 | s,@builddir@,$ac_builddir,;t t |
---|
| 9225 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 9226 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 9227 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 9228 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 9229 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 9230 | rm -f $tmp/stdin |
---|
| 9231 | if test x"$ac_file" != x-; then |
---|
| 9232 | mv $tmp/out $ac_file |
---|
| 9233 | else |
---|
| 9234 | cat $tmp/out |
---|
| 9235 | rm -f $tmp/out |
---|
| 9236 | fi |
---|
| 9237 | |
---|
| 9238 | done |
---|
| 9239 | _ACEOF |
---|
| 9240 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9241 | |
---|
| 9242 | # |
---|
| 9243 | # CONFIG_HEADER section. |
---|
| 9244 | # |
---|
| 9245 | |
---|
| 9246 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 9247 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 9248 | # |
---|
| 9249 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 9250 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 9251 | ac_dB='[ ].*$,\1#\2' |
---|
| 9252 | ac_dC=' ' |
---|
| 9253 | ac_dD=',;t' |
---|
| 9254 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 9255 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 9256 | ac_uB='$,\1#\2define\3' |
---|
| 9257 | ac_uC=' ' |
---|
| 9258 | ac_uD=',;t' |
---|
| 9259 | |
---|
| 9260 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 9261 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 9262 | case $ac_file in |
---|
| 9263 | - | *:- | *:-:* ) # input from stdin |
---|
| 9264 | cat >$tmp/stdin |
---|
| 9265 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9266 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9267 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9268 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 9269 | * ) ac_file_in=$ac_file.in ;; |
---|
| 9270 | esac |
---|
| 9271 | |
---|
| 9272 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 9273 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 9274 | |
---|
| 9275 | # First look for the input files in the build tree, otherwise in the |
---|
| 9276 | # src tree. |
---|
| 9277 | ac_file_inputs=`IFS=: |
---|
| 9278 | for f in $ac_file_in; do |
---|
| 9279 | case $f in |
---|
| 9280 | -) echo $tmp/stdin ;; |
---|
| 9281 | [\\/$]*) |
---|
| 9282 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 9283 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9284 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9285 | { (exit 1); exit 1; }; } |
---|
| 9286 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
| 9287 | echo "$f";; |
---|
| 9288 | *) # Relative |
---|
| 9289 | if test -f "$f"; then |
---|
| 9290 | # Build tree |
---|
| 9291 | echo "$f" |
---|
| 9292 | elif test -f "$srcdir/$f"; then |
---|
| 9293 | # Source tree |
---|
| 9294 | echo "$srcdir/$f" |
---|
| 9295 | else |
---|
| 9296 | # /dev/null tree |
---|
| 9297 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 9298 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 9299 | { (exit 1); exit 1; }; } |
---|
| 9300 | fi;; |
---|
| 9301 | esac |
---|
| 9302 | done` || { (exit 1); exit 1; } |
---|
| 9303 | # Remove the trailing spaces. |
---|
| 9304 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 9305 | |
---|
| 9306 | _ACEOF |
---|
| 9307 | |
---|
| 9308 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 9309 | # `conftest.undefs', that substitutes the proper values into |
---|
| 9310 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 9311 | # templates, and the second `#undef' templates. |
---|
| 9312 | # And first: Protect against being on the right side of a sed subst in |
---|
| 9313 | # config.status. Protect against being in an unquoted here document |
---|
| 9314 | # in config.status. |
---|
| 9315 | rm -f conftest.defines conftest.undefs |
---|
| 9316 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 9317 | # Putting comments in sed scripts is not portable. |
---|
| 9318 | # |
---|
| 9319 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 9320 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 9321 | # See the Autoconf documentation for `clear'. |
---|
| 9322 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 9323 | s/[\\&,]/\\&/g |
---|
| 9324 | s,[\\$`],\\&,g |
---|
| 9325 | t clear |
---|
| 9326 | : clear |
---|
| 9327 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 9328 | t end |
---|
| 9329 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 9330 | : end |
---|
| 9331 | _ACEOF |
---|
| 9332 | # If some macros were called several times there might be several times |
---|
| 9333 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 9334 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 9335 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 9336 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 9337 | rm -f confdef2sed.sed |
---|
| 9338 | |
---|
| 9339 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 9340 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 9341 | # on some systems where configure will not decide to define it. |
---|
| 9342 | cat >>conftest.undefs <<\_ACEOF |
---|
| 9343 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 9344 | _ACEOF |
---|
| 9345 | |
---|
| 9346 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 9347 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 9348 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 9349 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 9350 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 9351 | echo ' :' >>$CONFIG_STATUS |
---|
| 9352 | rm -f conftest.tail |
---|
| 9353 | while grep . conftest.defines >/dev/null |
---|
| 9354 | do |
---|
| 9355 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 9356 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 9357 | # Speed up: don't consider the non `#define' lines. |
---|
| 9358 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 9359 | # Work around the forget-to-reset-the-flag bug. |
---|
| 9360 | echo 't clr' >>$CONFIG_STATUS |
---|
| 9361 | echo ': clr' >>$CONFIG_STATUS |
---|
| 9362 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 9363 | echo 'CEOF |
---|
| 9364 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 9365 | rm -f $tmp/in |
---|
| 9366 | mv $tmp/out $tmp/in |
---|
| 9367 | ' >>$CONFIG_STATUS |
---|
| 9368 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 9369 | rm -f conftest.defines |
---|
| 9370 | mv conftest.tail conftest.defines |
---|
| 9371 | done |
---|
| 9372 | rm -f conftest.defines |
---|
| 9373 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 9374 | echo >>$CONFIG_STATUS |
---|
| 9375 | |
---|
| 9376 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 9377 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 9378 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 9379 | rm -f conftest.tail |
---|
| 9380 | while grep . conftest.undefs >/dev/null |
---|
| 9381 | do |
---|
| 9382 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 9383 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 9384 | # Speed up: don't consider the non `#undef' |
---|
| 9385 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 9386 | # Work around the forget-to-reset-the-flag bug. |
---|
| 9387 | echo 't clr' >>$CONFIG_STATUS |
---|
| 9388 | echo ': clr' >>$CONFIG_STATUS |
---|
| 9389 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 9390 | echo 'CEOF |
---|
| 9391 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 9392 | rm -f $tmp/in |
---|
| 9393 | mv $tmp/out $tmp/in |
---|
| 9394 | ' >>$CONFIG_STATUS |
---|
| 9395 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 9396 | rm -f conftest.undefs |
---|
| 9397 | mv conftest.tail conftest.undefs |
---|
| 9398 | done |
---|
| 9399 | rm -f conftest.undefs |
---|
| 9400 | |
---|
| 9401 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9402 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 9403 | # use $as_me), people would be surprised to read: |
---|
| 9404 | # /* config.h. Generated by config.status. */ |
---|
| 9405 | if test x"$ac_file" = x-; then |
---|
| 9406 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 9407 | else |
---|
| 9408 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 9409 | fi |
---|
| 9410 | cat $tmp/in >>$tmp/config.h |
---|
| 9411 | rm -f $tmp/in |
---|
| 9412 | if test x"$ac_file" != x-; then |
---|
| 9413 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 9414 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 9415 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 9416 | else |
---|
| 9417 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 9418 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9419 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 9420 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 9421 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 9422 | . : '\(.\)' 2>/dev/null || |
---|
| 9423 | echo X"$ac_file" | |
---|
| 9424 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9425 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9426 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9427 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9428 | s/.*/./; q'` |
---|
| 9429 | { if $as_mkdir_p; then |
---|
| 9430 | mkdir -p "$ac_dir" |
---|
| 9431 | else |
---|
| 9432 | as_dir="$ac_dir" |
---|
| 9433 | as_dirs= |
---|
| 9434 | while test ! -d "$as_dir"; do |
---|
| 9435 | as_dirs="$as_dir $as_dirs" |
---|
| 9436 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9437 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9438 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9439 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9440 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9441 | . : '\(.\)' 2>/dev/null || |
---|
| 9442 | echo X"$as_dir" | |
---|
| 9443 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9444 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9445 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9446 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9447 | s/.*/./; q'` |
---|
| 9448 | done |
---|
| 9449 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9450 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9451 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9452 | { (exit 1); exit 1; }; }; } |
---|
| 9453 | |
---|
| 9454 | rm -f $ac_file |
---|
| 9455 | mv $tmp/config.h $ac_file |
---|
| 9456 | fi |
---|
| 9457 | else |
---|
| 9458 | cat $tmp/config.h |
---|
| 9459 | rm -f $tmp/config.h |
---|
| 9460 | fi |
---|
| 9461 | # Compute $ac_file's index in $config_headers. |
---|
| 9462 | _am_stamp_count=1 |
---|
| 9463 | for _am_header in $config_headers :; do |
---|
| 9464 | case $_am_header in |
---|
| 9465 | $ac_file | $ac_file:* ) |
---|
| 9466 | break ;; |
---|
| 9467 | * ) |
---|
| 9468 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
| 9469 | esac |
---|
| 9470 | done |
---|
| 9471 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
| 9472 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9473 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
| 9474 | X$ac_file : 'X\(//\)$' \| \ |
---|
| 9475 | X$ac_file : 'X\(/\)' \| \ |
---|
| 9476 | . : '\(.\)' 2>/dev/null || |
---|
| 9477 | echo X$ac_file | |
---|
| 9478 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9479 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9480 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9481 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9482 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
| 9483 | done |
---|
| 9484 | _ACEOF |
---|
| 9485 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9486 | |
---|
| 9487 | # |
---|
| 9488 | # CONFIG_COMMANDS section. |
---|
| 9489 | # |
---|
| 9490 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
| 9491 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
| 9492 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 9493 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
| 9494 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9495 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
| 9496 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
| 9497 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
| 9498 | . : '\(.\)' 2>/dev/null || |
---|
| 9499 | echo X"$ac_dest" | |
---|
| 9500 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9501 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9502 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9503 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9504 | s/.*/./; q'` |
---|
| 9505 | { if $as_mkdir_p; then |
---|
| 9506 | mkdir -p "$ac_dir" |
---|
| 9507 | else |
---|
| 9508 | as_dir="$ac_dir" |
---|
| 9509 | as_dirs= |
---|
| 9510 | while test ! -d "$as_dir"; do |
---|
| 9511 | as_dirs="$as_dir $as_dirs" |
---|
| 9512 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9513 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9514 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9515 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9516 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9517 | . : '\(.\)' 2>/dev/null || |
---|
| 9518 | echo X"$as_dir" | |
---|
| 9519 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9520 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9521 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9522 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9523 | s/.*/./; q'` |
---|
| 9524 | done |
---|
| 9525 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9526 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 9527 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 9528 | { (exit 1); exit 1; }; }; } |
---|
| 9529 | |
---|
| 9530 | ac_builddir=. |
---|
| 9531 | |
---|
| 9532 | if test "$ac_dir" != .; then |
---|
| 9533 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 9534 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 9535 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 9536 | else |
---|
| 9537 | ac_dir_suffix= ac_top_builddir= |
---|
| 9538 | fi |
---|
| 9539 | |
---|
| 9540 | case $srcdir in |
---|
| 9541 | .) # No --srcdir option. We are building in place. |
---|
| 9542 | ac_srcdir=. |
---|
| 9543 | if test -z "$ac_top_builddir"; then |
---|
| 9544 | ac_top_srcdir=. |
---|
| 9545 | else |
---|
| 9546 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 9547 | fi ;; |
---|
| 9548 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 9549 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 9550 | ac_top_srcdir=$srcdir ;; |
---|
| 9551 | *) # Relative path. |
---|
| 9552 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 9553 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 9554 | esac |
---|
| 9555 | |
---|
| 9556 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 9557 | # the directories may not exist. |
---|
| 9558 | case `pwd` in |
---|
| 9559 | .) ac_abs_builddir="$ac_dir";; |
---|
| 9560 | *) |
---|
| 9561 | case "$ac_dir" in |
---|
| 9562 | .) ac_abs_builddir=`pwd`;; |
---|
| 9563 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 9564 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 9565 | esac;; |
---|
| 9566 | esac |
---|
| 9567 | case $ac_abs_builddir in |
---|
| 9568 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9569 | *) |
---|
| 9570 | case ${ac_top_builddir}. in |
---|
| 9571 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 9572 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 9573 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 9574 | esac;; |
---|
| 9575 | esac |
---|
| 9576 | case $ac_abs_builddir in |
---|
| 9577 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9578 | *) |
---|
| 9579 | case $ac_srcdir in |
---|
| 9580 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 9581 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 9582 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 9583 | esac;; |
---|
| 9584 | esac |
---|
| 9585 | case $ac_abs_builddir in |
---|
| 9586 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9587 | *) |
---|
| 9588 | case $ac_top_srcdir in |
---|
| 9589 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 9590 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 9591 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 9592 | esac;; |
---|
| 9593 | esac |
---|
| 9594 | |
---|
| 9595 | |
---|
| 9596 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
| 9597 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
| 9598 | case $ac_dest in |
---|
| 9599 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
| 9600 | # Strip MF so we end up with the name of the file. |
---|
| 9601 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
| 9602 | # Check whether this is an Automake generated Makefile or not. |
---|
| 9603 | # We used to match only the files named `Makefile.in', but |
---|
| 9604 | # some people rename them; so instead we look at the file content. |
---|
| 9605 | # Grep'ing the first line is not enough: some people post-process |
---|
| 9606 | # each Makefile.in and add a new line on top of each file to say so. |
---|
| 9607 | # So let's grep whole file. |
---|
| 9608 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
| 9609 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
| 9610 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9611 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
| 9612 | X"$mf" : 'X\(//\)$' \| \ |
---|
| 9613 | X"$mf" : 'X\(/\)' \| \ |
---|
| 9614 | . : '\(.\)' 2>/dev/null || |
---|
| 9615 | echo X"$mf" | |
---|
| 9616 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9617 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9618 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9619 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9620 | s/.*/./; q'` |
---|
| 9621 | else |
---|
| 9622 | continue |
---|
| 9623 | fi |
---|
| 9624 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
| 9625 | # Extract the definition of DEP_FILES from the Makefile without |
---|
| 9626 | # running `make'. |
---|
[3746] | 9627 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
[1956] | 9628 | test -z "$DEPDIR" && continue |
---|
| 9629 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
[3746] | 9630 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
[1956] | 9631 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
| 9632 | # We invoke sed twice because it is the simplest approach to |
---|
| 9633 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
[3746] | 9634 | for file in `sed -n -e ' |
---|
[1956] | 9635 | /^DEP_FILES = .*\\\\$/ { |
---|
| 9636 | s/^DEP_FILES = // |
---|
| 9637 | :loop |
---|
| 9638 | s/\\\\$// |
---|
| 9639 | p |
---|
| 9640 | n |
---|
| 9641 | /\\\\$/ b loop |
---|
| 9642 | p |
---|
| 9643 | } |
---|
| 9644 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
| 9645 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
| 9646 | # Make sure the directory exists. |
---|
| 9647 | test -f "$dirpart/$file" && continue |
---|
| 9648 | fdir=`(dirname "$file") 2>/dev/null || |
---|
| 9649 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9650 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
| 9651 | X"$file" : 'X\(//\)$' \| \ |
---|
| 9652 | X"$file" : 'X\(/\)' \| \ |
---|
| 9653 | . : '\(.\)' 2>/dev/null || |
---|
| 9654 | echo X"$file" | |
---|
| 9655 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9656 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9657 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9658 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9659 | s/.*/./; q'` |
---|
| 9660 | { if $as_mkdir_p; then |
---|
| 9661 | mkdir -p $dirpart/$fdir |
---|
| 9662 | else |
---|
| 9663 | as_dir=$dirpart/$fdir |
---|
| 9664 | as_dirs= |
---|
| 9665 | while test ! -d "$as_dir"; do |
---|
| 9666 | as_dirs="$as_dir $as_dirs" |
---|
| 9667 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 9668 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 9669 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 9670 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 9671 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 9672 | . : '\(.\)' 2>/dev/null || |
---|
| 9673 | echo X"$as_dir" | |
---|
| 9674 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 9675 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 9676 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 9677 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 9678 | s/.*/./; q'` |
---|
| 9679 | done |
---|
| 9680 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 9681 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
| 9682 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
| 9683 | { (exit 1); exit 1; }; }; } |
---|
| 9684 | |
---|
| 9685 | # echo "creating $dirpart/$file" |
---|
| 9686 | echo '# dummy' > "$dirpart/$file" |
---|
| 9687 | done |
---|
| 9688 | done |
---|
| 9689 | ;; |
---|
| 9690 | esac |
---|
| 9691 | done |
---|
| 9692 | _ACEOF |
---|
| 9693 | |
---|
| 9694 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 9695 | |
---|
| 9696 | { (exit 0); exit 0; } |
---|
| 9697 | _ACEOF |
---|
| 9698 | chmod +x $CONFIG_STATUS |
---|
| 9699 | ac_clean_files=$ac_clean_files_save |
---|
| 9700 | |
---|
| 9701 | |
---|
| 9702 | # configure is writing to config.log, and then calls config.status. |
---|
| 9703 | # config.status does its own redirection, appending to config.log. |
---|
| 9704 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 9705 | # by configure, so config.status won't be able to write to it; its |
---|
| 9706 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 9707 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 9708 | # appended to by config.status. When coming back to configure, we |
---|
| 9709 | # need to make the FD available again. |
---|
| 9710 | if test "$no_create" != yes; then |
---|
| 9711 | ac_cs_success=: |
---|
| 9712 | ac_config_status_args= |
---|
| 9713 | test "$silent" = yes && |
---|
| 9714 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 9715 | exec 5>/dev/null |
---|
| 9716 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 9717 | exec 5>>config.log |
---|
| 9718 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 9719 | # would make configure fail if this is the last instruction. |
---|
| 9720 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 9721 | fi |
---|
| 9722 | |
---|