| 1 | #! /bin/sh |
|---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
|---|
| 3 | # Generated by GNU Autoconf 2.59 for FULL-PACKAGE-NAME VERSION. |
|---|
| 4 | # |
|---|
| 5 | # Report bugs to <BUG-REPORT-ADDRESS>. |
|---|
| 6 | # |
|---|
| 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
|---|
| 8 | # This configure script is free software; the Free Software Foundation |
|---|
| 9 | # gives unlimited permission to copy, distribute and modify it. |
|---|
| 10 | ## --------------------- ## |
|---|
| 11 | ## M4sh Initialization. ## |
|---|
| 12 | ## --------------------- ## |
|---|
| 13 | |
|---|
| 14 | # Be Bourne compatible |
|---|
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|---|
| 16 | emulate sh |
|---|
| 17 | NULLCMD=: |
|---|
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|---|
| 19 | # is contrary to our usage. Disable this feature. |
|---|
| 20 | alias -g '${1+"$@"}'='"$@"' |
|---|
| 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
|---|
| 22 | set -o posix |
|---|
| 23 | fi |
|---|
| 24 | DUALCASE=1; export DUALCASE # for MKS sh |
|---|
| 25 | |
|---|
| 26 | # Support unset when possible. |
|---|
| 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|---|
| 28 | as_unset=unset |
|---|
| 29 | else |
|---|
| 30 | as_unset=false |
|---|
| 31 | fi |
|---|
| 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 -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|---|
| 47 | eval $as_var=C; export $as_var |
|---|
| 48 | else |
|---|
| 49 | $as_unset $as_var |
|---|
| 50 | fi |
|---|
| 51 | done |
|---|
| 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 | test -d ./-p && rmdir ./-p |
|---|
| 224 | as_mkdir_p=false |
|---|
| 225 | fi |
|---|
| 226 | |
|---|
| 227 | as_executable_p="test -f" |
|---|
| 228 | |
|---|
| 229 | # Sed expression to map a string onto a valid CPP name. |
|---|
| 230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|---|
| 231 | |
|---|
| 232 | # Sed expression to map a string onto a valid variable name. |
|---|
| 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|---|
| 234 | |
|---|
| 235 | |
|---|
| 236 | # IFS |
|---|
| 237 | # We need space, tab and new line, in precisely that order. |
|---|
| 238 | as_nl=' |
|---|
| 239 | ' |
|---|
| 240 | IFS=" $as_nl" |
|---|
| 241 | |
|---|
| 242 | # CDPATH. |
|---|
| 243 | $as_unset CDPATH |
|---|
| 244 | |
|---|
| 245 | |
|---|
| 246 | # Name of the host. |
|---|
| 247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
|---|
| 248 | # so uname gets run too. |
|---|
| 249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|---|
| 250 | |
|---|
| 251 | exec 6>&1 |
|---|
| 252 | |
|---|
| 253 | # |
|---|
| 254 | # Initializations. |
|---|
| 255 | # |
|---|
| 256 | ac_default_prefix=/usr/local |
|---|
| 257 | ac_config_libobj_dir=. |
|---|
| 258 | cross_compiling=no |
|---|
| 259 | subdirs= |
|---|
| 260 | MFLAGS= |
|---|
| 261 | MAKEFLAGS= |
|---|
| 262 | SHELL=${CONFIG_SHELL-/bin/sh} |
|---|
| 263 | |
|---|
| 264 | # Maximum number of lines to put in a shell here document. |
|---|
| 265 | # This variable seems obsolete. It should probably be removed, and |
|---|
| 266 | # only ac_max_sed_lines should be used. |
|---|
| 267 | : ${ac_max_here_lines=38} |
|---|
| 268 | |
|---|
| 269 | # Identity of this package. |
|---|
| 270 | PACKAGE_NAME='FULL-PACKAGE-NAME' |
|---|
| 271 | PACKAGE_TARNAME='full-package-name' |
|---|
| 272 | PACKAGE_VERSION='VERSION' |
|---|
| 273 | PACKAGE_STRING='FULL-PACKAGE-NAME VERSION' |
|---|
| 274 | PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS' |
|---|
| 275 | |
|---|
| 276 | ac_unique_file="src/main.c" |
|---|
| 277 | # Factoring default headers for most tests. |
|---|
| 278 | ac_includes_default="\ |
|---|
| 279 | #include <stdio.h> |
|---|
| 280 | #if HAVE_SYS_TYPES_H |
|---|
| 281 | # include <sys/types.h> |
|---|
| 282 | #endif |
|---|
| 283 | #if HAVE_SYS_STAT_H |
|---|
| 284 | # include <sys/stat.h> |
|---|
| 285 | #endif |
|---|
| 286 | #if STDC_HEADERS |
|---|
| 287 | # include <stdlib.h> |
|---|
| 288 | # include <stddef.h> |
|---|
| 289 | #else |
|---|
| 290 | # if HAVE_STDLIB_H |
|---|
| 291 | # include <stdlib.h> |
|---|
| 292 | # endif |
|---|
| 293 | #endif |
|---|
| 294 | #if HAVE_STRING_H |
|---|
| 295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
|---|
| 296 | # include <memory.h> |
|---|
| 297 | # endif |
|---|
| 298 | # include <string.h> |
|---|
| 299 | #endif |
|---|
| 300 | #if HAVE_STRINGS_H |
|---|
| 301 | # include <strings.h> |
|---|
| 302 | #endif |
|---|
| 303 | #if HAVE_INTTYPES_H |
|---|
| 304 | # include <inttypes.h> |
|---|
| 305 | #else |
|---|
| 306 | # if HAVE_STDINT_H |
|---|
| 307 | # include <stdint.h> |
|---|
| 308 | # endif |
|---|
| 309 | #endif |
|---|
| 310 | #if HAVE_UNISTD_H |
|---|
| 311 | # include <unistd.h> |
|---|
| 312 | #endif" |
|---|
| 313 | |
|---|
| 314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC LEX LEXLIB LEX_OUTPUT_ROOT AR ac_ct_AR RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP LIBOBJS NEWT_LDIMPORT NEWT_LDFLAGS LIBNEWT_LDSHARED LINK_NEWT_APP_ DLEXT MAKE_EXT MAKE_CONTRIB BINDIR sitedir libffidir __NAMED_MAGIC_POINTER__ LIBREGEX LIBCOMMAND LIBEXT LTLIBOBJS' |
|---|
| 315 | ac_subst_files='' |
|---|
| 316 | |
|---|
| 317 | # Initialize some variables set by options. |
|---|
| 318 | ac_init_help= |
|---|
| 319 | ac_init_version=false |
|---|
| 320 | # The variables have the same names as the options, with |
|---|
| 321 | # dashes changed to underlines. |
|---|
| 322 | cache_file=/dev/null |
|---|
| 323 | exec_prefix=NONE |
|---|
| 324 | no_create= |
|---|
| 325 | no_recursion= |
|---|
| 326 | prefix=NONE |
|---|
| 327 | program_prefix=NONE |
|---|
| 328 | program_suffix=NONE |
|---|
| 329 | program_transform_name=s,x,x, |
|---|
| 330 | silent= |
|---|
| 331 | site= |
|---|
| 332 | srcdir= |
|---|
| 333 | verbose= |
|---|
| 334 | x_includes=NONE |
|---|
| 335 | x_libraries=NONE |
|---|
| 336 | |
|---|
| 337 | # Installation directory options. |
|---|
| 338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
|---|
| 339 | # and all the variables that are supposed to be based on exec_prefix |
|---|
| 340 | # by default will actually change. |
|---|
| 341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
|---|
| 342 | bindir='${exec_prefix}/bin' |
|---|
| 343 | sbindir='${exec_prefix}/sbin' |
|---|
| 344 | libexecdir='${exec_prefix}/libexec' |
|---|
| 345 | datadir='${prefix}/share' |
|---|
| 346 | sysconfdir='${prefix}/etc' |
|---|
| 347 | sharedstatedir='${prefix}/com' |
|---|
| 348 | localstatedir='${prefix}/var' |
|---|
| 349 | libdir='${exec_prefix}/lib' |
|---|
| 350 | includedir='${prefix}/include' |
|---|
| 351 | oldincludedir='/usr/include' |
|---|
| 352 | infodir='${prefix}/info' |
|---|
| 353 | mandir='${prefix}/man' |
|---|
| 354 | |
|---|
| 355 | ac_prev= |
|---|
| 356 | for ac_option |
|---|
| 357 | do |
|---|
| 358 | # If the previous option needs an argument, assign it. |
|---|
| 359 | if test -n "$ac_prev"; then |
|---|
| 360 | eval "$ac_prev=\$ac_option" |
|---|
| 361 | ac_prev= |
|---|
| 362 | continue |
|---|
| 363 | fi |
|---|
| 364 | |
|---|
| 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
|---|
| 366 | |
|---|
| 367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
|---|
| 368 | |
|---|
| 369 | case $ac_option in |
|---|
| 370 | |
|---|
| 371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
|---|
| 372 | ac_prev=bindir ;; |
|---|
| 373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|---|
| 374 | bindir=$ac_optarg ;; |
|---|
| 375 | |
|---|
| 376 | -build | --build | --buil | --bui | --bu) |
|---|
| 377 | ac_prev=build_alias ;; |
|---|
| 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|---|
| 379 | build_alias=$ac_optarg ;; |
|---|
| 380 | |
|---|
| 381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
|---|
| 382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|---|
| 383 | ac_prev=cache_file ;; |
|---|
| 384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|---|
| 385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|---|
| 386 | cache_file=$ac_optarg ;; |
|---|
| 387 | |
|---|
| 388 | --config-cache | -C) |
|---|
| 389 | cache_file=config.cache ;; |
|---|
| 390 | |
|---|
| 391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
|---|
| 392 | ac_prev=datadir ;; |
|---|
| 393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
|---|
| 394 | | --da=*) |
|---|
| 395 | datadir=$ac_optarg ;; |
|---|
| 396 | |
|---|
| 397 | -disable-* | --disable-*) |
|---|
| 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|---|
| 399 | # Reject names that are not valid shell variable names. |
|---|
| 400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
|---|
| 401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
|---|
| 402 | { (exit 1); exit 1; }; } |
|---|
| 403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
|---|
| 404 | eval "enable_$ac_feature=no" ;; |
|---|
| 405 | |
|---|
| 406 | -enable-* | --enable-*) |
|---|
| 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|---|
| 408 | # Reject names that are not valid shell variable names. |
|---|
| 409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
|---|
| 410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
|---|
| 411 | { (exit 1); exit 1; }; } |
|---|
| 412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
|---|
| 413 | case $ac_option in |
|---|
| 414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
|---|
| 415 | *) ac_optarg=yes ;; |
|---|
| 416 | esac |
|---|
| 417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
|---|
| 418 | |
|---|
| 419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|---|
| 420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|---|
| 421 | | --exec | --exe | --ex) |
|---|
| 422 | ac_prev=exec_prefix ;; |
|---|
| 423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|---|
| 424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|---|
| 425 | | --exec=* | --exe=* | --ex=*) |
|---|
| 426 | exec_prefix=$ac_optarg ;; |
|---|
| 427 | |
|---|
| 428 | -gas | --gas | --ga | --g) |
|---|
| 429 | # Obsolete; use --with-gas. |
|---|
| 430 | with_gas=yes ;; |
|---|
| 431 | |
|---|
| 432 | -help | --help | --hel | --he | -h) |
|---|
| 433 | ac_init_help=long ;; |
|---|
| 434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|---|
| 435 | ac_init_help=recursive ;; |
|---|
| 436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|---|
| 437 | ac_init_help=short ;; |
|---|
| 438 | |
|---|
| 439 | -host | --host | --hos | --ho) |
|---|
| 440 | ac_prev=host_alias ;; |
|---|
| 441 | -host=* | --host=* | --hos=* | --ho=*) |
|---|
| 442 | host_alias=$ac_optarg ;; |
|---|
| 443 | |
|---|
| 444 | -includedir | --includedir | --includedi | --included | --include \ |
|---|
| 445 | | --includ | --inclu | --incl | --inc) |
|---|
| 446 | ac_prev=includedir ;; |
|---|
| 447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|---|
| 448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
|---|
| 449 | includedir=$ac_optarg ;; |
|---|
| 450 | |
|---|
| 451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
|---|
| 452 | ac_prev=infodir ;; |
|---|
| 453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|---|
| 454 | infodir=$ac_optarg ;; |
|---|
| 455 | |
|---|
| 456 | -libdir | --libdir | --libdi | --libd) |
|---|
| 457 | ac_prev=libdir ;; |
|---|
| 458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
|---|
| 459 | libdir=$ac_optarg ;; |
|---|
| 460 | |
|---|
| 461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|---|
| 462 | | --libexe | --libex | --libe) |
|---|
| 463 | ac_prev=libexecdir ;; |
|---|
| 464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|---|
| 465 | | --libexe=* | --libex=* | --libe=*) |
|---|
| 466 | libexecdir=$ac_optarg ;; |
|---|
| 467 | |
|---|
| 468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
|---|
| 469 | | --localstate | --localstat | --localsta | --localst \ |
|---|
| 470 | | --locals | --local | --loca | --loc | --lo) |
|---|
| 471 | ac_prev=localstatedir ;; |
|---|
| 472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|---|
| 473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
|---|
| 474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
|---|
| 475 | localstatedir=$ac_optarg ;; |
|---|
| 476 | |
|---|
| 477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|---|
| 478 | ac_prev=mandir ;; |
|---|
| 479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|---|
| 480 | mandir=$ac_optarg ;; |
|---|
| 481 | |
|---|
| 482 | -nfp | --nfp | --nf) |
|---|
| 483 | # Obsolete; use --without-fp. |
|---|
| 484 | with_fp=no ;; |
|---|
| 485 | |
|---|
| 486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|---|
| 487 | | --no-cr | --no-c | -n) |
|---|
| 488 | no_create=yes ;; |
|---|
| 489 | |
|---|
| 490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|---|
| 491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|---|
| 492 | no_recursion=yes ;; |
|---|
| 493 | |
|---|
| 494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|---|
| 495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|---|
| 496 | | --oldin | --oldi | --old | --ol | --o) |
|---|
| 497 | ac_prev=oldincludedir ;; |
|---|
| 498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|---|
| 499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|---|
| 500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|---|
| 501 | oldincludedir=$ac_optarg ;; |
|---|
| 502 | |
|---|
| 503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|---|
| 504 | ac_prev=prefix ;; |
|---|
| 505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|---|
| 506 | prefix=$ac_optarg ;; |
|---|
| 507 | |
|---|
| 508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|---|
| 509 | | --program-pre | --program-pr | --program-p) |
|---|
| 510 | ac_prev=program_prefix ;; |
|---|
| 511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|---|
| 512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|---|
| 513 | program_prefix=$ac_optarg ;; |
|---|
| 514 | |
|---|
| 515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|---|
| 516 | | --program-suf | --program-su | --program-s) |
|---|
| 517 | ac_prev=program_suffix ;; |
|---|
| 518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|---|
| 519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|---|
| 520 | program_suffix=$ac_optarg ;; |
|---|
| 521 | |
|---|
| 522 | -program-transform-name | --program-transform-name \ |
|---|
| 523 | | --program-transform-nam | --program-transform-na \ |
|---|
| 524 | | --program-transform-n | --program-transform- \ |
|---|
| 525 | | --program-transform | --program-transfor \ |
|---|
| 526 | | --program-transfo | --program-transf \ |
|---|
| 527 | | --program-trans | --program-tran \ |
|---|
| 528 | | --progr-tra | --program-tr | --program-t) |
|---|
| 529 | ac_prev=program_transform_name ;; |
|---|
| 530 | -program-transform-name=* | --program-transform-name=* \ |
|---|
| 531 | | --program-transform-nam=* | --program-transform-na=* \ |
|---|
| 532 | | --program-transform-n=* | --program-transform-=* \ |
|---|
| 533 | | --program-transform=* | --program-transfor=* \ |
|---|
| 534 | | --program-transfo=* | --program-transf=* \ |
|---|
| 535 | | --program-trans=* | --program-tran=* \ |
|---|
| 536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
|---|
| 537 | program_transform_name=$ac_optarg ;; |
|---|
| 538 | |
|---|
| 539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|---|
| 540 | | -silent | --silent | --silen | --sile | --sil) |
|---|
| 541 | silent=yes ;; |
|---|
| 542 | |
|---|
| 543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|---|
| 544 | ac_prev=sbindir ;; |
|---|
| 545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|---|
| 546 | | --sbi=* | --sb=*) |
|---|
| 547 | sbindir=$ac_optarg ;; |
|---|
| 548 | |
|---|
| 549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|---|
| 550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|---|
| 551 | | --sharedst | --shareds | --shared | --share | --shar \ |
|---|
| 552 | | --sha | --sh) |
|---|
| 553 | ac_prev=sharedstatedir ;; |
|---|
| 554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|---|
| 555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|---|
| 556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|---|
| 557 | | --sha=* | --sh=*) |
|---|
| 558 | sharedstatedir=$ac_optarg ;; |
|---|
| 559 | |
|---|
| 560 | -site | --site | --sit) |
|---|
| 561 | ac_prev=site ;; |
|---|
| 562 | -site=* | --site=* | --sit=*) |
|---|
| 563 | site=$ac_optarg ;; |
|---|
| 564 | |
|---|
| 565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|---|
| 566 | ac_prev=srcdir ;; |
|---|
| 567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|---|
| 568 | srcdir=$ac_optarg ;; |
|---|
| 569 | |
|---|
| 570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|---|
| 571 | | --syscon | --sysco | --sysc | --sys | --sy) |
|---|
| 572 | ac_prev=sysconfdir ;; |
|---|
| 573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|---|
| 574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|---|
| 575 | sysconfdir=$ac_optarg ;; |
|---|
| 576 | |
|---|
| 577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
|---|
| 578 | ac_prev=target_alias ;; |
|---|
| 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|---|
| 580 | target_alias=$ac_optarg ;; |
|---|
| 581 | |
|---|
| 582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
|---|
| 583 | verbose=yes ;; |
|---|
| 584 | |
|---|
| 585 | -version | --version | --versio | --versi | --vers | -V) |
|---|
| 586 | ac_init_version=: ;; |
|---|
| 587 | |
|---|
| 588 | -with-* | --with-*) |
|---|
| 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|---|
| 590 | # Reject names that are not valid shell variable names. |
|---|
| 591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
|---|
| 592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
|---|
| 593 | { (exit 1); exit 1; }; } |
|---|
| 594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
|---|
| 595 | case $ac_option in |
|---|
| 596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
|---|
| 597 | *) ac_optarg=yes ;; |
|---|
| 598 | esac |
|---|
| 599 | eval "with_$ac_package='$ac_optarg'" ;; |
|---|
| 600 | |
|---|
| 601 | -without-* | --without-*) |
|---|
| 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|---|
| 603 | # Reject names that are not valid shell variable names. |
|---|
| 604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
|---|
| 605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
|---|
| 606 | { (exit 1); exit 1; }; } |
|---|
| 607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
|---|
| 608 | eval "with_$ac_package=no" ;; |
|---|
| 609 | |
|---|
| 610 | --x) |
|---|
| 611 | # Obsolete; use --with-x. |
|---|
| 612 | with_x=yes ;; |
|---|
| 613 | |
|---|
| 614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|---|
| 615 | | --x-incl | --x-inc | --x-in | --x-i) |
|---|
| 616 | ac_prev=x_includes ;; |
|---|
| 617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|---|
| 618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|---|
| 619 | x_includes=$ac_optarg ;; |
|---|
| 620 | |
|---|
| 621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|---|
| 622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|---|
| 623 | ac_prev=x_libraries ;; |
|---|
| 624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|---|
| 625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|---|
| 626 | x_libraries=$ac_optarg ;; |
|---|
| 627 | |
|---|
| 628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
|---|
| 629 | Try \`$0 --help' for more information." >&2 |
|---|
| 630 | { (exit 1); exit 1; }; } |
|---|
| 631 | ;; |
|---|
| 632 | |
|---|
| 633 | *=*) |
|---|
| 634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|---|
| 635 | # Reject names that are not valid shell variable names. |
|---|
| 636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
|---|
| 637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
|---|
| 638 | { (exit 1); exit 1; }; } |
|---|
| 639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
|---|
| 640 | eval "$ac_envvar='$ac_optarg'" |
|---|
| 641 | export $ac_envvar ;; |
|---|
| 642 | |
|---|
| 643 | *) |
|---|
| 644 | # FIXME: should be removed in autoconf 3.0. |
|---|
| 645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|---|
| 646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|---|
| 647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|---|
| 648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
|---|
| 649 | ;; |
|---|
| 650 | |
|---|
| 651 | esac |
|---|
| 652 | done |
|---|
| 653 | |
|---|
| 654 | if test -n "$ac_prev"; then |
|---|
| 655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|---|
| 656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
|---|
| 657 | { (exit 1); exit 1; }; } |
|---|
| 658 | fi |
|---|
| 659 | |
|---|
| 660 | # Be sure to have absolute paths. |
|---|
| 661 | for ac_var in exec_prefix prefix |
|---|
| 662 | do |
|---|
| 663 | eval ac_val=$`echo $ac_var` |
|---|
| 664 | case $ac_val in |
|---|
| 665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
|---|
| 666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
|---|
| 667 | { (exit 1); exit 1; }; };; |
|---|
| 668 | esac |
|---|
| 669 | done |
|---|
| 670 | |
|---|
| 671 | # Be sure to have absolute paths. |
|---|
| 672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
|---|
| 673 | localstatedir libdir includedir oldincludedir infodir mandir |
|---|
| 674 | do |
|---|
| 675 | eval ac_val=$`echo $ac_var` |
|---|
| 676 | case $ac_val in |
|---|
| 677 | [\\/$]* | ?:[\\/]* ) ;; |
|---|
| 678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
|---|
| 679 | { (exit 1); exit 1; }; };; |
|---|
| 680 | esac |
|---|
| 681 | done |
|---|
| 682 | |
|---|
| 683 | # There might be people who depend on the old broken behavior: `$host' |
|---|
| 684 | # used to hold the argument of --host etc. |
|---|
| 685 | # FIXME: To remove some day. |
|---|
| 686 | build=$build_alias |
|---|
| 687 | host=$host_alias |
|---|
| 688 | target=$target_alias |
|---|
| 689 | |
|---|
| 690 | # FIXME: To remove some day. |
|---|
| 691 | if test "x$host_alias" != x; then |
|---|
| 692 | if test "x$build_alias" = x; then |
|---|
| 693 | cross_compiling=maybe |
|---|
| 694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
|---|
| 695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
|---|
| 696 | elif test "x$build_alias" != "x$host_alias"; then |
|---|
| 697 | cross_compiling=yes |
|---|
| 698 | fi |
|---|
| 699 | fi |
|---|
| 700 | |
|---|
| 701 | ac_tool_prefix= |
|---|
| 702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|---|
| 703 | |
|---|
| 704 | test "$silent" = yes && exec 6>/dev/null |
|---|
| 705 | |
|---|
| 706 | |
|---|
| 707 | # Find the source files, if location was not specified. |
|---|
| 708 | if test -z "$srcdir"; then |
|---|
| 709 | ac_srcdir_defaulted=yes |
|---|
| 710 | # Try the directory containing this script, then its parent. |
|---|
| 711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
|---|
| 712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|---|
| 713 | X"$0" : 'X\(//\)[^/]' \| \ |
|---|
| 714 | X"$0" : 'X\(//\)$' \| \ |
|---|
| 715 | X"$0" : 'X\(/\)' \| \ |
|---|
| 716 | . : '\(.\)' 2>/dev/null || |
|---|
| 717 | echo X"$0" | |
|---|
| 718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|---|
| 719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|---|
| 720 | /^X\(\/\/\)$/{ s//\1/; q; } |
|---|
| 721 | /^X\(\/\).*/{ s//\1/; q; } |
|---|
| 722 | s/.*/./; q'` |
|---|
| 723 | srcdir=$ac_confdir |
|---|
| 724 | if test ! -r $srcdir/$ac_unique_file; then |
|---|
| 725 | srcdir=.. |
|---|
| 726 | fi |
|---|
| 727 | else |
|---|
| 728 | ac_srcdir_defaulted=no |
|---|
| 729 | fi |
|---|
| 730 | if test ! -r $srcdir/$ac_unique_file; then |
|---|
| 731 | if test "$ac_srcdir_defaulted" = yes; then |
|---|
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
|---|
| 733 | { (exit 1); exit 1; }; } |
|---|
| 734 | else |
|---|
| 735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
|---|
| 736 | { (exit 1); exit 1; }; } |
|---|
| 737 | fi |
|---|
| 738 | fi |
|---|
| 739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
|---|
| 740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
|---|
| 741 | { (exit 1); exit 1; }; } |
|---|
| 742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
|---|
| 743 | ac_env_build_alias_set=${build_alias+set} |
|---|
| 744 | ac_env_build_alias_value=$build_alias |
|---|
| 745 | ac_cv_env_build_alias_set=${build_alias+set} |
|---|
| 746 | ac_cv_env_build_alias_value=$build_alias |
|---|
| 747 | ac_env_host_alias_set=${host_alias+set} |
|---|
| 748 | ac_env_host_alias_value=$host_alias |
|---|
| 749 | ac_cv_env_host_alias_set=${host_alias+set} |
|---|
| 750 | ac_cv_env_host_alias_value=$host_alias |
|---|
| 751 | ac_env_target_alias_set=${target_alias+set} |
|---|
| 752 | ac_env_target_alias_value=$target_alias |
|---|
| 753 | ac_cv_env_target_alias_set=${target_alias+set} |
|---|
| 754 | ac_cv_env_target_alias_value=$target_alias |
|---|
| 755 | ac_env_CC_set=${CC+set} |
|---|
| 756 | ac_env_CC_value=$CC |
|---|
| 757 | ac_cv_env_CC_set=${CC+set} |
|---|
| 758 | ac_cv_env_CC_value=$CC |
|---|
| 759 | ac_env_CFLAGS_set=${CFLAGS+set} |
|---|
| 760 | ac_env_CFLAGS_value=$CFLAGS |
|---|
| 761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
|---|
| 762 | ac_cv_env_CFLAGS_value=$CFLAGS |
|---|
| 763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
|---|
| 764 | ac_env_LDFLAGS_value=$LDFLAGS |
|---|
| 765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
|---|
| 766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
|---|
| 767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
|---|
| 768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
|---|
| 769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
|---|
| 770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
|---|
| 771 | ac_env_CPP_set=${CPP+set} |
|---|
| 772 | ac_env_CPP_value=$CPP |
|---|
| 773 | ac_cv_env_CPP_set=${CPP+set} |
|---|
| 774 | ac_cv_env_CPP_value=$CPP |
|---|
| 775 | |
|---|
| 776 | # |
|---|
| 777 | # Report the --help message. |
|---|
| 778 | # |
|---|
| 779 | if test "$ac_init_help" = "long"; then |
|---|
| 780 | # Omit some internal or obsolete options to make the list less imposing. |
|---|
| 781 | # This message is too long to be a string in the A/UX 3.1 sh. |
|---|
| 782 | cat <<_ACEOF |
|---|
| 783 | \`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems. |
|---|
| 784 | |
|---|
| 785 | Usage: $0 [OPTION]... [VAR=VALUE]... |
|---|
| 786 | |
|---|
| 787 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|---|
| 788 | VAR=VALUE. See below for descriptions of some of the useful variables. |
|---|
| 789 | |
|---|
| 790 | Defaults for the options are specified in brackets. |
|---|
| 791 | |
|---|
| 792 | Configuration: |
|---|
| 793 | -h, --help display this help and exit |
|---|
| 794 | --help=short display options specific to this package |
|---|
| 795 | --help=recursive display the short help of all the included packages |
|---|
| 796 | -V, --version display version information and exit |
|---|
| 797 | -q, --quiet, --silent do not print \`checking...' messages |
|---|
| 798 | --cache-file=FILE cache test results in FILE [disabled] |
|---|
| 799 | -C, --config-cache alias for \`--cache-file=config.cache' |
|---|
| 800 | -n, --no-create do not create output files |
|---|
| 801 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|---|
| 802 | |
|---|
| 803 | _ACEOF |
|---|
| 804 | |
|---|
| 805 | cat <<_ACEOF |
|---|
| 806 | Installation directories: |
|---|
| 807 | --prefix=PREFIX install architecture-independent files in PREFIX |
|---|
| 808 | [$ac_default_prefix] |
|---|
| 809 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|---|
| 810 | [PREFIX] |
|---|
| 811 | |
|---|
| 812 | By default, \`make install' will install all the files in |
|---|
| 813 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|---|
| 814 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|---|
| 815 | for instance \`--prefix=\$HOME'. |
|---|
| 816 | |
|---|
| 817 | For better control, use the options below. |
|---|
| 818 | |
|---|
| 819 | Fine tuning of the installation directories: |
|---|
| 820 | --bindir=DIR user executables [EPREFIX/bin] |
|---|
| 821 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
|---|
| 822 | --libexecdir=DIR program executables [EPREFIX/libexec] |
|---|
| 823 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
|---|
| 824 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|---|
| 825 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|---|
| 826 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|---|
| 827 | --libdir=DIR object code libraries [EPREFIX/lib] |
|---|
| 828 | --includedir=DIR C header files [PREFIX/include] |
|---|
| 829 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
|---|
| 830 | --infodir=DIR info documentation [PREFIX/info] |
|---|
| 831 | --mandir=DIR man documentation [PREFIX/man] |
|---|
| 832 | _ACEOF |
|---|
| 833 | |
|---|
| 834 | cat <<\_ACEOF |
|---|
| 835 | |
|---|
| 836 | System types: |
|---|
| 837 | --build=BUILD configure for building on BUILD [guessed] |
|---|
| 838 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
|---|
| 839 | --target=TARGET configure for building compilers for TARGET [HOST] |
|---|
| 840 | _ACEOF |
|---|
| 841 | fi |
|---|
| 842 | |
|---|
| 843 | if test -n "$ac_init_help"; then |
|---|
| 844 | case $ac_init_help in |
|---|
| 845 | short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";; |
|---|
| 846 | esac |
|---|
| 847 | cat <<\_ACEOF |
|---|
| 848 | |
|---|
| 849 | Optional Features: |
|---|
| 850 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|---|
| 851 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|---|
| 852 | --enable-compat enable compatibility with the Newton, and break many |
|---|
| 853 | features on the desktop |
|---|
| 854 | --enable-contrib include contrib packages (inwt, NativeCalls, and |
|---|
| 855 | NewtObjC) |
|---|
| 856 | |
|---|
| 857 | Optional Packages: |
|---|
| 858 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|---|
| 859 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|---|
| 860 | --with-sitedir=DIR site libraries in DIR [PREFIX/lib/newt0] |
|---|
| 861 | --with-libffidir=DIR where libffi libraries can be found [PREFIX] |
|---|
| 862 | |
|---|
| 863 | Some influential environment variables: |
|---|
| 864 | CC C compiler command |
|---|
| 865 | CFLAGS C compiler flags |
|---|
| 866 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|---|
| 867 | nonstandard directory <lib dir> |
|---|
| 868 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
|---|
| 869 | headers in a nonstandard directory <include dir> |
|---|
| 870 | CPP C preprocessor |
|---|
| 871 | |
|---|
| 872 | Use these variables to override the choices made by `configure' or to help |
|---|
| 873 | it to find libraries and programs with nonstandard names/locations. |
|---|
| 874 | |
|---|
| 875 | Report bugs to <BUG-REPORT-ADDRESS>. |
|---|
| 876 | _ACEOF |
|---|
| 877 | fi |
|---|
| 878 | |
|---|
| 879 | if test "$ac_init_help" = "recursive"; then |
|---|
| 880 | # If there are subdirs, report their specific --help. |
|---|
| 881 | ac_popdir=`pwd` |
|---|
| 882 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|---|
| 883 | test -d $ac_dir || continue |
|---|
| 884 | ac_builddir=. |
|---|
| 885 | |
|---|
| 886 | if test "$ac_dir" != .; then |
|---|
| 887 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
|---|
| 888 | # A "../" for each directory in $ac_dir_suffix. |
|---|
| 889 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
|---|
| 890 | else |
|---|
| 891 | ac_dir_suffix= ac_top_builddir= |
|---|
| 892 | fi |
|---|
| 893 | |
|---|
| 894 | case $srcdir in |
|---|
| 895 | .) # No --srcdir option. We are building in place. |
|---|
| 896 | ac_srcdir=. |
|---|
| 897 | if test -z "$ac_top_builddir"; then |
|---|
| 898 | ac_top_srcdir=. |
|---|
| 899 | else |
|---|
| 900 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
|---|
| 901 | fi ;; |
|---|
| 902 | [\\/]* | ?:[\\/]* ) # Absolute path. |
|---|
| 903 | ac_srcdir=$srcdir$ac_dir_suffix; |
|---|
| 904 | ac_top_srcdir=$srcdir ;; |
|---|
| 905 | *) # Relative path. |
|---|
| 906 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
|---|
| 907 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
|---|
| 908 | esac |
|---|
| 909 | |
|---|
| 910 | # Do not use `cd foo && pwd` to compute absolute paths, because |
|---|
| 911 | # the directories may not exist. |
|---|
| 912 | case `pwd` in |
|---|
| 913 | .) ac_abs_builddir="$ac_dir";; |
|---|
| 914 | *) |
|---|
| 915 | case "$ac_dir" in |
|---|
| 916 | .) ac_abs_builddir=`pwd`;; |
|---|
| 917 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
|---|
| 918 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
|---|
| 919 | esac;; |
|---|
| 920 | esac |
|---|
| 921 | case $ac_abs_builddir in |
|---|
| 922 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
|---|
| 923 | *) |
|---|
| 924 | case ${ac_top_builddir}. in |
|---|
| 925 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
|---|
| 926 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
|---|
| 927 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
|---|
| 928 | esac;; |
|---|
| 929 | esac |
|---|
| 930 | case $ac_abs_builddir in |
|---|
| 931 | .) ac_abs_srcdir=$ac_srcdir;; |
|---|
| 932 | *) |
|---|
| 933 | case $ac_srcdir in |
|---|
| 934 | .) ac_abs_srcdir=$ac_abs_builddir;; |
|---|
| 935 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
|---|
| 936 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
|---|
| 937 | esac;; |
|---|
| 938 | esac |
|---|
| 939 | case $ac_abs_builddir in |
|---|
| 940 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
|---|
| 941 | *) |
|---|
| 942 | case $ac_top_srcdir in |
|---|
| 943 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
|---|
| 944 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
|---|
| 945 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
|---|
| 946 | esac;; |
|---|
| 947 | esac |
|---|
| 948 | |
|---|
| 949 | cd $ac_dir |
|---|
| 950 | # Check for guested configure; otherwise get Cygnus style configure. |
|---|
| 951 | if test -f $ac_srcdir/configure.gnu; then |
|---|
| 952 | echo |
|---|
| 953 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
|---|
| 954 | elif test -f $ac_srcdir/configure; then |
|---|
| 955 | echo |
|---|
| 956 | $SHELL $ac_srcdir/configure --help=recursive |
|---|
| 957 | elif test -f $ac_srcdir/configure.ac || |
|---|
| 958 | test -f $ac_srcdir/configure.in; then |
|---|
| 959 | echo |
|---|
| 960 | $ac_configure --help |
|---|
| 961 | else |
|---|
| 962 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|---|
| 963 | fi |
|---|
| 964 | cd $ac_popdir |
|---|
| 965 | done |
|---|
| 966 | fi |
|---|
| 967 | |
|---|
| 968 | test -n "$ac_init_help" && exit 0 |
|---|
| 969 | if $ac_init_version; then |
|---|
| 970 | cat <<\_ACEOF |
|---|
| 971 | FULL-PACKAGE-NAME configure VERSION |
|---|
| 972 | generated by GNU Autoconf 2.59 |
|---|
| 973 | |
|---|
| 974 | Copyright (C) 2003 Free Software Foundation, Inc. |
|---|
| 975 | This configure script is free software; the Free Software Foundation |
|---|
| 976 | gives unlimited permission to copy, distribute and modify it. |
|---|
| 977 | _ACEOF |
|---|
| 978 | exit 0 |
|---|
| 979 | fi |
|---|
| 980 | exec 5>config.log |
|---|
| 981 | cat >&5 <<_ACEOF |
|---|
| 982 | This file contains any messages produced by compilers while |
|---|
| 983 | running configure, to aid debugging if configure makes a mistake. |
|---|
| 984 | |
|---|
| 985 | It was created by FULL-PACKAGE-NAME $as_me VERSION, which was |
|---|
| 986 | generated by GNU Autoconf 2.59. Invocation command line was |
|---|
| 987 | |
|---|
| 988 | $ $0 $@ |
|---|
| 989 | |
|---|
| 990 | _ACEOF |
|---|
| 991 | { |
|---|
| 992 | cat <<_ASUNAME |
|---|
| 993 | ## --------- ## |
|---|
| 994 | ## Platform. ## |
|---|
| 995 | ## --------- ## |
|---|
| 996 | |
|---|
| 997 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|---|
| 998 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|---|
| 999 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|---|
| 1000 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|---|
| 1001 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|---|
| 1002 | |
|---|
| 1003 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|---|
| 1004 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|---|
| 1005 | |
|---|
| 1006 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|---|
| 1007 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|---|
| 1008 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|---|
| 1009 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
|---|
| 1010 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
|---|
| 1011 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|---|
| 1012 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|---|
| 1013 | |
|---|
| 1014 | _ASUNAME |
|---|
| 1015 | |
|---|
| 1016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 1017 | for as_dir in $PATH |
|---|
| 1018 | do |
|---|
| 1019 | IFS=$as_save_IFS |
|---|
| 1020 | test -z "$as_dir" && as_dir=. |
|---|
| 1021 | echo "PATH: $as_dir" |
|---|
| 1022 | done |
|---|
| 1023 | |
|---|
| 1024 | } >&5 |
|---|
| 1025 | |
|---|
| 1026 | cat >&5 <<_ACEOF |
|---|
| 1027 | |
|---|
| 1028 | |
|---|
| 1029 | ## ----------- ## |
|---|
| 1030 | ## Core tests. ## |
|---|
| 1031 | ## ----------- ## |
|---|
| 1032 | |
|---|
| 1033 | _ACEOF |
|---|
| 1034 | |
|---|
| 1035 | |
|---|
| 1036 | # Keep a trace of the command line. |
|---|
| 1037 | # Strip out --no-create and --no-recursion so they do not pile up. |
|---|
| 1038 | # Strip out --silent because we don't want to record it for future runs. |
|---|
| 1039 | # Also quote any args containing shell meta-characters. |
|---|
| 1040 | # Make two passes to allow for proper duplicate-argument suppression. |
|---|
| 1041 | ac_configure_args= |
|---|
| 1042 | ac_configure_args0= |
|---|
| 1043 | ac_configure_args1= |
|---|
| 1044 | ac_sep= |
|---|
| 1045 | ac_must_keep_next=false |
|---|
| 1046 | for ac_pass in 1 2 |
|---|
| 1047 | do |
|---|
| 1048 | for ac_arg |
|---|
| 1049 | do |
|---|
| 1050 | case $ac_arg in |
|---|
| 1051 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|---|
| 1052 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|---|
| 1053 | | -silent | --silent | --silen | --sile | --sil) |
|---|
| 1054 | continue ;; |
|---|
| 1055 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
|---|
| 1056 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|---|
| 1057 | esac |
|---|
| 1058 | case $ac_pass in |
|---|
| 1059 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
|---|
| 1060 | 2) |
|---|
| 1061 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
|---|
| 1062 | if test $ac_must_keep_next = true; then |
|---|
| 1063 | ac_must_keep_next=false # Got value, back to normal. |
|---|
| 1064 | else |
|---|
| 1065 | case $ac_arg in |
|---|
| 1066 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
|---|
| 1067 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|---|
| 1068 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|---|
| 1069 | | -with-* | --with-* | -without-* | --without-* | --x) |
|---|
| 1070 | case "$ac_configure_args0 " in |
|---|
| 1071 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|---|
| 1072 | esac |
|---|
| 1073 | ;; |
|---|
| 1074 | -* ) ac_must_keep_next=true ;; |
|---|
| 1075 | esac |
|---|
| 1076 | fi |
|---|
| 1077 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
|---|
| 1078 | # Get rid of the leading space. |
|---|
| 1079 | ac_sep=" " |
|---|
| 1080 | ;; |
|---|
| 1081 | esac |
|---|
| 1082 | done |
|---|
| 1083 | done |
|---|
| 1084 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
|---|
| 1085 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
|---|
| 1086 | |
|---|
| 1087 | # When interrupted or exit'd, cleanup temporary files, and complete |
|---|
| 1088 | # config.log. We remove comments because anyway the quotes in there |
|---|
| 1089 | # would cause problems or look ugly. |
|---|
| 1090 | # WARNING: Be sure not to use single quotes in there, as some shells, |
|---|
| 1091 | # such as our DU 5.0 friend, will then `close' the trap. |
|---|
| 1092 | trap 'exit_status=$? |
|---|
| 1093 | # Save into config.log some information that might help in debugging. |
|---|
| 1094 | { |
|---|
| 1095 | echo |
|---|
| 1096 | |
|---|
| 1097 | cat <<\_ASBOX |
|---|
| 1098 | ## ---------------- ## |
|---|
| 1099 | ## Cache variables. ## |
|---|
| 1100 | ## ---------------- ## |
|---|
| 1101 | _ASBOX |
|---|
| 1102 | echo |
|---|
| 1103 | # The following way of writing the cache mishandles newlines in values, |
|---|
| 1104 | { |
|---|
| 1105 | (set) 2>&1 | |
|---|
| 1106 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
|---|
| 1107 | *ac_space=\ *) |
|---|
| 1108 | sed -n \ |
|---|
| 1109 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
|---|
| 1110 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
|---|
| 1111 | ;; |
|---|
| 1112 | *) |
|---|
| 1113 | sed -n \ |
|---|
| 1114 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
|---|
| 1115 | ;; |
|---|
| 1116 | esac; |
|---|
| 1117 | } |
|---|
| 1118 | echo |
|---|
| 1119 | |
|---|
| 1120 | cat <<\_ASBOX |
|---|
| 1121 | ## ----------------- ## |
|---|
| 1122 | ## Output variables. ## |
|---|
| 1123 | ## ----------------- ## |
|---|
| 1124 | _ASBOX |
|---|
| 1125 | echo |
|---|
| 1126 | for ac_var in $ac_subst_vars |
|---|
| 1127 | do |
|---|
| 1128 | eval ac_val=$`echo $ac_var` |
|---|
| 1129 | echo "$ac_var='"'"'$ac_val'"'"'" |
|---|
| 1130 | done | sort |
|---|
| 1131 | echo |
|---|
| 1132 | |
|---|
| 1133 | if test -n "$ac_subst_files"; then |
|---|
| 1134 | cat <<\_ASBOX |
|---|
| 1135 | ## ------------- ## |
|---|
| 1136 | ## Output files. ## |
|---|
| 1137 | ## ------------- ## |
|---|
| 1138 | _ASBOX |
|---|
| 1139 | echo |
|---|
| 1140 | for ac_var in $ac_subst_files |
|---|
| 1141 | do |
|---|
| 1142 | eval ac_val=$`echo $ac_var` |
|---|
| 1143 | echo "$ac_var='"'"'$ac_val'"'"'" |
|---|
| 1144 | done | sort |
|---|
| 1145 | echo |
|---|
| 1146 | fi |
|---|
| 1147 | |
|---|
| 1148 | if test -s confdefs.h; then |
|---|
| 1149 | cat <<\_ASBOX |
|---|
| 1150 | ## ----------- ## |
|---|
| 1151 | ## confdefs.h. ## |
|---|
| 1152 | ## ----------- ## |
|---|
| 1153 | _ASBOX |
|---|
| 1154 | echo |
|---|
| 1155 | sed "/^$/d" confdefs.h | sort |
|---|
| 1156 | echo |
|---|
| 1157 | fi |
|---|
| 1158 | test "$ac_signal" != 0 && |
|---|
| 1159 | echo "$as_me: caught signal $ac_signal" |
|---|
| 1160 | echo "$as_me: exit $exit_status" |
|---|
| 1161 | } >&5 |
|---|
| 1162 | rm -f core *.core && |
|---|
| 1163 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
|---|
| 1164 | exit $exit_status |
|---|
| 1165 | ' 0 |
|---|
| 1166 | for ac_signal in 1 2 13 15; do |
|---|
| 1167 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
|---|
| 1168 | done |
|---|
| 1169 | ac_signal=0 |
|---|
| 1170 | |
|---|
| 1171 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
|---|
| 1172 | rm -rf conftest* confdefs.h |
|---|
| 1173 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
|---|
| 1174 | echo >confdefs.h |
|---|
| 1175 | |
|---|
| 1176 | # Predefined preprocessor variables. |
|---|
| 1177 | |
|---|
| 1178 | cat >>confdefs.h <<_ACEOF |
|---|
| 1179 | #define PACKAGE_NAME "$PACKAGE_NAME" |
|---|
| 1180 | _ACEOF |
|---|
| 1181 | |
|---|
| 1182 | |
|---|
| 1183 | cat >>confdefs.h <<_ACEOF |
|---|
| 1184 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|---|
| 1185 | _ACEOF |
|---|
| 1186 | |
|---|
| 1187 | |
|---|
| 1188 | cat >>confdefs.h <<_ACEOF |
|---|
| 1189 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|---|
| 1190 | _ACEOF |
|---|
| 1191 | |
|---|
| 1192 | |
|---|
| 1193 | cat >>confdefs.h <<_ACEOF |
|---|
| 1194 | #define PACKAGE_STRING "$PACKAGE_STRING" |
|---|
| 1195 | _ACEOF |
|---|
| 1196 | |
|---|
| 1197 | |
|---|
| 1198 | cat >>confdefs.h <<_ACEOF |
|---|
| 1199 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|---|
| 1200 | _ACEOF |
|---|
| 1201 | |
|---|
| 1202 | |
|---|
| 1203 | # Let the site file select an alternate cache file if it wants to. |
|---|
| 1204 | # Prefer explicitly selected file to automatically selected ones. |
|---|
| 1205 | if test -z "$CONFIG_SITE"; then |
|---|
| 1206 | if test "x$prefix" != xNONE; then |
|---|
| 1207 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
|---|
| 1208 | else |
|---|
| 1209 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
|---|
| 1210 | fi |
|---|
| 1211 | fi |
|---|
| 1212 | for ac_site_file in $CONFIG_SITE; do |
|---|
| 1213 | if test -r "$ac_site_file"; then |
|---|
| 1214 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
|---|
| 1215 | echo "$as_me: loading site script $ac_site_file" >&6;} |
|---|
| 1216 | sed 's/^/| /' "$ac_site_file" >&5 |
|---|
| 1217 | . "$ac_site_file" |
|---|
| 1218 | fi |
|---|
| 1219 | done |
|---|
| 1220 | |
|---|
| 1221 | if test -r "$cache_file"; then |
|---|
| 1222 | # Some versions of bash will fail to source /dev/null (special |
|---|
| 1223 | # files actually), so we avoid doing that. |
|---|
| 1224 | if test -f "$cache_file"; then |
|---|
| 1225 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
|---|
| 1226 | echo "$as_me: loading cache $cache_file" >&6;} |
|---|
| 1227 | case $cache_file in |
|---|
| 1228 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
|---|
| 1229 | *) . ./$cache_file;; |
|---|
| 1230 | esac |
|---|
| 1231 | fi |
|---|
| 1232 | else |
|---|
| 1233 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
|---|
| 1234 | echo "$as_me: creating cache $cache_file" >&6;} |
|---|
| 1235 | >$cache_file |
|---|
| 1236 | fi |
|---|
| 1237 | |
|---|
| 1238 | # Check that the precious variables saved in the cache have kept the same |
|---|
| 1239 | # value. |
|---|
| 1240 | ac_cache_corrupted=false |
|---|
| 1241 | for ac_var in `(set) 2>&1 | |
|---|
| 1242 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
|---|
| 1243 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|---|
| 1244 | eval ac_new_set=\$ac_env_${ac_var}_set |
|---|
| 1245 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
|---|
| 1246 | eval ac_new_val="\$ac_env_${ac_var}_value" |
|---|
| 1247 | case $ac_old_set,$ac_new_set in |
|---|
| 1248 | set,) |
|---|
| 1249 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|---|
| 1250 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|---|
| 1251 | ac_cache_corrupted=: ;; |
|---|
| 1252 | ,set) |
|---|
| 1253 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
|---|
| 1254 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|---|
| 1255 | ac_cache_corrupted=: ;; |
|---|
| 1256 | ,);; |
|---|
| 1257 | *) |
|---|
| 1258 | if test "x$ac_old_val" != "x$ac_new_val"; then |
|---|
| 1259 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
|---|
| 1260 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|---|
| 1261 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
|---|
| 1262 | echo "$as_me: former value: $ac_old_val" >&2;} |
|---|
| 1263 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
|---|
| 1264 | echo "$as_me: current value: $ac_new_val" >&2;} |
|---|
| 1265 | ac_cache_corrupted=: |
|---|
| 1266 | fi;; |
|---|
| 1267 | esac |
|---|
| 1268 | # Pass precious variables to config.status. |
|---|
| 1269 | if test "$ac_new_set" = set; then |
|---|
| 1270 | case $ac_new_val in |
|---|
| 1271 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
|---|
| 1272 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|---|
| 1273 | *) ac_arg=$ac_var=$ac_new_val ;; |
|---|
| 1274 | esac |
|---|
| 1275 | case " $ac_configure_args " in |
|---|
| 1276 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|---|
| 1277 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
|---|
| 1278 | esac |
|---|
| 1279 | fi |
|---|
| 1280 | done |
|---|
| 1281 | if $ac_cache_corrupted; then |
|---|
| 1282 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
|---|
| 1283 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|---|
| 1284 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
|---|
| 1285 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
|---|
| 1286 | { (exit 1); exit 1; }; } |
|---|
| 1287 | fi |
|---|
| 1288 | |
|---|
| 1289 | ac_ext=c |
|---|
| 1290 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 1291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 1292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 1293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 1294 | |
|---|
| 1295 | |
|---|
| 1296 | |
|---|
| 1297 | |
|---|
| 1298 | |
|---|
| 1299 | |
|---|
| 1300 | |
|---|
| 1301 | |
|---|
| 1302 | |
|---|
| 1303 | |
|---|
| 1304 | |
|---|
| 1305 | |
|---|
| 1306 | |
|---|
| 1307 | |
|---|
| 1308 | |
|---|
| 1309 | |
|---|
| 1310 | |
|---|
| 1311 | |
|---|
| 1312 | |
|---|
| 1313 | |
|---|
| 1314 | |
|---|
| 1315 | |
|---|
| 1316 | |
|---|
| 1317 | |
|---|
| 1318 | |
|---|
| 1319 | |
|---|
| 1320 | |
|---|
| 1321 | |
|---|
| 1322 | ac_config_headers="$ac_config_headers src/config.h" |
|---|
| 1323 | |
|---|
| 1324 | ac_config_headers="$ac_config_headers src/newt_core/incs/NewtConf.h" |
|---|
| 1325 | |
|---|
| 1326 | |
|---|
| 1327 | # Checks for programs. |
|---|
| 1328 | ac_ext=c |
|---|
| 1329 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 1330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 1331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 1332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 1333 | if test -n "$ac_tool_prefix"; then |
|---|
| 1334 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|---|
| 1335 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|---|
| 1336 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 1337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 1338 | if test "${ac_cv_prog_CC+set}" = set; then |
|---|
| 1339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 1340 | else |
|---|
| 1341 | if test -n "$CC"; then |
|---|
| 1342 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 1343 | else |
|---|
| 1344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 1345 | for as_dir in $PATH |
|---|
| 1346 | do |
|---|
| 1347 | IFS=$as_save_IFS |
|---|
| 1348 | test -z "$as_dir" && as_dir=. |
|---|
| 1349 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 1350 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 1351 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|---|
| 1352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 1353 | break 2 |
|---|
| 1354 | fi |
|---|
| 1355 | done |
|---|
| 1356 | done |
|---|
| 1357 | |
|---|
| 1358 | fi |
|---|
| 1359 | fi |
|---|
| 1360 | CC=$ac_cv_prog_CC |
|---|
| 1361 | if test -n "$CC"; then |
|---|
| 1362 | echo "$as_me:$LINENO: result: $CC" >&5 |
|---|
| 1363 | echo "${ECHO_T}$CC" >&6 |
|---|
| 1364 | else |
|---|
| 1365 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 1366 | echo "${ECHO_T}no" >&6 |
|---|
| 1367 | fi |
|---|
| 1368 | |
|---|
| 1369 | fi |
|---|
| 1370 | if test -z "$ac_cv_prog_CC"; then |
|---|
| 1371 | ac_ct_CC=$CC |
|---|
| 1372 | # Extract the first word of "gcc", so it can be a program name with args. |
|---|
| 1373 | set dummy gcc; ac_word=$2 |
|---|
| 1374 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 1375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 1376 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|---|
| 1377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 1378 | else |
|---|
| 1379 | if test -n "$ac_ct_CC"; then |
|---|
| 1380 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|---|
| 1381 | else |
|---|
| 1382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 1383 | for as_dir in $PATH |
|---|
| 1384 | do |
|---|
| 1385 | IFS=$as_save_IFS |
|---|
| 1386 | test -z "$as_dir" && as_dir=. |
|---|
| 1387 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 1388 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 1389 | ac_cv_prog_ac_ct_CC="gcc" |
|---|
| 1390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 1391 | break 2 |
|---|
| 1392 | fi |
|---|
| 1393 | done |
|---|
| 1394 | done |
|---|
| 1395 | |
|---|
| 1396 | fi |
|---|
| 1397 | fi |
|---|
| 1398 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|---|
| 1399 | if test -n "$ac_ct_CC"; then |
|---|
| 1400 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|---|
| 1401 | echo "${ECHO_T}$ac_ct_CC" >&6 |
|---|
| 1402 | else |
|---|
| 1403 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 1404 | echo "${ECHO_T}no" >&6 |
|---|
| 1405 | fi |
|---|
| 1406 | |
|---|
| 1407 | CC=$ac_ct_CC |
|---|
| 1408 | else |
|---|
| 1409 | CC="$ac_cv_prog_CC" |
|---|
| 1410 | fi |
|---|
| 1411 | |
|---|
| 1412 | if test -z "$CC"; then |
|---|
| 1413 | if test -n "$ac_tool_prefix"; then |
|---|
| 1414 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|---|
| 1415 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|---|
| 1416 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 1417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 1418 | if test "${ac_cv_prog_CC+set}" = set; then |
|---|
| 1419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 1420 | else |
|---|
| 1421 | if test -n "$CC"; then |
|---|
| 1422 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 1423 | else |
|---|
| 1424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 1425 | for as_dir in $PATH |
|---|
| 1426 | do |
|---|
| 1427 | IFS=$as_save_IFS |
|---|
| 1428 | test -z "$as_dir" && as_dir=. |
|---|
| 1429 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 1430 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 1431 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
|---|
| 1432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 1433 | break 2 |
|---|
| 1434 | fi |
|---|
| 1435 | done |
|---|
| 1436 | done |
|---|
| 1437 | |
|---|
| 1438 | fi |
|---|
| 1439 | fi |
|---|
| 1440 | CC=$ac_cv_prog_CC |
|---|
| 1441 | if test -n "$CC"; then |
|---|
| 1442 | echo "$as_me:$LINENO: result: $CC" >&5 |
|---|
| 1443 | echo "${ECHO_T}$CC" >&6 |
|---|
| 1444 | else |
|---|
| 1445 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 1446 | echo "${ECHO_T}no" >&6 |
|---|
| 1447 | fi |
|---|
| 1448 | |
|---|
| 1449 | fi |
|---|
| 1450 | if test -z "$ac_cv_prog_CC"; then |
|---|
| 1451 | ac_ct_CC=$CC |
|---|
| 1452 | # Extract the first word of "cc", so it can be a program name with args. |
|---|
| 1453 | set dummy cc; ac_word=$2 |
|---|
| 1454 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 1455 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 1456 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|---|
| 1457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 1458 | else |
|---|
| 1459 | if test -n "$ac_ct_CC"; then |
|---|
| 1460 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|---|
| 1461 | else |
|---|
| 1462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 1463 | for as_dir in $PATH |
|---|
| 1464 | do |
|---|
| 1465 | IFS=$as_save_IFS |
|---|
| 1466 | test -z "$as_dir" && as_dir=. |
|---|
| 1467 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 1468 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 1469 | ac_cv_prog_ac_ct_CC="cc" |
|---|
| 1470 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 1471 | break 2 |
|---|
| 1472 | fi |
|---|
| 1473 | done |
|---|
| 1474 | done |
|---|
| 1475 | |
|---|
| 1476 | fi |
|---|
| 1477 | fi |
|---|
| 1478 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|---|
| 1479 | if test -n "$ac_ct_CC"; then |
|---|
| 1480 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|---|
| 1481 | echo "${ECHO_T}$ac_ct_CC" >&6 |
|---|
| 1482 | else |
|---|
| 1483 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 1484 | echo "${ECHO_T}no" >&6 |
|---|
| 1485 | fi |
|---|
| 1486 | |
|---|
| 1487 | CC=$ac_ct_CC |
|---|
| 1488 | else |
|---|
| 1489 | CC="$ac_cv_prog_CC" |
|---|
| 1490 | fi |
|---|
| 1491 | |
|---|
| 1492 | fi |
|---|
| 1493 | if test -z "$CC"; then |
|---|
| 1494 | # Extract the first word of "cc", so it can be a program name with args. |
|---|
| 1495 | set dummy cc; ac_word=$2 |
|---|
| 1496 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 1497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 1498 | if test "${ac_cv_prog_CC+set}" = set; then |
|---|
| 1499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 1500 | else |
|---|
| 1501 | if test -n "$CC"; then |
|---|
| 1502 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 1503 | else |
|---|
| 1504 | ac_prog_rejected=no |
|---|
| 1505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 1506 | for as_dir in $PATH |
|---|
| 1507 | do |
|---|
| 1508 | IFS=$as_save_IFS |
|---|
| 1509 | test -z "$as_dir" && as_dir=. |
|---|
| 1510 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 1511 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 1512 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|---|
| 1513 | ac_prog_rejected=yes |
|---|
| 1514 | continue |
|---|
| 1515 | fi |
|---|
| 1516 | ac_cv_prog_CC="cc" |
|---|
| 1517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 1518 | break 2 |
|---|
| 1519 | fi |
|---|
| 1520 | done |
|---|
| 1521 | done |
|---|
| 1522 | |
|---|
| 1523 | if test $ac_prog_rejected = yes; then |
|---|
| 1524 | # We found a bogon in the path, so make sure we never use it. |
|---|
| 1525 | set dummy $ac_cv_prog_CC |
|---|
| 1526 | shift |
|---|
| 1527 | if test $# != 0; then |
|---|
| 1528 | # We chose a different compiler from the bogus one. |
|---|
| 1529 | # However, it has the same basename, so the bogon will be chosen |
|---|
| 1530 | # first if we set CC to just the basename; use the full file name. |
|---|
| 1531 | shift |
|---|
| 1532 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|---|
| 1533 | fi |
|---|
| 1534 | fi |
|---|
| 1535 | fi |
|---|
| 1536 | fi |
|---|
| 1537 | CC=$ac_cv_prog_CC |
|---|
| 1538 | if test -n "$CC"; then |
|---|
| 1539 | echo "$as_me:$LINENO: result: $CC" >&5 |
|---|
| 1540 | echo "${ECHO_T}$CC" >&6 |
|---|
| 1541 | else |
|---|
| 1542 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 1543 | echo "${ECHO_T}no" >&6 |
|---|
| 1544 | fi |
|---|
| 1545 | |
|---|
| 1546 | fi |
|---|
| 1547 | if test -z "$CC"; then |
|---|
| 1548 | if test -n "$ac_tool_prefix"; then |
|---|
| 1549 | for ac_prog in cl |
|---|
| 1550 | do |
|---|
| 1551 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|---|
| 1552 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|---|
| 1553 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 1554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 1555 | if test "${ac_cv_prog_CC+set}" = set; then |
|---|
| 1556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 1557 | else |
|---|
| 1558 | if test -n "$CC"; then |
|---|
| 1559 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 1560 | else |
|---|
| 1561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 1562 | for as_dir in $PATH |
|---|
| 1563 | do |
|---|
| 1564 | IFS=$as_save_IFS |
|---|
| 1565 | test -z "$as_dir" && as_dir=. |
|---|
| 1566 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 1567 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 1568 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|---|
| 1569 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 1570 | break 2 |
|---|
| 1571 | fi |
|---|
| 1572 | done |
|---|
| 1573 | done |
|---|
| 1574 | |
|---|
| 1575 | fi |
|---|
| 1576 | fi |
|---|
| 1577 | CC=$ac_cv_prog_CC |
|---|
| 1578 | if test -n "$CC"; then |
|---|
| 1579 | echo "$as_me:$LINENO: result: $CC" >&5 |
|---|
| 1580 | echo "${ECHO_T}$CC" >&6 |
|---|
| 1581 | else |
|---|
| 1582 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 1583 | echo "${ECHO_T}no" >&6 |
|---|
| 1584 | fi |
|---|
| 1585 | |
|---|
| 1586 | test -n "$CC" && break |
|---|
| 1587 | done |
|---|
| 1588 | fi |
|---|
| 1589 | if test -z "$CC"; then |
|---|
| 1590 | ac_ct_CC=$CC |
|---|
| 1591 | for ac_prog in cl |
|---|
| 1592 | do |
|---|
| 1593 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|---|
| 1594 | set dummy $ac_prog; ac_word=$2 |
|---|
| 1595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 1596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 1597 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|---|
| 1598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 1599 | else |
|---|
| 1600 | if test -n "$ac_ct_CC"; then |
|---|
| 1601 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|---|
| 1602 | else |
|---|
| 1603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 1604 | for as_dir in $PATH |
|---|
| 1605 | do |
|---|
| 1606 | IFS=$as_save_IFS |
|---|
| 1607 | test -z "$as_dir" && as_dir=. |
|---|
| 1608 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 1609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 1610 | ac_cv_prog_ac_ct_CC="$ac_prog" |
|---|
| 1611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 1612 | break 2 |
|---|
| 1613 | fi |
|---|
| 1614 | done |
|---|
| 1615 | done |
|---|
| 1616 | |
|---|
| 1617 | fi |
|---|
| 1618 | fi |
|---|
| 1619 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|---|
| 1620 | if test -n "$ac_ct_CC"; then |
|---|
| 1621 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|---|
| 1622 | echo "${ECHO_T}$ac_ct_CC" >&6 |
|---|
| 1623 | else |
|---|
| 1624 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 1625 | echo "${ECHO_T}no" >&6 |
|---|
| 1626 | fi |
|---|
| 1627 | |
|---|
| 1628 | test -n "$ac_ct_CC" && break |
|---|
| 1629 | done |
|---|
| 1630 | |
|---|
| 1631 | CC=$ac_ct_CC |
|---|
| 1632 | fi |
|---|
| 1633 | |
|---|
| 1634 | fi |
|---|
| 1635 | |
|---|
| 1636 | |
|---|
| 1637 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
|---|
| 1638 | See \`config.log' for more details." >&5 |
|---|
| 1639 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
|---|
| 1640 | See \`config.log' for more details." >&2;} |
|---|
| 1641 | { (exit 1); exit 1; }; } |
|---|
| 1642 | |
|---|
| 1643 | # Provide some information about the compiler. |
|---|
| 1644 | echo "$as_me:$LINENO:" \ |
|---|
| 1645 | "checking for C compiler version" >&5 |
|---|
| 1646 | ac_compiler=`set X $ac_compile; echo $2` |
|---|
| 1647 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|---|
| 1648 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
|---|
| 1649 | ac_status=$? |
|---|
| 1650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 1651 | (exit $ac_status); } |
|---|
| 1652 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|---|
| 1653 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
|---|
| 1654 | ac_status=$? |
|---|
| 1655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 1656 | (exit $ac_status); } |
|---|
| 1657 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|---|
| 1658 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
|---|
| 1659 | ac_status=$? |
|---|
| 1660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 1661 | (exit $ac_status); } |
|---|
| 1662 | |
|---|
| 1663 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 1664 | /* confdefs.h. */ |
|---|
| 1665 | _ACEOF |
|---|
| 1666 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 1667 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 1668 | /* end confdefs.h. */ |
|---|
| 1669 | |
|---|
| 1670 | int |
|---|
| 1671 | main () |
|---|
| 1672 | { |
|---|
| 1673 | |
|---|
| 1674 | ; |
|---|
| 1675 | return 0; |
|---|
| 1676 | } |
|---|
| 1677 | _ACEOF |
|---|
| 1678 | ac_clean_files_save=$ac_clean_files |
|---|
| 1679 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
|---|
| 1680 | # Try to create an executable without -o first, disregard a.out. |
|---|
| 1681 | # It will help us diagnose broken compilers, and finding out an intuition |
|---|
| 1682 | # of exeext. |
|---|
| 1683 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
|---|
| 1684 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
|---|
| 1685 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|---|
| 1686 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
|---|
| 1687 | (eval $ac_link_default) 2>&5 |
|---|
| 1688 | ac_status=$? |
|---|
| 1689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 1690 | (exit $ac_status); }; then |
|---|
| 1691 | # Find the output, starting from the most likely. This scheme is |
|---|
| 1692 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
|---|
| 1693 | # resort. |
|---|
| 1694 | |
|---|
| 1695 | # Be careful to initialize this variable, since it used to be cached. |
|---|
| 1696 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
|---|
| 1697 | ac_cv_exeext= |
|---|
| 1698 | # b.out is created by i960 compilers. |
|---|
| 1699 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
|---|
| 1700 | do |
|---|
| 1701 | test -f "$ac_file" || continue |
|---|
| 1702 | case $ac_file in |
|---|
| 1703 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
|---|
| 1704 | ;; |
|---|
| 1705 | conftest.$ac_ext ) |
|---|
| 1706 | # This is the source file. |
|---|
| 1707 | ;; |
|---|
| 1708 | [ab].out ) |
|---|
| 1709 | # We found the default executable, but exeext='' is most |
|---|
| 1710 | # certainly right. |
|---|
| 1711 | break;; |
|---|
| 1712 | *.* ) |
|---|
| 1713 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|---|
| 1714 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
|---|
| 1715 | # but it would be cool to find out if it's true. Does anybody |
|---|
| 1716 | # maintain Libtool? --akim. |
|---|
| 1717 | export ac_cv_exeext |
|---|
| 1718 | break;; |
|---|
| 1719 | * ) |
|---|
| 1720 | break;; |
|---|
| 1721 | esac |
|---|
| 1722 | done |
|---|
| 1723 | else |
|---|
| 1724 | echo "$as_me: failed program was:" >&5 |
|---|
| 1725 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 1726 | |
|---|
| 1727 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
|---|
| 1728 | See \`config.log' for more details." >&5 |
|---|
| 1729 | echo "$as_me: error: C compiler cannot create executables |
|---|
| 1730 | See \`config.log' for more details." >&2;} |
|---|
| 1731 | { (exit 77); exit 77; }; } |
|---|
| 1732 | fi |
|---|
| 1733 | |
|---|
| 1734 | ac_exeext=$ac_cv_exeext |
|---|
| 1735 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
|---|
| 1736 | echo "${ECHO_T}$ac_file" >&6 |
|---|
| 1737 | |
|---|
| 1738 | # Check the compiler produces executables we can run. If not, either |
|---|
| 1739 | # the compiler is broken, or we cross compile. |
|---|
| 1740 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
|---|
| 1741 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
|---|
| 1742 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
|---|
| 1743 | # If not cross compiling, check that we can run a simple program. |
|---|
| 1744 | if test "$cross_compiling" != yes; then |
|---|
| 1745 | if { ac_try='./$ac_file' |
|---|
| 1746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 1747 | (eval $ac_try) 2>&5 |
|---|
| 1748 | ac_status=$? |
|---|
| 1749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 1750 | (exit $ac_status); }; }; then |
|---|
| 1751 | cross_compiling=no |
|---|
| 1752 | else |
|---|
| 1753 | if test "$cross_compiling" = maybe; then |
|---|
| 1754 | cross_compiling=yes |
|---|
| 1755 | else |
|---|
| 1756 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
|---|
| 1757 | If you meant to cross compile, use \`--host'. |
|---|
| 1758 | See \`config.log' for more details." >&5 |
|---|
| 1759 | echo "$as_me: error: cannot run C compiled programs. |
|---|
| 1760 | If you meant to cross compile, use \`--host'. |
|---|
| 1761 | See \`config.log' for more details." >&2;} |
|---|
| 1762 | { (exit 1); exit 1; }; } |
|---|
| 1763 | fi |
|---|
| 1764 | fi |
|---|
| 1765 | fi |
|---|
| 1766 | echo "$as_me:$LINENO: result: yes" >&5 |
|---|
| 1767 | echo "${ECHO_T}yes" >&6 |
|---|
| 1768 | |
|---|
| 1769 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
|---|
| 1770 | ac_clean_files=$ac_clean_files_save |
|---|
| 1771 | # Check the compiler produces executables we can run. If not, either |
|---|
| 1772 | # the compiler is broken, or we cross compile. |
|---|
| 1773 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
|---|
| 1774 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
|---|
| 1775 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
|---|
| 1776 | echo "${ECHO_T}$cross_compiling" >&6 |
|---|
| 1777 | |
|---|
| 1778 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
|---|
| 1779 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
|---|
| 1780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 1781 | (eval $ac_link) 2>&5 |
|---|
| 1782 | ac_status=$? |
|---|
| 1783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 1784 | (exit $ac_status); }; then |
|---|
| 1785 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
|---|
| 1786 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|---|
| 1787 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
|---|
| 1788 | # `rm'. |
|---|
| 1789 | for ac_file in conftest.exe conftest conftest.*; do |
|---|
| 1790 | test -f "$ac_file" || continue |
|---|
| 1791 | case $ac_file in |
|---|
| 1792 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
|---|
| 1793 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|---|
| 1794 | export ac_cv_exeext |
|---|
| 1795 | break;; |
|---|
| 1796 | * ) break;; |
|---|
| 1797 | esac |
|---|
| 1798 | done |
|---|
| 1799 | else |
|---|
| 1800 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
|---|
| 1801 | See \`config.log' for more details." >&5 |
|---|
| 1802 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
|---|
| 1803 | See \`config.log' for more details." >&2;} |
|---|
| 1804 | { (exit 1); exit 1; }; } |
|---|
| 1805 | fi |
|---|
| 1806 | |
|---|
| 1807 | rm -f conftest$ac_cv_exeext |
|---|
| 1808 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
|---|
| 1809 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
|---|
| 1810 | |
|---|
| 1811 | rm -f conftest.$ac_ext |
|---|
| 1812 | EXEEXT=$ac_cv_exeext |
|---|
| 1813 | ac_exeext=$EXEEXT |
|---|
| 1814 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
|---|
| 1815 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
|---|
| 1816 | if test "${ac_cv_objext+set}" = set; then |
|---|
| 1817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 1818 | else |
|---|
| 1819 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 1820 | /* confdefs.h. */ |
|---|
| 1821 | _ACEOF |
|---|
| 1822 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 1823 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 1824 | /* end confdefs.h. */ |
|---|
| 1825 | |
|---|
| 1826 | int |
|---|
| 1827 | main () |
|---|
| 1828 | { |
|---|
| 1829 | |
|---|
| 1830 | ; |
|---|
| 1831 | return 0; |
|---|
| 1832 | } |
|---|
| 1833 | _ACEOF |
|---|
| 1834 | rm -f conftest.o conftest.obj |
|---|
| 1835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 1836 | (eval $ac_compile) 2>&5 |
|---|
| 1837 | ac_status=$? |
|---|
| 1838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 1839 | (exit $ac_status); }; then |
|---|
| 1840 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
|---|
| 1841 | case $ac_file in |
|---|
| 1842 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
|---|
| 1843 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|---|
| 1844 | break;; |
|---|
| 1845 | esac |
|---|
| 1846 | done |
|---|
| 1847 | else |
|---|
| 1848 | echo "$as_me: failed program was:" >&5 |
|---|
| 1849 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 1850 | |
|---|
| 1851 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
|---|
| 1852 | See \`config.log' for more details." >&5 |
|---|
| 1853 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
|---|
| 1854 | See \`config.log' for more details." >&2;} |
|---|
| 1855 | { (exit 1); exit 1; }; } |
|---|
| 1856 | fi |
|---|
| 1857 | |
|---|
| 1858 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|---|
| 1859 | fi |
|---|
| 1860 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
|---|
| 1861 | echo "${ECHO_T}$ac_cv_objext" >&6 |
|---|
| 1862 | OBJEXT=$ac_cv_objext |
|---|
| 1863 | ac_objext=$OBJEXT |
|---|
| 1864 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
|---|
| 1865 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
|---|
| 1866 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|---|
| 1867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 1868 | else |
|---|
| 1869 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 1870 | /* confdefs.h. */ |
|---|
| 1871 | _ACEOF |
|---|
| 1872 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 1873 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 1874 | /* end confdefs.h. */ |
|---|
| 1875 | |
|---|
| 1876 | int |
|---|
| 1877 | main () |
|---|
| 1878 | { |
|---|
| 1879 | #ifndef __GNUC__ |
|---|
| 1880 | choke me |
|---|
| 1881 | #endif |
|---|
| 1882 | |
|---|
| 1883 | ; |
|---|
| 1884 | return 0; |
|---|
| 1885 | } |
|---|
| 1886 | _ACEOF |
|---|
| 1887 | rm -f conftest.$ac_objext |
|---|
| 1888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 1889 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 1890 | ac_status=$? |
|---|
| 1891 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 1892 | rm -f conftest.er1 |
|---|
| 1893 | cat conftest.err >&5 |
|---|
| 1894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 1895 | (exit $ac_status); } && |
|---|
| 1896 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 1897 | || test ! -s conftest.err' |
|---|
| 1898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 1899 | (eval $ac_try) 2>&5 |
|---|
| 1900 | ac_status=$? |
|---|
| 1901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 1902 | (exit $ac_status); }; } && |
|---|
| 1903 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 1904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 1905 | (eval $ac_try) 2>&5 |
|---|
| 1906 | ac_status=$? |
|---|
| 1907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 1908 | (exit $ac_status); }; }; then |
|---|
| 1909 | ac_compiler_gnu=yes |
|---|
| 1910 | else |
|---|
| 1911 | echo "$as_me: failed program was:" >&5 |
|---|
| 1912 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 1913 | |
|---|
| 1914 | ac_compiler_gnu=no |
|---|
| 1915 | fi |
|---|
| 1916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 1917 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|---|
| 1918 | |
|---|
| 1919 | fi |
|---|
| 1920 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|---|
| 1921 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
|---|
| 1922 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
|---|
| 1923 | ac_test_CFLAGS=${CFLAGS+set} |
|---|
| 1924 | ac_save_CFLAGS=$CFLAGS |
|---|
| 1925 | CFLAGS="-g" |
|---|
| 1926 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
|---|
| 1927 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
|---|
| 1928 | if test "${ac_cv_prog_cc_g+set}" = set; then |
|---|
| 1929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 1930 | else |
|---|
| 1931 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 1932 | /* confdefs.h. */ |
|---|
| 1933 | _ACEOF |
|---|
| 1934 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 1935 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 1936 | /* end confdefs.h. */ |
|---|
| 1937 | |
|---|
| 1938 | int |
|---|
| 1939 | main () |
|---|
| 1940 | { |
|---|
| 1941 | |
|---|
| 1942 | ; |
|---|
| 1943 | return 0; |
|---|
| 1944 | } |
|---|
| 1945 | _ACEOF |
|---|
| 1946 | rm -f conftest.$ac_objext |
|---|
| 1947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 1948 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 1949 | ac_status=$? |
|---|
| 1950 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 1951 | rm -f conftest.er1 |
|---|
| 1952 | cat conftest.err >&5 |
|---|
| 1953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 1954 | (exit $ac_status); } && |
|---|
| 1955 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 1956 | || test ! -s conftest.err' |
|---|
| 1957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 1958 | (eval $ac_try) 2>&5 |
|---|
| 1959 | ac_status=$? |
|---|
| 1960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 1961 | (exit $ac_status); }; } && |
|---|
| 1962 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 1963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 1964 | (eval $ac_try) 2>&5 |
|---|
| 1965 | ac_status=$? |
|---|
| 1966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 1967 | (exit $ac_status); }; }; then |
|---|
| 1968 | ac_cv_prog_cc_g=yes |
|---|
| 1969 | else |
|---|
| 1970 | echo "$as_me: failed program was:" >&5 |
|---|
| 1971 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 1972 | |
|---|
| 1973 | ac_cv_prog_cc_g=no |
|---|
| 1974 | fi |
|---|
| 1975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 1976 | fi |
|---|
| 1977 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|---|
| 1978 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
|---|
| 1979 | if test "$ac_test_CFLAGS" = set; then |
|---|
| 1980 | CFLAGS=$ac_save_CFLAGS |
|---|
| 1981 | elif test $ac_cv_prog_cc_g = yes; then |
|---|
| 1982 | if test "$GCC" = yes; then |
|---|
| 1983 | CFLAGS="-g -O2" |
|---|
| 1984 | else |
|---|
| 1985 | CFLAGS="-g" |
|---|
| 1986 | fi |
|---|
| 1987 | else |
|---|
| 1988 | if test "$GCC" = yes; then |
|---|
| 1989 | CFLAGS="-O2" |
|---|
| 1990 | else |
|---|
| 1991 | CFLAGS= |
|---|
| 1992 | fi |
|---|
| 1993 | fi |
|---|
| 1994 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
|---|
| 1995 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
|---|
| 1996 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
|---|
| 1997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 1998 | else |
|---|
| 1999 | ac_cv_prog_cc_stdc=no |
|---|
| 2000 | ac_save_CC=$CC |
|---|
| 2001 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 2002 | /* confdefs.h. */ |
|---|
| 2003 | _ACEOF |
|---|
| 2004 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 2005 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 2006 | /* end confdefs.h. */ |
|---|
| 2007 | #include <stdarg.h> |
|---|
| 2008 | #include <stdio.h> |
|---|
| 2009 | #include <sys/types.h> |
|---|
| 2010 | #include <sys/stat.h> |
|---|
| 2011 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|---|
| 2012 | struct buf { int x; }; |
|---|
| 2013 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|---|
| 2014 | static char *e (p, i) |
|---|
| 2015 | char **p; |
|---|
| 2016 | int i; |
|---|
| 2017 | { |
|---|
| 2018 | return p[i]; |
|---|
| 2019 | } |
|---|
| 2020 | static char *f (char * (*g) (char **, int), char **p, ...) |
|---|
| 2021 | { |
|---|
| 2022 | char *s; |
|---|
| 2023 | va_list v; |
|---|
| 2024 | va_start (v,p); |
|---|
| 2025 | s = g (p, va_arg (v,int)); |
|---|
| 2026 | va_end (v); |
|---|
| 2027 | return s; |
|---|
| 2028 | } |
|---|
| 2029 | |
|---|
| 2030 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|---|
| 2031 | function prototypes and stuff, but not '\xHH' hex character constants. |
|---|
| 2032 | These don't provoke an error unfortunately, instead are silently treated |
|---|
| 2033 | as 'x'. The following induces an error, until -std1 is added to get |
|---|
| 2034 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|---|
| 2035 | array size at least. It's necessary to write '\x00'==0 to get something |
|---|
| 2036 | that's true only with -std1. */ |
|---|
| 2037 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|---|
| 2038 | |
|---|
| 2039 | int test (int i, double x); |
|---|
| 2040 | struct s1 {int (*f) (int a);}; |
|---|
| 2041 | struct s2 {int (*f) (double a);}; |
|---|
| 2042 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|---|
| 2043 | int argc; |
|---|
| 2044 | char **argv; |
|---|
| 2045 | int |
|---|
| 2046 | main () |
|---|
| 2047 | { |
|---|
| 2048 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|---|
| 2049 | ; |
|---|
| 2050 | return 0; |
|---|
| 2051 | } |
|---|
| 2052 | _ACEOF |
|---|
| 2053 | # Don't try gcc -ansi; that turns off useful extensions and |
|---|
| 2054 | # breaks some systems' header files. |
|---|
| 2055 | # AIX -qlanglvl=ansi |
|---|
| 2056 | # Ultrix and OSF/1 -std1 |
|---|
| 2057 | # HP-UX 10.20 and later -Ae |
|---|
| 2058 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
|---|
| 2059 | # SVR4 -Xc -D__EXTENSIONS__ |
|---|
| 2060 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|---|
| 2061 | do |
|---|
| 2062 | CC="$ac_save_CC $ac_arg" |
|---|
| 2063 | rm -f conftest.$ac_objext |
|---|
| 2064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 2065 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 2066 | ac_status=$? |
|---|
| 2067 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 2068 | rm -f conftest.er1 |
|---|
| 2069 | cat conftest.err >&5 |
|---|
| 2070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2071 | (exit $ac_status); } && |
|---|
| 2072 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 2073 | || test ! -s conftest.err' |
|---|
| 2074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2075 | (eval $ac_try) 2>&5 |
|---|
| 2076 | ac_status=$? |
|---|
| 2077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2078 | (exit $ac_status); }; } && |
|---|
| 2079 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 2080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2081 | (eval $ac_try) 2>&5 |
|---|
| 2082 | ac_status=$? |
|---|
| 2083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2084 | (exit $ac_status); }; }; then |
|---|
| 2085 | ac_cv_prog_cc_stdc=$ac_arg |
|---|
| 2086 | break |
|---|
| 2087 | else |
|---|
| 2088 | echo "$as_me: failed program was:" >&5 |
|---|
| 2089 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 2090 | |
|---|
| 2091 | fi |
|---|
| 2092 | rm -f conftest.err conftest.$ac_objext |
|---|
| 2093 | done |
|---|
| 2094 | rm -f conftest.$ac_ext conftest.$ac_objext |
|---|
| 2095 | CC=$ac_save_CC |
|---|
| 2096 | |
|---|
| 2097 | fi |
|---|
| 2098 | |
|---|
| 2099 | case "x$ac_cv_prog_cc_stdc" in |
|---|
| 2100 | x|xno) |
|---|
| 2101 | echo "$as_me:$LINENO: result: none needed" >&5 |
|---|
| 2102 | echo "${ECHO_T}none needed" >&6 ;; |
|---|
| 2103 | *) |
|---|
| 2104 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
|---|
| 2105 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
|---|
| 2106 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
|---|
| 2107 | esac |
|---|
| 2108 | |
|---|
| 2109 | # Some people use a C++ compiler to compile C. Since we use `exit', |
|---|
| 2110 | # in C++ we need to declare it. In case someone uses the same compiler |
|---|
| 2111 | # for both compiling C and C++ we need to have the C++ compiler decide |
|---|
| 2112 | # the declaration of exit, since it's the most demanding environment. |
|---|
| 2113 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 2114 | #ifndef __cplusplus |
|---|
| 2115 | choke me |
|---|
| 2116 | #endif |
|---|
| 2117 | _ACEOF |
|---|
| 2118 | rm -f conftest.$ac_objext |
|---|
| 2119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 2120 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 2121 | ac_status=$? |
|---|
| 2122 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 2123 | rm -f conftest.er1 |
|---|
| 2124 | cat conftest.err >&5 |
|---|
| 2125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2126 | (exit $ac_status); } && |
|---|
| 2127 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 2128 | || test ! -s conftest.err' |
|---|
| 2129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2130 | (eval $ac_try) 2>&5 |
|---|
| 2131 | ac_status=$? |
|---|
| 2132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2133 | (exit $ac_status); }; } && |
|---|
| 2134 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 2135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2136 | (eval $ac_try) 2>&5 |
|---|
| 2137 | ac_status=$? |
|---|
| 2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2139 | (exit $ac_status); }; }; then |
|---|
| 2140 | for ac_declaration in \ |
|---|
| 2141 | '' \ |
|---|
| 2142 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
|---|
| 2143 | 'extern "C" void std::exit (int); using std::exit;' \ |
|---|
| 2144 | 'extern "C" void exit (int) throw ();' \ |
|---|
| 2145 | 'extern "C" void exit (int);' \ |
|---|
| 2146 | 'void exit (int);' |
|---|
| 2147 | do |
|---|
| 2148 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 2149 | /* confdefs.h. */ |
|---|
| 2150 | _ACEOF |
|---|
| 2151 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 2152 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 2153 | /* end confdefs.h. */ |
|---|
| 2154 | $ac_declaration |
|---|
| 2155 | #include <stdlib.h> |
|---|
| 2156 | int |
|---|
| 2157 | main () |
|---|
| 2158 | { |
|---|
| 2159 | exit (42); |
|---|
| 2160 | ; |
|---|
| 2161 | return 0; |
|---|
| 2162 | } |
|---|
| 2163 | _ACEOF |
|---|
| 2164 | rm -f conftest.$ac_objext |
|---|
| 2165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 2166 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 2167 | ac_status=$? |
|---|
| 2168 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 2169 | rm -f conftest.er1 |
|---|
| 2170 | cat conftest.err >&5 |
|---|
| 2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2172 | (exit $ac_status); } && |
|---|
| 2173 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 2174 | || test ! -s conftest.err' |
|---|
| 2175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2176 | (eval $ac_try) 2>&5 |
|---|
| 2177 | ac_status=$? |
|---|
| 2178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2179 | (exit $ac_status); }; } && |
|---|
| 2180 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 2181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2182 | (eval $ac_try) 2>&5 |
|---|
| 2183 | ac_status=$? |
|---|
| 2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2185 | (exit $ac_status); }; }; then |
|---|
| 2186 | : |
|---|
| 2187 | else |
|---|
| 2188 | echo "$as_me: failed program was:" >&5 |
|---|
| 2189 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 2190 | |
|---|
| 2191 | continue |
|---|
| 2192 | fi |
|---|
| 2193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 2194 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 2195 | /* confdefs.h. */ |
|---|
| 2196 | _ACEOF |
|---|
| 2197 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 2198 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 2199 | /* end confdefs.h. */ |
|---|
| 2200 | $ac_declaration |
|---|
| 2201 | int |
|---|
| 2202 | main () |
|---|
| 2203 | { |
|---|
| 2204 | exit (42); |
|---|
| 2205 | ; |
|---|
| 2206 | return 0; |
|---|
| 2207 | } |
|---|
| 2208 | _ACEOF |
|---|
| 2209 | rm -f conftest.$ac_objext |
|---|
| 2210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 2211 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 2212 | ac_status=$? |
|---|
| 2213 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 2214 | rm -f conftest.er1 |
|---|
| 2215 | cat conftest.err >&5 |
|---|
| 2216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2217 | (exit $ac_status); } && |
|---|
| 2218 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 2219 | || test ! -s conftest.err' |
|---|
| 2220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2221 | (eval $ac_try) 2>&5 |
|---|
| 2222 | ac_status=$? |
|---|
| 2223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2224 | (exit $ac_status); }; } && |
|---|
| 2225 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 2226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2227 | (eval $ac_try) 2>&5 |
|---|
| 2228 | ac_status=$? |
|---|
| 2229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2230 | (exit $ac_status); }; }; then |
|---|
| 2231 | break |
|---|
| 2232 | else |
|---|
| 2233 | echo "$as_me: failed program was:" >&5 |
|---|
| 2234 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 2235 | |
|---|
| 2236 | fi |
|---|
| 2237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 2238 | done |
|---|
| 2239 | rm -f conftest* |
|---|
| 2240 | if test -n "$ac_declaration"; then |
|---|
| 2241 | echo '#ifdef __cplusplus' >>confdefs.h |
|---|
| 2242 | echo $ac_declaration >>confdefs.h |
|---|
| 2243 | echo '#endif' >>confdefs.h |
|---|
| 2244 | fi |
|---|
| 2245 | |
|---|
| 2246 | else |
|---|
| 2247 | echo "$as_me: failed program was:" >&5 |
|---|
| 2248 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 2249 | |
|---|
| 2250 | fi |
|---|
| 2251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 2252 | ac_ext=c |
|---|
| 2253 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 2254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 2255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 2256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 2257 | |
|---|
| 2258 | for ac_prog in 'bison -y' byacc |
|---|
| 2259 | do |
|---|
| 2260 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|---|
| 2261 | set dummy $ac_prog; ac_word=$2 |
|---|
| 2262 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 2263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 2264 | if test "${ac_cv_prog_YACC+set}" = set; then |
|---|
| 2265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 2266 | else |
|---|
| 2267 | if test -n "$YACC"; then |
|---|
| 2268 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
|---|
| 2269 | else |
|---|
| 2270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2271 | for as_dir in $PATH |
|---|
| 2272 | do |
|---|
| 2273 | IFS=$as_save_IFS |
|---|
| 2274 | test -z "$as_dir" && as_dir=. |
|---|
| 2275 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2276 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 2277 | ac_cv_prog_YACC="$ac_prog" |
|---|
| 2278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2279 | break 2 |
|---|
| 2280 | fi |
|---|
| 2281 | done |
|---|
| 2282 | done |
|---|
| 2283 | |
|---|
| 2284 | fi |
|---|
| 2285 | fi |
|---|
| 2286 | YACC=$ac_cv_prog_YACC |
|---|
| 2287 | if test -n "$YACC"; then |
|---|
| 2288 | echo "$as_me:$LINENO: result: $YACC" >&5 |
|---|
| 2289 | echo "${ECHO_T}$YACC" >&6 |
|---|
| 2290 | else |
|---|
| 2291 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 2292 | echo "${ECHO_T}no" >&6 |
|---|
| 2293 | fi |
|---|
| 2294 | |
|---|
| 2295 | test -n "$YACC" && break |
|---|
| 2296 | done |
|---|
| 2297 | test -n "$YACC" || YACC="yacc" |
|---|
| 2298 | |
|---|
| 2299 | |
|---|
| 2300 | for ac_prog in flex lex |
|---|
| 2301 | do |
|---|
| 2302 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|---|
| 2303 | set dummy $ac_prog; ac_word=$2 |
|---|
| 2304 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 2305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 2306 | if test "${ac_cv_prog_LEX+set}" = set; then |
|---|
| 2307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 2308 | else |
|---|
| 2309 | if test -n "$LEX"; then |
|---|
| 2310 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
|---|
| 2311 | else |
|---|
| 2312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2313 | for as_dir in $PATH |
|---|
| 2314 | do |
|---|
| 2315 | IFS=$as_save_IFS |
|---|
| 2316 | test -z "$as_dir" && as_dir=. |
|---|
| 2317 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2318 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 2319 | ac_cv_prog_LEX="$ac_prog" |
|---|
| 2320 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2321 | break 2 |
|---|
| 2322 | fi |
|---|
| 2323 | done |
|---|
| 2324 | done |
|---|
| 2325 | |
|---|
| 2326 | fi |
|---|
| 2327 | fi |
|---|
| 2328 | LEX=$ac_cv_prog_LEX |
|---|
| 2329 | if test -n "$LEX"; then |
|---|
| 2330 | echo "$as_me:$LINENO: result: $LEX" >&5 |
|---|
| 2331 | echo "${ECHO_T}$LEX" >&6 |
|---|
| 2332 | else |
|---|
| 2333 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 2334 | echo "${ECHO_T}no" >&6 |
|---|
| 2335 | fi |
|---|
| 2336 | |
|---|
| 2337 | test -n "$LEX" && break |
|---|
| 2338 | done |
|---|
| 2339 | test -n "$LEX" || LEX=":" |
|---|
| 2340 | |
|---|
| 2341 | if test -z "$LEXLIB" |
|---|
| 2342 | then |
|---|
| 2343 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
|---|
| 2344 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
|---|
| 2345 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
|---|
| 2346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 2347 | else |
|---|
| 2348 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 2349 | LIBS="-lfl $LIBS" |
|---|
| 2350 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 2351 | /* confdefs.h. */ |
|---|
| 2352 | _ACEOF |
|---|
| 2353 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 2354 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 2355 | /* end confdefs.h. */ |
|---|
| 2356 | |
|---|
| 2357 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| 2358 | #ifdef __cplusplus |
|---|
| 2359 | extern "C" |
|---|
| 2360 | #endif |
|---|
| 2361 | /* We use char because int might match the return type of a gcc2 |
|---|
| 2362 | builtin and then its argument prototype would still apply. */ |
|---|
| 2363 | char yywrap (); |
|---|
| 2364 | int |
|---|
| 2365 | main () |
|---|
| 2366 | { |
|---|
| 2367 | yywrap (); |
|---|
| 2368 | ; |
|---|
| 2369 | return 0; |
|---|
| 2370 | } |
|---|
| 2371 | _ACEOF |
|---|
| 2372 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 2373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 2374 | (eval $ac_link) 2>conftest.er1 |
|---|
| 2375 | ac_status=$? |
|---|
| 2376 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 2377 | rm -f conftest.er1 |
|---|
| 2378 | cat conftest.err >&5 |
|---|
| 2379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2380 | (exit $ac_status); } && |
|---|
| 2381 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 2382 | || test ! -s conftest.err' |
|---|
| 2383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2384 | (eval $ac_try) 2>&5 |
|---|
| 2385 | ac_status=$? |
|---|
| 2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2387 | (exit $ac_status); }; } && |
|---|
| 2388 | { ac_try='test -s conftest$ac_exeext' |
|---|
| 2389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2390 | (eval $ac_try) 2>&5 |
|---|
| 2391 | ac_status=$? |
|---|
| 2392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2393 | (exit $ac_status); }; }; then |
|---|
| 2394 | ac_cv_lib_fl_yywrap=yes |
|---|
| 2395 | else |
|---|
| 2396 | echo "$as_me: failed program was:" >&5 |
|---|
| 2397 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 2398 | |
|---|
| 2399 | ac_cv_lib_fl_yywrap=no |
|---|
| 2400 | fi |
|---|
| 2401 | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 2402 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 2403 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 2404 | fi |
|---|
| 2405 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
|---|
| 2406 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
|---|
| 2407 | if test $ac_cv_lib_fl_yywrap = yes; then |
|---|
| 2408 | LEXLIB="-lfl" |
|---|
| 2409 | else |
|---|
| 2410 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
|---|
| 2411 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
|---|
| 2412 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
|---|
| 2413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 2414 | else |
|---|
| 2415 | ac_check_lib_save_LIBS=$LIBS |
|---|
| 2416 | LIBS="-ll $LIBS" |
|---|
| 2417 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 2418 | /* confdefs.h. */ |
|---|
| 2419 | _ACEOF |
|---|
| 2420 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 2421 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 2422 | /* end confdefs.h. */ |
|---|
| 2423 | |
|---|
| 2424 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| 2425 | #ifdef __cplusplus |
|---|
| 2426 | extern "C" |
|---|
| 2427 | #endif |
|---|
| 2428 | /* We use char because int might match the return type of a gcc2 |
|---|
| 2429 | builtin and then its argument prototype would still apply. */ |
|---|
| 2430 | char yywrap (); |
|---|
| 2431 | int |
|---|
| 2432 | main () |
|---|
| 2433 | { |
|---|
| 2434 | yywrap (); |
|---|
| 2435 | ; |
|---|
| 2436 | return 0; |
|---|
| 2437 | } |
|---|
| 2438 | _ACEOF |
|---|
| 2439 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 2440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 2441 | (eval $ac_link) 2>conftest.er1 |
|---|
| 2442 | ac_status=$? |
|---|
| 2443 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 2444 | rm -f conftest.er1 |
|---|
| 2445 | cat conftest.err >&5 |
|---|
| 2446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2447 | (exit $ac_status); } && |
|---|
| 2448 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 2449 | || test ! -s conftest.err' |
|---|
| 2450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2451 | (eval $ac_try) 2>&5 |
|---|
| 2452 | ac_status=$? |
|---|
| 2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2454 | (exit $ac_status); }; } && |
|---|
| 2455 | { ac_try='test -s conftest$ac_exeext' |
|---|
| 2456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2457 | (eval $ac_try) 2>&5 |
|---|
| 2458 | ac_status=$? |
|---|
| 2459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2460 | (exit $ac_status); }; }; then |
|---|
| 2461 | ac_cv_lib_l_yywrap=yes |
|---|
| 2462 | else |
|---|
| 2463 | echo "$as_me: failed program was:" >&5 |
|---|
| 2464 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 2465 | |
|---|
| 2466 | ac_cv_lib_l_yywrap=no |
|---|
| 2467 | fi |
|---|
| 2468 | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 2469 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 2470 | LIBS=$ac_check_lib_save_LIBS |
|---|
| 2471 | fi |
|---|
| 2472 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
|---|
| 2473 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
|---|
| 2474 | if test $ac_cv_lib_l_yywrap = yes; then |
|---|
| 2475 | LEXLIB="-ll" |
|---|
| 2476 | fi |
|---|
| 2477 | |
|---|
| 2478 | fi |
|---|
| 2479 | |
|---|
| 2480 | fi |
|---|
| 2481 | |
|---|
| 2482 | if test "x$LEX" != "x:"; then |
|---|
| 2483 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
|---|
| 2484 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
|---|
| 2485 | if test "${ac_cv_prog_lex_root+set}" = set; then |
|---|
| 2486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 2487 | else |
|---|
| 2488 | # The minimal lex program is just a single line: %%. But some broken lexes |
|---|
| 2489 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
|---|
| 2490 | cat >conftest.l <<_ACEOF |
|---|
| 2491 | %% |
|---|
| 2492 | %% |
|---|
| 2493 | _ACEOF |
|---|
| 2494 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
|---|
| 2495 | (eval $LEX conftest.l) 2>&5 |
|---|
| 2496 | ac_status=$? |
|---|
| 2497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2498 | (exit $ac_status); } |
|---|
| 2499 | if test -f lex.yy.c; then |
|---|
| 2500 | ac_cv_prog_lex_root=lex.yy |
|---|
| 2501 | elif test -f lexyy.c; then |
|---|
| 2502 | ac_cv_prog_lex_root=lexyy |
|---|
| 2503 | else |
|---|
| 2504 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
|---|
| 2505 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
|---|
| 2506 | { (exit 1); exit 1; }; } |
|---|
| 2507 | fi |
|---|
| 2508 | fi |
|---|
| 2509 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
|---|
| 2510 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
|---|
| 2511 | rm -f conftest.l |
|---|
| 2512 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
|---|
| 2513 | |
|---|
| 2514 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
|---|
| 2515 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
|---|
| 2516 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
|---|
| 2517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 2518 | else |
|---|
| 2519 | # POSIX says lex can declare yytext either as a pointer or an array; the |
|---|
| 2520 | # default is implementation-dependent. Figure out which it is, since |
|---|
| 2521 | # not all implementations provide the %pointer and %array declarations. |
|---|
| 2522 | ac_cv_prog_lex_yytext_pointer=no |
|---|
| 2523 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
|---|
| 2524 | ac_save_LIBS=$LIBS |
|---|
| 2525 | LIBS="$LIBS $LEXLIB" |
|---|
| 2526 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 2527 | `cat $LEX_OUTPUT_ROOT.c` |
|---|
| 2528 | _ACEOF |
|---|
| 2529 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 2530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 2531 | (eval $ac_link) 2>conftest.er1 |
|---|
| 2532 | ac_status=$? |
|---|
| 2533 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 2534 | rm -f conftest.er1 |
|---|
| 2535 | cat conftest.err >&5 |
|---|
| 2536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2537 | (exit $ac_status); } && |
|---|
| 2538 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 2539 | || test ! -s conftest.err' |
|---|
| 2540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2541 | (eval $ac_try) 2>&5 |
|---|
| 2542 | ac_status=$? |
|---|
| 2543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2544 | (exit $ac_status); }; } && |
|---|
| 2545 | { ac_try='test -s conftest$ac_exeext' |
|---|
| 2546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2547 | (eval $ac_try) 2>&5 |
|---|
| 2548 | ac_status=$? |
|---|
| 2549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2550 | (exit $ac_status); }; }; then |
|---|
| 2551 | ac_cv_prog_lex_yytext_pointer=yes |
|---|
| 2552 | else |
|---|
| 2553 | echo "$as_me: failed program was:" >&5 |
|---|
| 2554 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 2555 | |
|---|
| 2556 | fi |
|---|
| 2557 | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 2558 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 2559 | LIBS=$ac_save_LIBS |
|---|
| 2560 | rm -f "${LEX_OUTPUT_ROOT}.c" |
|---|
| 2561 | |
|---|
| 2562 | fi |
|---|
| 2563 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
|---|
| 2564 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
|---|
| 2565 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
|---|
| 2566 | |
|---|
| 2567 | cat >>confdefs.h <<\_ACEOF |
|---|
| 2568 | #define YYTEXT_POINTER 1 |
|---|
| 2569 | _ACEOF |
|---|
| 2570 | |
|---|
| 2571 | fi |
|---|
| 2572 | |
|---|
| 2573 | fi |
|---|
| 2574 | |
|---|
| 2575 | if test -n "$ac_tool_prefix"; then |
|---|
| 2576 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
|---|
| 2577 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
|---|
| 2578 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 2579 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 2580 | if test "${ac_cv_prog_AR+set}" = set; then |
|---|
| 2581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 2582 | else |
|---|
| 2583 | if test -n "$AR"; then |
|---|
| 2584 | ac_cv_prog_AR="$AR" # Let the user override the test. |
|---|
| 2585 | else |
|---|
| 2586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2587 | for as_dir in $PATH |
|---|
| 2588 | do |
|---|
| 2589 | IFS=$as_save_IFS |
|---|
| 2590 | test -z "$as_dir" && as_dir=. |
|---|
| 2591 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2592 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 2593 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
|---|
| 2594 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2595 | break 2 |
|---|
| 2596 | fi |
|---|
| 2597 | done |
|---|
| 2598 | done |
|---|
| 2599 | |
|---|
| 2600 | fi |
|---|
| 2601 | fi |
|---|
| 2602 | AR=$ac_cv_prog_AR |
|---|
| 2603 | if test -n "$AR"; then |
|---|
| 2604 | echo "$as_me:$LINENO: result: $AR" >&5 |
|---|
| 2605 | echo "${ECHO_T}$AR" >&6 |
|---|
| 2606 | else |
|---|
| 2607 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 2608 | echo "${ECHO_T}no" >&6 |
|---|
| 2609 | fi |
|---|
| 2610 | |
|---|
| 2611 | fi |
|---|
| 2612 | if test -z "$ac_cv_prog_AR"; then |
|---|
| 2613 | ac_ct_AR=$AR |
|---|
| 2614 | # Extract the first word of "ar", so it can be a program name with args. |
|---|
| 2615 | set dummy ar; ac_word=$2 |
|---|
| 2616 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 2617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 2618 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
|---|
| 2619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 2620 | else |
|---|
| 2621 | if test -n "$ac_ct_AR"; then |
|---|
| 2622 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|---|
| 2623 | else |
|---|
| 2624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2625 | for as_dir in $PATH |
|---|
| 2626 | do |
|---|
| 2627 | IFS=$as_save_IFS |
|---|
| 2628 | test -z "$as_dir" && as_dir=. |
|---|
| 2629 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2630 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 2631 | ac_cv_prog_ac_ct_AR="ar" |
|---|
| 2632 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2633 | break 2 |
|---|
| 2634 | fi |
|---|
| 2635 | done |
|---|
| 2636 | done |
|---|
| 2637 | |
|---|
| 2638 | fi |
|---|
| 2639 | fi |
|---|
| 2640 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
|---|
| 2641 | if test -n "$ac_ct_AR"; then |
|---|
| 2642 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
|---|
| 2643 | echo "${ECHO_T}$ac_ct_AR" >&6 |
|---|
| 2644 | else |
|---|
| 2645 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 2646 | echo "${ECHO_T}no" >&6 |
|---|
| 2647 | fi |
|---|
| 2648 | |
|---|
| 2649 | AR=$ac_ct_AR |
|---|
| 2650 | else |
|---|
| 2651 | AR="$ac_cv_prog_AR" |
|---|
| 2652 | fi |
|---|
| 2653 | |
|---|
| 2654 | if test -n "$ac_tool_prefix"; then |
|---|
| 2655 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|---|
| 2656 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|---|
| 2657 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 2658 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 2659 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
|---|
| 2660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 2661 | else |
|---|
| 2662 | if test -n "$RANLIB"; then |
|---|
| 2663 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|---|
| 2664 | else |
|---|
| 2665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2666 | for as_dir in $PATH |
|---|
| 2667 | do |
|---|
| 2668 | IFS=$as_save_IFS |
|---|
| 2669 | test -z "$as_dir" && as_dir=. |
|---|
| 2670 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2671 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 2672 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|---|
| 2673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2674 | break 2 |
|---|
| 2675 | fi |
|---|
| 2676 | done |
|---|
| 2677 | done |
|---|
| 2678 | |
|---|
| 2679 | fi |
|---|
| 2680 | fi |
|---|
| 2681 | RANLIB=$ac_cv_prog_RANLIB |
|---|
| 2682 | if test -n "$RANLIB"; then |
|---|
| 2683 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|---|
| 2684 | echo "${ECHO_T}$RANLIB" >&6 |
|---|
| 2685 | else |
|---|
| 2686 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 2687 | echo "${ECHO_T}no" >&6 |
|---|
| 2688 | fi |
|---|
| 2689 | |
|---|
| 2690 | fi |
|---|
| 2691 | if test -z "$ac_cv_prog_RANLIB"; then |
|---|
| 2692 | ac_ct_RANLIB=$RANLIB |
|---|
| 2693 | # Extract the first word of "ranlib", so it can be a program name with args. |
|---|
| 2694 | set dummy ranlib; ac_word=$2 |
|---|
| 2695 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 2696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 2697 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|---|
| 2698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 2699 | else |
|---|
| 2700 | if test -n "$ac_ct_RANLIB"; then |
|---|
| 2701 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|---|
| 2702 | else |
|---|
| 2703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 2704 | for as_dir in $PATH |
|---|
| 2705 | do |
|---|
| 2706 | IFS=$as_save_IFS |
|---|
| 2707 | test -z "$as_dir" && as_dir=. |
|---|
| 2708 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 2709 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 2710 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
|---|
| 2711 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 2712 | break 2 |
|---|
| 2713 | fi |
|---|
| 2714 | done |
|---|
| 2715 | done |
|---|
| 2716 | |
|---|
| 2717 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|---|
| 2718 | fi |
|---|
| 2719 | fi |
|---|
| 2720 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|---|
| 2721 | if test -n "$ac_ct_RANLIB"; then |
|---|
| 2722 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|---|
| 2723 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|---|
| 2724 | else |
|---|
| 2725 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 2726 | echo "${ECHO_T}no" >&6 |
|---|
| 2727 | fi |
|---|
| 2728 | |
|---|
| 2729 | RANLIB=$ac_ct_RANLIB |
|---|
| 2730 | else |
|---|
| 2731 | RANLIB="$ac_cv_prog_RANLIB" |
|---|
| 2732 | fi |
|---|
| 2733 | |
|---|
| 2734 | |
|---|
| 2735 | # |
|---|
| 2736 | ac_aux_dir= |
|---|
| 2737 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
|---|
| 2738 | if test -f $ac_dir/install-sh; then |
|---|
| 2739 | ac_aux_dir=$ac_dir |
|---|
| 2740 | ac_install_sh="$ac_aux_dir/install-sh -c" |
|---|
| 2741 | break |
|---|
| 2742 | elif test -f $ac_dir/install.sh; then |
|---|
| 2743 | ac_aux_dir=$ac_dir |
|---|
| 2744 | ac_install_sh="$ac_aux_dir/install.sh -c" |
|---|
| 2745 | break |
|---|
| 2746 | elif test -f $ac_dir/shtool; then |
|---|
| 2747 | ac_aux_dir=$ac_dir |
|---|
| 2748 | ac_install_sh="$ac_aux_dir/shtool install -c" |
|---|
| 2749 | break |
|---|
| 2750 | fi |
|---|
| 2751 | done |
|---|
| 2752 | if test -z "$ac_aux_dir"; then |
|---|
| 2753 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
|---|
| 2754 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
|---|
| 2755 | { (exit 1); exit 1; }; } |
|---|
| 2756 | fi |
|---|
| 2757 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
|---|
| 2758 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
|---|
| 2759 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
|---|
| 2760 | |
|---|
| 2761 | # Make sure we can run config.sub. |
|---|
| 2762 | $ac_config_sub sun4 >/dev/null 2>&1 || |
|---|
| 2763 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|---|
| 2764 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|---|
| 2765 | { (exit 1); exit 1; }; } |
|---|
| 2766 | |
|---|
| 2767 | echo "$as_me:$LINENO: checking build system type" >&5 |
|---|
| 2768 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|---|
| 2769 | if test "${ac_cv_build+set}" = set; then |
|---|
| 2770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 2771 | else |
|---|
| 2772 | ac_cv_build_alias=$build_alias |
|---|
| 2773 | test -z "$ac_cv_build_alias" && |
|---|
| 2774 | ac_cv_build_alias=`$ac_config_guess` |
|---|
| 2775 | test -z "$ac_cv_build_alias" && |
|---|
| 2776 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|---|
| 2777 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|---|
| 2778 | { (exit 1); exit 1; }; } |
|---|
| 2779 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|---|
| 2780 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|---|
| 2781 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|---|
| 2782 | { (exit 1); exit 1; }; } |
|---|
| 2783 | |
|---|
| 2784 | fi |
|---|
| 2785 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|---|
| 2786 | echo "${ECHO_T}$ac_cv_build" >&6 |
|---|
| 2787 | build=$ac_cv_build |
|---|
| 2788 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|---|
| 2789 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|---|
| 2790 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|---|
| 2791 | |
|---|
| 2792 | |
|---|
| 2793 | echo "$as_me:$LINENO: checking host system type" >&5 |
|---|
| 2794 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|---|
| 2795 | if test "${ac_cv_host+set}" = set; then |
|---|
| 2796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 2797 | else |
|---|
| 2798 | ac_cv_host_alias=$host_alias |
|---|
| 2799 | test -z "$ac_cv_host_alias" && |
|---|
| 2800 | ac_cv_host_alias=$ac_cv_build_alias |
|---|
| 2801 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|---|
| 2802 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|---|
| 2803 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|---|
| 2804 | { (exit 1); exit 1; }; } |
|---|
| 2805 | |
|---|
| 2806 | fi |
|---|
| 2807 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|---|
| 2808 | echo "${ECHO_T}$ac_cv_host" >&6 |
|---|
| 2809 | host=$ac_cv_host |
|---|
| 2810 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|---|
| 2811 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|---|
| 2812 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|---|
| 2813 | |
|---|
| 2814 | |
|---|
| 2815 | echo "$as_me:$LINENO: checking target system type" >&5 |
|---|
| 2816 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
|---|
| 2817 | if test "${ac_cv_target+set}" = set; then |
|---|
| 2818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 2819 | else |
|---|
| 2820 | ac_cv_target_alias=$target_alias |
|---|
| 2821 | test "x$ac_cv_target_alias" = "x" && |
|---|
| 2822 | ac_cv_target_alias=$ac_cv_host_alias |
|---|
| 2823 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
|---|
| 2824 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
|---|
| 2825 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
|---|
| 2826 | { (exit 1); exit 1; }; } |
|---|
| 2827 | |
|---|
| 2828 | fi |
|---|
| 2829 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
|---|
| 2830 | echo "${ECHO_T}$ac_cv_target" >&6 |
|---|
| 2831 | target=$ac_cv_target |
|---|
| 2832 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|---|
| 2833 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|---|
| 2834 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|---|
| 2835 | |
|---|
| 2836 | |
|---|
| 2837 | # The aliases save the names the user supplied, while $host etc. |
|---|
| 2838 | # will get canonicalized. |
|---|
| 2839 | test -n "$target_alias" && |
|---|
| 2840 | test "$program_prefix$program_suffix$program_transform_name" = \ |
|---|
| 2841 | NONENONEs,x,x, && |
|---|
| 2842 | program_prefix=${target_alias}- |
|---|
| 2843 | |
|---|
| 2844 | case "$target_os" in |
|---|
| 2845 | freebsd*) |
|---|
| 2846 | export LDFLAGS=-L/usr/local/lib |
|---|
| 2847 | export CPPFLAGS=-I/usr/local/include |
|---|
| 2848 | ;; |
|---|
| 2849 | esac |
|---|
| 2850 | |
|---|
| 2851 | |
|---|
| 2852 | # Checks for libraries. |
|---|
| 2853 | #AC_CHECK_LIB(iconv, iconv_open) |
|---|
| 2854 | |
|---|
| 2855 | SAVE_LIBS="$LIBS" |
|---|
| 2856 | LIBS="$LIBS -liconv" |
|---|
| 2857 | result='no' |
|---|
| 2858 | echo "$as_me:$LINENO: checking checking for libiconv" >&5 |
|---|
| 2859 | echo $ECHO_N "checking checking for libiconv... $ECHO_C" >&6 |
|---|
| 2860 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 2861 | /* confdefs.h. */ |
|---|
| 2862 | _ACEOF |
|---|
| 2863 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 2864 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 2865 | /* end confdefs.h. */ |
|---|
| 2866 | |
|---|
| 2867 | #include <stdlib.h> |
|---|
| 2868 | #include <iconv.h> |
|---|
| 2869 | |
|---|
| 2870 | int |
|---|
| 2871 | main () |
|---|
| 2872 | { |
|---|
| 2873 | |
|---|
| 2874 | iconv_t cd = iconv_open("", ""); |
|---|
| 2875 | iconv(cd, NULL, NULL, NULL, NULL); |
|---|
| 2876 | iconv_close(cd); |
|---|
| 2877 | |
|---|
| 2878 | ; |
|---|
| 2879 | return 0; |
|---|
| 2880 | } |
|---|
| 2881 | _ACEOF |
|---|
| 2882 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 2883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 2884 | (eval $ac_link) 2>conftest.er1 |
|---|
| 2885 | ac_status=$? |
|---|
| 2886 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 2887 | rm -f conftest.er1 |
|---|
| 2888 | cat conftest.err >&5 |
|---|
| 2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2890 | (exit $ac_status); } && |
|---|
| 2891 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 2892 | || test ! -s conftest.err' |
|---|
| 2893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2894 | (eval $ac_try) 2>&5 |
|---|
| 2895 | ac_status=$? |
|---|
| 2896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2897 | (exit $ac_status); }; } && |
|---|
| 2898 | { ac_try='test -s conftest$ac_exeext' |
|---|
| 2899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2900 | (eval $ac_try) 2>&5 |
|---|
| 2901 | ac_status=$? |
|---|
| 2902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2903 | (exit $ac_status); }; }; then |
|---|
| 2904 | cat >>confdefs.h <<\_ACEOF |
|---|
| 2905 | #define HAVE_LIBICONV 1 |
|---|
| 2906 | _ACEOF |
|---|
| 2907 | |
|---|
| 2908 | result='yes' |
|---|
| 2909 | else |
|---|
| 2910 | echo "$as_me: failed program was:" >&5 |
|---|
| 2911 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 2912 | |
|---|
| 2913 | LIBS="$SAVE_LIBS" |
|---|
| 2914 | fi |
|---|
| 2915 | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 2916 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 2917 | echo "$as_me:$LINENO: result: $result" >&5 |
|---|
| 2918 | echo "${ECHO_T}$result" >&6 |
|---|
| 2919 | |
|---|
| 2920 | |
|---|
| 2921 | HAVE_DLOPEN='no' |
|---|
| 2922 | echo "$as_me:$LINENO: checking checking for dlopen" >&5 |
|---|
| 2923 | echo $ECHO_N "checking checking for dlopen... $ECHO_C" >&6 |
|---|
| 2924 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 2925 | /* confdefs.h. */ |
|---|
| 2926 | _ACEOF |
|---|
| 2927 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 2928 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 2929 | /* end confdefs.h. */ |
|---|
| 2930 | |
|---|
| 2931 | #include <dlfcn.h> |
|---|
| 2932 | |
|---|
| 2933 | int |
|---|
| 2934 | main () |
|---|
| 2935 | { |
|---|
| 2936 | |
|---|
| 2937 | void * install_call; |
|---|
| 2938 | void * lib; |
|---|
| 2939 | |
|---|
| 2940 | lib = dlopen("", RTLD_LAZY); |
|---|
| 2941 | install_call = dlsym(lib, ""); |
|---|
| 2942 | dlclose(lib); |
|---|
| 2943 | |
|---|
| 2944 | ; |
|---|
| 2945 | return 0; |
|---|
| 2946 | } |
|---|
| 2947 | _ACEOF |
|---|
| 2948 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 2949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 2950 | (eval $ac_link) 2>conftest.er1 |
|---|
| 2951 | ac_status=$? |
|---|
| 2952 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 2953 | rm -f conftest.er1 |
|---|
| 2954 | cat conftest.err >&5 |
|---|
| 2955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2956 | (exit $ac_status); } && |
|---|
| 2957 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 2958 | || test ! -s conftest.err' |
|---|
| 2959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2960 | (eval $ac_try) 2>&5 |
|---|
| 2961 | ac_status=$? |
|---|
| 2962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2963 | (exit $ac_status); }; } && |
|---|
| 2964 | { ac_try='test -s conftest$ac_exeext' |
|---|
| 2965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 2966 | (eval $ac_try) 2>&5 |
|---|
| 2967 | ac_status=$? |
|---|
| 2968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 2969 | (exit $ac_status); }; }; then |
|---|
| 2970 | HAVE_DLOPEN='yes' |
|---|
| 2971 | else |
|---|
| 2972 | echo "$as_me: failed program was:" >&5 |
|---|
| 2973 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 2974 | |
|---|
| 2975 | SAVE_LIBS="$LIBS" |
|---|
| 2976 | LIBS="$LIBS -ldl" |
|---|
| 2977 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 2978 | /* confdefs.h. */ |
|---|
| 2979 | _ACEOF |
|---|
| 2980 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 2981 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 2982 | /* end confdefs.h. */ |
|---|
| 2983 | |
|---|
| 2984 | #include <dlfcn.h> |
|---|
| 2985 | |
|---|
| 2986 | int |
|---|
| 2987 | main () |
|---|
| 2988 | { |
|---|
| 2989 | |
|---|
| 2990 | void * install_call; |
|---|
| 2991 | void * lib; |
|---|
| 2992 | |
|---|
| 2993 | lib = dlopen("", RTLD_LAZY); |
|---|
| 2994 | install_call = dlsym(lib, ""); |
|---|
| 2995 | dlclose(lib); |
|---|
| 2996 | |
|---|
| 2997 | ; |
|---|
| 2998 | return 0; |
|---|
| 2999 | } |
|---|
| 3000 | _ACEOF |
|---|
| 3001 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 3002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 3003 | (eval $ac_link) 2>conftest.er1 |
|---|
| 3004 | ac_status=$? |
|---|
| 3005 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3006 | rm -f conftest.er1 |
|---|
| 3007 | cat conftest.err >&5 |
|---|
| 3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3009 | (exit $ac_status); } && |
|---|
| 3010 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 3011 | || test ! -s conftest.err' |
|---|
| 3012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3013 | (eval $ac_try) 2>&5 |
|---|
| 3014 | ac_status=$? |
|---|
| 3015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3016 | (exit $ac_status); }; } && |
|---|
| 3017 | { ac_try='test -s conftest$ac_exeext' |
|---|
| 3018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3019 | (eval $ac_try) 2>&5 |
|---|
| 3020 | ac_status=$? |
|---|
| 3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3022 | (exit $ac_status); }; }; then |
|---|
| 3023 | HAVE_DLOPEN='yes' |
|---|
| 3024 | LIBDL=" -ldl" |
|---|
| 3025 | else |
|---|
| 3026 | echo "$as_me: failed program was:" >&5 |
|---|
| 3027 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3028 | |
|---|
| 3029 | fi |
|---|
| 3030 | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 3031 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 3032 | LIBS="$SAVE_LIBS" |
|---|
| 3033 | fi |
|---|
| 3034 | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 3035 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 3036 | echo "$as_me:$LINENO: result: $HAVE_DLOPEN" >&5 |
|---|
| 3037 | echo "${ECHO_T}$HAVE_DLOPEN" >&6 |
|---|
| 3038 | |
|---|
| 3039 | |
|---|
| 3040 | # Checks for header files. |
|---|
| 3041 | ac_ext=c |
|---|
| 3042 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 3043 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 3044 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 3045 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 3046 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
|---|
| 3047 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
|---|
| 3048 | # On Suns, sometimes $CPP names a directory. |
|---|
| 3049 | if test -n "$CPP" && test -d "$CPP"; then |
|---|
| 3050 | CPP= |
|---|
| 3051 | fi |
|---|
| 3052 | if test -z "$CPP"; then |
|---|
| 3053 | if test "${ac_cv_prog_CPP+set}" = set; then |
|---|
| 3054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 3055 | else |
|---|
| 3056 | # Double quotes because CPP needs to be expanded |
|---|
| 3057 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|---|
| 3058 | do |
|---|
| 3059 | ac_preproc_ok=false |
|---|
| 3060 | for ac_c_preproc_warn_flag in '' yes |
|---|
| 3061 | do |
|---|
| 3062 | # Use a header file that comes with gcc, so configuring glibc |
|---|
| 3063 | # with a fresh cross-compiler works. |
|---|
| 3064 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 3065 | # <limits.h> exists even on freestanding compilers. |
|---|
| 3066 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|---|
| 3067 | # not just through cpp. "Syntax error" is here to catch this case. |
|---|
| 3068 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3069 | /* confdefs.h. */ |
|---|
| 3070 | _ACEOF |
|---|
| 3071 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3072 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3073 | /* end confdefs.h. */ |
|---|
| 3074 | #ifdef __STDC__ |
|---|
| 3075 | # include <limits.h> |
|---|
| 3076 | #else |
|---|
| 3077 | # include <assert.h> |
|---|
| 3078 | #endif |
|---|
| 3079 | Syntax error |
|---|
| 3080 | _ACEOF |
|---|
| 3081 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|---|
| 3082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|---|
| 3083 | ac_status=$? |
|---|
| 3084 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3085 | rm -f conftest.er1 |
|---|
| 3086 | cat conftest.err >&5 |
|---|
| 3087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3088 | (exit $ac_status); } >/dev/null; then |
|---|
| 3089 | if test -s conftest.err; then |
|---|
| 3090 | ac_cpp_err=$ac_c_preproc_warn_flag |
|---|
| 3091 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|---|
| 3092 | else |
|---|
| 3093 | ac_cpp_err= |
|---|
| 3094 | fi |
|---|
| 3095 | else |
|---|
| 3096 | ac_cpp_err=yes |
|---|
| 3097 | fi |
|---|
| 3098 | if test -z "$ac_cpp_err"; then |
|---|
| 3099 | : |
|---|
| 3100 | else |
|---|
| 3101 | echo "$as_me: failed program was:" >&5 |
|---|
| 3102 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3103 | |
|---|
| 3104 | # Broken: fails on valid input. |
|---|
| 3105 | continue |
|---|
| 3106 | fi |
|---|
| 3107 | rm -f conftest.err conftest.$ac_ext |
|---|
| 3108 | |
|---|
| 3109 | # OK, works on sane cases. Now check whether non-existent headers |
|---|
| 3110 | # can be detected and how. |
|---|
| 3111 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3112 | /* confdefs.h. */ |
|---|
| 3113 | _ACEOF |
|---|
| 3114 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3115 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3116 | /* end confdefs.h. */ |
|---|
| 3117 | #include <ac_nonexistent.h> |
|---|
| 3118 | _ACEOF |
|---|
| 3119 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|---|
| 3120 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|---|
| 3121 | ac_status=$? |
|---|
| 3122 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3123 | rm -f conftest.er1 |
|---|
| 3124 | cat conftest.err >&5 |
|---|
| 3125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3126 | (exit $ac_status); } >/dev/null; then |
|---|
| 3127 | if test -s conftest.err; then |
|---|
| 3128 | ac_cpp_err=$ac_c_preproc_warn_flag |
|---|
| 3129 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|---|
| 3130 | else |
|---|
| 3131 | ac_cpp_err= |
|---|
| 3132 | fi |
|---|
| 3133 | else |
|---|
| 3134 | ac_cpp_err=yes |
|---|
| 3135 | fi |
|---|
| 3136 | if test -z "$ac_cpp_err"; then |
|---|
| 3137 | # Broken: success on invalid input. |
|---|
| 3138 | continue |
|---|
| 3139 | else |
|---|
| 3140 | echo "$as_me: failed program was:" >&5 |
|---|
| 3141 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3142 | |
|---|
| 3143 | # Passes both tests. |
|---|
| 3144 | ac_preproc_ok=: |
|---|
| 3145 | break |
|---|
| 3146 | fi |
|---|
| 3147 | rm -f conftest.err conftest.$ac_ext |
|---|
| 3148 | |
|---|
| 3149 | done |
|---|
| 3150 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|---|
| 3151 | rm -f conftest.err conftest.$ac_ext |
|---|
| 3152 | if $ac_preproc_ok; then |
|---|
| 3153 | break |
|---|
| 3154 | fi |
|---|
| 3155 | |
|---|
| 3156 | done |
|---|
| 3157 | ac_cv_prog_CPP=$CPP |
|---|
| 3158 | |
|---|
| 3159 | fi |
|---|
| 3160 | CPP=$ac_cv_prog_CPP |
|---|
| 3161 | else |
|---|
| 3162 | ac_cv_prog_CPP=$CPP |
|---|
| 3163 | fi |
|---|
| 3164 | echo "$as_me:$LINENO: result: $CPP" >&5 |
|---|
| 3165 | echo "${ECHO_T}$CPP" >&6 |
|---|
| 3166 | ac_preproc_ok=false |
|---|
| 3167 | for ac_c_preproc_warn_flag in '' yes |
|---|
| 3168 | do |
|---|
| 3169 | # Use a header file that comes with gcc, so configuring glibc |
|---|
| 3170 | # with a fresh cross-compiler works. |
|---|
| 3171 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 3172 | # <limits.h> exists even on freestanding compilers. |
|---|
| 3173 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|---|
| 3174 | # not just through cpp. "Syntax error" is here to catch this case. |
|---|
| 3175 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3176 | /* confdefs.h. */ |
|---|
| 3177 | _ACEOF |
|---|
| 3178 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3179 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3180 | /* end confdefs.h. */ |
|---|
| 3181 | #ifdef __STDC__ |
|---|
| 3182 | # include <limits.h> |
|---|
| 3183 | #else |
|---|
| 3184 | # include <assert.h> |
|---|
| 3185 | #endif |
|---|
| 3186 | Syntax error |
|---|
| 3187 | _ACEOF |
|---|
| 3188 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|---|
| 3189 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|---|
| 3190 | ac_status=$? |
|---|
| 3191 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3192 | rm -f conftest.er1 |
|---|
| 3193 | cat conftest.err >&5 |
|---|
| 3194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3195 | (exit $ac_status); } >/dev/null; then |
|---|
| 3196 | if test -s conftest.err; then |
|---|
| 3197 | ac_cpp_err=$ac_c_preproc_warn_flag |
|---|
| 3198 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|---|
| 3199 | else |
|---|
| 3200 | ac_cpp_err= |
|---|
| 3201 | fi |
|---|
| 3202 | else |
|---|
| 3203 | ac_cpp_err=yes |
|---|
| 3204 | fi |
|---|
| 3205 | if test -z "$ac_cpp_err"; then |
|---|
| 3206 | : |
|---|
| 3207 | else |
|---|
| 3208 | echo "$as_me: failed program was:" >&5 |
|---|
| 3209 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3210 | |
|---|
| 3211 | # Broken: fails on valid input. |
|---|
| 3212 | continue |
|---|
| 3213 | fi |
|---|
| 3214 | rm -f conftest.err conftest.$ac_ext |
|---|
| 3215 | |
|---|
| 3216 | # OK, works on sane cases. Now check whether non-existent headers |
|---|
| 3217 | # can be detected and how. |
|---|
| 3218 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3219 | /* confdefs.h. */ |
|---|
| 3220 | _ACEOF |
|---|
| 3221 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3222 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3223 | /* end confdefs.h. */ |
|---|
| 3224 | #include <ac_nonexistent.h> |
|---|
| 3225 | _ACEOF |
|---|
| 3226 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|---|
| 3227 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|---|
| 3228 | ac_status=$? |
|---|
| 3229 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3230 | rm -f conftest.er1 |
|---|
| 3231 | cat conftest.err >&5 |
|---|
| 3232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3233 | (exit $ac_status); } >/dev/null; then |
|---|
| 3234 | if test -s conftest.err; then |
|---|
| 3235 | ac_cpp_err=$ac_c_preproc_warn_flag |
|---|
| 3236 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|---|
| 3237 | else |
|---|
| 3238 | ac_cpp_err= |
|---|
| 3239 | fi |
|---|
| 3240 | else |
|---|
| 3241 | ac_cpp_err=yes |
|---|
| 3242 | fi |
|---|
| 3243 | if test -z "$ac_cpp_err"; then |
|---|
| 3244 | # Broken: success on invalid input. |
|---|
| 3245 | continue |
|---|
| 3246 | else |
|---|
| 3247 | echo "$as_me: failed program was:" >&5 |
|---|
| 3248 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3249 | |
|---|
| 3250 | # Passes both tests. |
|---|
| 3251 | ac_preproc_ok=: |
|---|
| 3252 | break |
|---|
| 3253 | fi |
|---|
| 3254 | rm -f conftest.err conftest.$ac_ext |
|---|
| 3255 | |
|---|
| 3256 | done |
|---|
| 3257 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|---|
| 3258 | rm -f conftest.err conftest.$ac_ext |
|---|
| 3259 | if $ac_preproc_ok; then |
|---|
| 3260 | : |
|---|
| 3261 | else |
|---|
| 3262 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
|---|
| 3263 | See \`config.log' for more details." >&5 |
|---|
| 3264 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|---|
| 3265 | See \`config.log' for more details." >&2;} |
|---|
| 3266 | { (exit 1); exit 1; }; } |
|---|
| 3267 | fi |
|---|
| 3268 | |
|---|
| 3269 | ac_ext=c |
|---|
| 3270 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 3271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|---|
| 3272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|---|
| 3273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|---|
| 3274 | |
|---|
| 3275 | |
|---|
| 3276 | echo "$as_me:$LINENO: checking for egrep" >&5 |
|---|
| 3277 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
|---|
| 3278 | if test "${ac_cv_prog_egrep+set}" = set; then |
|---|
| 3279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 3280 | else |
|---|
| 3281 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|---|
| 3282 | then ac_cv_prog_egrep='grep -E' |
|---|
| 3283 | else ac_cv_prog_egrep='egrep' |
|---|
| 3284 | fi |
|---|
| 3285 | fi |
|---|
| 3286 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|---|
| 3287 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|---|
| 3288 | EGREP=$ac_cv_prog_egrep |
|---|
| 3289 | |
|---|
| 3290 | |
|---|
| 3291 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|---|
| 3292 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|---|
| 3293 | if test "${ac_cv_header_stdc+set}" = set; then |
|---|
| 3294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 3295 | else |
|---|
| 3296 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3297 | /* confdefs.h. */ |
|---|
| 3298 | _ACEOF |
|---|
| 3299 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3300 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3301 | /* end confdefs.h. */ |
|---|
| 3302 | #include <stdlib.h> |
|---|
| 3303 | #include <stdarg.h> |
|---|
| 3304 | #include <string.h> |
|---|
| 3305 | #include <float.h> |
|---|
| 3306 | |
|---|
| 3307 | int |
|---|
| 3308 | main () |
|---|
| 3309 | { |
|---|
| 3310 | |
|---|
| 3311 | ; |
|---|
| 3312 | return 0; |
|---|
| 3313 | } |
|---|
| 3314 | _ACEOF |
|---|
| 3315 | rm -f conftest.$ac_objext |
|---|
| 3316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 3317 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 3318 | ac_status=$? |
|---|
| 3319 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3320 | rm -f conftest.er1 |
|---|
| 3321 | cat conftest.err >&5 |
|---|
| 3322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3323 | (exit $ac_status); } && |
|---|
| 3324 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 3325 | || test ! -s conftest.err' |
|---|
| 3326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3327 | (eval $ac_try) 2>&5 |
|---|
| 3328 | ac_status=$? |
|---|
| 3329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3330 | (exit $ac_status); }; } && |
|---|
| 3331 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 3332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3333 | (eval $ac_try) 2>&5 |
|---|
| 3334 | ac_status=$? |
|---|
| 3335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3336 | (exit $ac_status); }; }; then |
|---|
| 3337 | ac_cv_header_stdc=yes |
|---|
| 3338 | else |
|---|
| 3339 | echo "$as_me: failed program was:" >&5 |
|---|
| 3340 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3341 | |
|---|
| 3342 | ac_cv_header_stdc=no |
|---|
| 3343 | fi |
|---|
| 3344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3345 | |
|---|
| 3346 | if test $ac_cv_header_stdc = yes; then |
|---|
| 3347 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|---|
| 3348 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3349 | /* confdefs.h. */ |
|---|
| 3350 | _ACEOF |
|---|
| 3351 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3352 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3353 | /* end confdefs.h. */ |
|---|
| 3354 | #include <string.h> |
|---|
| 3355 | |
|---|
| 3356 | _ACEOF |
|---|
| 3357 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|---|
| 3358 | $EGREP "memchr" >/dev/null 2>&1; then |
|---|
| 3359 | : |
|---|
| 3360 | else |
|---|
| 3361 | ac_cv_header_stdc=no |
|---|
| 3362 | fi |
|---|
| 3363 | rm -f conftest* |
|---|
| 3364 | |
|---|
| 3365 | fi |
|---|
| 3366 | |
|---|
| 3367 | if test $ac_cv_header_stdc = yes; then |
|---|
| 3368 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|---|
| 3369 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3370 | /* confdefs.h. */ |
|---|
| 3371 | _ACEOF |
|---|
| 3372 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3373 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3374 | /* end confdefs.h. */ |
|---|
| 3375 | #include <stdlib.h> |
|---|
| 3376 | |
|---|
| 3377 | _ACEOF |
|---|
| 3378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|---|
| 3379 | $EGREP "free" >/dev/null 2>&1; then |
|---|
| 3380 | : |
|---|
| 3381 | else |
|---|
| 3382 | ac_cv_header_stdc=no |
|---|
| 3383 | fi |
|---|
| 3384 | rm -f conftest* |
|---|
| 3385 | |
|---|
| 3386 | fi |
|---|
| 3387 | |
|---|
| 3388 | if test $ac_cv_header_stdc = yes; then |
|---|
| 3389 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|---|
| 3390 | if test "$cross_compiling" = yes; then |
|---|
| 3391 | : |
|---|
| 3392 | else |
|---|
| 3393 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3394 | /* confdefs.h. */ |
|---|
| 3395 | _ACEOF |
|---|
| 3396 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3397 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3398 | /* end confdefs.h. */ |
|---|
| 3399 | #include <ctype.h> |
|---|
| 3400 | #if ((' ' & 0x0FF) == 0x020) |
|---|
| 3401 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|---|
| 3402 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|---|
| 3403 | #else |
|---|
| 3404 | # define ISLOWER(c) \ |
|---|
| 3405 | (('a' <= (c) && (c) <= 'i') \ |
|---|
| 3406 | || ('j' <= (c) && (c) <= 'r') \ |
|---|
| 3407 | || ('s' <= (c) && (c) <= 'z')) |
|---|
| 3408 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|---|
| 3409 | #endif |
|---|
| 3410 | |
|---|
| 3411 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|---|
| 3412 | int |
|---|
| 3413 | main () |
|---|
| 3414 | { |
|---|
| 3415 | int i; |
|---|
| 3416 | for (i = 0; i < 256; i++) |
|---|
| 3417 | if (XOR (islower (i), ISLOWER (i)) |
|---|
| 3418 | || toupper (i) != TOUPPER (i)) |
|---|
| 3419 | exit(2); |
|---|
| 3420 | exit (0); |
|---|
| 3421 | } |
|---|
| 3422 | _ACEOF |
|---|
| 3423 | rm -f conftest$ac_exeext |
|---|
| 3424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 3425 | (eval $ac_link) 2>&5 |
|---|
| 3426 | ac_status=$? |
|---|
| 3427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3428 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| 3429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3430 | (eval $ac_try) 2>&5 |
|---|
| 3431 | ac_status=$? |
|---|
| 3432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3433 | (exit $ac_status); }; }; then |
|---|
| 3434 | : |
|---|
| 3435 | else |
|---|
| 3436 | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| 3437 | echo "$as_me: failed program was:" >&5 |
|---|
| 3438 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3439 | |
|---|
| 3440 | ( exit $ac_status ) |
|---|
| 3441 | ac_cv_header_stdc=no |
|---|
| 3442 | fi |
|---|
| 3443 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| 3444 | fi |
|---|
| 3445 | fi |
|---|
| 3446 | fi |
|---|
| 3447 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|---|
| 3448 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|---|
| 3449 | if test $ac_cv_header_stdc = yes; then |
|---|
| 3450 | |
|---|
| 3451 | cat >>confdefs.h <<\_ACEOF |
|---|
| 3452 | #define STDC_HEADERS 1 |
|---|
| 3453 | _ACEOF |
|---|
| 3454 | |
|---|
| 3455 | fi |
|---|
| 3456 | |
|---|
| 3457 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|---|
| 3458 | |
|---|
| 3459 | |
|---|
| 3460 | |
|---|
| 3461 | |
|---|
| 3462 | |
|---|
| 3463 | |
|---|
| 3464 | |
|---|
| 3465 | |
|---|
| 3466 | |
|---|
| 3467 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|---|
| 3468 | inttypes.h stdint.h unistd.h |
|---|
| 3469 | do |
|---|
| 3470 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|---|
| 3471 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| 3472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| 3473 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| 3474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 3475 | else |
|---|
| 3476 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3477 | /* confdefs.h. */ |
|---|
| 3478 | _ACEOF |
|---|
| 3479 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3480 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3481 | /* end confdefs.h. */ |
|---|
| 3482 | $ac_includes_default |
|---|
| 3483 | |
|---|
| 3484 | #include <$ac_header> |
|---|
| 3485 | _ACEOF |
|---|
| 3486 | rm -f conftest.$ac_objext |
|---|
| 3487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 3488 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 3489 | ac_status=$? |
|---|
| 3490 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3491 | rm -f conftest.er1 |
|---|
| 3492 | cat conftest.err >&5 |
|---|
| 3493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3494 | (exit $ac_status); } && |
|---|
| 3495 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 3496 | || test ! -s conftest.err' |
|---|
| 3497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3498 | (eval $ac_try) 2>&5 |
|---|
| 3499 | ac_status=$? |
|---|
| 3500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3501 | (exit $ac_status); }; } && |
|---|
| 3502 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 3503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3504 | (eval $ac_try) 2>&5 |
|---|
| 3505 | ac_status=$? |
|---|
| 3506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3507 | (exit $ac_status); }; }; then |
|---|
| 3508 | eval "$as_ac_Header=yes" |
|---|
| 3509 | else |
|---|
| 3510 | echo "$as_me: failed program was:" >&5 |
|---|
| 3511 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3512 | |
|---|
| 3513 | eval "$as_ac_Header=no" |
|---|
| 3514 | fi |
|---|
| 3515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3516 | fi |
|---|
| 3517 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| 3518 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| 3519 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|---|
| 3520 | cat >>confdefs.h <<_ACEOF |
|---|
| 3521 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|---|
| 3522 | _ACEOF |
|---|
| 3523 | |
|---|
| 3524 | fi |
|---|
| 3525 | |
|---|
| 3526 | done |
|---|
| 3527 | |
|---|
| 3528 | |
|---|
| 3529 | |
|---|
| 3530 | |
|---|
| 3531 | |
|---|
| 3532 | |
|---|
| 3533 | |
|---|
| 3534 | |
|---|
| 3535 | |
|---|
| 3536 | |
|---|
| 3537 | |
|---|
| 3538 | for ac_header in inttypes.h memory.h stdint.h stdlib.h string.h unistd.h termios.h endian.h machine/endian.h |
|---|
| 3539 | do |
|---|
| 3540 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|---|
| 3541 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| 3542 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| 3543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| 3544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| 3545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 3546 | fi |
|---|
| 3547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| 3548 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| 3549 | else |
|---|
| 3550 | # Is the header compilable? |
|---|
| 3551 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|---|
| 3552 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|---|
| 3553 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3554 | /* confdefs.h. */ |
|---|
| 3555 | _ACEOF |
|---|
| 3556 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3557 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3558 | /* end confdefs.h. */ |
|---|
| 3559 | $ac_includes_default |
|---|
| 3560 | #include <$ac_header> |
|---|
| 3561 | _ACEOF |
|---|
| 3562 | rm -f conftest.$ac_objext |
|---|
| 3563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 3564 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 3565 | ac_status=$? |
|---|
| 3566 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3567 | rm -f conftest.er1 |
|---|
| 3568 | cat conftest.err >&5 |
|---|
| 3569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3570 | (exit $ac_status); } && |
|---|
| 3571 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 3572 | || test ! -s conftest.err' |
|---|
| 3573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3574 | (eval $ac_try) 2>&5 |
|---|
| 3575 | ac_status=$? |
|---|
| 3576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3577 | (exit $ac_status); }; } && |
|---|
| 3578 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 3579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3580 | (eval $ac_try) 2>&5 |
|---|
| 3581 | ac_status=$? |
|---|
| 3582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3583 | (exit $ac_status); }; }; then |
|---|
| 3584 | ac_header_compiler=yes |
|---|
| 3585 | else |
|---|
| 3586 | echo "$as_me: failed program was:" >&5 |
|---|
| 3587 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3588 | |
|---|
| 3589 | ac_header_compiler=no |
|---|
| 3590 | fi |
|---|
| 3591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3592 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|---|
| 3593 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|---|
| 3594 | |
|---|
| 3595 | # Is the header present? |
|---|
| 3596 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|---|
| 3597 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|---|
| 3598 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3599 | /* confdefs.h. */ |
|---|
| 3600 | _ACEOF |
|---|
| 3601 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3602 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3603 | /* end confdefs.h. */ |
|---|
| 3604 | #include <$ac_header> |
|---|
| 3605 | _ACEOF |
|---|
| 3606 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|---|
| 3607 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|---|
| 3608 | ac_status=$? |
|---|
| 3609 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3610 | rm -f conftest.er1 |
|---|
| 3611 | cat conftest.err >&5 |
|---|
| 3612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3613 | (exit $ac_status); } >/dev/null; then |
|---|
| 3614 | if test -s conftest.err; then |
|---|
| 3615 | ac_cpp_err=$ac_c_preproc_warn_flag |
|---|
| 3616 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|---|
| 3617 | else |
|---|
| 3618 | ac_cpp_err= |
|---|
| 3619 | fi |
|---|
| 3620 | else |
|---|
| 3621 | ac_cpp_err=yes |
|---|
| 3622 | fi |
|---|
| 3623 | if test -z "$ac_cpp_err"; then |
|---|
| 3624 | ac_header_preproc=yes |
|---|
| 3625 | else |
|---|
| 3626 | echo "$as_me: failed program was:" >&5 |
|---|
| 3627 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3628 | |
|---|
| 3629 | ac_header_preproc=no |
|---|
| 3630 | fi |
|---|
| 3631 | rm -f conftest.err conftest.$ac_ext |
|---|
| 3632 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|---|
| 3633 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|---|
| 3634 | |
|---|
| 3635 | # So? What about this header? |
|---|
| 3636 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|---|
| 3637 | yes:no: ) |
|---|
| 3638 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|---|
| 3639 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|---|
| 3640 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|---|
| 3641 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|---|
| 3642 | ac_header_preproc=yes |
|---|
| 3643 | ;; |
|---|
| 3644 | no:yes:* ) |
|---|
| 3645 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|---|
| 3646 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|---|
| 3647 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|---|
| 3648 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|---|
| 3649 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|---|
| 3650 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|---|
| 3651 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|---|
| 3652 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|---|
| 3653 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|---|
| 3654 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|---|
| 3655 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|---|
| 3656 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|---|
| 3657 | ( |
|---|
| 3658 | cat <<\_ASBOX |
|---|
| 3659 | ## --------------------------------- ## |
|---|
| 3660 | ## Report this to BUG-REPORT-ADDRESS ## |
|---|
| 3661 | ## --------------------------------- ## |
|---|
| 3662 | _ASBOX |
|---|
| 3663 | ) | |
|---|
| 3664 | sed "s/^/$as_me: WARNING: /" >&2 |
|---|
| 3665 | ;; |
|---|
| 3666 | esac |
|---|
| 3667 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| 3668 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| 3669 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| 3670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 3671 | else |
|---|
| 3672 | eval "$as_ac_Header=\$ac_header_preproc" |
|---|
| 3673 | fi |
|---|
| 3674 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| 3675 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| 3676 | |
|---|
| 3677 | fi |
|---|
| 3678 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|---|
| 3679 | cat >>confdefs.h <<_ACEOF |
|---|
| 3680 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|---|
| 3681 | _ACEOF |
|---|
| 3682 | |
|---|
| 3683 | fi |
|---|
| 3684 | |
|---|
| 3685 | done |
|---|
| 3686 | |
|---|
| 3687 | |
|---|
| 3688 | # Checks for typedefs, structures, and compiler characteristics. |
|---|
| 3689 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
|---|
| 3690 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
|---|
| 3691 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
|---|
| 3692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 3693 | else |
|---|
| 3694 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3695 | /* confdefs.h. */ |
|---|
| 3696 | _ACEOF |
|---|
| 3697 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3698 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3699 | /* end confdefs.h. */ |
|---|
| 3700 | |
|---|
| 3701 | #include <stdbool.h> |
|---|
| 3702 | #ifndef bool |
|---|
| 3703 | # error bool is not defined |
|---|
| 3704 | #endif |
|---|
| 3705 | #ifndef false |
|---|
| 3706 | # error false is not defined |
|---|
| 3707 | #endif |
|---|
| 3708 | #if false |
|---|
| 3709 | # error false is not 0 |
|---|
| 3710 | #endif |
|---|
| 3711 | #ifndef true |
|---|
| 3712 | # error true is not defined |
|---|
| 3713 | #endif |
|---|
| 3714 | #if true != 1 |
|---|
| 3715 | # error true is not 1 |
|---|
| 3716 | #endif |
|---|
| 3717 | #ifndef __bool_true_false_are_defined |
|---|
| 3718 | # error __bool_true_false_are_defined is not defined |
|---|
| 3719 | #endif |
|---|
| 3720 | |
|---|
| 3721 | struct s { _Bool s: 1; _Bool t; } s; |
|---|
| 3722 | |
|---|
| 3723 | char a[true == 1 ? 1 : -1]; |
|---|
| 3724 | char b[false == 0 ? 1 : -1]; |
|---|
| 3725 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
|---|
| 3726 | char d[(bool) -0.5 == true ? 1 : -1]; |
|---|
| 3727 | bool e = &s; |
|---|
| 3728 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
|---|
| 3729 | char g[true]; |
|---|
| 3730 | char h[sizeof (_Bool)]; |
|---|
| 3731 | char i[sizeof s.t]; |
|---|
| 3732 | |
|---|
| 3733 | int |
|---|
| 3734 | main () |
|---|
| 3735 | { |
|---|
| 3736 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
|---|
| 3737 | ; |
|---|
| 3738 | return 0; |
|---|
| 3739 | } |
|---|
| 3740 | _ACEOF |
|---|
| 3741 | rm -f conftest.$ac_objext |
|---|
| 3742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 3743 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 3744 | ac_status=$? |
|---|
| 3745 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3746 | rm -f conftest.er1 |
|---|
| 3747 | cat conftest.err >&5 |
|---|
| 3748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3749 | (exit $ac_status); } && |
|---|
| 3750 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 3751 | || test ! -s conftest.err' |
|---|
| 3752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3753 | (eval $ac_try) 2>&5 |
|---|
| 3754 | ac_status=$? |
|---|
| 3755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3756 | (exit $ac_status); }; } && |
|---|
| 3757 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 3758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3759 | (eval $ac_try) 2>&5 |
|---|
| 3760 | ac_status=$? |
|---|
| 3761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3762 | (exit $ac_status); }; }; then |
|---|
| 3763 | ac_cv_header_stdbool_h=yes |
|---|
| 3764 | else |
|---|
| 3765 | echo "$as_me: failed program was:" >&5 |
|---|
| 3766 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3767 | |
|---|
| 3768 | ac_cv_header_stdbool_h=no |
|---|
| 3769 | fi |
|---|
| 3770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3771 | fi |
|---|
| 3772 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
|---|
| 3773 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
|---|
| 3774 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
|---|
| 3775 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
|---|
| 3776 | if test "${ac_cv_type__Bool+set}" = set; then |
|---|
| 3777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 3778 | else |
|---|
| 3779 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3780 | /* confdefs.h. */ |
|---|
| 3781 | _ACEOF |
|---|
| 3782 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3783 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3784 | /* end confdefs.h. */ |
|---|
| 3785 | $ac_includes_default |
|---|
| 3786 | int |
|---|
| 3787 | main () |
|---|
| 3788 | { |
|---|
| 3789 | if ((_Bool *) 0) |
|---|
| 3790 | return 0; |
|---|
| 3791 | if (sizeof (_Bool)) |
|---|
| 3792 | return 0; |
|---|
| 3793 | ; |
|---|
| 3794 | return 0; |
|---|
| 3795 | } |
|---|
| 3796 | _ACEOF |
|---|
| 3797 | rm -f conftest.$ac_objext |
|---|
| 3798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 3799 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 3800 | ac_status=$? |
|---|
| 3801 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3802 | rm -f conftest.er1 |
|---|
| 3803 | cat conftest.err >&5 |
|---|
| 3804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3805 | (exit $ac_status); } && |
|---|
| 3806 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 3807 | || test ! -s conftest.err' |
|---|
| 3808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3809 | (eval $ac_try) 2>&5 |
|---|
| 3810 | ac_status=$? |
|---|
| 3811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3812 | (exit $ac_status); }; } && |
|---|
| 3813 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 3814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3815 | (eval $ac_try) 2>&5 |
|---|
| 3816 | ac_status=$? |
|---|
| 3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3818 | (exit $ac_status); }; }; then |
|---|
| 3819 | ac_cv_type__Bool=yes |
|---|
| 3820 | else |
|---|
| 3821 | echo "$as_me: failed program was:" >&5 |
|---|
| 3822 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3823 | |
|---|
| 3824 | ac_cv_type__Bool=no |
|---|
| 3825 | fi |
|---|
| 3826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3827 | fi |
|---|
| 3828 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
|---|
| 3829 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
|---|
| 3830 | if test $ac_cv_type__Bool = yes; then |
|---|
| 3831 | |
|---|
| 3832 | cat >>confdefs.h <<_ACEOF |
|---|
| 3833 | #define HAVE__BOOL 1 |
|---|
| 3834 | _ACEOF |
|---|
| 3835 | |
|---|
| 3836 | |
|---|
| 3837 | fi |
|---|
| 3838 | |
|---|
| 3839 | if test $ac_cv_header_stdbool_h = yes; then |
|---|
| 3840 | |
|---|
| 3841 | cat >>confdefs.h <<\_ACEOF |
|---|
| 3842 | #define HAVE_STDBOOL_H 1 |
|---|
| 3843 | _ACEOF |
|---|
| 3844 | |
|---|
| 3845 | fi |
|---|
| 3846 | |
|---|
| 3847 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|---|
| 3848 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
|---|
| 3849 | if test "${ac_cv_c_const+set}" = set; then |
|---|
| 3850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 3851 | else |
|---|
| 3852 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3853 | /* confdefs.h. */ |
|---|
| 3854 | _ACEOF |
|---|
| 3855 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3856 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3857 | /* end confdefs.h. */ |
|---|
| 3858 | |
|---|
| 3859 | int |
|---|
| 3860 | main () |
|---|
| 3861 | { |
|---|
| 3862 | /* FIXME: Include the comments suggested by Paul. */ |
|---|
| 3863 | #ifndef __cplusplus |
|---|
| 3864 | /* Ultrix mips cc rejects this. */ |
|---|
| 3865 | typedef int charset[2]; |
|---|
| 3866 | const charset x; |
|---|
| 3867 | /* SunOS 4.1.1 cc rejects this. */ |
|---|
| 3868 | char const *const *ccp; |
|---|
| 3869 | char **p; |
|---|
| 3870 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|---|
| 3871 | struct point {int x, y;}; |
|---|
| 3872 | static struct point const zero = {0,0}; |
|---|
| 3873 | /* AIX XL C 1.02.0.0 rejects this. |
|---|
| 3874 | It does not let you subtract one const X* pointer from another in |
|---|
| 3875 | an arm of an if-expression whose if-part is not a constant |
|---|
| 3876 | expression */ |
|---|
| 3877 | const char *g = "string"; |
|---|
| 3878 | ccp = &g + (g ? g-g : 0); |
|---|
| 3879 | /* HPUX 7.0 cc rejects these. */ |
|---|
| 3880 | ++ccp; |
|---|
| 3881 | p = (char**) ccp; |
|---|
| 3882 | ccp = (char const *const *) p; |
|---|
| 3883 | { /* SCO 3.2v4 cc rejects this. */ |
|---|
| 3884 | char *t; |
|---|
| 3885 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|---|
| 3886 | |
|---|
| 3887 | *t++ = 0; |
|---|
| 3888 | } |
|---|
| 3889 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|---|
| 3890 | int x[] = {25, 17}; |
|---|
| 3891 | const int *foo = &x[0]; |
|---|
| 3892 | ++foo; |
|---|
| 3893 | } |
|---|
| 3894 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|---|
| 3895 | typedef const int *iptr; |
|---|
| 3896 | iptr p = 0; |
|---|
| 3897 | ++p; |
|---|
| 3898 | } |
|---|
| 3899 | { /* AIX XL C 1.02.0.0 rejects this saying |
|---|
| 3900 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|---|
| 3901 | struct s { int j; const int *ap[3]; }; |
|---|
| 3902 | struct s *b; b->j = 5; |
|---|
| 3903 | } |
|---|
| 3904 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|---|
| 3905 | const int foo = 10; |
|---|
| 3906 | } |
|---|
| 3907 | #endif |
|---|
| 3908 | |
|---|
| 3909 | ; |
|---|
| 3910 | return 0; |
|---|
| 3911 | } |
|---|
| 3912 | _ACEOF |
|---|
| 3913 | rm -f conftest.$ac_objext |
|---|
| 3914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 3915 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 3916 | ac_status=$? |
|---|
| 3917 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3918 | rm -f conftest.er1 |
|---|
| 3919 | cat conftest.err >&5 |
|---|
| 3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3921 | (exit $ac_status); } && |
|---|
| 3922 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 3923 | || test ! -s conftest.err' |
|---|
| 3924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3925 | (eval $ac_try) 2>&5 |
|---|
| 3926 | ac_status=$? |
|---|
| 3927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3928 | (exit $ac_status); }; } && |
|---|
| 3929 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 3930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3931 | (eval $ac_try) 2>&5 |
|---|
| 3932 | ac_status=$? |
|---|
| 3933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3934 | (exit $ac_status); }; }; then |
|---|
| 3935 | ac_cv_c_const=yes |
|---|
| 3936 | else |
|---|
| 3937 | echo "$as_me: failed program was:" >&5 |
|---|
| 3938 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3939 | |
|---|
| 3940 | ac_cv_c_const=no |
|---|
| 3941 | fi |
|---|
| 3942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 3943 | fi |
|---|
| 3944 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|---|
| 3945 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
|---|
| 3946 | if test $ac_cv_c_const = no; then |
|---|
| 3947 | |
|---|
| 3948 | cat >>confdefs.h <<\_ACEOF |
|---|
| 3949 | #define const |
|---|
| 3950 | _ACEOF |
|---|
| 3951 | |
|---|
| 3952 | fi |
|---|
| 3953 | |
|---|
| 3954 | echo "$as_me:$LINENO: checking for size_t" >&5 |
|---|
| 3955 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
|---|
| 3956 | if test "${ac_cv_type_size_t+set}" = set; then |
|---|
| 3957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 3958 | else |
|---|
| 3959 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3960 | /* confdefs.h. */ |
|---|
| 3961 | _ACEOF |
|---|
| 3962 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3963 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3964 | /* end confdefs.h. */ |
|---|
| 3965 | $ac_includes_default |
|---|
| 3966 | int |
|---|
| 3967 | main () |
|---|
| 3968 | { |
|---|
| 3969 | if ((size_t *) 0) |
|---|
| 3970 | return 0; |
|---|
| 3971 | if (sizeof (size_t)) |
|---|
| 3972 | return 0; |
|---|
| 3973 | ; |
|---|
| 3974 | return 0; |
|---|
| 3975 | } |
|---|
| 3976 | _ACEOF |
|---|
| 3977 | rm -f conftest.$ac_objext |
|---|
| 3978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 3979 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 3980 | ac_status=$? |
|---|
| 3981 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3982 | rm -f conftest.er1 |
|---|
| 3983 | cat conftest.err >&5 |
|---|
| 3984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3985 | (exit $ac_status); } && |
|---|
| 3986 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 3987 | || test ! -s conftest.err' |
|---|
| 3988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3989 | (eval $ac_try) 2>&5 |
|---|
| 3990 | ac_status=$? |
|---|
| 3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3992 | (exit $ac_status); }; } && |
|---|
| 3993 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 3994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 3995 | (eval $ac_try) 2>&5 |
|---|
| 3996 | ac_status=$? |
|---|
| 3997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3998 | (exit $ac_status); }; }; then |
|---|
| 3999 | ac_cv_type_size_t=yes |
|---|
| 4000 | else |
|---|
| 4001 | echo "$as_me: failed program was:" >&5 |
|---|
| 4002 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4003 | |
|---|
| 4004 | ac_cv_type_size_t=no |
|---|
| 4005 | fi |
|---|
| 4006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 4007 | fi |
|---|
| 4008 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
|---|
| 4009 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
|---|
| 4010 | if test $ac_cv_type_size_t = yes; then |
|---|
| 4011 | : |
|---|
| 4012 | else |
|---|
| 4013 | |
|---|
| 4014 | cat >>confdefs.h <<_ACEOF |
|---|
| 4015 | #define size_t unsigned |
|---|
| 4016 | _ACEOF |
|---|
| 4017 | |
|---|
| 4018 | fi |
|---|
| 4019 | |
|---|
| 4020 | |
|---|
| 4021 | # Checks for library functions. |
|---|
| 4022 | |
|---|
| 4023 | for ac_header in stdlib.h |
|---|
| 4024 | do |
|---|
| 4025 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|---|
| 4026 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| 4027 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| 4028 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| 4029 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| 4030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4031 | fi |
|---|
| 4032 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| 4033 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| 4034 | else |
|---|
| 4035 | # Is the header compilable? |
|---|
| 4036 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|---|
| 4037 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|---|
| 4038 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4039 | /* confdefs.h. */ |
|---|
| 4040 | _ACEOF |
|---|
| 4041 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4042 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4043 | /* end confdefs.h. */ |
|---|
| 4044 | $ac_includes_default |
|---|
| 4045 | #include <$ac_header> |
|---|
| 4046 | _ACEOF |
|---|
| 4047 | rm -f conftest.$ac_objext |
|---|
| 4048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 4049 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 4050 | ac_status=$? |
|---|
| 4051 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4052 | rm -f conftest.er1 |
|---|
| 4053 | cat conftest.err >&5 |
|---|
| 4054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4055 | (exit $ac_status); } && |
|---|
| 4056 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 4057 | || test ! -s conftest.err' |
|---|
| 4058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4059 | (eval $ac_try) 2>&5 |
|---|
| 4060 | ac_status=$? |
|---|
| 4061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4062 | (exit $ac_status); }; } && |
|---|
| 4063 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 4064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4065 | (eval $ac_try) 2>&5 |
|---|
| 4066 | ac_status=$? |
|---|
| 4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4068 | (exit $ac_status); }; }; then |
|---|
| 4069 | ac_header_compiler=yes |
|---|
| 4070 | else |
|---|
| 4071 | echo "$as_me: failed program was:" >&5 |
|---|
| 4072 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4073 | |
|---|
| 4074 | ac_header_compiler=no |
|---|
| 4075 | fi |
|---|
| 4076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 4077 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|---|
| 4078 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|---|
| 4079 | |
|---|
| 4080 | # Is the header present? |
|---|
| 4081 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|---|
| 4082 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|---|
| 4083 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4084 | /* confdefs.h. */ |
|---|
| 4085 | _ACEOF |
|---|
| 4086 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4087 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4088 | /* end confdefs.h. */ |
|---|
| 4089 | #include <$ac_header> |
|---|
| 4090 | _ACEOF |
|---|
| 4091 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|---|
| 4092 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|---|
| 4093 | ac_status=$? |
|---|
| 4094 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4095 | rm -f conftest.er1 |
|---|
| 4096 | cat conftest.err >&5 |
|---|
| 4097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4098 | (exit $ac_status); } >/dev/null; then |
|---|
| 4099 | if test -s conftest.err; then |
|---|
| 4100 | ac_cpp_err=$ac_c_preproc_warn_flag |
|---|
| 4101 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|---|
| 4102 | else |
|---|
| 4103 | ac_cpp_err= |
|---|
| 4104 | fi |
|---|
| 4105 | else |
|---|
| 4106 | ac_cpp_err=yes |
|---|
| 4107 | fi |
|---|
| 4108 | if test -z "$ac_cpp_err"; then |
|---|
| 4109 | ac_header_preproc=yes |
|---|
| 4110 | else |
|---|
| 4111 | echo "$as_me: failed program was:" >&5 |
|---|
| 4112 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4113 | |
|---|
| 4114 | ac_header_preproc=no |
|---|
| 4115 | fi |
|---|
| 4116 | rm -f conftest.err conftest.$ac_ext |
|---|
| 4117 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|---|
| 4118 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|---|
| 4119 | |
|---|
| 4120 | # So? What about this header? |
|---|
| 4121 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|---|
| 4122 | yes:no: ) |
|---|
| 4123 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|---|
| 4124 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|---|
| 4125 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|---|
| 4126 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|---|
| 4127 | ac_header_preproc=yes |
|---|
| 4128 | ;; |
|---|
| 4129 | no:yes:* ) |
|---|
| 4130 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|---|
| 4131 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|---|
| 4132 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|---|
| 4133 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|---|
| 4134 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|---|
| 4135 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|---|
| 4136 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|---|
| 4137 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|---|
| 4138 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|---|
| 4139 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|---|
| 4140 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|---|
| 4141 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|---|
| 4142 | ( |
|---|
| 4143 | cat <<\_ASBOX |
|---|
| 4144 | ## --------------------------------- ## |
|---|
| 4145 | ## Report this to BUG-REPORT-ADDRESS ## |
|---|
| 4146 | ## --------------------------------- ## |
|---|
| 4147 | _ASBOX |
|---|
| 4148 | ) | |
|---|
| 4149 | sed "s/^/$as_me: WARNING: /" >&2 |
|---|
| 4150 | ;; |
|---|
| 4151 | esac |
|---|
| 4152 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| 4153 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| 4154 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| 4155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4156 | else |
|---|
| 4157 | eval "$as_ac_Header=\$ac_header_preproc" |
|---|
| 4158 | fi |
|---|
| 4159 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| 4160 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| 4161 | |
|---|
| 4162 | fi |
|---|
| 4163 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|---|
| 4164 | cat >>confdefs.h <<_ACEOF |
|---|
| 4165 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|---|
| 4166 | _ACEOF |
|---|
| 4167 | |
|---|
| 4168 | fi |
|---|
| 4169 | |
|---|
| 4170 | done |
|---|
| 4171 | |
|---|
| 4172 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
|---|
| 4173 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
|---|
| 4174 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
|---|
| 4175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4176 | else |
|---|
| 4177 | if test "$cross_compiling" = yes; then |
|---|
| 4178 | ac_cv_func_malloc_0_nonnull=no |
|---|
| 4179 | else |
|---|
| 4180 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4181 | /* confdefs.h. */ |
|---|
| 4182 | _ACEOF |
|---|
| 4183 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4184 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4185 | /* end confdefs.h. */ |
|---|
| 4186 | #if STDC_HEADERS || HAVE_STDLIB_H |
|---|
| 4187 | # include <stdlib.h> |
|---|
| 4188 | #else |
|---|
| 4189 | char *malloc (); |
|---|
| 4190 | #endif |
|---|
| 4191 | |
|---|
| 4192 | int |
|---|
| 4193 | main () |
|---|
| 4194 | { |
|---|
| 4195 | exit (malloc (0) ? 0 : 1); |
|---|
| 4196 | ; |
|---|
| 4197 | return 0; |
|---|
| 4198 | } |
|---|
| 4199 | _ACEOF |
|---|
| 4200 | rm -f conftest$ac_exeext |
|---|
| 4201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 4202 | (eval $ac_link) 2>&5 |
|---|
| 4203 | ac_status=$? |
|---|
| 4204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4205 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| 4206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4207 | (eval $ac_try) 2>&5 |
|---|
| 4208 | ac_status=$? |
|---|
| 4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4210 | (exit $ac_status); }; }; then |
|---|
| 4211 | ac_cv_func_malloc_0_nonnull=yes |
|---|
| 4212 | else |
|---|
| 4213 | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| 4214 | echo "$as_me: failed program was:" >&5 |
|---|
| 4215 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4216 | |
|---|
| 4217 | ( exit $ac_status ) |
|---|
| 4218 | ac_cv_func_malloc_0_nonnull=no |
|---|
| 4219 | fi |
|---|
| 4220 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| 4221 | fi |
|---|
| 4222 | fi |
|---|
| 4223 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
|---|
| 4224 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
|---|
| 4225 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
|---|
| 4226 | |
|---|
| 4227 | cat >>confdefs.h <<\_ACEOF |
|---|
| 4228 | #define HAVE_MALLOC 1 |
|---|
| 4229 | _ACEOF |
|---|
| 4230 | |
|---|
| 4231 | else |
|---|
| 4232 | cat >>confdefs.h <<\_ACEOF |
|---|
| 4233 | #define HAVE_MALLOC 0 |
|---|
| 4234 | _ACEOF |
|---|
| 4235 | |
|---|
| 4236 | case $LIBOBJS in |
|---|
| 4237 | "malloc.$ac_objext" | \ |
|---|
| 4238 | *" malloc.$ac_objext" | \ |
|---|
| 4239 | "malloc.$ac_objext "* | \ |
|---|
| 4240 | *" malloc.$ac_objext "* ) ;; |
|---|
| 4241 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
|---|
| 4242 | esac |
|---|
| 4243 | |
|---|
| 4244 | |
|---|
| 4245 | cat >>confdefs.h <<\_ACEOF |
|---|
| 4246 | #define malloc rpl_malloc |
|---|
| 4247 | _ACEOF |
|---|
| 4248 | |
|---|
| 4249 | fi |
|---|
| 4250 | |
|---|
| 4251 | |
|---|
| 4252 | |
|---|
| 4253 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
|---|
| 4254 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
|---|
| 4255 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
|---|
| 4256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4257 | else |
|---|
| 4258 | if test "$cross_compiling" = yes; then |
|---|
| 4259 | ac_cv_func_memcmp_working=no |
|---|
| 4260 | else |
|---|
| 4261 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4262 | /* confdefs.h. */ |
|---|
| 4263 | _ACEOF |
|---|
| 4264 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4265 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4266 | /* end confdefs.h. */ |
|---|
| 4267 | $ac_includes_default |
|---|
| 4268 | int |
|---|
| 4269 | main () |
|---|
| 4270 | { |
|---|
| 4271 | |
|---|
| 4272 | /* Some versions of memcmp are not 8-bit clean. */ |
|---|
| 4273 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
|---|
| 4274 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
|---|
| 4275 | exit (1); |
|---|
| 4276 | |
|---|
| 4277 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
|---|
| 4278 | or more and with at least one buffer not starting on a 4-byte boundary. |
|---|
| 4279 | William Lewis provided this test program. */ |
|---|
| 4280 | { |
|---|
| 4281 | char foo[21]; |
|---|
| 4282 | char bar[21]; |
|---|
| 4283 | int i; |
|---|
| 4284 | for (i = 0; i < 4; i++) |
|---|
| 4285 | { |
|---|
| 4286 | char *a = foo + i; |
|---|
| 4287 | char *b = bar + i; |
|---|
| 4288 | strcpy (a, "--------01111111"); |
|---|
| 4289 | strcpy (b, "--------10000000"); |
|---|
| 4290 | if (memcmp (a, b, 16) >= 0) |
|---|
| 4291 | exit (1); |
|---|
| 4292 | } |
|---|
| 4293 | exit (0); |
|---|
| 4294 | } |
|---|
| 4295 | |
|---|
| 4296 | ; |
|---|
| 4297 | return 0; |
|---|
| 4298 | } |
|---|
| 4299 | _ACEOF |
|---|
| 4300 | rm -f conftest$ac_exeext |
|---|
| 4301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 4302 | (eval $ac_link) 2>&5 |
|---|
| 4303 | ac_status=$? |
|---|
| 4304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4305 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| 4306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4307 | (eval $ac_try) 2>&5 |
|---|
| 4308 | ac_status=$? |
|---|
| 4309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4310 | (exit $ac_status); }; }; then |
|---|
| 4311 | ac_cv_func_memcmp_working=yes |
|---|
| 4312 | else |
|---|
| 4313 | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| 4314 | echo "$as_me: failed program was:" >&5 |
|---|
| 4315 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4316 | |
|---|
| 4317 | ( exit $ac_status ) |
|---|
| 4318 | ac_cv_func_memcmp_working=no |
|---|
| 4319 | fi |
|---|
| 4320 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| 4321 | fi |
|---|
| 4322 | fi |
|---|
| 4323 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
|---|
| 4324 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
|---|
| 4325 | test $ac_cv_func_memcmp_working = no && case $LIBOBJS in |
|---|
| 4326 | "memcmp.$ac_objext" | \ |
|---|
| 4327 | *" memcmp.$ac_objext" | \ |
|---|
| 4328 | "memcmp.$ac_objext "* | \ |
|---|
| 4329 | *" memcmp.$ac_objext "* ) ;; |
|---|
| 4330 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; |
|---|
| 4331 | esac |
|---|
| 4332 | |
|---|
| 4333 | |
|---|
| 4334 | |
|---|
| 4335 | for ac_header in stdlib.h |
|---|
| 4336 | do |
|---|
| 4337 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|---|
| 4338 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| 4339 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| 4340 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| 4341 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| 4342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4343 | fi |
|---|
| 4344 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| 4345 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| 4346 | else |
|---|
| 4347 | # Is the header compilable? |
|---|
| 4348 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|---|
| 4349 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|---|
| 4350 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4351 | /* confdefs.h. */ |
|---|
| 4352 | _ACEOF |
|---|
| 4353 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4354 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4355 | /* end confdefs.h. */ |
|---|
| 4356 | $ac_includes_default |
|---|
| 4357 | #include <$ac_header> |
|---|
| 4358 | _ACEOF |
|---|
| 4359 | rm -f conftest.$ac_objext |
|---|
| 4360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| 4361 | (eval $ac_compile) 2>conftest.er1 |
|---|
| 4362 | ac_status=$? |
|---|
| 4363 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4364 | rm -f conftest.er1 |
|---|
| 4365 | cat conftest.err >&5 |
|---|
| 4366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4367 | (exit $ac_status); } && |
|---|
| 4368 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 4369 | || test ! -s conftest.err' |
|---|
| 4370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4371 | (eval $ac_try) 2>&5 |
|---|
| 4372 | ac_status=$? |
|---|
| 4373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4374 | (exit $ac_status); }; } && |
|---|
| 4375 | { ac_try='test -s conftest.$ac_objext' |
|---|
| 4376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4377 | (eval $ac_try) 2>&5 |
|---|
| 4378 | ac_status=$? |
|---|
| 4379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4380 | (exit $ac_status); }; }; then |
|---|
| 4381 | ac_header_compiler=yes |
|---|
| 4382 | else |
|---|
| 4383 | echo "$as_me: failed program was:" >&5 |
|---|
| 4384 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4385 | |
|---|
| 4386 | ac_header_compiler=no |
|---|
| 4387 | fi |
|---|
| 4388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| 4389 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|---|
| 4390 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|---|
| 4391 | |
|---|
| 4392 | # Is the header present? |
|---|
| 4393 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|---|
| 4394 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|---|
| 4395 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4396 | /* confdefs.h. */ |
|---|
| 4397 | _ACEOF |
|---|
| 4398 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4399 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4400 | /* end confdefs.h. */ |
|---|
| 4401 | #include <$ac_header> |
|---|
| 4402 | _ACEOF |
|---|
| 4403 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|---|
| 4404 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|---|
| 4405 | ac_status=$? |
|---|
| 4406 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4407 | rm -f conftest.er1 |
|---|
| 4408 | cat conftest.err >&5 |
|---|
| 4409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4410 | (exit $ac_status); } >/dev/null; then |
|---|
| 4411 | if test -s conftest.err; then |
|---|
| 4412 | ac_cpp_err=$ac_c_preproc_warn_flag |
|---|
| 4413 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|---|
| 4414 | else |
|---|
| 4415 | ac_cpp_err= |
|---|
| 4416 | fi |
|---|
| 4417 | else |
|---|
| 4418 | ac_cpp_err=yes |
|---|
| 4419 | fi |
|---|
| 4420 | if test -z "$ac_cpp_err"; then |
|---|
| 4421 | ac_header_preproc=yes |
|---|
| 4422 | else |
|---|
| 4423 | echo "$as_me: failed program was:" >&5 |
|---|
| 4424 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4425 | |
|---|
| 4426 | ac_header_preproc=no |
|---|
| 4427 | fi |
|---|
| 4428 | rm -f conftest.err conftest.$ac_ext |
|---|
| 4429 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|---|
| 4430 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|---|
| 4431 | |
|---|
| 4432 | # So? What about this header? |
|---|
| 4433 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|---|
| 4434 | yes:no: ) |
|---|
| 4435 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|---|
| 4436 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|---|
| 4437 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|---|
| 4438 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|---|
| 4439 | ac_header_preproc=yes |
|---|
| 4440 | ;; |
|---|
| 4441 | no:yes:* ) |
|---|
| 4442 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|---|
| 4443 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|---|
| 4444 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|---|
| 4445 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|---|
| 4446 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|---|
| 4447 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|---|
| 4448 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|---|
| 4449 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|---|
| 4450 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|---|
| 4451 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|---|
| 4452 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|---|
| 4453 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|---|
| 4454 | ( |
|---|
| 4455 | cat <<\_ASBOX |
|---|
| 4456 | ## --------------------------------- ## |
|---|
| 4457 | ## Report this to BUG-REPORT-ADDRESS ## |
|---|
| 4458 | ## --------------------------------- ## |
|---|
| 4459 | _ASBOX |
|---|
| 4460 | ) | |
|---|
| 4461 | sed "s/^/$as_me: WARNING: /" >&2 |
|---|
| 4462 | ;; |
|---|
| 4463 | esac |
|---|
| 4464 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| 4465 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| 4466 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| 4467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4468 | else |
|---|
| 4469 | eval "$as_ac_Header=\$ac_header_preproc" |
|---|
| 4470 | fi |
|---|
| 4471 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| 4472 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| 4473 | |
|---|
| 4474 | fi |
|---|
| 4475 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|---|
| 4476 | cat >>confdefs.h <<_ACEOF |
|---|
| 4477 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|---|
| 4478 | _ACEOF |
|---|
| 4479 | |
|---|
| 4480 | fi |
|---|
| 4481 | |
|---|
| 4482 | done |
|---|
| 4483 | |
|---|
| 4484 | echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 |
|---|
| 4485 | echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6 |
|---|
| 4486 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then |
|---|
| 4487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4488 | else |
|---|
| 4489 | if test "$cross_compiling" = yes; then |
|---|
| 4490 | ac_cv_func_realloc_0_nonnull=no |
|---|
| 4491 | else |
|---|
| 4492 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4493 | /* confdefs.h. */ |
|---|
| 4494 | _ACEOF |
|---|
| 4495 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4496 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4497 | /* end confdefs.h. */ |
|---|
| 4498 | #if STDC_HEADERS || HAVE_STDLIB_H |
|---|
| 4499 | # include <stdlib.h> |
|---|
| 4500 | #else |
|---|
| 4501 | char *realloc (); |
|---|
| 4502 | #endif |
|---|
| 4503 | |
|---|
| 4504 | int |
|---|
| 4505 | main () |
|---|
| 4506 | { |
|---|
| 4507 | exit (realloc (0, 0) ? 0 : 1); |
|---|
| 4508 | ; |
|---|
| 4509 | return 0; |
|---|
| 4510 | } |
|---|
| 4511 | _ACEOF |
|---|
| 4512 | rm -f conftest$ac_exeext |
|---|
| 4513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 4514 | (eval $ac_link) 2>&5 |
|---|
| 4515 | ac_status=$? |
|---|
| 4516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4517 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|---|
| 4518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4519 | (eval $ac_try) 2>&5 |
|---|
| 4520 | ac_status=$? |
|---|
| 4521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4522 | (exit $ac_status); }; }; then |
|---|
| 4523 | ac_cv_func_realloc_0_nonnull=yes |
|---|
| 4524 | else |
|---|
| 4525 | echo "$as_me: program exited with status $ac_status" >&5 |
|---|
| 4526 | echo "$as_me: failed program was:" >&5 |
|---|
| 4527 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4528 | |
|---|
| 4529 | ( exit $ac_status ) |
|---|
| 4530 | ac_cv_func_realloc_0_nonnull=no |
|---|
| 4531 | fi |
|---|
| 4532 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|---|
| 4533 | fi |
|---|
| 4534 | fi |
|---|
| 4535 | echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
|---|
| 4536 | echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6 |
|---|
| 4537 | if test $ac_cv_func_realloc_0_nonnull = yes; then |
|---|
| 4538 | |
|---|
| 4539 | cat >>confdefs.h <<\_ACEOF |
|---|
| 4540 | #define HAVE_REALLOC 1 |
|---|
| 4541 | _ACEOF |
|---|
| 4542 | |
|---|
| 4543 | else |
|---|
| 4544 | cat >>confdefs.h <<\_ACEOF |
|---|
| 4545 | #define HAVE_REALLOC 0 |
|---|
| 4546 | _ACEOF |
|---|
| 4547 | |
|---|
| 4548 | case $LIBOBJS in |
|---|
| 4549 | "realloc.$ac_objext" | \ |
|---|
| 4550 | *" realloc.$ac_objext" | \ |
|---|
| 4551 | "realloc.$ac_objext "* | \ |
|---|
| 4552 | *" realloc.$ac_objext "* ) ;; |
|---|
| 4553 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;; |
|---|
| 4554 | esac |
|---|
| 4555 | |
|---|
| 4556 | |
|---|
| 4557 | cat >>confdefs.h <<\_ACEOF |
|---|
| 4558 | #define realloc rpl_realloc |
|---|
| 4559 | _ACEOF |
|---|
| 4560 | |
|---|
| 4561 | fi |
|---|
| 4562 | |
|---|
| 4563 | |
|---|
| 4564 | |
|---|
| 4565 | |
|---|
| 4566 | for ac_func in vprintf |
|---|
| 4567 | do |
|---|
| 4568 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|---|
| 4569 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|---|
| 4570 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|---|
| 4571 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|---|
| 4572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4573 | else |
|---|
| 4574 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4575 | /* confdefs.h. */ |
|---|
| 4576 | _ACEOF |
|---|
| 4577 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4578 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4579 | /* end confdefs.h. */ |
|---|
| 4580 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|---|
| 4581 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| 4582 | #define $ac_func innocuous_$ac_func |
|---|
| 4583 | |
|---|
| 4584 | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| 4585 | which can conflict with char $ac_func (); below. |
|---|
| 4586 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 4587 | <limits.h> exists even on freestanding compilers. */ |
|---|
| 4588 | |
|---|
| 4589 | #ifdef __STDC__ |
|---|
| 4590 | # include <limits.h> |
|---|
| 4591 | #else |
|---|
| 4592 | # include <assert.h> |
|---|
| 4593 | #endif |
|---|
| 4594 | |
|---|
| 4595 | #undef $ac_func |
|---|
| 4596 | |
|---|
| 4597 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| 4598 | #ifdef __cplusplus |
|---|
| 4599 | extern "C" |
|---|
| 4600 | { |
|---|
| 4601 | #endif |
|---|
| 4602 | /* We use char because int might match the return type of a gcc2 |
|---|
| 4603 | builtin and then its argument prototype would still apply. */ |
|---|
| 4604 | char $ac_func (); |
|---|
| 4605 | /* The GNU C library defines this for functions which it implements |
|---|
| 4606 | to always fail with ENOSYS. Some functions are actually named |
|---|
| 4607 | something starting with __ and the normal name is an alias. */ |
|---|
| 4608 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|---|
| 4609 | choke me |
|---|
| 4610 | #else |
|---|
| 4611 | char (*f) () = $ac_func; |
|---|
| 4612 | #endif |
|---|
| 4613 | #ifdef __cplusplus |
|---|
| 4614 | } |
|---|
| 4615 | #endif |
|---|
| 4616 | |
|---|
| 4617 | int |
|---|
| 4618 | main () |
|---|
| 4619 | { |
|---|
| 4620 | return f != $ac_func; |
|---|
| 4621 | ; |
|---|
| 4622 | return 0; |
|---|
| 4623 | } |
|---|
| 4624 | _ACEOF |
|---|
| 4625 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 4626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 4627 | (eval $ac_link) 2>conftest.er1 |
|---|
| 4628 | ac_status=$? |
|---|
| 4629 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4630 | rm -f conftest.er1 |
|---|
| 4631 | cat conftest.err >&5 |
|---|
| 4632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4633 | (exit $ac_status); } && |
|---|
| 4634 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 4635 | || test ! -s conftest.err' |
|---|
| 4636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4637 | (eval $ac_try) 2>&5 |
|---|
| 4638 | ac_status=$? |
|---|
| 4639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4640 | (exit $ac_status); }; } && |
|---|
| 4641 | { ac_try='test -s conftest$ac_exeext' |
|---|
| 4642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4643 | (eval $ac_try) 2>&5 |
|---|
| 4644 | ac_status=$? |
|---|
| 4645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4646 | (exit $ac_status); }; }; then |
|---|
| 4647 | eval "$as_ac_var=yes" |
|---|
| 4648 | else |
|---|
| 4649 | echo "$as_me: failed program was:" >&5 |
|---|
| 4650 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4651 | |
|---|
| 4652 | eval "$as_ac_var=no" |
|---|
| 4653 | fi |
|---|
| 4654 | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 4655 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 4656 | fi |
|---|
| 4657 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|---|
| 4658 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|---|
| 4659 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|---|
| 4660 | cat >>confdefs.h <<_ACEOF |
|---|
| 4661 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|---|
| 4662 | _ACEOF |
|---|
| 4663 | |
|---|
| 4664 | echo "$as_me:$LINENO: checking for _doprnt" >&5 |
|---|
| 4665 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 |
|---|
| 4666 | if test "${ac_cv_func__doprnt+set}" = set; then |
|---|
| 4667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4668 | else |
|---|
| 4669 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4670 | /* confdefs.h. */ |
|---|
| 4671 | _ACEOF |
|---|
| 4672 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4673 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4674 | /* end confdefs.h. */ |
|---|
| 4675 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
|---|
| 4676 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| 4677 | #define _doprnt innocuous__doprnt |
|---|
| 4678 | |
|---|
| 4679 | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| 4680 | which can conflict with char _doprnt (); below. |
|---|
| 4681 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 4682 | <limits.h> exists even on freestanding compilers. */ |
|---|
| 4683 | |
|---|
| 4684 | #ifdef __STDC__ |
|---|
| 4685 | # include <limits.h> |
|---|
| 4686 | #else |
|---|
| 4687 | # include <assert.h> |
|---|
| 4688 | #endif |
|---|
| 4689 | |
|---|
| 4690 | #undef _doprnt |
|---|
| 4691 | |
|---|
| 4692 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| 4693 | #ifdef __cplusplus |
|---|
| 4694 | extern "C" |
|---|
| 4695 | { |
|---|
| 4696 | #endif |
|---|
| 4697 | /* We use char because int might match the return type of a gcc2 |
|---|
| 4698 | builtin and then its argument prototype would still apply. */ |
|---|
| 4699 | char _doprnt (); |
|---|
| 4700 | /* The GNU C library defines this for functions which it implements |
|---|
| 4701 | to always fail with ENOSYS. Some functions are actually named |
|---|
| 4702 | something starting with __ and the normal name is an alias. */ |
|---|
| 4703 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
|---|
| 4704 | choke me |
|---|
| 4705 | #else |
|---|
| 4706 | char (*f) () = _doprnt; |
|---|
| 4707 | #endif |
|---|
| 4708 | #ifdef __cplusplus |
|---|
| 4709 | } |
|---|
| 4710 | #endif |
|---|
| 4711 | |
|---|
| 4712 | int |
|---|
| 4713 | main () |
|---|
| 4714 | { |
|---|
| 4715 | return f != _doprnt; |
|---|
| 4716 | ; |
|---|
| 4717 | return 0; |
|---|
| 4718 | } |
|---|
| 4719 | _ACEOF |
|---|
| 4720 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 4721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 4722 | (eval $ac_link) 2>conftest.er1 |
|---|
| 4723 | ac_status=$? |
|---|
| 4724 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4725 | rm -f conftest.er1 |
|---|
| 4726 | cat conftest.err >&5 |
|---|
| 4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4728 | (exit $ac_status); } && |
|---|
| 4729 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 4730 | || test ! -s conftest.err' |
|---|
| 4731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4732 | (eval $ac_try) 2>&5 |
|---|
| 4733 | ac_status=$? |
|---|
| 4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4735 | (exit $ac_status); }; } && |
|---|
| 4736 | { ac_try='test -s conftest$ac_exeext' |
|---|
| 4737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4738 | (eval $ac_try) 2>&5 |
|---|
| 4739 | ac_status=$? |
|---|
| 4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4741 | (exit $ac_status); }; }; then |
|---|
| 4742 | ac_cv_func__doprnt=yes |
|---|
| 4743 | else |
|---|
| 4744 | echo "$as_me: failed program was:" >&5 |
|---|
| 4745 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4746 | |
|---|
| 4747 | ac_cv_func__doprnt=no |
|---|
| 4748 | fi |
|---|
| 4749 | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 4750 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 4751 | fi |
|---|
| 4752 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
|---|
| 4753 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 |
|---|
| 4754 | if test $ac_cv_func__doprnt = yes; then |
|---|
| 4755 | |
|---|
| 4756 | cat >>confdefs.h <<\_ACEOF |
|---|
| 4757 | #define HAVE_DOPRNT 1 |
|---|
| 4758 | _ACEOF |
|---|
| 4759 | |
|---|
| 4760 | fi |
|---|
| 4761 | |
|---|
| 4762 | fi |
|---|
| 4763 | done |
|---|
| 4764 | |
|---|
| 4765 | |
|---|
| 4766 | |
|---|
| 4767 | |
|---|
| 4768 | |
|---|
| 4769 | |
|---|
| 4770 | |
|---|
| 4771 | |
|---|
| 4772 | |
|---|
| 4773 | |
|---|
| 4774 | |
|---|
| 4775 | |
|---|
| 4776 | |
|---|
| 4777 | |
|---|
| 4778 | for ac_func in getcwd memchr memmove memset regcomp strcasecmp strchr strdup strncasecmp mmap chdir getpwnam |
|---|
| 4779 | do |
|---|
| 4780 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|---|
| 4781 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|---|
| 4782 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|---|
| 4783 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|---|
| 4784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4785 | else |
|---|
| 4786 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4787 | /* confdefs.h. */ |
|---|
| 4788 | _ACEOF |
|---|
| 4789 | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4790 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4791 | /* end confdefs.h. */ |
|---|
| 4792 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|---|
| 4793 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| 4794 | #define $ac_func innocuous_$ac_func |
|---|
| 4795 | |
|---|
| 4796 | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| 4797 | which can conflict with char $ac_func (); below. |
|---|
| 4798 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 4799 | <limits.h> exists even on freestanding compilers. */ |
|---|
| 4800 | |
|---|
| 4801 | #ifdef __STDC__ |
|---|
| 4802 | # include <limits.h> |
|---|
| 4803 | #else |
|---|
| 4804 | # include <assert.h> |
|---|
| 4805 | #endif |
|---|
| 4806 | |
|---|
| 4807 | #undef $ac_func |
|---|
| 4808 | |
|---|
| 4809 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| 4810 | #ifdef __cplusplus |
|---|
| 4811 | extern "C" |
|---|
| 4812 | { |
|---|
| 4813 | #endif |
|---|
| 4814 | /* We use char because int might match the return type of a gcc2 |
|---|
| 4815 | builtin and then its argument prototype would still apply. */ |
|---|
| 4816 | char $ac_func (); |
|---|
| 4817 | /* The GNU C library defines this for functions which it implements |
|---|
| 4818 | to always fail with ENOSYS. Some functions are actually named |
|---|
| 4819 | something starting with __ and the normal name is an alias. */ |
|---|
| 4820 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|---|
| 4821 | choke me |
|---|
| 4822 | #else |
|---|
| 4823 | char (*f) () = $ac_func; |
|---|
| 4824 | #endif |
|---|
| 4825 | #ifdef __cplusplus |
|---|
| 4826 | } |
|---|
| 4827 | #endif |
|---|
| 4828 | |
|---|
| 4829 | int |
|---|
| 4830 | main () |
|---|
| 4831 | { |
|---|
| 4832 | return f != $ac_func; |
|---|
| 4833 | ; |
|---|
| 4834 | return 0; |
|---|
| 4835 | } |
|---|
| 4836 | _ACEOF |
|---|
| 4837 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 4838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| 4839 | (eval $ac_link) 2>conftest.er1 |
|---|
| 4840 | ac_status=$? |
|---|
| 4841 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4842 | rm -f conftest.er1 |
|---|
| 4843 | cat conftest.err >&5 |
|---|
| 4844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4845 | (exit $ac_status); } && |
|---|
| 4846 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| 4847 | || test ! -s conftest.err' |
|---|
| 4848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4849 | (eval $ac_try) 2>&5 |
|---|
| 4850 | ac_status=$? |
|---|
| 4851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4852 | (exit $ac_status); }; } && |
|---|
| 4853 | { ac_try='test -s conftest$ac_exeext' |
|---|
| 4854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| 4855 | (eval $ac_try) 2>&5 |
|---|
| 4856 | ac_status=$? |
|---|
| 4857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4858 | (exit $ac_status); }; }; then |
|---|
| 4859 | eval "$as_ac_var=yes" |
|---|
| 4860 | else |
|---|
| 4861 | echo "$as_me: failed program was:" >&5 |
|---|
| 4862 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4863 | |
|---|
| 4864 | eval "$as_ac_var=no" |
|---|
| 4865 | fi |
|---|
| 4866 | rm -f conftest.err conftest.$ac_objext \ |
|---|
| 4867 | conftest$ac_exeext conftest.$ac_ext |
|---|
| 4868 | fi |
|---|
| 4869 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|---|
| 4870 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|---|
| 4871 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|---|
| 4872 | cat >>confdefs.h <<_ACEOF |
|---|
| 4873 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|---|
| 4874 | _ACEOF |
|---|
| 4875 | |
|---|
| 4876 | fi |
|---|
| 4877 | done |
|---|
| 4878 | |
|---|
| 4879 | |
|---|
| 4880 | |
|---|
| 4881 | # |
|---|
| 4882 | # AC_CANONICAL_SYSTEM |
|---|
| 4883 | |
|---|
| 4884 | case "$target_os" in |
|---|
| 4885 | darwin*) |
|---|
| 4886 | LIBNEWT_LDSHARED='$(CC) -dynamic -bundle -undefined suppress -flat_namespace' |
|---|
| 4887 | DLEXT='dylib' |
|---|
| 4888 | ;; |
|---|
| 4889 | cygwin*|mingw*) |
|---|
| 4890 | cat >>confdefs.h <<\_ACEOF |
|---|
| 4891 | #define __WIN32__ 1 |
|---|
| 4892 | _ACEOF |
|---|
| 4893 | |
|---|
| 4894 | HAVE_DLOPEN='yes' |
|---|
| 4895 | NEWT_LDIMPORT='$(build)/libnewt.a' |
|---|
| 4896 | NEWT_LDFLAGS='-Wl,--export-all-symbols,--out-implib=$(LDIMPORT)' |
|---|
| 4897 | LIBNEWT_LDSHARED='$(CC) -shared' |
|---|
| 4898 | LIBREGEX='$(LIBREGEX)' |
|---|
| 4899 | DLEXT='dll' |
|---|
| 4900 | ;; |
|---|
| 4901 | linux*) |
|---|
| 4902 | # NEWT_LDFLAGS='-ldl -rdynamic' |
|---|
| 4903 | NEWT_LDFLAGS='-rdynamic' |
|---|
| 4904 | LIBNEWT_LDSHARED='$(CC) -shared' |
|---|
| 4905 | DLEXT='so' |
|---|
| 4906 | ;; |
|---|
| 4907 | freebsd*) |
|---|
| 4908 | NEWT_LDFLAGS='-rdynamic' |
|---|
| 4909 | LIBNEWT_LDSHARED='$(CC) -shared' |
|---|
| 4910 | DLEXT='so' |
|---|
| 4911 | ;; |
|---|
| 4912 | beos*) |
|---|
| 4913 | # NEWT_LDFLAGS='-ldl' |
|---|
| 4914 | LIBNEWT_LDSHARED='$(CC) -nostart $(build)/_APP_' |
|---|
| 4915 | LINK_NEWT_APP_='cd $@; ln -s newt _APP_' |
|---|
| 4916 | DLEXT='so' |
|---|
| 4917 | ;; |
|---|
| 4918 | *) |
|---|
| 4919 | NEWT_LDFLAGS='-rdynamic' |
|---|
| 4920 | LIBNEWT_LDSHARED='$(CC) -shared' |
|---|
| 4921 | DLEXT='so' |
|---|
| 4922 | ;; |
|---|
| 4923 | esac |
|---|
| 4924 | |
|---|
| 4925 | |
|---|
| 4926 | case "$target_vendor" in |
|---|
| 4927 | *ipod*) |
|---|
| 4928 | cat >>confdefs.h <<\_ACEOF |
|---|
| 4929 | #define __IPOD__ 1 |
|---|
| 4930 | _ACEOF |
|---|
| 4931 | |
|---|
| 4932 | NEWT_LDFLAGS= |
|---|
| 4933 | ;; |
|---|
| 4934 | esac |
|---|
| 4935 | |
|---|
| 4936 | case "$HAVE_DLOPEN" in |
|---|
| 4937 | yes) |
|---|
| 4938 | cat >>confdefs.h <<\_ACEOF |
|---|
| 4939 | #define HAVE_DLOPEN 1 |
|---|
| 4940 | _ACEOF |
|---|
| 4941 | |
|---|
| 4942 | MAKE_EXT='ext' |
|---|
| 4943 | ;; |
|---|
| 4944 | esac |
|---|
| 4945 | |
|---|
| 4946 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|---|
| 4947 | |
|---|
| 4948 | |
|---|
| 4949 | # Check whether --with-sitedir or --without-sitedir was given. |
|---|
| 4950 | if test "${with_sitedir+set}" = set; then |
|---|
| 4951 | withval="$with_sitedir" |
|---|
| 4952 | sitedir=$withval |
|---|
| 4953 | else |
|---|
| 4954 | sitedir='${prefix}/lib/newt0' |
|---|
| 4955 | fi; |
|---|
| 4956 | SITE_DIR="`eval \"echo ${sitedir}\"`" |
|---|
| 4957 | |
|---|
| 4958 | |
|---|
| 4959 | # Check whether --with-libffidir or --without-libffidir was given. |
|---|
| 4960 | if test "${with_libffidir+set}" = set; then |
|---|
| 4961 | withval="$with_libffidir" |
|---|
| 4962 | libffidir=$withval |
|---|
| 4963 | else |
|---|
| 4964 | libffidir='${prefix}' |
|---|
| 4965 | fi; |
|---|
| 4966 | |
|---|
| 4967 | # Check whether --enable-compat or --disable-compat was given. |
|---|
| 4968 | if test "${enable_compat+set}" = set; then |
|---|
| 4969 | enableval="$enable_compat" |
|---|
| 4970 | compat='yes' |
|---|
| 4971 | else |
|---|
| 4972 | compat='no' |
|---|
| 4973 | fi; |
|---|
| 4974 | |
|---|
| 4975 | # Check whether --enable-contrib or --disable-contrib was given. |
|---|
| 4976 | if test "${enable_contrib+set}" = set; then |
|---|
| 4977 | enableval="$enable_contrib" |
|---|
| 4978 | MAKE_CONTRIB='contrib' |
|---|
| 4979 | fi; |
|---|
| 4980 | |
|---|
| 4981 | test "x$compat" = xno && cat >>confdefs.h <<\_ACEOF |
|---|
| 4982 | #define __NAMED_MAGIC_POINTER__ 1 |
|---|
| 4983 | _ACEOF |
|---|
| 4984 | |
|---|
| 4985 | |
|---|
| 4986 | cat >>confdefs.h <<_ACEOF |
|---|
| 4987 | #define __PLATFORM__ "$target_os" |
|---|
| 4988 | _ACEOF |
|---|
| 4989 | |
|---|
| 4990 | cat >>confdefs.h <<_ACEOF |
|---|
| 4991 | #define __DYLIBSUFFIX__ ".$DLEXT" |
|---|
| 4992 | _ACEOF |
|---|
| 4993 | |
|---|
| 4994 | cat >>confdefs.h <<_ACEOF |
|---|
| 4995 | #define __LIBDIR__ "${SITE_DIR}" |
|---|
| 4996 | _ACEOF |
|---|
| 4997 | |
|---|
| 4998 | |
|---|
| 4999 | NEWT_LDFLAGS="$NEWT_LDFLAGS $LIBDL" |
|---|
| 5000 | |
|---|
| 5001 | |
|---|
| 5002 | |
|---|
| 5003 | |
|---|
| 5004 | |
|---|
| 5005 | |
|---|
| 5006 | |
|---|
| 5007 | |
|---|
| 5008 | |
|---|
| 5009 | |
|---|
| 5010 | |
|---|
| 5011 | |
|---|
| 5012 | |
|---|
| 5013 | |
|---|
| 5014 | |
|---|
| 5015 | if test -n "$ac_tool_prefix"; then |
|---|
| 5016 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|---|
| 5017 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|---|
| 5018 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 5019 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 5020 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
|---|
| 5021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 5022 | else |
|---|
| 5023 | if test -n "$RANLIB"; then |
|---|
| 5024 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|---|
| 5025 | else |
|---|
| 5026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 5027 | for as_dir in $PATH |
|---|
| 5028 | do |
|---|
| 5029 | IFS=$as_save_IFS |
|---|
| 5030 | test -z "$as_dir" && as_dir=. |
|---|
| 5031 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 5032 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 5033 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|---|
| 5034 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 5035 | break 2 |
|---|
| 5036 | fi |
|---|
| 5037 | done |
|---|
| 5038 | done |
|---|
| 5039 | |
|---|
| 5040 | fi |
|---|
| 5041 | fi |
|---|
| 5042 | RANLIB=$ac_cv_prog_RANLIB |
|---|
| 5043 | if test -n "$RANLIB"; then |
|---|
| 5044 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|---|
| 5045 | echo "${ECHO_T}$RANLIB" >&6 |
|---|
| 5046 | else |
|---|
| 5047 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 5048 | echo "${ECHO_T}no" >&6 |
|---|
| 5049 | fi |
|---|
| 5050 | |
|---|
| 5051 | fi |
|---|
| 5052 | if test -z "$ac_cv_prog_RANLIB"; then |
|---|
| 5053 | ac_ct_RANLIB=$RANLIB |
|---|
| 5054 | # Extract the first word of "ranlib", so it can be a program name with args. |
|---|
| 5055 | set dummy ranlib; ac_word=$2 |
|---|
| 5056 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 5057 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 5058 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|---|
| 5059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 5060 | else |
|---|
| 5061 | if test -n "$ac_ct_RANLIB"; then |
|---|
| 5062 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|---|
| 5063 | else |
|---|
| 5064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 5065 | for as_dir in $PATH |
|---|
| 5066 | do |
|---|
| 5067 | IFS=$as_save_IFS |
|---|
| 5068 | test -z "$as_dir" && as_dir=. |
|---|
| 5069 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 5070 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 5071 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
|---|
| 5072 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 5073 | break 2 |
|---|
| 5074 | fi |
|---|
| 5075 | done |
|---|
| 5076 | done |
|---|
| 5077 | |
|---|
| 5078 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|---|
| 5079 | fi |
|---|
| 5080 | fi |
|---|
| 5081 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|---|
| 5082 | if test -n "$ac_ct_RANLIB"; then |
|---|
| 5083 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|---|
| 5084 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|---|
| 5085 | else |
|---|
| 5086 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 5087 | echo "${ECHO_T}no" >&6 |
|---|
| 5088 | fi |
|---|
| 5089 | |
|---|
| 5090 | RANLIB=$ac_ct_RANLIB |
|---|
| 5091 | else |
|---|
| 5092 | RANLIB="$ac_cv_prog_RANLIB" |
|---|
| 5093 | fi |
|---|
| 5094 | |
|---|
| 5095 | # Extract the first word of "ar", so it can be a program name with args. |
|---|
| 5096 | set dummy ar; ac_word=$2 |
|---|
| 5097 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|---|
| 5098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|---|
| 5099 | if test "${ac_cv_path_AR+set}" = set; then |
|---|
| 5100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 5101 | else |
|---|
| 5102 | case $AR in |
|---|
| 5103 | [\\/]* | ?:[\\/]*) |
|---|
| 5104 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
|---|
| 5105 | ;; |
|---|
| 5106 | *) |
|---|
| 5107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 5108 | for as_dir in $PATH |
|---|
| 5109 | do |
|---|
| 5110 | IFS=$as_save_IFS |
|---|
| 5111 | test -z "$as_dir" && as_dir=. |
|---|
| 5112 | for ac_exec_ext in '' $ac_executable_extensions; do |
|---|
| 5113 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|---|
| 5114 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
|---|
| 5115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|---|
| 5116 | break 2 |
|---|
| 5117 | fi |
|---|
| 5118 | done |
|---|
| 5119 | done |
|---|
| 5120 | |
|---|
| 5121 | ;; |
|---|
| 5122 | esac |
|---|
| 5123 | fi |
|---|
| 5124 | AR=$ac_cv_path_AR |
|---|
| 5125 | |
|---|
| 5126 | if test -n "$AR"; then |
|---|
| 5127 | echo "$as_me:$LINENO: result: $AR" >&5 |
|---|
| 5128 | echo "${ECHO_T}$AR" >&6 |
|---|
| 5129 | else |
|---|
| 5130 | echo "$as_me:$LINENO: result: no" >&5 |
|---|
| 5131 | echo "${ECHO_T}no" >&6 |
|---|
| 5132 | fi |
|---|
| 5133 | |
|---|
| 5134 | if test "x$AR" = "x:"; then |
|---|
| 5135 | { { echo "$as_me:$LINENO: error: Configure could not find the library archiver" >&5 |
|---|
| 5136 | echo "$as_me: error: Configure could not find the library archiver" >&2;} |
|---|
| 5137 | { (exit aborting.); exit aborting.; }; } |
|---|
| 5138 | fi |
|---|
| 5139 | if test "x$RANLIB" != "x:"; then |
|---|
| 5140 | LIBCOMMAND="$AR cr" |
|---|
| 5141 | else |
|---|
| 5142 | LIBCOMMAND="$AR crs" |
|---|
| 5143 | fi |
|---|
| 5144 | |
|---|
| 5145 | LIBEXT=".a" |
|---|
| 5146 | |
|---|
| 5147 | |
|---|
| 5148 | |
|---|
| 5149 | ac_config_files="$ac_config_files Makefile ext/protoFILE/Makefile ext/protoREGEX/Makefile contrib/inwt/Makefile contrib/NativeCalls/Makefile contrib/NewtObjC/Makefile" |
|---|
| 5150 | |
|---|
| 5151 | cat >confcache <<\_ACEOF |
|---|
| 5152 | # This file is a shell script that caches the results of configure |
|---|
| 5153 | # tests run on this system so they can be shared between configure |
|---|
| 5154 | # scripts and configure runs, see configure's option --config-cache. |
|---|
| 5155 | # It is not useful on other systems. If it contains results you don't |
|---|
| 5156 | # want to keep, you may remove or edit it. |
|---|
| 5157 | # |
|---|
| 5158 | # config.status only pays attention to the cache file if you give it |
|---|
| 5159 | # the --recheck option to rerun configure. |
|---|
| 5160 | # |
|---|
| 5161 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
|---|
| 5162 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
|---|
| 5163 | # following values. |
|---|
| 5164 | |
|---|
| 5165 | _ACEOF |
|---|
| 5166 | |
|---|
| 5167 | # The following way of writing the cache mishandles newlines in values, |
|---|
| 5168 | # but we know of no workaround that is simple, portable, and efficient. |
|---|
| 5169 | # So, don't put newlines in cache variables' values. |
|---|
| 5170 | # Ultrix sh set writes to stderr and can't be redirected directly, |
|---|
| 5171 | # and sets the high bit in the cache file unless we assign to the vars. |
|---|
| 5172 | { |
|---|
| 5173 | (set) 2>&1 | |
|---|
| 5174 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
|---|
| 5175 | *ac_space=\ *) |
|---|
| 5176 | # `set' does not quote correctly, so add quotes (double-quote |
|---|
| 5177 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
|---|
| 5178 | sed -n \ |
|---|
| 5179 | "s/'/'\\\\''/g; |
|---|
| 5180 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|---|
| 5181 | ;; |
|---|
| 5182 | *) |
|---|
| 5183 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
|---|
| 5184 | sed -n \ |
|---|
| 5185 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
|---|
| 5186 | ;; |
|---|
| 5187 | esac; |
|---|
| 5188 | } | |
|---|
| 5189 | sed ' |
|---|
| 5190 | t clear |
|---|
| 5191 | : clear |
|---|
| 5192 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|---|
| 5193 | t end |
|---|
| 5194 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|---|
| 5195 | : end' >>confcache |
|---|
| 5196 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
|---|
| 5197 | if test -w $cache_file; then |
|---|
| 5198 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
|---|
| 5199 | cat confcache >$cache_file |
|---|
| 5200 | else |
|---|
| 5201 | echo "not updating unwritable cache $cache_file" |
|---|
| 5202 | fi |
|---|
| 5203 | fi |
|---|
| 5204 | rm -f confcache |
|---|
| 5205 | |
|---|
| 5206 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|---|
| 5207 | # Let make expand exec_prefix. |
|---|
| 5208 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|---|
| 5209 | |
|---|
| 5210 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
|---|
| 5211 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
|---|
| 5212 | # trailing colons and then remove the whole line if VPATH becomes empty |
|---|
| 5213 | # (actually we leave an empty line to preserve line numbers). |
|---|
| 5214 | if test "x$srcdir" = x.; then |
|---|
| 5215 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|---|
| 5216 | s/:*\$(srcdir):*/:/; |
|---|
| 5217 | s/:*\${srcdir}:*/:/; |
|---|
| 5218 | s/:*@srcdir@:*/:/; |
|---|
| 5219 | s/^\([^=]*=[ ]*\):*/\1/; |
|---|
| 5220 | s/:*$//; |
|---|
| 5221 | s/^[^=]*=[ ]*$//; |
|---|
| 5222 | }' |
|---|
| 5223 | fi |
|---|
| 5224 | |
|---|
| 5225 | DEFS=-DHAVE_CONFIG_H |
|---|
| 5226 | |
|---|
| 5227 | ac_libobjs= |
|---|
| 5228 | ac_ltlibobjs= |
|---|
| 5229 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|---|
| 5230 | # 1. Remove the extension, and $U if already installed. |
|---|
| 5231 | ac_i=`echo "$ac_i" | |
|---|
| 5232 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
|---|
| 5233 | # 2. Add them. |
|---|
| 5234 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
|---|
| 5235 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
|---|
| 5236 | done |
|---|
| 5237 | LIBOBJS=$ac_libobjs |
|---|
| 5238 | |
|---|
| 5239 | LTLIBOBJS=$ac_ltlibobjs |
|---|
| 5240 | |
|---|
| 5241 | |
|---|
| 5242 | |
|---|
| 5243 | : ${CONFIG_STATUS=./config.status} |
|---|
| 5244 | ac_clean_files_save=$ac_clean_files |
|---|
| 5245 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|---|
| 5246 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
|---|
| 5247 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|---|
| 5248 | cat >$CONFIG_STATUS <<_ACEOF |
|---|
| 5249 | #! $SHELL |
|---|
| 5250 | # Generated by $as_me. |
|---|
| 5251 | # Run this file to recreate the current configuration. |
|---|
| 5252 | # Compiler output produced by configure, useful for debugging |
|---|
| 5253 | # configure, is in config.log if it exists. |
|---|
| 5254 | |
|---|
| 5255 | debug=false |
|---|
| 5256 | ac_cs_recheck=false |
|---|
| 5257 | ac_cs_silent=false |
|---|
| 5258 | SHELL=\${CONFIG_SHELL-$SHELL} |
|---|
| 5259 | _ACEOF |
|---|
| 5260 | |
|---|
| 5261 | cat >>$CONFIG_STATUS <<\_ACEOF |
|---|
| 5262 | ## --------------------- ## |
|---|
| 5263 | ## M4sh Initialization. ## |
|---|
| 5264 | ## --------------------- ## |
|---|
| 5265 | |
|---|
| 5266 | # Be Bourne compatible |
|---|
| 5267 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|---|
| 5268 | emulate sh |
|---|
| 5269 | NULLCMD=: |
|---|
| 5270 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|---|
| 5271 | # is contrary to our usage. Disable this feature. |
|---|
| 5272 | alias -g '${1+"$@"}'='"$@"' |
|---|
| 5273 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
|---|
| 5274 | set -o posix |
|---|
| 5275 | fi |
|---|
| 5276 | DUALCASE=1; export DUALCASE # for MKS sh |
|---|
| 5277 | |
|---|
| 5278 | # Support unset when possible. |
|---|
| 5279 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|---|
| 5280 | as_unset=unset |
|---|
| 5281 | else |
|---|
| 5282 | as_unset=false |
|---|
| 5283 | fi |
|---|
| 5284 | |
|---|
| 5285 | |
|---|
| 5286 | # Work around bugs in pre-3.0 UWIN ksh. |
|---|
| 5287 | $as_unset ENV MAIL MAILPATH |
|---|
| 5288 | PS1='$ ' |
|---|
| 5289 | PS2='> ' |
|---|
| 5290 | PS4='+ ' |
|---|
| 5291 | |
|---|
| 5292 | # NLS nuisances. |
|---|
| 5293 | for as_var in \ |
|---|
| 5294 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|---|
| 5295 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|---|
| 5296 | LC_TELEPHONE LC_TIME |
|---|
| 5297 | do |
|---|
| 5298 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|---|
| 5299 | eval $as_var=C; export $as_var |
|---|
| 5300 | else |
|---|
| 5301 | $as_unset $as_var |
|---|
| 5302 | fi |
|---|
| 5303 | done |
|---|
| 5304 | |
|---|
| 5305 | # Required to use basename. |
|---|
| 5306 | if expr a : '\(a\)' >/dev/null 2>&1; then |
|---|
| 5307 | as_expr=expr |
|---|
| 5308 | else |
|---|
| 5309 | as_expr=false |
|---|
| 5310 | fi |
|---|
| 5311 | |
|---|
| 5312 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
|---|
| 5313 | as_basename=basename |
|---|
| 5314 | else |
|---|
| 5315 | as_basename=false |
|---|
| 5316 | fi |
|---|
| 5317 | |
|---|
| 5318 | |
|---|
| 5319 | # Name of the executable. |
|---|
| 5320 | as_me=`$as_basename "$0" || |
|---|
| 5321 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|---|
| 5322 | X"$0" : 'X\(//\)$' \| \ |
|---|
| 5323 | X"$0" : 'X\(/\)$' \| \ |
|---|
| 5324 | . : '\(.\)' 2>/dev/null || |
|---|
| 5325 | echo X/"$0" | |
|---|
| 5326 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
|---|
| 5327 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
|---|
| 5328 | /^X\/\(\/\).*/{ s//\1/; q; } |
|---|
| 5329 | s/.*/./; q'` |
|---|
| 5330 | |
|---|
| 5331 | |
|---|
| 5332 | # PATH needs CR, and LINENO needs CR and PATH. |
|---|
| 5333 | # Avoid depending upon Character Ranges. |
|---|
| 5334 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|---|
| 5335 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|---|
| 5336 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|---|
| 5337 | as_cr_digits='0123456789' |
|---|
| 5338 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|---|
| 5339 | |
|---|
| 5340 | # The user is always right. |
|---|
| 5341 | if test "${PATH_SEPARATOR+set}" != set; then |
|---|
| 5342 | echo "#! /bin/sh" >conf$$.sh |
|---|
| 5343 | echo "exit 0" >>conf$$.sh |
|---|
| 5344 | chmod +x conf$$.sh |
|---|
| 5345 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|---|
| 5346 | PATH_SEPARATOR=';' |
|---|
| 5347 | else |
|---|
| 5348 | PATH_SEPARATOR=: |
|---|
| 5349 | fi |
|---|
| 5350 | rm -f conf$$.sh |
|---|
| 5351 | fi |
|---|
| 5352 | |
|---|
| 5353 | |
|---|
| 5354 | as_lineno_1=$LINENO |
|---|
| 5355 | as_lineno_2=$LINENO |
|---|
| 5356 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|---|
| 5357 | test "x$as_lineno_1" != "x$as_lineno_2" && |
|---|
| 5358 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
|---|
| 5359 | # Find who we are. Look in the path if we contain no path at all |
|---|
| 5360 | # relative or not. |
|---|
| 5361 | case $0 in |
|---|
| 5362 | *[\\/]* ) as_myself=$0 ;; |
|---|
| 5363 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 5364 | for as_dir in $PATH |
|---|
| 5365 | do |
|---|
| 5366 | IFS=$as_save_IFS |
|---|
| 5367 | test -z "$as_dir" && as_dir=. |
|---|
| 5368 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|---|
| 5369 | done |
|---|
| 5370 | |
|---|
| 5371 | ;; |
|---|
| 5372 | esac |
|---|
| 5373 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
|---|
| 5374 | # in which case we are not to be found in the path. |
|---|
| 5375 | if test "x$as_myself" = x; then |
|---|
| 5376 | as_myself=$0 |
|---|
| 5377 | fi |
|---|
| 5378 | if test ! -f "$as_myself"; then |
|---|
| 5379 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
|---|
| 5380 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
|---|
| 5381 | { (exit 1); exit 1; }; } |
|---|
| 5382 | fi |
|---|
| 5383 | case $CONFIG_SHELL in |
|---|
| 5384 | '') |
|---|
| 5385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|---|
| 5386 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|---|
| 5387 | do |
|---|
| 5388 | IFS=$as_save_IFS |
|---|
| 5389 | test -z "$as_dir" && as_dir=. |
|---|
| 5390 | for as_base in sh bash ksh sh5; do |
|---|
| 5391 | case $as_dir in |
|---|
| 5392 | /*) |
|---|
| 5393 | if ("$as_dir/$as_base" -c ' |
|---|
| 5394 | as_lineno_1=$LINENO |
|---|
| 5395 | as_lineno_2=$LINENO |
|---|
| 5396 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
|---|
| 5397 | test "x$as_lineno_1" != "x$as_lineno_2" && |
|---|
| 5398 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
|---|
| 5399 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
|---|
| 5400 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
|---|
| 5401 | CONFIG_SHELL=$as_dir/$as_base |
|---|
| 5402 | export CONFIG_SHELL |
|---|
| 5403 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
|---|
| 5404 | fi;; |
|---|
| 5405 | esac |
|---|
| 5406 | done |
|---|
| 5407 | done |
|---|
| 5408 | ;; |
|---|
| 5409 | esac |
|---|
| 5410 | |
|---|
| 5411 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|---|
| 5412 | # uniformly replaced by the line number. The first 'sed' inserts a |
|---|
| 5413 | # line-number line before each line; the second 'sed' does the real |
|---|
| 5414 | # work. The second script uses 'N' to pair each line-number line |
|---|
| 5415 | # with the numbered line, and appends trailing '-' during |
|---|
| 5416 | # substitution so that $LINENO is not a special case at line end. |
|---|
| 5417 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|---|
| 5418 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
|---|
| 5419 | sed '=' <$as_myself | |
|---|
| 5420 | sed ' |
|---|
| 5421 | N |
|---|
| 5422 | s,$,-, |
|---|
| 5423 | : loop |
|---|
| 5424 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
|---|
| 5425 | t loop |
|---|
| 5426 | s,-$,, |
|---|
| 5427 | s,^['$as_cr_digits']*\n,, |
|---|
| 5428 | ' >$as_me.lineno && |
|---|
| 5429 | chmod +x $as_me.lineno || |
|---|
| 5430 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
|---|
| 5431 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
|---|
| 5432 | { (exit 1); exit 1; }; } |
|---|
| 5433 | |
|---|
| 5434 | # Don't try to exec as it changes $[0], causing all sort of problems |
|---|
| 5435 | # (the dirname of $[0] is not the place where we might find the |
|---|
| 5436 | # original and so on. Autoconf is especially sensible to this). |
|---|
| 5437 | . ./$as_me.lineno |
|---|
| 5438 | # Exit status is that of the last command. |
|---|
| 5439 | exit |
|---|
| 5440 | } |
|---|
| 5441 | |
|---|
| 5442 | |
|---|
| 5443 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
|---|
| 5444 | *c*,-n*) ECHO_N= ECHO_C=' |
|---|
| 5445 | ' ECHO_T=' ' ;; |
|---|
| 5446 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
|---|
| 5447 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
|---|
| 5448 | esac |
|---|
| 5449 | |
|---|
| 5450 | if expr a : '\(a\)' >/dev/null 2>&1; then |
|---|
| 5451 | as_expr=expr |
|---|
| 5452 | else |
|---|
| 5453 | as_expr=false |
|---|
| 5454 | fi |
|---|
| 5455 | |
|---|
| 5456 | rm -f conf$$ conf$$.exe conf$$.file |
|---|
| 5457 | echo >conf$$.file |
|---|
| 5458 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
|---|
| 5459 | # We could just check for DJGPP; but this test a) works b) is more generic |
|---|
| 5460 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
|---|
| 5461 | if test -f conf$$.exe; then |
|---|
| 5462 | # Don't use ln at all; we don't have any links |
|---|
| 5463 | as_ln_s='cp -p' |
|---|
| 5464 | else |
|---|
| 5465 | as_ln_s='ln -s' |
|---|
| 5466 | fi |
|---|
| 5467 | elif ln conf$$.file conf$$ 2>/dev/null; then |
|---|
| 5468 | as_ln_s=ln |
|---|
| 5469 | else |
|---|
| 5470 | as_ln_s='cp -p' |
|---|
| 5471 | fi |
|---|
| 5472 | rm -f conf$$ conf$$.exe conf$$.file |
|---|
| 5473 | |
|---|
| 5474 | if mkdir -p . 2>/dev/null; then |
|---|
| 5475 | as_mkdir_p=: |
|---|
| 5476 | else |
|---|
| 5477 | test -d ./-p && rmdir ./-p |
|---|
| 5478 | as_mkdir_p=false |
|---|
| 5479 | fi |
|---|
| 5480 | |
|---|
| 5481 | as_executable_p="test -f" |
|---|
| 5482 | |
|---|
| 5483 | # Sed expression to map a string onto a valid CPP name. |
|---|
| 5484 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|---|
| 5485 | |
|---|
| 5486 | # Sed expression to map a string onto a valid variable name. |
|---|
| 5487 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|---|
| 5488 | |
|---|
| 5489 | |
|---|
| 5490 | # IFS |
|---|
| 5491 | # We need space, tab and new line, in precisely that order. |
|---|
| 5492 | as_nl=' |
|---|
| 5493 | ' |
|---|
| 5494 | IFS=" $as_nl" |
|---|
| 5495 | |
|---|
| 5496 | # CDPATH. |
|---|
| 5497 | $as_unset CDPATH |
|---|
| 5498 | |
|---|
| 5499 | exec 6>&1 |
|---|
| 5500 | |
|---|
| 5501 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
|---|
| 5502 | # report actual input values of CONFIG_FILES etc. instead of their |
|---|
| 5503 | # values after options handling. Logging --version etc. is OK. |
|---|
| 5504 | exec 5>>config.log |
|---|
| 5505 | { |
|---|
| 5506 | echo |
|---|
| 5507 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|---|
| 5508 | ## Running $as_me. ## |
|---|
| 5509 | _ASBOX |
|---|
| 5510 | } >&5 |
|---|
| 5511 | cat >&5 <<_CSEOF |
|---|
| 5512 | |
|---|
| 5513 | This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was |
|---|
| 5514 | generated by GNU Autoconf 2.59. Invocation command line was |
|---|
| 5515 | |
|---|
| 5516 | CONFIG_FILES = $CONFIG_FILES |
|---|
| 5517 | CONFIG_HEADERS = $CONFIG_HEADERS |
|---|
| 5518 | CONFIG_LINKS = $CONFIG_LINKS |
|---|
| 5519 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
|---|
| 5520 | $ $0 $@ |
|---|
| 5521 | |
|---|
| 5522 | _CSEOF |
|---|
| 5523 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
|---|
| 5524 | echo >&5 |
|---|
| 5525 | _ACEOF |
|---|
| 5526 | |
|---|
| 5527 | # Files that config.status was made for. |
|---|
| 5528 | if test -n "$ac_config_files"; then |
|---|
| 5529 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
|---|
| 5530 | fi |
|---|
| 5531 | |
|---|
| 5532 | if test -n "$ac_config_headers"; then |
|---|
| 5533 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
|---|
| 5534 | fi |
|---|
| 5535 | |
|---|
| 5536 | if test -n "$ac_config_links"; then |
|---|
| 5537 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
|---|
| 5538 | fi |
|---|
| 5539 | |
|---|
| 5540 | if test -n "$ac_config_commands"; then |
|---|
| 5541 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
|---|
| 5542 | fi |
|---|
| 5543 | |
|---|
| 5544 | cat >>$CONFIG_STATUS <<\_ACEOF |
|---|
| 5545 | |
|---|
| 5546 | ac_cs_usage="\ |
|---|
| 5547 | \`$as_me' instantiates files from templates according to the |
|---|
| 5548 | current configuration. |
|---|
| 5549 | |
|---|
| 5550 | Usage: $0 [OPTIONS] [FILE]... |
|---|
| 5551 | |
|---|
| 5552 | -h, --help print this help, then exit |
|---|
| 5553 | -V, --version print version number, then exit |
|---|
| 5554 | -q, --quiet do not print progress messages |
|---|
| 5555 | -d, --debug don't remove temporary files |
|---|
| 5556 | --recheck update $as_me by reconfiguring in the same conditions |
|---|
| 5557 | --file=FILE[:TEMPLATE] |
|---|
| 5558 | instantiate the configuration file FILE |
|---|
| 5559 | --header=FILE[:TEMPLATE] |
|---|
| 5560 | instantiate the configuration header FILE |
|---|
| 5561 | |
|---|
| 5562 | Configuration files: |
|---|
| 5563 | $config_files |
|---|
| 5564 | |
|---|
| 5565 | Configuration headers: |
|---|
| 5566 | $config_headers |
|---|
| 5567 | |
|---|
| 5568 | Report bugs to <bug-autoconf@gnu.org>." |
|---|
| 5569 | _ACEOF |
|---|
| 5570 | |
|---|
| 5571 | cat >>$CONFIG_STATUS <<_ACEOF |
|---|
| 5572 | ac_cs_version="\\ |
|---|
| 5573 | FULL-PACKAGE-NAME config.status VERSION |
|---|
| 5574 | configured by $0, generated by GNU Autoconf 2.59, |
|---|
| 5575 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
|---|
| 5576 | |
|---|
| 5577 | Copyright (C) 2003 Free Software Foundation, Inc. |
|---|
| 5578 | This config.status script is free software; the Free Software Foundation |
|---|
| 5579 | gives unlimited permission to copy, distribute and modify it." |
|---|
| 5580 | srcdir=$srcdir |
|---|
| 5581 | _ACEOF |
|---|
| 5582 | |
|---|
| 5583 | cat >>$CONFIG_STATUS <<\_ACEOF |
|---|
| 5584 | # If no file are specified by the user, then we need to prov
|
|---|