Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4 | # |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
| 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
| 11 | |
| 12 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 23 | |
| 24 | # Support unset when possible. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
| 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 221 | test -d ./-p && rmdir ./-p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
| 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
| 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
| 254 | ac_default_prefix=/usr/local |
| 255 | ac_config_libobj_dir=. |
| 256 | cross_compiling=no |
| 257 | subdirs= |
| 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
| 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
| 267 | # Identity of this package. |
| 268 | PACKAGE_NAME= |
| 269 | PACKAGE_TARNAME= |
| 270 | PACKAGE_VERSION= |
| 271 | PACKAGE_STRING= |
| 272 | PACKAGE_BUGREPORT= |
| 273 | |
| 274 | ac_unique_file="srtp" |
| 275 | # Factoring default headers for most tests. |
| 276 | ac_includes_default="\ |
| 277 | #include <stdio.h> |
| 278 | #if HAVE_SYS_TYPES_H |
| 279 | # include <sys/types.h> |
| 280 | #endif |
| 281 | #if HAVE_SYS_STAT_H |
| 282 | # include <sys/stat.h> |
| 283 | #endif |
| 284 | #if STDC_HEADERS |
| 285 | # include <stdlib.h> |
| 286 | # include <stddef.h> |
| 287 | #else |
| 288 | # if HAVE_STDLIB_H |
| 289 | # include <stdlib.h> |
| 290 | # endif |
| 291 | #endif |
| 292 | #if HAVE_STRING_H |
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 294 | # include <memory.h> |
| 295 | # endif |
| 296 | # include <string.h> |
| 297 | #endif |
| 298 | #if HAVE_STRINGS_H |
| 299 | # include <strings.h> |
| 300 | #endif |
| 301 | #if HAVE_INTTYPES_H |
| 302 | # include <inttypes.h> |
| 303 | #else |
| 304 | # if HAVE_STDINT_H |
| 305 | # include <stdint.h> |
| 306 | # endif |
| 307 | #endif |
| 308 | #if HAVE_UNISTD_H |
| 309 | # include <unistd.h> |
| 310 | #endif" |
| 311 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 312 | 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 RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RNG_OBJS CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os EXE GDOI_OBJS LIBOBJS LTLIBOBJS' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 313 | ac_subst_files='' |
| 314 | |
| 315 | # Initialize some variables set by options. |
| 316 | ac_init_help= |
| 317 | ac_init_version=false |
| 318 | # The variables have the same names as the options, with |
| 319 | # dashes changed to underlines. |
| 320 | cache_file=/dev/null |
| 321 | exec_prefix=NONE |
| 322 | no_create= |
| 323 | no_recursion= |
| 324 | prefix=NONE |
| 325 | program_prefix=NONE |
| 326 | program_suffix=NONE |
| 327 | program_transform_name=s,x,x, |
| 328 | silent= |
| 329 | site= |
| 330 | srcdir= |
| 331 | verbose= |
| 332 | x_includes=NONE |
| 333 | x_libraries=NONE |
| 334 | |
| 335 | # Installation directory options. |
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 337 | # and all the variables that are supposed to be based on exec_prefix |
| 338 | # by default will actually change. |
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 340 | bindir='${exec_prefix}/bin' |
| 341 | sbindir='${exec_prefix}/sbin' |
| 342 | libexecdir='${exec_prefix}/libexec' |
| 343 | datadir='${prefix}/share' |
| 344 | sysconfdir='${prefix}/etc' |
| 345 | sharedstatedir='${prefix}/com' |
| 346 | localstatedir='${prefix}/var' |
| 347 | libdir='${exec_prefix}/lib' |
| 348 | includedir='${prefix}/include' |
| 349 | oldincludedir='/usr/include' |
| 350 | infodir='${prefix}/info' |
| 351 | mandir='${prefix}/man' |
| 352 | |
| 353 | ac_prev= |
| 354 | for ac_option |
| 355 | do |
| 356 | # If the previous option needs an argument, assign it. |
| 357 | if test -n "$ac_prev"; then |
| 358 | eval "$ac_prev=\$ac_option" |
| 359 | ac_prev= |
| 360 | continue |
| 361 | fi |
| 362 | |
| 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 364 | |
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 366 | |
| 367 | case $ac_option in |
| 368 | |
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 370 | ac_prev=bindir ;; |
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 372 | bindir=$ac_optarg ;; |
| 373 | |
| 374 | -build | --build | --buil | --bui | --bu) |
| 375 | ac_prev=build_alias ;; |
| 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 377 | build_alias=$ac_optarg ;; |
| 378 | |
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 381 | ac_prev=cache_file ;; |
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 384 | cache_file=$ac_optarg ;; |
| 385 | |
| 386 | --config-cache | -C) |
| 387 | cache_file=config.cache ;; |
| 388 | |
| 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 390 | ac_prev=datadir ;; |
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 392 | | --da=*) |
| 393 | datadir=$ac_optarg ;; |
| 394 | |
| 395 | -disable-* | --disable-*) |
| 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 397 | # Reject names that are not valid shell variable names. |
| 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 400 | { (exit 1); exit 1; }; } |
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 402 | eval "enable_$ac_feature=no" ;; |
| 403 | |
| 404 | -enable-* | --enable-*) |
| 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 406 | # Reject names that are not valid shell variable names. |
| 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 409 | { (exit 1); exit 1; }; } |
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 411 | case $ac_option in |
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 413 | *) ac_optarg=yes ;; |
| 414 | esac |
| 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 416 | |
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 419 | | --exec | --exe | --ex) |
| 420 | ac_prev=exec_prefix ;; |
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 423 | | --exec=* | --exe=* | --ex=*) |
| 424 | exec_prefix=$ac_optarg ;; |
| 425 | |
| 426 | -gas | --gas | --ga | --g) |
| 427 | # Obsolete; use --with-gas. |
| 428 | with_gas=yes ;; |
| 429 | |
| 430 | -help | --help | --hel | --he | -h) |
| 431 | ac_init_help=long ;; |
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 433 | ac_init_help=recursive ;; |
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 435 | ac_init_help=short ;; |
| 436 | |
| 437 | -host | --host | --hos | --ho) |
| 438 | ac_prev=host_alias ;; |
| 439 | -host=* | --host=* | --hos=* | --ho=*) |
| 440 | host_alias=$ac_optarg ;; |
| 441 | |
| 442 | -includedir | --includedir | --includedi | --included | --include \ |
| 443 | | --includ | --inclu | --incl | --inc) |
| 444 | ac_prev=includedir ;; |
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 447 | includedir=$ac_optarg ;; |
| 448 | |
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 450 | ac_prev=infodir ;; |
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 452 | infodir=$ac_optarg ;; |
| 453 | |
| 454 | -libdir | --libdir | --libdi | --libd) |
| 455 | ac_prev=libdir ;; |
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 457 | libdir=$ac_optarg ;; |
| 458 | |
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 460 | | --libexe | --libex | --libe) |
| 461 | ac_prev=libexecdir ;; |
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 463 | | --libexe=* | --libex=* | --libe=*) |
| 464 | libexecdir=$ac_optarg ;; |
| 465 | |
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 467 | | --localstate | --localstat | --localsta | --localst \ |
| 468 | | --locals | --local | --loca | --loc | --lo) |
| 469 | ac_prev=localstatedir ;; |
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 473 | localstatedir=$ac_optarg ;; |
| 474 | |
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 476 | ac_prev=mandir ;; |
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 478 | mandir=$ac_optarg ;; |
| 479 | |
| 480 | -nfp | --nfp | --nf) |
| 481 | # Obsolete; use --without-fp. |
| 482 | with_fp=no ;; |
| 483 | |
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 485 | | --no-cr | --no-c | -n) |
| 486 | no_create=yes ;; |
| 487 | |
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 490 | no_recursion=yes ;; |
| 491 | |
| 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 494 | | --oldin | --oldi | --old | --ol | --o) |
| 495 | ac_prev=oldincludedir ;; |
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 499 | oldincludedir=$ac_optarg ;; |
| 500 | |
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 502 | ac_prev=prefix ;; |
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 504 | prefix=$ac_optarg ;; |
| 505 | |
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 507 | | --program-pre | --program-pr | --program-p) |
| 508 | ac_prev=program_prefix ;; |
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 511 | program_prefix=$ac_optarg ;; |
| 512 | |
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 514 | | --program-suf | --program-su | --program-s) |
| 515 | ac_prev=program_suffix ;; |
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 518 | program_suffix=$ac_optarg ;; |
| 519 | |
| 520 | -program-transform-name | --program-transform-name \ |
| 521 | | --program-transform-nam | --program-transform-na \ |
| 522 | | --program-transform-n | --program-transform- \ |
| 523 | | --program-transform | --program-transfor \ |
| 524 | | --program-transfo | --program-transf \ |
| 525 | | --program-trans | --program-tran \ |
| 526 | | --progr-tra | --program-tr | --program-t) |
| 527 | ac_prev=program_transform_name ;; |
| 528 | -program-transform-name=* | --program-transform-name=* \ |
| 529 | | --program-transform-nam=* | --program-transform-na=* \ |
| 530 | | --program-transform-n=* | --program-transform-=* \ |
| 531 | | --program-transform=* | --program-transfor=* \ |
| 532 | | --program-transfo=* | --program-transf=* \ |
| 533 | | --program-trans=* | --program-tran=* \ |
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 535 | program_transform_name=$ac_optarg ;; |
| 536 | |
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 538 | | -silent | --silent | --silen | --sile | --sil) |
| 539 | silent=yes ;; |
| 540 | |
| 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 542 | ac_prev=sbindir ;; |
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 544 | | --sbi=* | --sb=*) |
| 545 | sbindir=$ac_optarg ;; |
| 546 | |
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 549 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 550 | | --sha | --sh) |
| 551 | ac_prev=sharedstatedir ;; |
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 555 | | --sha=* | --sh=*) |
| 556 | sharedstatedir=$ac_optarg ;; |
| 557 | |
| 558 | -site | --site | --sit) |
| 559 | ac_prev=site ;; |
| 560 | -site=* | --site=* | --sit=*) |
| 561 | site=$ac_optarg ;; |
| 562 | |
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 564 | ac_prev=srcdir ;; |
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 566 | srcdir=$ac_optarg ;; |
| 567 | |
| 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 569 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 570 | ac_prev=sysconfdir ;; |
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 573 | sysconfdir=$ac_optarg ;; |
| 574 | |
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 576 | ac_prev=target_alias ;; |
| 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 578 | target_alias=$ac_optarg ;; |
| 579 | |
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 581 | verbose=yes ;; |
| 582 | |
| 583 | -version | --version | --versio | --versi | --vers | -V) |
| 584 | ac_init_version=: ;; |
| 585 | |
| 586 | -with-* | --with-*) |
| 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 588 | # Reject names that are not valid shell variable names. |
| 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 591 | { (exit 1); exit 1; }; } |
| 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 593 | case $ac_option in |
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 595 | *) ac_optarg=yes ;; |
| 596 | esac |
| 597 | eval "with_$ac_package='$ac_optarg'" ;; |
| 598 | |
| 599 | -without-* | --without-*) |
| 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 601 | # Reject names that are not valid shell variable names. |
| 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 604 | { (exit 1); exit 1; }; } |
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 606 | eval "with_$ac_package=no" ;; |
| 607 | |
| 608 | --x) |
| 609 | # Obsolete; use --with-x. |
| 610 | with_x=yes ;; |
| 611 | |
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 613 | | --x-incl | --x-inc | --x-in | --x-i) |
| 614 | ac_prev=x_includes ;; |
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 617 | x_includes=$ac_optarg ;; |
| 618 | |
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 621 | ac_prev=x_libraries ;; |
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 624 | x_libraries=$ac_optarg ;; |
| 625 | |
| 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 627 | Try \`$0 --help' for more information." >&2 |
| 628 | { (exit 1); exit 1; }; } |
| 629 | ;; |
| 630 | |
| 631 | *=*) |
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 633 | # Reject names that are not valid shell variable names. |
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 636 | { (exit 1); exit 1; }; } |
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 638 | eval "$ac_envvar='$ac_optarg'" |
| 639 | export $ac_envvar ;; |
| 640 | |
| 641 | *) |
| 642 | # FIXME: should be removed in autoconf 3.0. |
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 647 | ;; |
| 648 | |
| 649 | esac |
| 650 | done |
| 651 | |
| 652 | if test -n "$ac_prev"; then |
| 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 655 | { (exit 1); exit 1; }; } |
| 656 | fi |
| 657 | |
| 658 | # Be sure to have absolute paths. |
| 659 | for ac_var in exec_prefix prefix |
| 660 | do |
| 661 | eval ac_val=$`echo $ac_var` |
| 662 | case $ac_val in |
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 665 | { (exit 1); exit 1; }; };; |
| 666 | esac |
| 667 | done |
| 668 | |
| 669 | # Be sure to have absolute paths. |
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 671 | localstatedir libdir includedir oldincludedir infodir mandir |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 672 | do |
| 673 | eval ac_val=$`echo $ac_var` |
| 674 | case $ac_val in |
| 675 | [\\/$]* | ?:[\\/]* ) ;; |
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 677 | { (exit 1); exit 1; }; };; |
| 678 | esac |
| 679 | done |
| 680 | |
| 681 | # There might be people who depend on the old broken behavior: `$host' |
| 682 | # used to hold the argument of --host etc. |
| 683 | # FIXME: To remove some day. |
| 684 | build=$build_alias |
| 685 | host=$host_alias |
| 686 | target=$target_alias |
| 687 | |
| 688 | # FIXME: To remove some day. |
| 689 | if test "x$host_alias" != x; then |
| 690 | if test "x$build_alias" = x; then |
| 691 | cross_compiling=maybe |
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 694 | elif test "x$build_alias" != "x$host_alias"; then |
| 695 | cross_compiling=yes |
| 696 | fi |
| 697 | fi |
| 698 | |
| 699 | ac_tool_prefix= |
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 701 | |
| 702 | test "$silent" = yes && exec 6>/dev/null |
| 703 | |
| 704 | |
| 705 | # Find the source files, if location was not specified. |
| 706 | if test -z "$srcdir"; then |
| 707 | ac_srcdir_defaulted=yes |
| 708 | # Try the directory containing this script, then its parent. |
| 709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 711 | X"$0" : 'X\(//\)[^/]' \| \ |
| 712 | X"$0" : 'X\(//\)$' \| \ |
| 713 | X"$0" : 'X\(/\)' \| \ |
| 714 | . : '\(.\)' 2>/dev/null || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 715 | echo X"$0" | |
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 719 | /^X\(\/\).*/{ s//\1/; q; } |
| 720 | s/.*/./; q'` |
| 721 | srcdir=$ac_confdir |
| 722 | if test ! -r $srcdir/$ac_unique_file; then |
| 723 | srcdir=.. |
| 724 | fi |
| 725 | else |
| 726 | ac_srcdir_defaulted=no |
| 727 | fi |
| 728 | if test ! -r $srcdir/$ac_unique_file; then |
| 729 | if test "$ac_srcdir_defaulted" = yes; then |
| 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 731 | { (exit 1); exit 1; }; } |
| 732 | else |
| 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 734 | { (exit 1); exit 1; }; } |
| 735 | fi |
| 736 | fi |
| 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 739 | { (exit 1); exit 1; }; } |
| 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 741 | ac_env_build_alias_set=${build_alias+set} |
| 742 | ac_env_build_alias_value=$build_alias |
| 743 | ac_cv_env_build_alias_set=${build_alias+set} |
| 744 | ac_cv_env_build_alias_value=$build_alias |
| 745 | ac_env_host_alias_set=${host_alias+set} |
| 746 | ac_env_host_alias_value=$host_alias |
| 747 | ac_cv_env_host_alias_set=${host_alias+set} |
| 748 | ac_cv_env_host_alias_value=$host_alias |
| 749 | ac_env_target_alias_set=${target_alias+set} |
| 750 | ac_env_target_alias_value=$target_alias |
| 751 | ac_cv_env_target_alias_set=${target_alias+set} |
| 752 | ac_cv_env_target_alias_value=$target_alias |
| 753 | ac_env_CC_set=${CC+set} |
| 754 | ac_env_CC_value=$CC |
| 755 | ac_cv_env_CC_set=${CC+set} |
| 756 | ac_cv_env_CC_value=$CC |
| 757 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 758 | ac_env_CFLAGS_value=$CFLAGS |
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 762 | ac_env_LDFLAGS_value=$LDFLAGS |
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_env_CPP_set=${CPP+set} |
| 770 | ac_env_CPP_value=$CPP |
| 771 | ac_cv_env_CPP_set=${CPP+set} |
| 772 | ac_cv_env_CPP_value=$CPP |
| 773 | |
| 774 | # |
| 775 | # Report the --help message. |
| 776 | # |
| 777 | if test "$ac_init_help" = "long"; then |
| 778 | # Omit some internal or obsolete options to make the list less imposing. |
| 779 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 780 | cat <<_ACEOF |
| 781 | \`configure' configures this package to adapt to many kinds of systems. |
| 782 | |
| 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 784 | |
| 785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 786 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 787 | |
| 788 | Defaults for the options are specified in brackets. |
| 789 | |
| 790 | Configuration: |
| 791 | -h, --help display this help and exit |
| 792 | --help=short display options specific to this package |
| 793 | --help=recursive display the short help of all the included packages |
| 794 | -V, --version display version information and exit |
| 795 | -q, --quiet, --silent do not print \`checking...' messages |
| 796 | --cache-file=FILE cache test results in FILE [disabled] |
| 797 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 798 | -n, --no-create do not create output files |
| 799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 800 | |
| 801 | _ACEOF |
| 802 | |
| 803 | cat <<_ACEOF |
| 804 | Installation directories: |
| 805 | --prefix=PREFIX install architecture-independent files in PREFIX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 806 | [$ac_default_prefix] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 808 | [PREFIX] |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 809 | |
| 810 | By default, \`make install' will install all the files in |
| 811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 813 | for instance \`--prefix=\$HOME'. |
| 814 | |
| 815 | For better control, use the options below. |
| 816 | |
| 817 | Fine tuning of the installation directories: |
| 818 | --bindir=DIR user executables [EPREFIX/bin] |
| 819 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 820 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 825 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 826 | --includedir=DIR C header files [PREFIX/include] |
| 827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 828 | --infodir=DIR info documentation [PREFIX/info] |
| 829 | --mandir=DIR man documentation [PREFIX/man] |
| 830 | _ACEOF |
| 831 | |
| 832 | cat <<\_ACEOF |
| 833 | |
| 834 | System types: |
| 835 | --build=BUILD configure for building on BUILD [guessed] |
| 836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 837 | _ACEOF |
| 838 | fi |
| 839 | |
| 840 | if test -n "$ac_init_help"; then |
| 841 | |
| 842 | cat <<\_ACEOF |
| 843 | |
| 844 | Optional Features: |
| 845 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 846 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 847 | --disable-debug do not compile in dynamic debugging system |
| 848 | --enable-generic-aesicm compile in changes for ISMAcryp |
| 849 | --enable-syslog use syslog for error reporting |
| 850 | --disable-stdout don't use stdout for error reporting |
| 851 | --enable-console use /dev/console for error reporting |
| 852 | --enable-gdoi enable GDOI key management |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 853 | |
| 854 | Some influential environment variables: |
| 855 | CC C compiler command |
| 856 | CFLAGS C compiler flags |
| 857 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 858 | nonstandard directory <lib dir> |
| 859 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 860 | headers in a nonstandard directory <include dir> |
| 861 | CPP C preprocessor |
| 862 | |
| 863 | Use these variables to override the choices made by `configure' or to help |
| 864 | it to find libraries and programs with nonstandard names/locations. |
| 865 | |
| 866 | _ACEOF |
| 867 | fi |
| 868 | |
| 869 | if test "$ac_init_help" = "recursive"; then |
| 870 | # If there are subdirs, report their specific --help. |
| 871 | ac_popdir=`pwd` |
| 872 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 873 | test -d $ac_dir || continue |
| 874 | ac_builddir=. |
| 875 | |
| 876 | if test "$ac_dir" != .; then |
| 877 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 878 | # A "../" for each directory in $ac_dir_suffix. |
| 879 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 880 | else |
| 881 | ac_dir_suffix= ac_top_builddir= |
| 882 | fi |
| 883 | |
| 884 | case $srcdir in |
| 885 | .) # No --srcdir option. We are building in place. |
| 886 | ac_srcdir=. |
| 887 | if test -z "$ac_top_builddir"; then |
| 888 | ac_top_srcdir=. |
| 889 | else |
| 890 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 891 | fi ;; |
| 892 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 893 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 894 | ac_top_srcdir=$srcdir ;; |
| 895 | *) # Relative path. |
| 896 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 897 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 898 | esac |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 899 | |
| 900 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 901 | # the directories may not exist. |
| 902 | case `pwd` in |
| 903 | .) ac_abs_builddir="$ac_dir";; |
| 904 | *) |
| 905 | case "$ac_dir" in |
| 906 | .) ac_abs_builddir=`pwd`;; |
| 907 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 908 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 909 | esac;; |
| 910 | esac |
| 911 | case $ac_abs_builddir in |
| 912 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 913 | *) |
| 914 | case ${ac_top_builddir}. in |
| 915 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 916 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 917 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 918 | esac;; |
| 919 | esac |
| 920 | case $ac_abs_builddir in |
| 921 | .) ac_abs_srcdir=$ac_srcdir;; |
| 922 | *) |
| 923 | case $ac_srcdir in |
| 924 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 925 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 926 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 927 | esac;; |
| 928 | esac |
| 929 | case $ac_abs_builddir in |
| 930 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 931 | *) |
| 932 | case $ac_top_srcdir in |
| 933 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 934 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 935 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 936 | esac;; |
| 937 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 938 | |
| 939 | cd $ac_dir |
| 940 | # Check for guested configure; otherwise get Cygnus style configure. |
| 941 | if test -f $ac_srcdir/configure.gnu; then |
| 942 | echo |
| 943 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 944 | elif test -f $ac_srcdir/configure; then |
| 945 | echo |
| 946 | $SHELL $ac_srcdir/configure --help=recursive |
| 947 | elif test -f $ac_srcdir/configure.ac || |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 948 | test -f $ac_srcdir/configure.in; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 949 | echo |
| 950 | $ac_configure --help |
| 951 | else |
| 952 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 953 | fi |
| 954 | cd $ac_popdir |
| 955 | done |
| 956 | fi |
| 957 | |
| 958 | test -n "$ac_init_help" && exit 0 |
| 959 | if $ac_init_version; then |
| 960 | cat <<\_ACEOF |
| 961 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 962 | Copyright (C) 2003 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 963 | This configure script is free software; the Free Software Foundation |
| 964 | gives unlimited permission to copy, distribute and modify it. |
| 965 | _ACEOF |
| 966 | exit 0 |
| 967 | fi |
| 968 | exec 5>config.log |
| 969 | cat >&5 <<_ACEOF |
| 970 | This file contains any messages produced by compilers while |
| 971 | running configure, to aid debugging if configure makes a mistake. |
| 972 | |
| 973 | It was created by $as_me, which was |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 974 | generated by GNU Autoconf 2.59. Invocation command line was |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 975 | |
| 976 | $ $0 $@ |
| 977 | |
| 978 | _ACEOF |
| 979 | { |
| 980 | cat <<_ASUNAME |
| 981 | ## --------- ## |
| 982 | ## Platform. ## |
| 983 | ## --------- ## |
| 984 | |
| 985 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 986 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 987 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 988 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 989 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 990 | |
| 991 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 992 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 993 | |
| 994 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 995 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 996 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 997 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 998 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 999 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1000 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1001 | |
| 1002 | _ASUNAME |
| 1003 | |
| 1004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1005 | for as_dir in $PATH |
| 1006 | do |
| 1007 | IFS=$as_save_IFS |
| 1008 | test -z "$as_dir" && as_dir=. |
| 1009 | echo "PATH: $as_dir" |
| 1010 | done |
| 1011 | |
| 1012 | } >&5 |
| 1013 | |
| 1014 | cat >&5 <<_ACEOF |
| 1015 | |
| 1016 | |
| 1017 | ## ----------- ## |
| 1018 | ## Core tests. ## |
| 1019 | ## ----------- ## |
| 1020 | |
| 1021 | _ACEOF |
| 1022 | |
| 1023 | |
| 1024 | # Keep a trace of the command line. |
| 1025 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1026 | # Strip out --silent because we don't want to record it for future runs. |
| 1027 | # Also quote any args containing shell meta-characters. |
| 1028 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1029 | ac_configure_args= |
| 1030 | ac_configure_args0= |
| 1031 | ac_configure_args1= |
| 1032 | ac_sep= |
| 1033 | ac_must_keep_next=false |
| 1034 | for ac_pass in 1 2 |
| 1035 | do |
| 1036 | for ac_arg |
| 1037 | do |
| 1038 | case $ac_arg in |
| 1039 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1040 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1041 | | -silent | --silent | --silen | --sile | --sil) |
| 1042 | continue ;; |
| 1043 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1044 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1045 | esac |
| 1046 | case $ac_pass in |
| 1047 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1048 | 2) |
| 1049 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1050 | if test $ac_must_keep_next = true; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1051 | ac_must_keep_next=false # Got value, back to normal. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1052 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1053 | case $ac_arg in |
| 1054 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1055 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1056 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1057 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1058 | case "$ac_configure_args0 " in |
| 1059 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1060 | esac |
| 1061 | ;; |
| 1062 | -* ) ac_must_keep_next=true ;; |
| 1063 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1064 | fi |
| 1065 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1066 | # Get rid of the leading space. |
| 1067 | ac_sep=" " |
| 1068 | ;; |
| 1069 | esac |
| 1070 | done |
| 1071 | done |
| 1072 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1073 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1074 | |
| 1075 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1076 | # config.log. We remove comments because anyway the quotes in there |
| 1077 | # would cause problems or look ugly. |
| 1078 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1079 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1080 | trap 'exit_status=$? |
| 1081 | # Save into config.log some information that might help in debugging. |
| 1082 | { |
| 1083 | echo |
| 1084 | |
| 1085 | cat <<\_ASBOX |
| 1086 | ## ---------------- ## |
| 1087 | ## Cache variables. ## |
| 1088 | ## ---------------- ## |
| 1089 | _ASBOX |
| 1090 | echo |
| 1091 | # The following way of writing the cache mishandles newlines in values, |
| 1092 | { |
| 1093 | (set) 2>&1 | |
| 1094 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1095 | *ac_space=\ *) |
| 1096 | sed -n \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1097 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1098 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1099 | ;; |
| 1100 | *) |
| 1101 | sed -n \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1102 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1103 | ;; |
| 1104 | esac; |
| 1105 | } |
| 1106 | echo |
| 1107 | |
| 1108 | cat <<\_ASBOX |
| 1109 | ## ----------------- ## |
| 1110 | ## Output variables. ## |
| 1111 | ## ----------------- ## |
| 1112 | _ASBOX |
| 1113 | echo |
| 1114 | for ac_var in $ac_subst_vars |
| 1115 | do |
| 1116 | eval ac_val=$`echo $ac_var` |
| 1117 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1118 | done | sort |
| 1119 | echo |
| 1120 | |
| 1121 | if test -n "$ac_subst_files"; then |
| 1122 | cat <<\_ASBOX |
| 1123 | ## ------------- ## |
| 1124 | ## Output files. ## |
| 1125 | ## ------------- ## |
| 1126 | _ASBOX |
| 1127 | echo |
| 1128 | for ac_var in $ac_subst_files |
| 1129 | do |
| 1130 | eval ac_val=$`echo $ac_var` |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1131 | echo "$ac_var='"'"'$ac_val'"'"'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1132 | done | sort |
| 1133 | echo |
| 1134 | fi |
| 1135 | |
| 1136 | if test -s confdefs.h; then |
| 1137 | cat <<\_ASBOX |
| 1138 | ## ----------- ## |
| 1139 | ## confdefs.h. ## |
| 1140 | ## ----------- ## |
| 1141 | _ASBOX |
| 1142 | echo |
| 1143 | sed "/^$/d" confdefs.h | sort |
| 1144 | echo |
| 1145 | fi |
| 1146 | test "$ac_signal" != 0 && |
| 1147 | echo "$as_me: caught signal $ac_signal" |
| 1148 | echo "$as_me: exit $exit_status" |
| 1149 | } >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1150 | rm -f core *.core && |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1151 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1152 | exit $exit_status |
| 1153 | ' 0 |
| 1154 | for ac_signal in 1 2 13 15; do |
| 1155 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1156 | done |
| 1157 | ac_signal=0 |
| 1158 | |
| 1159 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1160 | rm -rf conftest* confdefs.h |
| 1161 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1162 | echo >confdefs.h |
| 1163 | |
| 1164 | # Predefined preprocessor variables. |
| 1165 | |
| 1166 | cat >>confdefs.h <<_ACEOF |
| 1167 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1168 | _ACEOF |
| 1169 | |
| 1170 | |
| 1171 | cat >>confdefs.h <<_ACEOF |
| 1172 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1173 | _ACEOF |
| 1174 | |
| 1175 | |
| 1176 | cat >>confdefs.h <<_ACEOF |
| 1177 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1178 | _ACEOF |
| 1179 | |
| 1180 | |
| 1181 | cat >>confdefs.h <<_ACEOF |
| 1182 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1183 | _ACEOF |
| 1184 | |
| 1185 | |
| 1186 | cat >>confdefs.h <<_ACEOF |
| 1187 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1188 | _ACEOF |
| 1189 | |
| 1190 | |
| 1191 | # Let the site file select an alternate cache file if it wants to. |
| 1192 | # Prefer explicitly selected file to automatically selected ones. |
| 1193 | if test -z "$CONFIG_SITE"; then |
| 1194 | if test "x$prefix" != xNONE; then |
| 1195 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1196 | else |
| 1197 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1198 | fi |
| 1199 | fi |
| 1200 | for ac_site_file in $CONFIG_SITE; do |
| 1201 | if test -r "$ac_site_file"; then |
| 1202 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1203 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1204 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1205 | . "$ac_site_file" |
| 1206 | fi |
| 1207 | done |
| 1208 | |
| 1209 | if test -r "$cache_file"; then |
| 1210 | # Some versions of bash will fail to source /dev/null (special |
| 1211 | # files actually), so we avoid doing that. |
| 1212 | if test -f "$cache_file"; then |
| 1213 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1214 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1215 | case $cache_file in |
| 1216 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1217 | *) . ./$cache_file;; |
| 1218 | esac |
| 1219 | fi |
| 1220 | else |
| 1221 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1222 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1223 | >$cache_file |
| 1224 | fi |
| 1225 | |
| 1226 | # Check that the precious variables saved in the cache have kept the same |
| 1227 | # value. |
| 1228 | ac_cache_corrupted=false |
| 1229 | for ac_var in `(set) 2>&1 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1230 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1231 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1232 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1233 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1234 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1235 | case $ac_old_set,$ac_new_set in |
| 1236 | set,) |
| 1237 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1238 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1239 | ac_cache_corrupted=: ;; |
| 1240 | ,set) |
| 1241 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1242 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1243 | ac_cache_corrupted=: ;; |
| 1244 | ,);; |
| 1245 | *) |
| 1246 | if test "x$ac_old_val" != "x$ac_new_val"; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1247 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1248 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1249 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1250 | echo "$as_me: former value: $ac_old_val" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1251 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1252 | echo "$as_me: current value: $ac_new_val" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1253 | ac_cache_corrupted=: |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1254 | fi;; |
| 1255 | esac |
| 1256 | # Pass precious variables to config.status. |
| 1257 | if test "$ac_new_set" = set; then |
| 1258 | case $ac_new_val in |
| 1259 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1260 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1261 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1262 | esac |
| 1263 | case " $ac_configure_args " in |
| 1264 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1265 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1266 | esac |
| 1267 | fi |
| 1268 | done |
| 1269 | if $ac_cache_corrupted; then |
| 1270 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1271 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1272 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1273 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1274 | { (exit 1); exit 1; }; } |
| 1275 | fi |
| 1276 | |
| 1277 | ac_ext=c |
| 1278 | ac_cpp='$CPP $CPPFLAGS' |
| 1279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1282 | |
| 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
| 1289 | |
| 1290 | |
| 1291 | |
| 1292 | |
| 1293 | |
| 1294 | |
| 1295 | |
| 1296 | |
| 1297 | |
| 1298 | |
| 1299 | |
| 1300 | |
| 1301 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 1302 | if test -z "$CFLAGS"; then |
| 1303 | CFLAGS="-Wall -O4 -fexpensive-optimizations -funroll-loops" |
| 1304 | fi |
| 1305 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1306 | if test -n "$ac_tool_prefix"; then |
| 1307 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 1308 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 1309 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1310 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1311 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 1312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1313 | else |
| 1314 | if test -n "$RANLIB"; then |
| 1315 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1316 | else |
| 1317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1318 | for as_dir in $PATH |
| 1319 | do |
| 1320 | IFS=$as_save_IFS |
| 1321 | test -z "$as_dir" && as_dir=. |
| 1322 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1323 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1324 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 1325 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1326 | break 2 |
| 1327 | fi |
| 1328 | done |
| 1329 | done |
| 1330 | |
| 1331 | fi |
| 1332 | fi |
| 1333 | RANLIB=$ac_cv_prog_RANLIB |
| 1334 | if test -n "$RANLIB"; then |
| 1335 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 1336 | echo "${ECHO_T}$RANLIB" >&6 |
| 1337 | else |
| 1338 | echo "$as_me:$LINENO: result: no" >&5 |
| 1339 | echo "${ECHO_T}no" >&6 |
| 1340 | fi |
| 1341 | |
| 1342 | fi |
| 1343 | if test -z "$ac_cv_prog_RANLIB"; then |
| 1344 | ac_ct_RANLIB=$RANLIB |
| 1345 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1346 | set dummy ranlib; ac_word=$2 |
| 1347 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1349 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 1350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1351 | else |
| 1352 | if test -n "$ac_ct_RANLIB"; then |
| 1353 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 1354 | else |
| 1355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1356 | for as_dir in $PATH |
| 1357 | do |
| 1358 | IFS=$as_save_IFS |
| 1359 | test -z "$as_dir" && as_dir=. |
| 1360 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1361 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1362 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 1363 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1364 | break 2 |
| 1365 | fi |
| 1366 | done |
| 1367 | done |
| 1368 | |
| 1369 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 1370 | fi |
| 1371 | fi |
| 1372 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 1373 | if test -n "$ac_ct_RANLIB"; then |
| 1374 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 1375 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 1376 | else |
| 1377 | echo "$as_me:$LINENO: result: no" >&5 |
| 1378 | echo "${ECHO_T}no" >&6 |
| 1379 | fi |
| 1380 | |
| 1381 | RANLIB=$ac_ct_RANLIB |
| 1382 | else |
| 1383 | RANLIB="$ac_cv_prog_RANLIB" |
| 1384 | fi |
| 1385 | |
| 1386 | ac_ext=c |
| 1387 | ac_cpp='$CPP $CPPFLAGS' |
| 1388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1391 | if test -n "$ac_tool_prefix"; then |
| 1392 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1393 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1394 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1395 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1396 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1398 | else |
| 1399 | if test -n "$CC"; then |
| 1400 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1401 | else |
| 1402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1403 | for as_dir in $PATH |
| 1404 | do |
| 1405 | IFS=$as_save_IFS |
| 1406 | test -z "$as_dir" && as_dir=. |
| 1407 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1408 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1409 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1410 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1411 | break 2 |
| 1412 | fi |
| 1413 | done |
| 1414 | done |
| 1415 | |
| 1416 | fi |
| 1417 | fi |
| 1418 | CC=$ac_cv_prog_CC |
| 1419 | if test -n "$CC"; then |
| 1420 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1421 | echo "${ECHO_T}$CC" >&6 |
| 1422 | else |
| 1423 | echo "$as_me:$LINENO: result: no" >&5 |
| 1424 | echo "${ECHO_T}no" >&6 |
| 1425 | fi |
| 1426 | |
| 1427 | fi |
| 1428 | if test -z "$ac_cv_prog_CC"; then |
| 1429 | ac_ct_CC=$CC |
| 1430 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1431 | set dummy gcc; ac_word=$2 |
| 1432 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1434 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1436 | else |
| 1437 | if test -n "$ac_ct_CC"; then |
| 1438 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1439 | else |
| 1440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1441 | for as_dir in $PATH |
| 1442 | do |
| 1443 | IFS=$as_save_IFS |
| 1444 | test -z "$as_dir" && as_dir=. |
| 1445 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1446 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1447 | ac_cv_prog_ac_ct_CC="gcc" |
| 1448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1449 | break 2 |
| 1450 | fi |
| 1451 | done |
| 1452 | done |
| 1453 | |
| 1454 | fi |
| 1455 | fi |
| 1456 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1457 | if test -n "$ac_ct_CC"; then |
| 1458 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1459 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1460 | else |
| 1461 | echo "$as_me:$LINENO: result: no" >&5 |
| 1462 | echo "${ECHO_T}no" >&6 |
| 1463 | fi |
| 1464 | |
| 1465 | CC=$ac_ct_CC |
| 1466 | else |
| 1467 | CC="$ac_cv_prog_CC" |
| 1468 | fi |
| 1469 | |
| 1470 | if test -z "$CC"; then |
| 1471 | if test -n "$ac_tool_prefix"; then |
| 1472 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1473 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1474 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1475 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1476 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1478 | else |
| 1479 | if test -n "$CC"; then |
| 1480 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1481 | else |
| 1482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1483 | for as_dir in $PATH |
| 1484 | do |
| 1485 | IFS=$as_save_IFS |
| 1486 | test -z "$as_dir" && as_dir=. |
| 1487 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1488 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1489 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1490 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1491 | break 2 |
| 1492 | fi |
| 1493 | done |
| 1494 | done |
| 1495 | |
| 1496 | fi |
| 1497 | fi |
| 1498 | CC=$ac_cv_prog_CC |
| 1499 | if test -n "$CC"; then |
| 1500 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1501 | echo "${ECHO_T}$CC" >&6 |
| 1502 | else |
| 1503 | echo "$as_me:$LINENO: result: no" >&5 |
| 1504 | echo "${ECHO_T}no" >&6 |
| 1505 | fi |
| 1506 | |
| 1507 | fi |
| 1508 | if test -z "$ac_cv_prog_CC"; then |
| 1509 | ac_ct_CC=$CC |
| 1510 | # Extract the first word of "cc", so it can be a program name with args. |
| 1511 | set dummy cc; ac_word=$2 |
| 1512 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1514 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1516 | else |
| 1517 | if test -n "$ac_ct_CC"; then |
| 1518 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1519 | else |
| 1520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1521 | for as_dir in $PATH |
| 1522 | do |
| 1523 | IFS=$as_save_IFS |
| 1524 | test -z "$as_dir" && as_dir=. |
| 1525 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1526 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1527 | ac_cv_prog_ac_ct_CC="cc" |
| 1528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1529 | break 2 |
| 1530 | fi |
| 1531 | done |
| 1532 | done |
| 1533 | |
| 1534 | fi |
| 1535 | fi |
| 1536 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1537 | if test -n "$ac_ct_CC"; then |
| 1538 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1539 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1540 | else |
| 1541 | echo "$as_me:$LINENO: result: no" >&5 |
| 1542 | echo "${ECHO_T}no" >&6 |
| 1543 | fi |
| 1544 | |
| 1545 | CC=$ac_ct_CC |
| 1546 | else |
| 1547 | CC="$ac_cv_prog_CC" |
| 1548 | fi |
| 1549 | |
| 1550 | fi |
| 1551 | if test -z "$CC"; then |
| 1552 | # Extract the first word of "cc", so it can be a program name with args. |
| 1553 | set dummy cc; ac_word=$2 |
| 1554 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1556 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1558 | else |
| 1559 | if test -n "$CC"; then |
| 1560 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1561 | else |
| 1562 | ac_prog_rejected=no |
| 1563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1564 | for as_dir in $PATH |
| 1565 | do |
| 1566 | IFS=$as_save_IFS |
| 1567 | test -z "$as_dir" && as_dir=. |
| 1568 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1569 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1570 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1571 | ac_prog_rejected=yes |
| 1572 | continue |
| 1573 | fi |
| 1574 | ac_cv_prog_CC="cc" |
| 1575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1576 | break 2 |
| 1577 | fi |
| 1578 | done |
| 1579 | done |
| 1580 | |
| 1581 | if test $ac_prog_rejected = yes; then |
| 1582 | # We found a bogon in the path, so make sure we never use it. |
| 1583 | set dummy $ac_cv_prog_CC |
| 1584 | shift |
| 1585 | if test $# != 0; then |
| 1586 | # We chose a different compiler from the bogus one. |
| 1587 | # However, it has the same basename, so the bogon will be chosen |
| 1588 | # first if we set CC to just the basename; use the full file name. |
| 1589 | shift |
| 1590 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1591 | fi |
| 1592 | fi |
| 1593 | fi |
| 1594 | fi |
| 1595 | CC=$ac_cv_prog_CC |
| 1596 | if test -n "$CC"; then |
| 1597 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1598 | echo "${ECHO_T}$CC" >&6 |
| 1599 | else |
| 1600 | echo "$as_me:$LINENO: result: no" >&5 |
| 1601 | echo "${ECHO_T}no" >&6 |
| 1602 | fi |
| 1603 | |
| 1604 | fi |
| 1605 | if test -z "$CC"; then |
| 1606 | if test -n "$ac_tool_prefix"; then |
| 1607 | for ac_prog in cl |
| 1608 | do |
| 1609 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1610 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1611 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1613 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1615 | else |
| 1616 | if test -n "$CC"; then |
| 1617 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1618 | else |
| 1619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1620 | for as_dir in $PATH |
| 1621 | do |
| 1622 | IFS=$as_save_IFS |
| 1623 | test -z "$as_dir" && as_dir=. |
| 1624 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1625 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1626 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1628 | break 2 |
| 1629 | fi |
| 1630 | done |
| 1631 | done |
| 1632 | |
| 1633 | fi |
| 1634 | fi |
| 1635 | CC=$ac_cv_prog_CC |
| 1636 | if test -n "$CC"; then |
| 1637 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1638 | echo "${ECHO_T}$CC" >&6 |
| 1639 | else |
| 1640 | echo "$as_me:$LINENO: result: no" >&5 |
| 1641 | echo "${ECHO_T}no" >&6 |
| 1642 | fi |
| 1643 | |
| 1644 | test -n "$CC" && break |
| 1645 | done |
| 1646 | fi |
| 1647 | if test -z "$CC"; then |
| 1648 | ac_ct_CC=$CC |
| 1649 | for ac_prog in cl |
| 1650 | do |
| 1651 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1652 | set dummy $ac_prog; ac_word=$2 |
| 1653 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1655 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1657 | else |
| 1658 | if test -n "$ac_ct_CC"; then |
| 1659 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1660 | else |
| 1661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1662 | for as_dir in $PATH |
| 1663 | do |
| 1664 | IFS=$as_save_IFS |
| 1665 | test -z "$as_dir" && as_dir=. |
| 1666 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1667 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1668 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1669 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1670 | break 2 |
| 1671 | fi |
| 1672 | done |
| 1673 | done |
| 1674 | |
| 1675 | fi |
| 1676 | fi |
| 1677 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1678 | if test -n "$ac_ct_CC"; then |
| 1679 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1680 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1681 | else |
| 1682 | echo "$as_me:$LINENO: result: no" >&5 |
| 1683 | echo "${ECHO_T}no" >&6 |
| 1684 | fi |
| 1685 | |
| 1686 | test -n "$ac_ct_CC" && break |
| 1687 | done |
| 1688 | |
| 1689 | CC=$ac_ct_CC |
| 1690 | fi |
| 1691 | |
| 1692 | fi |
| 1693 | |
| 1694 | |
| 1695 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1696 | See \`config.log' for more details." >&5 |
| 1697 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1698 | See \`config.log' for more details." >&2;} |
| 1699 | { (exit 1); exit 1; }; } |
| 1700 | |
| 1701 | # Provide some information about the compiler. |
| 1702 | echo "$as_me:$LINENO:" \ |
| 1703 | "checking for C compiler version" >&5 |
| 1704 | ac_compiler=`set X $ac_compile; echo $2` |
| 1705 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1706 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1707 | ac_status=$? |
| 1708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1709 | (exit $ac_status); } |
| 1710 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1711 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1712 | ac_status=$? |
| 1713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1714 | (exit $ac_status); } |
| 1715 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1716 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1717 | ac_status=$? |
| 1718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1719 | (exit $ac_status); } |
| 1720 | |
| 1721 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1722 | /* confdefs.h. */ |
| 1723 | _ACEOF |
| 1724 | cat confdefs.h >>conftest.$ac_ext |
| 1725 | cat >>conftest.$ac_ext <<_ACEOF |
| 1726 | /* end confdefs.h. */ |
| 1727 | |
| 1728 | int |
| 1729 | main () |
| 1730 | { |
| 1731 | |
| 1732 | ; |
| 1733 | return 0; |
| 1734 | } |
| 1735 | _ACEOF |
| 1736 | ac_clean_files_save=$ac_clean_files |
| 1737 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1738 | # Try to create an executable without -o first, disregard a.out. |
| 1739 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1740 | # of exeext. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1741 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1742 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1743 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1744 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1745 | (eval $ac_link_default) 2>&5 |
| 1746 | ac_status=$? |
| 1747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1748 | (exit $ac_status); }; then |
| 1749 | # Find the output, starting from the most likely. This scheme is |
| 1750 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1751 | # resort. |
| 1752 | |
| 1753 | # Be careful to initialize this variable, since it used to be cached. |
| 1754 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1755 | ac_cv_exeext= |
| 1756 | # b.out is created by i960 compilers. |
| 1757 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1758 | do |
| 1759 | test -f "$ac_file" || continue |
| 1760 | case $ac_file in |
| 1761 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1762 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1763 | conftest.$ac_ext ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1764 | # This is the source file. |
| 1765 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1766 | [ab].out ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1767 | # We found the default executable, but exeext='' is most |
| 1768 | # certainly right. |
| 1769 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1770 | *.* ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1771 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1772 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1773 | # but it would be cool to find out if it's true. Does anybody |
| 1774 | # maintain Libtool? --akim. |
| 1775 | export ac_cv_exeext |
| 1776 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1777 | * ) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1778 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1779 | esac |
| 1780 | done |
| 1781 | else |
| 1782 | echo "$as_me: failed program was:" >&5 |
| 1783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1784 | |
| 1785 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1786 | See \`config.log' for more details." >&5 |
| 1787 | echo "$as_me: error: C compiler cannot create executables |
| 1788 | See \`config.log' for more details." >&2;} |
| 1789 | { (exit 77); exit 77; }; } |
| 1790 | fi |
| 1791 | |
| 1792 | ac_exeext=$ac_cv_exeext |
| 1793 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1794 | echo "${ECHO_T}$ac_file" >&6 |
| 1795 | |
| 1796 | # Check the compiler produces executables we can run. If not, either |
| 1797 | # the compiler is broken, or we cross compile. |
| 1798 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1799 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1800 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1801 | # If not cross compiling, check that we can run a simple program. |
| 1802 | if test "$cross_compiling" != yes; then |
| 1803 | if { ac_try='./$ac_file' |
| 1804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1805 | (eval $ac_try) 2>&5 |
| 1806 | ac_status=$? |
| 1807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1808 | (exit $ac_status); }; }; then |
| 1809 | cross_compiling=no |
| 1810 | else |
| 1811 | if test "$cross_compiling" = maybe; then |
| 1812 | cross_compiling=yes |
| 1813 | else |
| 1814 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1815 | If you meant to cross compile, use \`--host'. |
| 1816 | See \`config.log' for more details." >&5 |
| 1817 | echo "$as_me: error: cannot run C compiled programs. |
| 1818 | If you meant to cross compile, use \`--host'. |
| 1819 | See \`config.log' for more details." >&2;} |
| 1820 | { (exit 1); exit 1; }; } |
| 1821 | fi |
| 1822 | fi |
| 1823 | fi |
| 1824 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1825 | echo "${ECHO_T}yes" >&6 |
| 1826 | |
| 1827 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1828 | ac_clean_files=$ac_clean_files_save |
| 1829 | # Check the compiler produces executables we can run. If not, either |
| 1830 | # the compiler is broken, or we cross compile. |
| 1831 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1832 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1833 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1834 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1835 | |
| 1836 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1837 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1839 | (eval $ac_link) 2>&5 |
| 1840 | ac_status=$? |
| 1841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1842 | (exit $ac_status); }; then |
| 1843 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1844 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1845 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1846 | # `rm'. |
| 1847 | for ac_file in conftest.exe conftest conftest.*; do |
| 1848 | test -f "$ac_file" || continue |
| 1849 | case $ac_file in |
| 1850 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1851 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1852 | export ac_cv_exeext |
| 1853 | break;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1854 | * ) break;; |
| 1855 | esac |
| 1856 | done |
| 1857 | else |
| 1858 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1859 | See \`config.log' for more details." >&5 |
| 1860 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1861 | See \`config.log' for more details." >&2;} |
| 1862 | { (exit 1); exit 1; }; } |
| 1863 | fi |
| 1864 | |
| 1865 | rm -f conftest$ac_cv_exeext |
| 1866 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1867 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1868 | |
| 1869 | rm -f conftest.$ac_ext |
| 1870 | EXEEXT=$ac_cv_exeext |
| 1871 | ac_exeext=$EXEEXT |
| 1872 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1873 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1874 | if test "${ac_cv_objext+set}" = set; then |
| 1875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1876 | else |
| 1877 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1878 | /* confdefs.h. */ |
| 1879 | _ACEOF |
| 1880 | cat confdefs.h >>conftest.$ac_ext |
| 1881 | cat >>conftest.$ac_ext <<_ACEOF |
| 1882 | /* end confdefs.h. */ |
| 1883 | |
| 1884 | int |
| 1885 | main () |
| 1886 | { |
| 1887 | |
| 1888 | ; |
| 1889 | return 0; |
| 1890 | } |
| 1891 | _ACEOF |
| 1892 | rm -f conftest.o conftest.obj |
| 1893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1894 | (eval $ac_compile) 2>&5 |
| 1895 | ac_status=$? |
| 1896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1897 | (exit $ac_status); }; then |
| 1898 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1899 | case $ac_file in |
| 1900 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1901 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1902 | break;; |
| 1903 | esac |
| 1904 | done |
| 1905 | else |
| 1906 | echo "$as_me: failed program was:" >&5 |
| 1907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1908 | |
| 1909 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1910 | See \`config.log' for more details." >&5 |
| 1911 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1912 | See \`config.log' for more details." >&2;} |
| 1913 | { (exit 1); exit 1; }; } |
| 1914 | fi |
| 1915 | |
| 1916 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1917 | fi |
| 1918 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1919 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1920 | OBJEXT=$ac_cv_objext |
| 1921 | ac_objext=$OBJEXT |
| 1922 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1923 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1924 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1926 | else |
| 1927 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1928 | /* confdefs.h. */ |
| 1929 | _ACEOF |
| 1930 | cat confdefs.h >>conftest.$ac_ext |
| 1931 | cat >>conftest.$ac_ext <<_ACEOF |
| 1932 | /* end confdefs.h. */ |
| 1933 | |
| 1934 | int |
| 1935 | main () |
| 1936 | { |
| 1937 | #ifndef __GNUC__ |
| 1938 | choke me |
| 1939 | #endif |
| 1940 | |
| 1941 | ; |
| 1942 | return 0; |
| 1943 | } |
| 1944 | _ACEOF |
| 1945 | rm -f conftest.$ac_objext |
| 1946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1947 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1948 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1950 | rm -f conftest.er1 |
| 1951 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1953 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1954 | { ac_try='test -z "$ac_c_werror_flag" |
| 1955 | || test ! -s conftest.err' |
| 1956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1957 | (eval $ac_try) 2>&5 |
| 1958 | ac_status=$? |
| 1959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1960 | (exit $ac_status); }; } && |
| 1961 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1963 | (eval $ac_try) 2>&5 |
| 1964 | ac_status=$? |
| 1965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1966 | (exit $ac_status); }; }; then |
| 1967 | ac_compiler_gnu=yes |
| 1968 | else |
| 1969 | echo "$as_me: failed program was:" >&5 |
| 1970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1971 | |
| 1972 | ac_compiler_gnu=no |
| 1973 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 1974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1975 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 1976 | |
| 1977 | fi |
| 1978 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1979 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1980 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1981 | ac_test_CFLAGS=${CFLAGS+set} |
| 1982 | ac_save_CFLAGS=$CFLAGS |
| 1983 | CFLAGS="-g" |
| 1984 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1985 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1986 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1988 | else |
| 1989 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 1990 | /* confdefs.h. */ |
| 1991 | _ACEOF |
| 1992 | cat confdefs.h >>conftest.$ac_ext |
| 1993 | cat >>conftest.$ac_ext <<_ACEOF |
| 1994 | /* end confdefs.h. */ |
| 1995 | |
| 1996 | int |
| 1997 | main () |
| 1998 | { |
| 1999 | |
| 2000 | ; |
| 2001 | return 0; |
| 2002 | } |
| 2003 | _ACEOF |
| 2004 | rm -f conftest.$ac_objext |
| 2005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2006 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2007 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2009 | rm -f conftest.er1 |
| 2010 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2012 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2013 | { ac_try='test -z "$ac_c_werror_flag" |
| 2014 | || test ! -s conftest.err' |
| 2015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2016 | (eval $ac_try) 2>&5 |
| 2017 | ac_status=$? |
| 2018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2019 | (exit $ac_status); }; } && |
| 2020 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2022 | (eval $ac_try) 2>&5 |
| 2023 | ac_status=$? |
| 2024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2025 | (exit $ac_status); }; }; then |
| 2026 | ac_cv_prog_cc_g=yes |
| 2027 | else |
| 2028 | echo "$as_me: failed program was:" >&5 |
| 2029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2030 | |
| 2031 | ac_cv_prog_cc_g=no |
| 2032 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2034 | fi |
| 2035 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2036 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2037 | if test "$ac_test_CFLAGS" = set; then |
| 2038 | CFLAGS=$ac_save_CFLAGS |
| 2039 | elif test $ac_cv_prog_cc_g = yes; then |
| 2040 | if test "$GCC" = yes; then |
| 2041 | CFLAGS="-g -O2" |
| 2042 | else |
| 2043 | CFLAGS="-g" |
| 2044 | fi |
| 2045 | else |
| 2046 | if test "$GCC" = yes; then |
| 2047 | CFLAGS="-O2" |
| 2048 | else |
| 2049 | CFLAGS= |
| 2050 | fi |
| 2051 | fi |
| 2052 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2053 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2054 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2056 | else |
| 2057 | ac_cv_prog_cc_stdc=no |
| 2058 | ac_save_CC=$CC |
| 2059 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2060 | /* confdefs.h. */ |
| 2061 | _ACEOF |
| 2062 | cat confdefs.h >>conftest.$ac_ext |
| 2063 | cat >>conftest.$ac_ext <<_ACEOF |
| 2064 | /* end confdefs.h. */ |
| 2065 | #include <stdarg.h> |
| 2066 | #include <stdio.h> |
| 2067 | #include <sys/types.h> |
| 2068 | #include <sys/stat.h> |
| 2069 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2070 | struct buf { int x; }; |
| 2071 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2072 | static char *e (p, i) |
| 2073 | char **p; |
| 2074 | int i; |
| 2075 | { |
| 2076 | return p[i]; |
| 2077 | } |
| 2078 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2079 | { |
| 2080 | char *s; |
| 2081 | va_list v; |
| 2082 | va_start (v,p); |
| 2083 | s = g (p, va_arg (v,int)); |
| 2084 | va_end (v); |
| 2085 | return s; |
| 2086 | } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2087 | |
| 2088 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2089 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2090 | These don't provoke an error unfortunately, instead are silently treated |
| 2091 | as 'x'. The following induces an error, until -std1 is added to get |
| 2092 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2093 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2094 | that's true only with -std1. */ |
| 2095 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2096 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2097 | int test (int i, double x); |
| 2098 | struct s1 {int (*f) (int a);}; |
| 2099 | struct s2 {int (*f) (double a);}; |
| 2100 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2101 | int argc; |
| 2102 | char **argv; |
| 2103 | int |
| 2104 | main () |
| 2105 | { |
| 2106 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2107 | ; |
| 2108 | return 0; |
| 2109 | } |
| 2110 | _ACEOF |
| 2111 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2112 | # breaks some systems' header files. |
| 2113 | # AIX -qlanglvl=ansi |
| 2114 | # Ultrix and OSF/1 -std1 |
| 2115 | # HP-UX 10.20 and later -Ae |
| 2116 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2117 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2118 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2119 | do |
| 2120 | CC="$ac_save_CC $ac_arg" |
| 2121 | rm -f conftest.$ac_objext |
| 2122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2123 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2124 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2126 | rm -f conftest.er1 |
| 2127 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2129 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2130 | { ac_try='test -z "$ac_c_werror_flag" |
| 2131 | || test ! -s conftest.err' |
| 2132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2133 | (eval $ac_try) 2>&5 |
| 2134 | ac_status=$? |
| 2135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2136 | (exit $ac_status); }; } && |
| 2137 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2139 | (eval $ac_try) 2>&5 |
| 2140 | ac_status=$? |
| 2141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2142 | (exit $ac_status); }; }; then |
| 2143 | ac_cv_prog_cc_stdc=$ac_arg |
| 2144 | break |
| 2145 | else |
| 2146 | echo "$as_me: failed program was:" >&5 |
| 2147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2148 | |
| 2149 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2150 | rm -f conftest.err conftest.$ac_objext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2151 | done |
| 2152 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2153 | CC=$ac_save_CC |
| 2154 | |
| 2155 | fi |
| 2156 | |
| 2157 | case "x$ac_cv_prog_cc_stdc" in |
| 2158 | x|xno) |
| 2159 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2160 | echo "${ECHO_T}none needed" >&6 ;; |
| 2161 | *) |
| 2162 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2163 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2164 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2165 | esac |
| 2166 | |
| 2167 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2168 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2169 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2170 | # the declaration of exit, since it's the most demanding environment. |
| 2171 | cat >conftest.$ac_ext <<_ACEOF |
| 2172 | #ifndef __cplusplus |
| 2173 | choke me |
| 2174 | #endif |
| 2175 | _ACEOF |
| 2176 | rm -f conftest.$ac_objext |
| 2177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2178 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2179 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2181 | rm -f conftest.er1 |
| 2182 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2184 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2185 | { ac_try='test -z "$ac_c_werror_flag" |
| 2186 | || test ! -s conftest.err' |
| 2187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2188 | (eval $ac_try) 2>&5 |
| 2189 | ac_status=$? |
| 2190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2191 | (exit $ac_status); }; } && |
| 2192 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2194 | (eval $ac_try) 2>&5 |
| 2195 | ac_status=$? |
| 2196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2197 | (exit $ac_status); }; }; then |
| 2198 | for ac_declaration in \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2199 | '' \ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2200 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2201 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2202 | 'extern "C" void exit (int) throw ();' \ |
| 2203 | 'extern "C" void exit (int);' \ |
| 2204 | 'void exit (int);' |
| 2205 | do |
| 2206 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2207 | /* confdefs.h. */ |
| 2208 | _ACEOF |
| 2209 | cat confdefs.h >>conftest.$ac_ext |
| 2210 | cat >>conftest.$ac_ext <<_ACEOF |
| 2211 | /* end confdefs.h. */ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2212 | $ac_declaration |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2213 | #include <stdlib.h> |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2214 | int |
| 2215 | main () |
| 2216 | { |
| 2217 | exit (42); |
| 2218 | ; |
| 2219 | return 0; |
| 2220 | } |
| 2221 | _ACEOF |
| 2222 | rm -f conftest.$ac_objext |
| 2223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2224 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2225 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2227 | rm -f conftest.er1 |
| 2228 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2230 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2231 | { ac_try='test -z "$ac_c_werror_flag" |
| 2232 | || test ! -s conftest.err' |
| 2233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2234 | (eval $ac_try) 2>&5 |
| 2235 | ac_status=$? |
| 2236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2237 | (exit $ac_status); }; } && |
| 2238 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2240 | (eval $ac_try) 2>&5 |
| 2241 | ac_status=$? |
| 2242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2243 | (exit $ac_status); }; }; then |
| 2244 | : |
| 2245 | else |
| 2246 | echo "$as_me: failed program was:" >&5 |
| 2247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2248 | |
| 2249 | continue |
| 2250 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2252 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2253 | /* confdefs.h. */ |
| 2254 | _ACEOF |
| 2255 | cat confdefs.h >>conftest.$ac_ext |
| 2256 | cat >>conftest.$ac_ext <<_ACEOF |
| 2257 | /* end confdefs.h. */ |
| 2258 | $ac_declaration |
| 2259 | int |
| 2260 | main () |
| 2261 | { |
| 2262 | exit (42); |
| 2263 | ; |
| 2264 | return 0; |
| 2265 | } |
| 2266 | _ACEOF |
| 2267 | rm -f conftest.$ac_objext |
| 2268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2269 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2270 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2272 | rm -f conftest.er1 |
| 2273 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2275 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2276 | { ac_try='test -z "$ac_c_werror_flag" |
| 2277 | || test ! -s conftest.err' |
| 2278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2279 | (eval $ac_try) 2>&5 |
| 2280 | ac_status=$? |
| 2281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2282 | (exit $ac_status); }; } && |
| 2283 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2285 | (eval $ac_try) 2>&5 |
| 2286 | ac_status=$? |
| 2287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2288 | (exit $ac_status); }; }; then |
| 2289 | break |
| 2290 | else |
| 2291 | echo "$as_me: failed program was:" >&5 |
| 2292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2293 | |
| 2294 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2296 | done |
| 2297 | rm -f conftest* |
| 2298 | if test -n "$ac_declaration"; then |
| 2299 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2300 | echo $ac_declaration >>confdefs.h |
| 2301 | echo '#endif' >>confdefs.h |
| 2302 | fi |
| 2303 | |
| 2304 | else |
| 2305 | echo "$as_me: failed program was:" >&5 |
| 2306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2307 | |
| 2308 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2310 | ac_ext=c |
| 2311 | ac_cpp='$CPP $CPPFLAGS' |
| 2312 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2313 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2314 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2315 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 2316 | ac_aux_dir= |
| 2317 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 2318 | if test -f $ac_dir/install-sh; then |
| 2319 | ac_aux_dir=$ac_dir |
| 2320 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2321 | break |
| 2322 | elif test -f $ac_dir/install.sh; then |
| 2323 | ac_aux_dir=$ac_dir |
| 2324 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2325 | break |
| 2326 | elif test -f $ac_dir/shtool; then |
| 2327 | ac_aux_dir=$ac_dir |
| 2328 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2329 | break |
| 2330 | fi |
| 2331 | done |
| 2332 | if test -z "$ac_aux_dir"; then |
| 2333 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 2334 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 2335 | { (exit 1); exit 1; }; } |
| 2336 | fi |
| 2337 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 2338 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 2339 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2340 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 2341 | # Find a good install program. We prefer a C program (faster), |
| 2342 | # so one script is as good as another. But avoid the broken or |
| 2343 | # incompatible versions: |
| 2344 | # SysV /etc/install, /usr/sbin/install |
| 2345 | # SunOS /usr/etc/install |
| 2346 | # IRIX /sbin/install |
| 2347 | # AIX /bin/install |
| 2348 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2349 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2350 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2351 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2352 | # OS/2's system install, which has a completely different semantic |
| 2353 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2354 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2355 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 2356 | if test -z "$INSTALL"; then |
| 2357 | if test "${ac_cv_path_install+set}" = set; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2359 | else |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 2360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2361 | for as_dir in $PATH |
| 2362 | do |
| 2363 | IFS=$as_save_IFS |
| 2364 | test -z "$as_dir" && as_dir=. |
| 2365 | # Account for people who put trailing slashes in PATH elements. |
| 2366 | case $as_dir/ in |
| 2367 | ./ | .// | /cC/* | \ |
| 2368 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2369 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 2370 | /usr/ucb/* ) ;; |
| 2371 | *) |
| 2372 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2373 | # Don't use installbsd from OSF since it installs stuff as root |
| 2374 | # by default. |
| 2375 | for ac_prog in ginstall scoinst install; do |
| 2376 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2377 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2378 | if test $ac_prog = install && |
| 2379 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2380 | # AIX install. It has an incompatible calling convention. |
| 2381 | : |
| 2382 | elif test $ac_prog = install && |
| 2383 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2384 | # program-specific install script used by HP pwplus--don't use. |
| 2385 | : |
| 2386 | else |
| 2387 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2388 | break 3 |
| 2389 | fi |
| 2390 | fi |
| 2391 | done |
| 2392 | done |
| 2393 | ;; |
| 2394 | esac |
| 2395 | done |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2396 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2397 | |
| 2398 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 2399 | if test "${ac_cv_path_install+set}" = set; then |
| 2400 | INSTALL=$ac_cv_path_install |
| 2401 | else |
| 2402 | # As a last resort, use the slow shell script. We don't cache a |
| 2403 | # path for INSTALL within a source directory, because that will |
| 2404 | # break other packages using the cache if that directory is |
| 2405 | # removed, or if the path is relative. |
| 2406 | INSTALL=$ac_install_sh |
| 2407 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2408 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 2409 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2410 | echo "${ECHO_T}$INSTALL" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2411 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 2412 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2413 | # It thinks the first close brace ends the variable substitution. |
| 2414 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2415 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 2416 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2417 | |
| 2418 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2419 | |
| 2420 | |
| 2421 | |
| 2422 | echo "$as_me:$LINENO: checking for /dev/urandom" >&5 |
| 2423 | echo $ECHO_N "checking for /dev/urandom... $ECHO_C" >&6 |
| 2424 | if test "${ac_cv_file__dev_urandom+set}" = set; then |
| 2425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2426 | else |
| 2427 | test "$cross_compiling" = yes && |
| 2428 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 2429 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 2430 | { (exit 1); exit 1; }; } |
| 2431 | if test -r "/dev/urandom"; then |
| 2432 | ac_cv_file__dev_urandom=yes |
| 2433 | else |
| 2434 | ac_cv_file__dev_urandom=no |
| 2435 | fi |
| 2436 | fi |
| 2437 | echo "$as_me:$LINENO: result: $ac_cv_file__dev_urandom" >&5 |
| 2438 | echo "${ECHO_T}$ac_cv_file__dev_urandom" >&6 |
| 2439 | if test $ac_cv_file__dev_urandom = yes; then |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 2440 | DEV_URANDOM=/dev/urandom |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2441 | else |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 2442 | echo "$as_me:$LINENO: checking for /dev/random" >&5 |
| 2443 | echo $ECHO_N "checking for /dev/random... $ECHO_C" >&6 |
| 2444 | if test "${ac_cv_file__dev_random+set}" = set; then |
| 2445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2446 | else |
| 2447 | test "$cross_compiling" = yes && |
| 2448 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 2449 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 2450 | { (exit 1); exit 1; }; } |
| 2451 | if test -r "/dev/random"; then |
| 2452 | ac_cv_file__dev_random=yes |
| 2453 | else |
| 2454 | ac_cv_file__dev_random=no |
| 2455 | fi |
| 2456 | fi |
| 2457 | echo "$as_me:$LINENO: result: $ac_cv_file__dev_random" >&5 |
| 2458 | echo "${ECHO_T}$ac_cv_file__dev_random" >&6 |
| 2459 | if test $ac_cv_file__dev_random = yes; then |
| 2460 | DEV_URANDOM=/dev/random |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2461 | fi |
| 2462 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 2463 | fi |
| 2464 | |
| 2465 | |
| 2466 | echo "$as_me:$LINENO: checking which random device to use" >&5 |
| 2467 | echo $ECHO_N "checking which random device to use... $ECHO_C" >&6 |
| 2468 | if test -n "$DEV_URANDOM"; then |
| 2469 | |
| 2470 | cat >>confdefs.h <<_ACEOF |
| 2471 | #define DEV_URANDOM "$DEV_URANDOM" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2472 | _ACEOF |
| 2473 | |
| 2474 | RNG_OBJS=crypto/rng/rand_source.c |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2475 | fi |
| 2476 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 2477 | echo "$as_me:$LINENO: result: $DEV_URANDOM" >&5 |
| 2478 | echo "${ECHO_T}$DEV_URANDOM" >&6 |
| 2479 | |
| 2480 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2481 | |
| 2482 | ac_ext=c |
| 2483 | ac_cpp='$CPP $CPPFLAGS' |
| 2484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2487 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2488 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2489 | # On Suns, sometimes $CPP names a directory. |
| 2490 | if test -n "$CPP" && test -d "$CPP"; then |
| 2491 | CPP= |
| 2492 | fi |
| 2493 | if test -z "$CPP"; then |
| 2494 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2496 | else |
| 2497 | # Double quotes because CPP needs to be expanded |
| 2498 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2499 | do |
| 2500 | ac_preproc_ok=false |
| 2501 | for ac_c_preproc_warn_flag in '' yes |
| 2502 | do |
| 2503 | # Use a header file that comes with gcc, so configuring glibc |
| 2504 | # with a fresh cross-compiler works. |
| 2505 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2506 | # <limits.h> exists even on freestanding compilers. |
| 2507 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2508 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2509 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2510 | /* confdefs.h. */ |
| 2511 | _ACEOF |
| 2512 | cat confdefs.h >>conftest.$ac_ext |
| 2513 | cat >>conftest.$ac_ext <<_ACEOF |
| 2514 | /* end confdefs.h. */ |
| 2515 | #ifdef __STDC__ |
| 2516 | # include <limits.h> |
| 2517 | #else |
| 2518 | # include <assert.h> |
| 2519 | #endif |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2520 | Syntax error |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2521 | _ACEOF |
| 2522 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2523 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2524 | ac_status=$? |
| 2525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2526 | rm -f conftest.er1 |
| 2527 | cat conftest.err >&5 |
| 2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2529 | (exit $ac_status); } >/dev/null; then |
| 2530 | if test -s conftest.err; then |
| 2531 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2532 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2533 | else |
| 2534 | ac_cpp_err= |
| 2535 | fi |
| 2536 | else |
| 2537 | ac_cpp_err=yes |
| 2538 | fi |
| 2539 | if test -z "$ac_cpp_err"; then |
| 2540 | : |
| 2541 | else |
| 2542 | echo "$as_me: failed program was:" >&5 |
| 2543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2544 | |
| 2545 | # Broken: fails on valid input. |
| 2546 | continue |
| 2547 | fi |
| 2548 | rm -f conftest.err conftest.$ac_ext |
| 2549 | |
| 2550 | # OK, works on sane cases. Now check whether non-existent headers |
| 2551 | # can be detected and how. |
| 2552 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2553 | /* confdefs.h. */ |
| 2554 | _ACEOF |
| 2555 | cat confdefs.h >>conftest.$ac_ext |
| 2556 | cat >>conftest.$ac_ext <<_ACEOF |
| 2557 | /* end confdefs.h. */ |
| 2558 | #include <ac_nonexistent.h> |
| 2559 | _ACEOF |
| 2560 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2561 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2562 | ac_status=$? |
| 2563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2564 | rm -f conftest.er1 |
| 2565 | cat conftest.err >&5 |
| 2566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2567 | (exit $ac_status); } >/dev/null; then |
| 2568 | if test -s conftest.err; then |
| 2569 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2570 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2571 | else |
| 2572 | ac_cpp_err= |
| 2573 | fi |
| 2574 | else |
| 2575 | ac_cpp_err=yes |
| 2576 | fi |
| 2577 | if test -z "$ac_cpp_err"; then |
| 2578 | # Broken: success on invalid input. |
| 2579 | continue |
| 2580 | else |
| 2581 | echo "$as_me: failed program was:" >&5 |
| 2582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2583 | |
| 2584 | # Passes both tests. |
| 2585 | ac_preproc_ok=: |
| 2586 | break |
| 2587 | fi |
| 2588 | rm -f conftest.err conftest.$ac_ext |
| 2589 | |
| 2590 | done |
| 2591 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2592 | rm -f conftest.err conftest.$ac_ext |
| 2593 | if $ac_preproc_ok; then |
| 2594 | break |
| 2595 | fi |
| 2596 | |
| 2597 | done |
| 2598 | ac_cv_prog_CPP=$CPP |
| 2599 | |
| 2600 | fi |
| 2601 | CPP=$ac_cv_prog_CPP |
| 2602 | else |
| 2603 | ac_cv_prog_CPP=$CPP |
| 2604 | fi |
| 2605 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2606 | echo "${ECHO_T}$CPP" >&6 |
| 2607 | ac_preproc_ok=false |
| 2608 | for ac_c_preproc_warn_flag in '' yes |
| 2609 | do |
| 2610 | # Use a header file that comes with gcc, so configuring glibc |
| 2611 | # with a fresh cross-compiler works. |
| 2612 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2613 | # <limits.h> exists even on freestanding compilers. |
| 2614 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2615 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2616 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2617 | /* confdefs.h. */ |
| 2618 | _ACEOF |
| 2619 | cat confdefs.h >>conftest.$ac_ext |
| 2620 | cat >>conftest.$ac_ext <<_ACEOF |
| 2621 | /* end confdefs.h. */ |
| 2622 | #ifdef __STDC__ |
| 2623 | # include <limits.h> |
| 2624 | #else |
| 2625 | # include <assert.h> |
| 2626 | #endif |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2627 | Syntax error |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2628 | _ACEOF |
| 2629 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2630 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2631 | ac_status=$? |
| 2632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2633 | rm -f conftest.er1 |
| 2634 | cat conftest.err >&5 |
| 2635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2636 | (exit $ac_status); } >/dev/null; then |
| 2637 | if test -s conftest.err; then |
| 2638 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2639 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2640 | else |
| 2641 | ac_cpp_err= |
| 2642 | fi |
| 2643 | else |
| 2644 | ac_cpp_err=yes |
| 2645 | fi |
| 2646 | if test -z "$ac_cpp_err"; then |
| 2647 | : |
| 2648 | else |
| 2649 | echo "$as_me: failed program was:" >&5 |
| 2650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2651 | |
| 2652 | # Broken: fails on valid input. |
| 2653 | continue |
| 2654 | fi |
| 2655 | rm -f conftest.err conftest.$ac_ext |
| 2656 | |
| 2657 | # OK, works on sane cases. Now check whether non-existent headers |
| 2658 | # can be detected and how. |
| 2659 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2660 | /* confdefs.h. */ |
| 2661 | _ACEOF |
| 2662 | cat confdefs.h >>conftest.$ac_ext |
| 2663 | cat >>conftest.$ac_ext <<_ACEOF |
| 2664 | /* end confdefs.h. */ |
| 2665 | #include <ac_nonexistent.h> |
| 2666 | _ACEOF |
| 2667 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2668 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2669 | ac_status=$? |
| 2670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2671 | rm -f conftest.er1 |
| 2672 | cat conftest.err >&5 |
| 2673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2674 | (exit $ac_status); } >/dev/null; then |
| 2675 | if test -s conftest.err; then |
| 2676 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2677 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2678 | else |
| 2679 | ac_cpp_err= |
| 2680 | fi |
| 2681 | else |
| 2682 | ac_cpp_err=yes |
| 2683 | fi |
| 2684 | if test -z "$ac_cpp_err"; then |
| 2685 | # Broken: success on invalid input. |
| 2686 | continue |
| 2687 | else |
| 2688 | echo "$as_me: failed program was:" >&5 |
| 2689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2690 | |
| 2691 | # Passes both tests. |
| 2692 | ac_preproc_ok=: |
| 2693 | break |
| 2694 | fi |
| 2695 | rm -f conftest.err conftest.$ac_ext |
| 2696 | |
| 2697 | done |
| 2698 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2699 | rm -f conftest.err conftest.$ac_ext |
| 2700 | if $ac_preproc_ok; then |
| 2701 | : |
| 2702 | else |
| 2703 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2704 | See \`config.log' for more details." >&5 |
| 2705 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2706 | See \`config.log' for more details." >&2;} |
| 2707 | { (exit 1); exit 1; }; } |
| 2708 | fi |
| 2709 | |
| 2710 | ac_ext=c |
| 2711 | ac_cpp='$CPP $CPPFLAGS' |
| 2712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2715 | |
| 2716 | |
| 2717 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2718 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2719 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2721 | else |
| 2722 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2723 | then ac_cv_prog_egrep='grep -E' |
| 2724 | else ac_cv_prog_egrep='egrep' |
| 2725 | fi |
| 2726 | fi |
| 2727 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2728 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2729 | EGREP=$ac_cv_prog_egrep |
| 2730 | |
| 2731 | |
| 2732 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2733 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2734 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2736 | else |
| 2737 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2738 | /* confdefs.h. */ |
| 2739 | _ACEOF |
| 2740 | cat confdefs.h >>conftest.$ac_ext |
| 2741 | cat >>conftest.$ac_ext <<_ACEOF |
| 2742 | /* end confdefs.h. */ |
| 2743 | #include <stdlib.h> |
| 2744 | #include <stdarg.h> |
| 2745 | #include <string.h> |
| 2746 | #include <float.h> |
| 2747 | |
| 2748 | int |
| 2749 | main () |
| 2750 | { |
| 2751 | |
| 2752 | ; |
| 2753 | return 0; |
| 2754 | } |
| 2755 | _ACEOF |
| 2756 | rm -f conftest.$ac_objext |
| 2757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2758 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2759 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2761 | rm -f conftest.er1 |
| 2762 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2764 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2765 | { ac_try='test -z "$ac_c_werror_flag" |
| 2766 | || test ! -s conftest.err' |
| 2767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2768 | (eval $ac_try) 2>&5 |
| 2769 | ac_status=$? |
| 2770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2771 | (exit $ac_status); }; } && |
| 2772 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2774 | (eval $ac_try) 2>&5 |
| 2775 | ac_status=$? |
| 2776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2777 | (exit $ac_status); }; }; then |
| 2778 | ac_cv_header_stdc=yes |
| 2779 | else |
| 2780 | echo "$as_me: failed program was:" >&5 |
| 2781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2782 | |
| 2783 | ac_cv_header_stdc=no |
| 2784 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2785 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2786 | |
| 2787 | if test $ac_cv_header_stdc = yes; then |
| 2788 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2789 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2790 | /* confdefs.h. */ |
| 2791 | _ACEOF |
| 2792 | cat confdefs.h >>conftest.$ac_ext |
| 2793 | cat >>conftest.$ac_ext <<_ACEOF |
| 2794 | /* end confdefs.h. */ |
| 2795 | #include <string.h> |
| 2796 | |
| 2797 | _ACEOF |
| 2798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2799 | $EGREP "memchr" >/dev/null 2>&1; then |
| 2800 | : |
| 2801 | else |
| 2802 | ac_cv_header_stdc=no |
| 2803 | fi |
| 2804 | rm -f conftest* |
| 2805 | |
| 2806 | fi |
| 2807 | |
| 2808 | if test $ac_cv_header_stdc = yes; then |
| 2809 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2810 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2811 | /* confdefs.h. */ |
| 2812 | _ACEOF |
| 2813 | cat confdefs.h >>conftest.$ac_ext |
| 2814 | cat >>conftest.$ac_ext <<_ACEOF |
| 2815 | /* end confdefs.h. */ |
| 2816 | #include <stdlib.h> |
| 2817 | |
| 2818 | _ACEOF |
| 2819 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2820 | $EGREP "free" >/dev/null 2>&1; then |
| 2821 | : |
| 2822 | else |
| 2823 | ac_cv_header_stdc=no |
| 2824 | fi |
| 2825 | rm -f conftest* |
| 2826 | |
| 2827 | fi |
| 2828 | |
| 2829 | if test $ac_cv_header_stdc = yes; then |
| 2830 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2831 | if test "$cross_compiling" = yes; then |
| 2832 | : |
| 2833 | else |
| 2834 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2835 | /* confdefs.h. */ |
| 2836 | _ACEOF |
| 2837 | cat confdefs.h >>conftest.$ac_ext |
| 2838 | cat >>conftest.$ac_ext <<_ACEOF |
| 2839 | /* end confdefs.h. */ |
| 2840 | #include <ctype.h> |
| 2841 | #if ((' ' & 0x0FF) == 0x020) |
| 2842 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2843 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2844 | #else |
| 2845 | # define ISLOWER(c) \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2846 | (('a' <= (c) && (c) <= 'i') \ |
| 2847 | || ('j' <= (c) && (c) <= 'r') \ |
| 2848 | || ('s' <= (c) && (c) <= 'z')) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2849 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2850 | #endif |
| 2851 | |
| 2852 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2853 | int |
| 2854 | main () |
| 2855 | { |
| 2856 | int i; |
| 2857 | for (i = 0; i < 256; i++) |
| 2858 | if (XOR (islower (i), ISLOWER (i)) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2859 | || toupper (i) != TOUPPER (i)) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2860 | exit(2); |
| 2861 | exit (0); |
| 2862 | } |
| 2863 | _ACEOF |
| 2864 | rm -f conftest$ac_exeext |
| 2865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2866 | (eval $ac_link) 2>&5 |
| 2867 | ac_status=$? |
| 2868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2869 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2871 | (eval $ac_try) 2>&5 |
| 2872 | ac_status=$? |
| 2873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2874 | (exit $ac_status); }; }; then |
| 2875 | : |
| 2876 | else |
| 2877 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2878 | echo "$as_me: failed program was:" >&5 |
| 2879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2880 | |
| 2881 | ( exit $ac_status ) |
| 2882 | ac_cv_header_stdc=no |
| 2883 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2884 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2885 | fi |
| 2886 | fi |
| 2887 | fi |
| 2888 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2889 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2890 | if test $ac_cv_header_stdc = yes; then |
| 2891 | |
| 2892 | cat >>confdefs.h <<\_ACEOF |
| 2893 | #define STDC_HEADERS 1 |
| 2894 | _ACEOF |
| 2895 | |
| 2896 | fi |
| 2897 | |
| 2898 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2899 | |
| 2900 | |
| 2901 | |
| 2902 | |
| 2903 | |
| 2904 | |
| 2905 | |
| 2906 | |
| 2907 | |
| 2908 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2909 | inttypes.h stdint.h unistd.h |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2910 | do |
| 2911 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2912 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2913 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2914 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2916 | else |
| 2917 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2918 | /* confdefs.h. */ |
| 2919 | _ACEOF |
| 2920 | cat confdefs.h >>conftest.$ac_ext |
| 2921 | cat >>conftest.$ac_ext <<_ACEOF |
| 2922 | /* end confdefs.h. */ |
| 2923 | $ac_includes_default |
| 2924 | |
| 2925 | #include <$ac_header> |
| 2926 | _ACEOF |
| 2927 | rm -f conftest.$ac_objext |
| 2928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2929 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2930 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2932 | rm -f conftest.er1 |
| 2933 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2935 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2936 | { ac_try='test -z "$ac_c_werror_flag" |
| 2937 | || test ! -s conftest.err' |
| 2938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2939 | (eval $ac_try) 2>&5 |
| 2940 | ac_status=$? |
| 2941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2942 | (exit $ac_status); }; } && |
| 2943 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2945 | (eval $ac_try) 2>&5 |
| 2946 | ac_status=$? |
| 2947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2948 | (exit $ac_status); }; }; then |
| 2949 | eval "$as_ac_Header=yes" |
| 2950 | else |
| 2951 | echo "$as_me: failed program was:" >&5 |
| 2952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2953 | |
| 2954 | eval "$as_ac_Header=no" |
| 2955 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2957 | fi |
| 2958 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2959 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2960 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2961 | cat >>confdefs.h <<_ACEOF |
| 2962 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2963 | _ACEOF |
| 2964 | |
| 2965 | fi |
| 2966 | |
| 2967 | done |
| 2968 | |
| 2969 | |
| 2970 | |
| 2971 | for ac_header in stdlib.h |
| 2972 | do |
| 2973 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2975 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2977 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2979 | fi |
| 2980 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2981 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2982 | else |
| 2983 | # Is the header compilable? |
| 2984 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 2985 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 2986 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2987 | /* confdefs.h. */ |
| 2988 | _ACEOF |
| 2989 | cat confdefs.h >>conftest.$ac_ext |
| 2990 | cat >>conftest.$ac_ext <<_ACEOF |
| 2991 | /* end confdefs.h. */ |
| 2992 | $ac_includes_default |
| 2993 | #include <$ac_header> |
| 2994 | _ACEOF |
| 2995 | rm -f conftest.$ac_objext |
| 2996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2997 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 2998 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 2999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3000 | rm -f conftest.er1 |
| 3001 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3003 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3004 | { ac_try='test -z "$ac_c_werror_flag" |
| 3005 | || test ! -s conftest.err' |
| 3006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3007 | (eval $ac_try) 2>&5 |
| 3008 | ac_status=$? |
| 3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3010 | (exit $ac_status); }; } && |
| 3011 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 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); }; }; then |
| 3017 | ac_header_compiler=yes |
| 3018 | else |
| 3019 | echo "$as_me: failed program was:" >&5 |
| 3020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3021 | |
| 3022 | ac_header_compiler=no |
| 3023 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3025 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3026 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3027 | |
| 3028 | # Is the header present? |
| 3029 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3030 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3031 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3032 | /* confdefs.h. */ |
| 3033 | _ACEOF |
| 3034 | cat confdefs.h >>conftest.$ac_ext |
| 3035 | cat >>conftest.$ac_ext <<_ACEOF |
| 3036 | /* end confdefs.h. */ |
| 3037 | #include <$ac_header> |
| 3038 | _ACEOF |
| 3039 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3040 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3041 | ac_status=$? |
| 3042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3043 | rm -f conftest.er1 |
| 3044 | cat conftest.err >&5 |
| 3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3046 | (exit $ac_status); } >/dev/null; then |
| 3047 | if test -s conftest.err; then |
| 3048 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3049 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3050 | else |
| 3051 | ac_cpp_err= |
| 3052 | fi |
| 3053 | else |
| 3054 | ac_cpp_err=yes |
| 3055 | fi |
| 3056 | if test -z "$ac_cpp_err"; then |
| 3057 | ac_header_preproc=yes |
| 3058 | else |
| 3059 | echo "$as_me: failed program was:" >&5 |
| 3060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3061 | |
| 3062 | ac_header_preproc=no |
| 3063 | fi |
| 3064 | rm -f conftest.err conftest.$ac_ext |
| 3065 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3066 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3067 | |
| 3068 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3070 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3071 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3072 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3073 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3074 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3075 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3076 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3077 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3078 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3079 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3080 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3081 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3082 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3083 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3084 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3085 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3086 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3087 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3088 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3089 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3090 | ( |
| 3091 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3092 | ## ------------------------------------------ ## |
| 3093 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3094 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3095 | _ASBOX |
| 3096 | ) | |
| 3097 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3098 | ;; |
| 3099 | esac |
| 3100 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3102 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3104 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3105 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3106 | fi |
| 3107 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3108 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3109 | |
| 3110 | fi |
| 3111 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3112 | cat >>confdefs.h <<_ACEOF |
| 3113 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3114 | _ACEOF |
| 3115 | |
| 3116 | fi |
| 3117 | |
| 3118 | done |
| 3119 | |
| 3120 | |
| 3121 | for ac_header in unistd.h |
| 3122 | do |
| 3123 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3125 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3126 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3127 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3129 | fi |
| 3130 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3131 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3132 | else |
| 3133 | # Is the header compilable? |
| 3134 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3135 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3136 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3137 | /* confdefs.h. */ |
| 3138 | _ACEOF |
| 3139 | cat confdefs.h >>conftest.$ac_ext |
| 3140 | cat >>conftest.$ac_ext <<_ACEOF |
| 3141 | /* end confdefs.h. */ |
| 3142 | $ac_includes_default |
| 3143 | #include <$ac_header> |
| 3144 | _ACEOF |
| 3145 | rm -f conftest.$ac_objext |
| 3146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3147 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3148 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3150 | rm -f conftest.er1 |
| 3151 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3153 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3154 | { ac_try='test -z "$ac_c_werror_flag" |
| 3155 | || test ! -s conftest.err' |
| 3156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3157 | (eval $ac_try) 2>&5 |
| 3158 | ac_status=$? |
| 3159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3160 | (exit $ac_status); }; } && |
| 3161 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3163 | (eval $ac_try) 2>&5 |
| 3164 | ac_status=$? |
| 3165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3166 | (exit $ac_status); }; }; then |
| 3167 | ac_header_compiler=yes |
| 3168 | else |
| 3169 | echo "$as_me: failed program was:" >&5 |
| 3170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3171 | |
| 3172 | ac_header_compiler=no |
| 3173 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3175 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3176 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3177 | |
| 3178 | # Is the header present? |
| 3179 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3180 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3181 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3182 | /* confdefs.h. */ |
| 3183 | _ACEOF |
| 3184 | cat confdefs.h >>conftest.$ac_ext |
| 3185 | cat >>conftest.$ac_ext <<_ACEOF |
| 3186 | /* end confdefs.h. */ |
| 3187 | #include <$ac_header> |
| 3188 | _ACEOF |
| 3189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3191 | ac_status=$? |
| 3192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3193 | rm -f conftest.er1 |
| 3194 | cat conftest.err >&5 |
| 3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3196 | (exit $ac_status); } >/dev/null; then |
| 3197 | if test -s conftest.err; then |
| 3198 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3200 | else |
| 3201 | ac_cpp_err= |
| 3202 | fi |
| 3203 | else |
| 3204 | ac_cpp_err=yes |
| 3205 | fi |
| 3206 | if test -z "$ac_cpp_err"; then |
| 3207 | ac_header_preproc=yes |
| 3208 | else |
| 3209 | echo "$as_me: failed program was:" >&5 |
| 3210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3211 | |
| 3212 | ac_header_preproc=no |
| 3213 | fi |
| 3214 | rm -f conftest.err conftest.$ac_ext |
| 3215 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3216 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3217 | |
| 3218 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3219 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3220 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3221 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3222 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3224 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3225 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3226 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3227 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3228 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3229 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3230 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3231 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3232 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3233 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3234 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3235 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3236 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3237 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3238 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3239 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3240 | ( |
| 3241 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3242 | ## ------------------------------------------ ## |
| 3243 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3244 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3245 | _ASBOX |
| 3246 | ) | |
| 3247 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3248 | ;; |
| 3249 | esac |
| 3250 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3252 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3254 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3255 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3256 | fi |
| 3257 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3258 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3259 | |
| 3260 | fi |
| 3261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3262 | cat >>confdefs.h <<_ACEOF |
| 3263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3264 | _ACEOF |
| 3265 | |
| 3266 | fi |
| 3267 | |
| 3268 | done |
| 3269 | |
| 3270 | |
| 3271 | for ac_header in stdint.h |
| 3272 | do |
| 3273 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3274 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3275 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3276 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3277 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3279 | fi |
| 3280 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3281 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3282 | else |
| 3283 | # Is the header compilable? |
| 3284 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3285 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3286 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3287 | /* confdefs.h. */ |
| 3288 | _ACEOF |
| 3289 | cat confdefs.h >>conftest.$ac_ext |
| 3290 | cat >>conftest.$ac_ext <<_ACEOF |
| 3291 | /* end confdefs.h. */ |
| 3292 | $ac_includes_default |
| 3293 | #include <$ac_header> |
| 3294 | _ACEOF |
| 3295 | rm -f conftest.$ac_objext |
| 3296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3297 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3298 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3300 | rm -f conftest.er1 |
| 3301 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3303 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3304 | { ac_try='test -z "$ac_c_werror_flag" |
| 3305 | || test ! -s conftest.err' |
| 3306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3307 | (eval $ac_try) 2>&5 |
| 3308 | ac_status=$? |
| 3309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3310 | (exit $ac_status); }; } && |
| 3311 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3313 | (eval $ac_try) 2>&5 |
| 3314 | ac_status=$? |
| 3315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3316 | (exit $ac_status); }; }; then |
| 3317 | ac_header_compiler=yes |
| 3318 | else |
| 3319 | echo "$as_me: failed program was:" >&5 |
| 3320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3321 | |
| 3322 | ac_header_compiler=no |
| 3323 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3325 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3326 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3327 | |
| 3328 | # Is the header present? |
| 3329 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3330 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3331 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3332 | /* confdefs.h. */ |
| 3333 | _ACEOF |
| 3334 | cat confdefs.h >>conftest.$ac_ext |
| 3335 | cat >>conftest.$ac_ext <<_ACEOF |
| 3336 | /* end confdefs.h. */ |
| 3337 | #include <$ac_header> |
| 3338 | _ACEOF |
| 3339 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3340 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3341 | ac_status=$? |
| 3342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3343 | rm -f conftest.er1 |
| 3344 | cat conftest.err >&5 |
| 3345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3346 | (exit $ac_status); } >/dev/null; then |
| 3347 | if test -s conftest.err; then |
| 3348 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3349 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3350 | else |
| 3351 | ac_cpp_err= |
| 3352 | fi |
| 3353 | else |
| 3354 | ac_cpp_err=yes |
| 3355 | fi |
| 3356 | if test -z "$ac_cpp_err"; then |
| 3357 | ac_header_preproc=yes |
| 3358 | else |
| 3359 | echo "$as_me: failed program was:" >&5 |
| 3360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3361 | |
| 3362 | ac_header_preproc=no |
| 3363 | fi |
| 3364 | rm -f conftest.err conftest.$ac_ext |
| 3365 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3366 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3367 | |
| 3368 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3369 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3370 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3371 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3372 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3373 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3374 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3375 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3376 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3377 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3378 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3379 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3380 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3381 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3382 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3383 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3384 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3385 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3386 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3387 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3388 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3389 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3390 | ( |
| 3391 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3392 | ## ------------------------------------------ ## |
| 3393 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3394 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3395 | _ASBOX |
| 3396 | ) | |
| 3397 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3398 | ;; |
| 3399 | esac |
| 3400 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3402 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3404 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3405 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3406 | fi |
| 3407 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3408 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3409 | |
| 3410 | fi |
| 3411 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3412 | cat >>confdefs.h <<_ACEOF |
| 3413 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3414 | _ACEOF |
| 3415 | |
| 3416 | fi |
| 3417 | |
| 3418 | done |
| 3419 | |
| 3420 | |
| 3421 | for ac_header in sys/uio.h |
| 3422 | do |
| 3423 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3424 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3425 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3426 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3427 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3429 | fi |
| 3430 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3431 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3432 | else |
| 3433 | # Is the header compilable? |
| 3434 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3435 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3436 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3437 | /* confdefs.h. */ |
| 3438 | _ACEOF |
| 3439 | cat confdefs.h >>conftest.$ac_ext |
| 3440 | cat >>conftest.$ac_ext <<_ACEOF |
| 3441 | /* end confdefs.h. */ |
| 3442 | $ac_includes_default |
| 3443 | #include <$ac_header> |
| 3444 | _ACEOF |
| 3445 | rm -f conftest.$ac_objext |
| 3446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3447 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3448 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3450 | rm -f conftest.er1 |
| 3451 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3453 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3454 | { ac_try='test -z "$ac_c_werror_flag" |
| 3455 | || test ! -s conftest.err' |
| 3456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3457 | (eval $ac_try) 2>&5 |
| 3458 | ac_status=$? |
| 3459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3460 | (exit $ac_status); }; } && |
| 3461 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3463 | (eval $ac_try) 2>&5 |
| 3464 | ac_status=$? |
| 3465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3466 | (exit $ac_status); }; }; then |
| 3467 | ac_header_compiler=yes |
| 3468 | else |
| 3469 | echo "$as_me: failed program was:" >&5 |
| 3470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3471 | |
| 3472 | ac_header_compiler=no |
| 3473 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3475 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3476 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3477 | |
| 3478 | # Is the header present? |
| 3479 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3480 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3481 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3482 | /* confdefs.h. */ |
| 3483 | _ACEOF |
| 3484 | cat confdefs.h >>conftest.$ac_ext |
| 3485 | cat >>conftest.$ac_ext <<_ACEOF |
| 3486 | /* end confdefs.h. */ |
| 3487 | #include <$ac_header> |
| 3488 | _ACEOF |
| 3489 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3490 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3491 | ac_status=$? |
| 3492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3493 | rm -f conftest.er1 |
| 3494 | cat conftest.err >&5 |
| 3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3496 | (exit $ac_status); } >/dev/null; then |
| 3497 | if test -s conftest.err; then |
| 3498 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3499 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3500 | else |
| 3501 | ac_cpp_err= |
| 3502 | fi |
| 3503 | else |
| 3504 | ac_cpp_err=yes |
| 3505 | fi |
| 3506 | if test -z "$ac_cpp_err"; then |
| 3507 | ac_header_preproc=yes |
| 3508 | else |
| 3509 | echo "$as_me: failed program was:" >&5 |
| 3510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3511 | |
| 3512 | ac_header_preproc=no |
| 3513 | fi |
| 3514 | rm -f conftest.err conftest.$ac_ext |
| 3515 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3516 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3517 | |
| 3518 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3519 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3520 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3521 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3522 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3523 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3524 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3525 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3526 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3527 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3528 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3529 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3530 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3531 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3532 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3533 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3534 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3535 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3536 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3537 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3538 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3539 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3540 | ( |
| 3541 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3542 | ## ------------------------------------------ ## |
| 3543 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3544 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3545 | _ASBOX |
| 3546 | ) | |
| 3547 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3548 | ;; |
| 3549 | esac |
| 3550 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3551 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3552 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3554 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3555 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3556 | fi |
| 3557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3558 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3559 | |
| 3560 | fi |
| 3561 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3562 | cat >>confdefs.h <<_ACEOF |
| 3563 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3564 | _ACEOF |
| 3565 | |
| 3566 | fi |
| 3567 | |
| 3568 | done |
| 3569 | |
| 3570 | |
| 3571 | for ac_header in machine/types.h |
| 3572 | do |
| 3573 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3574 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3575 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3576 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3577 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3579 | fi |
| 3580 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3581 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3582 | else |
| 3583 | # Is the header compilable? |
| 3584 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3585 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3586 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3587 | /* confdefs.h. */ |
| 3588 | _ACEOF |
| 3589 | cat confdefs.h >>conftest.$ac_ext |
| 3590 | cat >>conftest.$ac_ext <<_ACEOF |
| 3591 | /* end confdefs.h. */ |
| 3592 | $ac_includes_default |
| 3593 | #include <$ac_header> |
| 3594 | _ACEOF |
| 3595 | rm -f conftest.$ac_objext |
| 3596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3597 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3598 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3600 | rm -f conftest.er1 |
| 3601 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3603 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3604 | { ac_try='test -z "$ac_c_werror_flag" |
| 3605 | || test ! -s conftest.err' |
| 3606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3607 | (eval $ac_try) 2>&5 |
| 3608 | ac_status=$? |
| 3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3610 | (exit $ac_status); }; } && |
| 3611 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3613 | (eval $ac_try) 2>&5 |
| 3614 | ac_status=$? |
| 3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3616 | (exit $ac_status); }; }; then |
| 3617 | ac_header_compiler=yes |
| 3618 | else |
| 3619 | echo "$as_me: failed program was:" >&5 |
| 3620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3621 | |
| 3622 | ac_header_compiler=no |
| 3623 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3625 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3626 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3627 | |
| 3628 | # Is the header present? |
| 3629 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3630 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3631 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3632 | /* confdefs.h. */ |
| 3633 | _ACEOF |
| 3634 | cat confdefs.h >>conftest.$ac_ext |
| 3635 | cat >>conftest.$ac_ext <<_ACEOF |
| 3636 | /* end confdefs.h. */ |
| 3637 | #include <$ac_header> |
| 3638 | _ACEOF |
| 3639 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3640 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3641 | ac_status=$? |
| 3642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3643 | rm -f conftest.er1 |
| 3644 | cat conftest.err >&5 |
| 3645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3646 | (exit $ac_status); } >/dev/null; then |
| 3647 | if test -s conftest.err; then |
| 3648 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3649 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3650 | else |
| 3651 | ac_cpp_err= |
| 3652 | fi |
| 3653 | else |
| 3654 | ac_cpp_err=yes |
| 3655 | fi |
| 3656 | if test -z "$ac_cpp_err"; then |
| 3657 | ac_header_preproc=yes |
| 3658 | else |
| 3659 | echo "$as_me: failed program was:" >&5 |
| 3660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3661 | |
| 3662 | ac_header_preproc=no |
| 3663 | fi |
| 3664 | rm -f conftest.err conftest.$ac_ext |
| 3665 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3666 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3667 | |
| 3668 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3669 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3670 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3671 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3672 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3673 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3674 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3675 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3676 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3677 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3678 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3679 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3680 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3681 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3682 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3683 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3684 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3685 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3686 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3687 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3688 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3689 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3690 | ( |
| 3691 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3692 | ## ------------------------------------------ ## |
| 3693 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3694 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3695 | _ASBOX |
| 3696 | ) | |
| 3697 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3698 | ;; |
| 3699 | esac |
| 3700 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3701 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3702 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3704 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3705 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3706 | fi |
| 3707 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3708 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3709 | |
| 3710 | fi |
| 3711 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3712 | cat >>confdefs.h <<_ACEOF |
| 3713 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3714 | _ACEOF |
| 3715 | |
| 3716 | fi |
| 3717 | |
| 3718 | done |
| 3719 | |
| 3720 | |
| 3721 | for ac_header in sys/int_types.h |
| 3722 | do |
| 3723 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3724 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3725 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3729 | fi |
| 3730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3731 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3732 | else |
| 3733 | # Is the header compilable? |
| 3734 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3735 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3736 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3737 | /* confdefs.h. */ |
| 3738 | _ACEOF |
| 3739 | cat confdefs.h >>conftest.$ac_ext |
| 3740 | cat >>conftest.$ac_ext <<_ACEOF |
| 3741 | /* end confdefs.h. */ |
| 3742 | $ac_includes_default |
| 3743 | #include <$ac_header> |
| 3744 | _ACEOF |
| 3745 | rm -f conftest.$ac_objext |
| 3746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3747 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3748 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3750 | rm -f conftest.er1 |
| 3751 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3753 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3754 | { ac_try='test -z "$ac_c_werror_flag" |
| 3755 | || test ! -s conftest.err' |
| 3756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3757 | (eval $ac_try) 2>&5 |
| 3758 | ac_status=$? |
| 3759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3760 | (exit $ac_status); }; } && |
| 3761 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3763 | (eval $ac_try) 2>&5 |
| 3764 | ac_status=$? |
| 3765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3766 | (exit $ac_status); }; }; then |
| 3767 | ac_header_compiler=yes |
| 3768 | else |
| 3769 | echo "$as_me: failed program was:" >&5 |
| 3770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3771 | |
| 3772 | ac_header_compiler=no |
| 3773 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3774 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3775 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3776 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3777 | |
| 3778 | # Is the header present? |
| 3779 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3780 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3781 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3782 | /* confdefs.h. */ |
| 3783 | _ACEOF |
| 3784 | cat confdefs.h >>conftest.$ac_ext |
| 3785 | cat >>conftest.$ac_ext <<_ACEOF |
| 3786 | /* end confdefs.h. */ |
| 3787 | #include <$ac_header> |
| 3788 | _ACEOF |
| 3789 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3790 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3791 | ac_status=$? |
| 3792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3793 | rm -f conftest.er1 |
| 3794 | cat conftest.err >&5 |
| 3795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3796 | (exit $ac_status); } >/dev/null; then |
| 3797 | if test -s conftest.err; then |
| 3798 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3799 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3800 | else |
| 3801 | ac_cpp_err= |
| 3802 | fi |
| 3803 | else |
| 3804 | ac_cpp_err=yes |
| 3805 | fi |
| 3806 | if test -z "$ac_cpp_err"; then |
| 3807 | ac_header_preproc=yes |
| 3808 | else |
| 3809 | echo "$as_me: failed program was:" >&5 |
| 3810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3811 | |
| 3812 | ac_header_preproc=no |
| 3813 | fi |
| 3814 | rm -f conftest.err conftest.$ac_ext |
| 3815 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3816 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3817 | |
| 3818 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3819 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3820 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3821 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3822 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3823 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3824 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3825 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3826 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3827 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3828 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3829 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3830 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3831 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3832 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3833 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3834 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3835 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3836 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3837 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3838 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3839 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3840 | ( |
| 3841 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3842 | ## ------------------------------------------ ## |
| 3843 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3844 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3845 | _ASBOX |
| 3846 | ) | |
| 3847 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3848 | ;; |
| 3849 | esac |
| 3850 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3851 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3852 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3854 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3855 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3856 | fi |
| 3857 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3858 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3859 | |
| 3860 | fi |
| 3861 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3862 | cat >>confdefs.h <<_ACEOF |
| 3863 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3864 | _ACEOF |
| 3865 | |
| 3866 | fi |
| 3867 | |
| 3868 | done |
| 3869 | |
| 3870 | |
| 3871 | |
| 3872 | for ac_header in syslog.h |
| 3873 | do |
| 3874 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3876 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3877 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3878 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3880 | fi |
| 3881 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3882 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3883 | else |
| 3884 | # Is the header compilable? |
| 3885 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3886 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3887 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3888 | /* confdefs.h. */ |
| 3889 | _ACEOF |
| 3890 | cat confdefs.h >>conftest.$ac_ext |
| 3891 | cat >>conftest.$ac_ext <<_ACEOF |
| 3892 | /* end confdefs.h. */ |
| 3893 | $ac_includes_default |
| 3894 | #include <$ac_header> |
| 3895 | _ACEOF |
| 3896 | rm -f conftest.$ac_objext |
| 3897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3898 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3899 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3901 | rm -f conftest.er1 |
| 3902 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3904 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3905 | { ac_try='test -z "$ac_c_werror_flag" |
| 3906 | || test ! -s conftest.err' |
| 3907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3908 | (eval $ac_try) 2>&5 |
| 3909 | ac_status=$? |
| 3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3911 | (exit $ac_status); }; } && |
| 3912 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3914 | (eval $ac_try) 2>&5 |
| 3915 | ac_status=$? |
| 3916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3917 | (exit $ac_status); }; }; then |
| 3918 | ac_header_compiler=yes |
| 3919 | else |
| 3920 | echo "$as_me: failed program was:" >&5 |
| 3921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3922 | |
| 3923 | ac_header_compiler=no |
| 3924 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3926 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3927 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3928 | |
| 3929 | # Is the header present? |
| 3930 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3931 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3932 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3933 | /* confdefs.h. */ |
| 3934 | _ACEOF |
| 3935 | cat confdefs.h >>conftest.$ac_ext |
| 3936 | cat >>conftest.$ac_ext <<_ACEOF |
| 3937 | /* end confdefs.h. */ |
| 3938 | #include <$ac_header> |
| 3939 | _ACEOF |
| 3940 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3941 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3942 | ac_status=$? |
| 3943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3944 | rm -f conftest.er1 |
| 3945 | cat conftest.err >&5 |
| 3946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3947 | (exit $ac_status); } >/dev/null; then |
| 3948 | if test -s conftest.err; then |
| 3949 | ac_cpp_err=$ac_c_preproc_warn_flag |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3950 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3951 | else |
| 3952 | ac_cpp_err= |
| 3953 | fi |
| 3954 | else |
| 3955 | ac_cpp_err=yes |
| 3956 | fi |
| 3957 | if test -z "$ac_cpp_err"; then |
| 3958 | ac_header_preproc=yes |
| 3959 | else |
| 3960 | echo "$as_me: failed program was:" >&5 |
| 3961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3962 | |
| 3963 | ac_header_preproc=no |
| 3964 | fi |
| 3965 | rm -f conftest.err conftest.$ac_ext |
| 3966 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3967 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3968 | |
| 3969 | # So? What about this header? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3970 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3971 | yes:no: ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3972 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3973 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3974 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3975 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3976 | ac_header_preproc=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3977 | ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3978 | no:yes:* ) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3979 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3980 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3981 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3982 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3983 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3984 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3985 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3986 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3987 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3988 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3989 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3990 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3991 | ( |
| 3992 | cat <<\_ASBOX |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 3993 | ## ------------------------------------------ ## |
| 3994 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3995 | ## ------------------------------------------ ## |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 3996 | _ASBOX |
| 3997 | ) | |
| 3998 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3999 | ;; |
| 4000 | esac |
| 4001 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4002 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4003 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4005 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4006 | eval "$as_ac_Header=\$ac_header_preproc" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4007 | fi |
| 4008 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4009 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4010 | |
| 4011 | fi |
| 4012 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4013 | cat >>confdefs.h <<_ACEOF |
| 4014 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4015 | _ACEOF |
| 4016 | |
| 4017 | fi |
| 4018 | |
| 4019 | done |
| 4020 | |
| 4021 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4022 | echo "$as_me:$LINENO: checking for int8" >&5 |
| 4023 | echo $ECHO_N "checking for int8... $ECHO_C" >&6 |
| 4024 | if test "${ac_cv_type_int8+set}" = set; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4026 | else |
| 4027 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4028 | /* confdefs.h. */ |
| 4029 | _ACEOF |
| 4030 | cat confdefs.h >>conftest.$ac_ext |
| 4031 | cat >>conftest.$ac_ext <<_ACEOF |
| 4032 | /* end confdefs.h. */ |
| 4033 | $ac_includes_default |
| 4034 | int |
| 4035 | main () |
| 4036 | { |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4037 | if ((int8 *) 0) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4038 | return 0; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4039 | if (sizeof (int8)) |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4040 | return 0; |
| 4041 | ; |
| 4042 | return 0; |
| 4043 | } |
| 4044 | _ACEOF |
| 4045 | rm -f conftest.$ac_objext |
| 4046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4047 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4048 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4050 | rm -f conftest.er1 |
| 4051 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4053 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4054 | { ac_try='test -z "$ac_c_werror_flag" |
| 4055 | || test ! -s conftest.err' |
| 4056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4057 | (eval $ac_try) 2>&5 |
| 4058 | ac_status=$? |
| 4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4060 | (exit $ac_status); }; } && |
| 4061 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4063 | (eval $ac_try) 2>&5 |
| 4064 | ac_status=$? |
| 4065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4066 | (exit $ac_status); }; }; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4067 | ac_cv_type_int8=yes |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4068 | else |
| 4069 | echo "$as_me: failed program was:" >&5 |
| 4070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4071 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4072 | ac_cv_type_int8=no |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4073 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4075 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4076 | echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5 |
| 4077 | echo "${ECHO_T}$ac_cv_type_int8" >&6 |
| 4078 | if test $ac_cv_type_int8 = yes; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4079 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4080 | cat >>confdefs.h <<_ACEOF |
| 4081 | #define HAVE_INT8 1 |
| 4082 | _ACEOF |
| 4083 | |
| 4084 | |
| 4085 | fi |
| 4086 | echo "$as_me:$LINENO: checking for uint8" >&5 |
| 4087 | echo $ECHO_N "checking for uint8... $ECHO_C" >&6 |
| 4088 | if test "${ac_cv_type_uint8+set}" = set; then |
| 4089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4090 | else |
| 4091 | cat >conftest.$ac_ext <<_ACEOF |
| 4092 | /* confdefs.h. */ |
| 4093 | _ACEOF |
| 4094 | cat confdefs.h >>conftest.$ac_ext |
| 4095 | cat >>conftest.$ac_ext <<_ACEOF |
| 4096 | /* end confdefs.h. */ |
| 4097 | $ac_includes_default |
| 4098 | int |
| 4099 | main () |
| 4100 | { |
| 4101 | if ((uint8 *) 0) |
| 4102 | return 0; |
| 4103 | if (sizeof (uint8)) |
| 4104 | return 0; |
| 4105 | ; |
| 4106 | return 0; |
| 4107 | } |
| 4108 | _ACEOF |
| 4109 | rm -f conftest.$ac_objext |
| 4110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4111 | (eval $ac_compile) 2>conftest.er1 |
| 4112 | ac_status=$? |
| 4113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4114 | rm -f conftest.er1 |
| 4115 | cat conftest.err >&5 |
| 4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4117 | (exit $ac_status); } && |
| 4118 | { ac_try='test -z "$ac_c_werror_flag" |
| 4119 | || test ! -s conftest.err' |
| 4120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4121 | (eval $ac_try) 2>&5 |
| 4122 | ac_status=$? |
| 4123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4124 | (exit $ac_status); }; } && |
| 4125 | { ac_try='test -s conftest.$ac_objext' |
| 4126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4127 | (eval $ac_try) 2>&5 |
| 4128 | ac_status=$? |
| 4129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4130 | (exit $ac_status); }; }; then |
| 4131 | ac_cv_type_uint8=yes |
| 4132 | else |
| 4133 | echo "$as_me: failed program was:" >&5 |
| 4134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4135 | |
| 4136 | ac_cv_type_uint8=no |
| 4137 | fi |
| 4138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4139 | fi |
| 4140 | echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5 |
| 4141 | echo "${ECHO_T}$ac_cv_type_uint8" >&6 |
| 4142 | if test $ac_cv_type_uint8 = yes; then |
| 4143 | |
| 4144 | cat >>confdefs.h <<_ACEOF |
| 4145 | #define HAVE_UINT8 1 |
| 4146 | _ACEOF |
| 4147 | |
| 4148 | |
| 4149 | fi |
| 4150 | echo "$as_me:$LINENO: checking for int16" >&5 |
| 4151 | echo $ECHO_N "checking for int16... $ECHO_C" >&6 |
| 4152 | if test "${ac_cv_type_int16+set}" = set; then |
| 4153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4154 | else |
| 4155 | cat >conftest.$ac_ext <<_ACEOF |
| 4156 | /* confdefs.h. */ |
| 4157 | _ACEOF |
| 4158 | cat confdefs.h >>conftest.$ac_ext |
| 4159 | cat >>conftest.$ac_ext <<_ACEOF |
| 4160 | /* end confdefs.h. */ |
| 4161 | $ac_includes_default |
| 4162 | int |
| 4163 | main () |
| 4164 | { |
| 4165 | if ((int16 *) 0) |
| 4166 | return 0; |
| 4167 | if (sizeof (int16)) |
| 4168 | return 0; |
| 4169 | ; |
| 4170 | return 0; |
| 4171 | } |
| 4172 | _ACEOF |
| 4173 | rm -f conftest.$ac_objext |
| 4174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4175 | (eval $ac_compile) 2>conftest.er1 |
| 4176 | ac_status=$? |
| 4177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4178 | rm -f conftest.er1 |
| 4179 | cat conftest.err >&5 |
| 4180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4181 | (exit $ac_status); } && |
| 4182 | { ac_try='test -z "$ac_c_werror_flag" |
| 4183 | || test ! -s conftest.err' |
| 4184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4185 | (eval $ac_try) 2>&5 |
| 4186 | ac_status=$? |
| 4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4188 | (exit $ac_status); }; } && |
| 4189 | { ac_try='test -s conftest.$ac_objext' |
| 4190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4191 | (eval $ac_try) 2>&5 |
| 4192 | ac_status=$? |
| 4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4194 | (exit $ac_status); }; }; then |
| 4195 | ac_cv_type_int16=yes |
| 4196 | else |
| 4197 | echo "$as_me: failed program was:" >&5 |
| 4198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4199 | |
| 4200 | ac_cv_type_int16=no |
| 4201 | fi |
| 4202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4203 | fi |
| 4204 | echo "$as_me:$LINENO: result: $ac_cv_type_int16" >&5 |
| 4205 | echo "${ECHO_T}$ac_cv_type_int16" >&6 |
| 4206 | if test $ac_cv_type_int16 = yes; then |
| 4207 | |
| 4208 | cat >>confdefs.h <<_ACEOF |
| 4209 | #define HAVE_INT16 1 |
| 4210 | _ACEOF |
| 4211 | |
| 4212 | |
| 4213 | fi |
| 4214 | echo "$as_me:$LINENO: checking for uint16" >&5 |
| 4215 | echo $ECHO_N "checking for uint16... $ECHO_C" >&6 |
| 4216 | if test "${ac_cv_type_uint16+set}" = set; then |
| 4217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4218 | else |
| 4219 | cat >conftest.$ac_ext <<_ACEOF |
| 4220 | /* confdefs.h. */ |
| 4221 | _ACEOF |
| 4222 | cat confdefs.h >>conftest.$ac_ext |
| 4223 | cat >>conftest.$ac_ext <<_ACEOF |
| 4224 | /* end confdefs.h. */ |
| 4225 | $ac_includes_default |
| 4226 | int |
| 4227 | main () |
| 4228 | { |
| 4229 | if ((uint16 *) 0) |
| 4230 | return 0; |
| 4231 | if (sizeof (uint16)) |
| 4232 | return 0; |
| 4233 | ; |
| 4234 | return 0; |
| 4235 | } |
| 4236 | _ACEOF |
| 4237 | rm -f conftest.$ac_objext |
| 4238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4239 | (eval $ac_compile) 2>conftest.er1 |
| 4240 | ac_status=$? |
| 4241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4242 | rm -f conftest.er1 |
| 4243 | cat conftest.err >&5 |
| 4244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4245 | (exit $ac_status); } && |
| 4246 | { ac_try='test -z "$ac_c_werror_flag" |
| 4247 | || test ! -s conftest.err' |
| 4248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4249 | (eval $ac_try) 2>&5 |
| 4250 | ac_status=$? |
| 4251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4252 | (exit $ac_status); }; } && |
| 4253 | { ac_try='test -s conftest.$ac_objext' |
| 4254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4255 | (eval $ac_try) 2>&5 |
| 4256 | ac_status=$? |
| 4257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4258 | (exit $ac_status); }; }; then |
| 4259 | ac_cv_type_uint16=yes |
| 4260 | else |
| 4261 | echo "$as_me: failed program was:" >&5 |
| 4262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4263 | |
| 4264 | ac_cv_type_uint16=no |
| 4265 | fi |
| 4266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4267 | fi |
| 4268 | echo "$as_me:$LINENO: result: $ac_cv_type_uint16" >&5 |
| 4269 | echo "${ECHO_T}$ac_cv_type_uint16" >&6 |
| 4270 | if test $ac_cv_type_uint16 = yes; then |
| 4271 | |
| 4272 | cat >>confdefs.h <<_ACEOF |
| 4273 | #define HAVE_UINT16 1 |
| 4274 | _ACEOF |
| 4275 | |
| 4276 | |
| 4277 | fi |
| 4278 | echo "$as_me:$LINENO: checking for int32" >&5 |
| 4279 | echo $ECHO_N "checking for int32... $ECHO_C" >&6 |
| 4280 | if test "${ac_cv_type_int32+set}" = set; then |
| 4281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4282 | else |
| 4283 | cat >conftest.$ac_ext <<_ACEOF |
| 4284 | /* confdefs.h. */ |
| 4285 | _ACEOF |
| 4286 | cat confdefs.h >>conftest.$ac_ext |
| 4287 | cat >>conftest.$ac_ext <<_ACEOF |
| 4288 | /* end confdefs.h. */ |
| 4289 | $ac_includes_default |
| 4290 | int |
| 4291 | main () |
| 4292 | { |
| 4293 | if ((int32 *) 0) |
| 4294 | return 0; |
| 4295 | if (sizeof (int32)) |
| 4296 | return 0; |
| 4297 | ; |
| 4298 | return 0; |
| 4299 | } |
| 4300 | _ACEOF |
| 4301 | rm -f conftest.$ac_objext |
| 4302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4303 | (eval $ac_compile) 2>conftest.er1 |
| 4304 | ac_status=$? |
| 4305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4306 | rm -f conftest.er1 |
| 4307 | cat conftest.err >&5 |
| 4308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4309 | (exit $ac_status); } && |
| 4310 | { ac_try='test -z "$ac_c_werror_flag" |
| 4311 | || test ! -s conftest.err' |
| 4312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4313 | (eval $ac_try) 2>&5 |
| 4314 | ac_status=$? |
| 4315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4316 | (exit $ac_status); }; } && |
| 4317 | { ac_try='test -s conftest.$ac_objext' |
| 4318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4319 | (eval $ac_try) 2>&5 |
| 4320 | ac_status=$? |
| 4321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4322 | (exit $ac_status); }; }; then |
| 4323 | ac_cv_type_int32=yes |
| 4324 | else |
| 4325 | echo "$as_me: failed program was:" >&5 |
| 4326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4327 | |
| 4328 | ac_cv_type_int32=no |
| 4329 | fi |
| 4330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4331 | fi |
| 4332 | echo "$as_me:$LINENO: result: $ac_cv_type_int32" >&5 |
| 4333 | echo "${ECHO_T}$ac_cv_type_int32" >&6 |
| 4334 | if test $ac_cv_type_int32 = yes; then |
| 4335 | |
| 4336 | cat >>confdefs.h <<_ACEOF |
| 4337 | #define HAVE_INT32 1 |
| 4338 | _ACEOF |
| 4339 | |
| 4340 | |
| 4341 | fi |
| 4342 | echo "$as_me:$LINENO: checking for uint32" >&5 |
| 4343 | echo $ECHO_N "checking for uint32... $ECHO_C" >&6 |
| 4344 | if test "${ac_cv_type_uint32+set}" = set; then |
| 4345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4346 | else |
| 4347 | cat >conftest.$ac_ext <<_ACEOF |
| 4348 | /* confdefs.h. */ |
| 4349 | _ACEOF |
| 4350 | cat confdefs.h >>conftest.$ac_ext |
| 4351 | cat >>conftest.$ac_ext <<_ACEOF |
| 4352 | /* end confdefs.h. */ |
| 4353 | $ac_includes_default |
| 4354 | int |
| 4355 | main () |
| 4356 | { |
| 4357 | if ((uint32 *) 0) |
| 4358 | return 0; |
| 4359 | if (sizeof (uint32)) |
| 4360 | return 0; |
| 4361 | ; |
| 4362 | return 0; |
| 4363 | } |
| 4364 | _ACEOF |
| 4365 | rm -f conftest.$ac_objext |
| 4366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4367 | (eval $ac_compile) 2>conftest.er1 |
| 4368 | ac_status=$? |
| 4369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4370 | rm -f conftest.er1 |
| 4371 | cat conftest.err >&5 |
| 4372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4373 | (exit $ac_status); } && |
| 4374 | { ac_try='test -z "$ac_c_werror_flag" |
| 4375 | || test ! -s conftest.err' |
| 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); }; } && |
| 4381 | { ac_try='test -s conftest.$ac_objext' |
| 4382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4383 | (eval $ac_try) 2>&5 |
| 4384 | ac_status=$? |
| 4385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4386 | (exit $ac_status); }; }; then |
| 4387 | ac_cv_type_uint32=yes |
| 4388 | else |
| 4389 | echo "$as_me: failed program was:" >&5 |
| 4390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4391 | |
| 4392 | ac_cv_type_uint32=no |
| 4393 | fi |
| 4394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4395 | fi |
| 4396 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32" >&5 |
| 4397 | echo "${ECHO_T}$ac_cv_type_uint32" >&6 |
| 4398 | if test $ac_cv_type_uint32 = yes; then |
| 4399 | |
| 4400 | cat >>confdefs.h <<_ACEOF |
| 4401 | #define HAVE_UINT32 1 |
| 4402 | _ACEOF |
| 4403 | |
| 4404 | |
| 4405 | fi |
| 4406 | echo "$as_me:$LINENO: checking for unit64" >&5 |
| 4407 | echo $ECHO_N "checking for unit64... $ECHO_C" >&6 |
| 4408 | if test "${ac_cv_type_unit64+set}" = set; then |
| 4409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4410 | else |
| 4411 | cat >conftest.$ac_ext <<_ACEOF |
| 4412 | /* confdefs.h. */ |
| 4413 | _ACEOF |
| 4414 | cat confdefs.h >>conftest.$ac_ext |
| 4415 | cat >>conftest.$ac_ext <<_ACEOF |
| 4416 | /* end confdefs.h. */ |
| 4417 | $ac_includes_default |
| 4418 | int |
| 4419 | main () |
| 4420 | { |
| 4421 | if ((unit64 *) 0) |
| 4422 | return 0; |
| 4423 | if (sizeof (unit64)) |
| 4424 | return 0; |
| 4425 | ; |
| 4426 | return 0; |
| 4427 | } |
| 4428 | _ACEOF |
| 4429 | rm -f conftest.$ac_objext |
| 4430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4431 | (eval $ac_compile) 2>conftest.er1 |
| 4432 | ac_status=$? |
| 4433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4434 | rm -f conftest.er1 |
| 4435 | cat conftest.err >&5 |
| 4436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4437 | (exit $ac_status); } && |
| 4438 | { ac_try='test -z "$ac_c_werror_flag" |
| 4439 | || test ! -s conftest.err' |
| 4440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4441 | (eval $ac_try) 2>&5 |
| 4442 | ac_status=$? |
| 4443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4444 | (exit $ac_status); }; } && |
| 4445 | { ac_try='test -s conftest.$ac_objext' |
| 4446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4447 | (eval $ac_try) 2>&5 |
| 4448 | ac_status=$? |
| 4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4450 | (exit $ac_status); }; }; then |
| 4451 | ac_cv_type_unit64=yes |
| 4452 | else |
| 4453 | echo "$as_me: failed program was:" >&5 |
| 4454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4455 | |
| 4456 | ac_cv_type_unit64=no |
| 4457 | fi |
| 4458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4459 | fi |
| 4460 | echo "$as_me:$LINENO: result: $ac_cv_type_unit64" >&5 |
| 4461 | echo "${ECHO_T}$ac_cv_type_unit64" >&6 |
| 4462 | if test $ac_cv_type_unit64 = yes; then |
| 4463 | |
| 4464 | cat >>confdefs.h <<_ACEOF |
| 4465 | #define HAVE_UNIT64 1 |
| 4466 | _ACEOF |
| 4467 | |
| 4468 | |
| 4469 | fi |
| 4470 | |
| 4471 | |
| 4472 | echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 4473 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 |
| 4474 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 4475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4476 | else |
| 4477 | cat >conftest.$ac_ext <<_ACEOF |
| 4478 | /* confdefs.h. */ |
| 4479 | _ACEOF |
| 4480 | cat confdefs.h >>conftest.$ac_ext |
| 4481 | cat >>conftest.$ac_ext <<_ACEOF |
| 4482 | /* end confdefs.h. */ |
| 4483 | $ac_includes_default |
| 4484 | int |
| 4485 | main () |
| 4486 | { |
| 4487 | if ((unsigned long long *) 0) |
| 4488 | return 0; |
| 4489 | if (sizeof (unsigned long long)) |
| 4490 | return 0; |
| 4491 | ; |
| 4492 | return 0; |
| 4493 | } |
| 4494 | _ACEOF |
| 4495 | rm -f conftest.$ac_objext |
| 4496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4497 | (eval $ac_compile) 2>conftest.er1 |
| 4498 | ac_status=$? |
| 4499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4500 | rm -f conftest.er1 |
| 4501 | cat conftest.err >&5 |
| 4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4503 | (exit $ac_status); } && |
| 4504 | { ac_try='test -z "$ac_c_werror_flag" |
| 4505 | || test ! -s conftest.err' |
| 4506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4507 | (eval $ac_try) 2>&5 |
| 4508 | ac_status=$? |
| 4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4510 | (exit $ac_status); }; } && |
| 4511 | { ac_try='test -s conftest.$ac_objext' |
| 4512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4513 | (eval $ac_try) 2>&5 |
| 4514 | ac_status=$? |
| 4515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4516 | (exit $ac_status); }; }; then |
| 4517 | ac_cv_type_unsigned_long_long=yes |
| 4518 | else |
| 4519 | echo "$as_me: failed program was:" >&5 |
| 4520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4521 | |
| 4522 | ac_cv_type_unsigned_long_long=no |
| 4523 | fi |
| 4524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4525 | fi |
| 4526 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 4527 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 |
| 4528 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 4529 | HAVE_U_LONG_LONG=1 |
| 4530 | else |
| 4531 | HAVE_U_LONG_LONG=0 |
| 4532 | fi |
| 4533 | |
| 4534 | |
| 4535 | if test $HAVE_U_LONG_LONG = 1; then |
| 4536 | cat >>confdefs.h <<\_ACEOF |
| 4537 | #define HAVE_U_LONG_LONG 1 |
| 4538 | _ACEOF |
| 4539 | |
| 4540 | fi |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4541 | |
| 4542 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 4543 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 4544 | if test "${ac_cv_c_const+set}" = set; then |
| 4545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4546 | else |
| 4547 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4548 | /* confdefs.h. */ |
| 4549 | _ACEOF |
| 4550 | cat confdefs.h >>conftest.$ac_ext |
| 4551 | cat >>conftest.$ac_ext <<_ACEOF |
| 4552 | /* end confdefs.h. */ |
| 4553 | |
| 4554 | int |
| 4555 | main () |
| 4556 | { |
| 4557 | /* FIXME: Include the comments suggested by Paul. */ |
| 4558 | #ifndef __cplusplus |
| 4559 | /* Ultrix mips cc rejects this. */ |
| 4560 | typedef int charset[2]; |
| 4561 | const charset x; |
| 4562 | /* SunOS 4.1.1 cc rejects this. */ |
| 4563 | char const *const *ccp; |
| 4564 | char **p; |
| 4565 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4566 | struct point {int x, y;}; |
| 4567 | static struct point const zero = {0,0}; |
| 4568 | /* AIX XL C 1.02.0.0 rejects this. |
| 4569 | It does not let you subtract one const X* pointer from another in |
| 4570 | an arm of an if-expression whose if-part is not a constant |
| 4571 | expression */ |
| 4572 | const char *g = "string"; |
| 4573 | ccp = &g + (g ? g-g : 0); |
| 4574 | /* HPUX 7.0 cc rejects these. */ |
| 4575 | ++ccp; |
| 4576 | p = (char**) ccp; |
| 4577 | ccp = (char const *const *) p; |
| 4578 | { /* SCO 3.2v4 cc rejects this. */ |
| 4579 | char *t; |
| 4580 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4581 | |
| 4582 | *t++ = 0; |
| 4583 | } |
| 4584 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4585 | int x[] = {25, 17}; |
| 4586 | const int *foo = &x[0]; |
| 4587 | ++foo; |
| 4588 | } |
| 4589 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4590 | typedef const int *iptr; |
| 4591 | iptr p = 0; |
| 4592 | ++p; |
| 4593 | } |
| 4594 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4595 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4596 | struct s { int j; const int *ap[3]; }; |
| 4597 | struct s *b; b->j = 5; |
| 4598 | } |
| 4599 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4600 | const int foo = 10; |
| 4601 | } |
| 4602 | #endif |
| 4603 | |
| 4604 | ; |
| 4605 | return 0; |
| 4606 | } |
| 4607 | _ACEOF |
| 4608 | rm -f conftest.$ac_objext |
| 4609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4610 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4611 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4613 | rm -f conftest.er1 |
| 4614 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4616 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4617 | { ac_try='test -z "$ac_c_werror_flag" |
| 4618 | || test ! -s conftest.err' |
| 4619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4620 | (eval $ac_try) 2>&5 |
| 4621 | ac_status=$? |
| 4622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4623 | (exit $ac_status); }; } && |
| 4624 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4626 | (eval $ac_try) 2>&5 |
| 4627 | ac_status=$? |
| 4628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4629 | (exit $ac_status); }; }; then |
| 4630 | ac_cv_c_const=yes |
| 4631 | else |
| 4632 | echo "$as_me: failed program was:" >&5 |
| 4633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4634 | |
| 4635 | ac_cv_c_const=no |
| 4636 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4638 | fi |
| 4639 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 4640 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 4641 | if test $ac_cv_c_const = no; then |
| 4642 | |
| 4643 | cat >>confdefs.h <<\_ACEOF |
| 4644 | #define const |
| 4645 | _ACEOF |
| 4646 | |
| 4647 | fi |
| 4648 | |
| 4649 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 4650 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 4651 | if test "${ac_cv_c_inline+set}" = set; then |
| 4652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4653 | else |
| 4654 | ac_cv_c_inline=no |
| 4655 | for ac_kw in inline __inline__ __inline; do |
| 4656 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4657 | /* confdefs.h. */ |
| 4658 | _ACEOF |
| 4659 | cat confdefs.h >>conftest.$ac_ext |
| 4660 | cat >>conftest.$ac_ext <<_ACEOF |
| 4661 | /* end confdefs.h. */ |
| 4662 | #ifndef __cplusplus |
| 4663 | typedef int foo_t; |
| 4664 | static $ac_kw foo_t static_foo () {return 0; } |
| 4665 | $ac_kw foo_t foo () {return 0; } |
| 4666 | #endif |
| 4667 | |
| 4668 | _ACEOF |
| 4669 | rm -f conftest.$ac_objext |
| 4670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4671 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4672 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4674 | rm -f conftest.er1 |
| 4675 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4677 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4678 | { ac_try='test -z "$ac_c_werror_flag" |
| 4679 | || test ! -s conftest.err' |
| 4680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4681 | (eval $ac_try) 2>&5 |
| 4682 | ac_status=$? |
| 4683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4684 | (exit $ac_status); }; } && |
| 4685 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4687 | (eval $ac_try) 2>&5 |
| 4688 | ac_status=$? |
| 4689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4690 | (exit $ac_status); }; }; then |
| 4691 | ac_cv_c_inline=$ac_kw; break |
| 4692 | else |
| 4693 | echo "$as_me: failed program was:" >&5 |
| 4694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4695 | |
| 4696 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4698 | done |
| 4699 | |
| 4700 | fi |
| 4701 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 4702 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4703 | |
| 4704 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4705 | case $ac_cv_c_inline in |
| 4706 | inline | yes) ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4707 | *) |
| 4708 | case $ac_cv_c_inline in |
| 4709 | no) ac_val=;; |
| 4710 | *) ac_val=$ac_cv_c_inline;; |
| 4711 | esac |
| 4712 | cat >>confdefs.h <<_ACEOF |
| 4713 | #ifndef __cplusplus |
| 4714 | #define inline $ac_val |
| 4715 | #endif |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4716 | _ACEOF |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4717 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4718 | esac |
| 4719 | |
| 4720 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 4721 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 4722 | if test "${ac_cv_type_size_t+set}" = set; then |
| 4723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4724 | else |
| 4725 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4726 | /* confdefs.h. */ |
| 4727 | _ACEOF |
| 4728 | cat confdefs.h >>conftest.$ac_ext |
| 4729 | cat >>conftest.$ac_ext <<_ACEOF |
| 4730 | /* end confdefs.h. */ |
| 4731 | $ac_includes_default |
| 4732 | int |
| 4733 | main () |
| 4734 | { |
| 4735 | if ((size_t *) 0) |
| 4736 | return 0; |
| 4737 | if (sizeof (size_t)) |
| 4738 | return 0; |
| 4739 | ; |
| 4740 | return 0; |
| 4741 | } |
| 4742 | _ACEOF |
| 4743 | rm -f conftest.$ac_objext |
| 4744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4745 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4746 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4748 | rm -f conftest.er1 |
| 4749 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4751 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4752 | { ac_try='test -z "$ac_c_werror_flag" |
| 4753 | || test ! -s conftest.err' |
| 4754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4755 | (eval $ac_try) 2>&5 |
| 4756 | ac_status=$? |
| 4757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4758 | (exit $ac_status); }; } && |
| 4759 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4761 | (eval $ac_try) 2>&5 |
| 4762 | ac_status=$? |
| 4763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4764 | (exit $ac_status); }; }; then |
| 4765 | ac_cv_type_size_t=yes |
| 4766 | else |
| 4767 | echo "$as_me: failed program was:" >&5 |
| 4768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4769 | |
| 4770 | ac_cv_type_size_t=no |
| 4771 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4773 | fi |
| 4774 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 4775 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 4776 | if test $ac_cv_type_size_t = yes; then |
| 4777 | : |
| 4778 | else |
| 4779 | |
| 4780 | cat >>confdefs.h <<_ACEOF |
| 4781 | #define size_t unsigned |
| 4782 | _ACEOF |
| 4783 | |
| 4784 | fi |
| 4785 | |
| 4786 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4787 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4788 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 4789 | for ac_func in socket inet_aton |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4790 | do |
| 4791 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4792 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 4793 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4794 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4796 | else |
| 4797 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4798 | /* confdefs.h. */ |
| 4799 | _ACEOF |
| 4800 | cat confdefs.h >>conftest.$ac_ext |
| 4801 | cat >>conftest.$ac_ext <<_ACEOF |
| 4802 | /* end confdefs.h. */ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4803 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 4804 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4805 | #define $ac_func innocuous_$ac_func |
| 4806 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4807 | /* System header to define __stub macros and hopefully few prototypes, |
| 4808 | which can conflict with char $ac_func (); below. |
| 4809 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4810 | <limits.h> exists even on freestanding compilers. */ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4811 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4812 | #ifdef __STDC__ |
| 4813 | # include <limits.h> |
| 4814 | #else |
| 4815 | # include <assert.h> |
| 4816 | #endif |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4817 | |
| 4818 | #undef $ac_func |
| 4819 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4820 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4821 | #ifdef __cplusplus |
| 4822 | extern "C" |
| 4823 | { |
| 4824 | #endif |
| 4825 | /* We use char because int might match the return type of a gcc2 |
| 4826 | builtin and then its argument prototype would still apply. */ |
| 4827 | char $ac_func (); |
| 4828 | /* The GNU C library defines this for functions which it implements |
| 4829 | to always fail with ENOSYS. Some functions are actually named |
| 4830 | something starting with __ and the normal name is an alias. */ |
| 4831 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4832 | choke me |
| 4833 | #else |
| 4834 | char (*f) () = $ac_func; |
| 4835 | #endif |
| 4836 | #ifdef __cplusplus |
| 4837 | } |
| 4838 | #endif |
| 4839 | |
| 4840 | int |
| 4841 | main () |
| 4842 | { |
| 4843 | return f != $ac_func; |
| 4844 | ; |
| 4845 | return 0; |
| 4846 | } |
| 4847 | _ACEOF |
| 4848 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4850 | (eval $ac_link) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4851 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4853 | rm -f conftest.er1 |
| 4854 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4856 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4857 | { ac_try='test -z "$ac_c_werror_flag" |
| 4858 | || test ! -s conftest.err' |
| 4859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4860 | (eval $ac_try) 2>&5 |
| 4861 | ac_status=$? |
| 4862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4863 | (exit $ac_status); }; } && |
| 4864 | { ac_try='test -s conftest$ac_exeext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4866 | (eval $ac_try) 2>&5 |
| 4867 | ac_status=$? |
| 4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4869 | (exit $ac_status); }; }; then |
| 4870 | eval "$as_ac_var=yes" |
| 4871 | else |
| 4872 | echo "$as_me: failed program was:" >&5 |
| 4873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4874 | |
| 4875 | eval "$as_ac_var=no" |
| 4876 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4877 | rm -f conftest.err conftest.$ac_objext \ |
| 4878 | conftest$ac_exeext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4879 | fi |
| 4880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4881 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4882 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4883 | cat >>confdefs.h <<_ACEOF |
| 4884 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4885 | _ACEOF |
| 4886 | |
| 4887 | fi |
| 4888 | done |
| 4889 | |
| 4890 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 4891 | |
| 4892 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 4893 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 4894 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 4895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4896 | else |
| 4897 | ac_check_lib_save_LIBS=$LIBS |
| 4898 | LIBS="-lsocket $LIBS" |
| 4899 | cat >conftest.$ac_ext <<_ACEOF |
| 4900 | /* confdefs.h. */ |
| 4901 | _ACEOF |
| 4902 | cat confdefs.h >>conftest.$ac_ext |
| 4903 | cat >>conftest.$ac_ext <<_ACEOF |
| 4904 | /* end confdefs.h. */ |
| 4905 | |
| 4906 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4907 | #ifdef __cplusplus |
| 4908 | extern "C" |
| 4909 | #endif |
| 4910 | /* We use char because int might match the return type of a gcc2 |
| 4911 | builtin and then its argument prototype would still apply. */ |
| 4912 | char socket (); |
| 4913 | int |
| 4914 | main () |
| 4915 | { |
| 4916 | socket (); |
| 4917 | ; |
| 4918 | return 0; |
| 4919 | } |
| 4920 | _ACEOF |
| 4921 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4923 | (eval $ac_link) 2>conftest.er1 |
| 4924 | ac_status=$? |
| 4925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4926 | rm -f conftest.er1 |
| 4927 | cat conftest.err >&5 |
| 4928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4929 | (exit $ac_status); } && |
| 4930 | { ac_try='test -z "$ac_c_werror_flag" |
| 4931 | || test ! -s conftest.err' |
| 4932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4933 | (eval $ac_try) 2>&5 |
| 4934 | ac_status=$? |
| 4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4936 | (exit $ac_status); }; } && |
| 4937 | { ac_try='test -s conftest$ac_exeext' |
| 4938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4939 | (eval $ac_try) 2>&5 |
| 4940 | ac_status=$? |
| 4941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4942 | (exit $ac_status); }; }; then |
| 4943 | ac_cv_lib_socket_socket=yes |
| 4944 | else |
| 4945 | echo "$as_me: failed program was:" >&5 |
| 4946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4947 | |
| 4948 | ac_cv_lib_socket_socket=no |
| 4949 | fi |
| 4950 | rm -f conftest.err conftest.$ac_objext \ |
| 4951 | conftest$ac_exeext conftest.$ac_ext |
| 4952 | LIBS=$ac_check_lib_save_LIBS |
| 4953 | fi |
| 4954 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 4955 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 4956 | if test $ac_cv_lib_socket_socket = yes; then |
| 4957 | cat >>confdefs.h <<_ACEOF |
| 4958 | #define HAVE_LIBSOCKET 1 |
| 4959 | _ACEOF |
| 4960 | |
| 4961 | LIBS="-lsocket $LIBS" |
| 4962 | |
| 4963 | fi |
| 4964 | |
| 4965 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4966 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4967 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 4968 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4970 | else |
| 4971 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4972 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4973 | /* confdefs.h. */ |
| 4974 | _ACEOF |
| 4975 | cat confdefs.h >>conftest.$ac_ext |
| 4976 | cat >>conftest.$ac_ext <<_ACEOF |
| 4977 | /* end confdefs.h. */ |
| 4978 | #include <sys/types.h> |
| 4979 | #include <sys/param.h> |
| 4980 | |
| 4981 | int |
| 4982 | main () |
| 4983 | { |
| 4984 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4985 | bogus endian macros |
| 4986 | #endif |
| 4987 | |
| 4988 | ; |
| 4989 | return 0; |
| 4990 | } |
| 4991 | _ACEOF |
| 4992 | rm -f conftest.$ac_objext |
| 4993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4994 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4995 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 4996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4997 | rm -f conftest.er1 |
| 4998 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 4999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5000 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5001 | { ac_try='test -z "$ac_c_werror_flag" |
| 5002 | || test ! -s conftest.err' |
| 5003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5004 | (eval $ac_try) 2>&5 |
| 5005 | ac_status=$? |
| 5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5007 | (exit $ac_status); }; } && |
| 5008 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5010 | (eval $ac_try) 2>&5 |
| 5011 | ac_status=$? |
| 5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5013 | (exit $ac_status); }; }; then |
| 5014 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5015 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5016 | /* confdefs.h. */ |
| 5017 | _ACEOF |
| 5018 | cat confdefs.h >>conftest.$ac_ext |
| 5019 | cat >>conftest.$ac_ext <<_ACEOF |
| 5020 | /* end confdefs.h. */ |
| 5021 | #include <sys/types.h> |
| 5022 | #include <sys/param.h> |
| 5023 | |
| 5024 | int |
| 5025 | main () |
| 5026 | { |
| 5027 | #if BYTE_ORDER != BIG_ENDIAN |
| 5028 | not big endian |
| 5029 | #endif |
| 5030 | |
| 5031 | ; |
| 5032 | return 0; |
| 5033 | } |
| 5034 | _ACEOF |
| 5035 | rm -f conftest.$ac_objext |
| 5036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5037 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5038 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5040 | rm -f conftest.er1 |
| 5041 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5043 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5044 | { ac_try='test -z "$ac_c_werror_flag" |
| 5045 | || test ! -s conftest.err' |
| 5046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5047 | (eval $ac_try) 2>&5 |
| 5048 | ac_status=$? |
| 5049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5050 | (exit $ac_status); }; } && |
| 5051 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5053 | (eval $ac_try) 2>&5 |
| 5054 | ac_status=$? |
| 5055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5056 | (exit $ac_status); }; }; then |
| 5057 | ac_cv_c_bigendian=yes |
| 5058 | else |
| 5059 | echo "$as_me: failed program was:" >&5 |
| 5060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5061 | |
| 5062 | ac_cv_c_bigendian=no |
| 5063 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5065 | else |
| 5066 | echo "$as_me: failed program was:" >&5 |
| 5067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5068 | |
| 5069 | # It does not; compile a test program. |
| 5070 | if test "$cross_compiling" = yes; then |
| 5071 | # try to guess the endianness by grepping values into an object file |
| 5072 | ac_cv_c_bigendian=unknown |
| 5073 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5074 | /* confdefs.h. */ |
| 5075 | _ACEOF |
| 5076 | cat confdefs.h >>conftest.$ac_ext |
| 5077 | cat >>conftest.$ac_ext <<_ACEOF |
| 5078 | /* end confdefs.h. */ |
| 5079 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 5080 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 5081 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 5082 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 5083 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 5084 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 5085 | int |
| 5086 | main () |
| 5087 | { |
| 5088 | _ascii (); _ebcdic (); |
| 5089 | ; |
| 5090 | return 0; |
| 5091 | } |
| 5092 | _ACEOF |
| 5093 | rm -f conftest.$ac_objext |
| 5094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5095 | (eval $ac_compile) 2>conftest.er1 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5096 | ac_status=$? |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5098 | rm -f conftest.er1 |
| 5099 | cat conftest.err >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5101 | (exit $ac_status); } && |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5102 | { ac_try='test -z "$ac_c_werror_flag" |
| 5103 | || test ! -s conftest.err' |
| 5104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5105 | (eval $ac_try) 2>&5 |
| 5106 | ac_status=$? |
| 5107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5108 | (exit $ac_status); }; } && |
| 5109 | { ac_try='test -s conftest.$ac_objext' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5111 | (eval $ac_try) 2>&5 |
| 5112 | ac_status=$? |
| 5113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5114 | (exit $ac_status); }; }; then |
| 5115 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 5116 | ac_cv_c_bigendian=yes |
| 5117 | fi |
| 5118 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 5119 | if test "$ac_cv_c_bigendian" = unknown; then |
| 5120 | ac_cv_c_bigendian=no |
| 5121 | else |
| 5122 | # finding both strings is unlikely to happen, but who knows? |
| 5123 | ac_cv_c_bigendian=unknown |
| 5124 | fi |
| 5125 | fi |
| 5126 | else |
| 5127 | echo "$as_me: failed program was:" >&5 |
| 5128 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5129 | |
| 5130 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5132 | else |
| 5133 | cat >conftest.$ac_ext <<_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5134 | /* confdefs.h. */ |
| 5135 | _ACEOF |
| 5136 | cat confdefs.h >>conftest.$ac_ext |
| 5137 | cat >>conftest.$ac_ext <<_ACEOF |
| 5138 | /* end confdefs.h. */ |
| 5139 | int |
| 5140 | main () |
| 5141 | { |
| 5142 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5143 | union |
| 5144 | { |
| 5145 | long l; |
| 5146 | char c[sizeof (long)]; |
| 5147 | } u; |
| 5148 | u.l = 1; |
| 5149 | exit (u.c[sizeof (long) - 1] == 1); |
| 5150 | } |
| 5151 | _ACEOF |
| 5152 | rm -f conftest$ac_exeext |
| 5153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5154 | (eval $ac_link) 2>&5 |
| 5155 | ac_status=$? |
| 5156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5157 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5159 | (eval $ac_try) 2>&5 |
| 5160 | ac_status=$? |
| 5161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5162 | (exit $ac_status); }; }; then |
| 5163 | ac_cv_c_bigendian=no |
| 5164 | else |
| 5165 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5166 | echo "$as_me: failed program was:" >&5 |
| 5167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5168 | |
| 5169 | ( exit $ac_status ) |
| 5170 | ac_cv_c_bigendian=yes |
| 5171 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5172 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5173 | fi |
| 5174 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5175 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5176 | fi |
| 5177 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 5178 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 5179 | case $ac_cv_c_bigendian in |
| 5180 | yes) |
| 5181 | |
| 5182 | cat >>confdefs.h <<\_ACEOF |
| 5183 | #define WORDS_BIGENDIAN 1 |
| 5184 | _ACEOF |
| 5185 | ;; |
| 5186 | no) |
| 5187 | ;; |
| 5188 | *) |
| 5189 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 5190 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 5191 | echo "$as_me: error: unknown endianness |
| 5192 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 5193 | { (exit 1); exit 1; }; } ;; |
| 5194 | esac |
| 5195 | |
| 5196 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5197 | # Make sure we can run config.sub. |
| 5198 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 5199 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 5200 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 5201 | { (exit 1); exit 1; }; } |
| 5202 | |
| 5203 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 5204 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 5205 | if test "${ac_cv_build+set}" = set; then |
| 5206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5207 | else |
| 5208 | ac_cv_build_alias=$build_alias |
| 5209 | test -z "$ac_cv_build_alias" && |
| 5210 | ac_cv_build_alias=`$ac_config_guess` |
| 5211 | test -z "$ac_cv_build_alias" && |
| 5212 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 5213 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 5214 | { (exit 1); exit 1; }; } |
| 5215 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 5216 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 5217 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 5218 | { (exit 1); exit 1; }; } |
| 5219 | |
| 5220 | fi |
| 5221 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 5222 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 5223 | build=$ac_cv_build |
| 5224 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 5225 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 5226 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 5227 | |
| 5228 | |
| 5229 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 5230 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 5231 | if test "${ac_cv_host+set}" = set; then |
| 5232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5233 | else |
| 5234 | ac_cv_host_alias=$host_alias |
| 5235 | test -z "$ac_cv_host_alias" && |
| 5236 | ac_cv_host_alias=$ac_cv_build_alias |
| 5237 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 5238 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 5239 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 5240 | { (exit 1); exit 1; }; } |
| 5241 | |
| 5242 | fi |
| 5243 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 5244 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 5245 | host=$ac_cv_host |
| 5246 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 5247 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 5248 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 5249 | |
| 5250 | |
| 5251 | |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5252 | case $host_cpu in |
| 5253 | i*86 ) |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5254 | |
| 5255 | cat >>confdefs.h <<\_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5256 | #define CPU_CISC 1 |
| 5257 | _ACEOF |
David McGrew | 89fb7ea | 2005-09-26 19:33:44 +0000 | [diff] [blame] | 5258 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5259 | |
| 5260 | cat >>confdefs.h <<\_ACEOF |
David McGrew | 89fb7ea | 2005-09-26 19:33:44 +0000 | [diff] [blame] | 5261 | #define HAVE_X86 1 |
| 5262 | _ACEOF |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5263 | ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5264 | * ) |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5265 | |
| 5266 | cat >>confdefs.h <<\_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5267 | #define CPU_RISC 1 |
| 5268 | _ACEOF |
| 5269 | ;; |
| 5270 | esac |
| 5271 | |
| 5272 | |
| 5273 | case $host_os in |
| 5274 | *cygwin* ) |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5275 | |
| 5276 | cat >>confdefs.h <<\_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5277 | #define HAVE_MS_TYPES 1 |
| 5278 | _ACEOF |
| 5279 | |
| 5280 | EXE=.exe;; |
| 5281 | * ) EXE="";; |
| 5282 | esac |
| 5283 | |
| 5284 | # define executable suffix; this is needed for `make clean' |
| 5285 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5286 | echo "$as_me:$LINENO: checking whether to compile in debugging" >&5 |
| 5287 | echo $ECHO_N "checking whether to compile in debugging... $ECHO_C" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5288 | # Check whether --enable-debug or --disable-debug was given. |
| 5289 | if test "${enable_debug+set}" = set; then |
| 5290 | enableval="$enable_debug" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5291 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5292 | else |
| 5293 | enable_debug=yes |
| 5294 | fi; |
| 5295 | if test "$enable_debug" = "yes"; then |
| 5296 | |
| 5297 | cat >>confdefs.h <<\_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5298 | #define ENABLE_DEBUGGING 1 |
| 5299 | _ACEOF |
| 5300 | |
| 5301 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5302 | echo "$as_me:$LINENO: result: $enable_debug" >&5 |
| 5303 | echo "${ECHO_T}$enable_debug" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5304 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5305 | echo "$as_me:$LINENO: checking whether to use ISMAcryp code" >&5 |
| 5306 | echo $ECHO_N "checking whether to use ISMAcryp code... $ECHO_C" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5307 | # Check whether --enable-generic-aesicm or --disable-generic-aesicm was given. |
| 5308 | if test "${enable_generic_aesicm+set}" = set; then |
| 5309 | enableval="$enable_generic_aesicm" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5310 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5311 | else |
| 5312 | enable_generic_aesicm=no |
| 5313 | fi; |
| 5314 | if test "$enable_generic_aesicm" = "yes"; then |
| 5315 | |
| 5316 | cat >>confdefs.h <<\_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5317 | #define GENERIC_AESICM 1 |
| 5318 | _ACEOF |
| 5319 | |
| 5320 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5321 | echo "$as_me:$LINENO: result: $enable_generic_aesicm" >&5 |
| 5322 | echo "${ECHO_T}$enable_generic_aesicm" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5323 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5324 | echo "$as_me:$LINENO: checking whether to use syslog for error reporting" >&5 |
| 5325 | echo $ECHO_N "checking whether to use syslog for error reporting... $ECHO_C" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5326 | # Check whether --enable-syslog or --disable-syslog was given. |
| 5327 | if test "${enable_syslog+set}" = set; then |
| 5328 | enableval="$enable_syslog" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5329 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5330 | else |
| 5331 | enable_syslog=no |
| 5332 | fi; |
| 5333 | if test "$enable_syslog" = "yes"; then |
| 5334 | |
| 5335 | cat >>confdefs.h <<\_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5336 | #define USE_SYSLOG 1 |
| 5337 | _ACEOF |
| 5338 | |
| 5339 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5340 | echo "$as_me:$LINENO: result: $enable_syslog" >&5 |
| 5341 | echo "${ECHO_T}$enable_syslog" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5342 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5343 | echo "$as_me:$LINENO: checking whether to use stdout for error reporting" >&5 |
| 5344 | echo $ECHO_N "checking whether to use stdout for error reporting... $ECHO_C" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5345 | # Check whether --enable-stdout or --disable-stdout was given. |
| 5346 | if test "${enable_stdout+set}" = set; then |
| 5347 | enableval="$enable_stdout" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5348 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5349 | else |
| 5350 | enable_stdout=yes |
| 5351 | fi; |
| 5352 | if test "$enable_stdout" = "yes"; then |
| 5353 | |
| 5354 | cat >>confdefs.h <<\_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5355 | #define ERR_REPORTING_STDOUT 1 |
| 5356 | _ACEOF |
| 5357 | |
| 5358 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5359 | echo "$as_me:$LINENO: result: $enable_stdout" >&5 |
| 5360 | echo "${ECHO_T}$enable_stdout" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5361 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5362 | echo "$as_me:$LINENO: checking whether to use /dev/console for error reporting" >&5 |
| 5363 | echo $ECHO_N "checking whether to use /dev/console for error reporting... $ECHO_C" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5364 | # Check whether --enable-console or --disable-console was given. |
| 5365 | if test "${enable_console+set}" = set; then |
| 5366 | enableval="$enable_console" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5367 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5368 | else |
| 5369 | enable_console=no |
| 5370 | fi; |
| 5371 | if test "$enable_console" = "yes"; then |
| 5372 | |
| 5373 | cat >>confdefs.h <<\_ACEOF |
| 5374 | #define USE_ERR_REPORTING_FILE 1 |
| 5375 | _ACEOF |
| 5376 | |
| 5377 | |
| 5378 | cat >>confdefs.h <<\_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5379 | #define ERR_REPORTING_FILE "/dev/console" |
| 5380 | _ACEOF |
| 5381 | |
| 5382 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5383 | echo "$as_me:$LINENO: result: $enable_console" >&5 |
| 5384 | echo "${ECHO_T}$enable_console" >&6 |
| 5385 | |
| 5386 | echo "$as_me:$LINENO: checking whether to use GDOI key management" >&5 |
| 5387 | echo $ECHO_N "checking whether to use GDOI key management... $ECHO_C" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5388 | # Check whether --enable-gdoi or --disable-gdoi was given. |
| 5389 | if test "${enable_gdoi+set}" = set; then |
| 5390 | enableval="$enable_gdoi" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5391 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5392 | else |
| 5393 | enable_gdoi=no |
| 5394 | fi; |
| 5395 | if test "$enable_gdoi" = "yes"; then |
| 5396 | |
| 5397 | cat >>confdefs.h <<\_ACEOF |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5398 | #define SRTP_GDOI 1 |
| 5399 | _ACEOF |
| 5400 | |
| 5401 | GDOI_OBJS=gdoi/srtp+gdoi.o |
| 5402 | |
| 5403 | fi |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5404 | echo "$as_me:$LINENO: result: $enable_gdoi" >&5 |
| 5405 | echo "${ECHO_T}$enable_gdoi" >&6 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5406 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5407 | ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5408 | |
| 5409 | |
| 5410 | ac_config_files="$ac_config_files Makefile" |
| 5411 | cat >confcache <<\_ACEOF |
| 5412 | # This file is a shell script that caches the results of configure |
| 5413 | # tests run on this system so they can be shared between configure |
| 5414 | # scripts and configure runs, see configure's option --config-cache. |
| 5415 | # It is not useful on other systems. If it contains results you don't |
| 5416 | # want to keep, you may remove or edit it. |
| 5417 | # |
| 5418 | # config.status only pays attention to the cache file if you give it |
| 5419 | # the --recheck option to rerun configure. |
| 5420 | # |
| 5421 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 5422 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 5423 | # following values. |
| 5424 | |
| 5425 | _ACEOF |
| 5426 | |
| 5427 | # The following way of writing the cache mishandles newlines in values, |
| 5428 | # but we know of no workaround that is simple, portable, and efficient. |
| 5429 | # So, don't put newlines in cache variables' values. |
| 5430 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5431 | # and sets the high bit in the cache file unless we assign to the vars. |
| 5432 | { |
| 5433 | (set) 2>&1 | |
| 5434 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 5435 | *ac_space=\ *) |
| 5436 | # `set' does not quote correctly, so add quotes (double-quote |
| 5437 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 5438 | sed -n \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5439 | "s/'/'\\\\''/g; |
| 5440 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5441 | ;; |
| 5442 | *) |
| 5443 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5444 | sed -n \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5445 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5446 | ;; |
| 5447 | esac; |
| 5448 | } | |
| 5449 | sed ' |
| 5450 | t clear |
| 5451 | : clear |
| 5452 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 5453 | t end |
| 5454 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 5455 | : end' >>confcache |
| 5456 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 5457 | if test -w $cache_file; then |
| 5458 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 5459 | cat confcache >$cache_file |
| 5460 | else |
| 5461 | echo "not updating unwritable cache $cache_file" |
| 5462 | fi |
| 5463 | fi |
| 5464 | rm -f confcache |
| 5465 | |
| 5466 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5467 | # Let make expand exec_prefix. |
| 5468 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5469 | |
| 5470 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 5471 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 5472 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 5473 | # (actually we leave an empty line to preserve line numbers). |
| 5474 | if test "x$srcdir" = x.; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5475 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5476 | s/:*\$(srcdir):*/:/; |
| 5477 | s/:*\${srcdir}:*/:/; |
| 5478 | s/:*@srcdir@:*/:/; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5479 | s/^\([^=]*=[ ]*\):*/\1/; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5480 | s/:*$//; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5481 | s/^[^=]*=[ ]*$//; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5482 | }' |
| 5483 | fi |
| 5484 | |
| 5485 | DEFS=-DHAVE_CONFIG_H |
| 5486 | |
| 5487 | ac_libobjs= |
| 5488 | ac_ltlibobjs= |
| 5489 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 5490 | # 1. Remove the extension, and $U if already installed. |
| 5491 | ac_i=`echo "$ac_i" | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5492 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5493 | # 2. Add them. |
| 5494 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 5495 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 5496 | done |
| 5497 | LIBOBJS=$ac_libobjs |
| 5498 | |
| 5499 | LTLIBOBJS=$ac_ltlibobjs |
| 5500 | |
| 5501 | |
| 5502 | |
| 5503 | : ${CONFIG_STATUS=./config.status} |
| 5504 | ac_clean_files_save=$ac_clean_files |
| 5505 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 5506 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 5507 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5508 | cat >$CONFIG_STATUS <<_ACEOF |
| 5509 | #! $SHELL |
| 5510 | # Generated by $as_me. |
| 5511 | # Run this file to recreate the current configuration. |
| 5512 | # Compiler output produced by configure, useful for debugging |
| 5513 | # configure, is in config.log if it exists. |
| 5514 | |
| 5515 | debug=false |
| 5516 | ac_cs_recheck=false |
| 5517 | ac_cs_silent=false |
| 5518 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 5519 | _ACEOF |
| 5520 | |
| 5521 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5522 | ## --------------------- ## |
| 5523 | ## M4sh Initialization. ## |
| 5524 | ## --------------------- ## |
| 5525 | |
| 5526 | # Be Bourne compatible |
| 5527 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 5528 | emulate sh |
| 5529 | NULLCMD=: |
| 5530 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 5531 | # is contrary to our usage. Disable this feature. |
| 5532 | alias -g '${1+"$@"}'='"$@"' |
| 5533 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 5534 | set -o posix |
| 5535 | fi |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5536 | DUALCASE=1; export DUALCASE # for MKS sh |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5537 | |
| 5538 | # Support unset when possible. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5539 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5540 | as_unset=unset |
| 5541 | else |
| 5542 | as_unset=false |
| 5543 | fi |
| 5544 | |
| 5545 | |
| 5546 | # Work around bugs in pre-3.0 UWIN ksh. |
| 5547 | $as_unset ENV MAIL MAILPATH |
| 5548 | PS1='$ ' |
| 5549 | PS2='> ' |
| 5550 | PS4='+ ' |
| 5551 | |
| 5552 | # NLS nuisances. |
| 5553 | for as_var in \ |
| 5554 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 5555 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 5556 | LC_TELEPHONE LC_TIME |
| 5557 | do |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5558 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5559 | eval $as_var=C; export $as_var |
| 5560 | else |
| 5561 | $as_unset $as_var |
| 5562 | fi |
| 5563 | done |
| 5564 | |
| 5565 | # Required to use basename. |
| 5566 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 5567 | as_expr=expr |
| 5568 | else |
| 5569 | as_expr=false |
| 5570 | fi |
| 5571 | |
| 5572 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 5573 | as_basename=basename |
| 5574 | else |
| 5575 | as_basename=false |
| 5576 | fi |
| 5577 | |
| 5578 | |
| 5579 | # Name of the executable. |
| 5580 | as_me=`$as_basename "$0" || |
| 5581 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5582 | X"$0" : 'X\(//\)$' \| \ |
| 5583 | X"$0" : 'X\(/\)$' \| \ |
| 5584 | . : '\(.\)' 2>/dev/null || |
| 5585 | echo X/"$0" | |
| 5586 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 5587 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 5588 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 5589 | s/.*/./; q'` |
| 5590 | |
| 5591 | |
| 5592 | # PATH needs CR, and LINENO needs CR and PATH. |
| 5593 | # Avoid depending upon Character Ranges. |
| 5594 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5595 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5596 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5597 | as_cr_digits='0123456789' |
| 5598 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 5599 | |
| 5600 | # The user is always right. |
| 5601 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5602 | echo "#! /bin/sh" >conf$$.sh |
| 5603 | echo "exit 0" >>conf$$.sh |
| 5604 | chmod +x conf$$.sh |
| 5605 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5606 | PATH_SEPARATOR=';' |
| 5607 | else |
| 5608 | PATH_SEPARATOR=: |
| 5609 | fi |
| 5610 | rm -f conf$$.sh |
| 5611 | fi |
| 5612 | |
| 5613 | |
| 5614 | as_lineno_1=$LINENO |
| 5615 | as_lineno_2=$LINENO |
| 5616 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 5617 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 5618 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 5619 | # Find who we are. Look in the path if we contain no path at all |
| 5620 | # relative or not. |
| 5621 | case $0 in |
| 5622 | *[\\/]* ) as_myself=$0 ;; |
| 5623 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5624 | for as_dir in $PATH |
| 5625 | do |
| 5626 | IFS=$as_save_IFS |
| 5627 | test -z "$as_dir" && as_dir=. |
| 5628 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 5629 | done |
| 5630 | |
| 5631 | ;; |
| 5632 | esac |
| 5633 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 5634 | # in which case we are not to be found in the path. |
| 5635 | if test "x$as_myself" = x; then |
| 5636 | as_myself=$0 |
| 5637 | fi |
| 5638 | if test ! -f "$as_myself"; then |
| 5639 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 5640 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 5641 | { (exit 1); exit 1; }; } |
| 5642 | fi |
| 5643 | case $CONFIG_SHELL in |
| 5644 | '') |
| 5645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5646 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 5647 | do |
| 5648 | IFS=$as_save_IFS |
| 5649 | test -z "$as_dir" && as_dir=. |
| 5650 | for as_base in sh bash ksh sh5; do |
| 5651 | case $as_dir in |
| 5652 | /*) |
| 5653 | if ("$as_dir/$as_base" -c ' |
| 5654 | as_lineno_1=$LINENO |
| 5655 | as_lineno_2=$LINENO |
| 5656 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 5657 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 5658 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 5659 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 5660 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 5661 | CONFIG_SHELL=$as_dir/$as_base |
| 5662 | export CONFIG_SHELL |
| 5663 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 5664 | fi;; |
| 5665 | esac |
| 5666 | done |
| 5667 | done |
| 5668 | ;; |
| 5669 | esac |
| 5670 | |
| 5671 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 5672 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 5673 | # line-number line before each line; the second 'sed' does the real |
| 5674 | # work. The second script uses 'N' to pair each line-number line |
| 5675 | # with the numbered line, and appends trailing '-' during |
| 5676 | # substitution so that $LINENO is not a special case at line end. |
| 5677 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 5678 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 5679 | sed '=' <$as_myself | |
| 5680 | sed ' |
| 5681 | N |
| 5682 | s,$,-, |
| 5683 | : loop |
| 5684 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 5685 | t loop |
| 5686 | s,-$,, |
| 5687 | s,^['$as_cr_digits']*\n,, |
| 5688 | ' >$as_me.lineno && |
| 5689 | chmod +x $as_me.lineno || |
| 5690 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 5691 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 5692 | { (exit 1); exit 1; }; } |
| 5693 | |
| 5694 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 5695 | # (the dirname of $[0] is not the place where we might find the |
| 5696 | # original and so on. Autoconf is especially sensible to this). |
| 5697 | . ./$as_me.lineno |
| 5698 | # Exit status is that of the last command. |
| 5699 | exit |
| 5700 | } |
| 5701 | |
| 5702 | |
| 5703 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 5704 | *c*,-n*) ECHO_N= ECHO_C=' |
| 5705 | ' ECHO_T=' ' ;; |
| 5706 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 5707 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 5708 | esac |
| 5709 | |
| 5710 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 5711 | as_expr=expr |
| 5712 | else |
| 5713 | as_expr=false |
| 5714 | fi |
| 5715 | |
| 5716 | rm -f conf$$ conf$$.exe conf$$.file |
| 5717 | echo >conf$$.file |
| 5718 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 5719 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 5720 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 5721 | if test -f conf$$.exe; then |
| 5722 | # Don't use ln at all; we don't have any links |
| 5723 | as_ln_s='cp -p' |
| 5724 | else |
| 5725 | as_ln_s='ln -s' |
| 5726 | fi |
| 5727 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5728 | as_ln_s=ln |
| 5729 | else |
| 5730 | as_ln_s='cp -p' |
| 5731 | fi |
| 5732 | rm -f conf$$ conf$$.exe conf$$.file |
| 5733 | |
| 5734 | if mkdir -p . 2>/dev/null; then |
| 5735 | as_mkdir_p=: |
| 5736 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5737 | test -d ./-p && rmdir ./-p |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5738 | as_mkdir_p=false |
| 5739 | fi |
| 5740 | |
| 5741 | as_executable_p="test -f" |
| 5742 | |
| 5743 | # Sed expression to map a string onto a valid CPP name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5744 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5745 | |
| 5746 | # Sed expression to map a string onto a valid variable name. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5747 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5748 | |
| 5749 | |
| 5750 | # IFS |
| 5751 | # We need space, tab and new line, in precisely that order. |
| 5752 | as_nl=' |
| 5753 | ' |
| 5754 | IFS=" $as_nl" |
| 5755 | |
| 5756 | # CDPATH. |
| 5757 | $as_unset CDPATH |
| 5758 | |
| 5759 | exec 6>&1 |
| 5760 | |
| 5761 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 5762 | # report actual input values of CONFIG_FILES etc. instead of their |
| 5763 | # values after options handling. Logging --version etc. is OK. |
| 5764 | exec 5>>config.log |
| 5765 | { |
| 5766 | echo |
| 5767 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 5768 | ## Running $as_me. ## |
| 5769 | _ASBOX |
| 5770 | } >&5 |
| 5771 | cat >&5 <<_CSEOF |
| 5772 | |
| 5773 | This file was extended by $as_me, which was |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5774 | generated by GNU Autoconf 2.59. Invocation command line was |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5775 | |
| 5776 | CONFIG_FILES = $CONFIG_FILES |
| 5777 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 5778 | CONFIG_LINKS = $CONFIG_LINKS |
| 5779 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 5780 | $ $0 $@ |
| 5781 | |
| 5782 | _CSEOF |
| 5783 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 5784 | echo >&5 |
| 5785 | _ACEOF |
| 5786 | |
| 5787 | # Files that config.status was made for. |
| 5788 | if test -n "$ac_config_files"; then |
| 5789 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 5790 | fi |
| 5791 | |
| 5792 | if test -n "$ac_config_headers"; then |
| 5793 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 5794 | fi |
| 5795 | |
| 5796 | if test -n "$ac_config_links"; then |
| 5797 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 5798 | fi |
| 5799 | |
| 5800 | if test -n "$ac_config_commands"; then |
| 5801 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 5802 | fi |
| 5803 | |
| 5804 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5805 | |
| 5806 | ac_cs_usage="\ |
| 5807 | \`$as_me' instantiates files from templates according to the |
| 5808 | current configuration. |
| 5809 | |
| 5810 | Usage: $0 [OPTIONS] [FILE]... |
| 5811 | |
| 5812 | -h, --help print this help, then exit |
| 5813 | -V, --version print version number, then exit |
| 5814 | -q, --quiet do not print progress messages |
| 5815 | -d, --debug don't remove temporary files |
| 5816 | --recheck update $as_me by reconfiguring in the same conditions |
| 5817 | --file=FILE[:TEMPLATE] |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5818 | instantiate the configuration file FILE |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5819 | --header=FILE[:TEMPLATE] |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5820 | instantiate the configuration header FILE |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5821 | |
| 5822 | Configuration files: |
| 5823 | $config_files |
| 5824 | |
| 5825 | Configuration headers: |
| 5826 | $config_headers |
| 5827 | |
| 5828 | Report bugs to <bug-autoconf@gnu.org>." |
| 5829 | _ACEOF |
| 5830 | |
| 5831 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5832 | ac_cs_version="\\ |
| 5833 | config.status |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5834 | configured by $0, generated by GNU Autoconf 2.59, |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5835 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 5836 | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5837 | Copyright (C) 2003 Free Software Foundation, Inc. |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5838 | This config.status script is free software; the Free Software Foundation |
| 5839 | gives unlimited permission to copy, distribute and modify it." |
| 5840 | srcdir=$srcdir |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 5841 | INSTALL="$INSTALL" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5842 | _ACEOF |
| 5843 | |
| 5844 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5845 | # If no file are specified by the user, then we need to provide default |
| 5846 | # value. By we need to know if files were specified by the user. |
| 5847 | ac_need_defaults=: |
| 5848 | while test $# != 0 |
| 5849 | do |
| 5850 | case $1 in |
| 5851 | --*=*) |
| 5852 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 5853 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 5854 | ac_shift=: |
| 5855 | ;; |
| 5856 | -*) |
| 5857 | ac_option=$1 |
| 5858 | ac_optarg=$2 |
| 5859 | ac_shift=shift |
| 5860 | ;; |
| 5861 | *) # This is not an option, so the user has probably given explicit |
| 5862 | # arguments. |
| 5863 | ac_option=$1 |
| 5864 | ac_need_defaults=false;; |
| 5865 | esac |
| 5866 | |
| 5867 | case $ac_option in |
| 5868 | # Handling of the options. |
| 5869 | _ACEOF |
| 5870 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5871 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 5872 | ac_cs_recheck=: ;; |
| 5873 | --version | --vers* | -V ) |
| 5874 | echo "$ac_cs_version"; exit 0 ;; |
| 5875 | --he | --h) |
| 5876 | # Conflict between --help and --header |
| 5877 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 5878 | Try \`$0 --help' for more information." >&5 |
| 5879 | echo "$as_me: error: ambiguous option: $1 |
| 5880 | Try \`$0 --help' for more information." >&2;} |
| 5881 | { (exit 1); exit 1; }; };; |
| 5882 | --help | --hel | -h ) |
| 5883 | echo "$ac_cs_usage"; exit 0 ;; |
| 5884 | --debug | --d* | -d ) |
| 5885 | debug=: ;; |
| 5886 | --file | --fil | --fi | --f ) |
| 5887 | $ac_shift |
| 5888 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 5889 | ac_need_defaults=false;; |
| 5890 | --header | --heade | --head | --hea ) |
| 5891 | $ac_shift |
| 5892 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 5893 | ac_need_defaults=false;; |
| 5894 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 5895 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 5896 | ac_cs_silent=: ;; |
| 5897 | |
| 5898 | # This is an error. |
| 5899 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 5900 | Try \`$0 --help' for more information." >&5 |
| 5901 | echo "$as_me: error: unrecognized option: $1 |
| 5902 | Try \`$0 --help' for more information." >&2;} |
| 5903 | { (exit 1); exit 1; }; } ;; |
| 5904 | |
| 5905 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 5906 | |
| 5907 | esac |
| 5908 | shift |
| 5909 | done |
| 5910 | |
| 5911 | ac_configure_extra_args= |
| 5912 | |
| 5913 | if $ac_cs_silent; then |
| 5914 | exec 6>/dev/null |
| 5915 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 5916 | fi |
| 5917 | |
| 5918 | _ACEOF |
| 5919 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5920 | if \$ac_cs_recheck; then |
| 5921 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 5922 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 5923 | fi |
| 5924 | |
| 5925 | _ACEOF |
| 5926 | |
| 5927 | |
| 5928 | |
| 5929 | |
| 5930 | |
| 5931 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5932 | for ac_config_target in $ac_config_targets |
| 5933 | do |
| 5934 | case "$ac_config_target" in |
| 5935 | # Handling of arguments. |
| 5936 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 5937 | "crypto/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 5938 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 5939 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 5940 | { (exit 1); exit 1; }; };; |
| 5941 | esac |
| 5942 | done |
| 5943 | |
| 5944 | # If the user did not use the arguments to specify the items to instantiate, |
| 5945 | # then the envvar interface is used. Set only those that are not. |
| 5946 | # We use the long form for the default assignment because of an extremely |
| 5947 | # bizarre bug on SunOS 4.1.3. |
| 5948 | if $ac_need_defaults; then |
| 5949 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 5950 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 5951 | fi |
| 5952 | |
| 5953 | # Have a temporary directory for convenience. Make it in the build tree |
| 5954 | # simply because there is no reason to put it here, and in addition, |
| 5955 | # creating and moving files from /tmp can sometimes cause problems. |
| 5956 | # Create a temporary directory, and hook for its removal unless debugging. |
| 5957 | $debug || |
| 5958 | { |
| 5959 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 5960 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 5961 | } |
| 5962 | |
| 5963 | # Create a (secure) tmp directory for tmp files. |
| 5964 | |
| 5965 | { |
| 5966 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 5967 | test -n "$tmp" && test -d "$tmp" |
| 5968 | } || |
| 5969 | { |
| 5970 | tmp=./confstat$$-$RANDOM |
| 5971 | (umask 077 && mkdir $tmp) |
| 5972 | } || |
| 5973 | { |
| 5974 | echo "$me: cannot create a temporary directory in ." >&2 |
| 5975 | { (exit 1); exit 1; } |
| 5976 | } |
| 5977 | |
| 5978 | _ACEOF |
| 5979 | |
| 5980 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5981 | |
| 5982 | # |
| 5983 | # CONFIG_FILES section. |
| 5984 | # |
| 5985 | |
| 5986 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 5987 | # This happens for instance when ./config.status config.h |
| 5988 | if test -n "\$CONFIG_FILES"; then |
| 5989 | # Protect against being on the right side of a sed subst in config.status. |
| 5990 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 5991 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 5992 | s,@SHELL@,$SHELL,;t t |
| 5993 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 5994 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 5995 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 5996 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 5997 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 5998 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 5999 | s,@exec_prefix@,$exec_prefix,;t t |
| 6000 | s,@prefix@,$prefix,;t t |
| 6001 | s,@program_transform_name@,$program_transform_name,;t t |
| 6002 | s,@bindir@,$bindir,;t t |
| 6003 | s,@sbindir@,$sbindir,;t t |
| 6004 | s,@libexecdir@,$libexecdir,;t t |
| 6005 | s,@datadir@,$datadir,;t t |
| 6006 | s,@sysconfdir@,$sysconfdir,;t t |
| 6007 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 6008 | s,@localstatedir@,$localstatedir,;t t |
| 6009 | s,@libdir@,$libdir,;t t |
| 6010 | s,@includedir@,$includedir,;t t |
| 6011 | s,@oldincludedir@,$oldincludedir,;t t |
| 6012 | s,@infodir@,$infodir,;t t |
| 6013 | s,@mandir@,$mandir,;t t |
| 6014 | s,@build_alias@,$build_alias,;t t |
| 6015 | s,@host_alias@,$host_alias,;t t |
| 6016 | s,@target_alias@,$target_alias,;t t |
| 6017 | s,@DEFS@,$DEFS,;t t |
| 6018 | s,@ECHO_C@,$ECHO_C,;t t |
| 6019 | s,@ECHO_N@,$ECHO_N,;t t |
| 6020 | s,@ECHO_T@,$ECHO_T,;t t |
| 6021 | s,@LIBS@,$LIBS,;t t |
| 6022 | s,@RANLIB@,$RANLIB,;t t |
| 6023 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 6024 | s,@CC@,$CC,;t t |
| 6025 | s,@CFLAGS@,$CFLAGS,;t t |
| 6026 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 6027 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 6028 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 6029 | s,@EXEEXT@,$EXEEXT,;t t |
| 6030 | s,@OBJEXT@,$OBJEXT,;t t |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 6031 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 6032 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 6033 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6034 | s,@RNG_OBJS@,$RNG_OBJS,;t t |
| 6035 | s,@CPP@,$CPP,;t t |
| 6036 | s,@EGREP@,$EGREP,;t t |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6037 | s,@build@,$build,;t t |
| 6038 | s,@build_cpu@,$build_cpu,;t t |
| 6039 | s,@build_vendor@,$build_vendor,;t t |
| 6040 | s,@build_os@,$build_os,;t t |
| 6041 | s,@host@,$host,;t t |
| 6042 | s,@host_cpu@,$host_cpu,;t t |
| 6043 | s,@host_vendor@,$host_vendor,;t t |
| 6044 | s,@host_os@,$host_os,;t t |
| 6045 | s,@EXE@,$EXE,;t t |
| 6046 | s,@GDOI_OBJS@,$GDOI_OBJS,;t t |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 6047 | s,@LIBOBJS@,$LIBOBJS,;t t |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6048 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 6049 | CEOF |
| 6050 | |
| 6051 | _ACEOF |
| 6052 | |
| 6053 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6054 | # Split the substitutions into bite-sized pieces for seds with |
| 6055 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6056 | ac_max_sed_lines=48 |
| 6057 | ac_sed_frag=1 # Number of current file. |
| 6058 | ac_beg=1 # First line for current file. |
| 6059 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 6060 | ac_more_lines=: |
| 6061 | ac_sed_cmds= |
| 6062 | while $ac_more_lines; do |
| 6063 | if test $ac_beg -gt 1; then |
| 6064 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 6065 | else |
| 6066 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 6067 | fi |
| 6068 | if test ! -s $tmp/subs.frag; then |
| 6069 | ac_more_lines=false |
| 6070 | else |
| 6071 | # The purpose of the label and of the branching condition is to |
| 6072 | # speed up the sed processing (if there are no `@' at all, there |
| 6073 | # is no need to browse any of the substitutions). |
| 6074 | # These are the two extra sed commands mentioned above. |
| 6075 | (echo ':t |
| 6076 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 6077 | if test -z "$ac_sed_cmds"; then |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6078 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6079 | else |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6080 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6081 | fi |
| 6082 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 6083 | ac_beg=$ac_end |
| 6084 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 6085 | fi |
| 6086 | done |
| 6087 | if test -z "$ac_sed_cmds"; then |
| 6088 | ac_sed_cmds=cat |
| 6089 | fi |
| 6090 | fi # test -n "$CONFIG_FILES" |
| 6091 | |
| 6092 | _ACEOF |
| 6093 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6094 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 6095 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 6096 | case $ac_file in |
| 6097 | - | *:- | *:-:* ) # input from stdin |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6098 | cat >$tmp/stdin |
| 6099 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 6100 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6101 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6102 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6103 | * ) ac_file_in=$ac_file.in ;; |
| 6104 | esac |
| 6105 | |
| 6106 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 6107 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 6108 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6109 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6110 | X"$ac_file" : 'X\(//\)$' \| \ |
| 6111 | X"$ac_file" : 'X\(/\)' \| \ |
| 6112 | . : '\(.\)' 2>/dev/null || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6113 | echo X"$ac_file" | |
| 6114 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6115 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6116 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6117 | /^X\(\/\).*/{ s//\1/; q; } |
| 6118 | s/.*/./; q'` |
| 6119 | { if $as_mkdir_p; then |
| 6120 | mkdir -p "$ac_dir" |
| 6121 | else |
| 6122 | as_dir="$ac_dir" |
| 6123 | as_dirs= |
| 6124 | while test ! -d "$as_dir"; do |
| 6125 | as_dirs="$as_dir $as_dirs" |
| 6126 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 6127 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6128 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6129 | X"$as_dir" : 'X\(//\)$' \| \ |
| 6130 | X"$as_dir" : 'X\(/\)' \| \ |
| 6131 | . : '\(.\)' 2>/dev/null || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6132 | echo X"$as_dir" | |
| 6133 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6134 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6135 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6136 | /^X\(\/\).*/{ s//\1/; q; } |
| 6137 | s/.*/./; q'` |
| 6138 | done |
| 6139 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 6140 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 6141 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 6142 | { (exit 1); exit 1; }; }; } |
| 6143 | |
| 6144 | ac_builddir=. |
| 6145 | |
| 6146 | if test "$ac_dir" != .; then |
| 6147 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 6148 | # A "../" for each directory in $ac_dir_suffix. |
| 6149 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 6150 | else |
| 6151 | ac_dir_suffix= ac_top_builddir= |
| 6152 | fi |
| 6153 | |
| 6154 | case $srcdir in |
| 6155 | .) # No --srcdir option. We are building in place. |
| 6156 | ac_srcdir=. |
| 6157 | if test -z "$ac_top_builddir"; then |
| 6158 | ac_top_srcdir=. |
| 6159 | else |
| 6160 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 6161 | fi ;; |
| 6162 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 6163 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 6164 | ac_top_srcdir=$srcdir ;; |
| 6165 | *) # Relative path. |
| 6166 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 6167 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 6168 | esac |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6169 | |
| 6170 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 6171 | # the directories may not exist. |
| 6172 | case `pwd` in |
| 6173 | .) ac_abs_builddir="$ac_dir";; |
| 6174 | *) |
| 6175 | case "$ac_dir" in |
| 6176 | .) ac_abs_builddir=`pwd`;; |
| 6177 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 6178 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 6179 | esac;; |
| 6180 | esac |
| 6181 | case $ac_abs_builddir in |
| 6182 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 6183 | *) |
| 6184 | case ${ac_top_builddir}. in |
| 6185 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 6186 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 6187 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 6188 | esac;; |
| 6189 | esac |
| 6190 | case $ac_abs_builddir in |
| 6191 | .) ac_abs_srcdir=$ac_srcdir;; |
| 6192 | *) |
| 6193 | case $ac_srcdir in |
| 6194 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 6195 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 6196 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 6197 | esac;; |
| 6198 | esac |
| 6199 | case $ac_abs_builddir in |
| 6200 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 6201 | *) |
| 6202 | case $ac_top_srcdir in |
| 6203 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 6204 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 6205 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 6206 | esac;; |
| 6207 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6208 | |
| 6209 | |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 6210 | case $INSTALL in |
| 6211 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 6212 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 6213 | esac |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6214 | |
| 6215 | if test x"$ac_file" != x-; then |
| 6216 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 6217 | echo "$as_me: creating $ac_file" >&6;} |
| 6218 | rm -f "$ac_file" |
| 6219 | fi |
| 6220 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 6221 | # use $as_me), people would be surprised to read: |
| 6222 | # /* config.h. Generated by config.status. */ |
| 6223 | if test x"$ac_file" = x-; then |
| 6224 | configure_input= |
| 6225 | else |
| 6226 | configure_input="$ac_file. " |
| 6227 | fi |
| 6228 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6229 | sed 's,.*/,,'` by configure." |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6230 | |
| 6231 | # First look for the input files in the build tree, otherwise in the |
| 6232 | # src tree. |
| 6233 | ac_file_inputs=`IFS=: |
| 6234 | for f in $ac_file_in; do |
| 6235 | case $f in |
| 6236 | -) echo $tmp/stdin ;; |
| 6237 | [\\/$]*) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6238 | # Absolute (can't be DOS-style, as IFS=:) |
| 6239 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6240 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 6241 | { (exit 1); exit 1; }; } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6242 | echo "$f";; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6243 | *) # Relative |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6244 | if test -f "$f"; then |
| 6245 | # Build tree |
| 6246 | echo "$f" |
| 6247 | elif test -f "$srcdir/$f"; then |
| 6248 | # Source tree |
| 6249 | echo "$srcdir/$f" |
| 6250 | else |
| 6251 | # /dev/null tree |
| 6252 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6253 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 6254 | { (exit 1); exit 1; }; } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6255 | fi;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6256 | esac |
| 6257 | done` || { (exit 1); exit 1; } |
| 6258 | _ACEOF |
| 6259 | cat >>$CONFIG_STATUS <<_ACEOF |
| 6260 | sed "$ac_vpsub |
| 6261 | $extrasub |
| 6262 | _ACEOF |
| 6263 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6264 | :t |
| 6265 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 6266 | s,@configure_input@,$configure_input,;t t |
| 6267 | s,@srcdir@,$ac_srcdir,;t t |
| 6268 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 6269 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 6270 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 6271 | s,@builddir@,$ac_builddir,;t t |
| 6272 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 6273 | s,@top_builddir@,$ac_top_builddir,;t t |
| 6274 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
David McGrew | b67061f | 2005-09-28 14:23:06 +0000 | [diff] [blame^] | 6275 | s,@INSTALL@,$ac_INSTALL,;t t |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6276 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 6277 | rm -f $tmp/stdin |
| 6278 | if test x"$ac_file" != x-; then |
| 6279 | mv $tmp/out $ac_file |
| 6280 | else |
| 6281 | cat $tmp/out |
| 6282 | rm -f $tmp/out |
| 6283 | fi |
| 6284 | |
| 6285 | done |
| 6286 | _ACEOF |
| 6287 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6288 | |
| 6289 | # |
| 6290 | # CONFIG_HEADER section. |
| 6291 | # |
| 6292 | |
| 6293 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 6294 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 6295 | # |
| 6296 | # ac_d sets the value in "#define NAME VALUE" lines. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6297 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 6298 | ac_dB='[ ].*$,\1#\2' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6299 | ac_dC=' ' |
| 6300 | ac_dD=',;t' |
| 6301 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6302 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6303 | ac_uB='$,\1#\2define\3' |
| 6304 | ac_uC=' ' |
| 6305 | ac_uD=',;t' |
| 6306 | |
| 6307 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 6308 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 6309 | case $ac_file in |
| 6310 | - | *:- | *:-:* ) # input from stdin |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6311 | cat >$tmp/stdin |
| 6312 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 6313 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6314 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6315 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6316 | * ) ac_file_in=$ac_file.in ;; |
| 6317 | esac |
| 6318 | |
| 6319 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 6320 | echo "$as_me: creating $ac_file" >&6;} |
| 6321 | |
| 6322 | # First look for the input files in the build tree, otherwise in the |
| 6323 | # src tree. |
| 6324 | ac_file_inputs=`IFS=: |
| 6325 | for f in $ac_file_in; do |
| 6326 | case $f in |
| 6327 | -) echo $tmp/stdin ;; |
| 6328 | [\\/$]*) |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6329 | # Absolute (can't be DOS-style, as IFS=:) |
| 6330 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6331 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 6332 | { (exit 1); exit 1; }; } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6333 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 6334 | echo "$f";; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6335 | *) # Relative |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6336 | if test -f "$f"; then |
| 6337 | # Build tree |
| 6338 | echo "$f" |
| 6339 | elif test -f "$srcdir/$f"; then |
| 6340 | # Source tree |
| 6341 | echo "$srcdir/$f" |
| 6342 | else |
| 6343 | # /dev/null tree |
| 6344 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6345 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 6346 | { (exit 1); exit 1; }; } |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6347 | fi;; |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6348 | esac |
| 6349 | done` || { (exit 1); exit 1; } |
| 6350 | # Remove the trailing spaces. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6351 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6352 | |
| 6353 | _ACEOF |
| 6354 | |
| 6355 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 6356 | # `conftest.undefs', that substitutes the proper values into |
| 6357 | # config.h.in to produce config.h. The first handles `#define' |
| 6358 | # templates, and the second `#undef' templates. |
| 6359 | # And first: Protect against being on the right side of a sed subst in |
| 6360 | # config.status. Protect against being in an unquoted here document |
| 6361 | # in config.status. |
| 6362 | rm -f conftest.defines conftest.undefs |
| 6363 | # Using a here document instead of a string reduces the quoting nightmare. |
| 6364 | # Putting comments in sed scripts is not portable. |
| 6365 | # |
| 6366 | # `end' is used to avoid that the second main sed command (meant for |
| 6367 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 6368 | # See the Autoconf documentation for `clear'. |
| 6369 | cat >confdef2sed.sed <<\_ACEOF |
| 6370 | s/[\\&,]/\\&/g |
| 6371 | s,[\\$`],\\&,g |
| 6372 | t clear |
| 6373 | : clear |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6374 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6375 | t end |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6376 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6377 | : end |
| 6378 | _ACEOF |
| 6379 | # If some macros were called several times there might be several times |
| 6380 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 6381 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 6382 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 6383 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 6384 | rm -f confdef2sed.sed |
| 6385 | |
| 6386 | # This sed command replaces #undef with comments. This is necessary, for |
| 6387 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6388 | # on some systems where configure will not decide to define it. |
| 6389 | cat >>conftest.undefs <<\_ACEOF |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6390 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6391 | _ACEOF |
| 6392 | |
| 6393 | # Break up conftest.defines because some shells have a limit on the size |
| 6394 | # of here documents, and old seds have small limits too (100 cmds). |
| 6395 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6396 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6397 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 6398 | echo ' :' >>$CONFIG_STATUS |
| 6399 | rm -f conftest.tail |
| 6400 | while grep . conftest.defines >/dev/null |
| 6401 | do |
| 6402 | # Write a limited-size here document to $tmp/defines.sed. |
| 6403 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 6404 | # Speed up: don't consider the non `#define' lines. |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6405 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6406 | # Work around the forget-to-reset-the-flag bug. |
| 6407 | echo 't clr' >>$CONFIG_STATUS |
| 6408 | echo ': clr' >>$CONFIG_STATUS |
| 6409 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 6410 | echo 'CEOF |
| 6411 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 6412 | rm -f $tmp/in |
| 6413 | mv $tmp/out $tmp/in |
| 6414 | ' >>$CONFIG_STATUS |
| 6415 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 6416 | rm -f conftest.defines |
| 6417 | mv conftest.tail conftest.defines |
| 6418 | done |
| 6419 | rm -f conftest.defines |
| 6420 | echo ' fi # grep' >>$CONFIG_STATUS |
| 6421 | echo >>$CONFIG_STATUS |
| 6422 | |
| 6423 | # Break up conftest.undefs because some shells have a limit on the size |
| 6424 | # of here documents, and old seds have small limits too (100 cmds). |
| 6425 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 6426 | rm -f conftest.tail |
| 6427 | while grep . conftest.undefs >/dev/null |
| 6428 | do |
| 6429 | # Write a limited-size here document to $tmp/undefs.sed. |
| 6430 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 6431 | # Speed up: don't consider the non `#undef' |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6432 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6433 | # Work around the forget-to-reset-the-flag bug. |
| 6434 | echo 't clr' >>$CONFIG_STATUS |
| 6435 | echo ': clr' >>$CONFIG_STATUS |
| 6436 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 6437 | echo 'CEOF |
| 6438 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 6439 | rm -f $tmp/in |
| 6440 | mv $tmp/out $tmp/in |
| 6441 | ' >>$CONFIG_STATUS |
| 6442 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 6443 | rm -f conftest.undefs |
| 6444 | mv conftest.tail conftest.undefs |
| 6445 | done |
| 6446 | rm -f conftest.undefs |
| 6447 | |
| 6448 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6449 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 6450 | # use $as_me), people would be surprised to read: |
| 6451 | # /* config.h. Generated by config.status. */ |
| 6452 | if test x"$ac_file" = x-; then |
| 6453 | echo "/* Generated by configure. */" >$tmp/config.h |
| 6454 | else |
| 6455 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 6456 | fi |
| 6457 | cat $tmp/in >>$tmp/config.h |
| 6458 | rm -f $tmp/in |
| 6459 | if test x"$ac_file" != x-; then |
| 6460 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 6461 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 6462 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 6463 | else |
| 6464 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 6465 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6466 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6467 | X"$ac_file" : 'X\(//\)$' \| \ |
| 6468 | X"$ac_file" : 'X\(/\)' \| \ |
| 6469 | . : '\(.\)' 2>/dev/null || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6470 | echo X"$ac_file" | |
| 6471 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6472 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6473 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6474 | /^X\(\/\).*/{ s//\1/; q; } |
| 6475 | s/.*/./; q'` |
| 6476 | { if $as_mkdir_p; then |
| 6477 | mkdir -p "$ac_dir" |
| 6478 | else |
| 6479 | as_dir="$ac_dir" |
| 6480 | as_dirs= |
| 6481 | while test ! -d "$as_dir"; do |
| 6482 | as_dirs="$as_dir $as_dirs" |
| 6483 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 6484 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
David McGrew | fec49dd | 2005-09-23 19:34:11 +0000 | [diff] [blame] | 6485 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6486 | X"$as_dir" : 'X\(//\)$' \| \ |
| 6487 | X"$as_dir" : 'X\(/\)' \| \ |
| 6488 | . : '\(.\)' 2>/dev/null || |
Cullen Jennings | 235513a | 2005-09-21 22:51:36 +0000 | [diff] [blame] | 6489 | echo X"$as_dir" | |
| 6490 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6491 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6492 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6493 | /^X\(\/\).*/{ s//\1/; q; } |
| 6494 | s/.*/./; q'` |
| 6495 | done |
| 6496 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 6497 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 6498 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 6499 | { (exit 1); exit 1; }; }; } |
| 6500 | |
| 6501 | rm -f $ac_file |
| 6502 | mv $tmp/config.h $ac_file |
| 6503 | fi |
| 6504 | else |
| 6505 | cat $tmp/config.h |
| 6506 | rm -f $tmp/config.h |
| 6507 | fi |
| 6508 | done |
| 6509 | _ACEOF |
| 6510 | |
| 6511 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6512 | |
| 6513 | { (exit 0); exit 0; } |
| 6514 | _ACEOF |
| 6515 | chmod +x $CONFIG_STATUS |
| 6516 | ac_clean_files=$ac_clean_files_save |
| 6517 | |
| 6518 | |
| 6519 | # configure is writing to config.log, and then calls config.status. |
| 6520 | # config.status does its own redirection, appending to config.log. |
| 6521 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 6522 | # by configure, so config.status won't be able to write to it; its |
| 6523 | # output is simply discarded. So we exec the FD to /dev/null, |
| 6524 | # effectively closing config.log, so it can be properly (re)opened and |
| 6525 | # appended to by config.status. When coming back to configure, we |
| 6526 | # need to make the FD available again. |
| 6527 | if test "$no_create" != yes; then |
| 6528 | ac_cs_success=: |
| 6529 | ac_config_status_args= |
| 6530 | test "$silent" = yes && |
| 6531 | ac_config_status_args="$ac_config_status_args --quiet" |
| 6532 | exec 5>/dev/null |
| 6533 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6534 | exec 5>>config.log |
| 6535 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6536 | # would make configure fail if this is the last instruction. |
| 6537 | $ac_cs_success || { (exit 1); exit 1; } |
| 6538 | fi |
| 6539 | |
| 6540 | |
| 6541 | |