[107] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
[259] | 3 | # Generated by GNU Autoconf 2.57 for Duchamp 1.1b. |
---|
[107] | 4 | # |
---|
[121] | 5 | # Report bugs to <Matthew.Whiting@csiro.au>. |
---|
[107] | 6 | # |
---|
| 7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
| 8 | # Free Software Foundation, Inc. |
---|
| 9 | # This configure script is free software; the Free Software Foundation |
---|
| 10 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 11 | ## --------------------- ## |
---|
| 12 | ## M4sh Initialization. ## |
---|
| 13 | ## --------------------- ## |
---|
| 14 | |
---|
| 15 | # Be Bourne compatible |
---|
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 17 | emulate sh |
---|
| 18 | NULLCMD=: |
---|
| 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 20 | # is contrary to our usage. Disable this feature. |
---|
| 21 | alias -g '${1+"$@"}'='"$@"' |
---|
| 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 23 | set -o posix |
---|
| 24 | fi |
---|
| 25 | |
---|
| 26 | # Support unset when possible. |
---|
| 27 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
| 28 | as_unset=unset |
---|
| 29 | else |
---|
| 30 | as_unset=false |
---|
| 31 | fi |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 35 | $as_unset ENV MAIL MAILPATH |
---|
| 36 | PS1='$ ' |
---|
| 37 | PS2='> ' |
---|
| 38 | PS4='+ ' |
---|
| 39 | |
---|
| 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 -n "`(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 |
---|
| 52 | |
---|
| 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 |
---|
| 59 | |
---|
| 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 |
---|
| 65 | |
---|
| 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 |
---|
| 198 | else |
---|
| 199 | as_expr=false |
---|
| 200 | fi |
---|
| 201 | |
---|
| 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' |
---|
| 217 | fi |
---|
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 219 | |
---|
| 220 | if mkdir -p . 2>/dev/null; then |
---|
| 221 | as_mkdir_p=: |
---|
| 222 | else |
---|
| 223 | as_mkdir_p=false |
---|
| 224 | fi |
---|
| 225 | |
---|
| 226 | as_executable_p="test -f" |
---|
| 227 | |
---|
| 228 | # Sed expression to map a string onto a valid CPP name. |
---|
| 229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
| 230 | |
---|
| 231 | # Sed expression to map a string onto a valid variable name. |
---|
| 232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
| 233 | |
---|
| 234 | |
---|
| 235 | # IFS |
---|
| 236 | # We need space, tab and new line, in precisely that order. |
---|
| 237 | as_nl=' |
---|
| 238 | ' |
---|
| 239 | IFS=" $as_nl" |
---|
| 240 | |
---|
| 241 | # CDPATH. |
---|
| 242 | $as_unset CDPATH |
---|
| 243 | |
---|
| 244 | |
---|
| 245 | # Name of the host. |
---|
| 246 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 247 | # so uname gets run too. |
---|
| 248 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 249 | |
---|
| 250 | exec 6>&1 |
---|
| 251 | |
---|
| 252 | # |
---|
| 253 | # Initializations. |
---|
| 254 | # |
---|
| 255 | ac_default_prefix=/usr/local |
---|
| 256 | ac_config_libobj_dir=. |
---|
| 257 | cross_compiling=no |
---|
| 258 | subdirs= |
---|
| 259 | MFLAGS= |
---|
| 260 | MAKEFLAGS= |
---|
| 261 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 262 | |
---|
| 263 | # Maximum number of lines to put in a shell here document. |
---|
| 264 | # This variable seems obsolete. It should probably be removed, and |
---|
| 265 | # only ac_max_sed_lines should be used. |
---|
| 266 | : ${ac_max_here_lines=38} |
---|
| 267 | |
---|
| 268 | # Identity of this package. |
---|
| 269 | PACKAGE_NAME='Duchamp' |
---|
| 270 | PACKAGE_TARNAME='duchamp' |
---|
[259] | 271 | PACKAGE_VERSION='1.1b' |
---|
| 272 | PACKAGE_STRING='Duchamp 1.1b' |
---|
[121] | 273 | PACKAGE_BUGREPORT='Matthew.Whiting@csiro.au' |
---|
[107] | 274 | |
---|
[168] | 275 | ac_unique_file="src/duchamp.hh" |
---|
[107] | 276 | # Factoring default headers for most tests. |
---|
| 277 | ac_includes_default="\ |
---|
| 278 | #include <stdio.h> |
---|
| 279 | #if HAVE_SYS_TYPES_H |
---|
| 280 | # include <sys/types.h> |
---|
| 281 | #endif |
---|
| 282 | #if HAVE_SYS_STAT_H |
---|
| 283 | # include <sys/stat.h> |
---|
| 284 | #endif |
---|
| 285 | #if STDC_HEADERS |
---|
| 286 | # include <stdlib.h> |
---|
| 287 | # include <stddef.h> |
---|
| 288 | #else |
---|
| 289 | # if HAVE_STDLIB_H |
---|
| 290 | # include <stdlib.h> |
---|
| 291 | # endif |
---|
| 292 | #endif |
---|
| 293 | #if HAVE_STRING_H |
---|
| 294 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
| 295 | # include <memory.h> |
---|
| 296 | # endif |
---|
| 297 | # include <string.h> |
---|
| 298 | #endif |
---|
| 299 | #if HAVE_STRINGS_H |
---|
| 300 | # include <strings.h> |
---|
| 301 | #endif |
---|
| 302 | #if HAVE_INTTYPES_H |
---|
| 303 | # include <inttypes.h> |
---|
| 304 | #else |
---|
| 305 | # if HAVE_STDINT_H |
---|
| 306 | # include <stdint.h> |
---|
| 307 | # endif |
---|
| 308 | #endif |
---|
| 309 | #if HAVE_UNISTD_H |
---|
| 310 | # include <unistd.h> |
---|
| 311 | #endif" |
---|
| 312 | |
---|
[168] | 313 | 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP EGREP RANLIB ac_ct_RANLIB POW_LIB LIBOBJS PGPLOTINC PGPLOTLIB CFITSIOINC CFITSIOLIB WCSINC WCSLIB LTLIBOBJS' |
---|
[107] | 314 | ac_subst_files='' |
---|
| 315 | |
---|
| 316 | # Initialize some variables set by options. |
---|
| 317 | ac_init_help= |
---|
| 318 | ac_init_version=false |
---|
| 319 | # The variables have the same names as the options, with |
---|
| 320 | # dashes changed to underlines. |
---|
| 321 | cache_file=/dev/null |
---|
| 322 | exec_prefix=NONE |
---|
| 323 | no_create= |
---|
| 324 | no_recursion= |
---|
| 325 | prefix=NONE |
---|
| 326 | program_prefix=NONE |
---|
| 327 | program_suffix=NONE |
---|
| 328 | program_transform_name=s,x,x, |
---|
| 329 | silent= |
---|
| 330 | site= |
---|
| 331 | srcdir= |
---|
| 332 | verbose= |
---|
| 333 | x_includes=NONE |
---|
| 334 | x_libraries=NONE |
---|
| 335 | |
---|
| 336 | # Installation directory options. |
---|
| 337 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 338 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 339 | # by default will actually change. |
---|
| 340 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 341 | bindir='${exec_prefix}/bin' |
---|
| 342 | sbindir='${exec_prefix}/sbin' |
---|
| 343 | libexecdir='${exec_prefix}/libexec' |
---|
| 344 | datadir='${prefix}/share' |
---|
| 345 | sysconfdir='${prefix}/etc' |
---|
| 346 | sharedstatedir='${prefix}/com' |
---|
| 347 | localstatedir='${prefix}/var' |
---|
| 348 | libdir='${exec_prefix}/lib' |
---|
| 349 | includedir='${prefix}/include' |
---|
| 350 | oldincludedir='/usr/include' |
---|
| 351 | infodir='${prefix}/info' |
---|
| 352 | mandir='${prefix}/man' |
---|
| 353 | |
---|
| 354 | ac_prev= |
---|
| 355 | for ac_option |
---|
| 356 | do |
---|
| 357 | # If the previous option needs an argument, assign it. |
---|
| 358 | if test -n "$ac_prev"; then |
---|
| 359 | eval "$ac_prev=\$ac_option" |
---|
| 360 | ac_prev= |
---|
| 361 | continue |
---|
| 362 | fi |
---|
| 363 | |
---|
| 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
| 365 | |
---|
| 366 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 367 | |
---|
| 368 | case $ac_option in |
---|
| 369 | |
---|
| 370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 371 | ac_prev=bindir ;; |
---|
| 372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 373 | bindir=$ac_optarg ;; |
---|
| 374 | |
---|
| 375 | -build | --build | --buil | --bui | --bu) |
---|
| 376 | ac_prev=build_alias ;; |
---|
| 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 378 | build_alias=$ac_optarg ;; |
---|
| 379 | |
---|
| 380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 382 | ac_prev=cache_file ;; |
---|
| 383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 385 | cache_file=$ac_optarg ;; |
---|
| 386 | |
---|
| 387 | --config-cache | -C) |
---|
| 388 | cache_file=config.cache ;; |
---|
| 389 | |
---|
| 390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 391 | ac_prev=datadir ;; |
---|
| 392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 393 | | --da=*) |
---|
| 394 | datadir=$ac_optarg ;; |
---|
| 395 | |
---|
| 396 | -disable-* | --disable-*) |
---|
| 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 398 | # Reject names that are not valid shell variable names. |
---|
| 399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 401 | { (exit 1); exit 1; }; } |
---|
| 402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 403 | eval "enable_$ac_feature=no" ;; |
---|
| 404 | |
---|
| 405 | -enable-* | --enable-*) |
---|
| 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 407 | # Reject names that are not valid shell variable names. |
---|
| 408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 410 | { (exit 1); exit 1; }; } |
---|
| 411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 412 | case $ac_option in |
---|
| 413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 414 | *) ac_optarg=yes ;; |
---|
| 415 | esac |
---|
| 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
| 417 | |
---|
| 418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 420 | | --exec | --exe | --ex) |
---|
| 421 | ac_prev=exec_prefix ;; |
---|
| 422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 424 | | --exec=* | --exe=* | --ex=*) |
---|
| 425 | exec_prefix=$ac_optarg ;; |
---|
| 426 | |
---|
| 427 | -gas | --gas | --ga | --g) |
---|
| 428 | # Obsolete; use --with-gas. |
---|
| 429 | with_gas=yes ;; |
---|
| 430 | |
---|
| 431 | -help | --help | --hel | --he | -h) |
---|
| 432 | ac_init_help=long ;; |
---|
| 433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 434 | ac_init_help=recursive ;; |
---|
| 435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 436 | ac_init_help=short ;; |
---|
| 437 | |
---|
| 438 | -host | --host | --hos | --ho) |
---|
| 439 | ac_prev=host_alias ;; |
---|
| 440 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 441 | host_alias=$ac_optarg ;; |
---|
| 442 | |
---|
| 443 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 444 | | --includ | --inclu | --incl | --inc) |
---|
| 445 | ac_prev=includedir ;; |
---|
| 446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 447 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 448 | includedir=$ac_optarg ;; |
---|
| 449 | |
---|
| 450 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 451 | ac_prev=infodir ;; |
---|
| 452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 453 | infodir=$ac_optarg ;; |
---|
| 454 | |
---|
| 455 | -libdir | --libdir | --libdi | --libd) |
---|
| 456 | ac_prev=libdir ;; |
---|
| 457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 458 | libdir=$ac_optarg ;; |
---|
| 459 | |
---|
| 460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 461 | | --libexe | --libex | --libe) |
---|
| 462 | ac_prev=libexecdir ;; |
---|
| 463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 464 | | --libexe=* | --libex=* | --libe=*) |
---|
| 465 | libexecdir=$ac_optarg ;; |
---|
| 466 | |
---|
| 467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 468 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 469 | | --locals | --local | --loca | --loc | --lo) |
---|
| 470 | ac_prev=localstatedir ;; |
---|
| 471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 474 | localstatedir=$ac_optarg ;; |
---|
| 475 | |
---|
| 476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 477 | ac_prev=mandir ;; |
---|
| 478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 479 | mandir=$ac_optarg ;; |
---|
| 480 | |
---|
| 481 | -nfp | --nfp | --nf) |
---|
| 482 | # Obsolete; use --without-fp. |
---|
| 483 | with_fp=no ;; |
---|
| 484 | |
---|
| 485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 486 | | --no-cr | --no-c | -n) |
---|
| 487 | no_create=yes ;; |
---|
| 488 | |
---|
| 489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 491 | no_recursion=yes ;; |
---|
| 492 | |
---|
| 493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 495 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 496 | ac_prev=oldincludedir ;; |
---|
| 497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 500 | oldincludedir=$ac_optarg ;; |
---|
| 501 | |
---|
| 502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 503 | ac_prev=prefix ;; |
---|
| 504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 505 | prefix=$ac_optarg ;; |
---|
| 506 | |
---|
| 507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 508 | | --program-pre | --program-pr | --program-p) |
---|
| 509 | ac_prev=program_prefix ;; |
---|
| 510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 512 | program_prefix=$ac_optarg ;; |
---|
| 513 | |
---|
| 514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 515 | | --program-suf | --program-su | --program-s) |
---|
| 516 | ac_prev=program_suffix ;; |
---|
| 517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 519 | program_suffix=$ac_optarg ;; |
---|
| 520 | |
---|
| 521 | -program-transform-name | --program-transform-name \ |
---|
| 522 | | --program-transform-nam | --program-transform-na \ |
---|
| 523 | | --program-transform-n | --program-transform- \ |
---|
| 524 | | --program-transform | --program-transfor \ |
---|
| 525 | | --program-transfo | --program-transf \ |
---|
| 526 | | --program-trans | --program-tran \ |
---|
| 527 | | --progr-tra | --program-tr | --program-t) |
---|
| 528 | ac_prev=program_transform_name ;; |
---|
| 529 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 530 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 531 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 532 | | --program-transform=* | --program-transfor=* \ |
---|
| 533 | | --program-transfo=* | --program-transf=* \ |
---|
| 534 | | --program-trans=* | --program-tran=* \ |
---|
| 535 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 536 | program_transform_name=$ac_optarg ;; |
---|
| 537 | |
---|
| 538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 539 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 540 | silent=yes ;; |
---|
| 541 | |
---|
| 542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 543 | ac_prev=sbindir ;; |
---|
| 544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 545 | | --sbi=* | --sb=*) |
---|
| 546 | sbindir=$ac_optarg ;; |
---|
| 547 | |
---|
| 548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 550 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 551 | | --sha | --sh) |
---|
| 552 | ac_prev=sharedstatedir ;; |
---|
| 553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 556 | | --sha=* | --sh=*) |
---|
| 557 | sharedstatedir=$ac_optarg ;; |
---|
| 558 | |
---|
| 559 | -site | --site | --sit) |
---|
| 560 | ac_prev=site ;; |
---|
| 561 | -site=* | --site=* | --sit=*) |
---|
| 562 | site=$ac_optarg ;; |
---|
| 563 | |
---|
| 564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 565 | ac_prev=srcdir ;; |
---|
| 566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 567 | srcdir=$ac_optarg ;; |
---|
| 568 | |
---|
| 569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 570 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 571 | ac_prev=sysconfdir ;; |
---|
| 572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 574 | sysconfdir=$ac_optarg ;; |
---|
| 575 | |
---|
| 576 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 577 | ac_prev=target_alias ;; |
---|
| 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 579 | target_alias=$ac_optarg ;; |
---|
| 580 | |
---|
| 581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 582 | verbose=yes ;; |
---|
| 583 | |
---|
| 584 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 585 | ac_init_version=: ;; |
---|
| 586 | |
---|
| 587 | -with-* | --with-*) |
---|
| 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 589 | # Reject names that are not valid shell variable names. |
---|
| 590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 592 | { (exit 1); exit 1; }; } |
---|
| 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 594 | case $ac_option in |
---|
| 595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 596 | *) ac_optarg=yes ;; |
---|
| 597 | esac |
---|
| 598 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
| 599 | |
---|
| 600 | -without-* | --without-*) |
---|
| 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 602 | # Reject names that are not valid shell variable names. |
---|
| 603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 605 | { (exit 1); exit 1; }; } |
---|
| 606 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
| 607 | eval "with_$ac_package=no" ;; |
---|
| 608 | |
---|
| 609 | --x) |
---|
| 610 | # Obsolete; use --with-x. |
---|
| 611 | with_x=yes ;; |
---|
| 612 | |
---|
| 613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 614 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 615 | ac_prev=x_includes ;; |
---|
| 616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 618 | x_includes=$ac_optarg ;; |
---|
| 619 | |
---|
| 620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 622 | ac_prev=x_libraries ;; |
---|
| 623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 625 | x_libraries=$ac_optarg ;; |
---|
| 626 | |
---|
| 627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 628 | Try \`$0 --help' for more information." >&2 |
---|
| 629 | { (exit 1); exit 1; }; } |
---|
| 630 | ;; |
---|
| 631 | |
---|
| 632 | *=*) |
---|
| 633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 634 | # Reject names that are not valid shell variable names. |
---|
| 635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 637 | { (exit 1); exit 1; }; } |
---|
| 638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
| 639 | eval "$ac_envvar='$ac_optarg'" |
---|
| 640 | export $ac_envvar ;; |
---|
| 641 | |
---|
| 642 | *) |
---|
| 643 | # FIXME: should be removed in autoconf 3.0. |
---|
| 644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 648 | ;; |
---|
| 649 | |
---|
| 650 | esac |
---|
| 651 | done |
---|
| 652 | |
---|
| 653 | if test -n "$ac_prev"; then |
---|
| 654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 655 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 656 | { (exit 1); exit 1; }; } |
---|
| 657 | fi |
---|
| 658 | |
---|
| 659 | # Be sure to have absolute paths. |
---|
| 660 | for ac_var in exec_prefix prefix |
---|
| 661 | do |
---|
| 662 | eval ac_val=$`echo $ac_var` |
---|
| 663 | case $ac_val in |
---|
| 664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
| 665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 666 | { (exit 1); exit 1; }; };; |
---|
| 667 | esac |
---|
| 668 | done |
---|
| 669 | |
---|
| 670 | # Be sure to have absolute paths. |
---|
| 671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
| 672 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
| 673 | do |
---|
| 674 | eval ac_val=$`echo $ac_var` |
---|
| 675 | case $ac_val in |
---|
| 676 | [\\/$]* | ?:[\\/]* ) ;; |
---|
| 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 678 | { (exit 1); exit 1; }; };; |
---|
| 679 | esac |
---|
| 680 | done |
---|
| 681 | |
---|
| 682 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 683 | # used to hold the argument of --host etc. |
---|
| 684 | # FIXME: To remove some day. |
---|
| 685 | build=$build_alias |
---|
| 686 | host=$host_alias |
---|
| 687 | target=$target_alias |
---|
| 688 | |
---|
| 689 | # FIXME: To remove some day. |
---|
| 690 | if test "x$host_alias" != x; then |
---|
| 691 | if test "x$build_alias" = x; then |
---|
| 692 | cross_compiling=maybe |
---|
| 693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 694 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 695 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 696 | cross_compiling=yes |
---|
| 697 | fi |
---|
| 698 | fi |
---|
| 699 | |
---|
| 700 | ac_tool_prefix= |
---|
| 701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 702 | |
---|
| 703 | test "$silent" = yes && exec 6>/dev/null |
---|
| 704 | |
---|
| 705 | |
---|
| 706 | # Find the source files, if location was not specified. |
---|
| 707 | if test -z "$srcdir"; then |
---|
| 708 | ac_srcdir_defaulted=yes |
---|
| 709 | # Try the directory containing this script, then its parent. |
---|
| 710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
| 711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 712 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 713 | X"$0" : 'X\(//\)$' \| \ |
---|
| 714 | X"$0" : 'X\(/\)' \| \ |
---|
| 715 | . : '\(.\)' 2>/dev/null || |
---|
| 716 | echo X"$0" | |
---|
| 717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 719 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 720 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 721 | s/.*/./; q'` |
---|
| 722 | srcdir=$ac_confdir |
---|
| 723 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 724 | srcdir=.. |
---|
| 725 | fi |
---|
| 726 | else |
---|
| 727 | ac_srcdir_defaulted=no |
---|
| 728 | fi |
---|
| 729 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 730 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
| 732 | { (exit 1); exit 1; }; } |
---|
| 733 | else |
---|
| 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
| 735 | { (exit 1); exit 1; }; } |
---|
| 736 | fi |
---|
| 737 | fi |
---|
| 738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
| 739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
| 740 | { (exit 1); exit 1; }; } |
---|
| 741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
| 742 | ac_env_build_alias_set=${build_alias+set} |
---|
| 743 | ac_env_build_alias_value=$build_alias |
---|
| 744 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
| 745 | ac_cv_env_build_alias_value=$build_alias |
---|
| 746 | ac_env_host_alias_set=${host_alias+set} |
---|
| 747 | ac_env_host_alias_value=$host_alias |
---|
| 748 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
| 749 | ac_cv_env_host_alias_value=$host_alias |
---|
| 750 | ac_env_target_alias_set=${target_alias+set} |
---|
| 751 | ac_env_target_alias_value=$target_alias |
---|
| 752 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
| 753 | ac_cv_env_target_alias_value=$target_alias |
---|
| 754 | ac_env_CXX_set=${CXX+set} |
---|
| 755 | ac_env_CXX_value=$CXX |
---|
| 756 | ac_cv_env_CXX_set=${CXX+set} |
---|
| 757 | ac_cv_env_CXX_value=$CXX |
---|
| 758 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 759 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 760 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 761 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 762 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 763 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
| 764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 765 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
| 766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 767 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 770 | ac_env_CC_set=${CC+set} |
---|
| 771 | ac_env_CC_value=$CC |
---|
| 772 | ac_cv_env_CC_set=${CC+set} |
---|
| 773 | ac_cv_env_CC_value=$CC |
---|
| 774 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
| 775 | ac_env_CFLAGS_value=$CFLAGS |
---|
| 776 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
| 777 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
| 778 | ac_env_CPP_set=${CPP+set} |
---|
| 779 | ac_env_CPP_value=$CPP |
---|
| 780 | ac_cv_env_CPP_set=${CPP+set} |
---|
| 781 | ac_cv_env_CPP_value=$CPP |
---|
| 782 | |
---|
| 783 | # |
---|
| 784 | # Report the --help message. |
---|
| 785 | # |
---|
| 786 | if test "$ac_init_help" = "long"; then |
---|
| 787 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 788 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 789 | cat <<_ACEOF |
---|
[259] | 790 | \`configure' configures Duchamp 1.1b to adapt to many kinds of systems. |
---|
[107] | 791 | |
---|
| 792 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 793 | |
---|
| 794 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 795 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 796 | |
---|
| 797 | Defaults for the options are specified in brackets. |
---|
| 798 | |
---|
| 799 | Configuration: |
---|
| 800 | -h, --help display this help and exit |
---|
| 801 | --help=short display options specific to this package |
---|
| 802 | --help=recursive display the short help of all the included packages |
---|
| 803 | -V, --version display version information and exit |
---|
| 804 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 805 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 806 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 807 | -n, --no-create do not create output files |
---|
| 808 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 809 | |
---|
| 810 | _ACEOF |
---|
| 811 | |
---|
| 812 | cat <<_ACEOF |
---|
| 813 | Installation directories: |
---|
| 814 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 815 | [$ac_default_prefix] |
---|
| 816 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 817 | [PREFIX] |
---|
| 818 | |
---|
| 819 | By default, \`make install' will install all the files in |
---|
| 820 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 821 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 822 | for instance \`--prefix=\$HOME'. |
---|
| 823 | |
---|
| 824 | For better control, use the options below. |
---|
| 825 | |
---|
| 826 | Fine tuning of the installation directories: |
---|
| 827 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 828 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 829 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 830 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
| 831 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 832 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 833 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 834 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 835 | --includedir=DIR C header files [PREFIX/include] |
---|
| 836 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 837 | --infodir=DIR info documentation [PREFIX/info] |
---|
| 838 | --mandir=DIR man documentation [PREFIX/man] |
---|
| 839 | _ACEOF |
---|
| 840 | |
---|
| 841 | cat <<\_ACEOF |
---|
| 842 | |
---|
| 843 | X features: |
---|
| 844 | --x-includes=DIR X include files are in DIR |
---|
| 845 | --x-libraries=DIR X library files are in DIR |
---|
| 846 | _ACEOF |
---|
| 847 | fi |
---|
| 848 | |
---|
| 849 | if test -n "$ac_init_help"; then |
---|
| 850 | case $ac_init_help in |
---|
[259] | 851 | short | recursive ) echo "Configuration of Duchamp 1.1b:";; |
---|
[107] | 852 | esac |
---|
| 853 | cat <<\_ACEOF |
---|
| 854 | |
---|
| 855 | Optional Packages: |
---|
| 856 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 857 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 858 | --with-x use the X Window System |
---|
| 859 | |
---|
| 860 | Some influential environment variables: |
---|
| 861 | CXX C++ compiler command |
---|
| 862 | CXXFLAGS C++ compiler flags |
---|
| 863 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 864 | nonstandard directory <lib dir> |
---|
| 865 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 866 | headers in a nonstandard directory <include dir> |
---|
| 867 | CC C compiler command |
---|
| 868 | CFLAGS C compiler flags |
---|
| 869 | CPP C preprocessor |
---|
| 870 | |
---|
| 871 | Use these variables to override the choices made by `configure' or to help |
---|
| 872 | it to find libraries and programs with nonstandard names/locations. |
---|
| 873 | |
---|
[121] | 874 | Report bugs to <Matthew.Whiting@csiro.au>. |
---|
[107] | 875 | _ACEOF |
---|
| 876 | fi |
---|
| 877 | |
---|
| 878 | if test "$ac_init_help" = "recursive"; then |
---|
| 879 | # If there are subdirs, report their specific --help. |
---|
| 880 | ac_popdir=`pwd` |
---|
| 881 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 882 | test -d $ac_dir || continue |
---|
| 883 | ac_builddir=. |
---|
| 884 | |
---|
| 885 | if test "$ac_dir" != .; then |
---|
| 886 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 887 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 888 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 889 | else |
---|
| 890 | ac_dir_suffix= ac_top_builddir= |
---|
| 891 | fi |
---|
| 892 | |
---|
| 893 | case $srcdir in |
---|
| 894 | .) # No --srcdir option. We are building in place. |
---|
| 895 | ac_srcdir=. |
---|
| 896 | if test -z "$ac_top_builddir"; then |
---|
| 897 | ac_top_srcdir=. |
---|
| 898 | else |
---|
| 899 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 900 | fi ;; |
---|
| 901 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 902 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 903 | ac_top_srcdir=$srcdir ;; |
---|
| 904 | *) # Relative path. |
---|
| 905 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 906 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 907 | esac |
---|
| 908 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
| 909 | # absolute. |
---|
| 910 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
| 911 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
| 912 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
| 913 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
| 914 | |
---|
| 915 | cd $ac_dir |
---|
| 916 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 917 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 918 | echo |
---|
| 919 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 920 | elif test -f $ac_srcdir/configure; then |
---|
| 921 | echo |
---|
| 922 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 923 | elif test -f $ac_srcdir/configure.ac || |
---|
| 924 | test -f $ac_srcdir/configure.in; then |
---|
| 925 | echo |
---|
| 926 | $ac_configure --help |
---|
| 927 | else |
---|
| 928 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 929 | fi |
---|
| 930 | cd $ac_popdir |
---|
| 931 | done |
---|
| 932 | fi |
---|
| 933 | |
---|
| 934 | test -n "$ac_init_help" && exit 0 |
---|
| 935 | if $ac_init_version; then |
---|
| 936 | cat <<\_ACEOF |
---|
[259] | 937 | Duchamp configure 1.1b |
---|
[107] | 938 | generated by GNU Autoconf 2.57 |
---|
| 939 | |
---|
| 940 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
| 941 | Free Software Foundation, Inc. |
---|
| 942 | This configure script is free software; the Free Software Foundation |
---|
| 943 | gives unlimited permission to copy, distribute and modify it. |
---|
| 944 | _ACEOF |
---|
| 945 | exit 0 |
---|
| 946 | fi |
---|
| 947 | exec 5>config.log |
---|
| 948 | cat >&5 <<_ACEOF |
---|
| 949 | This file contains any messages produced by compilers while |
---|
| 950 | running configure, to aid debugging if configure makes a mistake. |
---|
| 951 | |
---|
[259] | 952 | It was created by Duchamp $as_me 1.1b, which was |
---|
[107] | 953 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
| 954 | |
---|
| 955 | $ $0 $@ |
---|
| 956 | |
---|
| 957 | _ACEOF |
---|
| 958 | { |
---|
| 959 | cat <<_ASUNAME |
---|
| 960 | ## --------- ## |
---|
| 961 | ## Platform. ## |
---|
| 962 | ## --------- ## |
---|
| 963 | |
---|
| 964 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 965 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 966 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 967 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 968 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 969 | |
---|
| 970 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 971 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 972 | |
---|
| 973 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 974 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 975 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 976 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 977 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 978 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 979 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 980 | |
---|
| 981 | _ASUNAME |
---|
| 982 | |
---|
| 983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 984 | for as_dir in $PATH |
---|
| 985 | do |
---|
| 986 | IFS=$as_save_IFS |
---|
| 987 | test -z "$as_dir" && as_dir=. |
---|
| 988 | echo "PATH: $as_dir" |
---|
| 989 | done |
---|
| 990 | |
---|
| 991 | } >&5 |
---|
| 992 | |
---|
| 993 | cat >&5 <<_ACEOF |
---|
| 994 | |
---|
| 995 | |
---|
| 996 | ## ----------- ## |
---|
| 997 | ## Core tests. ## |
---|
| 998 | ## ----------- ## |
---|
| 999 | |
---|
| 1000 | _ACEOF |
---|
| 1001 | |
---|
| 1002 | |
---|
| 1003 | # Keep a trace of the command line. |
---|
| 1004 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1005 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1006 | # Also quote any args containing shell meta-characters. |
---|
| 1007 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1008 | ac_configure_args= |
---|
| 1009 | ac_configure_args0= |
---|
| 1010 | ac_configure_args1= |
---|
| 1011 | ac_sep= |
---|
| 1012 | ac_must_keep_next=false |
---|
| 1013 | for ac_pass in 1 2 |
---|
| 1014 | do |
---|
| 1015 | for ac_arg |
---|
| 1016 | do |
---|
| 1017 | case $ac_arg in |
---|
| 1018 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1019 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1020 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1021 | continue ;; |
---|
| 1022 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1023 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1024 | esac |
---|
| 1025 | case $ac_pass in |
---|
| 1026 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1027 | 2) |
---|
| 1028 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1029 | if test $ac_must_keep_next = true; then |
---|
| 1030 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1031 | else |
---|
| 1032 | case $ac_arg in |
---|
| 1033 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1034 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1035 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1036 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1037 | case "$ac_configure_args0 " in |
---|
| 1038 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1039 | esac |
---|
| 1040 | ;; |
---|
| 1041 | -* ) ac_must_keep_next=true ;; |
---|
| 1042 | esac |
---|
| 1043 | fi |
---|
| 1044 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1045 | # Get rid of the leading space. |
---|
| 1046 | ac_sep=" " |
---|
| 1047 | ;; |
---|
| 1048 | esac |
---|
| 1049 | done |
---|
| 1050 | done |
---|
| 1051 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1052 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1053 | |
---|
| 1054 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1055 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1056 | # would cause problems or look ugly. |
---|
| 1057 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1058 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1059 | trap 'exit_status=$? |
---|
| 1060 | # Save into config.log some information that might help in debugging. |
---|
| 1061 | { |
---|
| 1062 | echo |
---|
| 1063 | |
---|
| 1064 | cat <<\_ASBOX |
---|
| 1065 | ## ---------------- ## |
---|
| 1066 | ## Cache variables. ## |
---|
| 1067 | ## ---------------- ## |
---|
| 1068 | _ASBOX |
---|
| 1069 | echo |
---|
| 1070 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1071 | { |
---|
| 1072 | (set) 2>&1 | |
---|
| 1073 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1074 | *ac_space=\ *) |
---|
| 1075 | sed -n \ |
---|
| 1076 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1077 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1078 | ;; |
---|
| 1079 | *) |
---|
| 1080 | sed -n \ |
---|
| 1081 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1082 | ;; |
---|
| 1083 | esac; |
---|
| 1084 | } |
---|
| 1085 | echo |
---|
| 1086 | |
---|
| 1087 | cat <<\_ASBOX |
---|
| 1088 | ## ----------------- ## |
---|
| 1089 | ## Output variables. ## |
---|
| 1090 | ## ----------------- ## |
---|
| 1091 | _ASBOX |
---|
| 1092 | echo |
---|
| 1093 | for ac_var in $ac_subst_vars |
---|
| 1094 | do |
---|
| 1095 | eval ac_val=$`echo $ac_var` |
---|
| 1096 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1097 | done | sort |
---|
| 1098 | echo |
---|
| 1099 | |
---|
| 1100 | if test -n "$ac_subst_files"; then |
---|
| 1101 | cat <<\_ASBOX |
---|
| 1102 | ## ------------- ## |
---|
| 1103 | ## Output files. ## |
---|
| 1104 | ## ------------- ## |
---|
| 1105 | _ASBOX |
---|
| 1106 | echo |
---|
| 1107 | for ac_var in $ac_subst_files |
---|
| 1108 | do |
---|
| 1109 | eval ac_val=$`echo $ac_var` |
---|
| 1110 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1111 | done | sort |
---|
| 1112 | echo |
---|
| 1113 | fi |
---|
| 1114 | |
---|
| 1115 | if test -s confdefs.h; then |
---|
| 1116 | cat <<\_ASBOX |
---|
| 1117 | ## ----------- ## |
---|
| 1118 | ## confdefs.h. ## |
---|
| 1119 | ## ----------- ## |
---|
| 1120 | _ASBOX |
---|
| 1121 | echo |
---|
| 1122 | sed "/^$/d" confdefs.h | sort |
---|
| 1123 | echo |
---|
| 1124 | fi |
---|
| 1125 | test "$ac_signal" != 0 && |
---|
| 1126 | echo "$as_me: caught signal $ac_signal" |
---|
| 1127 | echo "$as_me: exit $exit_status" |
---|
| 1128 | } >&5 |
---|
| 1129 | rm -f core core.* *.core && |
---|
| 1130 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1131 | exit $exit_status |
---|
| 1132 | ' 0 |
---|
| 1133 | for ac_signal in 1 2 13 15; do |
---|
| 1134 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1135 | done |
---|
| 1136 | ac_signal=0 |
---|
| 1137 | |
---|
| 1138 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1139 | rm -rf conftest* confdefs.h |
---|
| 1140 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1141 | echo >confdefs.h |
---|
| 1142 | |
---|
| 1143 | # Predefined preprocessor variables. |
---|
| 1144 | |
---|
| 1145 | cat >>confdefs.h <<_ACEOF |
---|
| 1146 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1147 | _ACEOF |
---|
| 1148 | |
---|
| 1149 | |
---|
| 1150 | cat >>confdefs.h <<_ACEOF |
---|
| 1151 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1152 | _ACEOF |
---|
| 1153 | |
---|
| 1154 | |
---|
| 1155 | cat >>confdefs.h <<_ACEOF |
---|
| 1156 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1157 | _ACEOF |
---|
| 1158 | |
---|
| 1159 | |
---|
| 1160 | cat >>confdefs.h <<_ACEOF |
---|
| 1161 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1162 | _ACEOF |
---|
| 1163 | |
---|
| 1164 | |
---|
| 1165 | cat >>confdefs.h <<_ACEOF |
---|
| 1166 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1167 | _ACEOF |
---|
| 1168 | |
---|
| 1169 | |
---|
| 1170 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1171 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1172 | if test -z "$CONFIG_SITE"; then |
---|
| 1173 | if test "x$prefix" != xNONE; then |
---|
| 1174 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1175 | else |
---|
| 1176 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1177 | fi |
---|
| 1178 | fi |
---|
| 1179 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1180 | if test -r "$ac_site_file"; then |
---|
| 1181 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1182 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1183 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1184 | . "$ac_site_file" |
---|
| 1185 | fi |
---|
| 1186 | done |
---|
| 1187 | |
---|
| 1188 | if test -r "$cache_file"; then |
---|
| 1189 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1190 | # files actually), so we avoid doing that. |
---|
| 1191 | if test -f "$cache_file"; then |
---|
| 1192 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1193 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1194 | case $cache_file in |
---|
| 1195 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1196 | *) . ./$cache_file;; |
---|
| 1197 | esac |
---|
| 1198 | fi |
---|
| 1199 | else |
---|
| 1200 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1201 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1202 | >$cache_file |
---|
| 1203 | fi |
---|
| 1204 | |
---|
| 1205 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1206 | # value. |
---|
| 1207 | ac_cache_corrupted=false |
---|
| 1208 | for ac_var in `(set) 2>&1 | |
---|
| 1209 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1210 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1211 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1212 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1213 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1214 | case $ac_old_set,$ac_new_set in |
---|
| 1215 | set,) |
---|
| 1216 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1217 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1218 | ac_cache_corrupted=: ;; |
---|
| 1219 | ,set) |
---|
| 1220 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1221 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1222 | ac_cache_corrupted=: ;; |
---|
| 1223 | ,);; |
---|
| 1224 | *) |
---|
| 1225 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1226 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1227 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1228 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1229 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1230 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1231 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1232 | ac_cache_corrupted=: |
---|
| 1233 | fi;; |
---|
| 1234 | esac |
---|
| 1235 | # Pass precious variables to config.status. |
---|
| 1236 | if test "$ac_new_set" = set; then |
---|
| 1237 | case $ac_new_val in |
---|
| 1238 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1239 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1240 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1241 | esac |
---|
| 1242 | case " $ac_configure_args " in |
---|
| 1243 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1244 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1245 | esac |
---|
| 1246 | fi |
---|
| 1247 | done |
---|
| 1248 | if $ac_cache_corrupted; then |
---|
| 1249 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1250 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1251 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1252 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1253 | { (exit 1); exit 1; }; } |
---|
| 1254 | fi |
---|
| 1255 | |
---|
| 1256 | ac_ext=c |
---|
| 1257 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1261 | |
---|
| 1262 | |
---|
| 1263 | |
---|
| 1264 | |
---|
| 1265 | |
---|
| 1266 | |
---|
| 1267 | |
---|
| 1268 | |
---|
| 1269 | |
---|
| 1270 | |
---|
| 1271 | |
---|
| 1272 | |
---|
| 1273 | |
---|
| 1274 | |
---|
| 1275 | |
---|
| 1276 | |
---|
| 1277 | |
---|
| 1278 | |
---|
| 1279 | |
---|
| 1280 | |
---|
| 1281 | |
---|
| 1282 | |
---|
| 1283 | |
---|
| 1284 | |
---|
| 1285 | |
---|
| 1286 | |
---|
| 1287 | |
---|
| 1288 | |
---|
[110] | 1289 | ac_config_headers="$ac_config_headers src/config.h" |
---|
[107] | 1290 | |
---|
| 1291 | |
---|
| 1292 | # Checks for programs. |
---|
| 1293 | ac_ext=cc |
---|
| 1294 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1295 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1296 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1297 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1298 | if test -n "$ac_tool_prefix"; then |
---|
| 1299 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1300 | do |
---|
| 1301 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1302 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1303 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1305 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1307 | else |
---|
| 1308 | if test -n "$CXX"; then |
---|
| 1309 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1310 | else |
---|
| 1311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1312 | for as_dir in $PATH |
---|
| 1313 | do |
---|
| 1314 | IFS=$as_save_IFS |
---|
| 1315 | test -z "$as_dir" && as_dir=. |
---|
| 1316 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1317 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1318 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1320 | break 2 |
---|
| 1321 | fi |
---|
| 1322 | done |
---|
| 1323 | done |
---|
| 1324 | |
---|
| 1325 | fi |
---|
| 1326 | fi |
---|
| 1327 | CXX=$ac_cv_prog_CXX |
---|
| 1328 | if test -n "$CXX"; then |
---|
| 1329 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1330 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1331 | else |
---|
| 1332 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1333 | echo "${ECHO_T}no" >&6 |
---|
| 1334 | fi |
---|
| 1335 | |
---|
| 1336 | test -n "$CXX" && break |
---|
| 1337 | done |
---|
| 1338 | fi |
---|
| 1339 | if test -z "$CXX"; then |
---|
| 1340 | ac_ct_CXX=$CXX |
---|
| 1341 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1342 | do |
---|
| 1343 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1344 | set dummy $ac_prog; ac_word=$2 |
---|
| 1345 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1347 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1349 | else |
---|
| 1350 | if test -n "$ac_ct_CXX"; then |
---|
| 1351 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1352 | else |
---|
| 1353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1354 | for as_dir in $PATH |
---|
| 1355 | do |
---|
| 1356 | IFS=$as_save_IFS |
---|
| 1357 | test -z "$as_dir" && as_dir=. |
---|
| 1358 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1359 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1360 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1361 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1362 | break 2 |
---|
| 1363 | fi |
---|
| 1364 | done |
---|
| 1365 | done |
---|
| 1366 | |
---|
| 1367 | fi |
---|
| 1368 | fi |
---|
| 1369 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1370 | if test -n "$ac_ct_CXX"; then |
---|
| 1371 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1372 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1373 | else |
---|
| 1374 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1375 | echo "${ECHO_T}no" >&6 |
---|
| 1376 | fi |
---|
| 1377 | |
---|
| 1378 | test -n "$ac_ct_CXX" && break |
---|
| 1379 | done |
---|
| 1380 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1381 | |
---|
| 1382 | CXX=$ac_ct_CXX |
---|
| 1383 | fi |
---|
| 1384 | |
---|
| 1385 | |
---|
| 1386 | # Provide some information about the compiler. |
---|
| 1387 | echo "$as_me:$LINENO:" \ |
---|
| 1388 | "checking for C++ compiler version" >&5 |
---|
| 1389 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1390 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1391 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1392 | ac_status=$? |
---|
| 1393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1394 | (exit $ac_status); } |
---|
| 1395 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1396 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1397 | ac_status=$? |
---|
| 1398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1399 | (exit $ac_status); } |
---|
| 1400 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1401 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1402 | ac_status=$? |
---|
| 1403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1404 | (exit $ac_status); } |
---|
| 1405 | |
---|
| 1406 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1407 | #line $LINENO "configure" |
---|
| 1408 | /* confdefs.h. */ |
---|
| 1409 | _ACEOF |
---|
| 1410 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1411 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1412 | /* end confdefs.h. */ |
---|
| 1413 | |
---|
| 1414 | int |
---|
| 1415 | main () |
---|
| 1416 | { |
---|
| 1417 | |
---|
| 1418 | ; |
---|
| 1419 | return 0; |
---|
| 1420 | } |
---|
| 1421 | _ACEOF |
---|
| 1422 | ac_clean_files_save=$ac_clean_files |
---|
| 1423 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1424 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1425 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1426 | # of exeext. |
---|
| 1427 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
---|
| 1428 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
---|
| 1429 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1430 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1431 | (eval $ac_link_default) 2>&5 |
---|
| 1432 | ac_status=$? |
---|
| 1433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1434 | (exit $ac_status); }; then |
---|
| 1435 | # Find the output, starting from the most likely. This scheme is |
---|
| 1436 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 1437 | # resort. |
---|
| 1438 | |
---|
| 1439 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 1440 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 1441 | ac_cv_exeext= |
---|
| 1442 | # b.out is created by i960 compilers. |
---|
| 1443 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 1444 | do |
---|
| 1445 | test -f "$ac_file" || continue |
---|
| 1446 | case $ac_file in |
---|
| 1447 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 1448 | ;; |
---|
| 1449 | conftest.$ac_ext ) |
---|
| 1450 | # This is the source file. |
---|
| 1451 | ;; |
---|
| 1452 | [ab].out ) |
---|
| 1453 | # We found the default executable, but exeext='' is most |
---|
| 1454 | # certainly right. |
---|
| 1455 | break;; |
---|
| 1456 | *.* ) |
---|
| 1457 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1458 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 1459 | # but it would be cool to find out if it's true. Does anybody |
---|
| 1460 | # maintain Libtool? --akim. |
---|
| 1461 | export ac_cv_exeext |
---|
| 1462 | break;; |
---|
| 1463 | * ) |
---|
| 1464 | break;; |
---|
| 1465 | esac |
---|
| 1466 | done |
---|
| 1467 | else |
---|
| 1468 | echo "$as_me: failed program was:" >&5 |
---|
| 1469 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1470 | |
---|
| 1471 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 1472 | See \`config.log' for more details." >&5 |
---|
| 1473 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 1474 | See \`config.log' for more details." >&2;} |
---|
| 1475 | { (exit 77); exit 77; }; } |
---|
| 1476 | fi |
---|
| 1477 | |
---|
| 1478 | ac_exeext=$ac_cv_exeext |
---|
| 1479 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 1480 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 1481 | |
---|
| 1482 | # Check the compiler produces executables we can run. If not, either |
---|
| 1483 | # the compiler is broken, or we cross compile. |
---|
| 1484 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 1485 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 1486 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 1487 | # If not cross compiling, check that we can run a simple program. |
---|
| 1488 | if test "$cross_compiling" != yes; then |
---|
| 1489 | if { ac_try='./$ac_file' |
---|
| 1490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1491 | (eval $ac_try) 2>&5 |
---|
| 1492 | ac_status=$? |
---|
| 1493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1494 | (exit $ac_status); }; }; then |
---|
| 1495 | cross_compiling=no |
---|
| 1496 | else |
---|
| 1497 | if test "$cross_compiling" = maybe; then |
---|
| 1498 | cross_compiling=yes |
---|
| 1499 | else |
---|
| 1500 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 1501 | If you meant to cross compile, use \`--host'. |
---|
| 1502 | See \`config.log' for more details." >&5 |
---|
| 1503 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 1504 | If you meant to cross compile, use \`--host'. |
---|
| 1505 | See \`config.log' for more details." >&2;} |
---|
| 1506 | { (exit 1); exit 1; }; } |
---|
| 1507 | fi |
---|
| 1508 | fi |
---|
| 1509 | fi |
---|
| 1510 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1511 | echo "${ECHO_T}yes" >&6 |
---|
| 1512 | |
---|
| 1513 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 1514 | ac_clean_files=$ac_clean_files_save |
---|
| 1515 | # Check the compiler produces executables we can run. If not, either |
---|
| 1516 | # the compiler is broken, or we cross compile. |
---|
| 1517 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 1518 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 1519 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 1520 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 1521 | |
---|
| 1522 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 1523 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 1524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 1525 | (eval $ac_link) 2>&5 |
---|
| 1526 | ac_status=$? |
---|
| 1527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1528 | (exit $ac_status); }; then |
---|
| 1529 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 1530 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 1531 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 1532 | # `rm'. |
---|
| 1533 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 1534 | test -f "$ac_file" || continue |
---|
| 1535 | case $ac_file in |
---|
| 1536 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 1537 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1538 | export ac_cv_exeext |
---|
| 1539 | break;; |
---|
| 1540 | * ) break;; |
---|
| 1541 | esac |
---|
| 1542 | done |
---|
| 1543 | else |
---|
| 1544 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 1545 | See \`config.log' for more details." >&5 |
---|
| 1546 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 1547 | See \`config.log' for more details." >&2;} |
---|
| 1548 | { (exit 1); exit 1; }; } |
---|
| 1549 | fi |
---|
| 1550 | |
---|
| 1551 | rm -f conftest$ac_cv_exeext |
---|
| 1552 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 1553 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 1554 | |
---|
| 1555 | rm -f conftest.$ac_ext |
---|
| 1556 | EXEEXT=$ac_cv_exeext |
---|
| 1557 | ac_exeext=$EXEEXT |
---|
| 1558 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 1559 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 1560 | if test "${ac_cv_objext+set}" = set; then |
---|
| 1561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1562 | else |
---|
| 1563 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1564 | #line $LINENO "configure" |
---|
| 1565 | /* confdefs.h. */ |
---|
| 1566 | _ACEOF |
---|
| 1567 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1568 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1569 | /* end confdefs.h. */ |
---|
| 1570 | |
---|
| 1571 | int |
---|
| 1572 | main () |
---|
| 1573 | { |
---|
| 1574 | |
---|
| 1575 | ; |
---|
| 1576 | return 0; |
---|
| 1577 | } |
---|
| 1578 | _ACEOF |
---|
| 1579 | rm -f conftest.o conftest.obj |
---|
| 1580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1581 | (eval $ac_compile) 2>&5 |
---|
| 1582 | ac_status=$? |
---|
| 1583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1584 | (exit $ac_status); }; then |
---|
| 1585 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 1586 | case $ac_file in |
---|
| 1587 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 1588 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 1589 | break;; |
---|
| 1590 | esac |
---|
| 1591 | done |
---|
| 1592 | else |
---|
| 1593 | echo "$as_me: failed program was:" >&5 |
---|
| 1594 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1595 | |
---|
| 1596 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 1597 | See \`config.log' for more details." >&5 |
---|
| 1598 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 1599 | See \`config.log' for more details." >&2;} |
---|
| 1600 | { (exit 1); exit 1; }; } |
---|
| 1601 | fi |
---|
| 1602 | |
---|
| 1603 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 1604 | fi |
---|
| 1605 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 1606 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 1607 | OBJEXT=$ac_cv_objext |
---|
| 1608 | ac_objext=$OBJEXT |
---|
| 1609 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 1610 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 1611 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 1612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1613 | else |
---|
| 1614 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1615 | #line $LINENO "configure" |
---|
| 1616 | /* confdefs.h. */ |
---|
| 1617 | _ACEOF |
---|
| 1618 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1619 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1620 | /* end confdefs.h. */ |
---|
| 1621 | |
---|
| 1622 | int |
---|
| 1623 | main () |
---|
| 1624 | { |
---|
| 1625 | #ifndef __GNUC__ |
---|
| 1626 | choke me |
---|
| 1627 | #endif |
---|
| 1628 | |
---|
| 1629 | ; |
---|
| 1630 | return 0; |
---|
| 1631 | } |
---|
| 1632 | _ACEOF |
---|
| 1633 | rm -f conftest.$ac_objext |
---|
| 1634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1635 | (eval $ac_compile) 2>&5 |
---|
| 1636 | ac_status=$? |
---|
| 1637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1638 | (exit $ac_status); } && |
---|
| 1639 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1641 | (eval $ac_try) 2>&5 |
---|
| 1642 | ac_status=$? |
---|
| 1643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1644 | (exit $ac_status); }; }; then |
---|
| 1645 | ac_compiler_gnu=yes |
---|
| 1646 | else |
---|
| 1647 | echo "$as_me: failed program was:" >&5 |
---|
| 1648 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1649 | |
---|
| 1650 | ac_compiler_gnu=no |
---|
| 1651 | fi |
---|
| 1652 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 1653 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 1654 | |
---|
| 1655 | fi |
---|
| 1656 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 1657 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 1658 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 1659 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 1660 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 1661 | CXXFLAGS="-g" |
---|
| 1662 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 1663 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 1664 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 1665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1666 | else |
---|
| 1667 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1668 | #line $LINENO "configure" |
---|
| 1669 | /* confdefs.h. */ |
---|
| 1670 | _ACEOF |
---|
| 1671 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1672 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1673 | /* end confdefs.h. */ |
---|
| 1674 | |
---|
| 1675 | int |
---|
| 1676 | main () |
---|
| 1677 | { |
---|
| 1678 | |
---|
| 1679 | ; |
---|
| 1680 | return 0; |
---|
| 1681 | } |
---|
| 1682 | _ACEOF |
---|
| 1683 | rm -f conftest.$ac_objext |
---|
| 1684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1685 | (eval $ac_compile) 2>&5 |
---|
| 1686 | ac_status=$? |
---|
| 1687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1688 | (exit $ac_status); } && |
---|
| 1689 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1691 | (eval $ac_try) 2>&5 |
---|
| 1692 | ac_status=$? |
---|
| 1693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1694 | (exit $ac_status); }; }; then |
---|
| 1695 | ac_cv_prog_cxx_g=yes |
---|
| 1696 | else |
---|
| 1697 | echo "$as_me: failed program was:" >&5 |
---|
| 1698 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1699 | |
---|
| 1700 | ac_cv_prog_cxx_g=no |
---|
| 1701 | fi |
---|
| 1702 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 1703 | fi |
---|
| 1704 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 1705 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 1706 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 1707 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 1708 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 1709 | if test "$GXX" = yes; then |
---|
| 1710 | CXXFLAGS="-g -O2" |
---|
| 1711 | else |
---|
| 1712 | CXXFLAGS="-g" |
---|
| 1713 | fi |
---|
| 1714 | else |
---|
| 1715 | if test "$GXX" = yes; then |
---|
| 1716 | CXXFLAGS="-O2" |
---|
| 1717 | else |
---|
| 1718 | CXXFLAGS= |
---|
| 1719 | fi |
---|
| 1720 | fi |
---|
| 1721 | for ac_declaration in \ |
---|
| 1722 | ''\ |
---|
| 1723 | '#include <stdlib.h>' \ |
---|
| 1724 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 1725 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 1726 | 'extern "C" void exit (int) throw ();' \ |
---|
| 1727 | 'extern "C" void exit (int);' \ |
---|
| 1728 | 'void exit (int);' |
---|
| 1729 | do |
---|
| 1730 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1731 | #line $LINENO "configure" |
---|
| 1732 | /* confdefs.h. */ |
---|
| 1733 | _ACEOF |
---|
| 1734 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1735 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1736 | /* end confdefs.h. */ |
---|
| 1737 | #include <stdlib.h> |
---|
| 1738 | $ac_declaration |
---|
| 1739 | int |
---|
| 1740 | main () |
---|
| 1741 | { |
---|
| 1742 | exit (42); |
---|
| 1743 | ; |
---|
| 1744 | return 0; |
---|
| 1745 | } |
---|
| 1746 | _ACEOF |
---|
| 1747 | rm -f conftest.$ac_objext |
---|
| 1748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1749 | (eval $ac_compile) 2>&5 |
---|
| 1750 | ac_status=$? |
---|
| 1751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1752 | (exit $ac_status); } && |
---|
| 1753 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1755 | (eval $ac_try) 2>&5 |
---|
| 1756 | ac_status=$? |
---|
| 1757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1758 | (exit $ac_status); }; }; then |
---|
| 1759 | : |
---|
| 1760 | else |
---|
| 1761 | echo "$as_me: failed program was:" >&5 |
---|
| 1762 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1763 | |
---|
| 1764 | continue |
---|
| 1765 | fi |
---|
| 1766 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 1767 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1768 | #line $LINENO "configure" |
---|
| 1769 | /* confdefs.h. */ |
---|
| 1770 | _ACEOF |
---|
| 1771 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1772 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1773 | /* end confdefs.h. */ |
---|
| 1774 | $ac_declaration |
---|
| 1775 | int |
---|
| 1776 | main () |
---|
| 1777 | { |
---|
| 1778 | exit (42); |
---|
| 1779 | ; |
---|
| 1780 | return 0; |
---|
| 1781 | } |
---|
| 1782 | _ACEOF |
---|
| 1783 | rm -f conftest.$ac_objext |
---|
| 1784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1785 | (eval $ac_compile) 2>&5 |
---|
| 1786 | ac_status=$? |
---|
| 1787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1788 | (exit $ac_status); } && |
---|
| 1789 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1791 | (eval $ac_try) 2>&5 |
---|
| 1792 | ac_status=$? |
---|
| 1793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1794 | (exit $ac_status); }; }; then |
---|
| 1795 | break |
---|
| 1796 | else |
---|
| 1797 | echo "$as_me: failed program was:" >&5 |
---|
| 1798 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1799 | |
---|
| 1800 | fi |
---|
| 1801 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 1802 | done |
---|
| 1803 | rm -f conftest* |
---|
| 1804 | if test -n "$ac_declaration"; then |
---|
| 1805 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 1806 | echo $ac_declaration >>confdefs.h |
---|
| 1807 | echo '#endif' >>confdefs.h |
---|
| 1808 | fi |
---|
| 1809 | |
---|
| 1810 | ac_ext=c |
---|
| 1811 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1815 | |
---|
| 1816 | ac_ext=c |
---|
| 1817 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1818 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1819 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1820 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1821 | if test -n "$ac_tool_prefix"; then |
---|
| 1822 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 1823 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 1824 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1826 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1828 | else |
---|
| 1829 | if test -n "$CC"; then |
---|
| 1830 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1831 | else |
---|
| 1832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1833 | for as_dir in $PATH |
---|
| 1834 | do |
---|
| 1835 | IFS=$as_save_IFS |
---|
| 1836 | test -z "$as_dir" && as_dir=. |
---|
| 1837 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1839 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 1840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1841 | break 2 |
---|
| 1842 | fi |
---|
| 1843 | done |
---|
| 1844 | done |
---|
| 1845 | |
---|
| 1846 | fi |
---|
| 1847 | fi |
---|
| 1848 | CC=$ac_cv_prog_CC |
---|
| 1849 | if test -n "$CC"; then |
---|
| 1850 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1851 | echo "${ECHO_T}$CC" >&6 |
---|
| 1852 | else |
---|
| 1853 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1854 | echo "${ECHO_T}no" >&6 |
---|
| 1855 | fi |
---|
| 1856 | |
---|
| 1857 | fi |
---|
| 1858 | if test -z "$ac_cv_prog_CC"; then |
---|
| 1859 | ac_ct_CC=$CC |
---|
| 1860 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 1861 | set dummy gcc; ac_word=$2 |
---|
| 1862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1864 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 1865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1866 | else |
---|
| 1867 | if test -n "$ac_ct_CC"; then |
---|
| 1868 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 1869 | else |
---|
| 1870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1871 | for as_dir in $PATH |
---|
| 1872 | do |
---|
| 1873 | IFS=$as_save_IFS |
---|
| 1874 | test -z "$as_dir" && as_dir=. |
---|
| 1875 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1877 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 1878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1879 | break 2 |
---|
| 1880 | fi |
---|
| 1881 | done |
---|
| 1882 | done |
---|
| 1883 | |
---|
| 1884 | fi |
---|
| 1885 | fi |
---|
| 1886 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 1887 | if test -n "$ac_ct_CC"; then |
---|
| 1888 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 1889 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 1890 | else |
---|
| 1891 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1892 | echo "${ECHO_T}no" >&6 |
---|
| 1893 | fi |
---|
| 1894 | |
---|
| 1895 | CC=$ac_ct_CC |
---|
| 1896 | else |
---|
| 1897 | CC="$ac_cv_prog_CC" |
---|
| 1898 | fi |
---|
| 1899 | |
---|
| 1900 | if test -z "$CC"; then |
---|
| 1901 | if test -n "$ac_tool_prefix"; then |
---|
| 1902 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 1903 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 1904 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1905 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1906 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1908 | else |
---|
| 1909 | if test -n "$CC"; then |
---|
| 1910 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1911 | else |
---|
| 1912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1913 | for as_dir in $PATH |
---|
| 1914 | do |
---|
| 1915 | IFS=$as_save_IFS |
---|
| 1916 | test -z "$as_dir" && as_dir=. |
---|
| 1917 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1918 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1919 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 1920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1921 | break 2 |
---|
| 1922 | fi |
---|
| 1923 | done |
---|
| 1924 | done |
---|
| 1925 | |
---|
| 1926 | fi |
---|
| 1927 | fi |
---|
| 1928 | CC=$ac_cv_prog_CC |
---|
| 1929 | if test -n "$CC"; then |
---|
| 1930 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1931 | echo "${ECHO_T}$CC" >&6 |
---|
| 1932 | else |
---|
| 1933 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1934 | echo "${ECHO_T}no" >&6 |
---|
| 1935 | fi |
---|
| 1936 | |
---|
| 1937 | fi |
---|
| 1938 | if test -z "$ac_cv_prog_CC"; then |
---|
| 1939 | ac_ct_CC=$CC |
---|
| 1940 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 1941 | set dummy cc; ac_word=$2 |
---|
| 1942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1944 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 1945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1946 | else |
---|
| 1947 | if test -n "$ac_ct_CC"; then |
---|
| 1948 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 1949 | else |
---|
| 1950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1951 | for as_dir in $PATH |
---|
| 1952 | do |
---|
| 1953 | IFS=$as_save_IFS |
---|
| 1954 | test -z "$as_dir" && as_dir=. |
---|
| 1955 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1956 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1957 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 1958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1959 | break 2 |
---|
| 1960 | fi |
---|
| 1961 | done |
---|
| 1962 | done |
---|
| 1963 | |
---|
| 1964 | fi |
---|
| 1965 | fi |
---|
| 1966 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 1967 | if test -n "$ac_ct_CC"; then |
---|
| 1968 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 1969 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 1970 | else |
---|
| 1971 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1972 | echo "${ECHO_T}no" >&6 |
---|
| 1973 | fi |
---|
| 1974 | |
---|
| 1975 | CC=$ac_ct_CC |
---|
| 1976 | else |
---|
| 1977 | CC="$ac_cv_prog_CC" |
---|
| 1978 | fi |
---|
| 1979 | |
---|
| 1980 | fi |
---|
| 1981 | if test -z "$CC"; then |
---|
| 1982 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 1983 | set dummy cc; ac_word=$2 |
---|
| 1984 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1986 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1988 | else |
---|
| 1989 | if test -n "$CC"; then |
---|
| 1990 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1991 | else |
---|
| 1992 | ac_prog_rejected=no |
---|
| 1993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1994 | for as_dir in $PATH |
---|
| 1995 | do |
---|
| 1996 | IFS=$as_save_IFS |
---|
| 1997 | test -z "$as_dir" && as_dir=. |
---|
| 1998 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2000 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2001 | ac_prog_rejected=yes |
---|
| 2002 | continue |
---|
| 2003 | fi |
---|
| 2004 | ac_cv_prog_CC="cc" |
---|
| 2005 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2006 | break 2 |
---|
| 2007 | fi |
---|
| 2008 | done |
---|
| 2009 | done |
---|
| 2010 | |
---|
| 2011 | if test $ac_prog_rejected = yes; then |
---|
| 2012 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2013 | set dummy $ac_cv_prog_CC |
---|
| 2014 | shift |
---|
| 2015 | if test $# != 0; then |
---|
| 2016 | # We chose a different compiler from the bogus one. |
---|
| 2017 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2018 | # first if we set CC to just the basename; use the full file name. |
---|
| 2019 | shift |
---|
| 2020 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2021 | fi |
---|
| 2022 | fi |
---|
| 2023 | fi |
---|
| 2024 | fi |
---|
| 2025 | CC=$ac_cv_prog_CC |
---|
| 2026 | if test -n "$CC"; then |
---|
| 2027 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2028 | echo "${ECHO_T}$CC" >&6 |
---|
| 2029 | else |
---|
| 2030 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2031 | echo "${ECHO_T}no" >&6 |
---|
| 2032 | fi |
---|
| 2033 | |
---|
| 2034 | fi |
---|
| 2035 | if test -z "$CC"; then |
---|
| 2036 | if test -n "$ac_tool_prefix"; then |
---|
| 2037 | for ac_prog in cl |
---|
| 2038 | do |
---|
| 2039 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2040 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2043 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2045 | else |
---|
| 2046 | if test -n "$CC"; then |
---|
| 2047 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2048 | else |
---|
| 2049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2050 | for as_dir in $PATH |
---|
| 2051 | do |
---|
| 2052 | IFS=$as_save_IFS |
---|
| 2053 | test -z "$as_dir" && as_dir=. |
---|
| 2054 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2055 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2056 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2058 | break 2 |
---|
| 2059 | fi |
---|
| 2060 | done |
---|
| 2061 | done |
---|
| 2062 | |
---|
| 2063 | fi |
---|
| 2064 | fi |
---|
| 2065 | CC=$ac_cv_prog_CC |
---|
| 2066 | if test -n "$CC"; then |
---|
| 2067 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2068 | echo "${ECHO_T}$CC" >&6 |
---|
| 2069 | else |
---|
| 2070 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2071 | echo "${ECHO_T}no" >&6 |
---|
| 2072 | fi |
---|
| 2073 | |
---|
| 2074 | test -n "$CC" && break |
---|
| 2075 | done |
---|
| 2076 | fi |
---|
| 2077 | if test -z "$CC"; then |
---|
| 2078 | ac_ct_CC=$CC |
---|
| 2079 | for ac_prog in cl |
---|
| 2080 | do |
---|
| 2081 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2082 | set dummy $ac_prog; ac_word=$2 |
---|
| 2083 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2084 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2085 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2087 | else |
---|
| 2088 | if test -n "$ac_ct_CC"; then |
---|
| 2089 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2090 | else |
---|
| 2091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2092 | for as_dir in $PATH |
---|
| 2093 | do |
---|
| 2094 | IFS=$as_save_IFS |
---|
| 2095 | test -z "$as_dir" && as_dir=. |
---|
| 2096 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2097 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2098 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2099 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2100 | break 2 |
---|
| 2101 | fi |
---|
| 2102 | done |
---|
| 2103 | done |
---|
| 2104 | |
---|
| 2105 | fi |
---|
| 2106 | fi |
---|
| 2107 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2108 | if test -n "$ac_ct_CC"; then |
---|
| 2109 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2110 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2111 | else |
---|
| 2112 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2113 | echo "${ECHO_T}no" >&6 |
---|
| 2114 | fi |
---|
| 2115 | |
---|
| 2116 | test -n "$ac_ct_CC" && break |
---|
| 2117 | done |
---|
| 2118 | |
---|
| 2119 | CC=$ac_ct_CC |
---|
| 2120 | fi |
---|
| 2121 | |
---|
| 2122 | fi |
---|
| 2123 | |
---|
| 2124 | |
---|
| 2125 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2126 | See \`config.log' for more details." >&5 |
---|
| 2127 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2128 | See \`config.log' for more details." >&2;} |
---|
| 2129 | { (exit 1); exit 1; }; } |
---|
| 2130 | |
---|
| 2131 | # Provide some information about the compiler. |
---|
| 2132 | echo "$as_me:$LINENO:" \ |
---|
| 2133 | "checking for C compiler version" >&5 |
---|
| 2134 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2135 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2136 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2137 | ac_status=$? |
---|
| 2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2139 | (exit $ac_status); } |
---|
| 2140 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2141 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2142 | ac_status=$? |
---|
| 2143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2144 | (exit $ac_status); } |
---|
| 2145 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2146 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2147 | ac_status=$? |
---|
| 2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2149 | (exit $ac_status); } |
---|
| 2150 | |
---|
| 2151 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2152 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2153 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2155 | else |
---|
| 2156 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2157 | #line $LINENO "configure" |
---|
| 2158 | /* confdefs.h. */ |
---|
| 2159 | _ACEOF |
---|
| 2160 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2161 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2162 | /* end confdefs.h. */ |
---|
| 2163 | |
---|
| 2164 | int |
---|
| 2165 | main () |
---|
| 2166 | { |
---|
| 2167 | #ifndef __GNUC__ |
---|
| 2168 | choke me |
---|
| 2169 | #endif |
---|
| 2170 | |
---|
| 2171 | ; |
---|
| 2172 | return 0; |
---|
| 2173 | } |
---|
| 2174 | _ACEOF |
---|
| 2175 | rm -f conftest.$ac_objext |
---|
| 2176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2177 | (eval $ac_compile) 2>&5 |
---|
| 2178 | ac_status=$? |
---|
| 2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2180 | (exit $ac_status); } && |
---|
| 2181 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2183 | (eval $ac_try) 2>&5 |
---|
| 2184 | ac_status=$? |
---|
| 2185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2186 | (exit $ac_status); }; }; then |
---|
| 2187 | ac_compiler_gnu=yes |
---|
| 2188 | else |
---|
| 2189 | echo "$as_me: failed program was:" >&5 |
---|
| 2190 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2191 | |
---|
| 2192 | ac_compiler_gnu=no |
---|
| 2193 | fi |
---|
| 2194 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 2195 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2196 | |
---|
| 2197 | fi |
---|
| 2198 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2199 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2200 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2201 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2202 | ac_save_CFLAGS=$CFLAGS |
---|
| 2203 | CFLAGS="-g" |
---|
| 2204 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2205 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2206 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2208 | else |
---|
| 2209 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2210 | #line $LINENO "configure" |
---|
| 2211 | /* confdefs.h. */ |
---|
| 2212 | _ACEOF |
---|
| 2213 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2214 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2215 | /* end confdefs.h. */ |
---|
| 2216 | |
---|
| 2217 | int |
---|
| 2218 | main () |
---|
| 2219 | { |
---|
| 2220 | |
---|
| 2221 | ; |
---|
| 2222 | return 0; |
---|
| 2223 | } |
---|
| 2224 | _ACEOF |
---|
| 2225 | rm -f conftest.$ac_objext |
---|
| 2226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2227 | (eval $ac_compile) 2>&5 |
---|
| 2228 | ac_status=$? |
---|
| 2229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2230 | (exit $ac_status); } && |
---|
| 2231 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2233 | (eval $ac_try) 2>&5 |
---|
| 2234 | ac_status=$? |
---|
| 2235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2236 | (exit $ac_status); }; }; then |
---|
| 2237 | ac_cv_prog_cc_g=yes |
---|
| 2238 | else |
---|
| 2239 | echo "$as_me: failed program was:" >&5 |
---|
| 2240 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2241 | |
---|
| 2242 | ac_cv_prog_cc_g=no |
---|
| 2243 | fi |
---|
| 2244 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 2245 | fi |
---|
| 2246 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 2247 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 2248 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2249 | CFLAGS=$ac_save_CFLAGS |
---|
| 2250 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2251 | if test "$GCC" = yes; then |
---|
| 2252 | CFLAGS="-g -O2" |
---|
| 2253 | else |
---|
| 2254 | CFLAGS="-g" |
---|
| 2255 | fi |
---|
| 2256 | else |
---|
| 2257 | if test "$GCC" = yes; then |
---|
| 2258 | CFLAGS="-O2" |
---|
| 2259 | else |
---|
| 2260 | CFLAGS= |
---|
| 2261 | fi |
---|
| 2262 | fi |
---|
| 2263 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 2264 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 2265 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 2266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2267 | else |
---|
| 2268 | ac_cv_prog_cc_stdc=no |
---|
| 2269 | ac_save_CC=$CC |
---|
| 2270 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2271 | #line $LINENO "configure" |
---|
| 2272 | /* confdefs.h. */ |
---|
| 2273 | _ACEOF |
---|
| 2274 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2275 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2276 | /* end confdefs.h. */ |
---|
| 2277 | #include <stdarg.h> |
---|
| 2278 | #include <stdio.h> |
---|
| 2279 | #include <sys/types.h> |
---|
| 2280 | #include <sys/stat.h> |
---|
| 2281 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 2282 | struct buf { int x; }; |
---|
| 2283 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 2284 | static char *e (p, i) |
---|
| 2285 | char **p; |
---|
| 2286 | int i; |
---|
| 2287 | { |
---|
| 2288 | return p[i]; |
---|
| 2289 | } |
---|
| 2290 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 2291 | { |
---|
| 2292 | char *s; |
---|
| 2293 | va_list v; |
---|
| 2294 | va_start (v,p); |
---|
| 2295 | s = g (p, va_arg (v,int)); |
---|
| 2296 | va_end (v); |
---|
| 2297 | return s; |
---|
| 2298 | } |
---|
| 2299 | int test (int i, double x); |
---|
| 2300 | struct s1 {int (*f) (int a);}; |
---|
| 2301 | struct s2 {int (*f) (double a);}; |
---|
| 2302 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 2303 | int argc; |
---|
| 2304 | char **argv; |
---|
| 2305 | int |
---|
| 2306 | main () |
---|
| 2307 | { |
---|
| 2308 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 2309 | ; |
---|
| 2310 | return 0; |
---|
| 2311 | } |
---|
| 2312 | _ACEOF |
---|
| 2313 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 2314 | # breaks some systems' header files. |
---|
| 2315 | # AIX -qlanglvl=ansi |
---|
| 2316 | # Ultrix and OSF/1 -std1 |
---|
| 2317 | # HP-UX 10.20 and later -Ae |
---|
| 2318 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 2319 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 2320 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 2321 | do |
---|
| 2322 | CC="$ac_save_CC $ac_arg" |
---|
| 2323 | rm -f conftest.$ac_objext |
---|
| 2324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2325 | (eval $ac_compile) 2>&5 |
---|
| 2326 | ac_status=$? |
---|
| 2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2328 | (exit $ac_status); } && |
---|
| 2329 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2331 | (eval $ac_try) 2>&5 |
---|
| 2332 | ac_status=$? |
---|
| 2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2334 | (exit $ac_status); }; }; then |
---|
| 2335 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 2336 | break |
---|
| 2337 | else |
---|
| 2338 | echo "$as_me: failed program was:" >&5 |
---|
| 2339 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2340 | |
---|
| 2341 | fi |
---|
| 2342 | rm -f conftest.$ac_objext |
---|
| 2343 | done |
---|
| 2344 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 2345 | CC=$ac_save_CC |
---|
| 2346 | |
---|
| 2347 | fi |
---|
| 2348 | |
---|
| 2349 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 2350 | x|xno) |
---|
| 2351 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 2352 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 2353 | *) |
---|
| 2354 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 2355 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 2356 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 2357 | esac |
---|
| 2358 | |
---|
| 2359 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 2360 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 2361 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 2362 | # the declaration of exit, since it's the most demanding environment. |
---|
| 2363 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2364 | #ifndef __cplusplus |
---|
| 2365 | choke me |
---|
| 2366 | #endif |
---|
| 2367 | _ACEOF |
---|
| 2368 | rm -f conftest.$ac_objext |
---|
| 2369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2370 | (eval $ac_compile) 2>&5 |
---|
| 2371 | ac_status=$? |
---|
| 2372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2373 | (exit $ac_status); } && |
---|
| 2374 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2376 | (eval $ac_try) 2>&5 |
---|
| 2377 | ac_status=$? |
---|
| 2378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2379 | (exit $ac_status); }; }; then |
---|
| 2380 | for ac_declaration in \ |
---|
| 2381 | ''\ |
---|
| 2382 | '#include <stdlib.h>' \ |
---|
| 2383 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2384 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2385 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2386 | 'extern "C" void exit (int);' \ |
---|
| 2387 | 'void exit (int);' |
---|
| 2388 | do |
---|
| 2389 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2390 | #line $LINENO "configure" |
---|
| 2391 | /* confdefs.h. */ |
---|
| 2392 | _ACEOF |
---|
| 2393 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2394 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2395 | /* end confdefs.h. */ |
---|
| 2396 | #include <stdlib.h> |
---|
| 2397 | $ac_declaration |
---|
| 2398 | int |
---|
| 2399 | main () |
---|
| 2400 | { |
---|
| 2401 | exit (42); |
---|
| 2402 | ; |
---|
| 2403 | return 0; |
---|
| 2404 | } |
---|
| 2405 | _ACEOF |
---|
| 2406 | rm -f conftest.$ac_objext |
---|
| 2407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2408 | (eval $ac_compile) 2>&5 |
---|
| 2409 | ac_status=$? |
---|
| 2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2411 | (exit $ac_status); } && |
---|
| 2412 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2414 | (eval $ac_try) 2>&5 |
---|
| 2415 | ac_status=$? |
---|
| 2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2417 | (exit $ac_status); }; }; then |
---|
| 2418 | : |
---|
| 2419 | else |
---|
| 2420 | echo "$as_me: failed program was:" >&5 |
---|
| 2421 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2422 | |
---|
| 2423 | continue |
---|
| 2424 | fi |
---|
| 2425 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 2426 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2427 | #line $LINENO "configure" |
---|
| 2428 | /* confdefs.h. */ |
---|
| 2429 | _ACEOF |
---|
| 2430 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2431 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2432 | /* end confdefs.h. */ |
---|
| 2433 | $ac_declaration |
---|
| 2434 | int |
---|
| 2435 | main () |
---|
| 2436 | { |
---|
| 2437 | exit (42); |
---|
| 2438 | ; |
---|
| 2439 | return 0; |
---|
| 2440 | } |
---|
| 2441 | _ACEOF |
---|
| 2442 | rm -f conftest.$ac_objext |
---|
| 2443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2444 | (eval $ac_compile) 2>&5 |
---|
| 2445 | ac_status=$? |
---|
| 2446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2447 | (exit $ac_status); } && |
---|
| 2448 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2450 | (eval $ac_try) 2>&5 |
---|
| 2451 | ac_status=$? |
---|
| 2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2453 | (exit $ac_status); }; }; then |
---|
| 2454 | break |
---|
| 2455 | else |
---|
| 2456 | echo "$as_me: failed program was:" >&5 |
---|
| 2457 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2458 | |
---|
| 2459 | fi |
---|
| 2460 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 2461 | done |
---|
| 2462 | rm -f conftest* |
---|
| 2463 | if test -n "$ac_declaration"; then |
---|
| 2464 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2465 | echo $ac_declaration >>confdefs.h |
---|
| 2466 | echo '#endif' >>confdefs.h |
---|
| 2467 | fi |
---|
| 2468 | |
---|
| 2469 | else |
---|
| 2470 | echo "$as_me: failed program was:" >&5 |
---|
| 2471 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2472 | |
---|
| 2473 | fi |
---|
| 2474 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 2475 | ac_ext=c |
---|
| 2476 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2477 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2478 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2479 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2480 | |
---|
| 2481 | ac_ext=c |
---|
| 2482 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2486 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 2487 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 2488 | # On Suns, sometimes $CPP names a directory. |
---|
| 2489 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 2490 | CPP= |
---|
| 2491 | fi |
---|
| 2492 | if test -z "$CPP"; then |
---|
| 2493 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
| 2494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2495 | else |
---|
| 2496 | # Double quotes because CPP needs to be expanded |
---|
| 2497 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 2498 | do |
---|
| 2499 | ac_preproc_ok=false |
---|
| 2500 | for ac_c_preproc_warn_flag in '' yes |
---|
| 2501 | do |
---|
| 2502 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 2503 | # with a fresh cross-compiler works. |
---|
| 2504 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 2505 | # <limits.h> exists even on freestanding compilers. |
---|
| 2506 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 2507 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 2508 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2509 | #line $LINENO "configure" |
---|
| 2510 | /* confdefs.h. */ |
---|
| 2511 | _ACEOF |
---|
| 2512 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2513 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2514 | /* end confdefs.h. */ |
---|
| 2515 | #ifdef __STDC__ |
---|
| 2516 | # include <limits.h> |
---|
| 2517 | #else |
---|
| 2518 | # include <assert.h> |
---|
| 2519 | #endif |
---|
| 2520 | Syntax error |
---|
| 2521 | _ACEOF |
---|
| 2522 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 2523 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 2524 | ac_status=$? |
---|
| 2525 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2526 | rm -f conftest.er1 |
---|
| 2527 | cat conftest.err >&5 |
---|
| 2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2529 | (exit $ac_status); } >/dev/null; then |
---|
| 2530 | if test -s conftest.err; then |
---|
| 2531 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 2532 | else |
---|
| 2533 | ac_cpp_err= |
---|
| 2534 | fi |
---|
| 2535 | else |
---|
| 2536 | ac_cpp_err=yes |
---|
| 2537 | fi |
---|
| 2538 | if test -z "$ac_cpp_err"; then |
---|
| 2539 | : |
---|
| 2540 | else |
---|
| 2541 | echo "$as_me: failed program was:" >&5 |
---|
| 2542 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2543 | |
---|
| 2544 | # Broken: fails on valid input. |
---|
| 2545 | continue |
---|
| 2546 | fi |
---|
| 2547 | rm -f conftest.err conftest.$ac_ext |
---|
| 2548 | |
---|
| 2549 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 2550 | # can be detected and how. |
---|
| 2551 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2552 | #line $LINENO "configure" |
---|
| 2553 | /* confdefs.h. */ |
---|
| 2554 | _ACEOF |
---|
| 2555 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2556 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2557 | /* end confdefs.h. */ |
---|
| 2558 | #include <ac_nonexistent.h> |
---|
| 2559 | _ACEOF |
---|
| 2560 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 2561 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 2562 | ac_status=$? |
---|
| 2563 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2564 | rm -f conftest.er1 |
---|
| 2565 | cat conftest.err >&5 |
---|
| 2566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2567 | (exit $ac_status); } >/dev/null; then |
---|
| 2568 | if test -s conftest.err; then |
---|
| 2569 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 2570 | else |
---|
| 2571 | ac_cpp_err= |
---|
| 2572 | fi |
---|
| 2573 | else |
---|
| 2574 | ac_cpp_err=yes |
---|
| 2575 | fi |
---|
| 2576 | if test -z "$ac_cpp_err"; then |
---|
| 2577 | # Broken: success on invalid input. |
---|
| 2578 | continue |
---|
| 2579 | else |
---|
| 2580 | echo "$as_me: failed program was:" >&5 |
---|
| 2581 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2582 | |
---|
| 2583 | # Passes both tests. |
---|
| 2584 | ac_preproc_ok=: |
---|
| 2585 | break |
---|
| 2586 | fi |
---|
| 2587 | rm -f conftest.err conftest.$ac_ext |
---|
| 2588 | |
---|
| 2589 | done |
---|
| 2590 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 2591 | rm -f conftest.err conftest.$ac_ext |
---|
| 2592 | if $ac_preproc_ok; then |
---|
| 2593 | break |
---|
| 2594 | fi |
---|
| 2595 | |
---|
| 2596 | done |
---|
| 2597 | ac_cv_prog_CPP=$CPP |
---|
| 2598 | |
---|
| 2599 | fi |
---|
| 2600 | CPP=$ac_cv_prog_CPP |
---|
| 2601 | else |
---|
| 2602 | ac_cv_prog_CPP=$CPP |
---|
| 2603 | fi |
---|
| 2604 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 2605 | echo "${ECHO_T}$CPP" >&6 |
---|
| 2606 | ac_preproc_ok=false |
---|
| 2607 | for ac_c_preproc_warn_flag in '' yes |
---|
| 2608 | do |
---|
| 2609 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 2610 | # with a fresh cross-compiler works. |
---|
| 2611 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 2612 | # <limits.h> exists even on freestanding compilers. |
---|
| 2613 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 2614 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 2615 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2616 | #line $LINENO "configure" |
---|
| 2617 | /* confdefs.h. */ |
---|
| 2618 | _ACEOF |
---|
| 2619 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2620 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2621 | /* end confdefs.h. */ |
---|
| 2622 | #ifdef __STDC__ |
---|
| 2623 | # include <limits.h> |
---|
| 2624 | #else |
---|
| 2625 | # include <assert.h> |
---|
| 2626 | #endif |
---|
| 2627 | Syntax error |
---|
| 2628 | _ACEOF |
---|
| 2629 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 2630 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 2631 | ac_status=$? |
---|
| 2632 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2633 | rm -f conftest.er1 |
---|
| 2634 | cat conftest.err >&5 |
---|
| 2635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2636 | (exit $ac_status); } >/dev/null; then |
---|
| 2637 | if test -s conftest.err; then |
---|
| 2638 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 2639 | else |
---|
| 2640 | ac_cpp_err= |
---|
| 2641 | fi |
---|
| 2642 | else |
---|
| 2643 | ac_cpp_err=yes |
---|
| 2644 | fi |
---|
| 2645 | if test -z "$ac_cpp_err"; then |
---|
| 2646 | : |
---|
| 2647 | else |
---|
| 2648 | echo "$as_me: failed program was:" >&5 |
---|
| 2649 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2650 | |
---|
| 2651 | # Broken: fails on valid input. |
---|
| 2652 | continue |
---|
| 2653 | fi |
---|
| 2654 | rm -f conftest.err conftest.$ac_ext |
---|
| 2655 | |
---|
| 2656 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 2657 | # can be detected and how. |
---|
| 2658 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2659 | #line $LINENO "configure" |
---|
| 2660 | /* confdefs.h. */ |
---|
| 2661 | _ACEOF |
---|
| 2662 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2663 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2664 | /* end confdefs.h. */ |
---|
| 2665 | #include <ac_nonexistent.h> |
---|
| 2666 | _ACEOF |
---|
| 2667 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 2668 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 2669 | ac_status=$? |
---|
| 2670 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2671 | rm -f conftest.er1 |
---|
| 2672 | cat conftest.err >&5 |
---|
| 2673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2674 | (exit $ac_status); } >/dev/null; then |
---|
| 2675 | if test -s conftest.err; then |
---|
| 2676 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 2677 | else |
---|
| 2678 | ac_cpp_err= |
---|
| 2679 | fi |
---|
| 2680 | else |
---|
| 2681 | ac_cpp_err=yes |
---|
| 2682 | fi |
---|
| 2683 | if test -z "$ac_cpp_err"; then |
---|
| 2684 | # Broken: success on invalid input. |
---|
| 2685 | continue |
---|
| 2686 | else |
---|
| 2687 | echo "$as_me: failed program was:" >&5 |
---|
| 2688 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2689 | |
---|
| 2690 | # Passes both tests. |
---|
| 2691 | ac_preproc_ok=: |
---|
| 2692 | break |
---|
| 2693 | fi |
---|
| 2694 | rm -f conftest.err conftest.$ac_ext |
---|
| 2695 | |
---|
| 2696 | done |
---|
| 2697 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 2698 | rm -f conftest.err conftest.$ac_ext |
---|
| 2699 | if $ac_preproc_ok; then |
---|
| 2700 | : |
---|
| 2701 | else |
---|
| 2702 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 2703 | See \`config.log' for more details." >&5 |
---|
| 2704 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 2705 | See \`config.log' for more details." >&2;} |
---|
| 2706 | { (exit 1); exit 1; }; } |
---|
| 2707 | fi |
---|
| 2708 | |
---|
| 2709 | ac_ext=c |
---|
| 2710 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2711 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2712 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2713 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2714 | |
---|
| 2715 | |
---|
| 2716 | # Checks for libraries. |
---|
| 2717 | |
---|
| 2718 | |
---|
| 2719 | echo "$as_me:$LINENO: checking for gerror_ in -lg2c" >&5 |
---|
| 2720 | echo $ECHO_N "checking for gerror_ in -lg2c... $ECHO_C" >&6 |
---|
| 2721 | if test "${ac_cv_lib_g2c_gerror_+set}" = set; then |
---|
| 2722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2723 | else |
---|
| 2724 | ac_check_lib_save_LIBS=$LIBS |
---|
| 2725 | LIBS="-lg2c $LIBS" |
---|
| 2726 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2727 | #line $LINENO "configure" |
---|
| 2728 | /* confdefs.h. */ |
---|
| 2729 | _ACEOF |
---|
| 2730 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2731 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2732 | /* end confdefs.h. */ |
---|
| 2733 | |
---|
| 2734 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 2735 | #ifdef __cplusplus |
---|
| 2736 | extern "C" |
---|
| 2737 | #endif |
---|
| 2738 | /* We use char because int might match the return type of a gcc2 |
---|
| 2739 | builtin and then its argument prototype would still apply. */ |
---|
| 2740 | char gerror_ (); |
---|
| 2741 | int |
---|
| 2742 | main () |
---|
| 2743 | { |
---|
| 2744 | gerror_ (); |
---|
| 2745 | ; |
---|
| 2746 | return 0; |
---|
| 2747 | } |
---|
| 2748 | _ACEOF |
---|
| 2749 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 2750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2751 | (eval $ac_link) 2>&5 |
---|
| 2752 | ac_status=$? |
---|
| 2753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2754 | (exit $ac_status); } && |
---|
| 2755 | { ac_try='test -s conftest$ac_exeext' |
---|
| 2756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2757 | (eval $ac_try) 2>&5 |
---|
| 2758 | ac_status=$? |
---|
| 2759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2760 | (exit $ac_status); }; }; then |
---|
| 2761 | ac_cv_lib_g2c_gerror_=yes |
---|
| 2762 | else |
---|
| 2763 | echo "$as_me: failed program was:" >&5 |
---|
| 2764 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2765 | |
---|
| 2766 | ac_cv_lib_g2c_gerror_=no |
---|
| 2767 | fi |
---|
| 2768 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 2769 | LIBS=$ac_check_lib_save_LIBS |
---|
| 2770 | fi |
---|
| 2771 | echo "$as_me:$LINENO: result: $ac_cv_lib_g2c_gerror_" >&5 |
---|
| 2772 | echo "${ECHO_T}$ac_cv_lib_g2c_gerror_" >&6 |
---|
| 2773 | if test $ac_cv_lib_g2c_gerror_ = yes; then |
---|
| 2774 | cat >>confdefs.h <<_ACEOF |
---|
| 2775 | #define HAVE_LIBG2C 1 |
---|
| 2776 | _ACEOF |
---|
| 2777 | |
---|
| 2778 | LIBS="-lg2c $LIBS" |
---|
| 2779 | |
---|
| 2780 | fi |
---|
| 2781 | |
---|
| 2782 | |
---|
| 2783 | echo "$as_me:$LINENO: checking for log in -lm" >&5 |
---|
| 2784 | echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6 |
---|
| 2785 | if test "${ac_cv_lib_m_log+set}" = set; then |
---|
| 2786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2787 | else |
---|
| 2788 | ac_check_lib_save_LIBS=$LIBS |
---|
| 2789 | LIBS="-lm $LIBS" |
---|
| 2790 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2791 | #line $LINENO "configure" |
---|
| 2792 | /* confdefs.h. */ |
---|
| 2793 | _ACEOF |
---|
| 2794 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2795 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2796 | /* end confdefs.h. */ |
---|
| 2797 | |
---|
| 2798 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 2799 | #ifdef __cplusplus |
---|
| 2800 | extern "C" |
---|
| 2801 | #endif |
---|
| 2802 | /* We use char because int might match the return type of a gcc2 |
---|
| 2803 | builtin and then its argument prototype would still apply. */ |
---|
| 2804 | char log (); |
---|
| 2805 | int |
---|
| 2806 | main () |
---|
| 2807 | { |
---|
| 2808 | log (); |
---|
| 2809 | ; |
---|
| 2810 | return 0; |
---|
| 2811 | } |
---|
| 2812 | _ACEOF |
---|
| 2813 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 2814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2815 | (eval $ac_link) 2>&5 |
---|
| 2816 | ac_status=$? |
---|
| 2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2818 | (exit $ac_status); } && |
---|
| 2819 | { ac_try='test -s conftest$ac_exeext' |
---|
| 2820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2821 | (eval $ac_try) 2>&5 |
---|
| 2822 | ac_status=$? |
---|
| 2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2824 | (exit $ac_status); }; }; then |
---|
| 2825 | ac_cv_lib_m_log=yes |
---|
| 2826 | else |
---|
| 2827 | echo "$as_me: failed program was:" >&5 |
---|
| 2828 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2829 | |
---|
| 2830 | ac_cv_lib_m_log=no |
---|
| 2831 | fi |
---|
| 2832 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 2833 | LIBS=$ac_check_lib_save_LIBS |
---|
| 2834 | fi |
---|
| 2835 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 |
---|
| 2836 | echo "${ECHO_T}$ac_cv_lib_m_log" >&6 |
---|
| 2837 | if test $ac_cv_lib_m_log = yes; then |
---|
| 2838 | cat >>confdefs.h <<_ACEOF |
---|
| 2839 | #define HAVE_LIBM 1 |
---|
| 2840 | _ACEOF |
---|
| 2841 | |
---|
| 2842 | LIBS="-lm $LIBS" |
---|
| 2843 | |
---|
| 2844 | fi |
---|
| 2845 | |
---|
| 2846 | |
---|
| 2847 | # Checks for header files. |
---|
| 2848 | |
---|
| 2849 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 2850 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 2851 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 2852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2853 | else |
---|
| 2854 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 2855 | then ac_cv_prog_egrep='grep -E' |
---|
| 2856 | else ac_cv_prog_egrep='egrep' |
---|
| 2857 | fi |
---|
| 2858 | fi |
---|
| 2859 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 2860 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 2861 | EGREP=$ac_cv_prog_egrep |
---|
| 2862 | |
---|
| 2863 | |
---|
| 2864 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 2865 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 2866 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 2867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2868 | else |
---|
| 2869 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2870 | #line $LINENO "configure" |
---|
| 2871 | /* confdefs.h. */ |
---|
| 2872 | _ACEOF |
---|
| 2873 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2874 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2875 | /* end confdefs.h. */ |
---|
| 2876 | #include <stdlib.h> |
---|
| 2877 | #include <stdarg.h> |
---|
| 2878 | #include <string.h> |
---|
| 2879 | #include <float.h> |
---|
| 2880 | |
---|
| 2881 | int |
---|
| 2882 | main () |
---|
| 2883 | { |
---|
| 2884 | |
---|
| 2885 | ; |
---|
| 2886 | return 0; |
---|
| 2887 | } |
---|
| 2888 | _ACEOF |
---|
| 2889 | rm -f conftest.$ac_objext |
---|
| 2890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2891 | (eval $ac_compile) 2>&5 |
---|
| 2892 | ac_status=$? |
---|
| 2893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2894 | (exit $ac_status); } && |
---|
| 2895 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2897 | (eval $ac_try) 2>&5 |
---|
| 2898 | ac_status=$? |
---|
| 2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2900 | (exit $ac_status); }; }; then |
---|
| 2901 | ac_cv_header_stdc=yes |
---|
| 2902 | else |
---|
| 2903 | echo "$as_me: failed program was:" >&5 |
---|
| 2904 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2905 | |
---|
| 2906 | ac_cv_header_stdc=no |
---|
| 2907 | fi |
---|
| 2908 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 2909 | |
---|
| 2910 | if test $ac_cv_header_stdc = yes; then |
---|
| 2911 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 2912 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2913 | #line $LINENO "configure" |
---|
| 2914 | /* confdefs.h. */ |
---|
| 2915 | _ACEOF |
---|
| 2916 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2917 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2918 | /* end confdefs.h. */ |
---|
| 2919 | #include <string.h> |
---|
| 2920 | |
---|
| 2921 | _ACEOF |
---|
| 2922 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 2923 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 2924 | : |
---|
| 2925 | else |
---|
| 2926 | ac_cv_header_stdc=no |
---|
| 2927 | fi |
---|
| 2928 | rm -f conftest* |
---|
| 2929 | |
---|
| 2930 | fi |
---|
| 2931 | |
---|
| 2932 | if test $ac_cv_header_stdc = yes; then |
---|
| 2933 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 2934 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2935 | #line $LINENO "configure" |
---|
| 2936 | /* confdefs.h. */ |
---|
| 2937 | _ACEOF |
---|
| 2938 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2939 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2940 | /* end confdefs.h. */ |
---|
| 2941 | #include <stdlib.h> |
---|
| 2942 | |
---|
| 2943 | _ACEOF |
---|
| 2944 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 2945 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 2946 | : |
---|
| 2947 | else |
---|
| 2948 | ac_cv_header_stdc=no |
---|
| 2949 | fi |
---|
| 2950 | rm -f conftest* |
---|
| 2951 | |
---|
| 2952 | fi |
---|
| 2953 | |
---|
| 2954 | if test $ac_cv_header_stdc = yes; then |
---|
| 2955 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 2956 | if test "$cross_compiling" = yes; then |
---|
| 2957 | : |
---|
| 2958 | else |
---|
| 2959 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2960 | #line $LINENO "configure" |
---|
| 2961 | /* confdefs.h. */ |
---|
| 2962 | _ACEOF |
---|
| 2963 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2964 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2965 | /* end confdefs.h. */ |
---|
| 2966 | #include <ctype.h> |
---|
| 2967 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 2968 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 2969 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 2970 | #else |
---|
| 2971 | # define ISLOWER(c) \ |
---|
| 2972 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 2973 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 2974 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 2975 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 2976 | #endif |
---|
| 2977 | |
---|
| 2978 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 2979 | int |
---|
| 2980 | main () |
---|
| 2981 | { |
---|
| 2982 | int i; |
---|
| 2983 | for (i = 0; i < 256; i++) |
---|
| 2984 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 2985 | || toupper (i) != TOUPPER (i)) |
---|
| 2986 | exit(2); |
---|
| 2987 | exit (0); |
---|
| 2988 | } |
---|
| 2989 | _ACEOF |
---|
| 2990 | rm -f conftest$ac_exeext |
---|
| 2991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2992 | (eval $ac_link) 2>&5 |
---|
| 2993 | ac_status=$? |
---|
| 2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2995 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 2996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2997 | (eval $ac_try) 2>&5 |
---|
| 2998 | ac_status=$? |
---|
| 2999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3000 | (exit $ac_status); }; }; then |
---|
| 3001 | : |
---|
| 3002 | else |
---|
| 3003 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3004 | echo "$as_me: failed program was:" >&5 |
---|
| 3005 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3006 | |
---|
| 3007 | ( exit $ac_status ) |
---|
| 3008 | ac_cv_header_stdc=no |
---|
| 3009 | fi |
---|
| 3010 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3011 | fi |
---|
| 3012 | fi |
---|
| 3013 | fi |
---|
| 3014 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3015 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3016 | if test $ac_cv_header_stdc = yes; then |
---|
| 3017 | |
---|
| 3018 | cat >>confdefs.h <<\_ACEOF |
---|
| 3019 | #define STDC_HEADERS 1 |
---|
| 3020 | _ACEOF |
---|
| 3021 | |
---|
| 3022 | fi |
---|
| 3023 | |
---|
| 3024 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 3025 | |
---|
| 3026 | |
---|
| 3027 | |
---|
| 3028 | |
---|
| 3029 | |
---|
| 3030 | |
---|
| 3031 | |
---|
| 3032 | |
---|
| 3033 | |
---|
| 3034 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 3035 | inttypes.h stdint.h unistd.h |
---|
| 3036 | do |
---|
| 3037 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3038 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3039 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3040 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3042 | else |
---|
| 3043 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3044 | #line $LINENO "configure" |
---|
| 3045 | /* confdefs.h. */ |
---|
| 3046 | _ACEOF |
---|
| 3047 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3048 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3049 | /* end confdefs.h. */ |
---|
| 3050 | $ac_includes_default |
---|
| 3051 | |
---|
| 3052 | #include <$ac_header> |
---|
| 3053 | _ACEOF |
---|
| 3054 | rm -f conftest.$ac_objext |
---|
| 3055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3056 | (eval $ac_compile) 2>&5 |
---|
| 3057 | ac_status=$? |
---|
| 3058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3059 | (exit $ac_status); } && |
---|
| 3060 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3062 | (eval $ac_try) 2>&5 |
---|
| 3063 | ac_status=$? |
---|
| 3064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3065 | (exit $ac_status); }; }; then |
---|
| 3066 | eval "$as_ac_Header=yes" |
---|
| 3067 | else |
---|
| 3068 | echo "$as_me: failed program was:" >&5 |
---|
| 3069 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3070 | |
---|
| 3071 | eval "$as_ac_Header=no" |
---|
| 3072 | fi |
---|
| 3073 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 3074 | fi |
---|
| 3075 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3076 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3077 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3078 | cat >>confdefs.h <<_ACEOF |
---|
| 3079 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3080 | _ACEOF |
---|
| 3081 | |
---|
| 3082 | fi |
---|
| 3083 | |
---|
| 3084 | done |
---|
| 3085 | |
---|
| 3086 | |
---|
| 3087 | |
---|
| 3088 | |
---|
| 3089 | |
---|
| 3090 | |
---|
| 3091 | |
---|
[215] | 3092 | |
---|
| 3093 | |
---|
| 3094 | |
---|
| 3095 | |
---|
| 3096 | |
---|
| 3097 | |
---|
| 3098 | for ac_header in unistd.h time.h math.h iostream fstream sstream iomanip vector string algorithm functional |
---|
[107] | 3099 | do |
---|
| 3100 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3101 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3102 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3103 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3104 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3106 | fi |
---|
| 3107 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3108 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3109 | else |
---|
| 3110 | # Is the header compilable? |
---|
| 3111 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 3112 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 3113 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3114 | #line $LINENO "configure" |
---|
| 3115 | /* confdefs.h. */ |
---|
| 3116 | _ACEOF |
---|
| 3117 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3118 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3119 | /* end confdefs.h. */ |
---|
| 3120 | $ac_includes_default |
---|
| 3121 | #include <$ac_header> |
---|
| 3122 | _ACEOF |
---|
| 3123 | rm -f conftest.$ac_objext |
---|
| 3124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3125 | (eval $ac_compile) 2>&5 |
---|
| 3126 | ac_status=$? |
---|
| 3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3128 | (exit $ac_status); } && |
---|
| 3129 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3131 | (eval $ac_try) 2>&5 |
---|
| 3132 | ac_status=$? |
---|
| 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3134 | (exit $ac_status); }; }; then |
---|
| 3135 | ac_header_compiler=yes |
---|
| 3136 | else |
---|
| 3137 | echo "$as_me: failed program was:" >&5 |
---|
| 3138 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3139 | |
---|
| 3140 | ac_header_compiler=no |
---|
| 3141 | fi |
---|
| 3142 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 3143 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 3144 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 3145 | |
---|
| 3146 | # Is the header present? |
---|
| 3147 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 3148 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 3149 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3150 | #line $LINENO "configure" |
---|
| 3151 | /* confdefs.h. */ |
---|
| 3152 | _ACEOF |
---|
| 3153 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3154 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3155 | /* end confdefs.h. */ |
---|
| 3156 | #include <$ac_header> |
---|
| 3157 | _ACEOF |
---|
| 3158 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3160 | ac_status=$? |
---|
| 3161 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3162 | rm -f conftest.er1 |
---|
| 3163 | cat conftest.err >&5 |
---|
| 3164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3165 | (exit $ac_status); } >/dev/null; then |
---|
| 3166 | if test -s conftest.err; then |
---|
| 3167 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3168 | else |
---|
| 3169 | ac_cpp_err= |
---|
| 3170 | fi |
---|
| 3171 | else |
---|
| 3172 | ac_cpp_err=yes |
---|
| 3173 | fi |
---|
| 3174 | if test -z "$ac_cpp_err"; then |
---|
| 3175 | ac_header_preproc=yes |
---|
| 3176 | else |
---|
| 3177 | echo "$as_me: failed program was:" >&5 |
---|
| 3178 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3179 | |
---|
| 3180 | ac_header_preproc=no |
---|
| 3181 | fi |
---|
| 3182 | rm -f conftest.err conftest.$ac_ext |
---|
| 3183 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 3184 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 3185 | |
---|
| 3186 | # So? What about this header? |
---|
| 3187 | case $ac_header_compiler:$ac_header_preproc in |
---|
| 3188 | yes:no ) |
---|
| 3189 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 3190 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 3191 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 3192 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 3193 | ( |
---|
| 3194 | cat <<\_ASBOX |
---|
| 3195 | ## ------------------------------------ ## |
---|
| 3196 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 3197 | ## ------------------------------------ ## |
---|
| 3198 | _ASBOX |
---|
| 3199 | ) | |
---|
| 3200 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 3201 | ;; |
---|
| 3202 | no:yes ) |
---|
| 3203 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 3204 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 3205 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 3206 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 3207 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 3208 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 3209 | ( |
---|
| 3210 | cat <<\_ASBOX |
---|
| 3211 | ## ------------------------------------ ## |
---|
| 3212 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 3213 | ## ------------------------------------ ## |
---|
| 3214 | _ASBOX |
---|
| 3215 | ) | |
---|
| 3216 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 3217 | ;; |
---|
| 3218 | esac |
---|
| 3219 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3223 | else |
---|
| 3224 | eval "$as_ac_Header=$ac_header_preproc" |
---|
| 3225 | fi |
---|
| 3226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3228 | |
---|
| 3229 | fi |
---|
| 3230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3231 | cat >>confdefs.h <<_ACEOF |
---|
| 3232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3233 | _ACEOF |
---|
| 3234 | |
---|
| 3235 | fi |
---|
| 3236 | |
---|
| 3237 | done |
---|
| 3238 | |
---|
[168] | 3239 | if test "x$ac_cv_header_stdc" = xno; then |
---|
| 3240 | { { echo "$as_me:$LINENO: error: |
---|
| 3241 | ------------------------------------------------------------------- |
---|
| 3242 | An ANSI standard C library is required to build Duchamp. |
---|
| 3243 | One of the ANSI C header files it requires is missing or unusable. |
---|
[107] | 3244 | |
---|
[168] | 3245 | ERROR: Duchamp configuration failure. |
---|
| 3246 | -------------------------------------------------------------------" >&5 |
---|
| 3247 | echo "$as_me: error: |
---|
| 3248 | ------------------------------------------------------------------- |
---|
| 3249 | An ANSI standard C library is required to build Duchamp. |
---|
| 3250 | One of the ANSI C header files it requires is missing or unusable. |
---|
| 3251 | |
---|
| 3252 | ERROR: Duchamp configuration failure. |
---|
| 3253 | -------------------------------------------------------------------" >&2;} |
---|
| 3254 | { (exit 1); exit 1; }; } |
---|
| 3255 | fi |
---|
| 3256 | |
---|
[107] | 3257 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 3258 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
| 3259 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
| 3260 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
| 3261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3262 | else |
---|
| 3263 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3264 | #line $LINENO "configure" |
---|
| 3265 | /* confdefs.h. */ |
---|
| 3266 | _ACEOF |
---|
| 3267 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3268 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3269 | /* end confdefs.h. */ |
---|
| 3270 | |
---|
| 3271 | #include <stdbool.h> |
---|
| 3272 | #ifndef bool |
---|
| 3273 | # error bool is not defined |
---|
| 3274 | #endif |
---|
| 3275 | #ifndef false |
---|
| 3276 | # error false is not defined |
---|
| 3277 | #endif |
---|
| 3278 | #if false |
---|
| 3279 | # error false is not 0 |
---|
| 3280 | #endif |
---|
| 3281 | #ifndef true |
---|
| 3282 | # error true is not defined |
---|
| 3283 | #endif |
---|
| 3284 | #if true != 1 |
---|
| 3285 | # error true is not 1 |
---|
| 3286 | #endif |
---|
| 3287 | #ifndef __bool_true_false_are_defined |
---|
| 3288 | # error __bool_true_false_are_defined is not defined |
---|
| 3289 | #endif |
---|
| 3290 | |
---|
| 3291 | struct s { _Bool s: 1; _Bool t; } s; |
---|
| 3292 | |
---|
| 3293 | char a[true == 1 ? 1 : -1]; |
---|
| 3294 | char b[false == 0 ? 1 : -1]; |
---|
| 3295 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
| 3296 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
| 3297 | bool e = &s; |
---|
| 3298 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
| 3299 | char g[true]; |
---|
| 3300 | char h[sizeof (_Bool)]; |
---|
| 3301 | char i[sizeof s.t]; |
---|
| 3302 | |
---|
| 3303 | int |
---|
| 3304 | main () |
---|
| 3305 | { |
---|
| 3306 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
| 3307 | ; |
---|
| 3308 | return 0; |
---|
| 3309 | } |
---|
| 3310 | _ACEOF |
---|
| 3311 | rm -f conftest.$ac_objext |
---|
| 3312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3313 | (eval $ac_compile) 2>&5 |
---|
| 3314 | ac_status=$? |
---|
| 3315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3316 | (exit $ac_status); } && |
---|
| 3317 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3319 | (eval $ac_try) 2>&5 |
---|
| 3320 | ac_status=$? |
---|
| 3321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3322 | (exit $ac_status); }; }; then |
---|
| 3323 | ac_cv_header_stdbool_h=yes |
---|
| 3324 | else |
---|
| 3325 | echo "$as_me: failed program was:" >&5 |
---|
| 3326 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3327 | |
---|
| 3328 | ac_cv_header_stdbool_h=no |
---|
| 3329 | fi |
---|
| 3330 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 3331 | fi |
---|
| 3332 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
| 3333 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
| 3334 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
| 3335 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
| 3336 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
| 3337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3338 | else |
---|
| 3339 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3340 | #line $LINENO "configure" |
---|
| 3341 | /* confdefs.h. */ |
---|
| 3342 | _ACEOF |
---|
| 3343 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3344 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3345 | /* end confdefs.h. */ |
---|
| 3346 | $ac_includes_default |
---|
| 3347 | int |
---|
| 3348 | main () |
---|
| 3349 | { |
---|
| 3350 | if ((_Bool *) 0) |
---|
| 3351 | return 0; |
---|
| 3352 | if (sizeof (_Bool)) |
---|
| 3353 | return 0; |
---|
| 3354 | ; |
---|
| 3355 | return 0; |
---|
| 3356 | } |
---|
| 3357 | _ACEOF |
---|
| 3358 | rm -f conftest.$ac_objext |
---|
| 3359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3360 | (eval $ac_compile) 2>&5 |
---|
| 3361 | ac_status=$? |
---|
| 3362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3363 | (exit $ac_status); } && |
---|
| 3364 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3366 | (eval $ac_try) 2>&5 |
---|
| 3367 | ac_status=$? |
---|
| 3368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3369 | (exit $ac_status); }; }; then |
---|
| 3370 | ac_cv_type__Bool=yes |
---|
| 3371 | else |
---|
| 3372 | echo "$as_me: failed program was:" >&5 |
---|
| 3373 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3374 | |
---|
| 3375 | ac_cv_type__Bool=no |
---|
| 3376 | fi |
---|
| 3377 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 3378 | fi |
---|
| 3379 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
| 3380 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
| 3381 | if test $ac_cv_type__Bool = yes; then |
---|
| 3382 | |
---|
| 3383 | cat >>confdefs.h <<_ACEOF |
---|
| 3384 | #define HAVE__BOOL 1 |
---|
| 3385 | _ACEOF |
---|
| 3386 | |
---|
| 3387 | |
---|
| 3388 | fi |
---|
| 3389 | |
---|
| 3390 | if test $ac_cv_header_stdbool_h = yes; then |
---|
| 3391 | |
---|
| 3392 | cat >>confdefs.h <<\_ACEOF |
---|
| 3393 | #define HAVE_STDBOOL_H 1 |
---|
| 3394 | _ACEOF |
---|
| 3395 | |
---|
| 3396 | fi |
---|
| 3397 | |
---|
| 3398 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
| 3399 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
---|
| 3400 | if test "${ac_cv_c_const+set}" = set; then |
---|
| 3401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3402 | else |
---|
| 3403 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3404 | #line $LINENO "configure" |
---|
| 3405 | /* confdefs.h. */ |
---|
| 3406 | _ACEOF |
---|
| 3407 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3408 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3409 | /* end confdefs.h. */ |
---|
| 3410 | |
---|
| 3411 | int |
---|
| 3412 | main () |
---|
| 3413 | { |
---|
| 3414 | /* FIXME: Include the comments suggested by Paul. */ |
---|
| 3415 | #ifndef __cplusplus |
---|
| 3416 | /* Ultrix mips cc rejects this. */ |
---|
| 3417 | typedef int charset[2]; |
---|
| 3418 | const charset x; |
---|
| 3419 | /* SunOS 4.1.1 cc rejects this. */ |
---|
| 3420 | char const *const *ccp; |
---|
| 3421 | char **p; |
---|
| 3422 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
| 3423 | struct point {int x, y;}; |
---|
| 3424 | static struct point const zero = {0,0}; |
---|
| 3425 | /* AIX XL C 1.02.0.0 rejects this. |
---|
| 3426 | It does not let you subtract one const X* pointer from another in |
---|
| 3427 | an arm of an if-expression whose if-part is not a constant |
---|
| 3428 | expression */ |
---|
| 3429 | const char *g = "string"; |
---|
| 3430 | ccp = &g + (g ? g-g : 0); |
---|
| 3431 | /* HPUX 7.0 cc rejects these. */ |
---|
| 3432 | ++ccp; |
---|
| 3433 | p = (char**) ccp; |
---|
| 3434 | ccp = (char const *const *) p; |
---|
| 3435 | { /* SCO 3.2v4 cc rejects this. */ |
---|
| 3436 | char *t; |
---|
| 3437 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
| 3438 | |
---|
| 3439 | *t++ = 0; |
---|
| 3440 | } |
---|
| 3441 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
| 3442 | int x[] = {25, 17}; |
---|
| 3443 | const int *foo = &x[0]; |
---|
| 3444 | ++foo; |
---|
| 3445 | } |
---|
| 3446 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
| 3447 | typedef const int *iptr; |
---|
| 3448 | iptr p = 0; |
---|
| 3449 | ++p; |
---|
| 3450 | } |
---|
| 3451 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
| 3452 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
| 3453 | struct s { int j; const int *ap[3]; }; |
---|
| 3454 | struct s *b; b->j = 5; |
---|
| 3455 | } |
---|
| 3456 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
| 3457 | const int foo = 10; |
---|
| 3458 | } |
---|
| 3459 | #endif |
---|
| 3460 | |
---|
| 3461 | ; |
---|
| 3462 | return 0; |
---|
| 3463 | } |
---|
| 3464 | _ACEOF |
---|
| 3465 | rm -f conftest.$ac_objext |
---|
| 3466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3467 | (eval $ac_compile) 2>&5 |
---|
| 3468 | ac_status=$? |
---|
| 3469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3470 | (exit $ac_status); } && |
---|
| 3471 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3473 | (eval $ac_try) 2>&5 |
---|
| 3474 | ac_status=$? |
---|
| 3475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3476 | (exit $ac_status); }; }; then |
---|
| 3477 | ac_cv_c_const=yes |
---|
| 3478 | else |
---|
| 3479 | echo "$as_me: failed program was:" >&5 |
---|
| 3480 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3481 | |
---|
| 3482 | ac_cv_c_const=no |
---|
| 3483 | fi |
---|
| 3484 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 3485 | fi |
---|
| 3486 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
| 3487 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
---|
| 3488 | if test $ac_cv_c_const = no; then |
---|
| 3489 | |
---|
| 3490 | cat >>confdefs.h <<\_ACEOF |
---|
| 3491 | #define const |
---|
| 3492 | _ACEOF |
---|
| 3493 | |
---|
| 3494 | fi |
---|
| 3495 | |
---|
| 3496 | echo "$as_me:$LINENO: checking for inline" >&5 |
---|
| 3497 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
---|
| 3498 | if test "${ac_cv_c_inline+set}" = set; then |
---|
| 3499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3500 | else |
---|
| 3501 | ac_cv_c_inline=no |
---|
| 3502 | for ac_kw in inline __inline__ __inline; do |
---|
| 3503 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3504 | #line $LINENO "configure" |
---|
| 3505 | /* confdefs.h. */ |
---|
| 3506 | _ACEOF |
---|
| 3507 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3508 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3509 | /* end confdefs.h. */ |
---|
| 3510 | #ifndef __cplusplus |
---|
| 3511 | typedef int foo_t; |
---|
| 3512 | static $ac_kw foo_t static_foo () {return 0; } |
---|
| 3513 | $ac_kw foo_t foo () {return 0; } |
---|
| 3514 | #endif |
---|
| 3515 | |
---|
| 3516 | _ACEOF |
---|
| 3517 | rm -f conftest.$ac_objext |
---|
| 3518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3519 | (eval $ac_compile) 2>&5 |
---|
| 3520 | ac_status=$? |
---|
| 3521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3522 | (exit $ac_status); } && |
---|
| 3523 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3525 | (eval $ac_try) 2>&5 |
---|
| 3526 | ac_status=$? |
---|
| 3527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3528 | (exit $ac_status); }; }; then |
---|
| 3529 | ac_cv_c_inline=$ac_kw; break |
---|
| 3530 | else |
---|
| 3531 | echo "$as_me: failed program was:" >&5 |
---|
| 3532 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3533 | |
---|
| 3534 | fi |
---|
| 3535 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 3536 | done |
---|
| 3537 | |
---|
| 3538 | fi |
---|
| 3539 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
---|
| 3540 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
---|
| 3541 | case $ac_cv_c_inline in |
---|
| 3542 | inline | yes) ;; |
---|
| 3543 | no) |
---|
| 3544 | cat >>confdefs.h <<\_ACEOF |
---|
| 3545 | #define inline |
---|
| 3546 | _ACEOF |
---|
| 3547 | ;; |
---|
| 3548 | *) cat >>confdefs.h <<_ACEOF |
---|
| 3549 | #define inline $ac_cv_c_inline |
---|
| 3550 | _ACEOF |
---|
| 3551 | ;; |
---|
| 3552 | esac |
---|
| 3553 | |
---|
| 3554 | |
---|
[168] | 3555 | # Utilities. |
---|
| 3556 | if test -n "$ac_tool_prefix"; then |
---|
| 3557 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 3558 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 3559 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 3561 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
| 3562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3563 | else |
---|
| 3564 | if test -n "$RANLIB"; then |
---|
| 3565 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 3566 | else |
---|
| 3567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3568 | for as_dir in $PATH |
---|
| 3569 | do |
---|
| 3570 | IFS=$as_save_IFS |
---|
| 3571 | test -z "$as_dir" && as_dir=. |
---|
| 3572 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3573 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3574 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 3575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3576 | break 2 |
---|
| 3577 | fi |
---|
| 3578 | done |
---|
| 3579 | done |
---|
| 3580 | |
---|
| 3581 | fi |
---|
| 3582 | fi |
---|
| 3583 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 3584 | if test -n "$RANLIB"; then |
---|
| 3585 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
| 3586 | echo "${ECHO_T}$RANLIB" >&6 |
---|
| 3587 | else |
---|
| 3588 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3589 | echo "${ECHO_T}no" >&6 |
---|
| 3590 | fi |
---|
| 3591 | |
---|
| 3592 | fi |
---|
| 3593 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 3594 | ac_ct_RANLIB=$RANLIB |
---|
| 3595 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 3596 | set dummy ranlib; ac_word=$2 |
---|
| 3597 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 3599 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
| 3600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3601 | else |
---|
| 3602 | if test -n "$ac_ct_RANLIB"; then |
---|
| 3603 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 3604 | else |
---|
| 3605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3606 | for as_dir in $PATH |
---|
| 3607 | do |
---|
| 3608 | IFS=$as_save_IFS |
---|
| 3609 | test -z "$as_dir" && as_dir=. |
---|
| 3610 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3611 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3612 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 3613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3614 | break 2 |
---|
| 3615 | fi |
---|
| 3616 | done |
---|
| 3617 | done |
---|
| 3618 | |
---|
| 3619 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
| 3620 | fi |
---|
| 3621 | fi |
---|
| 3622 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 3623 | if test -n "$ac_ct_RANLIB"; then |
---|
| 3624 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
| 3625 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
| 3626 | else |
---|
| 3627 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3628 | echo "${ECHO_T}no" >&6 |
---|
| 3629 | fi |
---|
| 3630 | |
---|
| 3631 | RANLIB=$ac_ct_RANLIB |
---|
| 3632 | else |
---|
| 3633 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 3634 | fi |
---|
| 3635 | |
---|
| 3636 | |
---|
[107] | 3637 | # Checks for library functions. |
---|
| 3638 | echo "$as_me:$LINENO: checking for working strtod" >&5 |
---|
| 3639 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6 |
---|
| 3640 | if test "${ac_cv_func_strtod+set}" = set; then |
---|
| 3641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3642 | else |
---|
| 3643 | if test "$cross_compiling" = yes; then |
---|
| 3644 | ac_cv_func_strtod=no |
---|
| 3645 | else |
---|
| 3646 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3647 | #line $LINENO "configure" |
---|
| 3648 | /* confdefs.h. */ |
---|
| 3649 | _ACEOF |
---|
| 3650 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3651 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3652 | /* end confdefs.h. */ |
---|
| 3653 | |
---|
| 3654 | double strtod (); |
---|
| 3655 | int |
---|
| 3656 | main() |
---|
| 3657 | { |
---|
| 3658 | { |
---|
| 3659 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
---|
| 3660 | char *string = " +69"; |
---|
| 3661 | char *term; |
---|
| 3662 | double value; |
---|
| 3663 | value = strtod (string, &term); |
---|
| 3664 | if (value != 69 || term != (string + 4)) |
---|
| 3665 | exit (1); |
---|
| 3666 | } |
---|
| 3667 | |
---|
| 3668 | { |
---|
| 3669 | /* Under Solaris 2.4, strtod returns the wrong value for the |
---|
| 3670 | terminating character under some conditions. */ |
---|
| 3671 | char *string = "NaN"; |
---|
| 3672 | char *term; |
---|
| 3673 | strtod (string, &term); |
---|
| 3674 | if (term != string && *(term - 1) == 0) |
---|
| 3675 | exit (1); |
---|
| 3676 | } |
---|
| 3677 | exit (0); |
---|
| 3678 | } |
---|
| 3679 | |
---|
| 3680 | _ACEOF |
---|
| 3681 | rm -f conftest$ac_exeext |
---|
| 3682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3683 | (eval $ac_link) 2>&5 |
---|
| 3684 | ac_status=$? |
---|
| 3685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3686 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3688 | (eval $ac_try) 2>&5 |
---|
| 3689 | ac_status=$? |
---|
| 3690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3691 | (exit $ac_status); }; }; then |
---|
| 3692 | ac_cv_func_strtod=yes |
---|
| 3693 | else |
---|
| 3694 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3695 | echo "$as_me: failed program was:" >&5 |
---|
| 3696 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3697 | |
---|
| 3698 | ( exit $ac_status ) |
---|
| 3699 | ac_cv_func_strtod=no |
---|
| 3700 | fi |
---|
| 3701 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3702 | fi |
---|
| 3703 | fi |
---|
| 3704 | echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
---|
| 3705 | echo "${ECHO_T}$ac_cv_func_strtod" >&6 |
---|
| 3706 | if test $ac_cv_func_strtod = no; then |
---|
| 3707 | LIBOBJS="$LIBOBJS strtod.$ac_objext" |
---|
| 3708 | echo "$as_me:$LINENO: checking for pow" >&5 |
---|
| 3709 | echo $ECHO_N "checking for pow... $ECHO_C" >&6 |
---|
| 3710 | if test "${ac_cv_func_pow+set}" = set; then |
---|
| 3711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3712 | else |
---|
| 3713 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3714 | #line $LINENO "configure" |
---|
| 3715 | /* confdefs.h. */ |
---|
| 3716 | _ACEOF |
---|
| 3717 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3718 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3719 | /* end confdefs.h. */ |
---|
| 3720 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 3721 | which can conflict with char pow (); below. |
---|
| 3722 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3723 | <limits.h> exists even on freestanding compilers. */ |
---|
| 3724 | #ifdef __STDC__ |
---|
| 3725 | # include <limits.h> |
---|
| 3726 | #else |
---|
| 3727 | # include <assert.h> |
---|
| 3728 | #endif |
---|
| 3729 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3730 | #ifdef __cplusplus |
---|
| 3731 | extern "C" |
---|
| 3732 | { |
---|
| 3733 | #endif |
---|
| 3734 | /* We use char because int might match the return type of a gcc2 |
---|
| 3735 | builtin and then its argument prototype would still apply. */ |
---|
| 3736 | char pow (); |
---|
| 3737 | /* The GNU C library defines this for functions which it implements |
---|
| 3738 | to always fail with ENOSYS. Some functions are actually named |
---|
| 3739 | something starting with __ and the normal name is an alias. */ |
---|
| 3740 | #if defined (__stub_pow) || defined (__stub___pow) |
---|
| 3741 | choke me |
---|
| 3742 | #else |
---|
| 3743 | char (*f) () = pow; |
---|
| 3744 | #endif |
---|
| 3745 | #ifdef __cplusplus |
---|
| 3746 | } |
---|
| 3747 | #endif |
---|
| 3748 | |
---|
| 3749 | int |
---|
| 3750 | main () |
---|
| 3751 | { |
---|
| 3752 | return f != pow; |
---|
| 3753 | ; |
---|
| 3754 | return 0; |
---|
| 3755 | } |
---|
| 3756 | _ACEOF |
---|
| 3757 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3759 | (eval $ac_link) 2>&5 |
---|
| 3760 | ac_status=$? |
---|
| 3761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3762 | (exit $ac_status); } && |
---|
| 3763 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3765 | (eval $ac_try) 2>&5 |
---|
| 3766 | ac_status=$? |
---|
| 3767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3768 | (exit $ac_status); }; }; then |
---|
| 3769 | ac_cv_func_pow=yes |
---|
| 3770 | else |
---|
| 3771 | echo "$as_me: failed program was:" >&5 |
---|
| 3772 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3773 | |
---|
| 3774 | ac_cv_func_pow=no |
---|
| 3775 | fi |
---|
| 3776 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 3777 | fi |
---|
| 3778 | echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
---|
| 3779 | echo "${ECHO_T}$ac_cv_func_pow" >&6 |
---|
| 3780 | |
---|
| 3781 | if test $ac_cv_func_pow = no; then |
---|
| 3782 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
---|
| 3783 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 |
---|
| 3784 | if test "${ac_cv_lib_m_pow+set}" = set; then |
---|
| 3785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3786 | else |
---|
| 3787 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3788 | LIBS="-lm $LIBS" |
---|
| 3789 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3790 | #line $LINENO "configure" |
---|
| 3791 | /* confdefs.h. */ |
---|
| 3792 | _ACEOF |
---|
| 3793 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3794 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3795 | /* end confdefs.h. */ |
---|
| 3796 | |
---|
| 3797 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3798 | #ifdef __cplusplus |
---|
| 3799 | extern "C" |
---|
| 3800 | #endif |
---|
| 3801 | /* We use char because int might match the return type of a gcc2 |
---|
| 3802 | builtin and then its argument prototype would still apply. */ |
---|
| 3803 | char pow (); |
---|
| 3804 | int |
---|
| 3805 | main () |
---|
| 3806 | { |
---|
| 3807 | pow (); |
---|
| 3808 | ; |
---|
| 3809 | return 0; |
---|
| 3810 | } |
---|
| 3811 | _ACEOF |
---|
| 3812 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3814 | (eval $ac_link) 2>&5 |
---|
| 3815 | ac_status=$? |
---|
| 3816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3817 | (exit $ac_status); } && |
---|
| 3818 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3820 | (eval $ac_try) 2>&5 |
---|
| 3821 | ac_status=$? |
---|
| 3822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3823 | (exit $ac_status); }; }; then |
---|
| 3824 | ac_cv_lib_m_pow=yes |
---|
| 3825 | else |
---|
| 3826 | echo "$as_me: failed program was:" >&5 |
---|
| 3827 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3828 | |
---|
| 3829 | ac_cv_lib_m_pow=no |
---|
| 3830 | fi |
---|
| 3831 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 3832 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3833 | fi |
---|
| 3834 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
---|
| 3835 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 |
---|
| 3836 | if test $ac_cv_lib_m_pow = yes; then |
---|
| 3837 | POW_LIB=-lm |
---|
| 3838 | else |
---|
| 3839 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
---|
| 3840 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
---|
| 3841 | fi |
---|
| 3842 | |
---|
| 3843 | fi |
---|
| 3844 | |
---|
| 3845 | fi |
---|
| 3846 | |
---|
| 3847 | |
---|
| 3848 | |
---|
| 3849 | |
---|
| 3850 | |
---|
| 3851 | |
---|
| 3852 | |
---|
| 3853 | |
---|
| 3854 | for ac_func in floor pow sqrt strtol log atan fabs |
---|
| 3855 | do |
---|
| 3856 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 3857 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 3858 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 3859 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 3860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3861 | else |
---|
| 3862 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3863 | #line $LINENO "configure" |
---|
| 3864 | /* confdefs.h. */ |
---|
| 3865 | _ACEOF |
---|
| 3866 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3867 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3868 | /* end confdefs.h. */ |
---|
| 3869 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 3870 | which can conflict with char $ac_func (); below. |
---|
| 3871 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3872 | <limits.h> exists even on freestanding compilers. */ |
---|
| 3873 | #ifdef __STDC__ |
---|
| 3874 | # include <limits.h> |
---|
| 3875 | #else |
---|
| 3876 | # include <assert.h> |
---|
| 3877 | #endif |
---|
| 3878 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3879 | #ifdef __cplusplus |
---|
| 3880 | extern "C" |
---|
| 3881 | { |
---|
| 3882 | #endif |
---|
| 3883 | /* We use char because int might match the return type of a gcc2 |
---|
| 3884 | builtin and then its argument prototype would still apply. */ |
---|
| 3885 | char $ac_func (); |
---|
| 3886 | /* The GNU C library defines this for functions which it implements |
---|
| 3887 | to always fail with ENOSYS. Some functions are actually named |
---|
| 3888 | something starting with __ and the normal name is an alias. */ |
---|
| 3889 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 3890 | choke me |
---|
| 3891 | #else |
---|
| 3892 | char (*f) () = $ac_func; |
---|
| 3893 | #endif |
---|
| 3894 | #ifdef __cplusplus |
---|
| 3895 | } |
---|
| 3896 | #endif |
---|
| 3897 | |
---|
| 3898 | int |
---|
| 3899 | main () |
---|
| 3900 | { |
---|
| 3901 | return f != $ac_func; |
---|
| 3902 | ; |
---|
| 3903 | return 0; |
---|
| 3904 | } |
---|
| 3905 | _ACEOF |
---|
| 3906 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3908 | (eval $ac_link) 2>&5 |
---|
| 3909 | ac_status=$? |
---|
| 3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3911 | (exit $ac_status); } && |
---|
| 3912 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3914 | (eval $ac_try) 2>&5 |
---|
| 3915 | ac_status=$? |
---|
| 3916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3917 | (exit $ac_status); }; }; then |
---|
| 3918 | eval "$as_ac_var=yes" |
---|
| 3919 | else |
---|
| 3920 | echo "$as_me: failed program was:" >&5 |
---|
| 3921 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3922 | |
---|
| 3923 | eval "$as_ac_var=no" |
---|
| 3924 | fi |
---|
| 3925 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 3926 | fi |
---|
| 3927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 3928 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 3929 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 3930 | cat >>confdefs.h <<_ACEOF |
---|
| 3931 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 3932 | _ACEOF |
---|
| 3933 | |
---|
| 3934 | fi |
---|
| 3935 | done |
---|
| 3936 | |
---|
| 3937 | |
---|
| 3938 | # Extra places to look for third-party include files and libraries. |
---|
| 3939 | INCDIRS="$INCDIRS \ |
---|
| 3940 | /usr/include \ |
---|
| 3941 | /usr/local/include \ |
---|
| 3942 | /usr/local/pgplot \ |
---|
| 3943 | /usr/local/cfitsio \ |
---|
| 3944 | /usr/local/wcslib \ |
---|
| 3945 | /local/pgplot \ |
---|
[110] | 3946 | /local/cfitsio \ |
---|
| 3947 | /opt/local/include" |
---|
[107] | 3948 | |
---|
| 3949 | LIBDIRS="$LIBDIRS \ |
---|
| 3950 | /usr/lib \ |
---|
| 3951 | /usr/local/lib \ |
---|
| 3952 | /usr/local/pgplot \ |
---|
| 3953 | /usr/local/cfitsio \ |
---|
| 3954 | /usr/local/wcslib \ |
---|
| 3955 | /local/lib \ |
---|
| 3956 | /local/pgplot \ |
---|
| 3957 | /local/cfitsio \ |
---|
[110] | 3958 | /opt/SUNWspro/lib \ |
---|
| 3959 | /opt/local/lib" |
---|
[107] | 3960 | |
---|
| 3961 | { echo "$as_me:$LINENO: LIBDIRS" >&5 |
---|
| 3962 | echo "$as_me: LIBDIRS" >&6;} |
---|
| 3963 | |
---|
| 3964 | for LIBDIR in $LIBDIRS ; do |
---|
| 3965 | as_ac_File=`echo "ac_cv_file_$LIBDIR" | $as_tr_sh` |
---|
| 3966 | echo "$as_me:$LINENO: checking for $LIBDIR" >&5 |
---|
| 3967 | echo $ECHO_N "checking for $LIBDIR... $ECHO_C" >&6 |
---|
| 3968 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 3969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3970 | else |
---|
| 3971 | test "$cross_compiling" = yes && |
---|
| 3972 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 3973 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 3974 | { (exit 1); exit 1; }; } |
---|
| 3975 | if test -r "$LIBDIR"; then |
---|
| 3976 | eval "$as_ac_File=yes" |
---|
| 3977 | else |
---|
| 3978 | eval "$as_ac_File=no" |
---|
| 3979 | fi |
---|
| 3980 | fi |
---|
| 3981 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 3982 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 3983 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 3984 | LDFLAGS="$LDFLAGS -L$LIBDIR" |
---|
| 3985 | else |
---|
| 3986 | continue |
---|
| 3987 | fi |
---|
| 3988 | |
---|
| 3989 | done |
---|
| 3990 | |
---|
| 3991 | ########################################################################## |
---|
| 3992 | # Search for PGPLOT |
---|
| 3993 | |
---|
| 3994 | for INCDIR in $INCDIRS ; do |
---|
| 3995 | as_ac_File=`echo "ac_cv_file_$INCDIR/cpgplot.h" | $as_tr_sh` |
---|
| 3996 | echo "$as_me:$LINENO: checking for $INCDIR/cpgplot.h" >&5 |
---|
| 3997 | echo $ECHO_N "checking for $INCDIR/cpgplot.h... $ECHO_C" >&6 |
---|
| 3998 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 3999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4000 | else |
---|
| 4001 | test "$cross_compiling" = yes && |
---|
| 4002 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 4003 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 4004 | { (exit 1); exit 1; }; } |
---|
| 4005 | if test -r "$INCDIR/cpgplot.h"; then |
---|
| 4006 | eval "$as_ac_File=yes" |
---|
| 4007 | else |
---|
| 4008 | eval "$as_ac_File=no" |
---|
| 4009 | fi |
---|
| 4010 | fi |
---|
| 4011 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 4012 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 4013 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 4014 | PGPLOTINC=-I$INCDIR; break |
---|
| 4015 | fi |
---|
| 4016 | |
---|
| 4017 | INCDIR=$INCDIR/pgplot |
---|
| 4018 | as_ac_File=`echo "ac_cv_file_$INCDIR/cpgplot.h" | $as_tr_sh` |
---|
| 4019 | echo "$as_me:$LINENO: checking for $INCDIR/cpgplot.h" >&5 |
---|
| 4020 | echo $ECHO_N "checking for $INCDIR/cpgplot.h... $ECHO_C" >&6 |
---|
| 4021 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 4022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4023 | else |
---|
| 4024 | test "$cross_compiling" = yes && |
---|
| 4025 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 4026 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 4027 | { (exit 1); exit 1; }; } |
---|
| 4028 | if test -r "$INCDIR/cpgplot.h"; then |
---|
| 4029 | eval "$as_ac_File=yes" |
---|
| 4030 | else |
---|
| 4031 | eval "$as_ac_File=no" |
---|
| 4032 | fi |
---|
| 4033 | fi |
---|
| 4034 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 4035 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 4036 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 4037 | PGPLOTINC=-I$INCDIR; break |
---|
| 4038 | fi |
---|
| 4039 | |
---|
| 4040 | done |
---|
| 4041 | |
---|
| 4042 | # PGPLOT compiled with a SUN compiler but linked with something else. |
---|
| 4043 | echo "$as_me:$LINENO: checking for cosd in -lsunmath" >&5 |
---|
| 4044 | echo $ECHO_N "checking for cosd in -lsunmath... $ECHO_C" >&6 |
---|
| 4045 | if test "${ac_cv_lib_sunmath_cosd+set}" = set; then |
---|
| 4046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4047 | else |
---|
| 4048 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4049 | LIBS="-lsunmath $PGPLOTLIB $LIBS $LIBS" |
---|
| 4050 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4051 | #line $LINENO "configure" |
---|
| 4052 | /* confdefs.h. */ |
---|
| 4053 | _ACEOF |
---|
| 4054 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4055 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4056 | /* end confdefs.h. */ |
---|
| 4057 | |
---|
| 4058 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4059 | #ifdef __cplusplus |
---|
| 4060 | extern "C" |
---|
| 4061 | #endif |
---|
| 4062 | /* We use char because int might match the return type of a gcc2 |
---|
| 4063 | builtin and then its argument prototype would still apply. */ |
---|
| 4064 | char cosd (); |
---|
| 4065 | int |
---|
| 4066 | main () |
---|
| 4067 | { |
---|
| 4068 | cosd (); |
---|
| 4069 | ; |
---|
| 4070 | return 0; |
---|
| 4071 | } |
---|
| 4072 | _ACEOF |
---|
| 4073 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4075 | (eval $ac_link) 2>&5 |
---|
| 4076 | ac_status=$? |
---|
| 4077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4078 | (exit $ac_status); } && |
---|
| 4079 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4081 | (eval $ac_try) 2>&5 |
---|
| 4082 | ac_status=$? |
---|
| 4083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4084 | (exit $ac_status); }; }; then |
---|
| 4085 | ac_cv_lib_sunmath_cosd=yes |
---|
| 4086 | else |
---|
| 4087 | echo "$as_me: failed program was:" >&5 |
---|
| 4088 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4089 | |
---|
| 4090 | ac_cv_lib_sunmath_cosd=no |
---|
| 4091 | fi |
---|
| 4092 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 4093 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4094 | fi |
---|
| 4095 | echo "$as_me:$LINENO: result: $ac_cv_lib_sunmath_cosd" >&5 |
---|
| 4096 | echo "${ECHO_T}$ac_cv_lib_sunmath_cosd" >&6 |
---|
| 4097 | if test $ac_cv_lib_sunmath_cosd = yes; then |
---|
| 4098 | PGPLOTLIB="-lsunmath $PGPLOTLIB" |
---|
| 4099 | fi |
---|
| 4100 | |
---|
| 4101 | echo "$as_me:$LINENO: checking for iand_ in -lM77" >&5 |
---|
| 4102 | echo $ECHO_N "checking for iand_ in -lM77... $ECHO_C" >&6 |
---|
| 4103 | if test "${ac_cv_lib_M77_iand_+set}" = set; then |
---|
| 4104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4105 | else |
---|
| 4106 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4107 | LIBS="-lM77 $PGPLOTLIB $LIBS $LIBS" |
---|
| 4108 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4109 | #line $LINENO "configure" |
---|
| 4110 | /* confdefs.h. */ |
---|
| 4111 | _ACEOF |
---|
| 4112 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4113 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4114 | /* end confdefs.h. */ |
---|
| 4115 | |
---|
| 4116 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4117 | #ifdef __cplusplus |
---|
| 4118 | extern "C" |
---|
| 4119 | #endif |
---|
| 4120 | /* We use char because int might match the return type of a gcc2 |
---|
| 4121 | builtin and then its argument prototype would still apply. */ |
---|
| 4122 | char iand_ (); |
---|
| 4123 | int |
---|
| 4124 | main () |
---|
| 4125 | { |
---|
| 4126 | iand_ (); |
---|
| 4127 | ; |
---|
| 4128 | return 0; |
---|
| 4129 | } |
---|
| 4130 | _ACEOF |
---|
| 4131 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4133 | (eval $ac_link) 2>&5 |
---|
| 4134 | ac_status=$? |
---|
| 4135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4136 | (exit $ac_status); } && |
---|
| 4137 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4139 | (eval $ac_try) 2>&5 |
---|
| 4140 | ac_status=$? |
---|
| 4141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4142 | (exit $ac_status); }; }; then |
---|
| 4143 | ac_cv_lib_M77_iand_=yes |
---|
| 4144 | else |
---|
| 4145 | echo "$as_me: failed program was:" >&5 |
---|
| 4146 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4147 | |
---|
| 4148 | ac_cv_lib_M77_iand_=no |
---|
| 4149 | fi |
---|
| 4150 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 4151 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4152 | fi |
---|
| 4153 | echo "$as_me:$LINENO: result: $ac_cv_lib_M77_iand_" >&5 |
---|
| 4154 | echo "${ECHO_T}$ac_cv_lib_M77_iand_" >&6 |
---|
| 4155 | if test $ac_cv_lib_M77_iand_ = yes; then |
---|
| 4156 | PGPLOTLIB="-lM77 $PGPLOTLIB" |
---|
| 4157 | fi |
---|
| 4158 | |
---|
| 4159 | echo "$as_me:$LINENO: checking for f77_init in -lF77" >&5 |
---|
| 4160 | echo $ECHO_N "checking for f77_init in -lF77... $ECHO_C" >&6 |
---|
| 4161 | if test "${ac_cv_lib_F77_f77_init+set}" = set; then |
---|
| 4162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4163 | else |
---|
| 4164 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4165 | LIBS="-lF77 $PGPLOTLIB $LIBS $LIBS" |
---|
| 4166 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4167 | #line $LINENO "configure" |
---|
| 4168 | /* confdefs.h. */ |
---|
| 4169 | _ACEOF |
---|
| 4170 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4171 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4172 | /* end confdefs.h. */ |
---|
| 4173 | |
---|
| 4174 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4175 | #ifdef __cplusplus |
---|
| 4176 | extern "C" |
---|
| 4177 | #endif |
---|
| 4178 | /* We use char because int might match the return type of a gcc2 |
---|
| 4179 | builtin and then its argument prototype would still apply. */ |
---|
| 4180 | char f77_init (); |
---|
| 4181 | int |
---|
| 4182 | main () |
---|
| 4183 | { |
---|
| 4184 | f77_init (); |
---|
| 4185 | ; |
---|
| 4186 | return 0; |
---|
| 4187 | } |
---|
| 4188 | _ACEOF |
---|
| 4189 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4191 | (eval $ac_link) 2>&5 |
---|
| 4192 | ac_status=$? |
---|
| 4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4194 | (exit $ac_status); } && |
---|
| 4195 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4197 | (eval $ac_try) 2>&5 |
---|
| 4198 | ac_status=$? |
---|
| 4199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4200 | (exit $ac_status); }; }; then |
---|
| 4201 | ac_cv_lib_F77_f77_init=yes |
---|
| 4202 | else |
---|
| 4203 | echo "$as_me: failed program was:" >&5 |
---|
| 4204 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4205 | |
---|
| 4206 | ac_cv_lib_F77_f77_init=no |
---|
| 4207 | fi |
---|
| 4208 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 4209 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4210 | fi |
---|
| 4211 | echo "$as_me:$LINENO: result: $ac_cv_lib_F77_f77_init" >&5 |
---|
| 4212 | echo "${ECHO_T}$ac_cv_lib_F77_f77_init" >&6 |
---|
| 4213 | if test $ac_cv_lib_F77_f77_init = yes; then |
---|
| 4214 | PGPLOTLIB="-lF77 $PGPLOTLIB" |
---|
| 4215 | fi |
---|
| 4216 | |
---|
| 4217 | # PGPLOT compiled with a GNU compiler but linked with something else. |
---|
[170] | 4218 | #AC_CHECK_LIB([m], [log], [PGPLOTLIB="-lm $PGPLOTLIB"]) |
---|
| 4219 | #AC_CHECK_LIB([g2c], [gerror_], [PGPLOTLIB="-lg2c $PGPLOTLIB"], |
---|
| 4220 | # [], [$PGPLOTLIB $LIBS]) |
---|
[107] | 4221 | |
---|
| 4222 | # Search for X11 includes and libraries. |
---|
| 4223 | echo "$as_me:$LINENO: checking for X" >&5 |
---|
| 4224 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
---|
| 4225 | |
---|
| 4226 | |
---|
| 4227 | # Check whether --with-x or --without-x was given. |
---|
| 4228 | if test "${with_x+set}" = set; then |
---|
| 4229 | withval="$with_x" |
---|
| 4230 | |
---|
| 4231 | fi; |
---|
| 4232 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
| 4233 | if test "x$with_x" = xno; then |
---|
| 4234 | # The user explicitly disabled X. |
---|
| 4235 | have_x=disabled |
---|
| 4236 | else |
---|
| 4237 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
---|
| 4238 | # Both variables are already set. |
---|
| 4239 | have_x=yes |
---|
| 4240 | else |
---|
| 4241 | if test "${ac_cv_have_x+set}" = set; then |
---|
| 4242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4243 | else |
---|
| 4244 | # One or both of the vars are not set, and there is no cached value. |
---|
| 4245 | ac_x_includes=no ac_x_libraries=no |
---|
| 4246 | rm -fr conftest.dir |
---|
| 4247 | if mkdir conftest.dir; then |
---|
| 4248 | cd conftest.dir |
---|
| 4249 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
---|
| 4250 | cat >Imakefile <<'_ACEOF' |
---|
| 4251 | acfindx: |
---|
| 4252 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
---|
| 4253 | _ACEOF |
---|
| 4254 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
| 4255 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 4256 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
---|
| 4257 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
| 4258 | for ac_extension in a so sl; do |
---|
| 4259 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
---|
| 4260 | test -f $ac_im_libdir/libX11.$ac_extension; then |
---|
| 4261 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
| 4262 | fi |
---|
| 4263 | done |
---|
| 4264 | # Screen out bogus values from the imake configuration. They are |
---|
| 4265 | # bogus both because they are the default anyway, and because |
---|
| 4266 | # using them would break gcc on systems where it needs fixed includes. |
---|
| 4267 | case $ac_im_incroot in |
---|
| 4268 | /usr/include) ;; |
---|
| 4269 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
| 4270 | esac |
---|
| 4271 | case $ac_im_usrlibdir in |
---|
| 4272 | /usr/lib | /lib) ;; |
---|
| 4273 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
| 4274 | esac |
---|
| 4275 | fi |
---|
| 4276 | cd .. |
---|
| 4277 | rm -fr conftest.dir |
---|
| 4278 | fi |
---|
| 4279 | |
---|
| 4280 | # Standard set of common directories for X headers. |
---|
| 4281 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
| 4282 | ac_x_header_dirs=' |
---|
| 4283 | /usr/X11/include |
---|
| 4284 | /usr/X11R6/include |
---|
| 4285 | /usr/X11R5/include |
---|
| 4286 | /usr/X11R4/include |
---|
| 4287 | |
---|
| 4288 | /usr/include/X11 |
---|
| 4289 | /usr/include/X11R6 |
---|
| 4290 | /usr/include/X11R5 |
---|
| 4291 | /usr/include/X11R4 |
---|
| 4292 | |
---|
| 4293 | /usr/local/X11/include |
---|
| 4294 | /usr/local/X11R6/include |
---|
| 4295 | /usr/local/X11R5/include |
---|
| 4296 | /usr/local/X11R4/include |
---|
| 4297 | |
---|
| 4298 | /usr/local/include/X11 |
---|
| 4299 | /usr/local/include/X11R6 |
---|
| 4300 | /usr/local/include/X11R5 |
---|
| 4301 | /usr/local/include/X11R4 |
---|
| 4302 | |
---|
| 4303 | /usr/X386/include |
---|
| 4304 | /usr/x386/include |
---|
| 4305 | /usr/XFree86/include/X11 |
---|
| 4306 | |
---|
| 4307 | /usr/include |
---|
| 4308 | /usr/local/include |
---|
| 4309 | /usr/unsupported/include |
---|
| 4310 | /usr/athena/include |
---|
| 4311 | /usr/local/x11r5/include |
---|
| 4312 | /usr/lpp/Xamples/include |
---|
| 4313 | |
---|
| 4314 | /usr/openwin/include |
---|
| 4315 | /usr/openwin/share/include' |
---|
| 4316 | |
---|
| 4317 | if test "$ac_x_includes" = no; then |
---|
| 4318 | # Guess where to find include files, by looking for Intrinsic.h. |
---|
| 4319 | # First, try using that file with no special directory specified. |
---|
| 4320 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4321 | #line $LINENO "configure" |
---|
| 4322 | /* confdefs.h. */ |
---|
| 4323 | _ACEOF |
---|
| 4324 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4325 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4326 | /* end confdefs.h. */ |
---|
| 4327 | #include <X11/Intrinsic.h> |
---|
| 4328 | _ACEOF |
---|
| 4329 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4330 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4331 | ac_status=$? |
---|
| 4332 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4333 | rm -f conftest.er1 |
---|
| 4334 | cat conftest.err >&5 |
---|
| 4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4336 | (exit $ac_status); } >/dev/null; then |
---|
| 4337 | if test -s conftest.err; then |
---|
| 4338 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4339 | else |
---|
| 4340 | ac_cpp_err= |
---|
| 4341 | fi |
---|
| 4342 | else |
---|
| 4343 | ac_cpp_err=yes |
---|
| 4344 | fi |
---|
| 4345 | if test -z "$ac_cpp_err"; then |
---|
| 4346 | # We can compile using X headers with no special include directory. |
---|
| 4347 | ac_x_includes= |
---|
| 4348 | else |
---|
| 4349 | echo "$as_me: failed program was:" >&5 |
---|
| 4350 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4351 | |
---|
| 4352 | for ac_dir in $ac_x_header_dirs; do |
---|
| 4353 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
---|
| 4354 | ac_x_includes=$ac_dir |
---|
| 4355 | break |
---|
| 4356 | fi |
---|
| 4357 | done |
---|
| 4358 | fi |
---|
| 4359 | rm -f conftest.err conftest.$ac_ext |
---|
| 4360 | fi # $ac_x_includes = no |
---|
| 4361 | |
---|
| 4362 | if test "$ac_x_libraries" = no; then |
---|
| 4363 | # Check for the libraries. |
---|
| 4364 | # See if we find them without any special options. |
---|
| 4365 | # Don't add to $LIBS permanently. |
---|
| 4366 | ac_save_LIBS=$LIBS |
---|
| 4367 | LIBS="-lXt $LIBS" |
---|
| 4368 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4369 | #line $LINENO "configure" |
---|
| 4370 | /* confdefs.h. */ |
---|
| 4371 | _ACEOF |
---|
| 4372 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4373 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4374 | /* end confdefs.h. */ |
---|
| 4375 | #include <X11/Intrinsic.h> |
---|
| 4376 | int |
---|
| 4377 | main () |
---|
| 4378 | { |
---|
| 4379 | XtMalloc (0) |
---|
| 4380 | ; |
---|
| 4381 | return 0; |
---|
| 4382 | } |
---|
| 4383 | _ACEOF |
---|
| 4384 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4386 | (eval $ac_link) 2>&5 |
---|
| 4387 | ac_status=$? |
---|
| 4388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4389 | (exit $ac_status); } && |
---|
| 4390 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4392 | (eval $ac_try) 2>&5 |
---|
| 4393 | ac_status=$? |
---|
| 4394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4395 | (exit $ac_status); }; }; then |
---|
| 4396 | LIBS=$ac_save_LIBS |
---|
| 4397 | # We can link X programs with no special library path. |
---|
| 4398 | ac_x_libraries= |
---|
| 4399 | else |
---|
| 4400 | echo "$as_me: failed program was:" >&5 |
---|
| 4401 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4402 | |
---|
| 4403 | LIBS=$ac_save_LIBS |
---|
| 4404 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
| 4405 | do |
---|
| 4406 | # Don't even attempt the hair of trying to link an X program! |
---|
| 4407 | for ac_extension in a so sl; do |
---|
| 4408 | if test -r $ac_dir/libXt.$ac_extension; then |
---|
| 4409 | ac_x_libraries=$ac_dir |
---|
| 4410 | break 2 |
---|
| 4411 | fi |
---|
| 4412 | done |
---|
| 4413 | done |
---|
| 4414 | fi |
---|
| 4415 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 4416 | fi # $ac_x_libraries = no |
---|
| 4417 | |
---|
| 4418 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
---|
| 4419 | # Didn't find X anywhere. Cache the known absence of X. |
---|
| 4420 | ac_cv_have_x="have_x=no" |
---|
| 4421 | else |
---|
| 4422 | # Record where we found X for the cache. |
---|
| 4423 | ac_cv_have_x="have_x=yes \ |
---|
| 4424 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
---|
| 4425 | fi |
---|
| 4426 | fi |
---|
| 4427 | |
---|
| 4428 | fi |
---|
| 4429 | eval "$ac_cv_have_x" |
---|
| 4430 | fi # $with_x != no |
---|
| 4431 | |
---|
| 4432 | if test "$have_x" != yes; then |
---|
| 4433 | echo "$as_me:$LINENO: result: $have_x" >&5 |
---|
| 4434 | echo "${ECHO_T}$have_x" >&6 |
---|
| 4435 | no_x=yes |
---|
| 4436 | else |
---|
| 4437 | # If each of the values was on the command line, it overrides each guess. |
---|
| 4438 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
| 4439 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
| 4440 | # Update the cache value to reflect the command line values. |
---|
| 4441 | ac_cv_have_x="have_x=yes \ |
---|
| 4442 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
---|
| 4443 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
| 4444 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
---|
| 4445 | fi |
---|
| 4446 | |
---|
| 4447 | if test "x$ac_x_libraries" != x; then |
---|
| 4448 | LDFLAGS="$LDFLAGS -L$ac_x_libraries" |
---|
| 4449 | PGPLOTLIB="-lX11 $PGPLOTLIB" |
---|
| 4450 | fi |
---|
| 4451 | |
---|
| 4452 | # It is possible that other libraries may be required depending on what |
---|
| 4453 | # graphics drivers were installed with PGPLOT. |
---|
| 4454 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
---|
| 4455 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 |
---|
| 4456 | if test "${ac_cv_lib_z_deflate+set}" = set; then |
---|
| 4457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4458 | else |
---|
| 4459 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4460 | LIBS="-lz $PGPLOTLIB $LIBS $LIBS" |
---|
| 4461 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4462 | #line $LINENO "configure" |
---|
| 4463 | /* confdefs.h. */ |
---|
| 4464 | _ACEOF |
---|
| 4465 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4466 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4467 | /* end confdefs.h. */ |
---|
| 4468 | |
---|
| 4469 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4470 | #ifdef __cplusplus |
---|
| 4471 | extern "C" |
---|
| 4472 | #endif |
---|
| 4473 | /* We use char because int might match the return type of a gcc2 |
---|
| 4474 | builtin and then its argument prototype would still apply. */ |
---|
| 4475 | char deflate (); |
---|
| 4476 | int |
---|
| 4477 | main () |
---|
| 4478 | { |
---|
| 4479 | deflate (); |
---|
| 4480 | ; |
---|
| 4481 | return 0; |
---|
| 4482 | } |
---|
| 4483 | _ACEOF |
---|
| 4484 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4486 | (eval $ac_link) 2>&5 |
---|
| 4487 | ac_status=$? |
---|
| 4488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4489 | (exit $ac_status); } && |
---|
| 4490 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4492 | (eval $ac_try) 2>&5 |
---|
| 4493 | ac_status=$? |
---|
| 4494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4495 | (exit $ac_status); }; }; then |
---|
| 4496 | ac_cv_lib_z_deflate=yes |
---|
| 4497 | else |
---|
| 4498 | echo "$as_me: failed program was:" >&5 |
---|
| 4499 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4500 | |
---|
| 4501 | ac_cv_lib_z_deflate=no |
---|
| 4502 | fi |
---|
| 4503 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 4504 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4505 | fi |
---|
| 4506 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 |
---|
| 4507 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 |
---|
| 4508 | if test $ac_cv_lib_z_deflate = yes; then |
---|
| 4509 | PGPLOTLIB="-lz $PGPLOTLIB" |
---|
| 4510 | fi |
---|
| 4511 | |
---|
| 4512 | echo "$as_me:$LINENO: checking for png_error in -lpng" >&5 |
---|
| 4513 | echo $ECHO_N "checking for png_error in -lpng... $ECHO_C" >&6 |
---|
| 4514 | if test "${ac_cv_lib_png_png_error+set}" = set; then |
---|
| 4515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4516 | else |
---|
| 4517 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4518 | LIBS="-lpng $PGPLOTLIB $LIBS $LIBS" |
---|
| 4519 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4520 | #line $LINENO "configure" |
---|
| 4521 | /* confdefs.h. */ |
---|
| 4522 | _ACEOF |
---|
| 4523 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4524 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4525 | /* end confdefs.h. */ |
---|
| 4526 | |
---|
| 4527 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4528 | #ifdef __cplusplus |
---|
| 4529 | extern "C" |
---|
| 4530 | #endif |
---|
| 4531 | /* We use char because int might match the return type of a gcc2 |
---|
| 4532 | builtin and then its argument prototype would still apply. */ |
---|
| 4533 | char png_error (); |
---|
| 4534 | int |
---|
| 4535 | main () |
---|
| 4536 | { |
---|
| 4537 | png_error (); |
---|
| 4538 | ; |
---|
| 4539 | return 0; |
---|
| 4540 | } |
---|
| 4541 | _ACEOF |
---|
| 4542 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4543 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4544 | (eval $ac_link) 2>&5 |
---|
| 4545 | ac_status=$? |
---|
| 4546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4547 | (exit $ac_status); } && |
---|
| 4548 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4550 | (eval $ac_try) 2>&5 |
---|
| 4551 | ac_status=$? |
---|
| 4552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4553 | (exit $ac_status); }; }; then |
---|
| 4554 | ac_cv_lib_png_png_error=yes |
---|
| 4555 | else |
---|
| 4556 | echo "$as_me: failed program was:" >&5 |
---|
| 4557 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4558 | |
---|
| 4559 | ac_cv_lib_png_png_error=no |
---|
| 4560 | fi |
---|
| 4561 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 4562 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4563 | fi |
---|
| 4564 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_error" >&5 |
---|
| 4565 | echo "${ECHO_T}$ac_cv_lib_png_png_error" >&6 |
---|
| 4566 | if test $ac_cv_lib_png_png_error = yes; then |
---|
| 4567 | PGPLOTLIB="-lpng $PGPLOTLIB" |
---|
| 4568 | fi |
---|
| 4569 | |
---|
| 4570 | echo "$as_me:$LINENO: checking for pgbeg_ in -lpgplot" >&5 |
---|
| 4571 | echo $ECHO_N "checking for pgbeg_ in -lpgplot... $ECHO_C" >&6 |
---|
| 4572 | if test "${ac_cv_lib_pgplot_pgbeg_+set}" = set; then |
---|
| 4573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4574 | else |
---|
| 4575 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4576 | LIBS="-lpgplot $PGPLOTLIB $LIBS $LIBS" |
---|
| 4577 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4578 | #line $LINENO "configure" |
---|
| 4579 | /* confdefs.h. */ |
---|
| 4580 | _ACEOF |
---|
| 4581 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4582 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4583 | /* end confdefs.h. */ |
---|
| 4584 | |
---|
| 4585 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4586 | #ifdef __cplusplus |
---|
| 4587 | extern "C" |
---|
| 4588 | #endif |
---|
| 4589 | /* We use char because int might match the return type of a gcc2 |
---|
| 4590 | builtin and then its argument prototype would still apply. */ |
---|
| 4591 | char pgbeg_ (); |
---|
| 4592 | int |
---|
| 4593 | main () |
---|
| 4594 | { |
---|
| 4595 | pgbeg_ (); |
---|
| 4596 | ; |
---|
| 4597 | return 0; |
---|
| 4598 | } |
---|
| 4599 | _ACEOF |
---|
| 4600 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4602 | (eval $ac_link) 2>&5 |
---|
| 4603 | ac_status=$? |
---|
| 4604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4605 | (exit $ac_status); } && |
---|
| 4606 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4608 | (eval $ac_try) 2>&5 |
---|
| 4609 | ac_status=$? |
---|
| 4610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4611 | (exit $ac_status); }; }; then |
---|
| 4612 | ac_cv_lib_pgplot_pgbeg_=yes |
---|
| 4613 | else |
---|
| 4614 | echo "$as_me: failed program was:" >&5 |
---|
| 4615 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4616 | |
---|
| 4617 | ac_cv_lib_pgplot_pgbeg_=no |
---|
| 4618 | fi |
---|
| 4619 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 4620 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4621 | fi |
---|
| 4622 | echo "$as_me:$LINENO: result: $ac_cv_lib_pgplot_pgbeg_" >&5 |
---|
| 4623 | echo "${ECHO_T}$ac_cv_lib_pgplot_pgbeg_" >&6 |
---|
| 4624 | if test $ac_cv_lib_pgplot_pgbeg_ = yes; then |
---|
| 4625 | PGPLOTLIB="-lpgplot $PGPLOTLIB" |
---|
| 4626 | fi |
---|
| 4627 | |
---|
| 4628 | echo "$as_me:$LINENO: checking for cpgopen in -lcpgplot" >&5 |
---|
| 4629 | echo $ECHO_N "checking for cpgopen in -lcpgplot... $ECHO_C" >&6 |
---|
| 4630 | if test "${ac_cv_lib_cpgplot_cpgopen+set}" = set; then |
---|
| 4631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4632 | else |
---|
| 4633 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4634 | LIBS="-lcpgplot $PGPLOTLIB $LIBS $LIBS" |
---|
| 4635 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4636 | #line $LINENO "configure" |
---|
| 4637 | /* confdefs.h. */ |
---|
| 4638 | _ACEOF |
---|
| 4639 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4640 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4641 | /* end confdefs.h. */ |
---|
| 4642 | |
---|
| 4643 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4644 | #ifdef __cplusplus |
---|
| 4645 | extern "C" |
---|
| 4646 | #endif |
---|
| 4647 | /* We use char because int might match the return type of a gcc2 |
---|
| 4648 | builtin and then its argument prototype would still apply. */ |
---|
| 4649 | char cpgopen (); |
---|
| 4650 | int |
---|
| 4651 | main () |
---|
| 4652 | { |
---|
| 4653 | cpgopen (); |
---|
| 4654 | ; |
---|
| 4655 | return 0; |
---|
| 4656 | } |
---|
| 4657 | _ACEOF |
---|
| 4658 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4660 | (eval $ac_link) 2>&5 |
---|
| 4661 | ac_status=$? |
---|
| 4662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4663 | (exit $ac_status); } && |
---|
| 4664 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4666 | (eval $ac_try) 2>&5 |
---|
| 4667 | ac_status=$? |
---|
| 4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4669 | (exit $ac_status); }; }; then |
---|
| 4670 | ac_cv_lib_cpgplot_cpgopen=yes |
---|
| 4671 | else |
---|
| 4672 | echo "$as_me: failed program was:" >&5 |
---|
| 4673 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4674 | |
---|
| 4675 | ac_cv_lib_cpgplot_cpgopen=no |
---|
| 4676 | fi |
---|
| 4677 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 4678 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4679 | fi |
---|
| 4680 | echo "$as_me:$LINENO: result: $ac_cv_lib_cpgplot_cpgopen" >&5 |
---|
| 4681 | echo "${ECHO_T}$ac_cv_lib_cpgplot_cpgopen" >&6 |
---|
| 4682 | if test $ac_cv_lib_cpgplot_cpgopen = yes; then |
---|
| 4683 | PGPLOTLIB="-lcpgplot $PGPLOTLIB" |
---|
| 4684 | else |
---|
| 4685 | PGPLOTLIB= |
---|
| 4686 | fi |
---|
| 4687 | |
---|
| 4688 | |
---|
| 4689 | if test "x$PGPLOTLIB" = x; then |
---|
| 4690 | { { echo "$as_me:$LINENO: error: |
---|
| 4691 | ------------------------------------------------------- |
---|
| 4692 | Could not find the PGPLOT library. |
---|
| 4693 | |
---|
| 4694 | ERROR: Duchamp configuration failure. |
---|
| 4695 | -------------------------------------------------------" >&5 |
---|
| 4696 | echo "$as_me: error: |
---|
| 4697 | ------------------------------------------------------- |
---|
| 4698 | Could not find the PGPLOT library. |
---|
| 4699 | |
---|
| 4700 | ERROR: Duchamp configuration failure. |
---|
| 4701 | -------------------------------------------------------" >&2;} |
---|
| 4702 | { (exit 1); exit 1; }; } |
---|
| 4703 | else |
---|
| 4704 | { echo "$as_me:$LINENO: PGPLOT appears to be available." >&5 |
---|
| 4705 | echo "$as_me: PGPLOT appears to be available." >&6;} |
---|
| 4706 | |
---|
| 4707 | cat >>confdefs.h <<\_ACEOF |
---|
| 4708 | #define HAVE_PGPLOT 1 |
---|
| 4709 | _ACEOF |
---|
| 4710 | |
---|
| 4711 | fi |
---|
| 4712 | |
---|
| 4713 | |
---|
| 4714 | |
---|
| 4715 | ########################################################################## |
---|
| 4716 | |
---|
| 4717 | ########################################################################## |
---|
| 4718 | # Search for CFITSIO. |
---|
| 4719 | for INCDIR in $INCDIRS ; do |
---|
| 4720 | as_ac_File=`echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
| 4721 | echo "$as_me:$LINENO: checking for $INCDIR/fitsio.h" >&5 |
---|
| 4722 | echo $ECHO_N "checking for $INCDIR/fitsio.h... $ECHO_C" >&6 |
---|
| 4723 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 4724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4725 | else |
---|
| 4726 | test "$cross_compiling" = yes && |
---|
| 4727 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 4728 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 4729 | { (exit 1); exit 1; }; } |
---|
| 4730 | if test -r "$INCDIR/fitsio.h"; then |
---|
| 4731 | eval "$as_ac_File=yes" |
---|
| 4732 | else |
---|
| 4733 | eval "$as_ac_File=no" |
---|
| 4734 | fi |
---|
| 4735 | fi |
---|
| 4736 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 4737 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 4738 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 4739 | CFITSIOINC=-I$INCDIR; break |
---|
| 4740 | fi |
---|
| 4741 | |
---|
| 4742 | INCDIR=$INCDIR/cfitsio |
---|
| 4743 | as_ac_File=`echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh` |
---|
| 4744 | echo "$as_me:$LINENO: checking for $INCDIR/fitsio.h" >&5 |
---|
| 4745 | echo $ECHO_N "checking for $INCDIR/fitsio.h... $ECHO_C" >&6 |
---|
| 4746 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 4747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4748 | else |
---|
| 4749 | test "$cross_compiling" = yes && |
---|
| 4750 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 4751 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 4752 | { (exit 1); exit 1; }; } |
---|
| 4753 | if test -r "$INCDIR/fitsio.h"; then |
---|
| 4754 | eval "$as_ac_File=yes" |
---|
| 4755 | else |
---|
| 4756 | eval "$as_ac_File=no" |
---|
| 4757 | fi |
---|
| 4758 | fi |
---|
| 4759 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 4760 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 4761 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 4762 | CFITSIOINC=-I$INCDIR; break |
---|
| 4763 | fi |
---|
| 4764 | |
---|
| 4765 | done |
---|
| 4766 | |
---|
| 4767 | echo "$as_me:$LINENO: checking for recv in -lsocket" >&5 |
---|
| 4768 | echo $ECHO_N "checking for recv in -lsocket... $ECHO_C" >&6 |
---|
| 4769 | if test "${ac_cv_lib_socket_recv+set}" = set; then |
---|
| 4770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4771 | else |
---|
| 4772 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4773 | LIBS="-lsocket $LIBS $LIBS" |
---|
| 4774 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4775 | #line $LINENO "configure" |
---|
| 4776 | /* confdefs.h. */ |
---|
| 4777 | _ACEOF |
---|
| 4778 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4779 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4780 | /* end confdefs.h. */ |
---|
| 4781 | |
---|
| 4782 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4783 | #ifdef __cplusplus |
---|
| 4784 | extern "C" |
---|
| 4785 | #endif |
---|
| 4786 | /* We use char because int might match the return type of a gcc2 |
---|
| 4787 | builtin and then its argument prototype would still apply. */ |
---|
| 4788 | char recv (); |
---|
| 4789 | int |
---|
| 4790 | main () |
---|
| 4791 | { |
---|
| 4792 | recv (); |
---|
| 4793 | ; |
---|
| 4794 | return 0; |
---|
| 4795 | } |
---|
| 4796 | _ACEOF |
---|
| 4797 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4799 | (eval $ac_link) 2>&5 |
---|
| 4800 | ac_status=$? |
---|
| 4801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4802 | (exit $ac_status); } && |
---|
| 4803 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4805 | (eval $ac_try) 2>&5 |
---|
| 4806 | ac_status=$? |
---|
| 4807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4808 | (exit $ac_status); }; }; then |
---|
| 4809 | ac_cv_lib_socket_recv=yes |
---|
| 4810 | else |
---|
| 4811 | echo "$as_me: failed program was:" >&5 |
---|
| 4812 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4813 | |
---|
| 4814 | ac_cv_lib_socket_recv=no |
---|
| 4815 | fi |
---|
| 4816 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 4817 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4818 | fi |
---|
| 4819 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_recv" >&5 |
---|
| 4820 | echo "${ECHO_T}$ac_cv_lib_socket_recv" >&6 |
---|
| 4821 | if test $ac_cv_lib_socket_recv = yes; then |
---|
| 4822 | CFITSIOLIB="-lsocket" |
---|
| 4823 | fi |
---|
| 4824 | |
---|
| 4825 | echo "$as_me:$LINENO: checking for ffopen in -lcfitsio" >&5 |
---|
| 4826 | echo $ECHO_N "checking for ffopen in -lcfitsio... $ECHO_C" >&6 |
---|
| 4827 | if test "${ac_cv_lib_cfitsio_ffopen+set}" = set; then |
---|
| 4828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4829 | else |
---|
| 4830 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4831 | LIBS="-lcfitsio $CFITSIOLIB $LIBS $LIBS" |
---|
| 4832 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4833 | #line $LINENO "configure" |
---|
| 4834 | /* confdefs.h. */ |
---|
| 4835 | _ACEOF |
---|
| 4836 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4837 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4838 | /* end confdefs.h. */ |
---|
| 4839 | |
---|
| 4840 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4841 | #ifdef __cplusplus |
---|
| 4842 | extern "C" |
---|
| 4843 | #endif |
---|
| 4844 | /* We use char because int might match the return type of a gcc2 |
---|
| 4845 | builtin and then its argument prototype would still apply. */ |
---|
| 4846 | char ffopen (); |
---|
| 4847 | int |
---|
| 4848 | main () |
---|
| 4849 | { |
---|
| 4850 | ffopen (); |
---|
| 4851 | ; |
---|
| 4852 | return 0; |
---|
| 4853 | } |
---|
| 4854 | _ACEOF |
---|
| 4855 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4857 | (eval $ac_link) 2>&5 |
---|
| 4858 | ac_status=$? |
---|
| 4859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4860 | (exit $ac_status); } && |
---|
| 4861 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4863 | (eval $ac_try) 2>&5 |
---|
| 4864 | ac_status=$? |
---|
| 4865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4866 | (exit $ac_status); }; }; then |
---|
| 4867 | ac_cv_lib_cfitsio_ffopen=yes |
---|
| 4868 | else |
---|
| 4869 | echo "$as_me: failed program was:" >&5 |
---|
| 4870 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4871 | |
---|
| 4872 | ac_cv_lib_cfitsio_ffopen=no |
---|
| 4873 | fi |
---|
| 4874 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 4875 | LIBS=$ac_check_lib_save_LIBS |
---|
| 4876 | fi |
---|
| 4877 | echo "$as_me:$LINENO: result: $ac_cv_lib_cfitsio_ffopen" >&5 |
---|
| 4878 | echo "${ECHO_T}$ac_cv_lib_cfitsio_ffopen" >&6 |
---|
| 4879 | if test $ac_cv_lib_cfitsio_ffopen = yes; then |
---|
| 4880 | CFITSIOLIB="-lcfitsio $CFITSIOLIB" |
---|
| 4881 | fi |
---|
| 4882 | |
---|
| 4883 | |
---|
| 4884 | if test "x$CFITSIOINC" = x -o "x$CFITSIOLIB" = x; then |
---|
| 4885 | { { echo "$as_me:$LINENO: error: |
---|
| 4886 | ------------------------------------------------------- |
---|
| 4887 | Could not find the CFITSIO library. |
---|
| 4888 | |
---|
| 4889 | ERROR: Duchamp configuration failure. |
---|
| 4890 | -------------------------------------------------------" >&5 |
---|
| 4891 | echo "$as_me: error: |
---|
| 4892 | ------------------------------------------------------- |
---|
| 4893 | Could not find the CFITSIO library. |
---|
| 4894 | |
---|
| 4895 | ERROR: Duchamp configuration failure. |
---|
| 4896 | -------------------------------------------------------" >&2;} |
---|
| 4897 | { (exit 1); exit 1; }; } |
---|
| 4898 | else |
---|
| 4899 | for LIBDIR in $LIBDIRS ; do |
---|
| 4900 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
| 4901 | echo "$as_me:$LINENO: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
| 4902 | echo $ECHO_N "checking for $LIBDIR/libcfitsio.a... $ECHO_C" >&6 |
---|
| 4903 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 4904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4905 | else |
---|
| 4906 | test "$cross_compiling" = yes && |
---|
| 4907 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 4908 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 4909 | { (exit 1); exit 1; }; } |
---|
| 4910 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
| 4911 | eval "$as_ac_File=yes" |
---|
| 4912 | else |
---|
| 4913 | eval "$as_ac_File=no" |
---|
| 4914 | fi |
---|
| 4915 | fi |
---|
| 4916 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 4917 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 4918 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 4919 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
| 4920 | fi |
---|
| 4921 | |
---|
| 4922 | LIBDIR=$LIBDIR/cfitsio |
---|
| 4923 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh` |
---|
| 4924 | echo "$as_me:$LINENO: checking for $LIBDIR/libcfitsio.a" >&5 |
---|
| 4925 | echo $ECHO_N "checking for $LIBDIR/libcfitsio.a... $ECHO_C" >&6 |
---|
| 4926 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 4927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4928 | else |
---|
| 4929 | test "$cross_compiling" = yes && |
---|
| 4930 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 4931 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 4932 | { (exit 1); exit 1; }; } |
---|
| 4933 | if test -r "$LIBDIR/libcfitsio.a"; then |
---|
| 4934 | eval "$as_ac_File=yes" |
---|
| 4935 | else |
---|
| 4936 | eval "$as_ac_File=no" |
---|
| 4937 | fi |
---|
| 4938 | fi |
---|
| 4939 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 4940 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 4941 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 4942 | CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break |
---|
| 4943 | fi |
---|
| 4944 | |
---|
| 4945 | done |
---|
| 4946 | { echo "$as_me:$LINENO: CFITSIO appears to be available." >&5 |
---|
| 4947 | echo "$as_me: CFITSIO appears to be available." >&6;} |
---|
| 4948 | |
---|
| 4949 | cat >>confdefs.h <<\_ACEOF |
---|
| 4950 | #define HAVE_CFITSIO 1 |
---|
| 4951 | _ACEOF |
---|
| 4952 | |
---|
| 4953 | fi |
---|
| 4954 | |
---|
| 4955 | |
---|
| 4956 | |
---|
| 4957 | ########################################################################## |
---|
| 4958 | |
---|
| 4959 | ########################################################################## |
---|
| 4960 | # Search for WCSLIB. |
---|
| 4961 | for INCDIR in $INCDIRS ; do |
---|
| 4962 | as_ac_File=`echo "ac_cv_file_$INCDIR/wcs.h" | $as_tr_sh` |
---|
| 4963 | echo "$as_me:$LINENO: checking for $INCDIR/wcs.h" >&5 |
---|
| 4964 | echo $ECHO_N "checking for $INCDIR/wcs.h... $ECHO_C" >&6 |
---|
| 4965 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 4966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4967 | else |
---|
| 4968 | test "$cross_compiling" = yes && |
---|
| 4969 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 4970 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 4971 | { (exit 1); exit 1; }; } |
---|
| 4972 | if test -r "$INCDIR/wcs.h"; then |
---|
| 4973 | eval "$as_ac_File=yes" |
---|
| 4974 | else |
---|
| 4975 | eval "$as_ac_File=no" |
---|
| 4976 | fi |
---|
| 4977 | fi |
---|
| 4978 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 4979 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 4980 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 4981 | WCSINC="-I$INCDIR $WCSINC"; break |
---|
| 4982 | fi |
---|
| 4983 | |
---|
| 4984 | INCDIR=$INCDIR/wcslib |
---|
| 4985 | as_ac_File=`echo "ac_cv_file_$INCDIR/wcs.h" | $as_tr_sh` |
---|
| 4986 | echo "$as_me:$LINENO: checking for $INCDIR/wcs.h" >&5 |
---|
| 4987 | echo $ECHO_N "checking for $INCDIR/wcs.h... $ECHO_C" >&6 |
---|
| 4988 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 4989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4990 | else |
---|
| 4991 | test "$cross_compiling" = yes && |
---|
| 4992 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 4993 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 4994 | { (exit 1); exit 1; }; } |
---|
| 4995 | if test -r "$INCDIR/wcs.h"; then |
---|
| 4996 | eval "$as_ac_File=yes" |
---|
| 4997 | else |
---|
| 4998 | eval "$as_ac_File=no" |
---|
| 4999 | fi |
---|
| 5000 | fi |
---|
| 5001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5002 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5003 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 5004 | WCSINC="-I$INCDIR $WCSINC"; break |
---|
| 5005 | fi |
---|
| 5006 | |
---|
| 5007 | done |
---|
| 5008 | for INCDIR in $INCDIRS ; do |
---|
| 5009 | as_ac_File=`echo "ac_cv_file_$INCDIR/cpgsbox.h" | $as_tr_sh` |
---|
| 5010 | echo "$as_me:$LINENO: checking for $INCDIR/cpgsbox.h" >&5 |
---|
| 5011 | echo $ECHO_N "checking for $INCDIR/cpgsbox.h... $ECHO_C" >&6 |
---|
| 5012 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5014 | else |
---|
| 5015 | test "$cross_compiling" = yes && |
---|
| 5016 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5017 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5018 | { (exit 1); exit 1; }; } |
---|
| 5019 | if test -r "$INCDIR/cpgsbox.h"; then |
---|
| 5020 | eval "$as_ac_File=yes" |
---|
| 5021 | else |
---|
| 5022 | eval "$as_ac_File=no" |
---|
| 5023 | fi |
---|
| 5024 | fi |
---|
| 5025 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5026 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5027 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 5028 | WCSINC="-I$INCDIR $WCSINC"; break |
---|
| 5029 | fi |
---|
| 5030 | |
---|
| 5031 | INCDIR=$INCDIR/wcslib |
---|
| 5032 | as_ac_File=`echo "ac_cv_file_$INCDIR/cpgsbox.h" | $as_tr_sh` |
---|
| 5033 | echo "$as_me:$LINENO: checking for $INCDIR/cpgsbox.h" >&5 |
---|
| 5034 | echo $ECHO_N "checking for $INCDIR/cpgsbox.h... $ECHO_C" >&6 |
---|
| 5035 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5037 | else |
---|
| 5038 | test "$cross_compiling" = yes && |
---|
| 5039 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5040 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5041 | { (exit 1); exit 1; }; } |
---|
| 5042 | if test -r "$INCDIR/cpgsbox.h"; then |
---|
| 5043 | eval "$as_ac_File=yes" |
---|
| 5044 | else |
---|
| 5045 | eval "$as_ac_File=no" |
---|
| 5046 | fi |
---|
| 5047 | fi |
---|
| 5048 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5049 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5050 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 5051 | WCSINC="-I$INCDIR $WCSINC"; break |
---|
| 5052 | fi |
---|
| 5053 | |
---|
| 5054 | done |
---|
| 5055 | |
---|
| 5056 | echo "$as_me:$LINENO: checking for wcss2p in -lwcs" >&5 |
---|
| 5057 | echo $ECHO_N "checking for wcss2p in -lwcs... $ECHO_C" >&6 |
---|
| 5058 | if test "${ac_cv_lib_wcs_wcss2p+set}" = set; then |
---|
| 5059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5060 | else |
---|
| 5061 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5062 | LIBS="-lwcs $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
| 5063 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5064 | #line $LINENO "configure" |
---|
| 5065 | /* confdefs.h. */ |
---|
| 5066 | _ACEOF |
---|
| 5067 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5068 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5069 | /* end confdefs.h. */ |
---|
| 5070 | |
---|
| 5071 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5072 | #ifdef __cplusplus |
---|
| 5073 | extern "C" |
---|
| 5074 | #endif |
---|
| 5075 | /* We use char because int might match the return type of a gcc2 |
---|
| 5076 | builtin and then its argument prototype would still apply. */ |
---|
| 5077 | char wcss2p (); |
---|
| 5078 | int |
---|
| 5079 | main () |
---|
| 5080 | { |
---|
| 5081 | wcss2p (); |
---|
| 5082 | ; |
---|
| 5083 | return 0; |
---|
| 5084 | } |
---|
| 5085 | _ACEOF |
---|
| 5086 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5088 | (eval $ac_link) 2>&5 |
---|
| 5089 | ac_status=$? |
---|
| 5090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5091 | (exit $ac_status); } && |
---|
| 5092 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5094 | (eval $ac_try) 2>&5 |
---|
| 5095 | ac_status=$? |
---|
| 5096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5097 | (exit $ac_status); }; }; then |
---|
| 5098 | ac_cv_lib_wcs_wcss2p=yes |
---|
| 5099 | else |
---|
| 5100 | echo "$as_me: failed program was:" >&5 |
---|
| 5101 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5102 | |
---|
| 5103 | ac_cv_lib_wcs_wcss2p=no |
---|
| 5104 | fi |
---|
| 5105 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 5106 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5107 | fi |
---|
| 5108 | echo "$as_me:$LINENO: result: $ac_cv_lib_wcs_wcss2p" >&5 |
---|
| 5109 | echo "${ECHO_T}$ac_cv_lib_wcs_wcss2p" >&6 |
---|
| 5110 | if test $ac_cv_lib_wcs_wcss2p = yes; then |
---|
| 5111 | WCSLIB="-lwcs $WCSLIB" |
---|
| 5112 | fi |
---|
| 5113 | |
---|
| 5114 | echo "$as_me:$LINENO: checking for cpgsbox in -lpgsbox" >&5 |
---|
| 5115 | echo $ECHO_N "checking for cpgsbox in -lpgsbox... $ECHO_C" >&6 |
---|
| 5116 | if test "${ac_cv_lib_pgsbox_cpgsbox+set}" = set; then |
---|
| 5117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5118 | else |
---|
| 5119 | ac_check_lib_save_LIBS=$LIBS |
---|
| 5120 | LIBS="-lpgsbox $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS" |
---|
| 5121 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5122 | #line $LINENO "configure" |
---|
| 5123 | /* confdefs.h. */ |
---|
| 5124 | _ACEOF |
---|
| 5125 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5126 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5127 | /* end confdefs.h. */ |
---|
| 5128 | |
---|
| 5129 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5130 | #ifdef __cplusplus |
---|
| 5131 | extern "C" |
---|
| 5132 | #endif |
---|
| 5133 | /* We use char because int might match the return type of a gcc2 |
---|
| 5134 | builtin and then its argument prototype would still apply. */ |
---|
| 5135 | char cpgsbox (); |
---|
| 5136 | int |
---|
| 5137 | main () |
---|
| 5138 | { |
---|
| 5139 | cpgsbox (); |
---|
| 5140 | ; |
---|
| 5141 | return 0; |
---|
| 5142 | } |
---|
| 5143 | _ACEOF |
---|
| 5144 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5146 | (eval $ac_link) 2>&5 |
---|
| 5147 | ac_status=$? |
---|
| 5148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5149 | (exit $ac_status); } && |
---|
| 5150 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5152 | (eval $ac_try) 2>&5 |
---|
| 5153 | ac_status=$? |
---|
| 5154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5155 | (exit $ac_status); }; }; then |
---|
| 5156 | ac_cv_lib_pgsbox_cpgsbox=yes |
---|
| 5157 | else |
---|
| 5158 | echo "$as_me: failed program was:" >&5 |
---|
| 5159 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5160 | |
---|
| 5161 | ac_cv_lib_pgsbox_cpgsbox=no |
---|
| 5162 | fi |
---|
| 5163 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 5164 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5165 | fi |
---|
| 5166 | echo "$as_me:$LINENO: result: $ac_cv_lib_pgsbox_cpgsbox" >&5 |
---|
| 5167 | echo "${ECHO_T}$ac_cv_lib_pgsbox_cpgsbox" >&6 |
---|
| 5168 | if test $ac_cv_lib_pgsbox_cpgsbox = yes; then |
---|
| 5169 | WCSLIB="-lpgsbox $WCSLIB" |
---|
| 5170 | fi |
---|
| 5171 | |
---|
| 5172 | |
---|
| 5173 | if test "x$WCSINC" = x -o "x$WCSLIB" = x; then |
---|
| 5174 | { { echo "$as_me:$LINENO: error: |
---|
| 5175 | ------------------------------------------------------- |
---|
| 5176 | Could not find the WCSLIB library. |
---|
| 5177 | |
---|
| 5178 | ERROR: Duchamp configuration failure. |
---|
| 5179 | -------------------------------------------------------" >&5 |
---|
| 5180 | echo "$as_me: error: |
---|
| 5181 | ------------------------------------------------------- |
---|
| 5182 | Could not find the WCSLIB library. |
---|
| 5183 | |
---|
| 5184 | ERROR: Duchamp configuration failure. |
---|
| 5185 | -------------------------------------------------------" >&2;} |
---|
| 5186 | { (exit 1); exit 1; }; } |
---|
| 5187 | else |
---|
[110] | 5188 | for LIBDIR in $LIBDIRS ; do |
---|
| 5189 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libwcs.a" | $as_tr_sh` |
---|
| 5190 | echo "$as_me:$LINENO: checking for $LIBDIR/libwcs.a" >&5 |
---|
| 5191 | echo $ECHO_N "checking for $LIBDIR/libwcs.a... $ECHO_C" >&6 |
---|
| 5192 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5194 | else |
---|
| 5195 | test "$cross_compiling" = yes && |
---|
| 5196 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5197 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5198 | { (exit 1); exit 1; }; } |
---|
| 5199 | if test -r "$LIBDIR/libwcs.a"; then |
---|
| 5200 | eval "$as_ac_File=yes" |
---|
| 5201 | else |
---|
| 5202 | eval "$as_ac_File=no" |
---|
| 5203 | fi |
---|
| 5204 | fi |
---|
| 5205 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5206 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5207 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 5208 | WCSLIB="-L$LIBDIR $WCSLIB"; break |
---|
| 5209 | fi |
---|
| 5210 | |
---|
| 5211 | LIBDIR=$LIBDIR/wcs |
---|
| 5212 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libwcs.a" | $as_tr_sh` |
---|
| 5213 | echo "$as_me:$LINENO: checking for $LIBDIR/libwcs.a" >&5 |
---|
| 5214 | echo $ECHO_N "checking for $LIBDIR/libwcs.a... $ECHO_C" >&6 |
---|
| 5215 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5217 | else |
---|
| 5218 | test "$cross_compiling" = yes && |
---|
| 5219 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5220 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5221 | { (exit 1); exit 1; }; } |
---|
| 5222 | if test -r "$LIBDIR/libwcs.a"; then |
---|
| 5223 | eval "$as_ac_File=yes" |
---|
| 5224 | else |
---|
| 5225 | eval "$as_ac_File=no" |
---|
| 5226 | fi |
---|
| 5227 | fi |
---|
| 5228 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5229 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5230 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 5231 | WCSLIB="-L$LIBDIR $WCSLIB"; break |
---|
| 5232 | fi |
---|
| 5233 | |
---|
| 5234 | done |
---|
| 5235 | for LIBDIR in $LIBDIRS ; do |
---|
| 5236 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libpgsbox.a" | $as_tr_sh` |
---|
| 5237 | echo "$as_me:$LINENO: checking for $LIBDIR/libpgsbox.a" >&5 |
---|
| 5238 | echo $ECHO_N "checking for $LIBDIR/libpgsbox.a... $ECHO_C" >&6 |
---|
| 5239 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5241 | else |
---|
| 5242 | test "$cross_compiling" = yes && |
---|
| 5243 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5244 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5245 | { (exit 1); exit 1; }; } |
---|
| 5246 | if test -r "$LIBDIR/libpgsbox.a"; then |
---|
| 5247 | eval "$as_ac_File=yes" |
---|
| 5248 | else |
---|
| 5249 | eval "$as_ac_File=no" |
---|
| 5250 | fi |
---|
| 5251 | fi |
---|
| 5252 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5253 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5254 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 5255 | WCSLIB="-L$LIBDIR $WCSLIB"; break |
---|
| 5256 | fi |
---|
| 5257 | |
---|
| 5258 | LIBDIR=$LIBDIR/wcs |
---|
| 5259 | as_ac_File=`echo "ac_cv_file_$LIBDIR/libpgsbox.a" | $as_tr_sh` |
---|
| 5260 | echo "$as_me:$LINENO: checking for $LIBDIR/libpgsbox.a" >&5 |
---|
| 5261 | echo $ECHO_N "checking for $LIBDIR/libpgsbox.a... $ECHO_C" >&6 |
---|
| 5262 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
---|
| 5263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5264 | else |
---|
| 5265 | test "$cross_compiling" = yes && |
---|
| 5266 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
---|
| 5267 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
---|
| 5268 | { (exit 1); exit 1; }; } |
---|
| 5269 | if test -r "$LIBDIR/libpgsbox.a"; then |
---|
| 5270 | eval "$as_ac_File=yes" |
---|
| 5271 | else |
---|
| 5272 | eval "$as_ac_File=no" |
---|
| 5273 | fi |
---|
| 5274 | fi |
---|
| 5275 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
---|
| 5276 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
---|
| 5277 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
---|
| 5278 | WCSLIB="-L$LIBDIR $WCSLIB"; break |
---|
| 5279 | fi |
---|
| 5280 | |
---|
| 5281 | done |
---|
[107] | 5282 | { echo "$as_me:$LINENO: WCSLIB appears to be available." >&5 |
---|
| 5283 | echo "$as_me: WCSLIB appears to be available." >&6;} |
---|
| 5284 | |
---|
| 5285 | cat >>confdefs.h <<\_ACEOF |
---|
| 5286 | #define HAVE_WCSLIB 1 |
---|
| 5287 | _ACEOF |
---|
| 5288 | |
---|
| 5289 | fi |
---|
| 5290 | |
---|
| 5291 | |
---|
| 5292 | |
---|
| 5293 | ########################################################################## |
---|
| 5294 | |
---|
| 5295 | |
---|
| 5296 | |
---|
| 5297 | ac_config_files="$ac_config_files Makefile" |
---|
| 5298 | |
---|
| 5299 | cat >confcache <<\_ACEOF |
---|
| 5300 | # This file is a shell script that caches the results of configure |
---|
| 5301 | # tests run on this system so they can be shared between configure |
---|
| 5302 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 5303 | # It is not useful on other systems. If it contains results you don't |
---|
| 5304 | # want to keep, you may remove or edit it. |
---|
| 5305 | # |
---|
| 5306 | # config.status only pays attention to the cache file if you give it |
---|
| 5307 | # the --recheck option to rerun configure. |
---|
| 5308 | # |
---|
| 5309 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 5310 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 5311 | # following values. |
---|
| 5312 | |
---|
| 5313 | _ACEOF |
---|
| 5314 | |
---|
| 5315 | # The following way of writing the cache mishandles newlines in values, |
---|
| 5316 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 5317 | # So, don't put newlines in cache variables' values. |
---|
| 5318 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 5319 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 5320 | { |
---|
| 5321 | (set) 2>&1 | |
---|
| 5322 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 5323 | *ac_space=\ *) |
---|
| 5324 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 5325 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 5326 | sed -n \ |
---|
| 5327 | "s/'/'\\\\''/g; |
---|
| 5328 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 5329 | ;; |
---|
| 5330 | *) |
---|
| 5331 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 5332 | sed -n \ |
---|
| 5333 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 5334 | ;; |
---|
| 5335 | esac; |
---|
| 5336 | } | |
---|
| 5337 | sed ' |
---|
| 5338 | t clear |
---|
| 5339 | : clear |
---|
| 5340 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 5341 | t end |
---|
| 5342 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 5343 | : end' >>confcache |
---|
| 5344 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 5345 | if test -w $cache_file; then |
---|
| 5346 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 5347 | cat confcache >$cache_file |
---|
| 5348 | else |
---|
| 5349 | echo "not updating unwritable cache $cache_file" |
---|
| 5350 | fi |
---|
| 5351 | fi |
---|
| 5352 | rm -f confcache |
---|
| 5353 | |
---|
| 5354 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 5355 | # Let make expand exec_prefix. |
---|
| 5356 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 5357 | |
---|
| 5358 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 5359 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 5360 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 5361 | # (actually we leave an empty line to preserve line numbers). |
---|
| 5362 | if test "x$srcdir" = x.; then |
---|
| 5363 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 5364 | s/:*\$(srcdir):*/:/; |
---|
| 5365 | s/:*\${srcdir}:*/:/; |
---|
| 5366 | s/:*@srcdir@:*/:/; |
---|
| 5367 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 5368 | s/:*$//; |
---|
| 5369 | s/^[^=]*=[ ]*$//; |
---|
| 5370 | }' |
---|
| 5371 | fi |
---|
| 5372 | |
---|
| 5373 | DEFS=-DHAVE_CONFIG_H |
---|
| 5374 | |
---|
| 5375 | ac_libobjs= |
---|
| 5376 | ac_ltlibobjs= |
---|
| 5377 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 5378 | # 1. Remove the extension, and $U if already installed. |
---|
| 5379 | ac_i=`echo "$ac_i" | |
---|
| 5380 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 5381 | # 2. Add them. |
---|
| 5382 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 5383 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 5384 | done |
---|
| 5385 | LIBOBJS=$ac_libobjs |
---|
| 5386 | |
---|
| 5387 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 5388 | |
---|
| 5389 | |
---|
| 5390 | |
---|
| 5391 | : ${CONFIG_STATUS=./config.status} |
---|
| 5392 | ac_clean_files_save=$ac_clean_files |
---|
| 5393 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 5394 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 5395 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 5396 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 5397 | #! $SHELL |
---|
| 5398 | # Generated by $as_me. |
---|
| 5399 | # Run this file to recreate the current configuration. |
---|
| 5400 | # Compiler output produced by configure, useful for debugging |
---|
| 5401 | # configure, is in config.log if it exists. |
---|
| 5402 | |
---|
| 5403 | debug=false |
---|
| 5404 | ac_cs_recheck=false |
---|
| 5405 | ac_cs_silent=false |
---|
| 5406 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 5407 | _ACEOF |
---|
| 5408 | |
---|
| 5409 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5410 | ## --------------------- ## |
---|
| 5411 | ## M4sh Initialization. ## |
---|
| 5412 | ## --------------------- ## |
---|
| 5413 | |
---|
| 5414 | # Be Bourne compatible |
---|
| 5415 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 5416 | emulate sh |
---|
| 5417 | NULLCMD=: |
---|
| 5418 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 5419 | # is contrary to our usage. Disable this feature. |
---|
| 5420 | alias -g '${1+"$@"}'='"$@"' |
---|
| 5421 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 5422 | set -o posix |
---|
| 5423 | fi |
---|
| 5424 | |
---|
| 5425 | # Support unset when possible. |
---|
| 5426 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
| 5427 | as_unset=unset |
---|
| 5428 | else |
---|
| 5429 | as_unset=false |
---|
| 5430 | fi |
---|
| 5431 | |
---|
| 5432 | |
---|
| 5433 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 5434 | $as_unset ENV MAIL MAILPATH |
---|
| 5435 | PS1='$ ' |
---|
| 5436 | PS2='> ' |
---|
| 5437 | PS4='+ ' |
---|
| 5438 | |
---|
| 5439 | # NLS nuisances. |
---|
| 5440 | for as_var in \ |
---|
| 5441 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 5442 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 5443 | LC_TELEPHONE LC_TIME |
---|
| 5444 | do |
---|
| 5445 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 5446 | eval $as_var=C; export $as_var |
---|
| 5447 | else |
---|
| 5448 | $as_unset $as_var |
---|
| 5449 | fi |
---|
| 5450 | done |
---|
| 5451 | |
---|
| 5452 | # Required to use basename. |
---|
| 5453 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 5454 | as_expr=expr |
---|
| 5455 | else |
---|
| 5456 | as_expr=false |
---|
| 5457 | fi |
---|
| 5458 | |
---|
| 5459 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 5460 | as_basename=basename |
---|
| 5461 | else |
---|
| 5462 | as_basename=false |
---|
| 5463 | fi |
---|
| 5464 | |
---|
| 5465 | |
---|
| 5466 | # Name of the executable. |
---|
| 5467 | as_me=`$as_basename "$0" || |
---|
| 5468 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 5469 | X"$0" : 'X\(//\)$' \| \ |
---|
| 5470 | X"$0" : 'X\(/\)$' \| \ |
---|
| 5471 | . : '\(.\)' 2>/dev/null || |
---|
| 5472 | echo X/"$0" | |
---|
| 5473 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 5474 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 5475 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 5476 | s/.*/./; q'` |
---|
| 5477 | |
---|
| 5478 | |
---|
| 5479 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 5480 | # Avoid depending upon Character Ranges. |
---|
| 5481 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 5482 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 5483 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 5484 | as_cr_digits='0123456789' |
---|
| 5485 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 5486 | |
---|
| 5487 | # The user is always right. |
---|
| 5488 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 5489 | echo "#! /bin/sh" >conf$$.sh |
---|
| 5490 | echo "exit 0" >>conf$$.sh |
---|
| 5491 | chmod +x conf$$.sh |
---|
| 5492 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 5493 | PATH_SEPARATOR=';' |
---|
| 5494 | else |
---|
| 5495 | PATH_SEPARATOR=: |
---|
| 5496 | fi |
---|
| 5497 | rm -f conf$$.sh |
---|
| 5498 | fi |
---|
| 5499 | |
---|
| 5500 | |
---|
| 5501 | as_lineno_1=$LINENO |
---|
| 5502 | as_lineno_2=$LINENO |
---|
| 5503 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 5504 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 5505 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 5506 | # Find who we are. Look in the path if we contain no path at all |
---|
| 5507 | # relative or not. |
---|
| 5508 | case $0 in |
---|
| 5509 | *[\\/]* ) as_myself=$0 ;; |
---|
| 5510 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5511 | for as_dir in $PATH |
---|
| 5512 | do |
---|
| 5513 | IFS=$as_save_IFS |
---|
| 5514 | test -z "$as_dir" && as_dir=. |
---|
| 5515 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 5516 | done |
---|
| 5517 | |
---|
| 5518 | ;; |
---|
| 5519 | esac |
---|
| 5520 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 5521 | # in which case we are not to be found in the path. |
---|
| 5522 | if test "x$as_myself" = x; then |
---|
| 5523 | as_myself=$0 |
---|
| 5524 | fi |
---|
| 5525 | if test ! -f "$as_myself"; then |
---|
| 5526 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 5527 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 5528 | { (exit 1); exit 1; }; } |
---|
| 5529 | fi |
---|
| 5530 | case $CONFIG_SHELL in |
---|
| 5531 | '') |
---|
| 5532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5533 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 5534 | do |
---|
| 5535 | IFS=$as_save_IFS |
---|
| 5536 | test -z "$as_dir" && as_dir=. |
---|
| 5537 | for as_base in sh bash ksh sh5; do |
---|
| 5538 | case $as_dir in |
---|
| 5539 | /*) |
---|
| 5540 | if ("$as_dir/$as_base" -c ' |
---|
| 5541 | as_lineno_1=$LINENO |
---|
| 5542 | as_lineno_2=$LINENO |
---|
| 5543 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 5544 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 5545 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 5546 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 5547 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 5548 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 5549 | export CONFIG_SHELL |
---|
| 5550 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 5551 | fi;; |
---|
| 5552 | esac |
---|
| 5553 | done |
---|
| 5554 | done |
---|
| 5555 | ;; |
---|
| 5556 | esac |
---|
| 5557 | |
---|
| 5558 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 5559 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 5560 | # line-number line before each line; the second 'sed' does the real |
---|
| 5561 | # work. The second script uses 'N' to pair each line-number line |
---|
| 5562 | # with the numbered line, and appends trailing '-' during |
---|
| 5563 | # substitution so that $LINENO is not a special case at line end. |
---|
| 5564 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 5565 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 5566 | sed '=' <$as_myself | |
---|
| 5567 | sed ' |
---|
| 5568 | N |
---|
| 5569 | s,$,-, |
---|
| 5570 | : loop |
---|
| 5571 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 5572 | t loop |
---|
| 5573 | s,-$,, |
---|
| 5574 | s,^['$as_cr_digits']*\n,, |
---|
| 5575 | ' >$as_me.lineno && |
---|
| 5576 | chmod +x $as_me.lineno || |
---|
| 5577 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 5578 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 5579 | { (exit 1); exit 1; }; } |
---|
| 5580 | |
---|
| 5581 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 5582 | # (the dirname of $[0] is not the place where we might find the |
---|
| 5583 | # original and so on. Autoconf is especially sensible to this). |
---|
| 5584 | . ./$as_me.lineno |
---|
| 5585 | # Exit status is that of the last command. |
---|
| 5586 | exit |
---|
| 5587 | } |
---|
| 5588 | |
---|
| 5589 | |
---|
| 5590 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 5591 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 5592 | ' ECHO_T=' ' ;; |
---|
| 5593 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 5594 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 5595 | esac |
---|
| 5596 | |
---|
| 5597 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 5598 | as_expr=expr |
---|
| 5599 | else |
---|
| 5600 | as_expr=false |
---|
| 5601 | fi |
---|
| 5602 | |
---|
| 5603 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 5604 | echo >conf$$.file |
---|
| 5605 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 5606 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 5607 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 5608 | if test -f conf$$.exe; then |
---|
| 5609 | # Don't use ln at all; we don't have any links |
---|
| 5610 | as_ln_s='cp -p' |
---|
| 5611 | else |
---|
| 5612 | as_ln_s='ln -s' |
---|
| 5613 | fi |
---|
| 5614 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 5615 | as_ln_s=ln |
---|
| 5616 | else |
---|
| 5617 | as_ln_s='cp -p' |
---|
| 5618 | fi |
---|
| 5619 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 5620 | |
---|
| 5621 | if mkdir -p . 2>/dev/null; then |
---|
| 5622 | as_mkdir_p=: |
---|
| 5623 | else |
---|
| 5624 | as_mkdir_p=false |
---|
| 5625 | fi |
---|
| 5626 | |
---|
| 5627 | as_executable_p="test -f" |
---|
| 5628 | |
---|
| 5629 | # Sed expression to map a string onto a valid CPP name. |
---|
| 5630 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
| 5631 | |
---|
| 5632 | # Sed expression to map a string onto a valid variable name. |
---|
| 5633 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
| 5634 | |
---|
| 5635 | |
---|
| 5636 | # IFS |
---|
| 5637 | # We need space, tab and new line, in precisely that order. |
---|
| 5638 | as_nl=' |
---|
| 5639 | ' |
---|
| 5640 | IFS=" $as_nl" |
---|
| 5641 | |
---|
| 5642 | # CDPATH. |
---|
| 5643 | $as_unset CDPATH |
---|
| 5644 | |
---|
| 5645 | exec 6>&1 |
---|
| 5646 | |
---|
| 5647 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 5648 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 5649 | # values after options handling. Logging --version etc. is OK. |
---|
| 5650 | exec 5>>config.log |
---|
| 5651 | { |
---|
| 5652 | echo |
---|
| 5653 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 5654 | ## Running $as_me. ## |
---|
| 5655 | _ASBOX |
---|
| 5656 | } >&5 |
---|
| 5657 | cat >&5 <<_CSEOF |
---|
| 5658 | |
---|
[259] | 5659 | This file was extended by Duchamp $as_me 1.1b, which was |
---|
[107] | 5660 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
| 5661 | |
---|
| 5662 | CONFIG_FILES = $CONFIG_FILES |
---|
| 5663 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 5664 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 5665 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 5666 | $ $0 $@ |
---|
| 5667 | |
---|
| 5668 | _CSEOF |
---|
| 5669 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 5670 | echo >&5 |
---|
| 5671 | _ACEOF |
---|
| 5672 | |
---|
| 5673 | # Files that config.status was made for. |
---|
| 5674 | if test -n "$ac_config_files"; then |
---|
| 5675 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 5676 | fi |
---|
| 5677 | |
---|
| 5678 | if test -n "$ac_config_headers"; then |
---|
| 5679 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 5680 | fi |
---|
| 5681 | |
---|
| 5682 | if test -n "$ac_config_links"; then |
---|
| 5683 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 5684 | fi |
---|
| 5685 | |
---|
| 5686 | if test -n "$ac_config_commands"; then |
---|
| 5687 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 5688 | fi |
---|
| 5689 | |
---|
| 5690 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5691 | |
---|
| 5692 | ac_cs_usage="\ |
---|
| 5693 | \`$as_me' instantiates files from templates according to the |
---|
| 5694 | current configuration. |
---|
| 5695 | |
---|
| 5696 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 5697 | |
---|
| 5698 | -h, --help print this help, then exit |
---|
| 5699 | -V, --version print version number, then exit |
---|
| 5700 | -q, --quiet do not print progress messages |
---|
| 5701 | -d, --debug don't remove temporary files |
---|
| 5702 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 5703 | --file=FILE[:TEMPLATE] |
---|
| 5704 | instantiate the configuration file FILE |
---|
| 5705 | --header=FILE[:TEMPLATE] |
---|
| 5706 | instantiate the configuration header FILE |
---|
| 5707 | |
---|
| 5708 | Configuration files: |
---|
| 5709 | $config_files |
---|
| 5710 | |
---|
| 5711 | Configuration headers: |
---|
| 5712 | $config_headers |
---|
| 5713 | |
---|
| 5714 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 5715 | _ACEOF |
---|
| 5716 | |
---|
| 5717 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5718 | ac_cs_version="\\ |
---|
[259] | 5719 | Duchamp config.status 1.1b |
---|
[107] | 5720 | configured by $0, generated by GNU Autoconf 2.57, |
---|
| 5721 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 5722 | |
---|
| 5723 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
---|
| 5724 | Free Software Foundation, Inc. |
---|
| 5725 | This config.status script is free software; the Free Software Foundation |
---|
| 5726 | gives unlimited permission to copy, distribute and modify it." |
---|
| 5727 | srcdir=$srcdir |
---|
| 5728 | _ACEOF |
---|
| 5729 | |
---|
| 5730 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5731 | # If no file are specified by the user, then we need to provide default |
---|
| 5732 | # value. By we need to know if files were specified by the user. |
---|
| 5733 | ac_need_defaults=: |
---|
| 5734 | while test $# != 0 |
---|
| 5735 | do |
---|
| 5736 | case $1 in |
---|
| 5737 | --*=*) |
---|
| 5738 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 5739 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 5740 | ac_shift=: |
---|
| 5741 | ;; |
---|
| 5742 | -*) |
---|
| 5743 | ac_option=$1 |
---|
| 5744 | ac_optarg=$2 |
---|
| 5745 | ac_shift=shift |
---|
| 5746 | ;; |
---|
| 5747 | *) # This is not an option, so the user has probably given explicit |
---|
| 5748 | # arguments. |
---|
| 5749 | ac_option=$1 |
---|
| 5750 | ac_need_defaults=false;; |
---|
| 5751 | esac |
---|
| 5752 | |
---|
| 5753 | case $ac_option in |
---|
| 5754 | # Handling of the options. |
---|
| 5755 | _ACEOF |
---|
| 5756 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5757 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 5758 | ac_cs_recheck=: ;; |
---|
| 5759 | --version | --vers* | -V ) |
---|
| 5760 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 5761 | --he | --h) |
---|
| 5762 | # Conflict between --help and --header |
---|
| 5763 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 5764 | Try \`$0 --help' for more information." >&5 |
---|
| 5765 | echo "$as_me: error: ambiguous option: $1 |
---|
| 5766 | Try \`$0 --help' for more information." >&2;} |
---|
| 5767 | { (exit 1); exit 1; }; };; |
---|
| 5768 | --help | --hel | -h ) |
---|
| 5769 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 5770 | --debug | --d* | -d ) |
---|
| 5771 | debug=: ;; |
---|
| 5772 | --file | --fil | --fi | --f ) |
---|
| 5773 | $ac_shift |
---|
| 5774 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 5775 | ac_need_defaults=false;; |
---|
| 5776 | --header | --heade | --head | --hea ) |
---|
| 5777 | $ac_shift |
---|
| 5778 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 5779 | ac_need_defaults=false;; |
---|
| 5780 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 5781 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 5782 | ac_cs_silent=: ;; |
---|
| 5783 | |
---|
| 5784 | # This is an error. |
---|
| 5785 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 5786 | Try \`$0 --help' for more information." >&5 |
---|
| 5787 | echo "$as_me: error: unrecognized option: $1 |
---|
| 5788 | Try \`$0 --help' for more information." >&2;} |
---|
| 5789 | { (exit 1); exit 1; }; } ;; |
---|
| 5790 | |
---|
| 5791 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 5792 | |
---|
| 5793 | esac |
---|
| 5794 | shift |
---|
| 5795 | done |
---|
| 5796 | |
---|
| 5797 | ac_configure_extra_args= |
---|
| 5798 | |
---|
| 5799 | if $ac_cs_silent; then |
---|
| 5800 | exec 6>/dev/null |
---|
| 5801 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 5802 | fi |
---|
| 5803 | |
---|
| 5804 | _ACEOF |
---|
| 5805 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5806 | if \$ac_cs_recheck; then |
---|
| 5807 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 5808 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 5809 | fi |
---|
| 5810 | |
---|
| 5811 | _ACEOF |
---|
| 5812 | |
---|
| 5813 | |
---|
| 5814 | |
---|
| 5815 | |
---|
| 5816 | |
---|
| 5817 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5818 | for ac_config_target in $ac_config_targets |
---|
| 5819 | do |
---|
| 5820 | case "$ac_config_target" in |
---|
| 5821 | # Handling of arguments. |
---|
| 5822 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
[110] | 5823 | "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
---|
[107] | 5824 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 5825 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 5826 | { (exit 1); exit 1; }; };; |
---|
| 5827 | esac |
---|
| 5828 | done |
---|
| 5829 | |
---|
| 5830 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 5831 | # then the envvar interface is used. Set only those that are not. |
---|
| 5832 | # We use the long form for the default assignment because of an extremely |
---|
| 5833 | # bizarre bug on SunOS 4.1.3. |
---|
| 5834 | if $ac_need_defaults; then |
---|
| 5835 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 5836 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
| 5837 | fi |
---|
| 5838 | |
---|
| 5839 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 5840 | # simply because there is no reason to put it here, and in addition, |
---|
| 5841 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 5842 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 5843 | $debug || |
---|
| 5844 | { |
---|
| 5845 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 5846 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 5847 | } |
---|
| 5848 | |
---|
| 5849 | # Create a (secure) tmp directory for tmp files. |
---|
| 5850 | |
---|
| 5851 | { |
---|
| 5852 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 5853 | test -n "$tmp" && test -d "$tmp" |
---|
| 5854 | } || |
---|
| 5855 | { |
---|
| 5856 | tmp=./confstat$$-$RANDOM |
---|
| 5857 | (umask 077 && mkdir $tmp) |
---|
| 5858 | } || |
---|
| 5859 | { |
---|
| 5860 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 5861 | { (exit 1); exit 1; } |
---|
| 5862 | } |
---|
| 5863 | |
---|
| 5864 | _ACEOF |
---|
| 5865 | |
---|
| 5866 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5867 | |
---|
| 5868 | # |
---|
| 5869 | # CONFIG_FILES section. |
---|
| 5870 | # |
---|
| 5871 | |
---|
| 5872 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 5873 | # This happens for instance when ./config.status config.h |
---|
| 5874 | if test -n "\$CONFIG_FILES"; then |
---|
| 5875 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 5876 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 5877 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 5878 | s,@SHELL@,$SHELL,;t t |
---|
| 5879 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 5880 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 5881 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 5882 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 5883 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 5884 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 5885 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 5886 | s,@prefix@,$prefix,;t t |
---|
| 5887 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 5888 | s,@bindir@,$bindir,;t t |
---|
| 5889 | s,@sbindir@,$sbindir,;t t |
---|
| 5890 | s,@libexecdir@,$libexecdir,;t t |
---|
| 5891 | s,@datadir@,$datadir,;t t |
---|
| 5892 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 5893 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 5894 | s,@localstatedir@,$localstatedir,;t t |
---|
| 5895 | s,@libdir@,$libdir,;t t |
---|
| 5896 | s,@includedir@,$includedir,;t t |
---|
| 5897 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 5898 | s,@infodir@,$infodir,;t t |
---|
| 5899 | s,@mandir@,$mandir,;t t |
---|
| 5900 | s,@build_alias@,$build_alias,;t t |
---|
| 5901 | s,@host_alias@,$host_alias,;t t |
---|
| 5902 | s,@target_alias@,$target_alias,;t t |
---|
| 5903 | s,@DEFS@,$DEFS,;t t |
---|
| 5904 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 5905 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 5906 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 5907 | s,@LIBS@,$LIBS,;t t |
---|
| 5908 | s,@CXX@,$CXX,;t t |
---|
| 5909 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 5910 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 5911 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 5912 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 5913 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 5914 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 5915 | s,@CC@,$CC,;t t |
---|
| 5916 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 5917 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 5918 | s,@CPP@,$CPP,;t t |
---|
| 5919 | s,@EGREP@,$EGREP,;t t |
---|
[168] | 5920 | s,@RANLIB@,$RANLIB,;t t |
---|
| 5921 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
[107] | 5922 | s,@POW_LIB@,$POW_LIB,;t t |
---|
| 5923 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 5924 | s,@PGPLOTINC@,$PGPLOTINC,;t t |
---|
| 5925 | s,@PGPLOTLIB@,$PGPLOTLIB,;t t |
---|
| 5926 | s,@CFITSIOINC@,$CFITSIOINC,;t t |
---|
| 5927 | s,@CFITSIOLIB@,$CFITSIOLIB,;t t |
---|
| 5928 | s,@WCSINC@,$WCSINC,;t t |
---|
| 5929 | s,@WCSLIB@,$WCSLIB,;t t |
---|
| 5930 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 5931 | CEOF |
---|
| 5932 | |
---|
| 5933 | _ACEOF |
---|
| 5934 | |
---|
| 5935 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5936 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 5937 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 5938 | ac_max_sed_lines=48 |
---|
| 5939 | ac_sed_frag=1 # Number of current file. |
---|
| 5940 | ac_beg=1 # First line for current file. |
---|
| 5941 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 5942 | ac_more_lines=: |
---|
| 5943 | ac_sed_cmds= |
---|
| 5944 | while $ac_more_lines; do |
---|
| 5945 | if test $ac_beg -gt 1; then |
---|
| 5946 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 5947 | else |
---|
| 5948 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 5949 | fi |
---|
| 5950 | if test ! -s $tmp/subs.frag; then |
---|
| 5951 | ac_more_lines=false |
---|
| 5952 | else |
---|
| 5953 | # The purpose of the label and of the branching condition is to |
---|
| 5954 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 5955 | # is no need to browse any of the substitutions). |
---|
| 5956 | # These are the two extra sed commands mentioned above. |
---|
| 5957 | (echo ':t |
---|
| 5958 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 5959 | if test -z "$ac_sed_cmds"; then |
---|
| 5960 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 5961 | else |
---|
| 5962 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 5963 | fi |
---|
| 5964 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 5965 | ac_beg=$ac_end |
---|
| 5966 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 5967 | fi |
---|
| 5968 | done |
---|
| 5969 | if test -z "$ac_sed_cmds"; then |
---|
| 5970 | ac_sed_cmds=cat |
---|
| 5971 | fi |
---|
| 5972 | fi # test -n "$CONFIG_FILES" |
---|
| 5973 | |
---|
| 5974 | _ACEOF |
---|
| 5975 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5976 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 5977 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 5978 | case $ac_file in |
---|
| 5979 | - | *:- | *:-:* ) # input from stdin |
---|
| 5980 | cat >$tmp/stdin |
---|
| 5981 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 5982 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 5983 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 5984 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 5985 | * ) ac_file_in=$ac_file.in ;; |
---|
| 5986 | esac |
---|
| 5987 | |
---|
| 5988 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 5989 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 5990 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 5991 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 5992 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 5993 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 5994 | . : '\(.\)' 2>/dev/null || |
---|
| 5995 | echo X"$ac_file" | |
---|
| 5996 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 5997 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 5998 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 5999 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6000 | s/.*/./; q'` |
---|
| 6001 | { if $as_mkdir_p; then |
---|
| 6002 | mkdir -p "$ac_dir" |
---|
| 6003 | else |
---|
| 6004 | as_dir="$ac_dir" |
---|
| 6005 | as_dirs= |
---|
| 6006 | while test ! -d "$as_dir"; do |
---|
| 6007 | as_dirs="$as_dir $as_dirs" |
---|
| 6008 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 6009 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6010 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 6011 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 6012 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 6013 | . : '\(.\)' 2>/dev/null || |
---|
| 6014 | echo X"$as_dir" | |
---|
| 6015 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6016 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6017 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6018 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6019 | s/.*/./; q'` |
---|
| 6020 | done |
---|
| 6021 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 6022 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 6023 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 6024 | { (exit 1); exit 1; }; }; } |
---|
| 6025 | |
---|
| 6026 | ac_builddir=. |
---|
| 6027 | |
---|
| 6028 | if test "$ac_dir" != .; then |
---|
| 6029 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 6030 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 6031 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 6032 | else |
---|
| 6033 | ac_dir_suffix= ac_top_builddir= |
---|
| 6034 | fi |
---|
| 6035 | |
---|
| 6036 | case $srcdir in |
---|
| 6037 | .) # No --srcdir option. We are building in place. |
---|
| 6038 | ac_srcdir=. |
---|
| 6039 | if test -z "$ac_top_builddir"; then |
---|
| 6040 | ac_top_srcdir=. |
---|
| 6041 | else |
---|
| 6042 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 6043 | fi ;; |
---|
| 6044 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 6045 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 6046 | ac_top_srcdir=$srcdir ;; |
---|
| 6047 | *) # Relative path. |
---|
| 6048 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 6049 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 6050 | esac |
---|
| 6051 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
| 6052 | # absolute. |
---|
| 6053 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
| 6054 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
| 6055 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
| 6056 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
| 6057 | |
---|
| 6058 | |
---|
| 6059 | |
---|
| 6060 | if test x"$ac_file" != x-; then |
---|
| 6061 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 6062 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 6063 | rm -f "$ac_file" |
---|
| 6064 | fi |
---|
| 6065 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 6066 | # use $as_me), people would be surprised to read: |
---|
| 6067 | # /* config.h. Generated by config.status. */ |
---|
| 6068 | if test x"$ac_file" = x-; then |
---|
| 6069 | configure_input= |
---|
| 6070 | else |
---|
| 6071 | configure_input="$ac_file. " |
---|
| 6072 | fi |
---|
| 6073 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 6074 | sed 's,.*/,,'` by configure." |
---|
| 6075 | |
---|
| 6076 | # First look for the input files in the build tree, otherwise in the |
---|
| 6077 | # src tree. |
---|
| 6078 | ac_file_inputs=`IFS=: |
---|
| 6079 | for f in $ac_file_in; do |
---|
| 6080 | case $f in |
---|
| 6081 | -) echo $tmp/stdin ;; |
---|
| 6082 | [\\/$]*) |
---|
| 6083 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 6084 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 6085 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 6086 | { (exit 1); exit 1; }; } |
---|
| 6087 | echo $f;; |
---|
| 6088 | *) # Relative |
---|
| 6089 | if test -f "$f"; then |
---|
| 6090 | # Build tree |
---|
| 6091 | echo $f |
---|
| 6092 | elif test -f "$srcdir/$f"; then |
---|
| 6093 | # Source tree |
---|
| 6094 | echo $srcdir/$f |
---|
| 6095 | else |
---|
| 6096 | # /dev/null tree |
---|
| 6097 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 6098 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 6099 | { (exit 1); exit 1; }; } |
---|
| 6100 | fi;; |
---|
| 6101 | esac |
---|
| 6102 | done` || { (exit 1); exit 1; } |
---|
| 6103 | _ACEOF |
---|
| 6104 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6105 | sed "$ac_vpsub |
---|
| 6106 | $extrasub |
---|
| 6107 | _ACEOF |
---|
| 6108 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6109 | :t |
---|
| 6110 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 6111 | s,@configure_input@,$configure_input,;t t |
---|
| 6112 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 6113 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 6114 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 6115 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 6116 | s,@builddir@,$ac_builddir,;t t |
---|
| 6117 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 6118 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 6119 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 6120 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 6121 | rm -f $tmp/stdin |
---|
| 6122 | if test x"$ac_file" != x-; then |
---|
| 6123 | mv $tmp/out $ac_file |
---|
| 6124 | else |
---|
| 6125 | cat $tmp/out |
---|
| 6126 | rm -f $tmp/out |
---|
| 6127 | fi |
---|
| 6128 | |
---|
| 6129 | done |
---|
| 6130 | _ACEOF |
---|
| 6131 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6132 | |
---|
| 6133 | # |
---|
| 6134 | # CONFIG_HEADER section. |
---|
| 6135 | # |
---|
| 6136 | |
---|
| 6137 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 6138 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 6139 | # |
---|
| 6140 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 6141 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 6142 | ac_dB='[ ].*$,\1#\2' |
---|
| 6143 | ac_dC=' ' |
---|
| 6144 | ac_dD=',;t' |
---|
| 6145 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 6146 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 6147 | ac_uB='$,\1#\2define\3' |
---|
| 6148 | ac_uC=' ' |
---|
| 6149 | ac_uD=',;t' |
---|
| 6150 | |
---|
| 6151 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
| 6152 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 6153 | case $ac_file in |
---|
| 6154 | - | *:- | *:-:* ) # input from stdin |
---|
| 6155 | cat >$tmp/stdin |
---|
| 6156 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 6157 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 6158 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 6159 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 6160 | * ) ac_file_in=$ac_file.in ;; |
---|
| 6161 | esac |
---|
| 6162 | |
---|
| 6163 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 6164 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 6165 | |
---|
| 6166 | # First look for the input files in the build tree, otherwise in the |
---|
| 6167 | # src tree. |
---|
| 6168 | ac_file_inputs=`IFS=: |
---|
| 6169 | for f in $ac_file_in; do |
---|
| 6170 | case $f in |
---|
| 6171 | -) echo $tmp/stdin ;; |
---|
| 6172 | [\\/$]*) |
---|
| 6173 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 6174 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 6175 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 6176 | { (exit 1); exit 1; }; } |
---|
| 6177 | echo $f;; |
---|
| 6178 | *) # Relative |
---|
| 6179 | if test -f "$f"; then |
---|
| 6180 | # Build tree |
---|
| 6181 | echo $f |
---|
| 6182 | elif test -f "$srcdir/$f"; then |
---|
| 6183 | # Source tree |
---|
| 6184 | echo $srcdir/$f |
---|
| 6185 | else |
---|
| 6186 | # /dev/null tree |
---|
| 6187 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 6188 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 6189 | { (exit 1); exit 1; }; } |
---|
| 6190 | fi;; |
---|
| 6191 | esac |
---|
| 6192 | done` || { (exit 1); exit 1; } |
---|
| 6193 | # Remove the trailing spaces. |
---|
| 6194 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
| 6195 | |
---|
| 6196 | _ACEOF |
---|
| 6197 | |
---|
| 6198 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
| 6199 | # `conftest.undefs', that substitutes the proper values into |
---|
| 6200 | # config.h.in to produce config.h. The first handles `#define' |
---|
| 6201 | # templates, and the second `#undef' templates. |
---|
| 6202 | # And first: Protect against being on the right side of a sed subst in |
---|
| 6203 | # config.status. Protect against being in an unquoted here document |
---|
| 6204 | # in config.status. |
---|
| 6205 | rm -f conftest.defines conftest.undefs |
---|
| 6206 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
| 6207 | # Putting comments in sed scripts is not portable. |
---|
| 6208 | # |
---|
| 6209 | # `end' is used to avoid that the second main sed command (meant for |
---|
| 6210 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
| 6211 | # See the Autoconf documentation for `clear'. |
---|
| 6212 | cat >confdef2sed.sed <<\_ACEOF |
---|
| 6213 | s/[\\&,]/\\&/g |
---|
| 6214 | s,[\\$`],\\&,g |
---|
| 6215 | t clear |
---|
| 6216 | : clear |
---|
| 6217 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
| 6218 | t end |
---|
| 6219 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
| 6220 | : end |
---|
| 6221 | _ACEOF |
---|
| 6222 | # If some macros were called several times there might be several times |
---|
| 6223 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
| 6224 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
| 6225 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
| 6226 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
| 6227 | rm -f confdef2sed.sed |
---|
| 6228 | |
---|
| 6229 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 6230 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 6231 | # on some systems where configure will not decide to define it. |
---|
| 6232 | cat >>conftest.undefs <<\_ACEOF |
---|
| 6233 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
| 6234 | _ACEOF |
---|
| 6235 | |
---|
| 6236 | # Break up conftest.defines because some shells have a limit on the size |
---|
| 6237 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 6238 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
| 6239 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
| 6240 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
| 6241 | echo ' :' >>$CONFIG_STATUS |
---|
| 6242 | rm -f conftest.tail |
---|
| 6243 | while grep . conftest.defines >/dev/null |
---|
| 6244 | do |
---|
| 6245 | # Write a limited-size here document to $tmp/defines.sed. |
---|
| 6246 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 6247 | # Speed up: don't consider the non `#define' lines. |
---|
| 6248 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
| 6249 | # Work around the forget-to-reset-the-flag bug. |
---|
| 6250 | echo 't clr' >>$CONFIG_STATUS |
---|
| 6251 | echo ': clr' >>$CONFIG_STATUS |
---|
| 6252 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
| 6253 | echo 'CEOF |
---|
| 6254 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
| 6255 | rm -f $tmp/in |
---|
| 6256 | mv $tmp/out $tmp/in |
---|
| 6257 | ' >>$CONFIG_STATUS |
---|
| 6258 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
| 6259 | rm -f conftest.defines |
---|
| 6260 | mv conftest.tail conftest.defines |
---|
| 6261 | done |
---|
| 6262 | rm -f conftest.defines |
---|
| 6263 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
| 6264 | echo >>$CONFIG_STATUS |
---|
| 6265 | |
---|
| 6266 | # Break up conftest.undefs because some shells have a limit on the size |
---|
| 6267 | # of here documents, and old seds have small limits too (100 cmds). |
---|
| 6268 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
| 6269 | rm -f conftest.tail |
---|
| 6270 | while grep . conftest.undefs >/dev/null |
---|
| 6271 | do |
---|
| 6272 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
| 6273 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
| 6274 | # Speed up: don't consider the non `#undef' |
---|
| 6275 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
| 6276 | # Work around the forget-to-reset-the-flag bug. |
---|
| 6277 | echo 't clr' >>$CONFIG_STATUS |
---|
| 6278 | echo ': clr' >>$CONFIG_STATUS |
---|
| 6279 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
| 6280 | echo 'CEOF |
---|
| 6281 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
| 6282 | rm -f $tmp/in |
---|
| 6283 | mv $tmp/out $tmp/in |
---|
| 6284 | ' >>$CONFIG_STATUS |
---|
| 6285 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
| 6286 | rm -f conftest.undefs |
---|
| 6287 | mv conftest.tail conftest.undefs |
---|
| 6288 | done |
---|
| 6289 | rm -f conftest.undefs |
---|
| 6290 | |
---|
| 6291 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6292 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 6293 | # use $as_me), people would be surprised to read: |
---|
| 6294 | # /* config.h. Generated by config.status. */ |
---|
| 6295 | if test x"$ac_file" = x-; then |
---|
| 6296 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
| 6297 | else |
---|
| 6298 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
| 6299 | fi |
---|
| 6300 | cat $tmp/in >>$tmp/config.h |
---|
| 6301 | rm -f $tmp/in |
---|
| 6302 | if test x"$ac_file" != x-; then |
---|
| 6303 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
| 6304 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
| 6305 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
| 6306 | else |
---|
| 6307 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 6308 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6309 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 6310 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 6311 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 6312 | . : '\(.\)' 2>/dev/null || |
---|
| 6313 | echo X"$ac_file" | |
---|
| 6314 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6315 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6316 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6317 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6318 | s/.*/./; q'` |
---|
| 6319 | { if $as_mkdir_p; then |
---|
| 6320 | mkdir -p "$ac_dir" |
---|
| 6321 | else |
---|
| 6322 | as_dir="$ac_dir" |
---|
| 6323 | as_dirs= |
---|
| 6324 | while test ! -d "$as_dir"; do |
---|
| 6325 | as_dirs="$as_dir $as_dirs" |
---|
| 6326 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 6327 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6328 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 6329 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 6330 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 6331 | . : '\(.\)' 2>/dev/null || |
---|
| 6332 | echo X"$as_dir" | |
---|
| 6333 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6334 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6335 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6336 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6337 | s/.*/./; q'` |
---|
| 6338 | done |
---|
| 6339 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 6340 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 6341 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 6342 | { (exit 1); exit 1; }; }; } |
---|
| 6343 | |
---|
| 6344 | rm -f $ac_file |
---|
| 6345 | mv $tmp/config.h $ac_file |
---|
| 6346 | fi |
---|
| 6347 | else |
---|
| 6348 | cat $tmp/config.h |
---|
| 6349 | rm -f $tmp/config.h |
---|
| 6350 | fi |
---|
| 6351 | done |
---|
| 6352 | _ACEOF |
---|
| 6353 | |
---|
| 6354 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6355 | |
---|
| 6356 | { (exit 0); exit 0; } |
---|
| 6357 | _ACEOF |
---|
| 6358 | chmod +x $CONFIG_STATUS |
---|
| 6359 | ac_clean_files=$ac_clean_files_save |
---|
| 6360 | |
---|
| 6361 | |
---|
| 6362 | # configure is writing to config.log, and then calls config.status. |
---|
| 6363 | # config.status does its own redirection, appending to config.log. |
---|
| 6364 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 6365 | # by configure, so config.status won't be able to write to it; its |
---|
| 6366 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 6367 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 6368 | # appended to by config.status. When coming back to configure, we |
---|
| 6369 | # need to make the FD available again. |
---|
| 6370 | if test "$no_create" != yes; then |
---|
| 6371 | ac_cs_success=: |
---|
| 6372 | ac_config_status_args= |
---|
| 6373 | test "$silent" = yes && |
---|
| 6374 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 6375 | exec 5>/dev/null |
---|
| 6376 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 6377 | exec 5>>config.log |
---|
| 6378 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 6379 | # would make configure fail if this is the last instruction. |
---|
| 6380 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 6381 | fi |
---|
| 6382 | |
---|