| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.59. |
| 4 | # |
| 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
| 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 |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 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 |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 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 |
| 221 | test -d ./-p && rmdir ./-p |
| 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. |
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 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="main.c" |
| 275 | ac_subdirs_all="$ac_subdirs_all doc testsuite" |
| 276 | # Factoring default headers for most tests. |
| 277 | ac_includes_default="\ |
| 278 | #include <stdio.h> |
| 279 | #if HAVE_SYS_TYPES_H |
| 280 | # include <sys/types.h> |
| 281 | #endif |
| 282 | #if HAVE_SYS_STAT_H |
| 283 | # include <sys/stat.h> |
| 284 | #endif |
| 285 | #if STDC_HEADERS |
| 286 | # include <stdlib.h> |
| 287 | # include <stddef.h> |
| 288 | #else |
| 289 | # if HAVE_STDLIB_H |
| 290 | # include <stdlib.h> |
| 291 | # endif |
| 292 | #endif |
| 293 | #if HAVE_STRING_H |
| 294 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 295 | # include <memory.h> |
| 296 | # endif |
| 297 | # include <string.h> |
| 298 | #endif |
| 299 | #if HAVE_STRINGS_H |
| 300 | # include <strings.h> |
| 301 | #endif |
| 302 | #if HAVE_INTTYPES_H |
| 303 | # include <inttypes.h> |
| 304 | #else |
| 305 | # if HAVE_STDINT_H |
| 306 | # include <stdint.h> |
| 307 | # endif |
| 308 | #endif |
| 309 | #if HAVE_UNISTD_H |
| 310 | # include <unistd.h> |
| 311 | #endif" |
| 312 | |
| 313 | ac_subdirs_all="$ac_subdirs_all gdbtk" |
| 314 | ac_subdirs_all="$ac_subdirs_all multi-ice" |
| 315 | ac_subdirs_all="$ac_subdirs_all gdbserver" |
| 316 | 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs TARGET_OBS AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS' |
| 317 | ac_subst_files='host_makefile_frag' |
| 318 | |
| 319 | # Initialize some variables set by options. |
| 320 | ac_init_help= |
| 321 | ac_init_version=false |
| 322 | # The variables have the same names as the options, with |
| 323 | # dashes changed to underlines. |
| 324 | cache_file=/dev/null |
| 325 | exec_prefix=NONE |
| 326 | no_create= |
| 327 | no_recursion= |
| 328 | prefix=NONE |
| 329 | program_prefix=NONE |
| 330 | program_suffix=NONE |
| 331 | program_transform_name=s,x,x, |
| 332 | silent= |
| 333 | site= |
| 334 | srcdir= |
| 335 | verbose= |
| 336 | x_includes=NONE |
| 337 | x_libraries=NONE |
| 338 | |
| 339 | # Installation directory options. |
| 340 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 341 | # and all the variables that are supposed to be based on exec_prefix |
| 342 | # by default will actually change. |
| 343 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 344 | bindir='${exec_prefix}/bin' |
| 345 | sbindir='${exec_prefix}/sbin' |
| 346 | libexecdir='${exec_prefix}/libexec' |
| 347 | datadir='${prefix}/share' |
| 348 | sysconfdir='${prefix}/etc' |
| 349 | sharedstatedir='${prefix}/com' |
| 350 | localstatedir='${prefix}/var' |
| 351 | libdir='${exec_prefix}/lib' |
| 352 | includedir='${prefix}/include' |
| 353 | oldincludedir='/usr/include' |
| 354 | infodir='${prefix}/info' |
| 355 | mandir='${prefix}/man' |
| 356 | |
| 357 | ac_prev= |
| 358 | for ac_option |
| 359 | do |
| 360 | # If the previous option needs an argument, assign it. |
| 361 | if test -n "$ac_prev"; then |
| 362 | eval "$ac_prev=\$ac_option" |
| 363 | ac_prev= |
| 364 | continue |
| 365 | fi |
| 366 | |
| 367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 368 | |
| 369 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 370 | |
| 371 | case $ac_option in |
| 372 | |
| 373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 374 | ac_prev=bindir ;; |
| 375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 376 | bindir=$ac_optarg ;; |
| 377 | |
| 378 | -build | --build | --buil | --bui | --bu) |
| 379 | ac_prev=build_alias ;; |
| 380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 381 | build_alias=$ac_optarg ;; |
| 382 | |
| 383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 385 | ac_prev=cache_file ;; |
| 386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 388 | cache_file=$ac_optarg ;; |
| 389 | |
| 390 | --config-cache | -C) |
| 391 | cache_file=config.cache ;; |
| 392 | |
| 393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 394 | ac_prev=datadir ;; |
| 395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 396 | | --da=*) |
| 397 | datadir=$ac_optarg ;; |
| 398 | |
| 399 | -disable-* | --disable-*) |
| 400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 401 | # Reject names that are not valid shell variable names. |
| 402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 404 | { (exit 1); exit 1; }; } |
| 405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 406 | eval "enable_$ac_feature=no" ;; |
| 407 | |
| 408 | -enable-* | --enable-*) |
| 409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 410 | # Reject names that are not valid shell variable names. |
| 411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 413 | { (exit 1); exit 1; }; } |
| 414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 415 | case $ac_option in |
| 416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 417 | *) ac_optarg=yes ;; |
| 418 | esac |
| 419 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 420 | |
| 421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 423 | | --exec | --exe | --ex) |
| 424 | ac_prev=exec_prefix ;; |
| 425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 427 | | --exec=* | --exe=* | --ex=*) |
| 428 | exec_prefix=$ac_optarg ;; |
| 429 | |
| 430 | -gas | --gas | --ga | --g) |
| 431 | # Obsolete; use --with-gas. |
| 432 | with_gas=yes ;; |
| 433 | |
| 434 | -help | --help | --hel | --he | -h) |
| 435 | ac_init_help=long ;; |
| 436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 437 | ac_init_help=recursive ;; |
| 438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 439 | ac_init_help=short ;; |
| 440 | |
| 441 | -host | --host | --hos | --ho) |
| 442 | ac_prev=host_alias ;; |
| 443 | -host=* | --host=* | --hos=* | --ho=*) |
| 444 | host_alias=$ac_optarg ;; |
| 445 | |
| 446 | -includedir | --includedir | --includedi | --included | --include \ |
| 447 | | --includ | --inclu | --incl | --inc) |
| 448 | ac_prev=includedir ;; |
| 449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 450 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 451 | includedir=$ac_optarg ;; |
| 452 | |
| 453 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 454 | ac_prev=infodir ;; |
| 455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 456 | infodir=$ac_optarg ;; |
| 457 | |
| 458 | -libdir | --libdir | --libdi | --libd) |
| 459 | ac_prev=libdir ;; |
| 460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 461 | libdir=$ac_optarg ;; |
| 462 | |
| 463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 464 | | --libexe | --libex | --libe) |
| 465 | ac_prev=libexecdir ;; |
| 466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 467 | | --libexe=* | --libex=* | --libe=*) |
| 468 | libexecdir=$ac_optarg ;; |
| 469 | |
| 470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 471 | | --localstate | --localstat | --localsta | --localst \ |
| 472 | | --locals | --local | --loca | --loc | --lo) |
| 473 | ac_prev=localstatedir ;; |
| 474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 477 | localstatedir=$ac_optarg ;; |
| 478 | |
| 479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 480 | ac_prev=mandir ;; |
| 481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 482 | mandir=$ac_optarg ;; |
| 483 | |
| 484 | -nfp | --nfp | --nf) |
| 485 | # Obsolete; use --without-fp. |
| 486 | with_fp=no ;; |
| 487 | |
| 488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 489 | | --no-cr | --no-c | -n) |
| 490 | no_create=yes ;; |
| 491 | |
| 492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 494 | no_recursion=yes ;; |
| 495 | |
| 496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 498 | | --oldin | --oldi | --old | --ol | --o) |
| 499 | ac_prev=oldincludedir ;; |
| 500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 503 | oldincludedir=$ac_optarg ;; |
| 504 | |
| 505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 506 | ac_prev=prefix ;; |
| 507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 508 | prefix=$ac_optarg ;; |
| 509 | |
| 510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 511 | | --program-pre | --program-pr | --program-p) |
| 512 | ac_prev=program_prefix ;; |
| 513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 515 | program_prefix=$ac_optarg ;; |
| 516 | |
| 517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 518 | | --program-suf | --program-su | --program-s) |
| 519 | ac_prev=program_suffix ;; |
| 520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 522 | program_suffix=$ac_optarg ;; |
| 523 | |
| 524 | -program-transform-name | --program-transform-name \ |
| 525 | | --program-transform-nam | --program-transform-na \ |
| 526 | | --program-transform-n | --program-transform- \ |
| 527 | | --program-transform | --program-transfor \ |
| 528 | | --program-transfo | --program-transf \ |
| 529 | | --program-trans | --program-tran \ |
| 530 | | --progr-tra | --program-tr | --program-t) |
| 531 | ac_prev=program_transform_name ;; |
| 532 | -program-transform-name=* | --program-transform-name=* \ |
| 533 | | --program-transform-nam=* | --program-transform-na=* \ |
| 534 | | --program-transform-n=* | --program-transform-=* \ |
| 535 | | --program-transform=* | --program-transfor=* \ |
| 536 | | --program-transfo=* | --program-transf=* \ |
| 537 | | --program-trans=* | --program-tran=* \ |
| 538 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 539 | program_transform_name=$ac_optarg ;; |
| 540 | |
| 541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 542 | | -silent | --silent | --silen | --sile | --sil) |
| 543 | silent=yes ;; |
| 544 | |
| 545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 546 | ac_prev=sbindir ;; |
| 547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 548 | | --sbi=* | --sb=*) |
| 549 | sbindir=$ac_optarg ;; |
| 550 | |
| 551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 553 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 554 | | --sha | --sh) |
| 555 | ac_prev=sharedstatedir ;; |
| 556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 559 | | --sha=* | --sh=*) |
| 560 | sharedstatedir=$ac_optarg ;; |
| 561 | |
| 562 | -site | --site | --sit) |
| 563 | ac_prev=site ;; |
| 564 | -site=* | --site=* | --sit=*) |
| 565 | site=$ac_optarg ;; |
| 566 | |
| 567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 568 | ac_prev=srcdir ;; |
| 569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 570 | srcdir=$ac_optarg ;; |
| 571 | |
| 572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 573 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 574 | ac_prev=sysconfdir ;; |
| 575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 577 | sysconfdir=$ac_optarg ;; |
| 578 | |
| 579 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 580 | ac_prev=target_alias ;; |
| 581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 582 | target_alias=$ac_optarg ;; |
| 583 | |
| 584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 585 | verbose=yes ;; |
| 586 | |
| 587 | -version | --version | --versio | --versi | --vers | -V) |
| 588 | ac_init_version=: ;; |
| 589 | |
| 590 | -with-* | --with-*) |
| 591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 592 | # Reject names that are not valid shell variable names. |
| 593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 595 | { (exit 1); exit 1; }; } |
| 596 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 597 | case $ac_option in |
| 598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 599 | *) ac_optarg=yes ;; |
| 600 | esac |
| 601 | eval "with_$ac_package='$ac_optarg'" ;; |
| 602 | |
| 603 | -without-* | --without-*) |
| 604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 605 | # Reject names that are not valid shell variable names. |
| 606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 608 | { (exit 1); exit 1; }; } |
| 609 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 610 | eval "with_$ac_package=no" ;; |
| 611 | |
| 612 | --x) |
| 613 | # Obsolete; use --with-x. |
| 614 | with_x=yes ;; |
| 615 | |
| 616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 617 | | --x-incl | --x-inc | --x-in | --x-i) |
| 618 | ac_prev=x_includes ;; |
| 619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 621 | x_includes=$ac_optarg ;; |
| 622 | |
| 623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 625 | ac_prev=x_libraries ;; |
| 626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 628 | x_libraries=$ac_optarg ;; |
| 629 | |
| 630 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 631 | Try \`$0 --help' for more information." >&2 |
| 632 | { (exit 1); exit 1; }; } |
| 633 | ;; |
| 634 | |
| 635 | *=*) |
| 636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 637 | # Reject names that are not valid shell variable names. |
| 638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 640 | { (exit 1); exit 1; }; } |
| 641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 642 | eval "$ac_envvar='$ac_optarg'" |
| 643 | export $ac_envvar ;; |
| 644 | |
| 645 | *) |
| 646 | # FIXME: should be removed in autoconf 3.0. |
| 647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 651 | ;; |
| 652 | |
| 653 | esac |
| 654 | done |
| 655 | |
| 656 | if test -n "$ac_prev"; then |
| 657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 658 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 659 | { (exit 1); exit 1; }; } |
| 660 | fi |
| 661 | |
| 662 | # Be sure to have absolute paths. |
| 663 | for ac_var in exec_prefix prefix |
| 664 | do |
| 665 | eval ac_val=$`echo $ac_var` |
| 666 | case $ac_val in |
| 667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 669 | { (exit 1); exit 1; }; };; |
| 670 | esac |
| 671 | done |
| 672 | |
| 673 | # Be sure to have absolute paths. |
| 674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 675 | localstatedir libdir includedir oldincludedir infodir mandir |
| 676 | do |
| 677 | eval ac_val=$`echo $ac_var` |
| 678 | case $ac_val in |
| 679 | [\\/$]* | ?:[\\/]* ) ;; |
| 680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 681 | { (exit 1); exit 1; }; };; |
| 682 | esac |
| 683 | done |
| 684 | |
| 685 | # There might be people who depend on the old broken behavior: `$host' |
| 686 | # used to hold the argument of --host etc. |
| 687 | # FIXME: To remove some day. |
| 688 | build=$build_alias |
| 689 | host=$host_alias |
| 690 | target=$target_alias |
| 691 | |
| 692 | # FIXME: To remove some day. |
| 693 | if test "x$host_alias" != x; then |
| 694 | if test "x$build_alias" = x; then |
| 695 | cross_compiling=maybe |
| 696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 697 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 698 | elif test "x$build_alias" != "x$host_alias"; then |
| 699 | cross_compiling=yes |
| 700 | fi |
| 701 | fi |
| 702 | |
| 703 | ac_tool_prefix= |
| 704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 705 | |
| 706 | test "$silent" = yes && exec 6>/dev/null |
| 707 | |
| 708 | |
| 709 | # Find the source files, if location was not specified. |
| 710 | if test -z "$srcdir"; then |
| 711 | ac_srcdir_defaulted=yes |
| 712 | # Try the directory containing this script, then its parent. |
| 713 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 715 | X"$0" : 'X\(//\)[^/]' \| \ |
| 716 | X"$0" : 'X\(//\)$' \| \ |
| 717 | X"$0" : 'X\(/\)' \| \ |
| 718 | . : '\(.\)' 2>/dev/null || |
| 719 | echo X"$0" | |
| 720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 722 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 723 | /^X\(\/\).*/{ s//\1/; q; } |
| 724 | s/.*/./; q'` |
| 725 | srcdir=$ac_confdir |
| 726 | if test ! -r $srcdir/$ac_unique_file; then |
| 727 | srcdir=.. |
| 728 | fi |
| 729 | else |
| 730 | ac_srcdir_defaulted=no |
| 731 | fi |
| 732 | if test ! -r $srcdir/$ac_unique_file; then |
| 733 | if test "$ac_srcdir_defaulted" = yes; then |
| 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 735 | { (exit 1); exit 1; }; } |
| 736 | else |
| 737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 738 | { (exit 1); exit 1; }; } |
| 739 | fi |
| 740 | fi |
| 741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 743 | { (exit 1); exit 1; }; } |
| 744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 745 | ac_env_build_alias_set=${build_alias+set} |
| 746 | ac_env_build_alias_value=$build_alias |
| 747 | ac_cv_env_build_alias_set=${build_alias+set} |
| 748 | ac_cv_env_build_alias_value=$build_alias |
| 749 | ac_env_host_alias_set=${host_alias+set} |
| 750 | ac_env_host_alias_value=$host_alias |
| 751 | ac_cv_env_host_alias_set=${host_alias+set} |
| 752 | ac_cv_env_host_alias_value=$host_alias |
| 753 | ac_env_target_alias_set=${target_alias+set} |
| 754 | ac_env_target_alias_value=$target_alias |
| 755 | ac_cv_env_target_alias_set=${target_alias+set} |
| 756 | ac_cv_env_target_alias_value=$target_alias |
| 757 | ac_env_CC_set=${CC+set} |
| 758 | ac_env_CC_value=$CC |
| 759 | ac_cv_env_CC_set=${CC+set} |
| 760 | ac_cv_env_CC_value=$CC |
| 761 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 762 | ac_env_CFLAGS_value=$CFLAGS |
| 763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 764 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 765 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 766 | ac_env_LDFLAGS_value=$LDFLAGS |
| 767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 768 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 770 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 773 | ac_env_CPP_set=${CPP+set} |
| 774 | ac_env_CPP_value=$CPP |
| 775 | ac_cv_env_CPP_set=${CPP+set} |
| 776 | ac_cv_env_CPP_value=$CPP |
| 777 | |
| 778 | # |
| 779 | # Report the --help message. |
| 780 | # |
| 781 | if test "$ac_init_help" = "long"; then |
| 782 | # Omit some internal or obsolete options to make the list less imposing. |
| 783 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 784 | cat <<_ACEOF |
| 785 | \`configure' configures this package to adapt to many kinds of systems. |
| 786 | |
| 787 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 788 | |
| 789 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 790 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 791 | |
| 792 | Defaults for the options are specified in brackets. |
| 793 | |
| 794 | Configuration: |
| 795 | -h, --help display this help and exit |
| 796 | --help=short display options specific to this package |
| 797 | --help=recursive display the short help of all the included packages |
| 798 | -V, --version display version information and exit |
| 799 | -q, --quiet, --silent do not print \`checking...' messages |
| 800 | --cache-file=FILE cache test results in FILE [disabled] |
| 801 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 802 | -n, --no-create do not create output files |
| 803 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 804 | |
| 805 | _ACEOF |
| 806 | |
| 807 | cat <<_ACEOF |
| 808 | Installation directories: |
| 809 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 810 | [$ac_default_prefix] |
| 811 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 812 | [PREFIX] |
| 813 | |
| 814 | By default, \`make install' will install all the files in |
| 815 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 816 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 817 | for instance \`--prefix=\$HOME'. |
| 818 | |
| 819 | For better control, use the options below. |
| 820 | |
| 821 | Fine tuning of the installation directories: |
| 822 | --bindir=DIR user executables [EPREFIX/bin] |
| 823 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 824 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 825 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 826 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 827 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 828 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 829 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 830 | --includedir=DIR C header files [PREFIX/include] |
| 831 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 832 | --infodir=DIR info documentation [PREFIX/info] |
| 833 | --mandir=DIR man documentation [PREFIX/man] |
| 834 | _ACEOF |
| 835 | |
| 836 | cat <<\_ACEOF |
| 837 | |
| 838 | Program names: |
| 839 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 840 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 841 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 842 | |
| 843 | X features: |
| 844 | --x-includes=DIR X include files are in DIR |
| 845 | --x-libraries=DIR X library files are in DIR |
| 846 | |
| 847 | System types: |
| 848 | --build=BUILD configure for building on BUILD [guessed] |
| 849 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 850 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 851 | _ACEOF |
| 852 | fi |
| 853 | |
| 854 | if test -n "$ac_init_help"; then |
| 855 | |
| 856 | cat <<\_ACEOF |
| 857 | |
| 858 | Optional Features: |
| 859 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 860 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 861 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 862 | (and sometimes confusing) to the casual installer |
| 863 | --enable-targets alternative target configurations |
| 864 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) |
| 865 | --disable-gdbcli disable command-line interface (CLI) |
| 866 | --disable-gdbmi disable machine-interface (MI) |
| 867 | --enable-tui enable full-screen terminal user interface (TUI) |
| 868 | --enable-gdbtk enable gdbtk graphical user interface (GUI) |
| 869 | --enable-profiling enable profiling of GDB |
| 870 | --disable-rpath do not hardcode runtime library paths |
| 871 | --enable-werror treat compile warnings as errors |
| 872 | --enable-build-warnings Enable build-time compiler warnings if gcc is used |
| 873 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used |
| 874 | --enable-sim Link gdb with simulator |
| 875 | --enable-multi-ice build the multi-ice-gdb-server |
| 876 | |
| 877 | Optional Packages: |
| 878 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 879 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 880 | --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug |
| 881 | --with-libunwind Use libunwind frame unwinding support |
| 882 | --with-system-readline use installed readline library |
| 883 | --with-expat include expat support (auto/yes/no) |
| 884 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 885 | --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib |
| 886 | --without-libexpat-prefix don't search for libexpat in includedir and libdir |
| 887 | --without-included-regex don't use included regex; this is the default |
| 888 | on systems with version 2 of the GNU C library |
| 889 | (use with caution on other system) |
| 890 | --with-sysroot=DIR Search for usr/lib et al within DIR. |
| 891 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh) |
| 892 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh) |
| 893 | --with-tclinclude=DIR Directory where tcl private headers are |
| 894 | --with-tkinclude=DIR Directory where tk private headers are |
| 895 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh) |
| 896 | --with-itkconfig Directory containing itk configuration (itkConfig.sh) |
| 897 | --with-x use the X Window System |
| 898 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib |
| 899 | |
| 900 | Some influential environment variables: |
| 901 | CC C compiler command |
| 902 | CFLAGS C compiler flags |
| 903 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 904 | nonstandard directory <lib dir> |
| 905 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 906 | headers in a nonstandard directory <include dir> |
| 907 | CPP C preprocessor |
| 908 | |
| 909 | Use these variables to override the choices made by `configure' or to help |
| 910 | it to find libraries and programs with nonstandard names/locations. |
| 911 | |
| 912 | _ACEOF |
| 913 | fi |
| 914 | |
| 915 | if test "$ac_init_help" = "recursive"; then |
| 916 | # If there are subdirs, report their specific --help. |
| 917 | ac_popdir=`pwd` |
| 918 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 919 | test -d $ac_dir || continue |
| 920 | ac_builddir=. |
| 921 | |
| 922 | if test "$ac_dir" != .; then |
| 923 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 924 | # A "../" for each directory in $ac_dir_suffix. |
| 925 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 926 | else |
| 927 | ac_dir_suffix= ac_top_builddir= |
| 928 | fi |
| 929 | |
| 930 | case $srcdir in |
| 931 | .) # No --srcdir option. We are building in place. |
| 932 | ac_srcdir=. |
| 933 | if test -z "$ac_top_builddir"; then |
| 934 | ac_top_srcdir=. |
| 935 | else |
| 936 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 937 | fi ;; |
| 938 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 939 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 940 | ac_top_srcdir=$srcdir ;; |
| 941 | *) # Relative path. |
| 942 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 943 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 944 | esac |
| 945 | |
| 946 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 947 | # the directories may not exist. |
| 948 | case `pwd` in |
| 949 | .) ac_abs_builddir="$ac_dir";; |
| 950 | *) |
| 951 | case "$ac_dir" in |
| 952 | .) ac_abs_builddir=`pwd`;; |
| 953 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 954 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 955 | esac;; |
| 956 | esac |
| 957 | case $ac_abs_builddir in |
| 958 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 959 | *) |
| 960 | case ${ac_top_builddir}. in |
| 961 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 962 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 963 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 964 | esac;; |
| 965 | esac |
| 966 | case $ac_abs_builddir in |
| 967 | .) ac_abs_srcdir=$ac_srcdir;; |
| 968 | *) |
| 969 | case $ac_srcdir in |
| 970 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 971 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 972 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 973 | esac;; |
| 974 | esac |
| 975 | case $ac_abs_builddir in |
| 976 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 977 | *) |
| 978 | case $ac_top_srcdir in |
| 979 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 980 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 981 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 982 | esac;; |
| 983 | esac |
| 984 | |
| 985 | cd $ac_dir |
| 986 | # Check for guested configure; otherwise get Cygnus style configure. |
| 987 | if test -f $ac_srcdir/configure.gnu; then |
| 988 | echo |
| 989 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 990 | elif test -f $ac_srcdir/configure; then |
| 991 | echo |
| 992 | $SHELL $ac_srcdir/configure --help=recursive |
| 993 | elif test -f $ac_srcdir/configure.ac || |
| 994 | test -f $ac_srcdir/configure.in; then |
| 995 | echo |
| 996 | $ac_configure --help |
| 997 | else |
| 998 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 999 | fi |
| 1000 | cd $ac_popdir |
| 1001 | done |
| 1002 | fi |
| 1003 | |
| 1004 | test -n "$ac_init_help" && exit 0 |
| 1005 | if $ac_init_version; then |
| 1006 | cat <<\_ACEOF |
| 1007 | |
| 1008 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1009 | This configure script is free software; the Free Software Foundation |
| 1010 | gives unlimited permission to copy, distribute and modify it. |
| 1011 | _ACEOF |
| 1012 | exit 0 |
| 1013 | fi |
| 1014 | exec 5>config.log |
| 1015 | cat >&5 <<_ACEOF |
| 1016 | This file contains any messages produced by compilers while |
| 1017 | running configure, to aid debugging if configure makes a mistake. |
| 1018 | |
| 1019 | It was created by $as_me, which was |
| 1020 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1021 | |
| 1022 | $ $0 $@ |
| 1023 | |
| 1024 | _ACEOF |
| 1025 | { |
| 1026 | cat <<_ASUNAME |
| 1027 | ## --------- ## |
| 1028 | ## Platform. ## |
| 1029 | ## --------- ## |
| 1030 | |
| 1031 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1032 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1033 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1034 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1035 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1036 | |
| 1037 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1038 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1039 | |
| 1040 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1041 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1042 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1043 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1044 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1045 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1046 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1047 | |
| 1048 | _ASUNAME |
| 1049 | |
| 1050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1051 | for as_dir in $PATH |
| 1052 | do |
| 1053 | IFS=$as_save_IFS |
| 1054 | test -z "$as_dir" && as_dir=. |
| 1055 | echo "PATH: $as_dir" |
| 1056 | done |
| 1057 | |
| 1058 | } >&5 |
| 1059 | |
| 1060 | cat >&5 <<_ACEOF |
| 1061 | |
| 1062 | |
| 1063 | ## ----------- ## |
| 1064 | ## Core tests. ## |
| 1065 | ## ----------- ## |
| 1066 | |
| 1067 | _ACEOF |
| 1068 | |
| 1069 | |
| 1070 | # Keep a trace of the command line. |
| 1071 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1072 | # Strip out --silent because we don't want to record it for future runs. |
| 1073 | # Also quote any args containing shell meta-characters. |
| 1074 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1075 | ac_configure_args= |
| 1076 | ac_configure_args0= |
| 1077 | ac_configure_args1= |
| 1078 | ac_sep= |
| 1079 | ac_must_keep_next=false |
| 1080 | for ac_pass in 1 2 |
| 1081 | do |
| 1082 | for ac_arg |
| 1083 | do |
| 1084 | case $ac_arg in |
| 1085 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1086 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1087 | | -silent | --silent | --silen | --sile | --sil) |
| 1088 | continue ;; |
| 1089 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1090 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1091 | esac |
| 1092 | case $ac_pass in |
| 1093 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1094 | 2) |
| 1095 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1096 | if test $ac_must_keep_next = true; then |
| 1097 | ac_must_keep_next=false # Got value, back to normal. |
| 1098 | else |
| 1099 | case $ac_arg in |
| 1100 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1101 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1102 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1103 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1104 | case "$ac_configure_args0 " in |
| 1105 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1106 | esac |
| 1107 | ;; |
| 1108 | -* ) ac_must_keep_next=true ;; |
| 1109 | esac |
| 1110 | fi |
| 1111 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1112 | # Get rid of the leading space. |
| 1113 | ac_sep=" " |
| 1114 | ;; |
| 1115 | esac |
| 1116 | done |
| 1117 | done |
| 1118 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1119 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1120 | |
| 1121 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1122 | # config.log. We remove comments because anyway the quotes in there |
| 1123 | # would cause problems or look ugly. |
| 1124 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1125 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1126 | trap 'exit_status=$? |
| 1127 | # Save into config.log some information that might help in debugging. |
| 1128 | { |
| 1129 | echo |
| 1130 | |
| 1131 | cat <<\_ASBOX |
| 1132 | ## ---------------- ## |
| 1133 | ## Cache variables. ## |
| 1134 | ## ---------------- ## |
| 1135 | _ASBOX |
| 1136 | echo |
| 1137 | # The following way of writing the cache mishandles newlines in values, |
| 1138 | { |
| 1139 | (set) 2>&1 | |
| 1140 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1141 | *ac_space=\ *) |
| 1142 | sed -n \ |
| 1143 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1144 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1145 | ;; |
| 1146 | *) |
| 1147 | sed -n \ |
| 1148 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1149 | ;; |
| 1150 | esac; |
| 1151 | } |
| 1152 | echo |
| 1153 | |
| 1154 | cat <<\_ASBOX |
| 1155 | ## ----------------- ## |
| 1156 | ## Output variables. ## |
| 1157 | ## ----------------- ## |
| 1158 | _ASBOX |
| 1159 | echo |
| 1160 | for ac_var in $ac_subst_vars |
| 1161 | do |
| 1162 | eval ac_val=$`echo $ac_var` |
| 1163 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1164 | done | sort |
| 1165 | echo |
| 1166 | |
| 1167 | if test -n "$ac_subst_files"; then |
| 1168 | cat <<\_ASBOX |
| 1169 | ## ------------- ## |
| 1170 | ## Output files. ## |
| 1171 | ## ------------- ## |
| 1172 | _ASBOX |
| 1173 | echo |
| 1174 | for ac_var in $ac_subst_files |
| 1175 | do |
| 1176 | eval ac_val=$`echo $ac_var` |
| 1177 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1178 | done | sort |
| 1179 | echo |
| 1180 | fi |
| 1181 | |
| 1182 | if test -s confdefs.h; then |
| 1183 | cat <<\_ASBOX |
| 1184 | ## ----------- ## |
| 1185 | ## confdefs.h. ## |
| 1186 | ## ----------- ## |
| 1187 | _ASBOX |
| 1188 | echo |
| 1189 | sed "/^$/d" confdefs.h | sort |
| 1190 | echo |
| 1191 | fi |
| 1192 | test "$ac_signal" != 0 && |
| 1193 | echo "$as_me: caught signal $ac_signal" |
| 1194 | echo "$as_me: exit $exit_status" |
| 1195 | } >&5 |
| 1196 | rm -f core *.core && |
| 1197 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1198 | exit $exit_status |
| 1199 | ' 0 |
| 1200 | for ac_signal in 1 2 13 15; do |
| 1201 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1202 | done |
| 1203 | ac_signal=0 |
| 1204 | |
| 1205 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1206 | rm -rf conftest* confdefs.h |
| 1207 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1208 | echo >confdefs.h |
| 1209 | |
| 1210 | # Predefined preprocessor variables. |
| 1211 | |
| 1212 | cat >>confdefs.h <<_ACEOF |
| 1213 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1214 | _ACEOF |
| 1215 | |
| 1216 | |
| 1217 | cat >>confdefs.h <<_ACEOF |
| 1218 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1219 | _ACEOF |
| 1220 | |
| 1221 | |
| 1222 | cat >>confdefs.h <<_ACEOF |
| 1223 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1224 | _ACEOF |
| 1225 | |
| 1226 | |
| 1227 | cat >>confdefs.h <<_ACEOF |
| 1228 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1229 | _ACEOF |
| 1230 | |
| 1231 | |
| 1232 | cat >>confdefs.h <<_ACEOF |
| 1233 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1234 | _ACEOF |
| 1235 | |
| 1236 | |
| 1237 | # Let the site file select an alternate cache file if it wants to. |
| 1238 | # Prefer explicitly selected file to automatically selected ones. |
| 1239 | if test -z "$CONFIG_SITE"; then |
| 1240 | if test "x$prefix" != xNONE; then |
| 1241 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1242 | else |
| 1243 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1244 | fi |
| 1245 | fi |
| 1246 | for ac_site_file in $CONFIG_SITE; do |
| 1247 | if test -r "$ac_site_file"; then |
| 1248 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1249 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1250 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1251 | . "$ac_site_file" |
| 1252 | fi |
| 1253 | done |
| 1254 | |
| 1255 | if test -r "$cache_file"; then |
| 1256 | # Some versions of bash will fail to source /dev/null (special |
| 1257 | # files actually), so we avoid doing that. |
| 1258 | if test -f "$cache_file"; then |
| 1259 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1260 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1261 | case $cache_file in |
| 1262 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1263 | *) . ./$cache_file;; |
| 1264 | esac |
| 1265 | fi |
| 1266 | else |
| 1267 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1268 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1269 | >$cache_file |
| 1270 | fi |
| 1271 | |
| 1272 | # Check that the precious variables saved in the cache have kept the same |
| 1273 | # value. |
| 1274 | ac_cache_corrupted=false |
| 1275 | for ac_var in `(set) 2>&1 | |
| 1276 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1277 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1278 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1279 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1280 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1281 | case $ac_old_set,$ac_new_set in |
| 1282 | set,) |
| 1283 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1284 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1285 | ac_cache_corrupted=: ;; |
| 1286 | ,set) |
| 1287 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1288 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1289 | ac_cache_corrupted=: ;; |
| 1290 | ,);; |
| 1291 | *) |
| 1292 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1293 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1294 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1295 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1296 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1297 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1298 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1299 | ac_cache_corrupted=: |
| 1300 | fi;; |
| 1301 | esac |
| 1302 | # Pass precious variables to config.status. |
| 1303 | if test "$ac_new_set" = set; then |
| 1304 | case $ac_new_val in |
| 1305 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1306 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1307 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1308 | esac |
| 1309 | case " $ac_configure_args " in |
| 1310 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1311 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1312 | esac |
| 1313 | fi |
| 1314 | done |
| 1315 | if $ac_cache_corrupted; then |
| 1316 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1317 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1318 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1319 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1320 | { (exit 1); exit 1; }; } |
| 1321 | fi |
| 1322 | |
| 1323 | ac_ext=c |
| 1324 | ac_cpp='$CPP $CPPFLAGS' |
| 1325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | |
| 1344 | |
| 1345 | |
| 1346 | |
| 1347 | ac_config_headers="$ac_config_headers config.h:config.in" |
| 1348 | |
| 1349 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 1350 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 1351 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 1352 | if test "${enable_maintainer_mode+set}" = set; then |
| 1353 | enableval="$enable_maintainer_mode" |
| 1354 | USE_MAINTAINER_MODE=$enableval |
| 1355 | else |
| 1356 | USE_MAINTAINER_MODE=no |
| 1357 | fi; |
| 1358 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 1359 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 1360 | |
| 1361 | |
| 1362 | if test $USE_MAINTAINER_MODE = yes; then |
| 1363 | MAINTAINER_MODE_TRUE= |
| 1364 | MAINTAINER_MODE_FALSE='#' |
| 1365 | else |
| 1366 | MAINTAINER_MODE_TRUE='#' |
| 1367 | MAINTAINER_MODE_FALSE= |
| 1368 | fi |
| 1369 | |
| 1370 | MAINT=$MAINTAINER_MODE_TRUE |
| 1371 | |
| 1372 | |
| 1373 | |
| 1374 | ac_ext=c |
| 1375 | ac_cpp='$CPP $CPPFLAGS' |
| 1376 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1377 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1378 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1379 | if test -n "$ac_tool_prefix"; then |
| 1380 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1381 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1382 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1384 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1386 | else |
| 1387 | if test -n "$CC"; then |
| 1388 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1389 | else |
| 1390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1391 | for as_dir in $PATH |
| 1392 | do |
| 1393 | IFS=$as_save_IFS |
| 1394 | test -z "$as_dir" && as_dir=. |
| 1395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1396 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1397 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1399 | break 2 |
| 1400 | fi |
| 1401 | done |
| 1402 | done |
| 1403 | |
| 1404 | fi |
| 1405 | fi |
| 1406 | CC=$ac_cv_prog_CC |
| 1407 | if test -n "$CC"; then |
| 1408 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1409 | echo "${ECHO_T}$CC" >&6 |
| 1410 | else |
| 1411 | echo "$as_me:$LINENO: result: no" >&5 |
| 1412 | echo "${ECHO_T}no" >&6 |
| 1413 | fi |
| 1414 | |
| 1415 | fi |
| 1416 | if test -z "$ac_cv_prog_CC"; then |
| 1417 | ac_ct_CC=$CC |
| 1418 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1419 | set dummy gcc; ac_word=$2 |
| 1420 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1422 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1424 | else |
| 1425 | if test -n "$ac_ct_CC"; then |
| 1426 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1427 | else |
| 1428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1429 | for as_dir in $PATH |
| 1430 | do |
| 1431 | IFS=$as_save_IFS |
| 1432 | test -z "$as_dir" && as_dir=. |
| 1433 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1434 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1435 | ac_cv_prog_ac_ct_CC="gcc" |
| 1436 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1437 | break 2 |
| 1438 | fi |
| 1439 | done |
| 1440 | done |
| 1441 | |
| 1442 | fi |
| 1443 | fi |
| 1444 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1445 | if test -n "$ac_ct_CC"; then |
| 1446 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1447 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1448 | else |
| 1449 | echo "$as_me:$LINENO: result: no" >&5 |
| 1450 | echo "${ECHO_T}no" >&6 |
| 1451 | fi |
| 1452 | |
| 1453 | CC=$ac_ct_CC |
| 1454 | else |
| 1455 | CC="$ac_cv_prog_CC" |
| 1456 | fi |
| 1457 | |
| 1458 | if test -z "$CC"; then |
| 1459 | if test -n "$ac_tool_prefix"; then |
| 1460 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1461 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1462 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1464 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1466 | else |
| 1467 | if test -n "$CC"; then |
| 1468 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1469 | else |
| 1470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1471 | for as_dir in $PATH |
| 1472 | do |
| 1473 | IFS=$as_save_IFS |
| 1474 | test -z "$as_dir" && as_dir=. |
| 1475 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1476 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1477 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1478 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1479 | break 2 |
| 1480 | fi |
| 1481 | done |
| 1482 | done |
| 1483 | |
| 1484 | fi |
| 1485 | fi |
| 1486 | CC=$ac_cv_prog_CC |
| 1487 | if test -n "$CC"; then |
| 1488 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1489 | echo "${ECHO_T}$CC" >&6 |
| 1490 | else |
| 1491 | echo "$as_me:$LINENO: result: no" >&5 |
| 1492 | echo "${ECHO_T}no" >&6 |
| 1493 | fi |
| 1494 | |
| 1495 | fi |
| 1496 | if test -z "$ac_cv_prog_CC"; then |
| 1497 | ac_ct_CC=$CC |
| 1498 | # Extract the first word of "cc", so it can be a program name with args. |
| 1499 | set dummy cc; ac_word=$2 |
| 1500 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1502 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1504 | else |
| 1505 | if test -n "$ac_ct_CC"; then |
| 1506 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1507 | else |
| 1508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1509 | for as_dir in $PATH |
| 1510 | do |
| 1511 | IFS=$as_save_IFS |
| 1512 | test -z "$as_dir" && as_dir=. |
| 1513 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1514 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1515 | ac_cv_prog_ac_ct_CC="cc" |
| 1516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1517 | break 2 |
| 1518 | fi |
| 1519 | done |
| 1520 | done |
| 1521 | |
| 1522 | fi |
| 1523 | fi |
| 1524 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1525 | if test -n "$ac_ct_CC"; then |
| 1526 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1527 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1528 | else |
| 1529 | echo "$as_me:$LINENO: result: no" >&5 |
| 1530 | echo "${ECHO_T}no" >&6 |
| 1531 | fi |
| 1532 | |
| 1533 | CC=$ac_ct_CC |
| 1534 | else |
| 1535 | CC="$ac_cv_prog_CC" |
| 1536 | fi |
| 1537 | |
| 1538 | fi |
| 1539 | if test -z "$CC"; then |
| 1540 | # Extract the first word of "cc", so it can be a program name with args. |
| 1541 | set dummy cc; ac_word=$2 |
| 1542 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1544 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1546 | else |
| 1547 | if test -n "$CC"; then |
| 1548 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1549 | else |
| 1550 | ac_prog_rejected=no |
| 1551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1552 | for as_dir in $PATH |
| 1553 | do |
| 1554 | IFS=$as_save_IFS |
| 1555 | test -z "$as_dir" && as_dir=. |
| 1556 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1558 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1559 | ac_prog_rejected=yes |
| 1560 | continue |
| 1561 | fi |
| 1562 | ac_cv_prog_CC="cc" |
| 1563 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1564 | break 2 |
| 1565 | fi |
| 1566 | done |
| 1567 | done |
| 1568 | |
| 1569 | if test $ac_prog_rejected = yes; then |
| 1570 | # We found a bogon in the path, so make sure we never use it. |
| 1571 | set dummy $ac_cv_prog_CC |
| 1572 | shift |
| 1573 | if test $# != 0; then |
| 1574 | # We chose a different compiler from the bogus one. |
| 1575 | # However, it has the same basename, so the bogon will be chosen |
| 1576 | # first if we set CC to just the basename; use the full file name. |
| 1577 | shift |
| 1578 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1579 | fi |
| 1580 | fi |
| 1581 | fi |
| 1582 | fi |
| 1583 | CC=$ac_cv_prog_CC |
| 1584 | if test -n "$CC"; then |
| 1585 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1586 | echo "${ECHO_T}$CC" >&6 |
| 1587 | else |
| 1588 | echo "$as_me:$LINENO: result: no" >&5 |
| 1589 | echo "${ECHO_T}no" >&6 |
| 1590 | fi |
| 1591 | |
| 1592 | fi |
| 1593 | if test -z "$CC"; then |
| 1594 | if test -n "$ac_tool_prefix"; then |
| 1595 | for ac_prog in cl |
| 1596 | do |
| 1597 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1598 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1601 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1603 | else |
| 1604 | if test -n "$CC"; then |
| 1605 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1606 | else |
| 1607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1608 | for as_dir in $PATH |
| 1609 | do |
| 1610 | IFS=$as_save_IFS |
| 1611 | test -z "$as_dir" && as_dir=. |
| 1612 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1613 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1614 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1616 | break 2 |
| 1617 | fi |
| 1618 | done |
| 1619 | done |
| 1620 | |
| 1621 | fi |
| 1622 | fi |
| 1623 | CC=$ac_cv_prog_CC |
| 1624 | if test -n "$CC"; then |
| 1625 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1626 | echo "${ECHO_T}$CC" >&6 |
| 1627 | else |
| 1628 | echo "$as_me:$LINENO: result: no" >&5 |
| 1629 | echo "${ECHO_T}no" >&6 |
| 1630 | fi |
| 1631 | |
| 1632 | test -n "$CC" && break |
| 1633 | done |
| 1634 | fi |
| 1635 | if test -z "$CC"; then |
| 1636 | ac_ct_CC=$CC |
| 1637 | for ac_prog in cl |
| 1638 | do |
| 1639 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1640 | set dummy $ac_prog; ac_word=$2 |
| 1641 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1642 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1643 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1645 | else |
| 1646 | if test -n "$ac_ct_CC"; then |
| 1647 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1648 | else |
| 1649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1650 | for as_dir in $PATH |
| 1651 | do |
| 1652 | IFS=$as_save_IFS |
| 1653 | test -z "$as_dir" && as_dir=. |
| 1654 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1655 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1656 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1657 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1658 | break 2 |
| 1659 | fi |
| 1660 | done |
| 1661 | done |
| 1662 | |
| 1663 | fi |
| 1664 | fi |
| 1665 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1666 | if test -n "$ac_ct_CC"; then |
| 1667 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1668 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1669 | else |
| 1670 | echo "$as_me:$LINENO: result: no" >&5 |
| 1671 | echo "${ECHO_T}no" >&6 |
| 1672 | fi |
| 1673 | |
| 1674 | test -n "$ac_ct_CC" && break |
| 1675 | done |
| 1676 | |
| 1677 | CC=$ac_ct_CC |
| 1678 | fi |
| 1679 | |
| 1680 | fi |
| 1681 | |
| 1682 | |
| 1683 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1684 | See \`config.log' for more details." >&5 |
| 1685 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1686 | See \`config.log' for more details." >&2;} |
| 1687 | { (exit 1); exit 1; }; } |
| 1688 | |
| 1689 | # Provide some information about the compiler. |
| 1690 | echo "$as_me:$LINENO:" \ |
| 1691 | "checking for C compiler version" >&5 |
| 1692 | ac_compiler=`set X $ac_compile; echo $2` |
| 1693 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1694 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1695 | ac_status=$? |
| 1696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1697 | (exit $ac_status); } |
| 1698 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1699 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1700 | ac_status=$? |
| 1701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1702 | (exit $ac_status); } |
| 1703 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1704 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1705 | ac_status=$? |
| 1706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1707 | (exit $ac_status); } |
| 1708 | |
| 1709 | cat >conftest.$ac_ext <<_ACEOF |
| 1710 | /* confdefs.h. */ |
| 1711 | _ACEOF |
| 1712 | cat confdefs.h >>conftest.$ac_ext |
| 1713 | cat >>conftest.$ac_ext <<_ACEOF |
| 1714 | /* end confdefs.h. */ |
| 1715 | |
| 1716 | int |
| 1717 | main () |
| 1718 | { |
| 1719 | |
| 1720 | ; |
| 1721 | return 0; |
| 1722 | } |
| 1723 | _ACEOF |
| 1724 | ac_clean_files_save=$ac_clean_files |
| 1725 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1726 | # Try to create an executable without -o first, disregard a.out. |
| 1727 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1728 | # of exeext. |
| 1729 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1730 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1731 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1732 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1733 | (eval $ac_link_default) 2>&5 |
| 1734 | ac_status=$? |
| 1735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1736 | (exit $ac_status); }; then |
| 1737 | # Find the output, starting from the most likely. This scheme is |
| 1738 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1739 | # resort. |
| 1740 | |
| 1741 | # Be careful to initialize this variable, since it used to be cached. |
| 1742 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1743 | ac_cv_exeext= |
| 1744 | # b.out is created by i960 compilers. |
| 1745 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1746 | do |
| 1747 | test -f "$ac_file" || continue |
| 1748 | case $ac_file in |
| 1749 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1750 | ;; |
| 1751 | conftest.$ac_ext ) |
| 1752 | # This is the source file. |
| 1753 | ;; |
| 1754 | [ab].out ) |
| 1755 | # We found the default executable, but exeext='' is most |
| 1756 | # certainly right. |
| 1757 | break;; |
| 1758 | *.* ) |
| 1759 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1760 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1761 | # but it would be cool to find out if it's true. Does anybody |
| 1762 | # maintain Libtool? --akim. |
| 1763 | export ac_cv_exeext |
| 1764 | break;; |
| 1765 | * ) |
| 1766 | break;; |
| 1767 | esac |
| 1768 | done |
| 1769 | else |
| 1770 | echo "$as_me: failed program was:" >&5 |
| 1771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1772 | |
| 1773 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1774 | See \`config.log' for more details." >&5 |
| 1775 | echo "$as_me: error: C compiler cannot create executables |
| 1776 | See \`config.log' for more details." >&2;} |
| 1777 | { (exit 77); exit 77; }; } |
| 1778 | fi |
| 1779 | |
| 1780 | ac_exeext=$ac_cv_exeext |
| 1781 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1782 | echo "${ECHO_T}$ac_file" >&6 |
| 1783 | |
| 1784 | # Check the compiler produces executables we can run. If not, either |
| 1785 | # the compiler is broken, or we cross compile. |
| 1786 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1787 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1788 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1789 | # If not cross compiling, check that we can run a simple program. |
| 1790 | if test "$cross_compiling" != yes; then |
| 1791 | if { ac_try='./$ac_file' |
| 1792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1793 | (eval $ac_try) 2>&5 |
| 1794 | ac_status=$? |
| 1795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1796 | (exit $ac_status); }; }; then |
| 1797 | cross_compiling=no |
| 1798 | else |
| 1799 | if test "$cross_compiling" = maybe; then |
| 1800 | cross_compiling=yes |
| 1801 | else |
| 1802 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1803 | If you meant to cross compile, use \`--host'. |
| 1804 | See \`config.log' for more details." >&5 |
| 1805 | echo "$as_me: error: cannot run C compiled programs. |
| 1806 | If you meant to cross compile, use \`--host'. |
| 1807 | See \`config.log' for more details." >&2;} |
| 1808 | { (exit 1); exit 1; }; } |
| 1809 | fi |
| 1810 | fi |
| 1811 | fi |
| 1812 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1813 | echo "${ECHO_T}yes" >&6 |
| 1814 | |
| 1815 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1816 | ac_clean_files=$ac_clean_files_save |
| 1817 | # Check the compiler produces executables we can run. If not, either |
| 1818 | # the compiler is broken, or we cross compile. |
| 1819 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1820 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1821 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1822 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1823 | |
| 1824 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1825 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1827 | (eval $ac_link) 2>&5 |
| 1828 | ac_status=$? |
| 1829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1830 | (exit $ac_status); }; then |
| 1831 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1832 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1833 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1834 | # `rm'. |
| 1835 | for ac_file in conftest.exe conftest conftest.*; do |
| 1836 | test -f "$ac_file" || continue |
| 1837 | case $ac_file in |
| 1838 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1839 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1840 | export ac_cv_exeext |
| 1841 | break;; |
| 1842 | * ) break;; |
| 1843 | esac |
| 1844 | done |
| 1845 | else |
| 1846 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1847 | See \`config.log' for more details." >&5 |
| 1848 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1849 | See \`config.log' for more details." >&2;} |
| 1850 | { (exit 1); exit 1; }; } |
| 1851 | fi |
| 1852 | |
| 1853 | rm -f conftest$ac_cv_exeext |
| 1854 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1855 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1856 | |
| 1857 | rm -f conftest.$ac_ext |
| 1858 | EXEEXT=$ac_cv_exeext |
| 1859 | ac_exeext=$EXEEXT |
| 1860 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1861 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1862 | if test "${ac_cv_objext+set}" = set; then |
| 1863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1864 | else |
| 1865 | cat >conftest.$ac_ext <<_ACEOF |
| 1866 | /* confdefs.h. */ |
| 1867 | _ACEOF |
| 1868 | cat confdefs.h >>conftest.$ac_ext |
| 1869 | cat >>conftest.$ac_ext <<_ACEOF |
| 1870 | /* end confdefs.h. */ |
| 1871 | |
| 1872 | int |
| 1873 | main () |
| 1874 | { |
| 1875 | |
| 1876 | ; |
| 1877 | return 0; |
| 1878 | } |
| 1879 | _ACEOF |
| 1880 | rm -f conftest.o conftest.obj |
| 1881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1882 | (eval $ac_compile) 2>&5 |
| 1883 | ac_status=$? |
| 1884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1885 | (exit $ac_status); }; then |
| 1886 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1887 | case $ac_file in |
| 1888 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1889 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1890 | break;; |
| 1891 | esac |
| 1892 | done |
| 1893 | else |
| 1894 | echo "$as_me: failed program was:" >&5 |
| 1895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1896 | |
| 1897 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1898 | See \`config.log' for more details." >&5 |
| 1899 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1900 | See \`config.log' for more details." >&2;} |
| 1901 | { (exit 1); exit 1; }; } |
| 1902 | fi |
| 1903 | |
| 1904 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1905 | fi |
| 1906 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1907 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1908 | OBJEXT=$ac_cv_objext |
| 1909 | ac_objext=$OBJEXT |
| 1910 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1911 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1912 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1914 | else |
| 1915 | cat >conftest.$ac_ext <<_ACEOF |
| 1916 | /* confdefs.h. */ |
| 1917 | _ACEOF |
| 1918 | cat confdefs.h >>conftest.$ac_ext |
| 1919 | cat >>conftest.$ac_ext <<_ACEOF |
| 1920 | /* end confdefs.h. */ |
| 1921 | |
| 1922 | int |
| 1923 | main () |
| 1924 | { |
| 1925 | #ifndef __GNUC__ |
| 1926 | choke me |
| 1927 | #endif |
| 1928 | |
| 1929 | ; |
| 1930 | return 0; |
| 1931 | } |
| 1932 | _ACEOF |
| 1933 | rm -f conftest.$ac_objext |
| 1934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1935 | (eval $ac_compile) 2>conftest.er1 |
| 1936 | ac_status=$? |
| 1937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1938 | rm -f conftest.er1 |
| 1939 | cat conftest.err >&5 |
| 1940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1941 | (exit $ac_status); } && |
| 1942 | { ac_try='test -z "$ac_c_werror_flag" |
| 1943 | || test ! -s conftest.err' |
| 1944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1945 | (eval $ac_try) 2>&5 |
| 1946 | ac_status=$? |
| 1947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1948 | (exit $ac_status); }; } && |
| 1949 | { ac_try='test -s conftest.$ac_objext' |
| 1950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1951 | (eval $ac_try) 2>&5 |
| 1952 | ac_status=$? |
| 1953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1954 | (exit $ac_status); }; }; then |
| 1955 | ac_compiler_gnu=yes |
| 1956 | else |
| 1957 | echo "$as_me: failed program was:" >&5 |
| 1958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1959 | |
| 1960 | ac_compiler_gnu=no |
| 1961 | fi |
| 1962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1963 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 1964 | |
| 1965 | fi |
| 1966 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1967 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1968 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1969 | ac_test_CFLAGS=${CFLAGS+set} |
| 1970 | ac_save_CFLAGS=$CFLAGS |
| 1971 | CFLAGS="-g" |
| 1972 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1973 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1974 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1976 | else |
| 1977 | cat >conftest.$ac_ext <<_ACEOF |
| 1978 | /* confdefs.h. */ |
| 1979 | _ACEOF |
| 1980 | cat confdefs.h >>conftest.$ac_ext |
| 1981 | cat >>conftest.$ac_ext <<_ACEOF |
| 1982 | /* end confdefs.h. */ |
| 1983 | |
| 1984 | int |
| 1985 | main () |
| 1986 | { |
| 1987 | |
| 1988 | ; |
| 1989 | return 0; |
| 1990 | } |
| 1991 | _ACEOF |
| 1992 | rm -f conftest.$ac_objext |
| 1993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1994 | (eval $ac_compile) 2>conftest.er1 |
| 1995 | ac_status=$? |
| 1996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1997 | rm -f conftest.er1 |
| 1998 | cat conftest.err >&5 |
| 1999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2000 | (exit $ac_status); } && |
| 2001 | { ac_try='test -z "$ac_c_werror_flag" |
| 2002 | || test ! -s conftest.err' |
| 2003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2004 | (eval $ac_try) 2>&5 |
| 2005 | ac_status=$? |
| 2006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2007 | (exit $ac_status); }; } && |
| 2008 | { ac_try='test -s conftest.$ac_objext' |
| 2009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2010 | (eval $ac_try) 2>&5 |
| 2011 | ac_status=$? |
| 2012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2013 | (exit $ac_status); }; }; then |
| 2014 | ac_cv_prog_cc_g=yes |
| 2015 | else |
| 2016 | echo "$as_me: failed program was:" >&5 |
| 2017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2018 | |
| 2019 | ac_cv_prog_cc_g=no |
| 2020 | fi |
| 2021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2022 | fi |
| 2023 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2024 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2025 | if test "$ac_test_CFLAGS" = set; then |
| 2026 | CFLAGS=$ac_save_CFLAGS |
| 2027 | elif test $ac_cv_prog_cc_g = yes; then |
| 2028 | if test "$GCC" = yes; then |
| 2029 | CFLAGS="-g -O2" |
| 2030 | else |
| 2031 | CFLAGS="-g" |
| 2032 | fi |
| 2033 | else |
| 2034 | if test "$GCC" = yes; then |
| 2035 | CFLAGS="-O2" |
| 2036 | else |
| 2037 | CFLAGS= |
| 2038 | fi |
| 2039 | fi |
| 2040 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2041 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2042 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2044 | else |
| 2045 | ac_cv_prog_cc_stdc=no |
| 2046 | ac_save_CC=$CC |
| 2047 | cat >conftest.$ac_ext <<_ACEOF |
| 2048 | /* confdefs.h. */ |
| 2049 | _ACEOF |
| 2050 | cat confdefs.h >>conftest.$ac_ext |
| 2051 | cat >>conftest.$ac_ext <<_ACEOF |
| 2052 | /* end confdefs.h. */ |
| 2053 | #include <stdarg.h> |
| 2054 | #include <stdio.h> |
| 2055 | #include <sys/types.h> |
| 2056 | #include <sys/stat.h> |
| 2057 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2058 | struct buf { int x; }; |
| 2059 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2060 | static char *e (p, i) |
| 2061 | char **p; |
| 2062 | int i; |
| 2063 | { |
| 2064 | return p[i]; |
| 2065 | } |
| 2066 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2067 | { |
| 2068 | char *s; |
| 2069 | va_list v; |
| 2070 | va_start (v,p); |
| 2071 | s = g (p, va_arg (v,int)); |
| 2072 | va_end (v); |
| 2073 | return s; |
| 2074 | } |
| 2075 | |
| 2076 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2077 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2078 | These don't provoke an error unfortunately, instead are silently treated |
| 2079 | as 'x'. The following induces an error, until -std1 is added to get |
| 2080 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2081 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2082 | that's true only with -std1. */ |
| 2083 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2084 | |
| 2085 | int test (int i, double x); |
| 2086 | struct s1 {int (*f) (int a);}; |
| 2087 | struct s2 {int (*f) (double a);}; |
| 2088 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2089 | int argc; |
| 2090 | char **argv; |
| 2091 | int |
| 2092 | main () |
| 2093 | { |
| 2094 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2095 | ; |
| 2096 | return 0; |
| 2097 | } |
| 2098 | _ACEOF |
| 2099 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2100 | # breaks some systems' header files. |
| 2101 | # AIX -qlanglvl=ansi |
| 2102 | # Ultrix and OSF/1 -std1 |
| 2103 | # HP-UX 10.20 and later -Ae |
| 2104 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2105 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2106 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2107 | do |
| 2108 | CC="$ac_save_CC $ac_arg" |
| 2109 | rm -f conftest.$ac_objext |
| 2110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2111 | (eval $ac_compile) 2>conftest.er1 |
| 2112 | ac_status=$? |
| 2113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2114 | rm -f conftest.er1 |
| 2115 | cat conftest.err >&5 |
| 2116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2117 | (exit $ac_status); } && |
| 2118 | { ac_try='test -z "$ac_c_werror_flag" |
| 2119 | || test ! -s conftest.err' |
| 2120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2121 | (eval $ac_try) 2>&5 |
| 2122 | ac_status=$? |
| 2123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2124 | (exit $ac_status); }; } && |
| 2125 | { ac_try='test -s conftest.$ac_objext' |
| 2126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2127 | (eval $ac_try) 2>&5 |
| 2128 | ac_status=$? |
| 2129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2130 | (exit $ac_status); }; }; then |
| 2131 | ac_cv_prog_cc_stdc=$ac_arg |
| 2132 | break |
| 2133 | else |
| 2134 | echo "$as_me: failed program was:" >&5 |
| 2135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2136 | |
| 2137 | fi |
| 2138 | rm -f conftest.err conftest.$ac_objext |
| 2139 | done |
| 2140 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2141 | CC=$ac_save_CC |
| 2142 | |
| 2143 | fi |
| 2144 | |
| 2145 | case "x$ac_cv_prog_cc_stdc" in |
| 2146 | x|xno) |
| 2147 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2148 | echo "${ECHO_T}none needed" >&6 ;; |
| 2149 | *) |
| 2150 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2151 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2152 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2153 | esac |
| 2154 | |
| 2155 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2156 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2157 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2158 | # the declaration of exit, since it's the most demanding environment. |
| 2159 | cat >conftest.$ac_ext <<_ACEOF |
| 2160 | #ifndef __cplusplus |
| 2161 | choke me |
| 2162 | #endif |
| 2163 | _ACEOF |
| 2164 | rm -f conftest.$ac_objext |
| 2165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2166 | (eval $ac_compile) 2>conftest.er1 |
| 2167 | ac_status=$? |
| 2168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2169 | rm -f conftest.er1 |
| 2170 | cat conftest.err >&5 |
| 2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2172 | (exit $ac_status); } && |
| 2173 | { ac_try='test -z "$ac_c_werror_flag" |
| 2174 | || test ! -s conftest.err' |
| 2175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2176 | (eval $ac_try) 2>&5 |
| 2177 | ac_status=$? |
| 2178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2179 | (exit $ac_status); }; } && |
| 2180 | { ac_try='test -s conftest.$ac_objext' |
| 2181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2182 | (eval $ac_try) 2>&5 |
| 2183 | ac_status=$? |
| 2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2185 | (exit $ac_status); }; }; then |
| 2186 | for ac_declaration in \ |
| 2187 | '' \ |
| 2188 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2189 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2190 | 'extern "C" void exit (int) throw ();' \ |
| 2191 | 'extern "C" void exit (int);' \ |
| 2192 | 'void exit (int);' |
| 2193 | do |
| 2194 | cat >conftest.$ac_ext <<_ACEOF |
| 2195 | /* confdefs.h. */ |
| 2196 | _ACEOF |
| 2197 | cat confdefs.h >>conftest.$ac_ext |
| 2198 | cat >>conftest.$ac_ext <<_ACEOF |
| 2199 | /* end confdefs.h. */ |
| 2200 | $ac_declaration |
| 2201 | #include <stdlib.h> |
| 2202 | int |
| 2203 | main () |
| 2204 | { |
| 2205 | exit (42); |
| 2206 | ; |
| 2207 | return 0; |
| 2208 | } |
| 2209 | _ACEOF |
| 2210 | rm -f conftest.$ac_objext |
| 2211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2212 | (eval $ac_compile) 2>conftest.er1 |
| 2213 | ac_status=$? |
| 2214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2215 | rm -f conftest.er1 |
| 2216 | cat conftest.err >&5 |
| 2217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2218 | (exit $ac_status); } && |
| 2219 | { ac_try='test -z "$ac_c_werror_flag" |
| 2220 | || test ! -s conftest.err' |
| 2221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2222 | (eval $ac_try) 2>&5 |
| 2223 | ac_status=$? |
| 2224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2225 | (exit $ac_status); }; } && |
| 2226 | { ac_try='test -s conftest.$ac_objext' |
| 2227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2228 | (eval $ac_try) 2>&5 |
| 2229 | ac_status=$? |
| 2230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2231 | (exit $ac_status); }; }; then |
| 2232 | : |
| 2233 | else |
| 2234 | echo "$as_me: failed program was:" >&5 |
| 2235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2236 | |
| 2237 | continue |
| 2238 | fi |
| 2239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2240 | cat >conftest.$ac_ext <<_ACEOF |
| 2241 | /* confdefs.h. */ |
| 2242 | _ACEOF |
| 2243 | cat confdefs.h >>conftest.$ac_ext |
| 2244 | cat >>conftest.$ac_ext <<_ACEOF |
| 2245 | /* end confdefs.h. */ |
| 2246 | $ac_declaration |
| 2247 | int |
| 2248 | main () |
| 2249 | { |
| 2250 | exit (42); |
| 2251 | ; |
| 2252 | return 0; |
| 2253 | } |
| 2254 | _ACEOF |
| 2255 | rm -f conftest.$ac_objext |
| 2256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2257 | (eval $ac_compile) 2>conftest.er1 |
| 2258 | ac_status=$? |
| 2259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2260 | rm -f conftest.er1 |
| 2261 | cat conftest.err >&5 |
| 2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2263 | (exit $ac_status); } && |
| 2264 | { ac_try='test -z "$ac_c_werror_flag" |
| 2265 | || test ! -s conftest.err' |
| 2266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2267 | (eval $ac_try) 2>&5 |
| 2268 | ac_status=$? |
| 2269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2270 | (exit $ac_status); }; } && |
| 2271 | { ac_try='test -s conftest.$ac_objext' |
| 2272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2273 | (eval $ac_try) 2>&5 |
| 2274 | ac_status=$? |
| 2275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2276 | (exit $ac_status); }; }; then |
| 2277 | break |
| 2278 | else |
| 2279 | echo "$as_me: failed program was:" >&5 |
| 2280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2281 | |
| 2282 | fi |
| 2283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2284 | done |
| 2285 | rm -f conftest* |
| 2286 | if test -n "$ac_declaration"; then |
| 2287 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2288 | echo $ac_declaration >>confdefs.h |
| 2289 | echo '#endif' >>confdefs.h |
| 2290 | fi |
| 2291 | |
| 2292 | else |
| 2293 | echo "$as_me: failed program was:" >&5 |
| 2294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2295 | |
| 2296 | fi |
| 2297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2298 | ac_ext=c |
| 2299 | ac_cpp='$CPP $CPPFLAGS' |
| 2300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2303 | |
| 2304 | |
| 2305 | cat >>confdefs.h <<\_ACEOF |
| 2306 | #define _GNU_SOURCE 1 |
| 2307 | _ACEOF |
| 2308 | |
| 2309 | |
| 2310 | |
| 2311 | ac_ext=c |
| 2312 | ac_cpp='$CPP $CPPFLAGS' |
| 2313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2316 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2317 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2318 | # On Suns, sometimes $CPP names a directory. |
| 2319 | if test -n "$CPP" && test -d "$CPP"; then |
| 2320 | CPP= |
| 2321 | fi |
| 2322 | if test -z "$CPP"; then |
| 2323 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2325 | else |
| 2326 | # Double quotes because CPP needs to be expanded |
| 2327 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2328 | do |
| 2329 | ac_preproc_ok=false |
| 2330 | for ac_c_preproc_warn_flag in '' yes |
| 2331 | do |
| 2332 | # Use a header file that comes with gcc, so configuring glibc |
| 2333 | # with a fresh cross-compiler works. |
| 2334 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2335 | # <limits.h> exists even on freestanding compilers. |
| 2336 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2337 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2338 | cat >conftest.$ac_ext <<_ACEOF |
| 2339 | /* confdefs.h. */ |
| 2340 | _ACEOF |
| 2341 | cat confdefs.h >>conftest.$ac_ext |
| 2342 | cat >>conftest.$ac_ext <<_ACEOF |
| 2343 | /* end confdefs.h. */ |
| 2344 | #ifdef __STDC__ |
| 2345 | # include <limits.h> |
| 2346 | #else |
| 2347 | # include <assert.h> |
| 2348 | #endif |
| 2349 | Syntax error |
| 2350 | _ACEOF |
| 2351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2353 | ac_status=$? |
| 2354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2355 | rm -f conftest.er1 |
| 2356 | cat conftest.err >&5 |
| 2357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2358 | (exit $ac_status); } >/dev/null; then |
| 2359 | if test -s conftest.err; then |
| 2360 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2361 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2362 | else |
| 2363 | ac_cpp_err= |
| 2364 | fi |
| 2365 | else |
| 2366 | ac_cpp_err=yes |
| 2367 | fi |
| 2368 | if test -z "$ac_cpp_err"; then |
| 2369 | : |
| 2370 | else |
| 2371 | echo "$as_me: failed program was:" >&5 |
| 2372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2373 | |
| 2374 | # Broken: fails on valid input. |
| 2375 | continue |
| 2376 | fi |
| 2377 | rm -f conftest.err conftest.$ac_ext |
| 2378 | |
| 2379 | # OK, works on sane cases. Now check whether non-existent headers |
| 2380 | # can be detected and how. |
| 2381 | cat >conftest.$ac_ext <<_ACEOF |
| 2382 | /* confdefs.h. */ |
| 2383 | _ACEOF |
| 2384 | cat confdefs.h >>conftest.$ac_ext |
| 2385 | cat >>conftest.$ac_ext <<_ACEOF |
| 2386 | /* end confdefs.h. */ |
| 2387 | #include <ac_nonexistent.h> |
| 2388 | _ACEOF |
| 2389 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2390 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2391 | ac_status=$? |
| 2392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2393 | rm -f conftest.er1 |
| 2394 | cat conftest.err >&5 |
| 2395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2396 | (exit $ac_status); } >/dev/null; then |
| 2397 | if test -s conftest.err; then |
| 2398 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2399 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2400 | else |
| 2401 | ac_cpp_err= |
| 2402 | fi |
| 2403 | else |
| 2404 | ac_cpp_err=yes |
| 2405 | fi |
| 2406 | if test -z "$ac_cpp_err"; then |
| 2407 | # Broken: success on invalid input. |
| 2408 | continue |
| 2409 | else |
| 2410 | echo "$as_me: failed program was:" >&5 |
| 2411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2412 | |
| 2413 | # Passes both tests. |
| 2414 | ac_preproc_ok=: |
| 2415 | break |
| 2416 | fi |
| 2417 | rm -f conftest.err conftest.$ac_ext |
| 2418 | |
| 2419 | done |
| 2420 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2421 | rm -f conftest.err conftest.$ac_ext |
| 2422 | if $ac_preproc_ok; then |
| 2423 | break |
| 2424 | fi |
| 2425 | |
| 2426 | done |
| 2427 | ac_cv_prog_CPP=$CPP |
| 2428 | |
| 2429 | fi |
| 2430 | CPP=$ac_cv_prog_CPP |
| 2431 | else |
| 2432 | ac_cv_prog_CPP=$CPP |
| 2433 | fi |
| 2434 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2435 | echo "${ECHO_T}$CPP" >&6 |
| 2436 | ac_preproc_ok=false |
| 2437 | for ac_c_preproc_warn_flag in '' yes |
| 2438 | do |
| 2439 | # Use a header file that comes with gcc, so configuring glibc |
| 2440 | # with a fresh cross-compiler works. |
| 2441 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2442 | # <limits.h> exists even on freestanding compilers. |
| 2443 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2444 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2445 | cat >conftest.$ac_ext <<_ACEOF |
| 2446 | /* confdefs.h. */ |
| 2447 | _ACEOF |
| 2448 | cat confdefs.h >>conftest.$ac_ext |
| 2449 | cat >>conftest.$ac_ext <<_ACEOF |
| 2450 | /* end confdefs.h. */ |
| 2451 | #ifdef __STDC__ |
| 2452 | # include <limits.h> |
| 2453 | #else |
| 2454 | # include <assert.h> |
| 2455 | #endif |
| 2456 | Syntax error |
| 2457 | _ACEOF |
| 2458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2460 | ac_status=$? |
| 2461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2462 | rm -f conftest.er1 |
| 2463 | cat conftest.err >&5 |
| 2464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2465 | (exit $ac_status); } >/dev/null; then |
| 2466 | if test -s conftest.err; then |
| 2467 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2469 | else |
| 2470 | ac_cpp_err= |
| 2471 | fi |
| 2472 | else |
| 2473 | ac_cpp_err=yes |
| 2474 | fi |
| 2475 | if test -z "$ac_cpp_err"; then |
| 2476 | : |
| 2477 | else |
| 2478 | echo "$as_me: failed program was:" >&5 |
| 2479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2480 | |
| 2481 | # Broken: fails on valid input. |
| 2482 | continue |
| 2483 | fi |
| 2484 | rm -f conftest.err conftest.$ac_ext |
| 2485 | |
| 2486 | # OK, works on sane cases. Now check whether non-existent headers |
| 2487 | # can be detected and how. |
| 2488 | cat >conftest.$ac_ext <<_ACEOF |
| 2489 | /* confdefs.h. */ |
| 2490 | _ACEOF |
| 2491 | cat confdefs.h >>conftest.$ac_ext |
| 2492 | cat >>conftest.$ac_ext <<_ACEOF |
| 2493 | /* end confdefs.h. */ |
| 2494 | #include <ac_nonexistent.h> |
| 2495 | _ACEOF |
| 2496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2498 | ac_status=$? |
| 2499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2500 | rm -f conftest.er1 |
| 2501 | cat conftest.err >&5 |
| 2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2503 | (exit $ac_status); } >/dev/null; then |
| 2504 | if test -s conftest.err; then |
| 2505 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2506 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2507 | else |
| 2508 | ac_cpp_err= |
| 2509 | fi |
| 2510 | else |
| 2511 | ac_cpp_err=yes |
| 2512 | fi |
| 2513 | if test -z "$ac_cpp_err"; then |
| 2514 | # Broken: success on invalid input. |
| 2515 | continue |
| 2516 | else |
| 2517 | echo "$as_me: failed program was:" >&5 |
| 2518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2519 | |
| 2520 | # Passes both tests. |
| 2521 | ac_preproc_ok=: |
| 2522 | break |
| 2523 | fi |
| 2524 | rm -f conftest.err conftest.$ac_ext |
| 2525 | |
| 2526 | done |
| 2527 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2528 | rm -f conftest.err conftest.$ac_ext |
| 2529 | if $ac_preproc_ok; then |
| 2530 | : |
| 2531 | else |
| 2532 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2533 | See \`config.log' for more details." >&5 |
| 2534 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2535 | See \`config.log' for more details." >&2;} |
| 2536 | { (exit 1); exit 1; }; } |
| 2537 | fi |
| 2538 | |
| 2539 | ac_ext=c |
| 2540 | ac_cpp='$CPP $CPPFLAGS' |
| 2541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2544 | |
| 2545 | |
| 2546 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2547 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2548 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2550 | else |
| 2551 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2552 | then ac_cv_prog_egrep='grep -E' |
| 2553 | else ac_cv_prog_egrep='egrep' |
| 2554 | fi |
| 2555 | fi |
| 2556 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2557 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2558 | EGREP=$ac_cv_prog_egrep |
| 2559 | |
| 2560 | |
| 2561 | |
| 2562 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2563 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2564 | cat >conftest.$ac_ext <<_ACEOF |
| 2565 | /* confdefs.h. */ |
| 2566 | _ACEOF |
| 2567 | cat confdefs.h >>conftest.$ac_ext |
| 2568 | cat >>conftest.$ac_ext <<_ACEOF |
| 2569 | /* end confdefs.h. */ |
| 2570 | #ifdef _AIX |
| 2571 | yes |
| 2572 | #endif |
| 2573 | |
| 2574 | _ACEOF |
| 2575 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2576 | $EGREP "yes" >/dev/null 2>&1; then |
| 2577 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2578 | echo "${ECHO_T}yes" >&6 |
| 2579 | cat >>confdefs.h <<\_ACEOF |
| 2580 | #define _ALL_SOURCE 1 |
| 2581 | _ACEOF |
| 2582 | |
| 2583 | else |
| 2584 | echo "$as_me:$LINENO: result: no" >&5 |
| 2585 | echo "${ECHO_T}no" >&6 |
| 2586 | fi |
| 2587 | rm -f conftest* |
| 2588 | |
| 2589 | |
| 2590 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 2591 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
| 2592 | if test "${ac_cv_search_strerror+set}" = set; then |
| 2593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2594 | else |
| 2595 | ac_func_search_save_LIBS=$LIBS |
| 2596 | ac_cv_search_strerror=no |
| 2597 | cat >conftest.$ac_ext <<_ACEOF |
| 2598 | /* confdefs.h. */ |
| 2599 | _ACEOF |
| 2600 | cat confdefs.h >>conftest.$ac_ext |
| 2601 | cat >>conftest.$ac_ext <<_ACEOF |
| 2602 | /* end confdefs.h. */ |
| 2603 | |
| 2604 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2605 | #ifdef __cplusplus |
| 2606 | extern "C" |
| 2607 | #endif |
| 2608 | /* We use char because int might match the return type of a gcc2 |
| 2609 | builtin and then its argument prototype would still apply. */ |
| 2610 | char strerror (); |
| 2611 | int |
| 2612 | main () |
| 2613 | { |
| 2614 | strerror (); |
| 2615 | ; |
| 2616 | return 0; |
| 2617 | } |
| 2618 | _ACEOF |
| 2619 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2621 | (eval $ac_link) 2>conftest.er1 |
| 2622 | ac_status=$? |
| 2623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2624 | rm -f conftest.er1 |
| 2625 | cat conftest.err >&5 |
| 2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2627 | (exit $ac_status); } && |
| 2628 | { ac_try='test -z "$ac_c_werror_flag" |
| 2629 | || test ! -s conftest.err' |
| 2630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2631 | (eval $ac_try) 2>&5 |
| 2632 | ac_status=$? |
| 2633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2634 | (exit $ac_status); }; } && |
| 2635 | { ac_try='test -s conftest$ac_exeext' |
| 2636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2637 | (eval $ac_try) 2>&5 |
| 2638 | ac_status=$? |
| 2639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2640 | (exit $ac_status); }; }; then |
| 2641 | ac_cv_search_strerror="none required" |
| 2642 | else |
| 2643 | echo "$as_me: failed program was:" >&5 |
| 2644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2645 | |
| 2646 | fi |
| 2647 | rm -f conftest.err conftest.$ac_objext \ |
| 2648 | conftest$ac_exeext conftest.$ac_ext |
| 2649 | if test "$ac_cv_search_strerror" = no; then |
| 2650 | for ac_lib in cposix; do |
| 2651 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 2652 | cat >conftest.$ac_ext <<_ACEOF |
| 2653 | /* confdefs.h. */ |
| 2654 | _ACEOF |
| 2655 | cat confdefs.h >>conftest.$ac_ext |
| 2656 | cat >>conftest.$ac_ext <<_ACEOF |
| 2657 | /* end confdefs.h. */ |
| 2658 | |
| 2659 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2660 | #ifdef __cplusplus |
| 2661 | extern "C" |
| 2662 | #endif |
| 2663 | /* We use char because int might match the return type of a gcc2 |
| 2664 | builtin and then its argument prototype would still apply. */ |
| 2665 | char strerror (); |
| 2666 | int |
| 2667 | main () |
| 2668 | { |
| 2669 | strerror (); |
| 2670 | ; |
| 2671 | return 0; |
| 2672 | } |
| 2673 | _ACEOF |
| 2674 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2676 | (eval $ac_link) 2>conftest.er1 |
| 2677 | ac_status=$? |
| 2678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2679 | rm -f conftest.er1 |
| 2680 | cat conftest.err >&5 |
| 2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2682 | (exit $ac_status); } && |
| 2683 | { ac_try='test -z "$ac_c_werror_flag" |
| 2684 | || test ! -s conftest.err' |
| 2685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2686 | (eval $ac_try) 2>&5 |
| 2687 | ac_status=$? |
| 2688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2689 | (exit $ac_status); }; } && |
| 2690 | { ac_try='test -s conftest$ac_exeext' |
| 2691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2692 | (eval $ac_try) 2>&5 |
| 2693 | ac_status=$? |
| 2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2695 | (exit $ac_status); }; }; then |
| 2696 | ac_cv_search_strerror="-l$ac_lib" |
| 2697 | break |
| 2698 | else |
| 2699 | echo "$as_me: failed program was:" >&5 |
| 2700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2701 | |
| 2702 | fi |
| 2703 | rm -f conftest.err conftest.$ac_objext \ |
| 2704 | conftest$ac_exeext conftest.$ac_ext |
| 2705 | done |
| 2706 | fi |
| 2707 | LIBS=$ac_func_search_save_LIBS |
| 2708 | fi |
| 2709 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 2710 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
| 2711 | if test "$ac_cv_search_strerror" != no; then |
| 2712 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
| 2713 | |
| 2714 | fi |
| 2715 | |
| 2716 | |
| 2717 | |
| 2718 | |
| 2719 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 |
| 2720 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 |
| 2721 | if test "${am_cv_prog_cc_stdc+set}" = set; then |
| 2722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2723 | else |
| 2724 | am_cv_prog_cc_stdc=no |
| 2725 | ac_save_CC="$CC" |
| 2726 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2727 | # breaks some systems' header files. |
| 2728 | # AIX -qlanglvl=ansi |
| 2729 | # Ultrix and OSF/1 -std1 |
| 2730 | # HP-UX 10.20 and later -Ae |
| 2731 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2732 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2733 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2734 | do |
| 2735 | CC="$ac_save_CC $ac_arg" |
| 2736 | cat >conftest.$ac_ext <<_ACEOF |
| 2737 | /* confdefs.h. */ |
| 2738 | _ACEOF |
| 2739 | cat confdefs.h >>conftest.$ac_ext |
| 2740 | cat >>conftest.$ac_ext <<_ACEOF |
| 2741 | /* end confdefs.h. */ |
| 2742 | #include <stdarg.h> |
| 2743 | #include <stdio.h> |
| 2744 | #include <sys/types.h> |
| 2745 | #include <sys/stat.h> |
| 2746 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2747 | struct buf { int x; }; |
| 2748 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2749 | static char *e (p, i) |
| 2750 | char **p; |
| 2751 | int i; |
| 2752 | { |
| 2753 | return p[i]; |
| 2754 | } |
| 2755 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2756 | { |
| 2757 | char *s; |
| 2758 | va_list v; |
| 2759 | va_start (v,p); |
| 2760 | s = g (p, va_arg (v,int)); |
| 2761 | va_end (v); |
| 2762 | return s; |
| 2763 | } |
| 2764 | int test (int i, double x); |
| 2765 | struct s1 {int (*f) (int a);}; |
| 2766 | struct s2 {int (*f) (double a);}; |
| 2767 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2768 | int argc; |
| 2769 | char **argv; |
| 2770 | |
| 2771 | int |
| 2772 | main () |
| 2773 | { |
| 2774 | |
| 2775 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2776 | |
| 2777 | ; |
| 2778 | return 0; |
| 2779 | } |
| 2780 | _ACEOF |
| 2781 | rm -f conftest.$ac_objext |
| 2782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2783 | (eval $ac_compile) 2>conftest.er1 |
| 2784 | ac_status=$? |
| 2785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2786 | rm -f conftest.er1 |
| 2787 | cat conftest.err >&5 |
| 2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2789 | (exit $ac_status); } && |
| 2790 | { ac_try='test -z "$ac_c_werror_flag" |
| 2791 | || test ! -s conftest.err' |
| 2792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2793 | (eval $ac_try) 2>&5 |
| 2794 | ac_status=$? |
| 2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2796 | (exit $ac_status); }; } && |
| 2797 | { ac_try='test -s conftest.$ac_objext' |
| 2798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2799 | (eval $ac_try) 2>&5 |
| 2800 | ac_status=$? |
| 2801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2802 | (exit $ac_status); }; }; then |
| 2803 | am_cv_prog_cc_stdc="$ac_arg"; break |
| 2804 | else |
| 2805 | echo "$as_me: failed program was:" >&5 |
| 2806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2807 | |
| 2808 | fi |
| 2809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2810 | done |
| 2811 | CC="$ac_save_CC" |
| 2812 | |
| 2813 | fi |
| 2814 | |
| 2815 | if test -z "$am_cv_prog_cc_stdc"; then |
| 2816 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2817 | echo "${ECHO_T}none needed" >&6 |
| 2818 | else |
| 2819 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
| 2820 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 |
| 2821 | fi |
| 2822 | case "x$am_cv_prog_cc_stdc" in |
| 2823 | x|xno) ;; |
| 2824 | *) CC="$CC $am_cv_prog_cc_stdc" ;; |
| 2825 | esac |
| 2826 | |
| 2827 | |
| 2828 | ac_aux_dir= |
| 2829 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do |
| 2830 | if test -f $ac_dir/install-sh; then |
| 2831 | ac_aux_dir=$ac_dir |
| 2832 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2833 | break |
| 2834 | elif test -f $ac_dir/install.sh; then |
| 2835 | ac_aux_dir=$ac_dir |
| 2836 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2837 | break |
| 2838 | elif test -f $ac_dir/shtool; then |
| 2839 | ac_aux_dir=$ac_dir |
| 2840 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2841 | break |
| 2842 | fi |
| 2843 | done |
| 2844 | if test -z "$ac_aux_dir"; then |
| 2845 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5 |
| 2846 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;} |
| 2847 | { (exit 1); exit 1; }; } |
| 2848 | fi |
| 2849 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 2850 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 2851 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 2852 | |
| 2853 | # Make sure we can run config.sub. |
| 2854 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 2855 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 2856 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 2857 | { (exit 1); exit 1; }; } |
| 2858 | |
| 2859 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 2860 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 2861 | if test "${ac_cv_build+set}" = set; then |
| 2862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2863 | else |
| 2864 | ac_cv_build_alias=$build_alias |
| 2865 | test -z "$ac_cv_build_alias" && |
| 2866 | ac_cv_build_alias=`$ac_config_guess` |
| 2867 | test -z "$ac_cv_build_alias" && |
| 2868 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2869 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2870 | { (exit 1); exit 1; }; } |
| 2871 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 2872 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 2873 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 2874 | { (exit 1); exit 1; }; } |
| 2875 | |
| 2876 | fi |
| 2877 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2878 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 2879 | build=$ac_cv_build |
| 2880 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 2881 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 2882 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 2883 | |
| 2884 | |
| 2885 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 2886 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 2887 | if test "${ac_cv_host+set}" = set; then |
| 2888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2889 | else |
| 2890 | ac_cv_host_alias=$host_alias |
| 2891 | test -z "$ac_cv_host_alias" && |
| 2892 | ac_cv_host_alias=$ac_cv_build_alias |
| 2893 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 2894 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 2895 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 2896 | { (exit 1); exit 1; }; } |
| 2897 | |
| 2898 | fi |
| 2899 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2900 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 2901 | host=$ac_cv_host |
| 2902 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 2903 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 2904 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 2905 | |
| 2906 | |
| 2907 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 2908 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 2909 | if test "${ac_cv_target+set}" = set; then |
| 2910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2911 | else |
| 2912 | ac_cv_target_alias=$target_alias |
| 2913 | test "x$ac_cv_target_alias" = "x" && |
| 2914 | ac_cv_target_alias=$ac_cv_host_alias |
| 2915 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 2916 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 2917 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 2918 | { (exit 1); exit 1; }; } |
| 2919 | |
| 2920 | fi |
| 2921 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2922 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 2923 | target=$ac_cv_target |
| 2924 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 2925 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 2926 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 2927 | |
| 2928 | |
| 2929 | # The aliases save the names the user supplied, while $host etc. |
| 2930 | # will get canonicalized. |
| 2931 | test -n "$target_alias" && |
| 2932 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2933 | NONENONEs,x,x, && |
| 2934 | program_prefix=${target_alias}- |
| 2935 | |
| 2936 | |
| 2937 | CONFIG_OBS= |
| 2938 | CONFIG_DEPS= |
| 2939 | CONFIG_SRCS= |
| 2940 | ENABLE_CFLAGS= |
| 2941 | |
| 2942 | CONFIG_ALL= |
| 2943 | CONFIG_CLEAN= |
| 2944 | CONFIG_INSTALL= |
| 2945 | CONFIG_UNINSTALL= |
| 2946 | |
| 2947 | # If we haven't got the data from the intl directory, |
| 2948 | # assume NLS is disabled. |
| 2949 | USE_NLS=no |
| 2950 | LIBINTL= |
| 2951 | LIBINTL_DEP= |
| 2952 | INCINTL= |
| 2953 | XGETTEXT= |
| 2954 | GMSGFMT= |
| 2955 | POSUB= |
| 2956 | |
| 2957 | if test -f ../intl/config.intl; then |
| 2958 | . ../intl/config.intl |
| 2959 | fi |
| 2960 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 2961 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
| 2962 | if test x"$USE_NLS" != xyes; then |
| 2963 | echo "$as_me:$LINENO: result: no" >&5 |
| 2964 | echo "${ECHO_T}no" >&6 |
| 2965 | else |
| 2966 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2967 | echo "${ECHO_T}yes" >&6 |
| 2968 | |
| 2969 | cat >>confdefs.h <<\_ACEOF |
| 2970 | #define ENABLE_NLS 1 |
| 2971 | _ACEOF |
| 2972 | |
| 2973 | |
| 2974 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
| 2975 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 |
| 2976 | # Look for .po and .gmo files in the source directory. |
| 2977 | CATALOGS= |
| 2978 | XLINGUAS= |
| 2979 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do |
| 2980 | # If there aren't any .gmo files the shell will give us the |
| 2981 | # literal string "../path/to/srcdir/po/*.gmo" which has to be |
| 2982 | # weeded out. |
| 2983 | case "$cat" in *\**) |
| 2984 | continue;; |
| 2985 | esac |
| 2986 | # The quadruple backslash is collapsed to a double backslash |
| 2987 | # by the backticks, then collapsed again by the double quotes, |
| 2988 | # leaving us with one backslash in the sed expression (right |
| 2989 | # before the dot that mustn't act as a wildcard). |
| 2990 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` |
| 2991 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` |
| 2992 | # The user is allowed to set LINGUAS to a list of languages to |
| 2993 | # install catalogs for. If it's empty that means "all of them." |
| 2994 | if test "x$LINGUAS" = x; then |
| 2995 | CATALOGS="$CATALOGS $cat" |
| 2996 | XLINGUAS="$XLINGUAS $lang" |
| 2997 | else |
| 2998 | case "$LINGUAS" in *$lang*) |
| 2999 | CATALOGS="$CATALOGS $cat" |
| 3000 | XLINGUAS="$XLINGUAS $lang" |
| 3001 | ;; |
| 3002 | esac |
| 3003 | fi |
| 3004 | done |
| 3005 | LINGUAS="$XLINGUAS" |
| 3006 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
| 3007 | echo "${ECHO_T}$LINGUAS" >&6 |
| 3008 | |
| 3009 | |
| 3010 | DATADIRNAME=share |
| 3011 | |
| 3012 | INSTOBJEXT=.mo |
| 3013 | |
| 3014 | GENCAT=gencat |
| 3015 | |
| 3016 | CATOBJEXT=.gmo |
| 3017 | |
| 3018 | fi |
| 3019 | |
| 3020 | localedir='${datadir}/locale' |
| 3021 | |
| 3022 | |
| 3023 | if test x"$USE_NLS" = xyes; then |
| 3024 | CONFIG_ALL="$CONFIG_ALL all-po" |
| 3025 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" |
| 3026 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" |
| 3027 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" |
| 3028 | fi |
| 3029 | |
| 3030 | PACKAGE=gdb |
| 3031 | |
| 3032 | cat >>confdefs.h <<_ACEOF |
| 3033 | #define PACKAGE "$PACKAGE" |
| 3034 | _ACEOF |
| 3035 | |
| 3036 | |
| 3037 | |
| 3038 | debugdir=${libdir}/debug |
| 3039 | |
| 3040 | |
| 3041 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
| 3042 | if test "${with_separate_debug_dir+set}" = set; then |
| 3043 | withval="$with_separate_debug_dir" |
| 3044 | debugdir="${withval}" |
| 3045 | fi; |
| 3046 | |
| 3047 | |
| 3048 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
| 3049 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 3050 | ac_define_dir=`eval echo $debugdir` |
| 3051 | ac_define_dir=`eval echo $ac_define_dir` |
| 3052 | |
| 3053 | cat >>confdefs.h <<_ACEOF |
| 3054 | #define DEBUGDIR "$ac_define_dir" |
| 3055 | _ACEOF |
| 3056 | |
| 3057 | |
| 3058 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), |
| 3059 | |
| 3060 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
| 3061 | if test "x$prefix" = xNONE; then |
| 3062 | test_prefix=/usr/local |
| 3063 | else |
| 3064 | test_prefix=$prefix |
| 3065 | fi |
| 3066 | else |
| 3067 | test_prefix=$exec_prefix |
| 3068 | fi |
| 3069 | case ${debugdir} in |
| 3070 | "${test_prefix}"|"${test_prefix}/"*|\ |
| 3071 | '${exec_prefix}'|'${exec_prefix}/'*) |
| 3072 | |
| 3073 | cat >>confdefs.h <<\_ACEOF |
| 3074 | #define DEBUGDIR_RELOCATABLE 1 |
| 3075 | _ACEOF |
| 3076 | |
| 3077 | ;; |
| 3078 | esac |
| 3079 | |
| 3080 | |
| 3081 | |
| 3082 | subdirs="$subdirs doc testsuite" |
| 3083 | |
| 3084 | |
| 3085 | # Check whether to support alternative target configurations |
| 3086 | # Check whether --enable-targets or --disable-targets was given. |
| 3087 | if test "${enable_targets+set}" = set; then |
| 3088 | enableval="$enable_targets" |
| 3089 | case "${enableval}" in |
| 3090 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
| 3091 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} |
| 3092 | { (exit 1); exit 1; }; } |
| 3093 | ;; |
| 3094 | no) enable_targets= ;; |
| 3095 | *) enable_targets=$enableval ;; |
| 3096 | esac |
| 3097 | fi; |
| 3098 | |
| 3099 | # Check whether to enable 64-bit support on 32-bit hosts |
| 3100 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. |
| 3101 | if test "${enable_64_bit_bfd+set}" = set; then |
| 3102 | enableval="$enable_64_bit_bfd" |
| 3103 | case "${enableval}" in |
| 3104 | yes) want64=true ;; |
| 3105 | no) want64=false ;; |
| 3106 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 |
| 3107 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} |
| 3108 | { (exit 1); exit 1; }; } ;; |
| 3109 | esac |
| 3110 | else |
| 3111 | want64=false |
| 3112 | fi; |
| 3113 | # Provide defaults for some variables set by the per-host and per-target |
| 3114 | # configuration. |
| 3115 | gdb_host_obs=posix-hdep.o |
| 3116 | |
| 3117 | if test "${target}" = "${host}"; then |
| 3118 | gdb_native=yes |
| 3119 | else |
| 3120 | gdb_native=no |
| 3121 | fi |
| 3122 | |
| 3123 | . $srcdir/configure.host |
| 3124 | |
| 3125 | # Accumulate some settings from configure.tgt over all enabled targets |
| 3126 | |
| 3127 | TARGET_OBS= |
| 3128 | all_targets= |
| 3129 | |
| 3130 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
| 3131 | do |
| 3132 | if test "$targ_alias" = "all"; then |
| 3133 | all_targets=true |
| 3134 | else |
| 3135 | # Canonicalize the secondary target names. |
| 3136 | result=`$ac_config_sub $targ_alias 2>/dev/null` |
| 3137 | if test -n "$result"; then |
| 3138 | targ=$result |
| 3139 | else |
| 3140 | targ=$targ_alias |
| 3141 | fi |
| 3142 | |
| 3143 | . ${srcdir}/configure.tgt |
| 3144 | |
| 3145 | # Target-specific object files |
| 3146 | for i in ${gdb_target_obs}; do |
| 3147 | case " $TARGET_OBS " in |
| 3148 | *" ${i} "*) ;; |
| 3149 | *) |
| 3150 | TARGET_OBS="$TARGET_OBS ${i}" |
| 3151 | ;; |
| 3152 | esac |
| 3153 | done |
| 3154 | |
| 3155 | # Check whether this target needs 64-bit CORE_ADDR |
| 3156 | if test x${want64} = xfalse; then |
| 3157 | . ${srcdir}/../bfd/config.bfd |
| 3158 | fi |
| 3159 | fi |
| 3160 | done |
| 3161 | |
| 3162 | if test x${all_targets} = xtrue; then |
| 3163 | |
| 3164 | # We want all 64-bit targets if we either: |
| 3165 | # - run on a 64-bit host or |
| 3166 | # - already require 64-bit support for some other target or |
| 3167 | # - the --enable-64-bit-bfd option was supplied |
| 3168 | # Otherwise we only support all 32-bit targets. |
| 3169 | # |
| 3170 | # NOTE: This test must be in sync with the corresponding |
| 3171 | # tests in BFD! |
| 3172 | |
| 3173 | if test x${want64} = xfalse; then |
| 3174 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3175 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3176 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3178 | else |
| 3179 | cat >conftest.$ac_ext <<_ACEOF |
| 3180 | /* confdefs.h. */ |
| 3181 | _ACEOF |
| 3182 | cat confdefs.h >>conftest.$ac_ext |
| 3183 | cat >>conftest.$ac_ext <<_ACEOF |
| 3184 | /* end confdefs.h. */ |
| 3185 | #include <stdlib.h> |
| 3186 | #include <stdarg.h> |
| 3187 | #include <string.h> |
| 3188 | #include <float.h> |
| 3189 | |
| 3190 | int |
| 3191 | main () |
| 3192 | { |
| 3193 | |
| 3194 | ; |
| 3195 | return 0; |
| 3196 | } |
| 3197 | _ACEOF |
| 3198 | rm -f conftest.$ac_objext |
| 3199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3200 | (eval $ac_compile) 2>conftest.er1 |
| 3201 | ac_status=$? |
| 3202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3203 | rm -f conftest.er1 |
| 3204 | cat conftest.err >&5 |
| 3205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3206 | (exit $ac_status); } && |
| 3207 | { ac_try='test -z "$ac_c_werror_flag" |
| 3208 | || test ! -s conftest.err' |
| 3209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3210 | (eval $ac_try) 2>&5 |
| 3211 | ac_status=$? |
| 3212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3213 | (exit $ac_status); }; } && |
| 3214 | { ac_try='test -s conftest.$ac_objext' |
| 3215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3216 | (eval $ac_try) 2>&5 |
| 3217 | ac_status=$? |
| 3218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3219 | (exit $ac_status); }; }; then |
| 3220 | ac_cv_header_stdc=yes |
| 3221 | else |
| 3222 | echo "$as_me: failed program was:" >&5 |
| 3223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3224 | |
| 3225 | ac_cv_header_stdc=no |
| 3226 | fi |
| 3227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3228 | |
| 3229 | if test $ac_cv_header_stdc = yes; then |
| 3230 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3231 | cat >conftest.$ac_ext <<_ACEOF |
| 3232 | /* confdefs.h. */ |
| 3233 | _ACEOF |
| 3234 | cat confdefs.h >>conftest.$ac_ext |
| 3235 | cat >>conftest.$ac_ext <<_ACEOF |
| 3236 | /* end confdefs.h. */ |
| 3237 | #include <string.h> |
| 3238 | |
| 3239 | _ACEOF |
| 3240 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3241 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3242 | : |
| 3243 | else |
| 3244 | ac_cv_header_stdc=no |
| 3245 | fi |
| 3246 | rm -f conftest* |
| 3247 | |
| 3248 | fi |
| 3249 | |
| 3250 | if test $ac_cv_header_stdc = yes; then |
| 3251 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3252 | cat >conftest.$ac_ext <<_ACEOF |
| 3253 | /* confdefs.h. */ |
| 3254 | _ACEOF |
| 3255 | cat confdefs.h >>conftest.$ac_ext |
| 3256 | cat >>conftest.$ac_ext <<_ACEOF |
| 3257 | /* end confdefs.h. */ |
| 3258 | #include <stdlib.h> |
| 3259 | |
| 3260 | _ACEOF |
| 3261 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3262 | $EGREP "free" >/dev/null 2>&1; then |
| 3263 | : |
| 3264 | else |
| 3265 | ac_cv_header_stdc=no |
| 3266 | fi |
| 3267 | rm -f conftest* |
| 3268 | |
| 3269 | fi |
| 3270 | |
| 3271 | if test $ac_cv_header_stdc = yes; then |
| 3272 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3273 | if test "$cross_compiling" = yes; then |
| 3274 | : |
| 3275 | else |
| 3276 | cat >conftest.$ac_ext <<_ACEOF |
| 3277 | /* confdefs.h. */ |
| 3278 | _ACEOF |
| 3279 | cat confdefs.h >>conftest.$ac_ext |
| 3280 | cat >>conftest.$ac_ext <<_ACEOF |
| 3281 | /* end confdefs.h. */ |
| 3282 | #include <ctype.h> |
| 3283 | #if ((' ' & 0x0FF) == 0x020) |
| 3284 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3285 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3286 | #else |
| 3287 | # define ISLOWER(c) \ |
| 3288 | (('a' <= (c) && (c) <= 'i') \ |
| 3289 | || ('j' <= (c) && (c) <= 'r') \ |
| 3290 | || ('s' <= (c) && (c) <= 'z')) |
| 3291 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3292 | #endif |
| 3293 | |
| 3294 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3295 | int |
| 3296 | main () |
| 3297 | { |
| 3298 | int i; |
| 3299 | for (i = 0; i < 256; i++) |
| 3300 | if (XOR (islower (i), ISLOWER (i)) |
| 3301 | || toupper (i) != TOUPPER (i)) |
| 3302 | exit(2); |
| 3303 | exit (0); |
| 3304 | } |
| 3305 | _ACEOF |
| 3306 | rm -f conftest$ac_exeext |
| 3307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3308 | (eval $ac_link) 2>&5 |
| 3309 | ac_status=$? |
| 3310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3311 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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 | : |
| 3318 | else |
| 3319 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3320 | echo "$as_me: failed program was:" >&5 |
| 3321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3322 | |
| 3323 | ( exit $ac_status ) |
| 3324 | ac_cv_header_stdc=no |
| 3325 | fi |
| 3326 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3327 | fi |
| 3328 | fi |
| 3329 | fi |
| 3330 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3331 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3332 | if test $ac_cv_header_stdc = yes; then |
| 3333 | |
| 3334 | cat >>confdefs.h <<\_ACEOF |
| 3335 | #define STDC_HEADERS 1 |
| 3336 | _ACEOF |
| 3337 | |
| 3338 | fi |
| 3339 | |
| 3340 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3341 | |
| 3342 | |
| 3343 | |
| 3344 | |
| 3345 | |
| 3346 | |
| 3347 | |
| 3348 | |
| 3349 | |
| 3350 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3351 | inttypes.h stdint.h unistd.h |
| 3352 | do |
| 3353 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3354 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3358 | else |
| 3359 | cat >conftest.$ac_ext <<_ACEOF |
| 3360 | /* confdefs.h. */ |
| 3361 | _ACEOF |
| 3362 | cat confdefs.h >>conftest.$ac_ext |
| 3363 | cat >>conftest.$ac_ext <<_ACEOF |
| 3364 | /* end confdefs.h. */ |
| 3365 | $ac_includes_default |
| 3366 | |
| 3367 | #include <$ac_header> |
| 3368 | _ACEOF |
| 3369 | rm -f conftest.$ac_objext |
| 3370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3371 | (eval $ac_compile) 2>conftest.er1 |
| 3372 | ac_status=$? |
| 3373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3374 | rm -f conftest.er1 |
| 3375 | cat conftest.err >&5 |
| 3376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3377 | (exit $ac_status); } && |
| 3378 | { ac_try='test -z "$ac_c_werror_flag" |
| 3379 | || test ! -s conftest.err' |
| 3380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3381 | (eval $ac_try) 2>&5 |
| 3382 | ac_status=$? |
| 3383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3384 | (exit $ac_status); }; } && |
| 3385 | { ac_try='test -s conftest.$ac_objext' |
| 3386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3387 | (eval $ac_try) 2>&5 |
| 3388 | ac_status=$? |
| 3389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3390 | (exit $ac_status); }; }; then |
| 3391 | eval "$as_ac_Header=yes" |
| 3392 | else |
| 3393 | echo "$as_me: failed program was:" >&5 |
| 3394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3395 | |
| 3396 | eval "$as_ac_Header=no" |
| 3397 | fi |
| 3398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3399 | fi |
| 3400 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3401 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3402 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3403 | cat >>confdefs.h <<_ACEOF |
| 3404 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3405 | _ACEOF |
| 3406 | |
| 3407 | fi |
| 3408 | |
| 3409 | done |
| 3410 | |
| 3411 | |
| 3412 | echo "$as_me:$LINENO: checking for long" >&5 |
| 3413 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 3414 | if test "${ac_cv_type_long+set}" = set; then |
| 3415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3416 | else |
| 3417 | cat >conftest.$ac_ext <<_ACEOF |
| 3418 | /* confdefs.h. */ |
| 3419 | _ACEOF |
| 3420 | cat confdefs.h >>conftest.$ac_ext |
| 3421 | cat >>conftest.$ac_ext <<_ACEOF |
| 3422 | /* end confdefs.h. */ |
| 3423 | $ac_includes_default |
| 3424 | int |
| 3425 | main () |
| 3426 | { |
| 3427 | if ((long *) 0) |
| 3428 | return 0; |
| 3429 | if (sizeof (long)) |
| 3430 | return 0; |
| 3431 | ; |
| 3432 | return 0; |
| 3433 | } |
| 3434 | _ACEOF |
| 3435 | rm -f conftest.$ac_objext |
| 3436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3437 | (eval $ac_compile) 2>conftest.er1 |
| 3438 | ac_status=$? |
| 3439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3440 | rm -f conftest.er1 |
| 3441 | cat conftest.err >&5 |
| 3442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3443 | (exit $ac_status); } && |
| 3444 | { ac_try='test -z "$ac_c_werror_flag" |
| 3445 | || test ! -s conftest.err' |
| 3446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3447 | (eval $ac_try) 2>&5 |
| 3448 | ac_status=$? |
| 3449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3450 | (exit $ac_status); }; } && |
| 3451 | { ac_try='test -s conftest.$ac_objext' |
| 3452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3453 | (eval $ac_try) 2>&5 |
| 3454 | ac_status=$? |
| 3455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3456 | (exit $ac_status); }; }; then |
| 3457 | ac_cv_type_long=yes |
| 3458 | else |
| 3459 | echo "$as_me: failed program was:" >&5 |
| 3460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3461 | |
| 3462 | ac_cv_type_long=no |
| 3463 | fi |
| 3464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3465 | fi |
| 3466 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 3467 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 3468 | |
| 3469 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 3470 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 3471 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 3472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3473 | else |
| 3474 | if test "$ac_cv_type_long" = yes; then |
| 3475 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 3476 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 3477 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 3478 | # This bug is HP SR number 8606223364. |
| 3479 | if test "$cross_compiling" = yes; then |
| 3480 | # Depending upon the size, compute the lo and hi bounds. |
| 3481 | cat >conftest.$ac_ext <<_ACEOF |
| 3482 | /* confdefs.h. */ |
| 3483 | _ACEOF |
| 3484 | cat confdefs.h >>conftest.$ac_ext |
| 3485 | cat >>conftest.$ac_ext <<_ACEOF |
| 3486 | /* end confdefs.h. */ |
| 3487 | $ac_includes_default |
| 3488 | int |
| 3489 | main () |
| 3490 | { |
| 3491 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 3492 | test_array [0] = 0 |
| 3493 | |
| 3494 | ; |
| 3495 | return 0; |
| 3496 | } |
| 3497 | _ACEOF |
| 3498 | rm -f conftest.$ac_objext |
| 3499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3500 | (eval $ac_compile) 2>conftest.er1 |
| 3501 | ac_status=$? |
| 3502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3503 | rm -f conftest.er1 |
| 3504 | cat conftest.err >&5 |
| 3505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3506 | (exit $ac_status); } && |
| 3507 | { ac_try='test -z "$ac_c_werror_flag" |
| 3508 | || test ! -s conftest.err' |
| 3509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3510 | (eval $ac_try) 2>&5 |
| 3511 | ac_status=$? |
| 3512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3513 | (exit $ac_status); }; } && |
| 3514 | { ac_try='test -s conftest.$ac_objext' |
| 3515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3516 | (eval $ac_try) 2>&5 |
| 3517 | ac_status=$? |
| 3518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3519 | (exit $ac_status); }; }; then |
| 3520 | ac_lo=0 ac_mid=0 |
| 3521 | while :; do |
| 3522 | cat >conftest.$ac_ext <<_ACEOF |
| 3523 | /* confdefs.h. */ |
| 3524 | _ACEOF |
| 3525 | cat confdefs.h >>conftest.$ac_ext |
| 3526 | cat >>conftest.$ac_ext <<_ACEOF |
| 3527 | /* end confdefs.h. */ |
| 3528 | $ac_includes_default |
| 3529 | int |
| 3530 | main () |
| 3531 | { |
| 3532 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 3533 | test_array [0] = 0 |
| 3534 | |
| 3535 | ; |
| 3536 | return 0; |
| 3537 | } |
| 3538 | _ACEOF |
| 3539 | rm -f conftest.$ac_objext |
| 3540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3541 | (eval $ac_compile) 2>conftest.er1 |
| 3542 | ac_status=$? |
| 3543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3544 | rm -f conftest.er1 |
| 3545 | cat conftest.err >&5 |
| 3546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3547 | (exit $ac_status); } && |
| 3548 | { ac_try='test -z "$ac_c_werror_flag" |
| 3549 | || test ! -s conftest.err' |
| 3550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3551 | (eval $ac_try) 2>&5 |
| 3552 | ac_status=$? |
| 3553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3554 | (exit $ac_status); }; } && |
| 3555 | { ac_try='test -s conftest.$ac_objext' |
| 3556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3557 | (eval $ac_try) 2>&5 |
| 3558 | ac_status=$? |
| 3559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3560 | (exit $ac_status); }; }; then |
| 3561 | ac_hi=$ac_mid; break |
| 3562 | else |
| 3563 | echo "$as_me: failed program was:" >&5 |
| 3564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3565 | |
| 3566 | ac_lo=`expr $ac_mid + 1` |
| 3567 | if test $ac_lo -le $ac_mid; then |
| 3568 | ac_lo= ac_hi= |
| 3569 | break |
| 3570 | fi |
| 3571 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 3572 | fi |
| 3573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3574 | done |
| 3575 | else |
| 3576 | echo "$as_me: failed program was:" >&5 |
| 3577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3578 | |
| 3579 | cat >conftest.$ac_ext <<_ACEOF |
| 3580 | /* confdefs.h. */ |
| 3581 | _ACEOF |
| 3582 | cat confdefs.h >>conftest.$ac_ext |
| 3583 | cat >>conftest.$ac_ext <<_ACEOF |
| 3584 | /* end confdefs.h. */ |
| 3585 | $ac_includes_default |
| 3586 | int |
| 3587 | main () |
| 3588 | { |
| 3589 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 3590 | test_array [0] = 0 |
| 3591 | |
| 3592 | ; |
| 3593 | return 0; |
| 3594 | } |
| 3595 | _ACEOF |
| 3596 | rm -f conftest.$ac_objext |
| 3597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3598 | (eval $ac_compile) 2>conftest.er1 |
| 3599 | ac_status=$? |
| 3600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3601 | rm -f conftest.er1 |
| 3602 | cat conftest.err >&5 |
| 3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3604 | (exit $ac_status); } && |
| 3605 | { ac_try='test -z "$ac_c_werror_flag" |
| 3606 | || test ! -s conftest.err' |
| 3607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3608 | (eval $ac_try) 2>&5 |
| 3609 | ac_status=$? |
| 3610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3611 | (exit $ac_status); }; } && |
| 3612 | { ac_try='test -s conftest.$ac_objext' |
| 3613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3614 | (eval $ac_try) 2>&5 |
| 3615 | ac_status=$? |
| 3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3617 | (exit $ac_status); }; }; then |
| 3618 | ac_hi=-1 ac_mid=-1 |
| 3619 | while :; do |
| 3620 | cat >conftest.$ac_ext <<_ACEOF |
| 3621 | /* confdefs.h. */ |
| 3622 | _ACEOF |
| 3623 | cat confdefs.h >>conftest.$ac_ext |
| 3624 | cat >>conftest.$ac_ext <<_ACEOF |
| 3625 | /* end confdefs.h. */ |
| 3626 | $ac_includes_default |
| 3627 | int |
| 3628 | main () |
| 3629 | { |
| 3630 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 3631 | test_array [0] = 0 |
| 3632 | |
| 3633 | ; |
| 3634 | return 0; |
| 3635 | } |
| 3636 | _ACEOF |
| 3637 | rm -f conftest.$ac_objext |
| 3638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3639 | (eval $ac_compile) 2>conftest.er1 |
| 3640 | ac_status=$? |
| 3641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3642 | rm -f conftest.er1 |
| 3643 | cat conftest.err >&5 |
| 3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3645 | (exit $ac_status); } && |
| 3646 | { ac_try='test -z "$ac_c_werror_flag" |
| 3647 | || test ! -s conftest.err' |
| 3648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3649 | (eval $ac_try) 2>&5 |
| 3650 | ac_status=$? |
| 3651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3652 | (exit $ac_status); }; } && |
| 3653 | { ac_try='test -s conftest.$ac_objext' |
| 3654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3655 | (eval $ac_try) 2>&5 |
| 3656 | ac_status=$? |
| 3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3658 | (exit $ac_status); }; }; then |
| 3659 | ac_lo=$ac_mid; break |
| 3660 | else |
| 3661 | echo "$as_me: failed program was:" >&5 |
| 3662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3663 | |
| 3664 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 3665 | if test $ac_mid -le $ac_hi; then |
| 3666 | ac_lo= ac_hi= |
| 3667 | break |
| 3668 | fi |
| 3669 | ac_mid=`expr 2 '*' $ac_mid` |
| 3670 | fi |
| 3671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3672 | done |
| 3673 | else |
| 3674 | echo "$as_me: failed program was:" >&5 |
| 3675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3676 | |
| 3677 | ac_lo= ac_hi= |
| 3678 | fi |
| 3679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3680 | fi |
| 3681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3682 | # Binary search between lo and hi bounds. |
| 3683 | while test "x$ac_lo" != "x$ac_hi"; do |
| 3684 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 3685 | cat >conftest.$ac_ext <<_ACEOF |
| 3686 | /* confdefs.h. */ |
| 3687 | _ACEOF |
| 3688 | cat confdefs.h >>conftest.$ac_ext |
| 3689 | cat >>conftest.$ac_ext <<_ACEOF |
| 3690 | /* end confdefs.h. */ |
| 3691 | $ac_includes_default |
| 3692 | int |
| 3693 | main () |
| 3694 | { |
| 3695 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 3696 | test_array [0] = 0 |
| 3697 | |
| 3698 | ; |
| 3699 | return 0; |
| 3700 | } |
| 3701 | _ACEOF |
| 3702 | rm -f conftest.$ac_objext |
| 3703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3704 | (eval $ac_compile) 2>conftest.er1 |
| 3705 | ac_status=$? |
| 3706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3707 | rm -f conftest.er1 |
| 3708 | cat conftest.err >&5 |
| 3709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3710 | (exit $ac_status); } && |
| 3711 | { ac_try='test -z "$ac_c_werror_flag" |
| 3712 | || test ! -s conftest.err' |
| 3713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3714 | (eval $ac_try) 2>&5 |
| 3715 | ac_status=$? |
| 3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3717 | (exit $ac_status); }; } && |
| 3718 | { ac_try='test -s conftest.$ac_objext' |
| 3719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3720 | (eval $ac_try) 2>&5 |
| 3721 | ac_status=$? |
| 3722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3723 | (exit $ac_status); }; }; then |
| 3724 | ac_hi=$ac_mid |
| 3725 | else |
| 3726 | echo "$as_me: failed program was:" >&5 |
| 3727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3728 | |
| 3729 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 3730 | fi |
| 3731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3732 | done |
| 3733 | case $ac_lo in |
| 3734 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 3735 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 3736 | See \`config.log' for more details." >&5 |
| 3737 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 3738 | See \`config.log' for more details." >&2;} |
| 3739 | { (exit 1); exit 1; }; } ;; |
| 3740 | esac |
| 3741 | else |
| 3742 | if test "$cross_compiling" = yes; then |
| 3743 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 3744 | See \`config.log' for more details." >&5 |
| 3745 | echo "$as_me: error: cannot run test program while cross compiling |
| 3746 | See \`config.log' for more details." >&2;} |
| 3747 | { (exit 1); exit 1; }; } |
| 3748 | else |
| 3749 | cat >conftest.$ac_ext <<_ACEOF |
| 3750 | /* confdefs.h. */ |
| 3751 | _ACEOF |
| 3752 | cat confdefs.h >>conftest.$ac_ext |
| 3753 | cat >>conftest.$ac_ext <<_ACEOF |
| 3754 | /* end confdefs.h. */ |
| 3755 | $ac_includes_default |
| 3756 | long longval () { return (long) (sizeof (long)); } |
| 3757 | unsigned long ulongval () { return (long) (sizeof (long)); } |
| 3758 | #include <stdio.h> |
| 3759 | #include <stdlib.h> |
| 3760 | int |
| 3761 | main () |
| 3762 | { |
| 3763 | |
| 3764 | FILE *f = fopen ("conftest.val", "w"); |
| 3765 | if (! f) |
| 3766 | exit (1); |
| 3767 | if (((long) (sizeof (long))) < 0) |
| 3768 | { |
| 3769 | long i = longval (); |
| 3770 | if (i != ((long) (sizeof (long)))) |
| 3771 | exit (1); |
| 3772 | fprintf (f, "%ld\n", i); |
| 3773 | } |
| 3774 | else |
| 3775 | { |
| 3776 | unsigned long i = ulongval (); |
| 3777 | if (i != ((long) (sizeof (long)))) |
| 3778 | exit (1); |
| 3779 | fprintf (f, "%lu\n", i); |
| 3780 | } |
| 3781 | exit (ferror (f) || fclose (f) != 0); |
| 3782 | |
| 3783 | ; |
| 3784 | return 0; |
| 3785 | } |
| 3786 | _ACEOF |
| 3787 | rm -f conftest$ac_exeext |
| 3788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3789 | (eval $ac_link) 2>&5 |
| 3790 | ac_status=$? |
| 3791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3792 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3794 | (eval $ac_try) 2>&5 |
| 3795 | ac_status=$? |
| 3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3797 | (exit $ac_status); }; }; then |
| 3798 | ac_cv_sizeof_long=`cat conftest.val` |
| 3799 | else |
| 3800 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3801 | echo "$as_me: failed program was:" >&5 |
| 3802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3803 | |
| 3804 | ( exit $ac_status ) |
| 3805 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 3806 | See \`config.log' for more details." >&5 |
| 3807 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 3808 | See \`config.log' for more details." >&2;} |
| 3809 | { (exit 1); exit 1; }; } |
| 3810 | fi |
| 3811 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3812 | fi |
| 3813 | fi |
| 3814 | rm -f conftest.val |
| 3815 | else |
| 3816 | ac_cv_sizeof_long=0 |
| 3817 | fi |
| 3818 | fi |
| 3819 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 3820 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 3821 | cat >>confdefs.h <<_ACEOF |
| 3822 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 3823 | _ACEOF |
| 3824 | |
| 3825 | |
| 3826 | if test "x${ac_cv_sizeof_long}" = "x8"; then |
| 3827 | want64=true |
| 3828 | fi |
| 3829 | fi |
| 3830 | if test x${want64} = xtrue; then |
| 3831 | TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)' |
| 3832 | else |
| 3833 | TARGET_OBS='$(ALL_TARGET_OBS)' |
| 3834 | fi |
| 3835 | fi |
| 3836 | |
| 3837 | |
| 3838 | |
| 3839 | # For other settings, only the main target counts. |
| 3840 | gdb_sim= |
| 3841 | gdb_osabi= |
| 3842 | build_gdbserver= |
| 3843 | targ=$target; . ${srcdir}/configure.tgt |
| 3844 | |
| 3845 | # Fetch the default architecture and default target vector from BFD. |
| 3846 | targ=$target; . $srcdir/../bfd/config.bfd |
| 3847 | |
| 3848 | # We only want the first architecture, so strip off the others if |
| 3849 | # there is more than one. |
| 3850 | targ_archs=`echo $targ_archs | sed 's/ .*//'` |
| 3851 | |
| 3852 | if test "x$targ_archs" != x; then |
| 3853 | |
| 3854 | cat >>confdefs.h <<_ACEOF |
| 3855 | #define DEFAULT_BFD_ARCH $targ_archs |
| 3856 | _ACEOF |
| 3857 | |
| 3858 | fi |
| 3859 | if test "x$targ_defvec" != x; then |
| 3860 | |
| 3861 | cat >>confdefs.h <<_ACEOF |
| 3862 | #define DEFAULT_BFD_VEC $targ_defvec |
| 3863 | _ACEOF |
| 3864 | |
| 3865 | fi |
| 3866 | |
| 3867 | test "$program_prefix" != NONE && |
| 3868 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 3869 | # Use a double $ so make ignores it. |
| 3870 | test "$program_suffix" != NONE && |
| 3871 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 3872 | # Double any \ or $. echo might interpret backslashes. |
| 3873 | # By default was `s,x,x', remove it if useless. |
| 3874 | cat <<\_ACEOF >conftest.sed |
| 3875 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 3876 | _ACEOF |
| 3877 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 3878 | rm conftest.sed |
| 3879 | |
| 3880 | |
| 3881 | # The CLI cannot be disabled yet, but may be in the future. |
| 3882 | |
| 3883 | # Enable CLI. |
| 3884 | # Check whether --enable-gdbcli or --disable-gdbcli was given. |
| 3885 | if test "${enable_gdbcli+set}" = set; then |
| 3886 | enableval="$enable_gdbcli" |
| 3887 | case $enableval in |
| 3888 | yes) |
| 3889 | ;; |
| 3890 | no) |
| 3891 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 |
| 3892 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} |
| 3893 | { (exit 1); exit 1; }; } ;; |
| 3894 | *) |
| 3895 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 |
| 3896 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} |
| 3897 | { (exit 1); exit 1; }; } ;; |
| 3898 | esac |
| 3899 | else |
| 3900 | enable_gdbcli=yes |
| 3901 | fi; |
| 3902 | if test x"$enable_gdbcli" = xyes; then |
| 3903 | if test -d $srcdir/cli; then |
| 3904 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" |
| 3905 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" |
| 3906 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" |
| 3907 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" |
| 3908 | fi |
| 3909 | fi |
| 3910 | |
| 3911 | # Enable MI. |
| 3912 | # Check whether --enable-gdbmi or --disable-gdbmi was given. |
| 3913 | if test "${enable_gdbmi+set}" = set; then |
| 3914 | enableval="$enable_gdbmi" |
| 3915 | case $enableval in |
| 3916 | yes | no) |
| 3917 | ;; |
| 3918 | *) |
| 3919 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 |
| 3920 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} |
| 3921 | { (exit 1); exit 1; }; } ;; |
| 3922 | esac |
| 3923 | else |
| 3924 | enable_gdbmi=yes |
| 3925 | fi; |
| 3926 | if test x"$enable_gdbmi" = xyes; then |
| 3927 | if test -d $srcdir/mi; then |
| 3928 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" |
| 3929 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" |
| 3930 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" |
| 3931 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" |
| 3932 | fi |
| 3933 | fi |
| 3934 | |
| 3935 | # Enable TUI. |
| 3936 | # Check whether --enable-tui or --disable-tui was given. |
| 3937 | if test "${enable_tui+set}" = set; then |
| 3938 | enableval="$enable_tui" |
| 3939 | case $enableval in |
| 3940 | yes | no) |
| 3941 | ;; |
| 3942 | *) |
| 3943 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 |
| 3944 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} |
| 3945 | { (exit 1); exit 1; }; } ;; |
| 3946 | esac |
| 3947 | else |
| 3948 | enable_tui=yes |
| 3949 | fi; |
| 3950 | |
| 3951 | # Enable gdbtk. |
| 3952 | # Check whether --enable-gdbtk or --disable-gdbtk was given. |
| 3953 | if test "${enable_gdbtk+set}" = set; then |
| 3954 | enableval="$enable_gdbtk" |
| 3955 | case $enableval in |
| 3956 | yes | no) |
| 3957 | ;; |
| 3958 | *) |
| 3959 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 |
| 3960 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} |
| 3961 | { (exit 1); exit 1; }; } ;; |
| 3962 | esac |
| 3963 | else |
| 3964 | if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then |
| 3965 | enable_gdbtk=yes |
| 3966 | else |
| 3967 | enable_gdbtk=no |
| 3968 | fi |
| 3969 | fi; |
| 3970 | # We unconditionally disable gdbtk tests on selected platforms. |
| 3971 | case $host_os in |
| 3972 | go32* | windows*) |
| 3973 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 |
| 3974 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} |
| 3975 | enable_gdbtk=no ;; |
| 3976 | esac |
| 3977 | |
| 3978 | # Libunwind support. |
| 3979 | |
| 3980 | # Check whether --with-libunwind or --without-libunwind was given. |
| 3981 | if test "${with_libunwind+set}" = set; then |
| 3982 | withval="$with_libunwind" |
| 3983 | case "${withval}" in |
| 3984 | yes) enable_libunwind=yes ;; |
| 3985 | no) enable_libunwind=no ;; |
| 3986 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 |
| 3987 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} |
| 3988 | { (exit 1); exit 1; }; } ;; |
| 3989 | esac |
| 3990 | else |
| 3991 | |
| 3992 | |
| 3993 | for ac_header in libunwind.h |
| 3994 | do |
| 3995 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3996 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3997 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3998 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3999 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4001 | fi |
| 4002 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4003 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4004 | else |
| 4005 | # Is the header compilable? |
| 4006 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4007 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4008 | cat >conftest.$ac_ext <<_ACEOF |
| 4009 | /* confdefs.h. */ |
| 4010 | _ACEOF |
| 4011 | cat confdefs.h >>conftest.$ac_ext |
| 4012 | cat >>conftest.$ac_ext <<_ACEOF |
| 4013 | /* end confdefs.h. */ |
| 4014 | $ac_includes_default |
| 4015 | #include <$ac_header> |
| 4016 | _ACEOF |
| 4017 | rm -f conftest.$ac_objext |
| 4018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4019 | (eval $ac_compile) 2>conftest.er1 |
| 4020 | ac_status=$? |
| 4021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4022 | rm -f conftest.er1 |
| 4023 | cat conftest.err >&5 |
| 4024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4025 | (exit $ac_status); } && |
| 4026 | { ac_try='test -z "$ac_c_werror_flag" |
| 4027 | || test ! -s conftest.err' |
| 4028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4029 | (eval $ac_try) 2>&5 |
| 4030 | ac_status=$? |
| 4031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4032 | (exit $ac_status); }; } && |
| 4033 | { ac_try='test -s conftest.$ac_objext' |
| 4034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4035 | (eval $ac_try) 2>&5 |
| 4036 | ac_status=$? |
| 4037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4038 | (exit $ac_status); }; }; then |
| 4039 | ac_header_compiler=yes |
| 4040 | else |
| 4041 | echo "$as_me: failed program was:" >&5 |
| 4042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4043 | |
| 4044 | ac_header_compiler=no |
| 4045 | fi |
| 4046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4047 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4048 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4049 | |
| 4050 | # Is the header present? |
| 4051 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4052 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4053 | cat >conftest.$ac_ext <<_ACEOF |
| 4054 | /* confdefs.h. */ |
| 4055 | _ACEOF |
| 4056 | cat confdefs.h >>conftest.$ac_ext |
| 4057 | cat >>conftest.$ac_ext <<_ACEOF |
| 4058 | /* end confdefs.h. */ |
| 4059 | #include <$ac_header> |
| 4060 | _ACEOF |
| 4061 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4062 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4063 | ac_status=$? |
| 4064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4065 | rm -f conftest.er1 |
| 4066 | cat conftest.err >&5 |
| 4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4068 | (exit $ac_status); } >/dev/null; then |
| 4069 | if test -s conftest.err; then |
| 4070 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4071 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4072 | else |
| 4073 | ac_cpp_err= |
| 4074 | fi |
| 4075 | else |
| 4076 | ac_cpp_err=yes |
| 4077 | fi |
| 4078 | if test -z "$ac_cpp_err"; then |
| 4079 | ac_header_preproc=yes |
| 4080 | else |
| 4081 | echo "$as_me: failed program was:" >&5 |
| 4082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4083 | |
| 4084 | ac_header_preproc=no |
| 4085 | fi |
| 4086 | rm -f conftest.err conftest.$ac_ext |
| 4087 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4088 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4089 | |
| 4090 | # So? What about this header? |
| 4091 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4092 | yes:no: ) |
| 4093 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4094 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4095 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4096 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4097 | ac_header_preproc=yes |
| 4098 | ;; |
| 4099 | no:yes:* ) |
| 4100 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4101 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4102 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4103 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4104 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4105 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4106 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4107 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4108 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4109 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4110 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4111 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 4112 | ( |
| 4113 | cat <<\_ASBOX |
| 4114 | ## ------------------------------------------ ## |
| 4115 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 4116 | ## ------------------------------------------ ## |
| 4117 | _ASBOX |
| 4118 | ) | |
| 4119 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4120 | ;; |
| 4121 | esac |
| 4122 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4123 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4126 | else |
| 4127 | eval "$as_ac_Header=\$ac_header_preproc" |
| 4128 | fi |
| 4129 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4130 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4131 | |
| 4132 | fi |
| 4133 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4134 | cat >>confdefs.h <<_ACEOF |
| 4135 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4136 | _ACEOF |
| 4137 | |
| 4138 | fi |
| 4139 | |
| 4140 | done |
| 4141 | |
| 4142 | |
| 4143 | for ac_header in libunwind-ia64.h |
| 4144 | do |
| 4145 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4146 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4147 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4148 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4149 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4151 | fi |
| 4152 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4153 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4154 | else |
| 4155 | # Is the header compilable? |
| 4156 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4157 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4158 | cat >conftest.$ac_ext <<_ACEOF |
| 4159 | /* confdefs.h. */ |
| 4160 | _ACEOF |
| 4161 | cat confdefs.h >>conftest.$ac_ext |
| 4162 | cat >>conftest.$ac_ext <<_ACEOF |
| 4163 | /* end confdefs.h. */ |
| 4164 | $ac_includes_default |
| 4165 | #include <$ac_header> |
| 4166 | _ACEOF |
| 4167 | rm -f conftest.$ac_objext |
| 4168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4169 | (eval $ac_compile) 2>conftest.er1 |
| 4170 | ac_status=$? |
| 4171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4172 | rm -f conftest.er1 |
| 4173 | cat conftest.err >&5 |
| 4174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4175 | (exit $ac_status); } && |
| 4176 | { ac_try='test -z "$ac_c_werror_flag" |
| 4177 | || test ! -s conftest.err' |
| 4178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4179 | (eval $ac_try) 2>&5 |
| 4180 | ac_status=$? |
| 4181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4182 | (exit $ac_status); }; } && |
| 4183 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 4189 | ac_header_compiler=yes |
| 4190 | else |
| 4191 | echo "$as_me: failed program was:" >&5 |
| 4192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4193 | |
| 4194 | ac_header_compiler=no |
| 4195 | fi |
| 4196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4197 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4198 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4199 | |
| 4200 | # Is the header present? |
| 4201 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4202 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4203 | cat >conftest.$ac_ext <<_ACEOF |
| 4204 | /* confdefs.h. */ |
| 4205 | _ACEOF |
| 4206 | cat confdefs.h >>conftest.$ac_ext |
| 4207 | cat >>conftest.$ac_ext <<_ACEOF |
| 4208 | /* end confdefs.h. */ |
| 4209 | #include <$ac_header> |
| 4210 | _ACEOF |
| 4211 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4212 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4213 | ac_status=$? |
| 4214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4215 | rm -f conftest.er1 |
| 4216 | cat conftest.err >&5 |
| 4217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4218 | (exit $ac_status); } >/dev/null; then |
| 4219 | if test -s conftest.err; then |
| 4220 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4221 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4222 | else |
| 4223 | ac_cpp_err= |
| 4224 | fi |
| 4225 | else |
| 4226 | ac_cpp_err=yes |
| 4227 | fi |
| 4228 | if test -z "$ac_cpp_err"; then |
| 4229 | ac_header_preproc=yes |
| 4230 | else |
| 4231 | echo "$as_me: failed program was:" >&5 |
| 4232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4233 | |
| 4234 | ac_header_preproc=no |
| 4235 | fi |
| 4236 | rm -f conftest.err conftest.$ac_ext |
| 4237 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4238 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4239 | |
| 4240 | # So? What about this header? |
| 4241 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4242 | yes:no: ) |
| 4243 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4244 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4245 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4246 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4247 | ac_header_preproc=yes |
| 4248 | ;; |
| 4249 | no:yes:* ) |
| 4250 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4251 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4252 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4253 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4254 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4255 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4256 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4257 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4258 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4259 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4260 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4261 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 4262 | ( |
| 4263 | cat <<\_ASBOX |
| 4264 | ## ------------------------------------------ ## |
| 4265 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 4266 | ## ------------------------------------------ ## |
| 4267 | _ASBOX |
| 4268 | ) | |
| 4269 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4270 | ;; |
| 4271 | esac |
| 4272 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4273 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4274 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4276 | else |
| 4277 | eval "$as_ac_Header=\$ac_header_preproc" |
| 4278 | fi |
| 4279 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4280 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4281 | |
| 4282 | fi |
| 4283 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4284 | cat >>confdefs.h <<_ACEOF |
| 4285 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4286 | _ACEOF |
| 4287 | |
| 4288 | fi |
| 4289 | |
| 4290 | done |
| 4291 | |
| 4292 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then |
| 4293 | enable_libunwind=yes; |
| 4294 | fi |
| 4295 | |
| 4296 | fi; |
| 4297 | |
| 4298 | if test x"$enable_libunwind" = xyes; then |
| 4299 | |
| 4300 | for ac_header in libunwind.h |
| 4301 | do |
| 4302 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4304 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4306 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4308 | fi |
| 4309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4310 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4311 | else |
| 4312 | # Is the header compilable? |
| 4313 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4314 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4315 | cat >conftest.$ac_ext <<_ACEOF |
| 4316 | /* confdefs.h. */ |
| 4317 | _ACEOF |
| 4318 | cat confdefs.h >>conftest.$ac_ext |
| 4319 | cat >>conftest.$ac_ext <<_ACEOF |
| 4320 | /* end confdefs.h. */ |
| 4321 | $ac_includes_default |
| 4322 | #include <$ac_header> |
| 4323 | _ACEOF |
| 4324 | rm -f conftest.$ac_objext |
| 4325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4326 | (eval $ac_compile) 2>conftest.er1 |
| 4327 | ac_status=$? |
| 4328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4329 | rm -f conftest.er1 |
| 4330 | cat conftest.err >&5 |
| 4331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4332 | (exit $ac_status); } && |
| 4333 | { ac_try='test -z "$ac_c_werror_flag" |
| 4334 | || test ! -s conftest.err' |
| 4335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4336 | (eval $ac_try) 2>&5 |
| 4337 | ac_status=$? |
| 4338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4339 | (exit $ac_status); }; } && |
| 4340 | { ac_try='test -s conftest.$ac_objext' |
| 4341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4342 | (eval $ac_try) 2>&5 |
| 4343 | ac_status=$? |
| 4344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4345 | (exit $ac_status); }; }; then |
| 4346 | ac_header_compiler=yes |
| 4347 | else |
| 4348 | echo "$as_me: failed program was:" >&5 |
| 4349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4350 | |
| 4351 | ac_header_compiler=no |
| 4352 | fi |
| 4353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4354 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4355 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4356 | |
| 4357 | # Is the header present? |
| 4358 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4359 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4360 | cat >conftest.$ac_ext <<_ACEOF |
| 4361 | /* confdefs.h. */ |
| 4362 | _ACEOF |
| 4363 | cat confdefs.h >>conftest.$ac_ext |
| 4364 | cat >>conftest.$ac_ext <<_ACEOF |
| 4365 | /* end confdefs.h. */ |
| 4366 | #include <$ac_header> |
| 4367 | _ACEOF |
| 4368 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4369 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4370 | ac_status=$? |
| 4371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4372 | rm -f conftest.er1 |
| 4373 | cat conftest.err >&5 |
| 4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4375 | (exit $ac_status); } >/dev/null; then |
| 4376 | if test -s conftest.err; then |
| 4377 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4378 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4379 | else |
| 4380 | ac_cpp_err= |
| 4381 | fi |
| 4382 | else |
| 4383 | ac_cpp_err=yes |
| 4384 | fi |
| 4385 | if test -z "$ac_cpp_err"; then |
| 4386 | ac_header_preproc=yes |
| 4387 | else |
| 4388 | echo "$as_me: failed program was:" >&5 |
| 4389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4390 | |
| 4391 | ac_header_preproc=no |
| 4392 | fi |
| 4393 | rm -f conftest.err conftest.$ac_ext |
| 4394 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4395 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4396 | |
| 4397 | # So? What about this header? |
| 4398 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4399 | yes:no: ) |
| 4400 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4401 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4402 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4403 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4404 | ac_header_preproc=yes |
| 4405 | ;; |
| 4406 | no:yes:* ) |
| 4407 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4408 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4409 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4410 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4411 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4412 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4413 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4414 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4415 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4416 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4417 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4418 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 4419 | ( |
| 4420 | cat <<\_ASBOX |
| 4421 | ## ------------------------------------------ ## |
| 4422 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 4423 | ## ------------------------------------------ ## |
| 4424 | _ASBOX |
| 4425 | ) | |
| 4426 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4427 | ;; |
| 4428 | esac |
| 4429 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4433 | else |
| 4434 | eval "$as_ac_Header=\$ac_header_preproc" |
| 4435 | fi |
| 4436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4437 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4438 | |
| 4439 | fi |
| 4440 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4441 | cat >>confdefs.h <<_ACEOF |
| 4442 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4443 | _ACEOF |
| 4444 | |
| 4445 | fi |
| 4446 | |
| 4447 | done |
| 4448 | |
| 4449 | |
| 4450 | for ac_header in libunwind-ia64.h |
| 4451 | do |
| 4452 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4453 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4454 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4455 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4456 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4458 | fi |
| 4459 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4460 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4461 | else |
| 4462 | # Is the header compilable? |
| 4463 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4464 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4465 | cat >conftest.$ac_ext <<_ACEOF |
| 4466 | /* confdefs.h. */ |
| 4467 | _ACEOF |
| 4468 | cat confdefs.h >>conftest.$ac_ext |
| 4469 | cat >>conftest.$ac_ext <<_ACEOF |
| 4470 | /* end confdefs.h. */ |
| 4471 | $ac_includes_default |
| 4472 | #include <$ac_header> |
| 4473 | _ACEOF |
| 4474 | rm -f conftest.$ac_objext |
| 4475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4476 | (eval $ac_compile) 2>conftest.er1 |
| 4477 | ac_status=$? |
| 4478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4479 | rm -f conftest.er1 |
| 4480 | cat conftest.err >&5 |
| 4481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4482 | (exit $ac_status); } && |
| 4483 | { ac_try='test -z "$ac_c_werror_flag" |
| 4484 | || test ! -s conftest.err' |
| 4485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4486 | (eval $ac_try) 2>&5 |
| 4487 | ac_status=$? |
| 4488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4489 | (exit $ac_status); }; } && |
| 4490 | { ac_try='test -s conftest.$ac_objext' |
| 4491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4492 | (eval $ac_try) 2>&5 |
| 4493 | ac_status=$? |
| 4494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4495 | (exit $ac_status); }; }; then |
| 4496 | ac_header_compiler=yes |
| 4497 | else |
| 4498 | echo "$as_me: failed program was:" >&5 |
| 4499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4500 | |
| 4501 | ac_header_compiler=no |
| 4502 | fi |
| 4503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4504 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4505 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4506 | |
| 4507 | # Is the header present? |
| 4508 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4509 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4510 | cat >conftest.$ac_ext <<_ACEOF |
| 4511 | /* confdefs.h. */ |
| 4512 | _ACEOF |
| 4513 | cat confdefs.h >>conftest.$ac_ext |
| 4514 | cat >>conftest.$ac_ext <<_ACEOF |
| 4515 | /* end confdefs.h. */ |
| 4516 | #include <$ac_header> |
| 4517 | _ACEOF |
| 4518 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4519 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4520 | ac_status=$? |
| 4521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4522 | rm -f conftest.er1 |
| 4523 | cat conftest.err >&5 |
| 4524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4525 | (exit $ac_status); } >/dev/null; then |
| 4526 | if test -s conftest.err; then |
| 4527 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4528 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4529 | else |
| 4530 | ac_cpp_err= |
| 4531 | fi |
| 4532 | else |
| 4533 | ac_cpp_err=yes |
| 4534 | fi |
| 4535 | if test -z "$ac_cpp_err"; then |
| 4536 | ac_header_preproc=yes |
| 4537 | else |
| 4538 | echo "$as_me: failed program was:" >&5 |
| 4539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4540 | |
| 4541 | ac_header_preproc=no |
| 4542 | fi |
| 4543 | rm -f conftest.err conftest.$ac_ext |
| 4544 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4545 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4546 | |
| 4547 | # So? What about this header? |
| 4548 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4549 | yes:no: ) |
| 4550 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4551 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4552 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4553 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4554 | ac_header_preproc=yes |
| 4555 | ;; |
| 4556 | no:yes:* ) |
| 4557 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4558 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4559 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4560 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4561 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4562 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4563 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4564 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4565 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4566 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4567 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4568 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 4569 | ( |
| 4570 | cat <<\_ASBOX |
| 4571 | ## ------------------------------------------ ## |
| 4572 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 4573 | ## ------------------------------------------ ## |
| 4574 | _ASBOX |
| 4575 | ) | |
| 4576 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4577 | ;; |
| 4578 | esac |
| 4579 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4580 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4581 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4583 | else |
| 4584 | eval "$as_ac_Header=\$ac_header_preproc" |
| 4585 | fi |
| 4586 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4587 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4588 | |
| 4589 | fi |
| 4590 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4591 | cat >>confdefs.h <<_ACEOF |
| 4592 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4593 | _ACEOF |
| 4594 | |
| 4595 | fi |
| 4596 | |
| 4597 | done |
| 4598 | |
| 4599 | |
| 4600 | cat >>confdefs.h <<\_ACEOF |
| 4601 | #define HAVE_LIBUNWIND 1 |
| 4602 | _ACEOF |
| 4603 | |
| 4604 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" |
| 4605 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" |
| 4606 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" |
| 4607 | fi |
| 4608 | |
| 4609 | # Profiling support. |
| 4610 | # Check whether --enable-profiling or --disable-profiling was given. |
| 4611 | if test "${enable_profiling+set}" = set; then |
| 4612 | enableval="$enable_profiling" |
| 4613 | case $enableval in |
| 4614 | yes | no) |
| 4615 | ;; |
| 4616 | *) |
| 4617 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 |
| 4618 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} |
| 4619 | { (exit 1); exit 1; }; } ;; |
| 4620 | esac |
| 4621 | else |
| 4622 | enable_profiling=no |
| 4623 | fi; |
| 4624 | |
| 4625 | |
| 4626 | |
| 4627 | for ac_func in monstartup _mcleanup |
| 4628 | do |
| 4629 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4630 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 4631 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4632 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4634 | else |
| 4635 | cat >conftest.$ac_ext <<_ACEOF |
| 4636 | /* confdefs.h. */ |
| 4637 | _ACEOF |
| 4638 | cat confdefs.h >>conftest.$ac_ext |
| 4639 | cat >>conftest.$ac_ext <<_ACEOF |
| 4640 | /* end confdefs.h. */ |
| 4641 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 4642 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4643 | #define $ac_func innocuous_$ac_func |
| 4644 | |
| 4645 | /* System header to define __stub macros and hopefully few prototypes, |
| 4646 | which can conflict with char $ac_func (); below. |
| 4647 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4648 | <limits.h> exists even on freestanding compilers. */ |
| 4649 | |
| 4650 | #ifdef __STDC__ |
| 4651 | # include <limits.h> |
| 4652 | #else |
| 4653 | # include <assert.h> |
| 4654 | #endif |
| 4655 | |
| 4656 | #undef $ac_func |
| 4657 | |
| 4658 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4659 | #ifdef __cplusplus |
| 4660 | extern "C" |
| 4661 | { |
| 4662 | #endif |
| 4663 | /* We use char because int might match the return type of a gcc2 |
| 4664 | builtin and then its argument prototype would still apply. */ |
| 4665 | char $ac_func (); |
| 4666 | /* The GNU C library defines this for functions which it implements |
| 4667 | to always fail with ENOSYS. Some functions are actually named |
| 4668 | something starting with __ and the normal name is an alias. */ |
| 4669 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4670 | choke me |
| 4671 | #else |
| 4672 | char (*f) () = $ac_func; |
| 4673 | #endif |
| 4674 | #ifdef __cplusplus |
| 4675 | } |
| 4676 | #endif |
| 4677 | |
| 4678 | int |
| 4679 | main () |
| 4680 | { |
| 4681 | return f != $ac_func; |
| 4682 | ; |
| 4683 | return 0; |
| 4684 | } |
| 4685 | _ACEOF |
| 4686 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4688 | (eval $ac_link) 2>conftest.er1 |
| 4689 | ac_status=$? |
| 4690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4691 | rm -f conftest.er1 |
| 4692 | cat conftest.err >&5 |
| 4693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4694 | (exit $ac_status); } && |
| 4695 | { ac_try='test -z "$ac_c_werror_flag" |
| 4696 | || test ! -s conftest.err' |
| 4697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4698 | (eval $ac_try) 2>&5 |
| 4699 | ac_status=$? |
| 4700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4701 | (exit $ac_status); }; } && |
| 4702 | { ac_try='test -s conftest$ac_exeext' |
| 4703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4704 | (eval $ac_try) 2>&5 |
| 4705 | ac_status=$? |
| 4706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4707 | (exit $ac_status); }; }; then |
| 4708 | eval "$as_ac_var=yes" |
| 4709 | else |
| 4710 | echo "$as_me: failed program was:" >&5 |
| 4711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4712 | |
| 4713 | eval "$as_ac_var=no" |
| 4714 | fi |
| 4715 | rm -f conftest.err conftest.$ac_objext \ |
| 4716 | conftest$ac_exeext conftest.$ac_ext |
| 4717 | fi |
| 4718 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4719 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4720 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4721 | cat >>confdefs.h <<_ACEOF |
| 4722 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4723 | _ACEOF |
| 4724 | |
| 4725 | fi |
| 4726 | done |
| 4727 | |
| 4728 | echo "$as_me:$LINENO: checking for _etext" >&5 |
| 4729 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 |
| 4730 | if test "${ac_cv_var__etext+set}" = set; then |
| 4731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4732 | else |
| 4733 | cat >conftest.$ac_ext <<_ACEOF |
| 4734 | /* confdefs.h. */ |
| 4735 | _ACEOF |
| 4736 | cat confdefs.h >>conftest.$ac_ext |
| 4737 | cat >>conftest.$ac_ext <<_ACEOF |
| 4738 | /* end confdefs.h. */ |
| 4739 | #include <stdlib.h> |
| 4740 | extern char _etext; |
| 4741 | |
| 4742 | int |
| 4743 | main () |
| 4744 | { |
| 4745 | free (&_etext); |
| 4746 | ; |
| 4747 | return 0; |
| 4748 | } |
| 4749 | _ACEOF |
| 4750 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4752 | (eval $ac_link) 2>conftest.er1 |
| 4753 | ac_status=$? |
| 4754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4755 | rm -f conftest.er1 |
| 4756 | cat conftest.err >&5 |
| 4757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4758 | (exit $ac_status); } && |
| 4759 | { ac_try='test -z "$ac_c_werror_flag" |
| 4760 | || test ! -s conftest.err' |
| 4761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4762 | (eval $ac_try) 2>&5 |
| 4763 | ac_status=$? |
| 4764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4765 | (exit $ac_status); }; } && |
| 4766 | { ac_try='test -s conftest$ac_exeext' |
| 4767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4768 | (eval $ac_try) 2>&5 |
| 4769 | ac_status=$? |
| 4770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4771 | (exit $ac_status); }; }; then |
| 4772 | ac_cv_var__etext=yes |
| 4773 | else |
| 4774 | echo "$as_me: failed program was:" >&5 |
| 4775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4776 | |
| 4777 | ac_cv_var__etext=no |
| 4778 | fi |
| 4779 | rm -f conftest.err conftest.$ac_objext \ |
| 4780 | conftest$ac_exeext conftest.$ac_ext |
| 4781 | fi |
| 4782 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 |
| 4783 | echo "${ECHO_T}$ac_cv_var__etext" >&6 |
| 4784 | if test $ac_cv_var__etext = yes; then |
| 4785 | |
| 4786 | cat >>confdefs.h <<\_ACEOF |
| 4787 | #define HAVE__ETEXT 1 |
| 4788 | _ACEOF |
| 4789 | |
| 4790 | fi |
| 4791 | echo "$as_me:$LINENO: checking for etext" >&5 |
| 4792 | echo $ECHO_N "checking for etext... $ECHO_C" >&6 |
| 4793 | if test "${ac_cv_var_etext+set}" = set; then |
| 4794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4795 | else |
| 4796 | cat >conftest.$ac_ext <<_ACEOF |
| 4797 | /* confdefs.h. */ |
| 4798 | _ACEOF |
| 4799 | cat confdefs.h >>conftest.$ac_ext |
| 4800 | cat >>conftest.$ac_ext <<_ACEOF |
| 4801 | /* end confdefs.h. */ |
| 4802 | #include <stdlib.h> |
| 4803 | extern char etext; |
| 4804 | |
| 4805 | int |
| 4806 | main () |
| 4807 | { |
| 4808 | free (&etext); |
| 4809 | ; |
| 4810 | return 0; |
| 4811 | } |
| 4812 | _ACEOF |
| 4813 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4815 | (eval $ac_link) 2>conftest.er1 |
| 4816 | ac_status=$? |
| 4817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4818 | rm -f conftest.er1 |
| 4819 | cat conftest.err >&5 |
| 4820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4821 | (exit $ac_status); } && |
| 4822 | { ac_try='test -z "$ac_c_werror_flag" |
| 4823 | || test ! -s conftest.err' |
| 4824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4825 | (eval $ac_try) 2>&5 |
| 4826 | ac_status=$? |
| 4827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4828 | (exit $ac_status); }; } && |
| 4829 | { ac_try='test -s conftest$ac_exeext' |
| 4830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4831 | (eval $ac_try) 2>&5 |
| 4832 | ac_status=$? |
| 4833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4834 | (exit $ac_status); }; }; then |
| 4835 | ac_cv_var_etext=yes |
| 4836 | else |
| 4837 | echo "$as_me: failed program was:" >&5 |
| 4838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4839 | |
| 4840 | ac_cv_var_etext=no |
| 4841 | fi |
| 4842 | rm -f conftest.err conftest.$ac_objext \ |
| 4843 | conftest$ac_exeext conftest.$ac_ext |
| 4844 | fi |
| 4845 | echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5 |
| 4846 | echo "${ECHO_T}$ac_cv_var_etext" >&6 |
| 4847 | if test $ac_cv_var_etext = yes; then |
| 4848 | |
| 4849 | cat >>confdefs.h <<\_ACEOF |
| 4850 | #define HAVE_ETEXT 1 |
| 4851 | _ACEOF |
| 4852 | |
| 4853 | fi |
| 4854 | if test "$enable_profiling" = yes ; then |
| 4855 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then |
| 4856 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 |
| 4857 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} |
| 4858 | { (exit 1); exit 1; }; } |
| 4859 | fi |
| 4860 | PROFILE_CFLAGS=-pg |
| 4861 | OLD_CFLAGS="$CFLAGS" |
| 4862 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" |
| 4863 | |
| 4864 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 |
| 4865 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 |
| 4866 | if test "${ac_cv_cc_supports_pg+set}" = set; then |
| 4867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4868 | else |
| 4869 | cat >conftest.$ac_ext <<_ACEOF |
| 4870 | /* confdefs.h. */ |
| 4871 | _ACEOF |
| 4872 | cat confdefs.h >>conftest.$ac_ext |
| 4873 | cat >>conftest.$ac_ext <<_ACEOF |
| 4874 | /* end confdefs.h. */ |
| 4875 | |
| 4876 | int |
| 4877 | main () |
| 4878 | { |
| 4879 | int x; |
| 4880 | ; |
| 4881 | return 0; |
| 4882 | } |
| 4883 | _ACEOF |
| 4884 | rm -f conftest.$ac_objext |
| 4885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4886 | (eval $ac_compile) 2>conftest.er1 |
| 4887 | ac_status=$? |
| 4888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4889 | rm -f conftest.er1 |
| 4890 | cat conftest.err >&5 |
| 4891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4892 | (exit $ac_status); } && |
| 4893 | { ac_try='test -z "$ac_c_werror_flag" |
| 4894 | || test ! -s conftest.err' |
| 4895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4896 | (eval $ac_try) 2>&5 |
| 4897 | ac_status=$? |
| 4898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4899 | (exit $ac_status); }; } && |
| 4900 | { ac_try='test -s conftest.$ac_objext' |
| 4901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4902 | (eval $ac_try) 2>&5 |
| 4903 | ac_status=$? |
| 4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4905 | (exit $ac_status); }; }; then |
| 4906 | ac_cv_cc_supports_pg=yes |
| 4907 | else |
| 4908 | echo "$as_me: failed program was:" >&5 |
| 4909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4910 | |
| 4911 | ac_cv_cc_supports_pg=no |
| 4912 | fi |
| 4913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4914 | fi |
| 4915 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 |
| 4916 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 |
| 4917 | |
| 4918 | if test $ac_cv_cc_supports_pg = no; then |
| 4919 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 |
| 4920 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} |
| 4921 | { (exit 1); exit 1; }; } |
| 4922 | fi |
| 4923 | |
| 4924 | CFLAGS="$OLD_CFLAGS" |
| 4925 | fi |
| 4926 | |
| 4927 | # --------------------- # |
| 4928 | # Checks for programs. # |
| 4929 | # --------------------- # |
| 4930 | |
| 4931 | for ac_prog in gawk mawk nawk awk |
| 4932 | do |
| 4933 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4934 | set dummy $ac_prog; ac_word=$2 |
| 4935 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4936 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4937 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 4938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4939 | else |
| 4940 | if test -n "$AWK"; then |
| 4941 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 4942 | else |
| 4943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4944 | for as_dir in $PATH |
| 4945 | do |
| 4946 | IFS=$as_save_IFS |
| 4947 | test -z "$as_dir" && as_dir=. |
| 4948 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4949 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4950 | ac_cv_prog_AWK="$ac_prog" |
| 4951 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4952 | break 2 |
| 4953 | fi |
| 4954 | done |
| 4955 | done |
| 4956 | |
| 4957 | fi |
| 4958 | fi |
| 4959 | AWK=$ac_cv_prog_AWK |
| 4960 | if test -n "$AWK"; then |
| 4961 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 4962 | echo "${ECHO_T}$AWK" >&6 |
| 4963 | else |
| 4964 | echo "$as_me:$LINENO: result: no" >&5 |
| 4965 | echo "${ECHO_T}no" >&6 |
| 4966 | fi |
| 4967 | |
| 4968 | test -n "$AWK" && break |
| 4969 | done |
| 4970 | |
| 4971 | # Find a good install program. We prefer a C program (faster), |
| 4972 | # so one script is as good as another. But avoid the broken or |
| 4973 | # incompatible versions: |
| 4974 | # SysV /etc/install, /usr/sbin/install |
| 4975 | # SunOS /usr/etc/install |
| 4976 | # IRIX /sbin/install |
| 4977 | # AIX /bin/install |
| 4978 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4979 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4980 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4981 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4982 | # OS/2's system install, which has a completely different semantic |
| 4983 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4984 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4985 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 4986 | if test -z "$INSTALL"; then |
| 4987 | if test "${ac_cv_path_install+set}" = set; then |
| 4988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4989 | else |
| 4990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4991 | for as_dir in $PATH |
| 4992 | do |
| 4993 | IFS=$as_save_IFS |
| 4994 | test -z "$as_dir" && as_dir=. |
| 4995 | # Account for people who put trailing slashes in PATH elements. |
| 4996 | case $as_dir/ in |
| 4997 | ./ | .// | /cC/* | \ |
| 4998 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4999 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 5000 | /usr/ucb/* ) ;; |
| 5001 | *) |
| 5002 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5003 | # Don't use installbsd from OSF since it installs stuff as root |
| 5004 | # by default. |
| 5005 | for ac_prog in ginstall scoinst install; do |
| 5006 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5007 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 5008 | if test $ac_prog = install && |
| 5009 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5010 | # AIX install. It has an incompatible calling convention. |
| 5011 | : |
| 5012 | elif test $ac_prog = install && |
| 5013 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5014 | # program-specific install script used by HP pwplus--don't use. |
| 5015 | : |
| 5016 | else |
| 5017 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5018 | break 3 |
| 5019 | fi |
| 5020 | fi |
| 5021 | done |
| 5022 | done |
| 5023 | ;; |
| 5024 | esac |
| 5025 | done |
| 5026 | |
| 5027 | |
| 5028 | fi |
| 5029 | if test "${ac_cv_path_install+set}" = set; then |
| 5030 | INSTALL=$ac_cv_path_install |
| 5031 | else |
| 5032 | # As a last resort, use the slow shell script. We don't cache a |
| 5033 | # path for INSTALL within a source directory, because that will |
| 5034 | # break other packages using the cache if that directory is |
| 5035 | # removed, or if the path is relative. |
| 5036 | INSTALL=$ac_install_sh |
| 5037 | fi |
| 5038 | fi |
| 5039 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5040 | echo "${ECHO_T}$INSTALL" >&6 |
| 5041 | |
| 5042 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5043 | # It thinks the first close brace ends the variable substitution. |
| 5044 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5045 | |
| 5046 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5047 | |
| 5048 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5049 | |
| 5050 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 5051 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 5052 | LN_S=$as_ln_s |
| 5053 | if test "$LN_S" = "ln -s"; then |
| 5054 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5055 | echo "${ECHO_T}yes" >&6 |
| 5056 | else |
| 5057 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 5058 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 5059 | fi |
| 5060 | |
| 5061 | if test -n "$ac_tool_prefix"; then |
| 5062 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5063 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5066 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5068 | else |
| 5069 | if test -n "$RANLIB"; then |
| 5070 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5071 | else |
| 5072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5073 | for as_dir in $PATH |
| 5074 | do |
| 5075 | IFS=$as_save_IFS |
| 5076 | test -z "$as_dir" && as_dir=. |
| 5077 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5078 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5079 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5081 | break 2 |
| 5082 | fi |
| 5083 | done |
| 5084 | done |
| 5085 | |
| 5086 | fi |
| 5087 | fi |
| 5088 | RANLIB=$ac_cv_prog_RANLIB |
| 5089 | if test -n "$RANLIB"; then |
| 5090 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5091 | echo "${ECHO_T}$RANLIB" >&6 |
| 5092 | else |
| 5093 | echo "$as_me:$LINENO: result: no" >&5 |
| 5094 | echo "${ECHO_T}no" >&6 |
| 5095 | fi |
| 5096 | |
| 5097 | fi |
| 5098 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5099 | ac_ct_RANLIB=$RANLIB |
| 5100 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5101 | set dummy ranlib; ac_word=$2 |
| 5102 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5103 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5104 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5106 | else |
| 5107 | if test -n "$ac_ct_RANLIB"; then |
| 5108 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5109 | else |
| 5110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5111 | for as_dir in $PATH |
| 5112 | do |
| 5113 | IFS=$as_save_IFS |
| 5114 | test -z "$as_dir" && as_dir=. |
| 5115 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5116 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5117 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5118 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5119 | break 2 |
| 5120 | fi |
| 5121 | done |
| 5122 | done |
| 5123 | |
| 5124 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5125 | fi |
| 5126 | fi |
| 5127 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5128 | if test -n "$ac_ct_RANLIB"; then |
| 5129 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5130 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5131 | else |
| 5132 | echo "$as_me:$LINENO: result: no" >&5 |
| 5133 | echo "${ECHO_T}no" >&6 |
| 5134 | fi |
| 5135 | |
| 5136 | RANLIB=$ac_ct_RANLIB |
| 5137 | else |
| 5138 | RANLIB="$ac_cv_prog_RANLIB" |
| 5139 | fi |
| 5140 | |
| 5141 | for ac_prog in 'bison -y' byacc |
| 5142 | do |
| 5143 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5144 | set dummy $ac_prog; ac_word=$2 |
| 5145 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5147 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 5148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5149 | else |
| 5150 | if test -n "$YACC"; then |
| 5151 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 5152 | else |
| 5153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5154 | for as_dir in $PATH |
| 5155 | do |
| 5156 | IFS=$as_save_IFS |
| 5157 | test -z "$as_dir" && as_dir=. |
| 5158 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5159 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5160 | ac_cv_prog_YACC="$ac_prog" |
| 5161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5162 | break 2 |
| 5163 | fi |
| 5164 | done |
| 5165 | done |
| 5166 | |
| 5167 | fi |
| 5168 | fi |
| 5169 | YACC=$ac_cv_prog_YACC |
| 5170 | if test -n "$YACC"; then |
| 5171 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 5172 | echo "${ECHO_T}$YACC" >&6 |
| 5173 | else |
| 5174 | echo "$as_me:$LINENO: result: no" >&5 |
| 5175 | echo "${ECHO_T}no" >&6 |
| 5176 | fi |
| 5177 | |
| 5178 | test -n "$YACC" && break |
| 5179 | done |
| 5180 | test -n "$YACC" || YACC="yacc" |
| 5181 | |
| 5182 | |
| 5183 | if test -n "$ac_tool_prefix"; then |
| 5184 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5185 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5186 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5188 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5190 | else |
| 5191 | if test -n "$AR"; then |
| 5192 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5193 | else |
| 5194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5195 | for as_dir in $PATH |
| 5196 | do |
| 5197 | IFS=$as_save_IFS |
| 5198 | test -z "$as_dir" && as_dir=. |
| 5199 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5200 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5201 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5202 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5203 | break 2 |
| 5204 | fi |
| 5205 | done |
| 5206 | done |
| 5207 | |
| 5208 | fi |
| 5209 | fi |
| 5210 | AR=$ac_cv_prog_AR |
| 5211 | if test -n "$AR"; then |
| 5212 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 5213 | echo "${ECHO_T}$AR" >&6 |
| 5214 | else |
| 5215 | echo "$as_me:$LINENO: result: no" >&5 |
| 5216 | echo "${ECHO_T}no" >&6 |
| 5217 | fi |
| 5218 | |
| 5219 | fi |
| 5220 | if test -z "$ac_cv_prog_AR"; then |
| 5221 | ac_ct_AR=$AR |
| 5222 | # Extract the first word of "ar", so it can be a program name with args. |
| 5223 | set dummy ar; ac_word=$2 |
| 5224 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5226 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5228 | else |
| 5229 | if test -n "$ac_ct_AR"; then |
| 5230 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5231 | else |
| 5232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5233 | for as_dir in $PATH |
| 5234 | do |
| 5235 | IFS=$as_save_IFS |
| 5236 | test -z "$as_dir" && as_dir=. |
| 5237 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5238 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5239 | ac_cv_prog_ac_ct_AR="ar" |
| 5240 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5241 | break 2 |
| 5242 | fi |
| 5243 | done |
| 5244 | done |
| 5245 | |
| 5246 | fi |
| 5247 | fi |
| 5248 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5249 | if test -n "$ac_ct_AR"; then |
| 5250 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5251 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5252 | else |
| 5253 | echo "$as_me:$LINENO: result: no" >&5 |
| 5254 | echo "${ECHO_T}no" >&6 |
| 5255 | fi |
| 5256 | |
| 5257 | AR=$ac_ct_AR |
| 5258 | else |
| 5259 | AR="$ac_cv_prog_AR" |
| 5260 | fi |
| 5261 | |
| 5262 | if test -n "$ac_tool_prefix"; then |
| 5263 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 5264 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 5265 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5267 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 5268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5269 | else |
| 5270 | if test -n "$DLLTOOL"; then |
| 5271 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 5272 | else |
| 5273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5274 | for as_dir in $PATH |
| 5275 | do |
| 5276 | IFS=$as_save_IFS |
| 5277 | test -z "$as_dir" && as_dir=. |
| 5278 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5280 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 5281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5282 | break 2 |
| 5283 | fi |
| 5284 | done |
| 5285 | done |
| 5286 | |
| 5287 | fi |
| 5288 | fi |
| 5289 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 5290 | if test -n "$DLLTOOL"; then |
| 5291 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 5292 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 5293 | else |
| 5294 | echo "$as_me:$LINENO: result: no" >&5 |
| 5295 | echo "${ECHO_T}no" >&6 |
| 5296 | fi |
| 5297 | |
| 5298 | fi |
| 5299 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 5300 | ac_ct_DLLTOOL=$DLLTOOL |
| 5301 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 5302 | set dummy dlltool; ac_word=$2 |
| 5303 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5305 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 5306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5307 | else |
| 5308 | if test -n "$ac_ct_DLLTOOL"; then |
| 5309 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 5310 | else |
| 5311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5312 | for as_dir in $PATH |
| 5313 | do |
| 5314 | IFS=$as_save_IFS |
| 5315 | test -z "$as_dir" && as_dir=. |
| 5316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5317 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5318 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 5319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5320 | break 2 |
| 5321 | fi |
| 5322 | done |
| 5323 | done |
| 5324 | |
| 5325 | fi |
| 5326 | fi |
| 5327 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 5328 | if test -n "$ac_ct_DLLTOOL"; then |
| 5329 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 5330 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 |
| 5331 | else |
| 5332 | echo "$as_me:$LINENO: result: no" >&5 |
| 5333 | echo "${ECHO_T}no" >&6 |
| 5334 | fi |
| 5335 | |
| 5336 | DLLTOOL=$ac_ct_DLLTOOL |
| 5337 | else |
| 5338 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 5339 | fi |
| 5340 | |
| 5341 | if test -n "$ac_tool_prefix"; then |
| 5342 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 5343 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 5344 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5346 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 5347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5348 | else |
| 5349 | if test -n "$WINDRES"; then |
| 5350 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 5351 | else |
| 5352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5353 | for as_dir in $PATH |
| 5354 | do |
| 5355 | IFS=$as_save_IFS |
| 5356 | test -z "$as_dir" && as_dir=. |
| 5357 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5358 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5359 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 5360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5361 | break 2 |
| 5362 | fi |
| 5363 | done |
| 5364 | done |
| 5365 | |
| 5366 | fi |
| 5367 | fi |
| 5368 | WINDRES=$ac_cv_prog_WINDRES |
| 5369 | if test -n "$WINDRES"; then |
| 5370 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 5371 | echo "${ECHO_T}$WINDRES" >&6 |
| 5372 | else |
| 5373 | echo "$as_me:$LINENO: result: no" >&5 |
| 5374 | echo "${ECHO_T}no" >&6 |
| 5375 | fi |
| 5376 | |
| 5377 | fi |
| 5378 | if test -z "$ac_cv_prog_WINDRES"; then |
| 5379 | ac_ct_WINDRES=$WINDRES |
| 5380 | # Extract the first word of "windres", so it can be a program name with args. |
| 5381 | set dummy windres; ac_word=$2 |
| 5382 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5384 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 5385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5386 | else |
| 5387 | if test -n "$ac_ct_WINDRES"; then |
| 5388 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 5389 | else |
| 5390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5391 | for as_dir in $PATH |
| 5392 | do |
| 5393 | IFS=$as_save_IFS |
| 5394 | test -z "$as_dir" && as_dir=. |
| 5395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5396 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5397 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 5398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5399 | break 2 |
| 5400 | fi |
| 5401 | done |
| 5402 | done |
| 5403 | |
| 5404 | fi |
| 5405 | fi |
| 5406 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 5407 | if test -n "$ac_ct_WINDRES"; then |
| 5408 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 5409 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 |
| 5410 | else |
| 5411 | echo "$as_me:$LINENO: result: no" >&5 |
| 5412 | echo "${ECHO_T}no" >&6 |
| 5413 | fi |
| 5414 | |
| 5415 | WINDRES=$ac_ct_WINDRES |
| 5416 | else |
| 5417 | WINDRES="$ac_cv_prog_WINDRES" |
| 5418 | fi |
| 5419 | |
| 5420 | |
| 5421 | # Needed for GNU/Hurd. |
| 5422 | if test -n "$ac_tool_prefix"; then |
| 5423 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. |
| 5424 | set dummy ${ac_tool_prefix}mig; ac_word=$2 |
| 5425 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5427 | if test "${ac_cv_prog_MIG+set}" = set; then |
| 5428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5429 | else |
| 5430 | if test -n "$MIG"; then |
| 5431 | ac_cv_prog_MIG="$MIG" # Let the user override the test. |
| 5432 | else |
| 5433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5434 | for as_dir in $PATH |
| 5435 | do |
| 5436 | IFS=$as_save_IFS |
| 5437 | test -z "$as_dir" && as_dir=. |
| 5438 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5439 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5440 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
| 5441 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5442 | break 2 |
| 5443 | fi |
| 5444 | done |
| 5445 | done |
| 5446 | |
| 5447 | fi |
| 5448 | fi |
| 5449 | MIG=$ac_cv_prog_MIG |
| 5450 | if test -n "$MIG"; then |
| 5451 | echo "$as_me:$LINENO: result: $MIG" >&5 |
| 5452 | echo "${ECHO_T}$MIG" >&6 |
| 5453 | else |
| 5454 | echo "$as_me:$LINENO: result: no" >&5 |
| 5455 | echo "${ECHO_T}no" >&6 |
| 5456 | fi |
| 5457 | |
| 5458 | fi |
| 5459 | if test -z "$ac_cv_prog_MIG"; then |
| 5460 | ac_ct_MIG=$MIG |
| 5461 | # Extract the first word of "mig", so it can be a program name with args. |
| 5462 | set dummy mig; ac_word=$2 |
| 5463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5465 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then |
| 5466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5467 | else |
| 5468 | if test -n "$ac_ct_MIG"; then |
| 5469 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. |
| 5470 | else |
| 5471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5472 | for as_dir in $PATH |
| 5473 | do |
| 5474 | IFS=$as_save_IFS |
| 5475 | test -z "$as_dir" && as_dir=. |
| 5476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5477 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5478 | ac_cv_prog_ac_ct_MIG="mig" |
| 5479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5480 | break 2 |
| 5481 | fi |
| 5482 | done |
| 5483 | done |
| 5484 | |
| 5485 | fi |
| 5486 | fi |
| 5487 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG |
| 5488 | if test -n "$ac_ct_MIG"; then |
| 5489 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 |
| 5490 | echo "${ECHO_T}$ac_ct_MIG" >&6 |
| 5491 | else |
| 5492 | echo "$as_me:$LINENO: result: no" >&5 |
| 5493 | echo "${ECHO_T}no" >&6 |
| 5494 | fi |
| 5495 | |
| 5496 | MIG=$ac_ct_MIG |
| 5497 | else |
| 5498 | MIG="$ac_cv_prog_MIG" |
| 5499 | fi |
| 5500 | |
| 5501 | |
| 5502 | # ---------------------- # |
| 5503 | # Checks for libraries. # |
| 5504 | # ---------------------- # |
| 5505 | |
| 5506 | # We might need to link with -lm; most simulators need it. |
| 5507 | |
| 5508 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
| 5509 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
| 5510 | if test "${ac_cv_lib_m_main+set}" = set; then |
| 5511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5512 | else |
| 5513 | ac_check_lib_save_LIBS=$LIBS |
| 5514 | LIBS="-lm $LIBS" |
| 5515 | cat >conftest.$ac_ext <<_ACEOF |
| 5516 | /* confdefs.h. */ |
| 5517 | _ACEOF |
| 5518 | cat confdefs.h >>conftest.$ac_ext |
| 5519 | cat >>conftest.$ac_ext <<_ACEOF |
| 5520 | /* end confdefs.h. */ |
| 5521 | |
| 5522 | |
| 5523 | int |
| 5524 | main () |
| 5525 | { |
| 5526 | main (); |
| 5527 | ; |
| 5528 | return 0; |
| 5529 | } |
| 5530 | _ACEOF |
| 5531 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5533 | (eval $ac_link) 2>conftest.er1 |
| 5534 | ac_status=$? |
| 5535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5536 | rm -f conftest.er1 |
| 5537 | cat conftest.err >&5 |
| 5538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5539 | (exit $ac_status); } && |
| 5540 | { ac_try='test -z "$ac_c_werror_flag" |
| 5541 | || test ! -s conftest.err' |
| 5542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5543 | (eval $ac_try) 2>&5 |
| 5544 | ac_status=$? |
| 5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5546 | (exit $ac_status); }; } && |
| 5547 | { ac_try='test -s conftest$ac_exeext' |
| 5548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5549 | (eval $ac_try) 2>&5 |
| 5550 | ac_status=$? |
| 5551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5552 | (exit $ac_status); }; }; then |
| 5553 | ac_cv_lib_m_main=yes |
| 5554 | else |
| 5555 | echo "$as_me: failed program was:" >&5 |
| 5556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5557 | |
| 5558 | ac_cv_lib_m_main=no |
| 5559 | fi |
| 5560 | rm -f conftest.err conftest.$ac_objext \ |
| 5561 | conftest$ac_exeext conftest.$ac_ext |
| 5562 | LIBS=$ac_check_lib_save_LIBS |
| 5563 | fi |
| 5564 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
| 5565 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
| 5566 | if test $ac_cv_lib_m_main = yes; then |
| 5567 | cat >>confdefs.h <<_ACEOF |
| 5568 | #define HAVE_LIBM 1 |
| 5569 | _ACEOF |
| 5570 | |
| 5571 | LIBS="-lm $LIBS" |
| 5572 | |
| 5573 | fi |
| 5574 | |
| 5575 | |
| 5576 | # We need to link with -lw to get `wctype' on Solaris before Solaris |
| 5577 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a |
| 5578 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 |
| 5579 | # is known to have this problem). Therefore we avoid libw if we can. |
| 5580 | echo "$as_me:$LINENO: checking for wctype" >&5 |
| 5581 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 |
| 5582 | if test "${ac_cv_func_wctype+set}" = set; then |
| 5583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5584 | else |
| 5585 | cat >conftest.$ac_ext <<_ACEOF |
| 5586 | /* confdefs.h. */ |
| 5587 | _ACEOF |
| 5588 | cat confdefs.h >>conftest.$ac_ext |
| 5589 | cat >>conftest.$ac_ext <<_ACEOF |
| 5590 | /* end confdefs.h. */ |
| 5591 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. |
| 5592 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5593 | #define wctype innocuous_wctype |
| 5594 | |
| 5595 | /* System header to define __stub macros and hopefully few prototypes, |
| 5596 | which can conflict with char wctype (); below. |
| 5597 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5598 | <limits.h> exists even on freestanding compilers. */ |
| 5599 | |
| 5600 | #ifdef __STDC__ |
| 5601 | # include <limits.h> |
| 5602 | #else |
| 5603 | # include <assert.h> |
| 5604 | #endif |
| 5605 | |
| 5606 | #undef wctype |
| 5607 | |
| 5608 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5609 | #ifdef __cplusplus |
| 5610 | extern "C" |
| 5611 | { |
| 5612 | #endif |
| 5613 | /* We use char because int might match the return type of a gcc2 |
| 5614 | builtin and then its argument prototype would still apply. */ |
| 5615 | char wctype (); |
| 5616 | /* The GNU C library defines this for functions which it implements |
| 5617 | to always fail with ENOSYS. Some functions are actually named |
| 5618 | something starting with __ and the normal name is an alias. */ |
| 5619 | #if defined (__stub_wctype) || defined (__stub___wctype) |
| 5620 | choke me |
| 5621 | #else |
| 5622 | char (*f) () = wctype; |
| 5623 | #endif |
| 5624 | #ifdef __cplusplus |
| 5625 | } |
| 5626 | #endif |
| 5627 | |
| 5628 | int |
| 5629 | main () |
| 5630 | { |
| 5631 | return f != wctype; |
| 5632 | ; |
| 5633 | return 0; |
| 5634 | } |
| 5635 | _ACEOF |
| 5636 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5638 | (eval $ac_link) 2>conftest.er1 |
| 5639 | ac_status=$? |
| 5640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5641 | rm -f conftest.er1 |
| 5642 | cat conftest.err >&5 |
| 5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5644 | (exit $ac_status); } && |
| 5645 | { ac_try='test -z "$ac_c_werror_flag" |
| 5646 | || test ! -s conftest.err' |
| 5647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5648 | (eval $ac_try) 2>&5 |
| 5649 | ac_status=$? |
| 5650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5651 | (exit $ac_status); }; } && |
| 5652 | { ac_try='test -s conftest$ac_exeext' |
| 5653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5654 | (eval $ac_try) 2>&5 |
| 5655 | ac_status=$? |
| 5656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5657 | (exit $ac_status); }; }; then |
| 5658 | ac_cv_func_wctype=yes |
| 5659 | else |
| 5660 | echo "$as_me: failed program was:" >&5 |
| 5661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5662 | |
| 5663 | ac_cv_func_wctype=no |
| 5664 | fi |
| 5665 | rm -f conftest.err conftest.$ac_objext \ |
| 5666 | conftest$ac_exeext conftest.$ac_ext |
| 5667 | fi |
| 5668 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
| 5669 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 |
| 5670 | if test $ac_cv_func_wctype = yes; then |
| 5671 | : |
| 5672 | else |
| 5673 | |
| 5674 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
| 5675 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 |
| 5676 | if test "${ac_cv_lib_w_wctype+set}" = set; then |
| 5677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5678 | else |
| 5679 | ac_check_lib_save_LIBS=$LIBS |
| 5680 | LIBS="-lw $LIBS" |
| 5681 | cat >conftest.$ac_ext <<_ACEOF |
| 5682 | /* confdefs.h. */ |
| 5683 | _ACEOF |
| 5684 | cat confdefs.h >>conftest.$ac_ext |
| 5685 | cat >>conftest.$ac_ext <<_ACEOF |
| 5686 | /* end confdefs.h. */ |
| 5687 | |
| 5688 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5689 | #ifdef __cplusplus |
| 5690 | extern "C" |
| 5691 | #endif |
| 5692 | /* We use char because int might match the return type of a gcc2 |
| 5693 | builtin and then its argument prototype would still apply. */ |
| 5694 | char wctype (); |
| 5695 | int |
| 5696 | main () |
| 5697 | { |
| 5698 | wctype (); |
| 5699 | ; |
| 5700 | return 0; |
| 5701 | } |
| 5702 | _ACEOF |
| 5703 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5705 | (eval $ac_link) 2>conftest.er1 |
| 5706 | ac_status=$? |
| 5707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5708 | rm -f conftest.er1 |
| 5709 | cat conftest.err >&5 |
| 5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5711 | (exit $ac_status); } && |
| 5712 | { ac_try='test -z "$ac_c_werror_flag" |
| 5713 | || test ! -s conftest.err' |
| 5714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5715 | (eval $ac_try) 2>&5 |
| 5716 | ac_status=$? |
| 5717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5718 | (exit $ac_status); }; } && |
| 5719 | { ac_try='test -s conftest$ac_exeext' |
| 5720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5721 | (eval $ac_try) 2>&5 |
| 5722 | ac_status=$? |
| 5723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5724 | (exit $ac_status); }; }; then |
| 5725 | ac_cv_lib_w_wctype=yes |
| 5726 | else |
| 5727 | echo "$as_me: failed program was:" >&5 |
| 5728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5729 | |
| 5730 | ac_cv_lib_w_wctype=no |
| 5731 | fi |
| 5732 | rm -f conftest.err conftest.$ac_objext \ |
| 5733 | conftest$ac_exeext conftest.$ac_ext |
| 5734 | LIBS=$ac_check_lib_save_LIBS |
| 5735 | fi |
| 5736 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 |
| 5737 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 |
| 5738 | if test $ac_cv_lib_w_wctype = yes; then |
| 5739 | cat >>confdefs.h <<_ACEOF |
| 5740 | #define HAVE_LIBW 1 |
| 5741 | _ACEOF |
| 5742 | |
| 5743 | LIBS="-lw $LIBS" |
| 5744 | |
| 5745 | fi |
| 5746 | |
| 5747 | fi |
| 5748 | |
| 5749 | |
| 5750 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
| 5751 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
| 5752 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 |
| 5753 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
| 5754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5755 | else |
| 5756 | ac_func_search_save_LIBS=$LIBS |
| 5757 | ac_cv_search_gethostbyname=no |
| 5758 | cat >conftest.$ac_ext <<_ACEOF |
| 5759 | /* confdefs.h. */ |
| 5760 | _ACEOF |
| 5761 | cat confdefs.h >>conftest.$ac_ext |
| 5762 | cat >>conftest.$ac_ext <<_ACEOF |
| 5763 | /* end confdefs.h. */ |
| 5764 | |
| 5765 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5766 | #ifdef __cplusplus |
| 5767 | extern "C" |
| 5768 | #endif |
| 5769 | /* We use char because int might match the return type of a gcc2 |
| 5770 | builtin and then its argument prototype would still apply. */ |
| 5771 | char gethostbyname (); |
| 5772 | int |
| 5773 | main () |
| 5774 | { |
| 5775 | gethostbyname (); |
| 5776 | ; |
| 5777 | return 0; |
| 5778 | } |
| 5779 | _ACEOF |
| 5780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5782 | (eval $ac_link) 2>conftest.er1 |
| 5783 | ac_status=$? |
| 5784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5785 | rm -f conftest.er1 |
| 5786 | cat conftest.err >&5 |
| 5787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5788 | (exit $ac_status); } && |
| 5789 | { ac_try='test -z "$ac_c_werror_flag" |
| 5790 | || test ! -s conftest.err' |
| 5791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5792 | (eval $ac_try) 2>&5 |
| 5793 | ac_status=$? |
| 5794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5795 | (exit $ac_status); }; } && |
| 5796 | { ac_try='test -s conftest$ac_exeext' |
| 5797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5798 | (eval $ac_try) 2>&5 |
| 5799 | ac_status=$? |
| 5800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5801 | (exit $ac_status); }; }; then |
| 5802 | ac_cv_search_gethostbyname="none required" |
| 5803 | else |
| 5804 | echo "$as_me: failed program was:" >&5 |
| 5805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5806 | |
| 5807 | fi |
| 5808 | rm -f conftest.err conftest.$ac_objext \ |
| 5809 | conftest$ac_exeext conftest.$ac_ext |
| 5810 | if test "$ac_cv_search_gethostbyname" = no; then |
| 5811 | for ac_lib in nsl; do |
| 5812 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5813 | cat >conftest.$ac_ext <<_ACEOF |
| 5814 | /* confdefs.h. */ |
| 5815 | _ACEOF |
| 5816 | cat confdefs.h >>conftest.$ac_ext |
| 5817 | cat >>conftest.$ac_ext <<_ACEOF |
| 5818 | /* end confdefs.h. */ |
| 5819 | |
| 5820 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5821 | #ifdef __cplusplus |
| 5822 | extern "C" |
| 5823 | #endif |
| 5824 | /* We use char because int might match the return type of a gcc2 |
| 5825 | builtin and then its argument prototype would still apply. */ |
| 5826 | char gethostbyname (); |
| 5827 | int |
| 5828 | main () |
| 5829 | { |
| 5830 | gethostbyname (); |
| 5831 | ; |
| 5832 | return 0; |
| 5833 | } |
| 5834 | _ACEOF |
| 5835 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5837 | (eval $ac_link) 2>conftest.er1 |
| 5838 | ac_status=$? |
| 5839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5840 | rm -f conftest.er1 |
| 5841 | cat conftest.err >&5 |
| 5842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5843 | (exit $ac_status); } && |
| 5844 | { ac_try='test -z "$ac_c_werror_flag" |
| 5845 | || test ! -s conftest.err' |
| 5846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5847 | (eval $ac_try) 2>&5 |
| 5848 | ac_status=$? |
| 5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5850 | (exit $ac_status); }; } && |
| 5851 | { ac_try='test -s conftest$ac_exeext' |
| 5852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5853 | (eval $ac_try) 2>&5 |
| 5854 | ac_status=$? |
| 5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5856 | (exit $ac_status); }; }; then |
| 5857 | ac_cv_search_gethostbyname="-l$ac_lib" |
| 5858 | break |
| 5859 | else |
| 5860 | echo "$as_me: failed program was:" >&5 |
| 5861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5862 | |
| 5863 | fi |
| 5864 | rm -f conftest.err conftest.$ac_objext \ |
| 5865 | conftest$ac_exeext conftest.$ac_ext |
| 5866 | done |
| 5867 | fi |
| 5868 | LIBS=$ac_func_search_save_LIBS |
| 5869 | fi |
| 5870 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
| 5871 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 |
| 5872 | if test "$ac_cv_search_gethostbyname" != no; then |
| 5873 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" |
| 5874 | |
| 5875 | fi |
| 5876 | |
| 5877 | |
| 5878 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
| 5879 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 |
| 5880 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 |
| 5881 | if test "${ac_cv_search_socketpair+set}" = set; then |
| 5882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5883 | else |
| 5884 | ac_func_search_save_LIBS=$LIBS |
| 5885 | ac_cv_search_socketpair=no |
| 5886 | cat >conftest.$ac_ext <<_ACEOF |
| 5887 | /* confdefs.h. */ |
| 5888 | _ACEOF |
| 5889 | cat confdefs.h >>conftest.$ac_ext |
| 5890 | cat >>conftest.$ac_ext <<_ACEOF |
| 5891 | /* end confdefs.h. */ |
| 5892 | |
| 5893 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5894 | #ifdef __cplusplus |
| 5895 | extern "C" |
| 5896 | #endif |
| 5897 | /* We use char because int might match the return type of a gcc2 |
| 5898 | builtin and then its argument prototype would still apply. */ |
| 5899 | char socketpair (); |
| 5900 | int |
| 5901 | main () |
| 5902 | { |
| 5903 | socketpair (); |
| 5904 | ; |
| 5905 | return 0; |
| 5906 | } |
| 5907 | _ACEOF |
| 5908 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5910 | (eval $ac_link) 2>conftest.er1 |
| 5911 | ac_status=$? |
| 5912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5913 | rm -f conftest.er1 |
| 5914 | cat conftest.err >&5 |
| 5915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5916 | (exit $ac_status); } && |
| 5917 | { ac_try='test -z "$ac_c_werror_flag" |
| 5918 | || test ! -s conftest.err' |
| 5919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5920 | (eval $ac_try) 2>&5 |
| 5921 | ac_status=$? |
| 5922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5923 | (exit $ac_status); }; } && |
| 5924 | { ac_try='test -s conftest$ac_exeext' |
| 5925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5926 | (eval $ac_try) 2>&5 |
| 5927 | ac_status=$? |
| 5928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5929 | (exit $ac_status); }; }; then |
| 5930 | ac_cv_search_socketpair="none required" |
| 5931 | else |
| 5932 | echo "$as_me: failed program was:" >&5 |
| 5933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5934 | |
| 5935 | fi |
| 5936 | rm -f conftest.err conftest.$ac_objext \ |
| 5937 | conftest$ac_exeext conftest.$ac_ext |
| 5938 | if test "$ac_cv_search_socketpair" = no; then |
| 5939 | for ac_lib in socket; do |
| 5940 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5941 | cat >conftest.$ac_ext <<_ACEOF |
| 5942 | /* confdefs.h. */ |
| 5943 | _ACEOF |
| 5944 | cat confdefs.h >>conftest.$ac_ext |
| 5945 | cat >>conftest.$ac_ext <<_ACEOF |
| 5946 | /* end confdefs.h. */ |
| 5947 | |
| 5948 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5949 | #ifdef __cplusplus |
| 5950 | extern "C" |
| 5951 | #endif |
| 5952 | /* We use char because int might match the return type of a gcc2 |
| 5953 | builtin and then its argument prototype would still apply. */ |
| 5954 | char socketpair (); |
| 5955 | int |
| 5956 | main () |
| 5957 | { |
| 5958 | socketpair (); |
| 5959 | ; |
| 5960 | return 0; |
| 5961 | } |
| 5962 | _ACEOF |
| 5963 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5965 | (eval $ac_link) 2>conftest.er1 |
| 5966 | ac_status=$? |
| 5967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5968 | rm -f conftest.er1 |
| 5969 | cat conftest.err >&5 |
| 5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5971 | (exit $ac_status); } && |
| 5972 | { ac_try='test -z "$ac_c_werror_flag" |
| 5973 | || test ! -s conftest.err' |
| 5974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5975 | (eval $ac_try) 2>&5 |
| 5976 | ac_status=$? |
| 5977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5978 | (exit $ac_status); }; } && |
| 5979 | { ac_try='test -s conftest$ac_exeext' |
| 5980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5981 | (eval $ac_try) 2>&5 |
| 5982 | ac_status=$? |
| 5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5984 | (exit $ac_status); }; }; then |
| 5985 | ac_cv_search_socketpair="-l$ac_lib" |
| 5986 | break |
| 5987 | else |
| 5988 | echo "$as_me: failed program was:" >&5 |
| 5989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5990 | |
| 5991 | fi |
| 5992 | rm -f conftest.err conftest.$ac_objext \ |
| 5993 | conftest$ac_exeext conftest.$ac_ext |
| 5994 | done |
| 5995 | fi |
| 5996 | LIBS=$ac_func_search_save_LIBS |
| 5997 | fi |
| 5998 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 |
| 5999 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 |
| 6000 | if test "$ac_cv_search_socketpair" != no; then |
| 6001 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" |
| 6002 | |
| 6003 | fi |
| 6004 | |
| 6005 | |
| 6006 | # For the TUI, we need enhanced curses functionality. |
| 6007 | # |
| 6008 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied |
| 6009 | # curses library because the latter might not provide all the |
| 6010 | # functionality we need. However, this leads to problems on systems |
| 6011 | # where the linker searches /usr/local/lib, but the compiler doesn't |
| 6012 | # search /usr/local/include, if ncurses is installed in /usr/local. A |
| 6013 | # default installation of ncurses on alpha*-dec-osf* will lead to such |
| 6014 | # a situation. |
| 6015 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 |
| 6016 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 |
| 6017 | if test "${ac_cv_search_waddstr+set}" = set; then |
| 6018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6019 | else |
| 6020 | ac_func_search_save_LIBS=$LIBS |
| 6021 | ac_cv_search_waddstr=no |
| 6022 | cat >conftest.$ac_ext <<_ACEOF |
| 6023 | /* confdefs.h. */ |
| 6024 | _ACEOF |
| 6025 | cat confdefs.h >>conftest.$ac_ext |
| 6026 | cat >>conftest.$ac_ext <<_ACEOF |
| 6027 | /* end confdefs.h. */ |
| 6028 | |
| 6029 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6030 | #ifdef __cplusplus |
| 6031 | extern "C" |
| 6032 | #endif |
| 6033 | /* We use char because int might match the return type of a gcc2 |
| 6034 | builtin and then its argument prototype would still apply. */ |
| 6035 | char waddstr (); |
| 6036 | int |
| 6037 | main () |
| 6038 | { |
| 6039 | waddstr (); |
| 6040 | ; |
| 6041 | return 0; |
| 6042 | } |
| 6043 | _ACEOF |
| 6044 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6046 | (eval $ac_link) 2>conftest.er1 |
| 6047 | ac_status=$? |
| 6048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6049 | rm -f conftest.er1 |
| 6050 | cat conftest.err >&5 |
| 6051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6052 | (exit $ac_status); } && |
| 6053 | { ac_try='test -z "$ac_c_werror_flag" |
| 6054 | || test ! -s conftest.err' |
| 6055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6056 | (eval $ac_try) 2>&5 |
| 6057 | ac_status=$? |
| 6058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6059 | (exit $ac_status); }; } && |
| 6060 | { ac_try='test -s conftest$ac_exeext' |
| 6061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6062 | (eval $ac_try) 2>&5 |
| 6063 | ac_status=$? |
| 6064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6065 | (exit $ac_status); }; }; then |
| 6066 | ac_cv_search_waddstr="none required" |
| 6067 | else |
| 6068 | echo "$as_me: failed program was:" >&5 |
| 6069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6070 | |
| 6071 | fi |
| 6072 | rm -f conftest.err conftest.$ac_objext \ |
| 6073 | conftest$ac_exeext conftest.$ac_ext |
| 6074 | if test "$ac_cv_search_waddstr" = no; then |
| 6075 | for ac_lib in ncurses cursesX curses; do |
| 6076 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6077 | cat >conftest.$ac_ext <<_ACEOF |
| 6078 | /* confdefs.h. */ |
| 6079 | _ACEOF |
| 6080 | cat confdefs.h >>conftest.$ac_ext |
| 6081 | cat >>conftest.$ac_ext <<_ACEOF |
| 6082 | /* end confdefs.h. */ |
| 6083 | |
| 6084 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6085 | #ifdef __cplusplus |
| 6086 | extern "C" |
| 6087 | #endif |
| 6088 | /* We use char because int might match the return type of a gcc2 |
| 6089 | builtin and then its argument prototype would still apply. */ |
| 6090 | char waddstr (); |
| 6091 | int |
| 6092 | main () |
| 6093 | { |
| 6094 | waddstr (); |
| 6095 | ; |
| 6096 | return 0; |
| 6097 | } |
| 6098 | _ACEOF |
| 6099 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6101 | (eval $ac_link) 2>conftest.er1 |
| 6102 | ac_status=$? |
| 6103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6104 | rm -f conftest.er1 |
| 6105 | cat conftest.err >&5 |
| 6106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6107 | (exit $ac_status); } && |
| 6108 | { ac_try='test -z "$ac_c_werror_flag" |
| 6109 | || test ! -s conftest.err' |
| 6110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6111 | (eval $ac_try) 2>&5 |
| 6112 | ac_status=$? |
| 6113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6114 | (exit $ac_status); }; } && |
| 6115 | { ac_try='test -s conftest$ac_exeext' |
| 6116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6117 | (eval $ac_try) 2>&5 |
| 6118 | ac_status=$? |
| 6119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6120 | (exit $ac_status); }; }; then |
| 6121 | ac_cv_search_waddstr="-l$ac_lib" |
| 6122 | break |
| 6123 | else |
| 6124 | echo "$as_me: failed program was:" >&5 |
| 6125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6126 | |
| 6127 | fi |
| 6128 | rm -f conftest.err conftest.$ac_objext \ |
| 6129 | conftest$ac_exeext conftest.$ac_ext |
| 6130 | done |
| 6131 | fi |
| 6132 | LIBS=$ac_func_search_save_LIBS |
| 6133 | fi |
| 6134 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 |
| 6135 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 |
| 6136 | if test "$ac_cv_search_waddstr" != no; then |
| 6137 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" |
| 6138 | |
| 6139 | fi |
| 6140 | |
| 6141 | |
| 6142 | # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c). |
| 6143 | echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5 |
| 6144 | echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6 |
| 6145 | if test "${ac_cv_search_dlgetmodinfo+set}" = set; then |
| 6146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6147 | else |
| 6148 | ac_func_search_save_LIBS=$LIBS |
| 6149 | ac_cv_search_dlgetmodinfo=no |
| 6150 | cat >conftest.$ac_ext <<_ACEOF |
| 6151 | /* confdefs.h. */ |
| 6152 | _ACEOF |
| 6153 | cat confdefs.h >>conftest.$ac_ext |
| 6154 | cat >>conftest.$ac_ext <<_ACEOF |
| 6155 | /* end confdefs.h. */ |
| 6156 | |
| 6157 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6158 | #ifdef __cplusplus |
| 6159 | extern "C" |
| 6160 | #endif |
| 6161 | /* We use char because int might match the return type of a gcc2 |
| 6162 | builtin and then its argument prototype would still apply. */ |
| 6163 | char dlgetmodinfo (); |
| 6164 | int |
| 6165 | main () |
| 6166 | { |
| 6167 | dlgetmodinfo (); |
| 6168 | ; |
| 6169 | return 0; |
| 6170 | } |
| 6171 | _ACEOF |
| 6172 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6174 | (eval $ac_link) 2>conftest.er1 |
| 6175 | ac_status=$? |
| 6176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6177 | rm -f conftest.er1 |
| 6178 | cat conftest.err >&5 |
| 6179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6180 | (exit $ac_status); } && |
| 6181 | { ac_try='test -z "$ac_c_werror_flag" |
| 6182 | || test ! -s conftest.err' |
| 6183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6184 | (eval $ac_try) 2>&5 |
| 6185 | ac_status=$? |
| 6186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6187 | (exit $ac_status); }; } && |
| 6188 | { ac_try='test -s conftest$ac_exeext' |
| 6189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6190 | (eval $ac_try) 2>&5 |
| 6191 | ac_status=$? |
| 6192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6193 | (exit $ac_status); }; }; then |
| 6194 | ac_cv_search_dlgetmodinfo="none required" |
| 6195 | else |
| 6196 | echo "$as_me: failed program was:" >&5 |
| 6197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6198 | |
| 6199 | fi |
| 6200 | rm -f conftest.err conftest.$ac_objext \ |
| 6201 | conftest$ac_exeext conftest.$ac_ext |
| 6202 | if test "$ac_cv_search_dlgetmodinfo" = no; then |
| 6203 | for ac_lib in dl xpdl; do |
| 6204 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6205 | cat >conftest.$ac_ext <<_ACEOF |
| 6206 | /* confdefs.h. */ |
| 6207 | _ACEOF |
| 6208 | cat confdefs.h >>conftest.$ac_ext |
| 6209 | cat >>conftest.$ac_ext <<_ACEOF |
| 6210 | /* end confdefs.h. */ |
| 6211 | |
| 6212 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6213 | #ifdef __cplusplus |
| 6214 | extern "C" |
| 6215 | #endif |
| 6216 | /* We use char because int might match the return type of a gcc2 |
| 6217 | builtin and then its argument prototype would still apply. */ |
| 6218 | char dlgetmodinfo (); |
| 6219 | int |
| 6220 | main () |
| 6221 | { |
| 6222 | dlgetmodinfo (); |
| 6223 | ; |
| 6224 | return 0; |
| 6225 | } |
| 6226 | _ACEOF |
| 6227 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6229 | (eval $ac_link) 2>conftest.er1 |
| 6230 | ac_status=$? |
| 6231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6232 | rm -f conftest.er1 |
| 6233 | cat conftest.err >&5 |
| 6234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6235 | (exit $ac_status); } && |
| 6236 | { ac_try='test -z "$ac_c_werror_flag" |
| 6237 | || test ! -s conftest.err' |
| 6238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6239 | (eval $ac_try) 2>&5 |
| 6240 | ac_status=$? |
| 6241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6242 | (exit $ac_status); }; } && |
| 6243 | { ac_try='test -s conftest$ac_exeext' |
| 6244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6245 | (eval $ac_try) 2>&5 |
| 6246 | ac_status=$? |
| 6247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6248 | (exit $ac_status); }; }; then |
| 6249 | ac_cv_search_dlgetmodinfo="-l$ac_lib" |
| 6250 | break |
| 6251 | else |
| 6252 | echo "$as_me: failed program was:" >&5 |
| 6253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6254 | |
| 6255 | fi |
| 6256 | rm -f conftest.err conftest.$ac_objext \ |
| 6257 | conftest$ac_exeext conftest.$ac_ext |
| 6258 | done |
| 6259 | fi |
| 6260 | LIBS=$ac_func_search_save_LIBS |
| 6261 | fi |
| 6262 | echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5 |
| 6263 | echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6 |
| 6264 | if test "$ac_cv_search_dlgetmodinfo" != no; then |
| 6265 | test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS" |
| 6266 | |
| 6267 | fi |
| 6268 | |
| 6269 | |
| 6270 | # Since GDB uses Readline, we need termcap functionality. In many |
| 6271 | # cases this will be provided by the curses library, but some systems |
| 6272 | # have a seperate termcap library, or no curses library at all. |
| 6273 | |
| 6274 | case $host_os in |
| 6275 | cygwin*) |
| 6276 | if test -d $srcdir/libtermcap; then |
| 6277 | LIBS="../libtermcap/libtermcap.a $LIBS" |
| 6278 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" |
| 6279 | fi ;; |
| 6280 | go32* | *djgpp*) |
| 6281 | ac_cv_search_tgetent="none required" |
| 6282 | ;; |
| 6283 | *mingw32*) |
| 6284 | ac_cv_search_tgetent="none required" |
| 6285 | CONFIG_OBS="$CONFIG_OBS win32-termcap.o" |
| 6286 | ;; |
| 6287 | esac |
| 6288 | |
| 6289 | # These are the libraries checked by Readline. |
| 6290 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
| 6291 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 |
| 6292 | if test "${ac_cv_search_tgetent+set}" = set; then |
| 6293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6294 | else |
| 6295 | ac_func_search_save_LIBS=$LIBS |
| 6296 | ac_cv_search_tgetent=no |
| 6297 | cat >conftest.$ac_ext <<_ACEOF |
| 6298 | /* confdefs.h. */ |
| 6299 | _ACEOF |
| 6300 | cat confdefs.h >>conftest.$ac_ext |
| 6301 | cat >>conftest.$ac_ext <<_ACEOF |
| 6302 | /* end confdefs.h. */ |
| 6303 | |
| 6304 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6305 | #ifdef __cplusplus |
| 6306 | extern "C" |
| 6307 | #endif |
| 6308 | /* We use char because int might match the return type of a gcc2 |
| 6309 | builtin and then its argument prototype would still apply. */ |
| 6310 | char tgetent (); |
| 6311 | int |
| 6312 | main () |
| 6313 | { |
| 6314 | tgetent (); |
| 6315 | ; |
| 6316 | return 0; |
| 6317 | } |
| 6318 | _ACEOF |
| 6319 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6320 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6321 | (eval $ac_link) 2>conftest.er1 |
| 6322 | ac_status=$? |
| 6323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6324 | rm -f conftest.er1 |
| 6325 | cat conftest.err >&5 |
| 6326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6327 | (exit $ac_status); } && |
| 6328 | { ac_try='test -z "$ac_c_werror_flag" |
| 6329 | || test ! -s conftest.err' |
| 6330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6331 | (eval $ac_try) 2>&5 |
| 6332 | ac_status=$? |
| 6333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6334 | (exit $ac_status); }; } && |
| 6335 | { ac_try='test -s conftest$ac_exeext' |
| 6336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6337 | (eval $ac_try) 2>&5 |
| 6338 | ac_status=$? |
| 6339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6340 | (exit $ac_status); }; }; then |
| 6341 | ac_cv_search_tgetent="none required" |
| 6342 | else |
| 6343 | echo "$as_me: failed program was:" >&5 |
| 6344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6345 | |
| 6346 | fi |
| 6347 | rm -f conftest.err conftest.$ac_objext \ |
| 6348 | conftest$ac_exeext conftest.$ac_ext |
| 6349 | if test "$ac_cv_search_tgetent" = no; then |
| 6350 | for ac_lib in termcap tinfo curses ncurses; do |
| 6351 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6352 | cat >conftest.$ac_ext <<_ACEOF |
| 6353 | /* confdefs.h. */ |
| 6354 | _ACEOF |
| 6355 | cat confdefs.h >>conftest.$ac_ext |
| 6356 | cat >>conftest.$ac_ext <<_ACEOF |
| 6357 | /* end confdefs.h. */ |
| 6358 | |
| 6359 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6360 | #ifdef __cplusplus |
| 6361 | extern "C" |
| 6362 | #endif |
| 6363 | /* We use char because int might match the return type of a gcc2 |
| 6364 | builtin and then its argument prototype would still apply. */ |
| 6365 | char tgetent (); |
| 6366 | int |
| 6367 | main () |
| 6368 | { |
| 6369 | tgetent (); |
| 6370 | ; |
| 6371 | return 0; |
| 6372 | } |
| 6373 | _ACEOF |
| 6374 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6376 | (eval $ac_link) 2>conftest.er1 |
| 6377 | ac_status=$? |
| 6378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6379 | rm -f conftest.er1 |
| 6380 | cat conftest.err >&5 |
| 6381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6382 | (exit $ac_status); } && |
| 6383 | { ac_try='test -z "$ac_c_werror_flag" |
| 6384 | || test ! -s conftest.err' |
| 6385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6386 | (eval $ac_try) 2>&5 |
| 6387 | ac_status=$? |
| 6388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6389 | (exit $ac_status); }; } && |
| 6390 | { ac_try='test -s conftest$ac_exeext' |
| 6391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6392 | (eval $ac_try) 2>&5 |
| 6393 | ac_status=$? |
| 6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6395 | (exit $ac_status); }; }; then |
| 6396 | ac_cv_search_tgetent="-l$ac_lib" |
| 6397 | break |
| 6398 | else |
| 6399 | echo "$as_me: failed program was:" >&5 |
| 6400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6401 | |
| 6402 | fi |
| 6403 | rm -f conftest.err conftest.$ac_objext \ |
| 6404 | conftest$ac_exeext conftest.$ac_ext |
| 6405 | done |
| 6406 | fi |
| 6407 | LIBS=$ac_func_search_save_LIBS |
| 6408 | fi |
| 6409 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
| 6410 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 |
| 6411 | if test "$ac_cv_search_tgetent" != no; then |
| 6412 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
| 6413 | |
| 6414 | fi |
| 6415 | |
| 6416 | |
| 6417 | if test "$ac_cv_search_tgetent" = no; then |
| 6418 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 |
| 6419 | echo "$as_me: error: no termcap library found" >&2;} |
| 6420 | { (exit 1); exit 1; }; } |
| 6421 | fi |
| 6422 | |
| 6423 | |
| 6424 | # Check whether --with-system-readline or --without-system-readline was given. |
| 6425 | if test "${with_system_readline+set}" = set; then |
| 6426 | withval="$with_system_readline" |
| 6427 | |
| 6428 | fi; |
| 6429 | |
| 6430 | if test "$with_system_readline" = yes; then |
| 6431 | READLINE=-lreadline |
| 6432 | READLINE_DEPS= |
| 6433 | READLINE_CFLAGS= |
| 6434 | else |
| 6435 | READLINE='$(READLINE_DIR)/libreadline.a' |
| 6436 | READLINE_DEPS='$(READLINE)' |
| 6437 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' |
| 6438 | fi |
| 6439 | |
| 6440 | |
| 6441 | |
| 6442 | |
| 6443 | |
| 6444 | # Check whether --with-expat or --without-expat was given. |
| 6445 | if test "${with_expat+set}" = set; then |
| 6446 | withval="$with_expat" |
| 6447 | |
| 6448 | else |
| 6449 | with_expat=auto |
| 6450 | fi; |
| 6451 | echo "$as_me:$LINENO: checking whether to use expat" >&5 |
| 6452 | echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6 |
| 6453 | echo "$as_me:$LINENO: result: $with_expat" >&5 |
| 6454 | echo "${ECHO_T}$with_expat" >&6 |
| 6455 | |
| 6456 | if test "${with_expat}" = no; then |
| 6457 | { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5 |
| 6458 | echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;} |
| 6459 | HAVE_LIBEXPAT=no |
| 6460 | else |
| 6461 | |
| 6462 | if test "X$prefix" = "XNONE"; then |
| 6463 | acl_final_prefix="$ac_default_prefix" |
| 6464 | else |
| 6465 | acl_final_prefix="$prefix" |
| 6466 | fi |
| 6467 | if test "X$exec_prefix" = "XNONE"; then |
| 6468 | acl_final_exec_prefix='${prefix}' |
| 6469 | else |
| 6470 | acl_final_exec_prefix="$exec_prefix" |
| 6471 | fi |
| 6472 | acl_save_prefix="$prefix" |
| 6473 | prefix="$acl_final_prefix" |
| 6474 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 6475 | prefix="$acl_save_prefix" |
| 6476 | |
| 6477 | |
| 6478 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 6479 | if test "${with_gnu_ld+set}" = set; then |
| 6480 | withval="$with_gnu_ld" |
| 6481 | test "$withval" = no || with_gnu_ld=yes |
| 6482 | else |
| 6483 | with_gnu_ld=no |
| 6484 | fi; |
| 6485 | # Prepare PATH_SEPARATOR. |
| 6486 | # The user is always right. |
| 6487 | if test "${PATH_SEPARATOR+set}" != set; then |
| 6488 | echo "#! /bin/sh" >conf$$.sh |
| 6489 | echo "exit 0" >>conf$$.sh |
| 6490 | chmod +x conf$$.sh |
| 6491 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 6492 | PATH_SEPARATOR=';' |
| 6493 | else |
| 6494 | PATH_SEPARATOR=: |
| 6495 | fi |
| 6496 | rm -f conf$$.sh |
| 6497 | fi |
| 6498 | ac_prog=ld |
| 6499 | if test "$GCC" = yes; then |
| 6500 | # Check if gcc -print-prog-name=ld gives a path. |
| 6501 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 6502 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 6503 | case $host in |
| 6504 | *-*-mingw*) |
| 6505 | # gcc leaves a trailing carriage return which upsets mingw |
| 6506 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 6507 | *) |
| 6508 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 6509 | esac |
| 6510 | case $ac_prog in |
| 6511 | # Accept absolute paths. |
| 6512 | [\\/]* | [A-Za-z]:[\\/]*) |
| 6513 | re_direlt='/[^/][^/]*/\.\./' |
| 6514 | # Canonicalize the path of ld |
| 6515 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 6516 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 6517 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 6518 | done |
| 6519 | test -z "$LD" && LD="$ac_prog" |
| 6520 | ;; |
| 6521 | "") |
| 6522 | # If it fails, then pretend we aren't using GCC. |
| 6523 | ac_prog=ld |
| 6524 | ;; |
| 6525 | *) |
| 6526 | # If it is relative, then search for the first ld in PATH. |
| 6527 | with_gnu_ld=unknown |
| 6528 | ;; |
| 6529 | esac |
| 6530 | elif test "$with_gnu_ld" = yes; then |
| 6531 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 6532 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 6533 | else |
| 6534 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 6535 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 6536 | fi |
| 6537 | if test "${acl_cv_path_LD+set}" = set; then |
| 6538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6539 | else |
| 6540 | if test -z "$LD"; then |
| 6541 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 6542 | for ac_dir in $PATH; do |
| 6543 | test -z "$ac_dir" && ac_dir=. |
| 6544 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 6545 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 6546 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 6547 | # but apparently some GNU ld's only accept -v. |
| 6548 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 6549 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 6550 | test "$with_gnu_ld" != no && break |
| 6551 | else |
| 6552 | test "$with_gnu_ld" != yes && break |
| 6553 | fi |
| 6554 | fi |
| 6555 | done |
| 6556 | IFS="$ac_save_ifs" |
| 6557 | else |
| 6558 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 6559 | fi |
| 6560 | fi |
| 6561 | |
| 6562 | LD="$acl_cv_path_LD" |
| 6563 | if test -n "$LD"; then |
| 6564 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 6565 | echo "${ECHO_T}$LD" >&6 |
| 6566 | else |
| 6567 | echo "$as_me:$LINENO: result: no" >&5 |
| 6568 | echo "${ECHO_T}no" >&6 |
| 6569 | fi |
| 6570 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 6571 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 6572 | { (exit 1); exit 1; }; } |
| 6573 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 6574 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 6575 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 6576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6577 | else |
| 6578 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 6579 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 6580 | acl_cv_prog_gnu_ld=yes |
| 6581 | else |
| 6582 | acl_cv_prog_gnu_ld=no |
| 6583 | fi |
| 6584 | fi |
| 6585 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 6586 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 |
| 6587 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 6588 | |
| 6589 | |
| 6590 | |
| 6591 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 6592 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 |
| 6593 | if test "${acl_cv_rpath+set}" = set; then |
| 6594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6595 | else |
| 6596 | |
| 6597 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 6598 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 6599 | . ./conftest.sh |
| 6600 | rm -f ./conftest.sh |
| 6601 | acl_cv_rpath=done |
| 6602 | |
| 6603 | fi |
| 6604 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 6605 | echo "${ECHO_T}$acl_cv_rpath" >&6 |
| 6606 | wl="$acl_cv_wl" |
| 6607 | libext="$acl_cv_libext" |
| 6608 | shlibext="$acl_cv_shlibext" |
| 6609 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 6610 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 6611 | hardcode_direct="$acl_cv_hardcode_direct" |
| 6612 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 6613 | # Check whether --enable-rpath or --disable-rpath was given. |
| 6614 | if test "${enable_rpath+set}" = set; then |
| 6615 | enableval="$enable_rpath" |
| 6616 | : |
| 6617 | else |
| 6618 | enable_rpath=yes |
| 6619 | fi; |
| 6620 | |
| 6621 | |
| 6622 | |
| 6623 | |
| 6624 | |
| 6625 | |
| 6626 | |
| 6627 | |
| 6628 | |
| 6629 | use_additional=yes |
| 6630 | |
| 6631 | acl_save_prefix="$prefix" |
| 6632 | prefix="$acl_final_prefix" |
| 6633 | acl_save_exec_prefix="$exec_prefix" |
| 6634 | exec_prefix="$acl_final_exec_prefix" |
| 6635 | |
| 6636 | eval additional_includedir=\"$includedir\" |
| 6637 | eval additional_libdir=\"$libdir\" |
| 6638 | |
| 6639 | exec_prefix="$acl_save_exec_prefix" |
| 6640 | prefix="$acl_save_prefix" |
| 6641 | |
| 6642 | |
| 6643 | # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given. |
| 6644 | if test "${with_libexpat_prefix+set}" = set; then |
| 6645 | withval="$with_libexpat_prefix" |
| 6646 | |
| 6647 | if test "X$withval" = "Xno"; then |
| 6648 | use_additional=no |
| 6649 | else |
| 6650 | if test "X$withval" = "X"; then |
| 6651 | |
| 6652 | acl_save_prefix="$prefix" |
| 6653 | prefix="$acl_final_prefix" |
| 6654 | acl_save_exec_prefix="$exec_prefix" |
| 6655 | exec_prefix="$acl_final_exec_prefix" |
| 6656 | |
| 6657 | eval additional_includedir=\"$includedir\" |
| 6658 | eval additional_libdir=\"$libdir\" |
| 6659 | |
| 6660 | exec_prefix="$acl_save_exec_prefix" |
| 6661 | prefix="$acl_save_prefix" |
| 6662 | |
| 6663 | else |
| 6664 | additional_includedir="$withval/include" |
| 6665 | additional_libdir="$withval/lib" |
| 6666 | fi |
| 6667 | fi |
| 6668 | |
| 6669 | fi; |
| 6670 | LIBEXPAT= |
| 6671 | LTLIBEXPAT= |
| 6672 | INCEXPAT= |
| 6673 | rpathdirs= |
| 6674 | ltrpathdirs= |
| 6675 | names_already_handled= |
| 6676 | names_next_round='expat ' |
| 6677 | while test -n "$names_next_round"; do |
| 6678 | names_this_round="$names_next_round" |
| 6679 | names_next_round= |
| 6680 | for name in $names_this_round; do |
| 6681 | already_handled= |
| 6682 | for n in $names_already_handled; do |
| 6683 | if test "$n" = "$name"; then |
| 6684 | already_handled=yes |
| 6685 | break |
| 6686 | fi |
| 6687 | done |
| 6688 | if test -z "$already_handled"; then |
| 6689 | names_already_handled="$names_already_handled $name" |
| 6690 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 6691 | eval value=\"\$HAVE_LIB$uppername\" |
| 6692 | if test -n "$value"; then |
| 6693 | if test "$value" = yes; then |
| 6694 | eval value=\"\$LIB$uppername\" |
| 6695 | test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" |
| 6696 | eval value=\"\$LTLIB$uppername\" |
| 6697 | test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" |
| 6698 | else |
| 6699 | : |
| 6700 | fi |
| 6701 | else |
| 6702 | found_dir= |
| 6703 | found_la= |
| 6704 | found_so= |
| 6705 | found_a= |
| 6706 | if test $use_additional = yes; then |
| 6707 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 6708 | found_dir="$additional_libdir" |
| 6709 | found_so="$additional_libdir/lib$name.$shlibext" |
| 6710 | if test -f "$additional_libdir/lib$name.la"; then |
| 6711 | found_la="$additional_libdir/lib$name.la" |
| 6712 | fi |
| 6713 | else |
| 6714 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 6715 | found_dir="$additional_libdir" |
| 6716 | found_a="$additional_libdir/lib$name.$libext" |
| 6717 | if test -f "$additional_libdir/lib$name.la"; then |
| 6718 | found_la="$additional_libdir/lib$name.la" |
| 6719 | fi |
| 6720 | fi |
| 6721 | fi |
| 6722 | fi |
| 6723 | if test "X$found_dir" = "X"; then |
| 6724 | for x in $LDFLAGS $LTLIBEXPAT; do |
| 6725 | |
| 6726 | acl_save_prefix="$prefix" |
| 6727 | prefix="$acl_final_prefix" |
| 6728 | acl_save_exec_prefix="$exec_prefix" |
| 6729 | exec_prefix="$acl_final_exec_prefix" |
| 6730 | eval x=\"$x\" |
| 6731 | exec_prefix="$acl_save_exec_prefix" |
| 6732 | prefix="$acl_save_prefix" |
| 6733 | |
| 6734 | case "$x" in |
| 6735 | -L*) |
| 6736 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 6737 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 6738 | found_dir="$dir" |
| 6739 | found_so="$dir/lib$name.$shlibext" |
| 6740 | if test -f "$dir/lib$name.la"; then |
| 6741 | found_la="$dir/lib$name.la" |
| 6742 | fi |
| 6743 | else |
| 6744 | if test -f "$dir/lib$name.$libext"; then |
| 6745 | found_dir="$dir" |
| 6746 | found_a="$dir/lib$name.$libext" |
| 6747 | if test -f "$dir/lib$name.la"; then |
| 6748 | found_la="$dir/lib$name.la" |
| 6749 | fi |
| 6750 | fi |
| 6751 | fi |
| 6752 | ;; |
| 6753 | esac |
| 6754 | if test "X$found_dir" != "X"; then |
| 6755 | break |
| 6756 | fi |
| 6757 | done |
| 6758 | fi |
| 6759 | if test "X$found_dir" != "X"; then |
| 6760 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" |
| 6761 | if test "X$found_so" != "X"; then |
| 6762 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 6763 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 6764 | else |
| 6765 | haveit= |
| 6766 | for x in $ltrpathdirs; do |
| 6767 | if test "X$x" = "X$found_dir"; then |
| 6768 | haveit=yes |
| 6769 | break |
| 6770 | fi |
| 6771 | done |
| 6772 | if test -z "$haveit"; then |
| 6773 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 6774 | fi |
| 6775 | if test "$hardcode_direct" = yes; then |
| 6776 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 6777 | else |
| 6778 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 6779 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 6780 | haveit= |
| 6781 | for x in $rpathdirs; do |
| 6782 | if test "X$x" = "X$found_dir"; then |
| 6783 | haveit=yes |
| 6784 | break |
| 6785 | fi |
| 6786 | done |
| 6787 | if test -z "$haveit"; then |
| 6788 | rpathdirs="$rpathdirs $found_dir" |
| 6789 | fi |
| 6790 | else |
| 6791 | haveit= |
| 6792 | for x in $LDFLAGS $LIBEXPAT; do |
| 6793 | |
| 6794 | acl_save_prefix="$prefix" |
| 6795 | prefix="$acl_final_prefix" |
| 6796 | acl_save_exec_prefix="$exec_prefix" |
| 6797 | exec_prefix="$acl_final_exec_prefix" |
| 6798 | eval x=\"$x\" |
| 6799 | exec_prefix="$acl_save_exec_prefix" |
| 6800 | prefix="$acl_save_prefix" |
| 6801 | |
| 6802 | if test "X$x" = "X-L$found_dir"; then |
| 6803 | haveit=yes |
| 6804 | break |
| 6805 | fi |
| 6806 | done |
| 6807 | if test -z "$haveit"; then |
| 6808 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" |
| 6809 | fi |
| 6810 | if test "$hardcode_minus_L" != no; then |
| 6811 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 6812 | else |
| 6813 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" |
| 6814 | fi |
| 6815 | fi |
| 6816 | fi |
| 6817 | fi |
| 6818 | else |
| 6819 | if test "X$found_a" != "X"; then |
| 6820 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" |
| 6821 | else |
| 6822 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" |
| 6823 | fi |
| 6824 | fi |
| 6825 | additional_includedir= |
| 6826 | case "$found_dir" in |
| 6827 | */lib | */lib/) |
| 6828 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 6829 | additional_includedir="$basedir/include" |
| 6830 | ;; |
| 6831 | esac |
| 6832 | if test "X$additional_includedir" != "X"; then |
| 6833 | if test "X$additional_includedir" != "X/usr/include"; then |
| 6834 | haveit= |
| 6835 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 6836 | if test -n "$GCC"; then |
| 6837 | case $host_os in |
| 6838 | linux*) haveit=yes;; |
| 6839 | esac |
| 6840 | fi |
| 6841 | fi |
| 6842 | if test -z "$haveit"; then |
| 6843 | for x in $CPPFLAGS $INCEXPAT; do |
| 6844 | |
| 6845 | acl_save_prefix="$prefix" |
| 6846 | prefix="$acl_final_prefix" |
| 6847 | acl_save_exec_prefix="$exec_prefix" |
| 6848 | exec_prefix="$acl_final_exec_prefix" |
| 6849 | eval x=\"$x\" |
| 6850 | exec_prefix="$acl_save_exec_prefix" |
| 6851 | prefix="$acl_save_prefix" |
| 6852 | |
| 6853 | if test "X$x" = "X-I$additional_includedir"; then |
| 6854 | haveit=yes |
| 6855 | break |
| 6856 | fi |
| 6857 | done |
| 6858 | if test -z "$haveit"; then |
| 6859 | if test -d "$additional_includedir"; then |
| 6860 | INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" |
| 6861 | fi |
| 6862 | fi |
| 6863 | fi |
| 6864 | fi |
| 6865 | fi |
| 6866 | if test -n "$found_la"; then |
| 6867 | save_libdir="$libdir" |
| 6868 | case "$found_la" in |
| 6869 | */* | *\\*) . "$found_la" ;; |
| 6870 | *) . "./$found_la" ;; |
| 6871 | esac |
| 6872 | libdir="$save_libdir" |
| 6873 | for dep in $dependency_libs; do |
| 6874 | case "$dep" in |
| 6875 | -L*) |
| 6876 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 6877 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 6878 | haveit= |
| 6879 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 6880 | if test -n "$GCC"; then |
| 6881 | case $host_os in |
| 6882 | linux*) haveit=yes;; |
| 6883 | esac |
| 6884 | fi |
| 6885 | fi |
| 6886 | if test -z "$haveit"; then |
| 6887 | haveit= |
| 6888 | for x in $LDFLAGS $LIBEXPAT; do |
| 6889 | |
| 6890 | acl_save_prefix="$prefix" |
| 6891 | prefix="$acl_final_prefix" |
| 6892 | acl_save_exec_prefix="$exec_prefix" |
| 6893 | exec_prefix="$acl_final_exec_prefix" |
| 6894 | eval x=\"$x\" |
| 6895 | exec_prefix="$acl_save_exec_prefix" |
| 6896 | prefix="$acl_save_prefix" |
| 6897 | |
| 6898 | if test "X$x" = "X-L$additional_libdir"; then |
| 6899 | haveit=yes |
| 6900 | break |
| 6901 | fi |
| 6902 | done |
| 6903 | if test -z "$haveit"; then |
| 6904 | if test -d "$additional_libdir"; then |
| 6905 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" |
| 6906 | fi |
| 6907 | fi |
| 6908 | haveit= |
| 6909 | for x in $LDFLAGS $LTLIBEXPAT; do |
| 6910 | |
| 6911 | acl_save_prefix="$prefix" |
| 6912 | prefix="$acl_final_prefix" |
| 6913 | acl_save_exec_prefix="$exec_prefix" |
| 6914 | exec_prefix="$acl_final_exec_prefix" |
| 6915 | eval x=\"$x\" |
| 6916 | exec_prefix="$acl_save_exec_prefix" |
| 6917 | prefix="$acl_save_prefix" |
| 6918 | |
| 6919 | if test "X$x" = "X-L$additional_libdir"; then |
| 6920 | haveit=yes |
| 6921 | break |
| 6922 | fi |
| 6923 | done |
| 6924 | if test -z "$haveit"; then |
| 6925 | if test -d "$additional_libdir"; then |
| 6926 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" |
| 6927 | fi |
| 6928 | fi |
| 6929 | fi |
| 6930 | fi |
| 6931 | ;; |
| 6932 | -R*) |
| 6933 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 6934 | if test "$enable_rpath" != no; then |
| 6935 | haveit= |
| 6936 | for x in $rpathdirs; do |
| 6937 | if test "X$x" = "X$dir"; then |
| 6938 | haveit=yes |
| 6939 | break |
| 6940 | fi |
| 6941 | done |
| 6942 | if test -z "$haveit"; then |
| 6943 | rpathdirs="$rpathdirs $dir" |
| 6944 | fi |
| 6945 | haveit= |
| 6946 | for x in $ltrpathdirs; do |
| 6947 | if test "X$x" = "X$dir"; then |
| 6948 | haveit=yes |
| 6949 | break |
| 6950 | fi |
| 6951 | done |
| 6952 | if test -z "$haveit"; then |
| 6953 | ltrpathdirs="$ltrpathdirs $dir" |
| 6954 | fi |
| 6955 | fi |
| 6956 | ;; |
| 6957 | -l*) |
| 6958 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 6959 | ;; |
| 6960 | *.la) |
| 6961 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 6962 | ;; |
| 6963 | *) |
| 6964 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" |
| 6965 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" |
| 6966 | ;; |
| 6967 | esac |
| 6968 | done |
| 6969 | fi |
| 6970 | else |
| 6971 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" |
| 6972 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" |
| 6973 | fi |
| 6974 | fi |
| 6975 | fi |
| 6976 | done |
| 6977 | done |
| 6978 | if test "X$rpathdirs" != "X"; then |
| 6979 | if test -n "$hardcode_libdir_separator"; then |
| 6980 | alldirs= |
| 6981 | for found_dir in $rpathdirs; do |
| 6982 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 6983 | done |
| 6984 | acl_save_libdir="$libdir" |
| 6985 | libdir="$alldirs" |
| 6986 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 6987 | libdir="$acl_save_libdir" |
| 6988 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" |
| 6989 | else |
| 6990 | for found_dir in $rpathdirs; do |
| 6991 | acl_save_libdir="$libdir" |
| 6992 | libdir="$found_dir" |
| 6993 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 6994 | libdir="$acl_save_libdir" |
| 6995 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" |
| 6996 | done |
| 6997 | fi |
| 6998 | fi |
| 6999 | if test "X$ltrpathdirs" != "X"; then |
| 7000 | for found_dir in $ltrpathdirs; do |
| 7001 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" |
| 7002 | done |
| 7003 | fi |
| 7004 | |
| 7005 | |
| 7006 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 7007 | |
| 7008 | for element in $INCEXPAT; do |
| 7009 | haveit= |
| 7010 | for x in $CPPFLAGS; do |
| 7011 | |
| 7012 | acl_save_prefix="$prefix" |
| 7013 | prefix="$acl_final_prefix" |
| 7014 | acl_save_exec_prefix="$exec_prefix" |
| 7015 | exec_prefix="$acl_final_exec_prefix" |
| 7016 | eval x=\"$x\" |
| 7017 | exec_prefix="$acl_save_exec_prefix" |
| 7018 | prefix="$acl_save_prefix" |
| 7019 | |
| 7020 | if test "X$x" = "X$element"; then |
| 7021 | haveit=yes |
| 7022 | break |
| 7023 | fi |
| 7024 | done |
| 7025 | if test -z "$haveit"; then |
| 7026 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 7027 | fi |
| 7028 | done |
| 7029 | |
| 7030 | |
| 7031 | echo "$as_me:$LINENO: checking for libexpat" >&5 |
| 7032 | echo $ECHO_N "checking for libexpat... $ECHO_C" >&6 |
| 7033 | if test "${ac_cv_libexpat+set}" = set; then |
| 7034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7035 | else |
| 7036 | |
| 7037 | ac_save_LIBS="$LIBS" |
| 7038 | LIBS="$LIBS $LIBEXPAT" |
| 7039 | cat >conftest.$ac_ext <<_ACEOF |
| 7040 | /* confdefs.h. */ |
| 7041 | _ACEOF |
| 7042 | cat confdefs.h >>conftest.$ac_ext |
| 7043 | cat >>conftest.$ac_ext <<_ACEOF |
| 7044 | /* end confdefs.h. */ |
| 7045 | #include "expat.h" |
| 7046 | int |
| 7047 | main () |
| 7048 | { |
| 7049 | XML_Parser p = XML_ParserCreate (0); |
| 7050 | ; |
| 7051 | return 0; |
| 7052 | } |
| 7053 | _ACEOF |
| 7054 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7056 | (eval $ac_link) 2>conftest.er1 |
| 7057 | ac_status=$? |
| 7058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7059 | rm -f conftest.er1 |
| 7060 | cat conftest.err >&5 |
| 7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7062 | (exit $ac_status); } && |
| 7063 | { ac_try='test -z "$ac_c_werror_flag" |
| 7064 | || test ! -s conftest.err' |
| 7065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7066 | (eval $ac_try) 2>&5 |
| 7067 | ac_status=$? |
| 7068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7069 | (exit $ac_status); }; } && |
| 7070 | { ac_try='test -s conftest$ac_exeext' |
| 7071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7072 | (eval $ac_try) 2>&5 |
| 7073 | ac_status=$? |
| 7074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7075 | (exit $ac_status); }; }; then |
| 7076 | ac_cv_libexpat=yes |
| 7077 | else |
| 7078 | echo "$as_me: failed program was:" >&5 |
| 7079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7080 | |
| 7081 | ac_cv_libexpat=no |
| 7082 | fi |
| 7083 | rm -f conftest.err conftest.$ac_objext \ |
| 7084 | conftest$ac_exeext conftest.$ac_ext |
| 7085 | LIBS="$ac_save_LIBS" |
| 7086 | |
| 7087 | fi |
| 7088 | echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5 |
| 7089 | echo "${ECHO_T}$ac_cv_libexpat" >&6 |
| 7090 | if test "$ac_cv_libexpat" = yes; then |
| 7091 | HAVE_LIBEXPAT=yes |
| 7092 | |
| 7093 | cat >>confdefs.h <<\_ACEOF |
| 7094 | #define HAVE_LIBEXPAT 1 |
| 7095 | _ACEOF |
| 7096 | |
| 7097 | echo "$as_me:$LINENO: checking how to link with libexpat" >&5 |
| 7098 | echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6 |
| 7099 | echo "$as_me:$LINENO: result: $LIBEXPAT" >&5 |
| 7100 | echo "${ECHO_T}$LIBEXPAT" >&6 |
| 7101 | else |
| 7102 | HAVE_LIBEXPAT=no |
| 7103 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 7104 | LIBEXPAT= |
| 7105 | LTLIBEXPAT= |
| 7106 | fi |
| 7107 | |
| 7108 | |
| 7109 | |
| 7110 | |
| 7111 | |
| 7112 | |
| 7113 | if test "$HAVE_LIBEXPAT" != yes; then |
| 7114 | if test "$with_expat" = yes; then |
| 7115 | { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5 |
| 7116 | echo "$as_me: error: expat is missing or unusable" >&2;} |
| 7117 | { (exit 1); exit 1; }; } |
| 7118 | else |
| 7119 | { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5 |
| 7120 | echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;} |
| 7121 | fi |
| 7122 | else |
| 7123 | save_LIBS=$LIBS |
| 7124 | LIBS="$LIBS $LIBEXPAT" |
| 7125 | |
| 7126 | for ac_func in XML_StopParser |
| 7127 | do |
| 7128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7129 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 7131 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 7132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7133 | else |
| 7134 | cat >conftest.$ac_ext <<_ACEOF |
| 7135 | /* confdefs.h. */ |
| 7136 | _ACEOF |
| 7137 | cat confdefs.h >>conftest.$ac_ext |
| 7138 | cat >>conftest.$ac_ext <<_ACEOF |
| 7139 | /* end confdefs.h. */ |
| 7140 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7142 | #define $ac_func innocuous_$ac_func |
| 7143 | |
| 7144 | /* System header to define __stub macros and hopefully few prototypes, |
| 7145 | which can conflict with char $ac_func (); below. |
| 7146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7147 | <limits.h> exists even on freestanding compilers. */ |
| 7148 | |
| 7149 | #ifdef __STDC__ |
| 7150 | # include <limits.h> |
| 7151 | #else |
| 7152 | # include <assert.h> |
| 7153 | #endif |
| 7154 | |
| 7155 | #undef $ac_func |
| 7156 | |
| 7157 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7158 | #ifdef __cplusplus |
| 7159 | extern "C" |
| 7160 | { |
| 7161 | #endif |
| 7162 | /* We use char because int might match the return type of a gcc2 |
| 7163 | builtin and then its argument prototype would still apply. */ |
| 7164 | char $ac_func (); |
| 7165 | /* The GNU C library defines this for functions which it implements |
| 7166 | to always fail with ENOSYS. Some functions are actually named |
| 7167 | something starting with __ and the normal name is an alias. */ |
| 7168 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 7169 | choke me |
| 7170 | #else |
| 7171 | char (*f) () = $ac_func; |
| 7172 | #endif |
| 7173 | #ifdef __cplusplus |
| 7174 | } |
| 7175 | #endif |
| 7176 | |
| 7177 | int |
| 7178 | main () |
| 7179 | { |
| 7180 | return f != $ac_func; |
| 7181 | ; |
| 7182 | return 0; |
| 7183 | } |
| 7184 | _ACEOF |
| 7185 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7187 | (eval $ac_link) 2>conftest.er1 |
| 7188 | ac_status=$? |
| 7189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7190 | rm -f conftest.er1 |
| 7191 | cat conftest.err >&5 |
| 7192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7193 | (exit $ac_status); } && |
| 7194 | { ac_try='test -z "$ac_c_werror_flag" |
| 7195 | || test ! -s conftest.err' |
| 7196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7197 | (eval $ac_try) 2>&5 |
| 7198 | ac_status=$? |
| 7199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7200 | (exit $ac_status); }; } && |
| 7201 | { ac_try='test -s conftest$ac_exeext' |
| 7202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7203 | (eval $ac_try) 2>&5 |
| 7204 | ac_status=$? |
| 7205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7206 | (exit $ac_status); }; }; then |
| 7207 | eval "$as_ac_var=yes" |
| 7208 | else |
| 7209 | echo "$as_me: failed program was:" >&5 |
| 7210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7211 | |
| 7212 | eval "$as_ac_var=no" |
| 7213 | fi |
| 7214 | rm -f conftest.err conftest.$ac_objext \ |
| 7215 | conftest$ac_exeext conftest.$ac_ext |
| 7216 | fi |
| 7217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 7218 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 7219 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 7220 | cat >>confdefs.h <<_ACEOF |
| 7221 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 7222 | _ACEOF |
| 7223 | |
| 7224 | fi |
| 7225 | done |
| 7226 | |
| 7227 | LIBS=$save_LIBS |
| 7228 | fi |
| 7229 | fi |
| 7230 | |
| 7231 | # ------------------------- # |
| 7232 | # Checks for header files. # |
| 7233 | # ------------------------- # |
| 7234 | |
| 7235 | |
| 7236 | |
| 7237 | |
| 7238 | |
| 7239 | |
| 7240 | ac_header_dirent=no |
| 7241 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 7242 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 7243 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 7244 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 7245 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7247 | else |
| 7248 | cat >conftest.$ac_ext <<_ACEOF |
| 7249 | /* confdefs.h. */ |
| 7250 | _ACEOF |
| 7251 | cat confdefs.h >>conftest.$ac_ext |
| 7252 | cat >>conftest.$ac_ext <<_ACEOF |
| 7253 | /* end confdefs.h. */ |
| 7254 | #include <sys/types.h> |
| 7255 | #include <$ac_hdr> |
| 7256 | |
| 7257 | int |
| 7258 | main () |
| 7259 | { |
| 7260 | if ((DIR *) 0) |
| 7261 | return 0; |
| 7262 | ; |
| 7263 | return 0; |
| 7264 | } |
| 7265 | _ACEOF |
| 7266 | rm -f conftest.$ac_objext |
| 7267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7268 | (eval $ac_compile) 2>conftest.er1 |
| 7269 | ac_status=$? |
| 7270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7271 | rm -f conftest.er1 |
| 7272 | cat conftest.err >&5 |
| 7273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7274 | (exit $ac_status); } && |
| 7275 | { ac_try='test -z "$ac_c_werror_flag" |
| 7276 | || test ! -s conftest.err' |
| 7277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7278 | (eval $ac_try) 2>&5 |
| 7279 | ac_status=$? |
| 7280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7281 | (exit $ac_status); }; } && |
| 7282 | { ac_try='test -s conftest.$ac_objext' |
| 7283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7284 | (eval $ac_try) 2>&5 |
| 7285 | ac_status=$? |
| 7286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7287 | (exit $ac_status); }; }; then |
| 7288 | eval "$as_ac_Header=yes" |
| 7289 | else |
| 7290 | echo "$as_me: failed program was:" >&5 |
| 7291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7292 | |
| 7293 | eval "$as_ac_Header=no" |
| 7294 | fi |
| 7295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7296 | fi |
| 7297 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7298 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7299 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7300 | cat >>confdefs.h <<_ACEOF |
| 7301 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 7302 | _ACEOF |
| 7303 | |
| 7304 | ac_header_dirent=$ac_hdr; break |
| 7305 | fi |
| 7306 | |
| 7307 | done |
| 7308 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 7309 | if test $ac_header_dirent = dirent.h; then |
| 7310 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 7311 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 7312 | if test "${ac_cv_search_opendir+set}" = set; then |
| 7313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7314 | else |
| 7315 | ac_func_search_save_LIBS=$LIBS |
| 7316 | ac_cv_search_opendir=no |
| 7317 | cat >conftest.$ac_ext <<_ACEOF |
| 7318 | /* confdefs.h. */ |
| 7319 | _ACEOF |
| 7320 | cat confdefs.h >>conftest.$ac_ext |
| 7321 | cat >>conftest.$ac_ext <<_ACEOF |
| 7322 | /* end confdefs.h. */ |
| 7323 | |
| 7324 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7325 | #ifdef __cplusplus |
| 7326 | extern "C" |
| 7327 | #endif |
| 7328 | /* We use char because int might match the return type of a gcc2 |
| 7329 | builtin and then its argument prototype would still apply. */ |
| 7330 | char opendir (); |
| 7331 | int |
| 7332 | main () |
| 7333 | { |
| 7334 | opendir (); |
| 7335 | ; |
| 7336 | return 0; |
| 7337 | } |
| 7338 | _ACEOF |
| 7339 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7341 | (eval $ac_link) 2>conftest.er1 |
| 7342 | ac_status=$? |
| 7343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7344 | rm -f conftest.er1 |
| 7345 | cat conftest.err >&5 |
| 7346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7347 | (exit $ac_status); } && |
| 7348 | { ac_try='test -z "$ac_c_werror_flag" |
| 7349 | || test ! -s conftest.err' |
| 7350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7351 | (eval $ac_try) 2>&5 |
| 7352 | ac_status=$? |
| 7353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7354 | (exit $ac_status); }; } && |
| 7355 | { ac_try='test -s conftest$ac_exeext' |
| 7356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7357 | (eval $ac_try) 2>&5 |
| 7358 | ac_status=$? |
| 7359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7360 | (exit $ac_status); }; }; then |
| 7361 | ac_cv_search_opendir="none required" |
| 7362 | else |
| 7363 | echo "$as_me: failed program was:" >&5 |
| 7364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7365 | |
| 7366 | fi |
| 7367 | rm -f conftest.err conftest.$ac_objext \ |
| 7368 | conftest$ac_exeext conftest.$ac_ext |
| 7369 | if test "$ac_cv_search_opendir" = no; then |
| 7370 | for ac_lib in dir; do |
| 7371 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 7372 | cat >conftest.$ac_ext <<_ACEOF |
| 7373 | /* confdefs.h. */ |
| 7374 | _ACEOF |
| 7375 | cat confdefs.h >>conftest.$ac_ext |
| 7376 | cat >>conftest.$ac_ext <<_ACEOF |
| 7377 | /* end confdefs.h. */ |
| 7378 | |
| 7379 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7380 | #ifdef __cplusplus |
| 7381 | extern "C" |
| 7382 | #endif |
| 7383 | /* We use char because int might match the return type of a gcc2 |
| 7384 | builtin and then its argument prototype would still apply. */ |
| 7385 | char opendir (); |
| 7386 | int |
| 7387 | main () |
| 7388 | { |
| 7389 | opendir (); |
| 7390 | ; |
| 7391 | return 0; |
| 7392 | } |
| 7393 | _ACEOF |
| 7394 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7396 | (eval $ac_link) 2>conftest.er1 |
| 7397 | ac_status=$? |
| 7398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7399 | rm -f conftest.er1 |
| 7400 | cat conftest.err >&5 |
| 7401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7402 | (exit $ac_status); } && |
| 7403 | { ac_try='test -z "$ac_c_werror_flag" |
| 7404 | || test ! -s conftest.err' |
| 7405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7406 | (eval $ac_try) 2>&5 |
| 7407 | ac_status=$? |
| 7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7409 | (exit $ac_status); }; } && |
| 7410 | { ac_try='test -s conftest$ac_exeext' |
| 7411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7412 | (eval $ac_try) 2>&5 |
| 7413 | ac_status=$? |
| 7414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7415 | (exit $ac_status); }; }; then |
| 7416 | ac_cv_search_opendir="-l$ac_lib" |
| 7417 | break |
| 7418 | else |
| 7419 | echo "$as_me: failed program was:" >&5 |
| 7420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7421 | |
| 7422 | fi |
| 7423 | rm -f conftest.err conftest.$ac_objext \ |
| 7424 | conftest$ac_exeext conftest.$ac_ext |
| 7425 | done |
| 7426 | fi |
| 7427 | LIBS=$ac_func_search_save_LIBS |
| 7428 | fi |
| 7429 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 7430 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 7431 | if test "$ac_cv_search_opendir" != no; then |
| 7432 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 7433 | |
| 7434 | fi |
| 7435 | |
| 7436 | else |
| 7437 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 7438 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 7439 | if test "${ac_cv_search_opendir+set}" = set; then |
| 7440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7441 | else |
| 7442 | ac_func_search_save_LIBS=$LIBS |
| 7443 | ac_cv_search_opendir=no |
| 7444 | cat >conftest.$ac_ext <<_ACEOF |
| 7445 | /* confdefs.h. */ |
| 7446 | _ACEOF |
| 7447 | cat confdefs.h >>conftest.$ac_ext |
| 7448 | cat >>conftest.$ac_ext <<_ACEOF |
| 7449 | /* end confdefs.h. */ |
| 7450 | |
| 7451 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7452 | #ifdef __cplusplus |
| 7453 | extern "C" |
| 7454 | #endif |
| 7455 | /* We use char because int might match the return type of a gcc2 |
| 7456 | builtin and then its argument prototype would still apply. */ |
| 7457 | char opendir (); |
| 7458 | int |
| 7459 | main () |
| 7460 | { |
| 7461 | opendir (); |
| 7462 | ; |
| 7463 | return 0; |
| 7464 | } |
| 7465 | _ACEOF |
| 7466 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7468 | (eval $ac_link) 2>conftest.er1 |
| 7469 | ac_status=$? |
| 7470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7471 | rm -f conftest.er1 |
| 7472 | cat conftest.err >&5 |
| 7473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7474 | (exit $ac_status); } && |
| 7475 | { ac_try='test -z "$ac_c_werror_flag" |
| 7476 | || test ! -s conftest.err' |
| 7477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7478 | (eval $ac_try) 2>&5 |
| 7479 | ac_status=$? |
| 7480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7481 | (exit $ac_status); }; } && |
| 7482 | { ac_try='test -s conftest$ac_exeext' |
| 7483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7484 | (eval $ac_try) 2>&5 |
| 7485 | ac_status=$? |
| 7486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7487 | (exit $ac_status); }; }; then |
| 7488 | ac_cv_search_opendir="none required" |
| 7489 | else |
| 7490 | echo "$as_me: failed program was:" >&5 |
| 7491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7492 | |
| 7493 | fi |
| 7494 | rm -f conftest.err conftest.$ac_objext \ |
| 7495 | conftest$ac_exeext conftest.$ac_ext |
| 7496 | if test "$ac_cv_search_opendir" = no; then |
| 7497 | for ac_lib in x; do |
| 7498 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 7499 | cat >conftest.$ac_ext <<_ACEOF |
| 7500 | /* confdefs.h. */ |
| 7501 | _ACEOF |
| 7502 | cat confdefs.h >>conftest.$ac_ext |
| 7503 | cat >>conftest.$ac_ext <<_ACEOF |
| 7504 | /* end confdefs.h. */ |
| 7505 | |
| 7506 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7507 | #ifdef __cplusplus |
| 7508 | extern "C" |
| 7509 | #endif |
| 7510 | /* We use char because int might match the return type of a gcc2 |
| 7511 | builtin and then its argument prototype would still apply. */ |
| 7512 | char opendir (); |
| 7513 | int |
| 7514 | main () |
| 7515 | { |
| 7516 | opendir (); |
| 7517 | ; |
| 7518 | return 0; |
| 7519 | } |
| 7520 | _ACEOF |
| 7521 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7523 | (eval $ac_link) 2>conftest.er1 |
| 7524 | ac_status=$? |
| 7525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7526 | rm -f conftest.er1 |
| 7527 | cat conftest.err >&5 |
| 7528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7529 | (exit $ac_status); } && |
| 7530 | { ac_try='test -z "$ac_c_werror_flag" |
| 7531 | || test ! -s conftest.err' |
| 7532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7533 | (eval $ac_try) 2>&5 |
| 7534 | ac_status=$? |
| 7535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7536 | (exit $ac_status); }; } && |
| 7537 | { ac_try='test -s conftest$ac_exeext' |
| 7538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7539 | (eval $ac_try) 2>&5 |
| 7540 | ac_status=$? |
| 7541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7542 | (exit $ac_status); }; }; then |
| 7543 | ac_cv_search_opendir="-l$ac_lib" |
| 7544 | break |
| 7545 | else |
| 7546 | echo "$as_me: failed program was:" >&5 |
| 7547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7548 | |
| 7549 | fi |
| 7550 | rm -f conftest.err conftest.$ac_objext \ |
| 7551 | conftest$ac_exeext conftest.$ac_ext |
| 7552 | done |
| 7553 | fi |
| 7554 | LIBS=$ac_func_search_save_LIBS |
| 7555 | fi |
| 7556 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 7557 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 7558 | if test "$ac_cv_search_opendir" != no; then |
| 7559 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 7560 | |
| 7561 | fi |
| 7562 | |
| 7563 | fi |
| 7564 | |
| 7565 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 7566 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 7567 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 7568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7569 | else |
| 7570 | cat >conftest.$ac_ext <<_ACEOF |
| 7571 | /* confdefs.h. */ |
| 7572 | _ACEOF |
| 7573 | cat confdefs.h >>conftest.$ac_ext |
| 7574 | cat >>conftest.$ac_ext <<_ACEOF |
| 7575 | /* end confdefs.h. */ |
| 7576 | #include <sys/types.h> |
| 7577 | #include <sys/stat.h> |
| 7578 | |
| 7579 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 7580 | # if S_ISBLK (S_IFDIR) |
| 7581 | You lose. |
| 7582 | # endif |
| 7583 | #endif |
| 7584 | |
| 7585 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 7586 | # if S_ISBLK (S_IFCHR) |
| 7587 | You lose. |
| 7588 | # endif |
| 7589 | #endif |
| 7590 | |
| 7591 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 7592 | # if S_ISLNK (S_IFREG) |
| 7593 | You lose. |
| 7594 | # endif |
| 7595 | #endif |
| 7596 | |
| 7597 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 7598 | # if S_ISSOCK (S_IFREG) |
| 7599 | You lose. |
| 7600 | # endif |
| 7601 | #endif |
| 7602 | |
| 7603 | _ACEOF |
| 7604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7605 | $EGREP "You lose" >/dev/null 2>&1; then |
| 7606 | ac_cv_header_stat_broken=yes |
| 7607 | else |
| 7608 | ac_cv_header_stat_broken=no |
| 7609 | fi |
| 7610 | rm -f conftest* |
| 7611 | |
| 7612 | fi |
| 7613 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 7614 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
| 7615 | if test $ac_cv_header_stat_broken = yes; then |
| 7616 | |
| 7617 | cat >>confdefs.h <<\_ACEOF |
| 7618 | #define STAT_MACROS_BROKEN 1 |
| 7619 | _ACEOF |
| 7620 | |
| 7621 | fi |
| 7622 | |
| 7623 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 7624 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 7625 | if test "${ac_cv_header_stdc+set}" = set; then |
| 7626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7627 | else |
| 7628 | cat >conftest.$ac_ext <<_ACEOF |
| 7629 | /* confdefs.h. */ |
| 7630 | _ACEOF |
| 7631 | cat confdefs.h >>conftest.$ac_ext |
| 7632 | cat >>conftest.$ac_ext <<_ACEOF |
| 7633 | /* end confdefs.h. */ |
| 7634 | #include <stdlib.h> |
| 7635 | #include <stdarg.h> |
| 7636 | #include <string.h> |
| 7637 | #include <float.h> |
| 7638 | |
| 7639 | int |
| 7640 | main () |
| 7641 | { |
| 7642 | |
| 7643 | ; |
| 7644 | return 0; |
| 7645 | } |
| 7646 | _ACEOF |
| 7647 | rm -f conftest.$ac_objext |
| 7648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7649 | (eval $ac_compile) 2>conftest.er1 |
| 7650 | ac_status=$? |
| 7651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7652 | rm -f conftest.er1 |
| 7653 | cat conftest.err >&5 |
| 7654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7655 | (exit $ac_status); } && |
| 7656 | { ac_try='test -z "$ac_c_werror_flag" |
| 7657 | || test ! -s conftest.err' |
| 7658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7659 | (eval $ac_try) 2>&5 |
| 7660 | ac_status=$? |
| 7661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7662 | (exit $ac_status); }; } && |
| 7663 | { ac_try='test -s conftest.$ac_objext' |
| 7664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7665 | (eval $ac_try) 2>&5 |
| 7666 | ac_status=$? |
| 7667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7668 | (exit $ac_status); }; }; then |
| 7669 | ac_cv_header_stdc=yes |
| 7670 | else |
| 7671 | echo "$as_me: failed program was:" >&5 |
| 7672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7673 | |
| 7674 | ac_cv_header_stdc=no |
| 7675 | fi |
| 7676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7677 | |
| 7678 | if test $ac_cv_header_stdc = yes; then |
| 7679 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7680 | cat >conftest.$ac_ext <<_ACEOF |
| 7681 | /* confdefs.h. */ |
| 7682 | _ACEOF |
| 7683 | cat confdefs.h >>conftest.$ac_ext |
| 7684 | cat >>conftest.$ac_ext <<_ACEOF |
| 7685 | /* end confdefs.h. */ |
| 7686 | #include <string.h> |
| 7687 | |
| 7688 | _ACEOF |
| 7689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7690 | $EGREP "memchr" >/dev/null 2>&1; then |
| 7691 | : |
| 7692 | else |
| 7693 | ac_cv_header_stdc=no |
| 7694 | fi |
| 7695 | rm -f conftest* |
| 7696 | |
| 7697 | fi |
| 7698 | |
| 7699 | if test $ac_cv_header_stdc = yes; then |
| 7700 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7701 | cat >conftest.$ac_ext <<_ACEOF |
| 7702 | /* confdefs.h. */ |
| 7703 | _ACEOF |
| 7704 | cat confdefs.h >>conftest.$ac_ext |
| 7705 | cat >>conftest.$ac_ext <<_ACEOF |
| 7706 | /* end confdefs.h. */ |
| 7707 | #include <stdlib.h> |
| 7708 | |
| 7709 | _ACEOF |
| 7710 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7711 | $EGREP "free" >/dev/null 2>&1; then |
| 7712 | : |
| 7713 | else |
| 7714 | ac_cv_header_stdc=no |
| 7715 | fi |
| 7716 | rm -f conftest* |
| 7717 | |
| 7718 | fi |
| 7719 | |
| 7720 | if test $ac_cv_header_stdc = yes; then |
| 7721 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7722 | if test "$cross_compiling" = yes; then |
| 7723 | : |
| 7724 | else |
| 7725 | cat >conftest.$ac_ext <<_ACEOF |
| 7726 | /* confdefs.h. */ |
| 7727 | _ACEOF |
| 7728 | cat confdefs.h >>conftest.$ac_ext |
| 7729 | cat >>conftest.$ac_ext <<_ACEOF |
| 7730 | /* end confdefs.h. */ |
| 7731 | #include <ctype.h> |
| 7732 | #if ((' ' & 0x0FF) == 0x020) |
| 7733 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7734 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7735 | #else |
| 7736 | # define ISLOWER(c) \ |
| 7737 | (('a' <= (c) && (c) <= 'i') \ |
| 7738 | || ('j' <= (c) && (c) <= 'r') \ |
| 7739 | || ('s' <= (c) && (c) <= 'z')) |
| 7740 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7741 | #endif |
| 7742 | |
| 7743 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7744 | int |
| 7745 | main () |
| 7746 | { |
| 7747 | int i; |
| 7748 | for (i = 0; i < 256; i++) |
| 7749 | if (XOR (islower (i), ISLOWER (i)) |
| 7750 | || toupper (i) != TOUPPER (i)) |
| 7751 | exit(2); |
| 7752 | exit (0); |
| 7753 | } |
| 7754 | _ACEOF |
| 7755 | rm -f conftest$ac_exeext |
| 7756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7757 | (eval $ac_link) 2>&5 |
| 7758 | ac_status=$? |
| 7759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7760 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7762 | (eval $ac_try) 2>&5 |
| 7763 | ac_status=$? |
| 7764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7765 | (exit $ac_status); }; }; then |
| 7766 | : |
| 7767 | else |
| 7768 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7769 | echo "$as_me: failed program was:" >&5 |
| 7770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7771 | |
| 7772 | ( exit $ac_status ) |
| 7773 | ac_cv_header_stdc=no |
| 7774 | fi |
| 7775 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7776 | fi |
| 7777 | fi |
| 7778 | fi |
| 7779 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 7780 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 7781 | if test $ac_cv_header_stdc = yes; then |
| 7782 | |
| 7783 | cat >>confdefs.h <<\_ACEOF |
| 7784 | #define STDC_HEADERS 1 |
| 7785 | _ACEOF |
| 7786 | |
| 7787 | fi |
| 7788 | |
| 7789 | |
| 7790 | for ac_header in nlist.h |
| 7791 | do |
| 7792 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7794 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7795 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7798 | fi |
| 7799 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7800 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7801 | else |
| 7802 | # Is the header compilable? |
| 7803 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7804 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7805 | cat >conftest.$ac_ext <<_ACEOF |
| 7806 | /* confdefs.h. */ |
| 7807 | _ACEOF |
| 7808 | cat confdefs.h >>conftest.$ac_ext |
| 7809 | cat >>conftest.$ac_ext <<_ACEOF |
| 7810 | /* end confdefs.h. */ |
| 7811 | $ac_includes_default |
| 7812 | #include <$ac_header> |
| 7813 | _ACEOF |
| 7814 | rm -f conftest.$ac_objext |
| 7815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7816 | (eval $ac_compile) 2>conftest.er1 |
| 7817 | ac_status=$? |
| 7818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7819 | rm -f conftest.er1 |
| 7820 | cat conftest.err >&5 |
| 7821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7822 | (exit $ac_status); } && |
| 7823 | { ac_try='test -z "$ac_c_werror_flag" |
| 7824 | || test ! -s conftest.err' |
| 7825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7826 | (eval $ac_try) 2>&5 |
| 7827 | ac_status=$? |
| 7828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7829 | (exit $ac_status); }; } && |
| 7830 | { ac_try='test -s conftest.$ac_objext' |
| 7831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7832 | (eval $ac_try) 2>&5 |
| 7833 | ac_status=$? |
| 7834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7835 | (exit $ac_status); }; }; then |
| 7836 | ac_header_compiler=yes |
| 7837 | else |
| 7838 | echo "$as_me: failed program was:" >&5 |
| 7839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7840 | |
| 7841 | ac_header_compiler=no |
| 7842 | fi |
| 7843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7844 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7845 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7846 | |
| 7847 | # Is the header present? |
| 7848 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7849 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7850 | cat >conftest.$ac_ext <<_ACEOF |
| 7851 | /* confdefs.h. */ |
| 7852 | _ACEOF |
| 7853 | cat confdefs.h >>conftest.$ac_ext |
| 7854 | cat >>conftest.$ac_ext <<_ACEOF |
| 7855 | /* end confdefs.h. */ |
| 7856 | #include <$ac_header> |
| 7857 | _ACEOF |
| 7858 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7859 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7860 | ac_status=$? |
| 7861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7862 | rm -f conftest.er1 |
| 7863 | cat conftest.err >&5 |
| 7864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7865 | (exit $ac_status); } >/dev/null; then |
| 7866 | if test -s conftest.err; then |
| 7867 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7868 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7869 | else |
| 7870 | ac_cpp_err= |
| 7871 | fi |
| 7872 | else |
| 7873 | ac_cpp_err=yes |
| 7874 | fi |
| 7875 | if test -z "$ac_cpp_err"; then |
| 7876 | ac_header_preproc=yes |
| 7877 | else |
| 7878 | echo "$as_me: failed program was:" >&5 |
| 7879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7880 | |
| 7881 | ac_header_preproc=no |
| 7882 | fi |
| 7883 | rm -f conftest.err conftest.$ac_ext |
| 7884 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7885 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7886 | |
| 7887 | # So? What about this header? |
| 7888 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7889 | yes:no: ) |
| 7890 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7891 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7892 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7893 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7894 | ac_header_preproc=yes |
| 7895 | ;; |
| 7896 | no:yes:* ) |
| 7897 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7898 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7899 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7900 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7901 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7902 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7903 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7904 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7906 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7907 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7908 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7909 | ( |
| 7910 | cat <<\_ASBOX |
| 7911 | ## ------------------------------------------ ## |
| 7912 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 7913 | ## ------------------------------------------ ## |
| 7914 | _ASBOX |
| 7915 | ) | |
| 7916 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7917 | ;; |
| 7918 | esac |
| 7919 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7923 | else |
| 7924 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7925 | fi |
| 7926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7927 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7928 | |
| 7929 | fi |
| 7930 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7931 | cat >>confdefs.h <<_ACEOF |
| 7932 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7933 | _ACEOF |
| 7934 | |
| 7935 | fi |
| 7936 | |
| 7937 | done |
| 7938 | |
| 7939 | |
| 7940 | for ac_header in link.h |
| 7941 | do |
| 7942 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7943 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7944 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7947 | else |
| 7948 | cat >conftest.$ac_ext <<_ACEOF |
| 7949 | /* confdefs.h. */ |
| 7950 | _ACEOF |
| 7951 | cat confdefs.h >>conftest.$ac_ext |
| 7952 | cat >>conftest.$ac_ext <<_ACEOF |
| 7953 | /* end confdefs.h. */ |
| 7954 | #if HAVE_SYS_TYPES_H |
| 7955 | # include <sys/types.h> |
| 7956 | #endif |
| 7957 | #if HAVE_NLIST_H |
| 7958 | # include <nlist.h> |
| 7959 | #endif |
| 7960 | |
| 7961 | |
| 7962 | #include <$ac_header> |
| 7963 | _ACEOF |
| 7964 | rm -f conftest.$ac_objext |
| 7965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7966 | (eval $ac_compile) 2>conftest.er1 |
| 7967 | ac_status=$? |
| 7968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7969 | rm -f conftest.er1 |
| 7970 | cat conftest.err >&5 |
| 7971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7972 | (exit $ac_status); } && |
| 7973 | { ac_try='test -z "$ac_c_werror_flag" |
| 7974 | || test ! -s conftest.err' |
| 7975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7976 | (eval $ac_try) 2>&5 |
| 7977 | ac_status=$? |
| 7978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7979 | (exit $ac_status); }; } && |
| 7980 | { ac_try='test -s conftest.$ac_objext' |
| 7981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7982 | (eval $ac_try) 2>&5 |
| 7983 | ac_status=$? |
| 7984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7985 | (exit $ac_status); }; }; then |
| 7986 | eval "$as_ac_Header=yes" |
| 7987 | else |
| 7988 | echo "$as_me: failed program was:" >&5 |
| 7989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7990 | |
| 7991 | eval "$as_ac_Header=no" |
| 7992 | fi |
| 7993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7994 | fi |
| 7995 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7996 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7997 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7998 | cat >>confdefs.h <<_ACEOF |
| 7999 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8000 | _ACEOF |
| 8001 | |
| 8002 | fi |
| 8003 | |
| 8004 | done |
| 8005 | |
| 8006 | |
| 8007 | for ac_header in machine/reg.h |
| 8008 | do |
| 8009 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8010 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8011 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8012 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8013 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8015 | fi |
| 8016 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8017 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8018 | else |
| 8019 | # Is the header compilable? |
| 8020 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8021 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8022 | cat >conftest.$ac_ext <<_ACEOF |
| 8023 | /* confdefs.h. */ |
| 8024 | _ACEOF |
| 8025 | cat confdefs.h >>conftest.$ac_ext |
| 8026 | cat >>conftest.$ac_ext <<_ACEOF |
| 8027 | /* end confdefs.h. */ |
| 8028 | $ac_includes_default |
| 8029 | #include <$ac_header> |
| 8030 | _ACEOF |
| 8031 | rm -f conftest.$ac_objext |
| 8032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8033 | (eval $ac_compile) 2>conftest.er1 |
| 8034 | ac_status=$? |
| 8035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8036 | rm -f conftest.er1 |
| 8037 | cat conftest.err >&5 |
| 8038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8039 | (exit $ac_status); } && |
| 8040 | { ac_try='test -z "$ac_c_werror_flag" |
| 8041 | || test ! -s conftest.err' |
| 8042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8043 | (eval $ac_try) 2>&5 |
| 8044 | ac_status=$? |
| 8045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8046 | (exit $ac_status); }; } && |
| 8047 | { ac_try='test -s conftest.$ac_objext' |
| 8048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8049 | (eval $ac_try) 2>&5 |
| 8050 | ac_status=$? |
| 8051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8052 | (exit $ac_status); }; }; then |
| 8053 | ac_header_compiler=yes |
| 8054 | else |
| 8055 | echo "$as_me: failed program was:" >&5 |
| 8056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8057 | |
| 8058 | ac_header_compiler=no |
| 8059 | fi |
| 8060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8061 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8062 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8063 | |
| 8064 | # Is the header present? |
| 8065 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8066 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8067 | cat >conftest.$ac_ext <<_ACEOF |
| 8068 | /* confdefs.h. */ |
| 8069 | _ACEOF |
| 8070 | cat confdefs.h >>conftest.$ac_ext |
| 8071 | cat >>conftest.$ac_ext <<_ACEOF |
| 8072 | /* end confdefs.h. */ |
| 8073 | #include <$ac_header> |
| 8074 | _ACEOF |
| 8075 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8076 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8077 | ac_status=$? |
| 8078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8079 | rm -f conftest.er1 |
| 8080 | cat conftest.err >&5 |
| 8081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8082 | (exit $ac_status); } >/dev/null; then |
| 8083 | if test -s conftest.err; then |
| 8084 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8085 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8086 | else |
| 8087 | ac_cpp_err= |
| 8088 | fi |
| 8089 | else |
| 8090 | ac_cpp_err=yes |
| 8091 | fi |
| 8092 | if test -z "$ac_cpp_err"; then |
| 8093 | ac_header_preproc=yes |
| 8094 | else |
| 8095 | echo "$as_me: failed program was:" >&5 |
| 8096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8097 | |
| 8098 | ac_header_preproc=no |
| 8099 | fi |
| 8100 | rm -f conftest.err conftest.$ac_ext |
| 8101 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8102 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8103 | |
| 8104 | # So? What about this header? |
| 8105 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8106 | yes:no: ) |
| 8107 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8108 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8109 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8110 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8111 | ac_header_preproc=yes |
| 8112 | ;; |
| 8113 | no:yes:* ) |
| 8114 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8115 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8116 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8117 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8118 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8119 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8120 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8121 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8122 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8123 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8124 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8125 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8126 | ( |
| 8127 | cat <<\_ASBOX |
| 8128 | ## ------------------------------------------ ## |
| 8129 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8130 | ## ------------------------------------------ ## |
| 8131 | _ASBOX |
| 8132 | ) | |
| 8133 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8134 | ;; |
| 8135 | esac |
| 8136 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8138 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8140 | else |
| 8141 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8142 | fi |
| 8143 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8144 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8145 | |
| 8146 | fi |
| 8147 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8148 | cat >>confdefs.h <<_ACEOF |
| 8149 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8150 | _ACEOF |
| 8151 | |
| 8152 | fi |
| 8153 | |
| 8154 | done |
| 8155 | |
| 8156 | |
| 8157 | |
| 8158 | for ac_header in poll.h sys/poll.h |
| 8159 | do |
| 8160 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8161 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8162 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8163 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8164 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8166 | fi |
| 8167 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8168 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8169 | else |
| 8170 | # Is the header compilable? |
| 8171 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8172 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8173 | cat >conftest.$ac_ext <<_ACEOF |
| 8174 | /* confdefs.h. */ |
| 8175 | _ACEOF |
| 8176 | cat confdefs.h >>conftest.$ac_ext |
| 8177 | cat >>conftest.$ac_ext <<_ACEOF |
| 8178 | /* end confdefs.h. */ |
| 8179 | $ac_includes_default |
| 8180 | #include <$ac_header> |
| 8181 | _ACEOF |
| 8182 | rm -f conftest.$ac_objext |
| 8183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8184 | (eval $ac_compile) 2>conftest.er1 |
| 8185 | ac_status=$? |
| 8186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8187 | rm -f conftest.er1 |
| 8188 | cat conftest.err >&5 |
| 8189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8190 | (exit $ac_status); } && |
| 8191 | { ac_try='test -z "$ac_c_werror_flag" |
| 8192 | || test ! -s conftest.err' |
| 8193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8194 | (eval $ac_try) 2>&5 |
| 8195 | ac_status=$? |
| 8196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8197 | (exit $ac_status); }; } && |
| 8198 | { ac_try='test -s conftest.$ac_objext' |
| 8199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8200 | (eval $ac_try) 2>&5 |
| 8201 | ac_status=$? |
| 8202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8203 | (exit $ac_status); }; }; then |
| 8204 | ac_header_compiler=yes |
| 8205 | else |
| 8206 | echo "$as_me: failed program was:" >&5 |
| 8207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8208 | |
| 8209 | ac_header_compiler=no |
| 8210 | fi |
| 8211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8212 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8213 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8214 | |
| 8215 | # Is the header present? |
| 8216 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8217 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8218 | cat >conftest.$ac_ext <<_ACEOF |
| 8219 | /* confdefs.h. */ |
| 8220 | _ACEOF |
| 8221 | cat confdefs.h >>conftest.$ac_ext |
| 8222 | cat >>conftest.$ac_ext <<_ACEOF |
| 8223 | /* end confdefs.h. */ |
| 8224 | #include <$ac_header> |
| 8225 | _ACEOF |
| 8226 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8227 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8228 | ac_status=$? |
| 8229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8230 | rm -f conftest.er1 |
| 8231 | cat conftest.err >&5 |
| 8232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8233 | (exit $ac_status); } >/dev/null; then |
| 8234 | if test -s conftest.err; then |
| 8235 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8236 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8237 | else |
| 8238 | ac_cpp_err= |
| 8239 | fi |
| 8240 | else |
| 8241 | ac_cpp_err=yes |
| 8242 | fi |
| 8243 | if test -z "$ac_cpp_err"; then |
| 8244 | ac_header_preproc=yes |
| 8245 | else |
| 8246 | echo "$as_me: failed program was:" >&5 |
| 8247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8248 | |
| 8249 | ac_header_preproc=no |
| 8250 | fi |
| 8251 | rm -f conftest.err conftest.$ac_ext |
| 8252 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8253 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8254 | |
| 8255 | # So? What about this header? |
| 8256 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8257 | yes:no: ) |
| 8258 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8259 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8260 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8261 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8262 | ac_header_preproc=yes |
| 8263 | ;; |
| 8264 | no:yes:* ) |
| 8265 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8266 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8267 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8268 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8269 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8270 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8271 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8272 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8273 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8274 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8275 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8276 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8277 | ( |
| 8278 | cat <<\_ASBOX |
| 8279 | ## ------------------------------------------ ## |
| 8280 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8281 | ## ------------------------------------------ ## |
| 8282 | _ASBOX |
| 8283 | ) | |
| 8284 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8285 | ;; |
| 8286 | esac |
| 8287 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8288 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8289 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8291 | else |
| 8292 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8293 | fi |
| 8294 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8295 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8296 | |
| 8297 | fi |
| 8298 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8299 | cat >>confdefs.h <<_ACEOF |
| 8300 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8301 | _ACEOF |
| 8302 | |
| 8303 | fi |
| 8304 | |
| 8305 | done |
| 8306 | |
| 8307 | |
| 8308 | |
| 8309 | |
| 8310 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h |
| 8311 | do |
| 8312 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8313 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8314 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8315 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8316 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8318 | fi |
| 8319 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8320 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8321 | else |
| 8322 | # Is the header compilable? |
| 8323 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8324 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8325 | cat >conftest.$ac_ext <<_ACEOF |
| 8326 | /* confdefs.h. */ |
| 8327 | _ACEOF |
| 8328 | cat confdefs.h >>conftest.$ac_ext |
| 8329 | cat >>conftest.$ac_ext <<_ACEOF |
| 8330 | /* end confdefs.h. */ |
| 8331 | $ac_includes_default |
| 8332 | #include <$ac_header> |
| 8333 | _ACEOF |
| 8334 | rm -f conftest.$ac_objext |
| 8335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8336 | (eval $ac_compile) 2>conftest.er1 |
| 8337 | ac_status=$? |
| 8338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8339 | rm -f conftest.er1 |
| 8340 | cat conftest.err >&5 |
| 8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8342 | (exit $ac_status); } && |
| 8343 | { ac_try='test -z "$ac_c_werror_flag" |
| 8344 | || test ! -s conftest.err' |
| 8345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8346 | (eval $ac_try) 2>&5 |
| 8347 | ac_status=$? |
| 8348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8349 | (exit $ac_status); }; } && |
| 8350 | { ac_try='test -s conftest.$ac_objext' |
| 8351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8352 | (eval $ac_try) 2>&5 |
| 8353 | ac_status=$? |
| 8354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8355 | (exit $ac_status); }; }; then |
| 8356 | ac_header_compiler=yes |
| 8357 | else |
| 8358 | echo "$as_me: failed program was:" >&5 |
| 8359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8360 | |
| 8361 | ac_header_compiler=no |
| 8362 | fi |
| 8363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8364 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8365 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8366 | |
| 8367 | # Is the header present? |
| 8368 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8369 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8370 | cat >conftest.$ac_ext <<_ACEOF |
| 8371 | /* confdefs.h. */ |
| 8372 | _ACEOF |
| 8373 | cat confdefs.h >>conftest.$ac_ext |
| 8374 | cat >>conftest.$ac_ext <<_ACEOF |
| 8375 | /* end confdefs.h. */ |
| 8376 | #include <$ac_header> |
| 8377 | _ACEOF |
| 8378 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8379 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8380 | ac_status=$? |
| 8381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8382 | rm -f conftest.er1 |
| 8383 | cat conftest.err >&5 |
| 8384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8385 | (exit $ac_status); } >/dev/null; then |
| 8386 | if test -s conftest.err; then |
| 8387 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8388 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8389 | else |
| 8390 | ac_cpp_err= |
| 8391 | fi |
| 8392 | else |
| 8393 | ac_cpp_err=yes |
| 8394 | fi |
| 8395 | if test -z "$ac_cpp_err"; then |
| 8396 | ac_header_preproc=yes |
| 8397 | else |
| 8398 | echo "$as_me: failed program was:" >&5 |
| 8399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8400 | |
| 8401 | ac_header_preproc=no |
| 8402 | fi |
| 8403 | rm -f conftest.err conftest.$ac_ext |
| 8404 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8405 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8406 | |
| 8407 | # So? What about this header? |
| 8408 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8409 | yes:no: ) |
| 8410 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8411 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8412 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8413 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8414 | ac_header_preproc=yes |
| 8415 | ;; |
| 8416 | no:yes:* ) |
| 8417 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8418 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8419 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8420 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8421 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8422 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8423 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8424 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8425 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8426 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8427 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8428 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8429 | ( |
| 8430 | cat <<\_ASBOX |
| 8431 | ## ------------------------------------------ ## |
| 8432 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8433 | ## ------------------------------------------ ## |
| 8434 | _ASBOX |
| 8435 | ) | |
| 8436 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8437 | ;; |
| 8438 | esac |
| 8439 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8440 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8441 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8443 | else |
| 8444 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8445 | fi |
| 8446 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8447 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8448 | |
| 8449 | fi |
| 8450 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8451 | cat >>confdefs.h <<_ACEOF |
| 8452 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8453 | _ACEOF |
| 8454 | |
| 8455 | fi |
| 8456 | |
| 8457 | done |
| 8458 | |
| 8459 | |
| 8460 | for ac_header in signal.h |
| 8461 | do |
| 8462 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8463 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8464 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8465 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8466 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8468 | fi |
| 8469 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8470 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8471 | else |
| 8472 | # Is the header compilable? |
| 8473 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8474 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8475 | cat >conftest.$ac_ext <<_ACEOF |
| 8476 | /* confdefs.h. */ |
| 8477 | _ACEOF |
| 8478 | cat confdefs.h >>conftest.$ac_ext |
| 8479 | cat >>conftest.$ac_ext <<_ACEOF |
| 8480 | /* end confdefs.h. */ |
| 8481 | $ac_includes_default |
| 8482 | #include <$ac_header> |
| 8483 | _ACEOF |
| 8484 | rm -f conftest.$ac_objext |
| 8485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8486 | (eval $ac_compile) 2>conftest.er1 |
| 8487 | ac_status=$? |
| 8488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8489 | rm -f conftest.er1 |
| 8490 | cat conftest.err >&5 |
| 8491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8492 | (exit $ac_status); } && |
| 8493 | { ac_try='test -z "$ac_c_werror_flag" |
| 8494 | || test ! -s conftest.err' |
| 8495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8496 | (eval $ac_try) 2>&5 |
| 8497 | ac_status=$? |
| 8498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8499 | (exit $ac_status); }; } && |
| 8500 | { ac_try='test -s conftest.$ac_objext' |
| 8501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8502 | (eval $ac_try) 2>&5 |
| 8503 | ac_status=$? |
| 8504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8505 | (exit $ac_status); }; }; then |
| 8506 | ac_header_compiler=yes |
| 8507 | else |
| 8508 | echo "$as_me: failed program was:" >&5 |
| 8509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8510 | |
| 8511 | ac_header_compiler=no |
| 8512 | fi |
| 8513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8514 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8515 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8516 | |
| 8517 | # Is the header present? |
| 8518 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8519 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8520 | cat >conftest.$ac_ext <<_ACEOF |
| 8521 | /* confdefs.h. */ |
| 8522 | _ACEOF |
| 8523 | cat confdefs.h >>conftest.$ac_ext |
| 8524 | cat >>conftest.$ac_ext <<_ACEOF |
| 8525 | /* end confdefs.h. */ |
| 8526 | #include <$ac_header> |
| 8527 | _ACEOF |
| 8528 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8529 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8530 | ac_status=$? |
| 8531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8532 | rm -f conftest.er1 |
| 8533 | cat conftest.err >&5 |
| 8534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8535 | (exit $ac_status); } >/dev/null; then |
| 8536 | if test -s conftest.err; then |
| 8537 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8538 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8539 | else |
| 8540 | ac_cpp_err= |
| 8541 | fi |
| 8542 | else |
| 8543 | ac_cpp_err=yes |
| 8544 | fi |
| 8545 | if test -z "$ac_cpp_err"; then |
| 8546 | ac_header_preproc=yes |
| 8547 | else |
| 8548 | echo "$as_me: failed program was:" >&5 |
| 8549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8550 | |
| 8551 | ac_header_preproc=no |
| 8552 | fi |
| 8553 | rm -f conftest.err conftest.$ac_ext |
| 8554 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8555 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8556 | |
| 8557 | # So? What about this header? |
| 8558 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8559 | yes:no: ) |
| 8560 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8561 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8562 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8563 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8564 | ac_header_preproc=yes |
| 8565 | ;; |
| 8566 | no:yes:* ) |
| 8567 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8568 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8569 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8570 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8571 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8572 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8573 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8574 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8575 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8576 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8577 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8578 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8579 | ( |
| 8580 | cat <<\_ASBOX |
| 8581 | ## ------------------------------------------ ## |
| 8582 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8583 | ## ------------------------------------------ ## |
| 8584 | _ASBOX |
| 8585 | ) | |
| 8586 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8587 | ;; |
| 8588 | esac |
| 8589 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8590 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8591 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8593 | else |
| 8594 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8595 | fi |
| 8596 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8597 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8598 | |
| 8599 | fi |
| 8600 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8601 | cat >>confdefs.h <<_ACEOF |
| 8602 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8603 | _ACEOF |
| 8604 | |
| 8605 | fi |
| 8606 | |
| 8607 | done |
| 8608 | |
| 8609 | |
| 8610 | for ac_header in stddef.h |
| 8611 | do |
| 8612 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8613 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8614 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8618 | fi |
| 8619 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8620 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8621 | else |
| 8622 | # Is the header compilable? |
| 8623 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8624 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8625 | cat >conftest.$ac_ext <<_ACEOF |
| 8626 | /* confdefs.h. */ |
| 8627 | _ACEOF |
| 8628 | cat confdefs.h >>conftest.$ac_ext |
| 8629 | cat >>conftest.$ac_ext <<_ACEOF |
| 8630 | /* end confdefs.h. */ |
| 8631 | $ac_includes_default |
| 8632 | #include <$ac_header> |
| 8633 | _ACEOF |
| 8634 | rm -f conftest.$ac_objext |
| 8635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8636 | (eval $ac_compile) 2>conftest.er1 |
| 8637 | ac_status=$? |
| 8638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8639 | rm -f conftest.er1 |
| 8640 | cat conftest.err >&5 |
| 8641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8642 | (exit $ac_status); } && |
| 8643 | { ac_try='test -z "$ac_c_werror_flag" |
| 8644 | || test ! -s conftest.err' |
| 8645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8646 | (eval $ac_try) 2>&5 |
| 8647 | ac_status=$? |
| 8648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8649 | (exit $ac_status); }; } && |
| 8650 | { ac_try='test -s conftest.$ac_objext' |
| 8651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8652 | (eval $ac_try) 2>&5 |
| 8653 | ac_status=$? |
| 8654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8655 | (exit $ac_status); }; }; then |
| 8656 | ac_header_compiler=yes |
| 8657 | else |
| 8658 | echo "$as_me: failed program was:" >&5 |
| 8659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8660 | |
| 8661 | ac_header_compiler=no |
| 8662 | fi |
| 8663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8664 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8665 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8666 | |
| 8667 | # Is the header present? |
| 8668 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8669 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8670 | cat >conftest.$ac_ext <<_ACEOF |
| 8671 | /* confdefs.h. */ |
| 8672 | _ACEOF |
| 8673 | cat confdefs.h >>conftest.$ac_ext |
| 8674 | cat >>conftest.$ac_ext <<_ACEOF |
| 8675 | /* end confdefs.h. */ |
| 8676 | #include <$ac_header> |
| 8677 | _ACEOF |
| 8678 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8679 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8680 | ac_status=$? |
| 8681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8682 | rm -f conftest.er1 |
| 8683 | cat conftest.err >&5 |
| 8684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8685 | (exit $ac_status); } >/dev/null; then |
| 8686 | if test -s conftest.err; then |
| 8687 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8688 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8689 | else |
| 8690 | ac_cpp_err= |
| 8691 | fi |
| 8692 | else |
| 8693 | ac_cpp_err=yes |
| 8694 | fi |
| 8695 | if test -z "$ac_cpp_err"; then |
| 8696 | ac_header_preproc=yes |
| 8697 | else |
| 8698 | echo "$as_me: failed program was:" >&5 |
| 8699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8700 | |
| 8701 | ac_header_preproc=no |
| 8702 | fi |
| 8703 | rm -f conftest.err conftest.$ac_ext |
| 8704 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8705 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8706 | |
| 8707 | # So? What about this header? |
| 8708 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8709 | yes:no: ) |
| 8710 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8711 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8712 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8713 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8714 | ac_header_preproc=yes |
| 8715 | ;; |
| 8716 | no:yes:* ) |
| 8717 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8718 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8719 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8720 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8721 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8722 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8723 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8724 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8725 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8726 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8727 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8728 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8729 | ( |
| 8730 | cat <<\_ASBOX |
| 8731 | ## ------------------------------------------ ## |
| 8732 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8733 | ## ------------------------------------------ ## |
| 8734 | _ASBOX |
| 8735 | ) | |
| 8736 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8737 | ;; |
| 8738 | esac |
| 8739 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8740 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8741 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8743 | else |
| 8744 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8745 | fi |
| 8746 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8747 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8748 | |
| 8749 | fi |
| 8750 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8751 | cat >>confdefs.h <<_ACEOF |
| 8752 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8753 | _ACEOF |
| 8754 | |
| 8755 | fi |
| 8756 | |
| 8757 | done |
| 8758 | |
| 8759 | |
| 8760 | for ac_header in stdlib.h |
| 8761 | do |
| 8762 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8763 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8764 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8765 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8766 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8768 | fi |
| 8769 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8770 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8771 | else |
| 8772 | # Is the header compilable? |
| 8773 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8774 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8775 | cat >conftest.$ac_ext <<_ACEOF |
| 8776 | /* confdefs.h. */ |
| 8777 | _ACEOF |
| 8778 | cat confdefs.h >>conftest.$ac_ext |
| 8779 | cat >>conftest.$ac_ext <<_ACEOF |
| 8780 | /* end confdefs.h. */ |
| 8781 | $ac_includes_default |
| 8782 | #include <$ac_header> |
| 8783 | _ACEOF |
| 8784 | rm -f conftest.$ac_objext |
| 8785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8786 | (eval $ac_compile) 2>conftest.er1 |
| 8787 | ac_status=$? |
| 8788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8789 | rm -f conftest.er1 |
| 8790 | cat conftest.err >&5 |
| 8791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8792 | (exit $ac_status); } && |
| 8793 | { ac_try='test -z "$ac_c_werror_flag" |
| 8794 | || test ! -s conftest.err' |
| 8795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8796 | (eval $ac_try) 2>&5 |
| 8797 | ac_status=$? |
| 8798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8799 | (exit $ac_status); }; } && |
| 8800 | { ac_try='test -s conftest.$ac_objext' |
| 8801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8802 | (eval $ac_try) 2>&5 |
| 8803 | ac_status=$? |
| 8804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8805 | (exit $ac_status); }; }; then |
| 8806 | ac_header_compiler=yes |
| 8807 | else |
| 8808 | echo "$as_me: failed program was:" >&5 |
| 8809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8810 | |
| 8811 | ac_header_compiler=no |
| 8812 | fi |
| 8813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8814 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8815 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8816 | |
| 8817 | # Is the header present? |
| 8818 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8819 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8820 | cat >conftest.$ac_ext <<_ACEOF |
| 8821 | /* confdefs.h. */ |
| 8822 | _ACEOF |
| 8823 | cat confdefs.h >>conftest.$ac_ext |
| 8824 | cat >>conftest.$ac_ext <<_ACEOF |
| 8825 | /* end confdefs.h. */ |
| 8826 | #include <$ac_header> |
| 8827 | _ACEOF |
| 8828 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8829 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8830 | ac_status=$? |
| 8831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8832 | rm -f conftest.er1 |
| 8833 | cat conftest.err >&5 |
| 8834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8835 | (exit $ac_status); } >/dev/null; then |
| 8836 | if test -s conftest.err; then |
| 8837 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8838 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8839 | else |
| 8840 | ac_cpp_err= |
| 8841 | fi |
| 8842 | else |
| 8843 | ac_cpp_err=yes |
| 8844 | fi |
| 8845 | if test -z "$ac_cpp_err"; then |
| 8846 | ac_header_preproc=yes |
| 8847 | else |
| 8848 | echo "$as_me: failed program was:" >&5 |
| 8849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8850 | |
| 8851 | ac_header_preproc=no |
| 8852 | fi |
| 8853 | rm -f conftest.err conftest.$ac_ext |
| 8854 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8855 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8856 | |
| 8857 | # So? What about this header? |
| 8858 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8859 | yes:no: ) |
| 8860 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8861 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8862 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8863 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8864 | ac_header_preproc=yes |
| 8865 | ;; |
| 8866 | no:yes:* ) |
| 8867 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8868 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8869 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8870 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8871 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8872 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8873 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8874 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8875 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8876 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8877 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8878 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8879 | ( |
| 8880 | cat <<\_ASBOX |
| 8881 | ## ------------------------------------------ ## |
| 8882 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8883 | ## ------------------------------------------ ## |
| 8884 | _ASBOX |
| 8885 | ) | |
| 8886 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8887 | ;; |
| 8888 | esac |
| 8889 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8890 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8891 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8893 | else |
| 8894 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8895 | fi |
| 8896 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8897 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8898 | |
| 8899 | fi |
| 8900 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8901 | cat >>confdefs.h <<_ACEOF |
| 8902 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8903 | _ACEOF |
| 8904 | |
| 8905 | fi |
| 8906 | |
| 8907 | done |
| 8908 | |
| 8909 | |
| 8910 | for ac_header in stdint.h |
| 8911 | do |
| 8912 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8913 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8914 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8915 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8916 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8918 | fi |
| 8919 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8920 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8921 | else |
| 8922 | # Is the header compilable? |
| 8923 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8924 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8925 | cat >conftest.$ac_ext <<_ACEOF |
| 8926 | /* confdefs.h. */ |
| 8927 | _ACEOF |
| 8928 | cat confdefs.h >>conftest.$ac_ext |
| 8929 | cat >>conftest.$ac_ext <<_ACEOF |
| 8930 | /* end confdefs.h. */ |
| 8931 | $ac_includes_default |
| 8932 | #include <$ac_header> |
| 8933 | _ACEOF |
| 8934 | rm -f conftest.$ac_objext |
| 8935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8936 | (eval $ac_compile) 2>conftest.er1 |
| 8937 | ac_status=$? |
| 8938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8939 | rm -f conftest.er1 |
| 8940 | cat conftest.err >&5 |
| 8941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8942 | (exit $ac_status); } && |
| 8943 | { ac_try='test -z "$ac_c_werror_flag" |
| 8944 | || test ! -s conftest.err' |
| 8945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8946 | (eval $ac_try) 2>&5 |
| 8947 | ac_status=$? |
| 8948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8949 | (exit $ac_status); }; } && |
| 8950 | { ac_try='test -s conftest.$ac_objext' |
| 8951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8952 | (eval $ac_try) 2>&5 |
| 8953 | ac_status=$? |
| 8954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8955 | (exit $ac_status); }; }; then |
| 8956 | ac_header_compiler=yes |
| 8957 | else |
| 8958 | echo "$as_me: failed program was:" >&5 |
| 8959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8960 | |
| 8961 | ac_header_compiler=no |
| 8962 | fi |
| 8963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8964 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8965 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8966 | |
| 8967 | # Is the header present? |
| 8968 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8969 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8970 | cat >conftest.$ac_ext <<_ACEOF |
| 8971 | /* confdefs.h. */ |
| 8972 | _ACEOF |
| 8973 | cat confdefs.h >>conftest.$ac_ext |
| 8974 | cat >>conftest.$ac_ext <<_ACEOF |
| 8975 | /* end confdefs.h. */ |
| 8976 | #include <$ac_header> |
| 8977 | _ACEOF |
| 8978 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8979 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8980 | ac_status=$? |
| 8981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8982 | rm -f conftest.er1 |
| 8983 | cat conftest.err >&5 |
| 8984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8985 | (exit $ac_status); } >/dev/null; then |
| 8986 | if test -s conftest.err; then |
| 8987 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8988 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8989 | else |
| 8990 | ac_cpp_err= |
| 8991 | fi |
| 8992 | else |
| 8993 | ac_cpp_err=yes |
| 8994 | fi |
| 8995 | if test -z "$ac_cpp_err"; then |
| 8996 | ac_header_preproc=yes |
| 8997 | else |
| 8998 | echo "$as_me: failed program was:" >&5 |
| 8999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9000 | |
| 9001 | ac_header_preproc=no |
| 9002 | fi |
| 9003 | rm -f conftest.err conftest.$ac_ext |
| 9004 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9005 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9006 | |
| 9007 | # So? What about this header? |
| 9008 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9009 | yes:no: ) |
| 9010 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9011 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9012 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9013 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9014 | ac_header_preproc=yes |
| 9015 | ;; |
| 9016 | no:yes:* ) |
| 9017 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9018 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9019 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9020 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9021 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9022 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9023 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9024 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9025 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9026 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9027 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9028 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9029 | ( |
| 9030 | cat <<\_ASBOX |
| 9031 | ## ------------------------------------------ ## |
| 9032 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9033 | ## ------------------------------------------ ## |
| 9034 | _ASBOX |
| 9035 | ) | |
| 9036 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9037 | ;; |
| 9038 | esac |
| 9039 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9040 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9041 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9043 | else |
| 9044 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9045 | fi |
| 9046 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9047 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9048 | |
| 9049 | fi |
| 9050 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9051 | cat >>confdefs.h <<_ACEOF |
| 9052 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9053 | _ACEOF |
| 9054 | |
| 9055 | fi |
| 9056 | |
| 9057 | done |
| 9058 | |
| 9059 | |
| 9060 | |
| 9061 | |
| 9062 | for ac_header in string.h memory.h strings.h |
| 9063 | do |
| 9064 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9065 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9066 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9067 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9068 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9070 | fi |
| 9071 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9072 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9073 | else |
| 9074 | # Is the header compilable? |
| 9075 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9076 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9077 | cat >conftest.$ac_ext <<_ACEOF |
| 9078 | /* confdefs.h. */ |
| 9079 | _ACEOF |
| 9080 | cat confdefs.h >>conftest.$ac_ext |
| 9081 | cat >>conftest.$ac_ext <<_ACEOF |
| 9082 | /* end confdefs.h. */ |
| 9083 | $ac_includes_default |
| 9084 | #include <$ac_header> |
| 9085 | _ACEOF |
| 9086 | rm -f conftest.$ac_objext |
| 9087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9088 | (eval $ac_compile) 2>conftest.er1 |
| 9089 | ac_status=$? |
| 9090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9091 | rm -f conftest.er1 |
| 9092 | cat conftest.err >&5 |
| 9093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9094 | (exit $ac_status); } && |
| 9095 | { ac_try='test -z "$ac_c_werror_flag" |
| 9096 | || test ! -s conftest.err' |
| 9097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9098 | (eval $ac_try) 2>&5 |
| 9099 | ac_status=$? |
| 9100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9101 | (exit $ac_status); }; } && |
| 9102 | { ac_try='test -s conftest.$ac_objext' |
| 9103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9104 | (eval $ac_try) 2>&5 |
| 9105 | ac_status=$? |
| 9106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9107 | (exit $ac_status); }; }; then |
| 9108 | ac_header_compiler=yes |
| 9109 | else |
| 9110 | echo "$as_me: failed program was:" >&5 |
| 9111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9112 | |
| 9113 | ac_header_compiler=no |
| 9114 | fi |
| 9115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9116 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9117 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9118 | |
| 9119 | # Is the header present? |
| 9120 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9121 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9122 | cat >conftest.$ac_ext <<_ACEOF |
| 9123 | /* confdefs.h. */ |
| 9124 | _ACEOF |
| 9125 | cat confdefs.h >>conftest.$ac_ext |
| 9126 | cat >>conftest.$ac_ext <<_ACEOF |
| 9127 | /* end confdefs.h. */ |
| 9128 | #include <$ac_header> |
| 9129 | _ACEOF |
| 9130 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9131 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9132 | ac_status=$? |
| 9133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9134 | rm -f conftest.er1 |
| 9135 | cat conftest.err >&5 |
| 9136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9137 | (exit $ac_status); } >/dev/null; then |
| 9138 | if test -s conftest.err; then |
| 9139 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9140 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9141 | else |
| 9142 | ac_cpp_err= |
| 9143 | fi |
| 9144 | else |
| 9145 | ac_cpp_err=yes |
| 9146 | fi |
| 9147 | if test -z "$ac_cpp_err"; then |
| 9148 | ac_header_preproc=yes |
| 9149 | else |
| 9150 | echo "$as_me: failed program was:" >&5 |
| 9151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9152 | |
| 9153 | ac_header_preproc=no |
| 9154 | fi |
| 9155 | rm -f conftest.err conftest.$ac_ext |
| 9156 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9157 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9158 | |
| 9159 | # So? What about this header? |
| 9160 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9161 | yes:no: ) |
| 9162 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9163 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9164 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9165 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9166 | ac_header_preproc=yes |
| 9167 | ;; |
| 9168 | no:yes:* ) |
| 9169 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9170 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9171 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9172 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9173 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9174 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9175 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9176 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9177 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9178 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9179 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9180 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9181 | ( |
| 9182 | cat <<\_ASBOX |
| 9183 | ## ------------------------------------------ ## |
| 9184 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9185 | ## ------------------------------------------ ## |
| 9186 | _ASBOX |
| 9187 | ) | |
| 9188 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9189 | ;; |
| 9190 | esac |
| 9191 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9192 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9193 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9195 | else |
| 9196 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9197 | fi |
| 9198 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9199 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9200 | |
| 9201 | fi |
| 9202 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9203 | cat >>confdefs.h <<_ACEOF |
| 9204 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9205 | _ACEOF |
| 9206 | |
| 9207 | fi |
| 9208 | |
| 9209 | done |
| 9210 | |
| 9211 | |
| 9212 | for ac_header in sys/fault.h |
| 9213 | do |
| 9214 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9215 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9216 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9217 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9218 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9220 | fi |
| 9221 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9222 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9223 | else |
| 9224 | # Is the header compilable? |
| 9225 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9226 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9227 | cat >conftest.$ac_ext <<_ACEOF |
| 9228 | /* confdefs.h. */ |
| 9229 | _ACEOF |
| 9230 | cat confdefs.h >>conftest.$ac_ext |
| 9231 | cat >>conftest.$ac_ext <<_ACEOF |
| 9232 | /* end confdefs.h. */ |
| 9233 | $ac_includes_default |
| 9234 | #include <$ac_header> |
| 9235 | _ACEOF |
| 9236 | rm -f conftest.$ac_objext |
| 9237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9238 | (eval $ac_compile) 2>conftest.er1 |
| 9239 | ac_status=$? |
| 9240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9241 | rm -f conftest.er1 |
| 9242 | cat conftest.err >&5 |
| 9243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9244 | (exit $ac_status); } && |
| 9245 | { ac_try='test -z "$ac_c_werror_flag" |
| 9246 | || test ! -s conftest.err' |
| 9247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9248 | (eval $ac_try) 2>&5 |
| 9249 | ac_status=$? |
| 9250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9251 | (exit $ac_status); }; } && |
| 9252 | { ac_try='test -s conftest.$ac_objext' |
| 9253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9254 | (eval $ac_try) 2>&5 |
| 9255 | ac_status=$? |
| 9256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9257 | (exit $ac_status); }; }; then |
| 9258 | ac_header_compiler=yes |
| 9259 | else |
| 9260 | echo "$as_me: failed program was:" >&5 |
| 9261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9262 | |
| 9263 | ac_header_compiler=no |
| 9264 | fi |
| 9265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9266 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9267 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9268 | |
| 9269 | # Is the header present? |
| 9270 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9271 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9272 | cat >conftest.$ac_ext <<_ACEOF |
| 9273 | /* confdefs.h. */ |
| 9274 | _ACEOF |
| 9275 | cat confdefs.h >>conftest.$ac_ext |
| 9276 | cat >>conftest.$ac_ext <<_ACEOF |
| 9277 | /* end confdefs.h. */ |
| 9278 | #include <$ac_header> |
| 9279 | _ACEOF |
| 9280 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9281 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9282 | ac_status=$? |
| 9283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9284 | rm -f conftest.er1 |
| 9285 | cat conftest.err >&5 |
| 9286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9287 | (exit $ac_status); } >/dev/null; then |
| 9288 | if test -s conftest.err; then |
| 9289 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9290 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9291 | else |
| 9292 | ac_cpp_err= |
| 9293 | fi |
| 9294 | else |
| 9295 | ac_cpp_err=yes |
| 9296 | fi |
| 9297 | if test -z "$ac_cpp_err"; then |
| 9298 | ac_header_preproc=yes |
| 9299 | else |
| 9300 | echo "$as_me: failed program was:" >&5 |
| 9301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9302 | |
| 9303 | ac_header_preproc=no |
| 9304 | fi |
| 9305 | rm -f conftest.err conftest.$ac_ext |
| 9306 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9307 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9308 | |
| 9309 | # So? What about this header? |
| 9310 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9311 | yes:no: ) |
| 9312 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9313 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9314 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9315 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9316 | ac_header_preproc=yes |
| 9317 | ;; |
| 9318 | no:yes:* ) |
| 9319 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9320 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9321 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9322 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9323 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9324 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9325 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9326 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9327 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9328 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9329 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9330 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9331 | ( |
| 9332 | cat <<\_ASBOX |
| 9333 | ## ------------------------------------------ ## |
| 9334 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9335 | ## ------------------------------------------ ## |
| 9336 | _ASBOX |
| 9337 | ) | |
| 9338 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9339 | ;; |
| 9340 | esac |
| 9341 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9342 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9343 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9345 | else |
| 9346 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9347 | fi |
| 9348 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9349 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9350 | |
| 9351 | fi |
| 9352 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9353 | cat >>confdefs.h <<_ACEOF |
| 9354 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9355 | _ACEOF |
| 9356 | |
| 9357 | fi |
| 9358 | |
| 9359 | done |
| 9360 | |
| 9361 | |
| 9362 | for ac_header in sys/file.h |
| 9363 | do |
| 9364 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9365 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9366 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9367 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9368 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9370 | fi |
| 9371 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9372 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9373 | else |
| 9374 | # Is the header compilable? |
| 9375 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9376 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9377 | cat >conftest.$ac_ext <<_ACEOF |
| 9378 | /* confdefs.h. */ |
| 9379 | _ACEOF |
| 9380 | cat confdefs.h >>conftest.$ac_ext |
| 9381 | cat >>conftest.$ac_ext <<_ACEOF |
| 9382 | /* end confdefs.h. */ |
| 9383 | $ac_includes_default |
| 9384 | #include <$ac_header> |
| 9385 | _ACEOF |
| 9386 | rm -f conftest.$ac_objext |
| 9387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9388 | (eval $ac_compile) 2>conftest.er1 |
| 9389 | ac_status=$? |
| 9390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9391 | rm -f conftest.er1 |
| 9392 | cat conftest.err >&5 |
| 9393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9394 | (exit $ac_status); } && |
| 9395 | { ac_try='test -z "$ac_c_werror_flag" |
| 9396 | || test ! -s conftest.err' |
| 9397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9398 | (eval $ac_try) 2>&5 |
| 9399 | ac_status=$? |
| 9400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9401 | (exit $ac_status); }; } && |
| 9402 | { ac_try='test -s conftest.$ac_objext' |
| 9403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9404 | (eval $ac_try) 2>&5 |
| 9405 | ac_status=$? |
| 9406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9407 | (exit $ac_status); }; }; then |
| 9408 | ac_header_compiler=yes |
| 9409 | else |
| 9410 | echo "$as_me: failed program was:" >&5 |
| 9411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9412 | |
| 9413 | ac_header_compiler=no |
| 9414 | fi |
| 9415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9416 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9417 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9418 | |
| 9419 | # Is the header present? |
| 9420 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9421 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9422 | cat >conftest.$ac_ext <<_ACEOF |
| 9423 | /* confdefs.h. */ |
| 9424 | _ACEOF |
| 9425 | cat confdefs.h >>conftest.$ac_ext |
| 9426 | cat >>conftest.$ac_ext <<_ACEOF |
| 9427 | /* end confdefs.h. */ |
| 9428 | #include <$ac_header> |
| 9429 | _ACEOF |
| 9430 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9431 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9432 | ac_status=$? |
| 9433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9434 | rm -f conftest.er1 |
| 9435 | cat conftest.err >&5 |
| 9436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9437 | (exit $ac_status); } >/dev/null; then |
| 9438 | if test -s conftest.err; then |
| 9439 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9440 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9441 | else |
| 9442 | ac_cpp_err= |
| 9443 | fi |
| 9444 | else |
| 9445 | ac_cpp_err=yes |
| 9446 | fi |
| 9447 | if test -z "$ac_cpp_err"; then |
| 9448 | ac_header_preproc=yes |
| 9449 | else |
| 9450 | echo "$as_me: failed program was:" >&5 |
| 9451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9452 | |
| 9453 | ac_header_preproc=no |
| 9454 | fi |
| 9455 | rm -f conftest.err conftest.$ac_ext |
| 9456 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9457 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9458 | |
| 9459 | # So? What about this header? |
| 9460 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9461 | yes:no: ) |
| 9462 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9463 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9464 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9465 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9466 | ac_header_preproc=yes |
| 9467 | ;; |
| 9468 | no:yes:* ) |
| 9469 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9470 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9471 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9472 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9473 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9474 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9475 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9476 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9477 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9478 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9479 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9480 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9481 | ( |
| 9482 | cat <<\_ASBOX |
| 9483 | ## ------------------------------------------ ## |
| 9484 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9485 | ## ------------------------------------------ ## |
| 9486 | _ASBOX |
| 9487 | ) | |
| 9488 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9489 | ;; |
| 9490 | esac |
| 9491 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9492 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9493 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9495 | else |
| 9496 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9497 | fi |
| 9498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9499 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9500 | |
| 9501 | fi |
| 9502 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9503 | cat >>confdefs.h <<_ACEOF |
| 9504 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9505 | _ACEOF |
| 9506 | |
| 9507 | fi |
| 9508 | |
| 9509 | done |
| 9510 | |
| 9511 | |
| 9512 | for ac_header in sys/filio.h |
| 9513 | do |
| 9514 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9516 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9517 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9518 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9520 | fi |
| 9521 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9522 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9523 | else |
| 9524 | # Is the header compilable? |
| 9525 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9526 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9527 | cat >conftest.$ac_ext <<_ACEOF |
| 9528 | /* confdefs.h. */ |
| 9529 | _ACEOF |
| 9530 | cat confdefs.h >>conftest.$ac_ext |
| 9531 | cat >>conftest.$ac_ext <<_ACEOF |
| 9532 | /* end confdefs.h. */ |
| 9533 | $ac_includes_default |
| 9534 | #include <$ac_header> |
| 9535 | _ACEOF |
| 9536 | rm -f conftest.$ac_objext |
| 9537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9538 | (eval $ac_compile) 2>conftest.er1 |
| 9539 | ac_status=$? |
| 9540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9541 | rm -f conftest.er1 |
| 9542 | cat conftest.err >&5 |
| 9543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9544 | (exit $ac_status); } && |
| 9545 | { ac_try='test -z "$ac_c_werror_flag" |
| 9546 | || test ! -s conftest.err' |
| 9547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9548 | (eval $ac_try) 2>&5 |
| 9549 | ac_status=$? |
| 9550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9551 | (exit $ac_status); }; } && |
| 9552 | { ac_try='test -s conftest.$ac_objext' |
| 9553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9554 | (eval $ac_try) 2>&5 |
| 9555 | ac_status=$? |
| 9556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9557 | (exit $ac_status); }; }; then |
| 9558 | ac_header_compiler=yes |
| 9559 | else |
| 9560 | echo "$as_me: failed program was:" >&5 |
| 9561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9562 | |
| 9563 | ac_header_compiler=no |
| 9564 | fi |
| 9565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9566 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9567 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9568 | |
| 9569 | # Is the header present? |
| 9570 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9571 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9572 | cat >conftest.$ac_ext <<_ACEOF |
| 9573 | /* confdefs.h. */ |
| 9574 | _ACEOF |
| 9575 | cat confdefs.h >>conftest.$ac_ext |
| 9576 | cat >>conftest.$ac_ext <<_ACEOF |
| 9577 | /* end confdefs.h. */ |
| 9578 | #include <$ac_header> |
| 9579 | _ACEOF |
| 9580 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9581 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9582 | ac_status=$? |
| 9583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9584 | rm -f conftest.er1 |
| 9585 | cat conftest.err >&5 |
| 9586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9587 | (exit $ac_status); } >/dev/null; then |
| 9588 | if test -s conftest.err; then |
| 9589 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9590 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9591 | else |
| 9592 | ac_cpp_err= |
| 9593 | fi |
| 9594 | else |
| 9595 | ac_cpp_err=yes |
| 9596 | fi |
| 9597 | if test -z "$ac_cpp_err"; then |
| 9598 | ac_header_preproc=yes |
| 9599 | else |
| 9600 | echo "$as_me: failed program was:" >&5 |
| 9601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9602 | |
| 9603 | ac_header_preproc=no |
| 9604 | fi |
| 9605 | rm -f conftest.err conftest.$ac_ext |
| 9606 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9607 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9608 | |
| 9609 | # So? What about this header? |
| 9610 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9611 | yes:no: ) |
| 9612 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9613 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9614 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9615 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9616 | ac_header_preproc=yes |
| 9617 | ;; |
| 9618 | no:yes:* ) |
| 9619 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9620 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9621 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9622 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9623 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9624 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9625 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9626 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9627 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9628 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9629 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9630 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9631 | ( |
| 9632 | cat <<\_ASBOX |
| 9633 | ## ------------------------------------------ ## |
| 9634 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9635 | ## ------------------------------------------ ## |
| 9636 | _ASBOX |
| 9637 | ) | |
| 9638 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9639 | ;; |
| 9640 | esac |
| 9641 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9645 | else |
| 9646 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9647 | fi |
| 9648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9649 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9650 | |
| 9651 | fi |
| 9652 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9653 | cat >>confdefs.h <<_ACEOF |
| 9654 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9655 | _ACEOF |
| 9656 | |
| 9657 | fi |
| 9658 | |
| 9659 | done |
| 9660 | |
| 9661 | |
| 9662 | for ac_header in sys/ioctl.h |
| 9663 | do |
| 9664 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9665 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9666 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9667 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9668 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9670 | fi |
| 9671 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9672 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9673 | else |
| 9674 | # Is the header compilable? |
| 9675 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9676 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9677 | cat >conftest.$ac_ext <<_ACEOF |
| 9678 | /* confdefs.h. */ |
| 9679 | _ACEOF |
| 9680 | cat confdefs.h >>conftest.$ac_ext |
| 9681 | cat >>conftest.$ac_ext <<_ACEOF |
| 9682 | /* end confdefs.h. */ |
| 9683 | $ac_includes_default |
| 9684 | #include <$ac_header> |
| 9685 | _ACEOF |
| 9686 | rm -f conftest.$ac_objext |
| 9687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9688 | (eval $ac_compile) 2>conftest.er1 |
| 9689 | ac_status=$? |
| 9690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9691 | rm -f conftest.er1 |
| 9692 | cat conftest.err >&5 |
| 9693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9694 | (exit $ac_status); } && |
| 9695 | { ac_try='test -z "$ac_c_werror_flag" |
| 9696 | || test ! -s conftest.err' |
| 9697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9698 | (eval $ac_try) 2>&5 |
| 9699 | ac_status=$? |
| 9700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9701 | (exit $ac_status); }; } && |
| 9702 | { ac_try='test -s conftest.$ac_objext' |
| 9703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9704 | (eval $ac_try) 2>&5 |
| 9705 | ac_status=$? |
| 9706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9707 | (exit $ac_status); }; }; then |
| 9708 | ac_header_compiler=yes |
| 9709 | else |
| 9710 | echo "$as_me: failed program was:" >&5 |
| 9711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9712 | |
| 9713 | ac_header_compiler=no |
| 9714 | fi |
| 9715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9716 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9717 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9718 | |
| 9719 | # Is the header present? |
| 9720 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9721 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9722 | cat >conftest.$ac_ext <<_ACEOF |
| 9723 | /* confdefs.h. */ |
| 9724 | _ACEOF |
| 9725 | cat confdefs.h >>conftest.$ac_ext |
| 9726 | cat >>conftest.$ac_ext <<_ACEOF |
| 9727 | /* end confdefs.h. */ |
| 9728 | #include <$ac_header> |
| 9729 | _ACEOF |
| 9730 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9731 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9732 | ac_status=$? |
| 9733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9734 | rm -f conftest.er1 |
| 9735 | cat conftest.err >&5 |
| 9736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9737 | (exit $ac_status); } >/dev/null; then |
| 9738 | if test -s conftest.err; then |
| 9739 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9740 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9741 | else |
| 9742 | ac_cpp_err= |
| 9743 | fi |
| 9744 | else |
| 9745 | ac_cpp_err=yes |
| 9746 | fi |
| 9747 | if test -z "$ac_cpp_err"; then |
| 9748 | ac_header_preproc=yes |
| 9749 | else |
| 9750 | echo "$as_me: failed program was:" >&5 |
| 9751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9752 | |
| 9753 | ac_header_preproc=no |
| 9754 | fi |
| 9755 | rm -f conftest.err conftest.$ac_ext |
| 9756 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9757 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9758 | |
| 9759 | # So? What about this header? |
| 9760 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9761 | yes:no: ) |
| 9762 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9763 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9764 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9765 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9766 | ac_header_preproc=yes |
| 9767 | ;; |
| 9768 | no:yes:* ) |
| 9769 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9770 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9771 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9772 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9773 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9774 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9775 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9776 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9777 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9778 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9779 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9780 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9781 | ( |
| 9782 | cat <<\_ASBOX |
| 9783 | ## ------------------------------------------ ## |
| 9784 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9785 | ## ------------------------------------------ ## |
| 9786 | _ASBOX |
| 9787 | ) | |
| 9788 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9789 | ;; |
| 9790 | esac |
| 9791 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9795 | else |
| 9796 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9797 | fi |
| 9798 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9799 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9800 | |
| 9801 | fi |
| 9802 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9803 | cat >>confdefs.h <<_ACEOF |
| 9804 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9805 | _ACEOF |
| 9806 | |
| 9807 | fi |
| 9808 | |
| 9809 | done |
| 9810 | |
| 9811 | |
| 9812 | for ac_header in sys/param.h |
| 9813 | do |
| 9814 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9815 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9816 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9817 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9818 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9820 | fi |
| 9821 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9822 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9823 | else |
| 9824 | # Is the header compilable? |
| 9825 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9826 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9827 | cat >conftest.$ac_ext <<_ACEOF |
| 9828 | /* confdefs.h. */ |
| 9829 | _ACEOF |
| 9830 | cat confdefs.h >>conftest.$ac_ext |
| 9831 | cat >>conftest.$ac_ext <<_ACEOF |
| 9832 | /* end confdefs.h. */ |
| 9833 | $ac_includes_default |
| 9834 | #include <$ac_header> |
| 9835 | _ACEOF |
| 9836 | rm -f conftest.$ac_objext |
| 9837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9838 | (eval $ac_compile) 2>conftest.er1 |
| 9839 | ac_status=$? |
| 9840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9841 | rm -f conftest.er1 |
| 9842 | cat conftest.err >&5 |
| 9843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9844 | (exit $ac_status); } && |
| 9845 | { ac_try='test -z "$ac_c_werror_flag" |
| 9846 | || test ! -s conftest.err' |
| 9847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9848 | (eval $ac_try) 2>&5 |
| 9849 | ac_status=$? |
| 9850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9851 | (exit $ac_status); }; } && |
| 9852 | { ac_try='test -s conftest.$ac_objext' |
| 9853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9854 | (eval $ac_try) 2>&5 |
| 9855 | ac_status=$? |
| 9856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9857 | (exit $ac_status); }; }; then |
| 9858 | ac_header_compiler=yes |
| 9859 | else |
| 9860 | echo "$as_me: failed program was:" >&5 |
| 9861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9862 | |
| 9863 | ac_header_compiler=no |
| 9864 | fi |
| 9865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9866 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9867 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9868 | |
| 9869 | # Is the header present? |
| 9870 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9871 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9872 | cat >conftest.$ac_ext <<_ACEOF |
| 9873 | /* confdefs.h. */ |
| 9874 | _ACEOF |
| 9875 | cat confdefs.h >>conftest.$ac_ext |
| 9876 | cat >>conftest.$ac_ext <<_ACEOF |
| 9877 | /* end confdefs.h. */ |
| 9878 | #include <$ac_header> |
| 9879 | _ACEOF |
| 9880 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9881 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9882 | ac_status=$? |
| 9883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9884 | rm -f conftest.er1 |
| 9885 | cat conftest.err >&5 |
| 9886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9887 | (exit $ac_status); } >/dev/null; then |
| 9888 | if test -s conftest.err; then |
| 9889 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9890 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9891 | else |
| 9892 | ac_cpp_err= |
| 9893 | fi |
| 9894 | else |
| 9895 | ac_cpp_err=yes |
| 9896 | fi |
| 9897 | if test -z "$ac_cpp_err"; then |
| 9898 | ac_header_preproc=yes |
| 9899 | else |
| 9900 | echo "$as_me: failed program was:" >&5 |
| 9901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9902 | |
| 9903 | ac_header_preproc=no |
| 9904 | fi |
| 9905 | rm -f conftest.err conftest.$ac_ext |
| 9906 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9907 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9908 | |
| 9909 | # So? What about this header? |
| 9910 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9911 | yes:no: ) |
| 9912 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9913 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9914 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9915 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9916 | ac_header_preproc=yes |
| 9917 | ;; |
| 9918 | no:yes:* ) |
| 9919 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9920 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9921 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9922 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9923 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9924 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9925 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9926 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9927 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9928 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9929 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9930 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9931 | ( |
| 9932 | cat <<\_ASBOX |
| 9933 | ## ------------------------------------------ ## |
| 9934 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9935 | ## ------------------------------------------ ## |
| 9936 | _ASBOX |
| 9937 | ) | |
| 9938 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9939 | ;; |
| 9940 | esac |
| 9941 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9942 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9945 | else |
| 9946 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9947 | fi |
| 9948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9949 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9950 | |
| 9951 | fi |
| 9952 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9953 | cat >>confdefs.h <<_ACEOF |
| 9954 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9955 | _ACEOF |
| 9956 | |
| 9957 | fi |
| 9958 | |
| 9959 | done |
| 9960 | |
| 9961 | |
| 9962 | for ac_header in sys/resource.h |
| 9963 | do |
| 9964 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9965 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9966 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9967 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9970 | fi |
| 9971 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9972 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9973 | else |
| 9974 | # Is the header compilable? |
| 9975 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9976 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9977 | cat >conftest.$ac_ext <<_ACEOF |
| 9978 | /* confdefs.h. */ |
| 9979 | _ACEOF |
| 9980 | cat confdefs.h >>conftest.$ac_ext |
| 9981 | cat >>conftest.$ac_ext <<_ACEOF |
| 9982 | /* end confdefs.h. */ |
| 9983 | $ac_includes_default |
| 9984 | #include <$ac_header> |
| 9985 | _ACEOF |
| 9986 | rm -f conftest.$ac_objext |
| 9987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9988 | (eval $ac_compile) 2>conftest.er1 |
| 9989 | ac_status=$? |
| 9990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9991 | rm -f conftest.er1 |
| 9992 | cat conftest.err >&5 |
| 9993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9994 | (exit $ac_status); } && |
| 9995 | { ac_try='test -z "$ac_c_werror_flag" |
| 9996 | || test ! -s conftest.err' |
| 9997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9998 | (eval $ac_try) 2>&5 |
| 9999 | ac_status=$? |
| 10000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10001 | (exit $ac_status); }; } && |
| 10002 | { ac_try='test -s conftest.$ac_objext' |
| 10003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10004 | (eval $ac_try) 2>&5 |
| 10005 | ac_status=$? |
| 10006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10007 | (exit $ac_status); }; }; then |
| 10008 | ac_header_compiler=yes |
| 10009 | else |
| 10010 | echo "$as_me: failed program was:" >&5 |
| 10011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10012 | |
| 10013 | ac_header_compiler=no |
| 10014 | fi |
| 10015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10016 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10017 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10018 | |
| 10019 | # Is the header present? |
| 10020 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10021 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10022 | cat >conftest.$ac_ext <<_ACEOF |
| 10023 | /* confdefs.h. */ |
| 10024 | _ACEOF |
| 10025 | cat confdefs.h >>conftest.$ac_ext |
| 10026 | cat >>conftest.$ac_ext <<_ACEOF |
| 10027 | /* end confdefs.h. */ |
| 10028 | #include <$ac_header> |
| 10029 | _ACEOF |
| 10030 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10031 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10032 | ac_status=$? |
| 10033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10034 | rm -f conftest.er1 |
| 10035 | cat conftest.err >&5 |
| 10036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10037 | (exit $ac_status); } >/dev/null; then |
| 10038 | if test -s conftest.err; then |
| 10039 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10040 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10041 | else |
| 10042 | ac_cpp_err= |
| 10043 | fi |
| 10044 | else |
| 10045 | ac_cpp_err=yes |
| 10046 | fi |
| 10047 | if test -z "$ac_cpp_err"; then |
| 10048 | ac_header_preproc=yes |
| 10049 | else |
| 10050 | echo "$as_me: failed program was:" >&5 |
| 10051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10052 | |
| 10053 | ac_header_preproc=no |
| 10054 | fi |
| 10055 | rm -f conftest.err conftest.$ac_ext |
| 10056 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10057 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10058 | |
| 10059 | # So? What about this header? |
| 10060 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10061 | yes:no: ) |
| 10062 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10063 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10064 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10065 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10066 | ac_header_preproc=yes |
| 10067 | ;; |
| 10068 | no:yes:* ) |
| 10069 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10070 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10071 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10072 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10073 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10074 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10075 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10076 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10077 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10078 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10079 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10080 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10081 | ( |
| 10082 | cat <<\_ASBOX |
| 10083 | ## ------------------------------------------ ## |
| 10084 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10085 | ## ------------------------------------------ ## |
| 10086 | _ASBOX |
| 10087 | ) | |
| 10088 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10089 | ;; |
| 10090 | esac |
| 10091 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10092 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10093 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10095 | else |
| 10096 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10097 | fi |
| 10098 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10099 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10100 | |
| 10101 | fi |
| 10102 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10103 | cat >>confdefs.h <<_ACEOF |
| 10104 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10105 | _ACEOF |
| 10106 | |
| 10107 | fi |
| 10108 | |
| 10109 | done |
| 10110 | |
| 10111 | |
| 10112 | for ac_header in sys/proc.h |
| 10113 | do |
| 10114 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10115 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10116 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10117 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10119 | else |
| 10120 | cat >conftest.$ac_ext <<_ACEOF |
| 10121 | /* confdefs.h. */ |
| 10122 | _ACEOF |
| 10123 | cat confdefs.h >>conftest.$ac_ext |
| 10124 | cat >>conftest.$ac_ext <<_ACEOF |
| 10125 | /* end confdefs.h. */ |
| 10126 | #if HAVE_SYS_PARAM_H |
| 10127 | # include <sys/param.h> |
| 10128 | #endif |
| 10129 | |
| 10130 | |
| 10131 | #include <$ac_header> |
| 10132 | _ACEOF |
| 10133 | rm -f conftest.$ac_objext |
| 10134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10135 | (eval $ac_compile) 2>conftest.er1 |
| 10136 | ac_status=$? |
| 10137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10138 | rm -f conftest.er1 |
| 10139 | cat conftest.err >&5 |
| 10140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10141 | (exit $ac_status); } && |
| 10142 | { ac_try='test -z "$ac_c_werror_flag" |
| 10143 | || test ! -s conftest.err' |
| 10144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10145 | (eval $ac_try) 2>&5 |
| 10146 | ac_status=$? |
| 10147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10148 | (exit $ac_status); }; } && |
| 10149 | { ac_try='test -s conftest.$ac_objext' |
| 10150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10151 | (eval $ac_try) 2>&5 |
| 10152 | ac_status=$? |
| 10153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10154 | (exit $ac_status); }; }; then |
| 10155 | eval "$as_ac_Header=yes" |
| 10156 | else |
| 10157 | echo "$as_me: failed program was:" >&5 |
| 10158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10159 | |
| 10160 | eval "$as_ac_Header=no" |
| 10161 | fi |
| 10162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10163 | fi |
| 10164 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10165 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10166 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10167 | cat >>confdefs.h <<_ACEOF |
| 10168 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10169 | _ACEOF |
| 10170 | |
| 10171 | fi |
| 10172 | |
| 10173 | done |
| 10174 | |
| 10175 | |
| 10176 | for ac_header in sys/procfs.h |
| 10177 | do |
| 10178 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10180 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10181 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10182 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10184 | fi |
| 10185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10186 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10187 | else |
| 10188 | # Is the header compilable? |
| 10189 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10190 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10191 | cat >conftest.$ac_ext <<_ACEOF |
| 10192 | /* confdefs.h. */ |
| 10193 | _ACEOF |
| 10194 | cat confdefs.h >>conftest.$ac_ext |
| 10195 | cat >>conftest.$ac_ext <<_ACEOF |
| 10196 | /* end confdefs.h. */ |
| 10197 | $ac_includes_default |
| 10198 | #include <$ac_header> |
| 10199 | _ACEOF |
| 10200 | rm -f conftest.$ac_objext |
| 10201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10202 | (eval $ac_compile) 2>conftest.er1 |
| 10203 | ac_status=$? |
| 10204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10205 | rm -f conftest.er1 |
| 10206 | cat conftest.err >&5 |
| 10207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10208 | (exit $ac_status); } && |
| 10209 | { ac_try='test -z "$ac_c_werror_flag" |
| 10210 | || test ! -s conftest.err' |
| 10211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10212 | (eval $ac_try) 2>&5 |
| 10213 | ac_status=$? |
| 10214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10215 | (exit $ac_status); }; } && |
| 10216 | { ac_try='test -s conftest.$ac_objext' |
| 10217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10218 | (eval $ac_try) 2>&5 |
| 10219 | ac_status=$? |
| 10220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10221 | (exit $ac_status); }; }; then |
| 10222 | ac_header_compiler=yes |
| 10223 | else |
| 10224 | echo "$as_me: failed program was:" >&5 |
| 10225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10226 | |
| 10227 | ac_header_compiler=no |
| 10228 | fi |
| 10229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10230 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10231 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10232 | |
| 10233 | # Is the header present? |
| 10234 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10235 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10236 | cat >conftest.$ac_ext <<_ACEOF |
| 10237 | /* confdefs.h. */ |
| 10238 | _ACEOF |
| 10239 | cat confdefs.h >>conftest.$ac_ext |
| 10240 | cat >>conftest.$ac_ext <<_ACEOF |
| 10241 | /* end confdefs.h. */ |
| 10242 | #include <$ac_header> |
| 10243 | _ACEOF |
| 10244 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10245 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10246 | ac_status=$? |
| 10247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10248 | rm -f conftest.er1 |
| 10249 | cat conftest.err >&5 |
| 10250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10251 | (exit $ac_status); } >/dev/null; then |
| 10252 | if test -s conftest.err; then |
| 10253 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10254 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10255 | else |
| 10256 | ac_cpp_err= |
| 10257 | fi |
| 10258 | else |
| 10259 | ac_cpp_err=yes |
| 10260 | fi |
| 10261 | if test -z "$ac_cpp_err"; then |
| 10262 | ac_header_preproc=yes |
| 10263 | else |
| 10264 | echo "$as_me: failed program was:" >&5 |
| 10265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10266 | |
| 10267 | ac_header_preproc=no |
| 10268 | fi |
| 10269 | rm -f conftest.err conftest.$ac_ext |
| 10270 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10271 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10272 | |
| 10273 | # So? What about this header? |
| 10274 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10275 | yes:no: ) |
| 10276 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10277 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10278 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10279 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10280 | ac_header_preproc=yes |
| 10281 | ;; |
| 10282 | no:yes:* ) |
| 10283 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10284 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10285 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10286 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10287 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10288 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10289 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10290 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10291 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10292 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10293 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10294 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10295 | ( |
| 10296 | cat <<\_ASBOX |
| 10297 | ## ------------------------------------------ ## |
| 10298 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10299 | ## ------------------------------------------ ## |
| 10300 | _ASBOX |
| 10301 | ) | |
| 10302 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10303 | ;; |
| 10304 | esac |
| 10305 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10306 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10307 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10309 | else |
| 10310 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10311 | fi |
| 10312 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10313 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10314 | |
| 10315 | fi |
| 10316 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10317 | cat >>confdefs.h <<_ACEOF |
| 10318 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10319 | _ACEOF |
| 10320 | |
| 10321 | fi |
| 10322 | |
| 10323 | done |
| 10324 | |
| 10325 | |
| 10326 | |
| 10327 | for ac_header in sys/ptrace.h ptrace.h |
| 10328 | do |
| 10329 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10330 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10331 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10332 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10333 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10335 | fi |
| 10336 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10337 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10338 | else |
| 10339 | # Is the header compilable? |
| 10340 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10341 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10342 | cat >conftest.$ac_ext <<_ACEOF |
| 10343 | /* confdefs.h. */ |
| 10344 | _ACEOF |
| 10345 | cat confdefs.h >>conftest.$ac_ext |
| 10346 | cat >>conftest.$ac_ext <<_ACEOF |
| 10347 | /* end confdefs.h. */ |
| 10348 | $ac_includes_default |
| 10349 | #include <$ac_header> |
| 10350 | _ACEOF |
| 10351 | rm -f conftest.$ac_objext |
| 10352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10353 | (eval $ac_compile) 2>conftest.er1 |
| 10354 | ac_status=$? |
| 10355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10356 | rm -f conftest.er1 |
| 10357 | cat conftest.err >&5 |
| 10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10359 | (exit $ac_status); } && |
| 10360 | { ac_try='test -z "$ac_c_werror_flag" |
| 10361 | || test ! -s conftest.err' |
| 10362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10363 | (eval $ac_try) 2>&5 |
| 10364 | ac_status=$? |
| 10365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10366 | (exit $ac_status); }; } && |
| 10367 | { ac_try='test -s conftest.$ac_objext' |
| 10368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10369 | (eval $ac_try) 2>&5 |
| 10370 | ac_status=$? |
| 10371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10372 | (exit $ac_status); }; }; then |
| 10373 | ac_header_compiler=yes |
| 10374 | else |
| 10375 | echo "$as_me: failed program was:" >&5 |
| 10376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10377 | |
| 10378 | ac_header_compiler=no |
| 10379 | fi |
| 10380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10381 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10382 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10383 | |
| 10384 | # Is the header present? |
| 10385 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10386 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10387 | cat >conftest.$ac_ext <<_ACEOF |
| 10388 | /* confdefs.h. */ |
| 10389 | _ACEOF |
| 10390 | cat confdefs.h >>conftest.$ac_ext |
| 10391 | cat >>conftest.$ac_ext <<_ACEOF |
| 10392 | /* end confdefs.h. */ |
| 10393 | #include <$ac_header> |
| 10394 | _ACEOF |
| 10395 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10396 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10397 | ac_status=$? |
| 10398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10399 | rm -f conftest.er1 |
| 10400 | cat conftest.err >&5 |
| 10401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10402 | (exit $ac_status); } >/dev/null; then |
| 10403 | if test -s conftest.err; then |
| 10404 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10405 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10406 | else |
| 10407 | ac_cpp_err= |
| 10408 | fi |
| 10409 | else |
| 10410 | ac_cpp_err=yes |
| 10411 | fi |
| 10412 | if test -z "$ac_cpp_err"; then |
| 10413 | ac_header_preproc=yes |
| 10414 | else |
| 10415 | echo "$as_me: failed program was:" >&5 |
| 10416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10417 | |
| 10418 | ac_header_preproc=no |
| 10419 | fi |
| 10420 | rm -f conftest.err conftest.$ac_ext |
| 10421 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10422 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10423 | |
| 10424 | # So? What about this header? |
| 10425 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10426 | yes:no: ) |
| 10427 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10428 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10429 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10430 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10431 | ac_header_preproc=yes |
| 10432 | ;; |
| 10433 | no:yes:* ) |
| 10434 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10435 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10436 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10437 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10438 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10439 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10440 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10441 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10442 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10443 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10444 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10445 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10446 | ( |
| 10447 | cat <<\_ASBOX |
| 10448 | ## ------------------------------------------ ## |
| 10449 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10450 | ## ------------------------------------------ ## |
| 10451 | _ASBOX |
| 10452 | ) | |
| 10453 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10454 | ;; |
| 10455 | esac |
| 10456 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10457 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10458 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10460 | else |
| 10461 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10462 | fi |
| 10463 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10464 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10465 | |
| 10466 | fi |
| 10467 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10468 | cat >>confdefs.h <<_ACEOF |
| 10469 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10470 | _ACEOF |
| 10471 | |
| 10472 | fi |
| 10473 | |
| 10474 | done |
| 10475 | |
| 10476 | |
| 10477 | |
| 10478 | for ac_header in sys/reg.h sys/debugreg.h |
| 10479 | do |
| 10480 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10482 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10483 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10484 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10486 | fi |
| 10487 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10488 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10489 | else |
| 10490 | # Is the header compilable? |
| 10491 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10492 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10493 | cat >conftest.$ac_ext <<_ACEOF |
| 10494 | /* confdefs.h. */ |
| 10495 | _ACEOF |
| 10496 | cat confdefs.h >>conftest.$ac_ext |
| 10497 | cat >>conftest.$ac_ext <<_ACEOF |
| 10498 | /* end confdefs.h. */ |
| 10499 | $ac_includes_default |
| 10500 | #include <$ac_header> |
| 10501 | _ACEOF |
| 10502 | rm -f conftest.$ac_objext |
| 10503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10504 | (eval $ac_compile) 2>conftest.er1 |
| 10505 | ac_status=$? |
| 10506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10507 | rm -f conftest.er1 |
| 10508 | cat conftest.err >&5 |
| 10509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10510 | (exit $ac_status); } && |
| 10511 | { ac_try='test -z "$ac_c_werror_flag" |
| 10512 | || test ! -s conftest.err' |
| 10513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10514 | (eval $ac_try) 2>&5 |
| 10515 | ac_status=$? |
| 10516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10517 | (exit $ac_status); }; } && |
| 10518 | { ac_try='test -s conftest.$ac_objext' |
| 10519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10520 | (eval $ac_try) 2>&5 |
| 10521 | ac_status=$? |
| 10522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10523 | (exit $ac_status); }; }; then |
| 10524 | ac_header_compiler=yes |
| 10525 | else |
| 10526 | echo "$as_me: failed program was:" >&5 |
| 10527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10528 | |
| 10529 | ac_header_compiler=no |
| 10530 | fi |
| 10531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10532 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10533 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10534 | |
| 10535 | # Is the header present? |
| 10536 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10537 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10538 | cat >conftest.$ac_ext <<_ACEOF |
| 10539 | /* confdefs.h. */ |
| 10540 | _ACEOF |
| 10541 | cat confdefs.h >>conftest.$ac_ext |
| 10542 | cat >>conftest.$ac_ext <<_ACEOF |
| 10543 | /* end confdefs.h. */ |
| 10544 | #include <$ac_header> |
| 10545 | _ACEOF |
| 10546 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10547 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10548 | ac_status=$? |
| 10549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10550 | rm -f conftest.er1 |
| 10551 | cat conftest.err >&5 |
| 10552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10553 | (exit $ac_status); } >/dev/null; then |
| 10554 | if test -s conftest.err; then |
| 10555 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10556 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10557 | else |
| 10558 | ac_cpp_err= |
| 10559 | fi |
| 10560 | else |
| 10561 | ac_cpp_err=yes |
| 10562 | fi |
| 10563 | if test -z "$ac_cpp_err"; then |
| 10564 | ac_header_preproc=yes |
| 10565 | else |
| 10566 | echo "$as_me: failed program was:" >&5 |
| 10567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10568 | |
| 10569 | ac_header_preproc=no |
| 10570 | fi |
| 10571 | rm -f conftest.err conftest.$ac_ext |
| 10572 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10573 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10574 | |
| 10575 | # So? What about this header? |
| 10576 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10577 | yes:no: ) |
| 10578 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10579 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10580 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10581 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10582 | ac_header_preproc=yes |
| 10583 | ;; |
| 10584 | no:yes:* ) |
| 10585 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10586 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10587 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10588 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10589 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10590 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10591 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10592 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10593 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10594 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10595 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10596 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10597 | ( |
| 10598 | cat <<\_ASBOX |
| 10599 | ## ------------------------------------------ ## |
| 10600 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10601 | ## ------------------------------------------ ## |
| 10602 | _ASBOX |
| 10603 | ) | |
| 10604 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10605 | ;; |
| 10606 | esac |
| 10607 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10608 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10609 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10611 | else |
| 10612 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10613 | fi |
| 10614 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10615 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10616 | |
| 10617 | fi |
| 10618 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10619 | cat >>confdefs.h <<_ACEOF |
| 10620 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10621 | _ACEOF |
| 10622 | |
| 10623 | fi |
| 10624 | |
| 10625 | done |
| 10626 | |
| 10627 | |
| 10628 | for ac_header in sys/select.h |
| 10629 | do |
| 10630 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10632 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10633 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10634 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10636 | fi |
| 10637 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10638 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10639 | else |
| 10640 | # Is the header compilable? |
| 10641 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10642 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10643 | cat >conftest.$ac_ext <<_ACEOF |
| 10644 | /* confdefs.h. */ |
| 10645 | _ACEOF |
| 10646 | cat confdefs.h >>conftest.$ac_ext |
| 10647 | cat >>conftest.$ac_ext <<_ACEOF |
| 10648 | /* end confdefs.h. */ |
| 10649 | $ac_includes_default |
| 10650 | #include <$ac_header> |
| 10651 | _ACEOF |
| 10652 | rm -f conftest.$ac_objext |
| 10653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10654 | (eval $ac_compile) 2>conftest.er1 |
| 10655 | ac_status=$? |
| 10656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10657 | rm -f conftest.er1 |
| 10658 | cat conftest.err >&5 |
| 10659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10660 | (exit $ac_status); } && |
| 10661 | { ac_try='test -z "$ac_c_werror_flag" |
| 10662 | || test ! -s conftest.err' |
| 10663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10664 | (eval $ac_try) 2>&5 |
| 10665 | ac_status=$? |
| 10666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10667 | (exit $ac_status); }; } && |
| 10668 | { ac_try='test -s conftest.$ac_objext' |
| 10669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10670 | (eval $ac_try) 2>&5 |
| 10671 | ac_status=$? |
| 10672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10673 | (exit $ac_status); }; }; then |
| 10674 | ac_header_compiler=yes |
| 10675 | else |
| 10676 | echo "$as_me: failed program was:" >&5 |
| 10677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10678 | |
| 10679 | ac_header_compiler=no |
| 10680 | fi |
| 10681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10682 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10683 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10684 | |
| 10685 | # Is the header present? |
| 10686 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10687 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10688 | cat >conftest.$ac_ext <<_ACEOF |
| 10689 | /* confdefs.h. */ |
| 10690 | _ACEOF |
| 10691 | cat confdefs.h >>conftest.$ac_ext |
| 10692 | cat >>conftest.$ac_ext <<_ACEOF |
| 10693 | /* end confdefs.h. */ |
| 10694 | #include <$ac_header> |
| 10695 | _ACEOF |
| 10696 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10697 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10698 | ac_status=$? |
| 10699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10700 | rm -f conftest.er1 |
| 10701 | cat conftest.err >&5 |
| 10702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10703 | (exit $ac_status); } >/dev/null; then |
| 10704 | if test -s conftest.err; then |
| 10705 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10706 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10707 | else |
| 10708 | ac_cpp_err= |
| 10709 | fi |
| 10710 | else |
| 10711 | ac_cpp_err=yes |
| 10712 | fi |
| 10713 | if test -z "$ac_cpp_err"; then |
| 10714 | ac_header_preproc=yes |
| 10715 | else |
| 10716 | echo "$as_me: failed program was:" >&5 |
| 10717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10718 | |
| 10719 | ac_header_preproc=no |
| 10720 | fi |
| 10721 | rm -f conftest.err conftest.$ac_ext |
| 10722 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10723 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10724 | |
| 10725 | # So? What about this header? |
| 10726 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10727 | yes:no: ) |
| 10728 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10729 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10730 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10731 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10732 | ac_header_preproc=yes |
| 10733 | ;; |
| 10734 | no:yes:* ) |
| 10735 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10736 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10737 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10738 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10739 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10740 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10741 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10742 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10743 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10744 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10745 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10746 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10747 | ( |
| 10748 | cat <<\_ASBOX |
| 10749 | ## ------------------------------------------ ## |
| 10750 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10751 | ## ------------------------------------------ ## |
| 10752 | _ASBOX |
| 10753 | ) | |
| 10754 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10755 | ;; |
| 10756 | esac |
| 10757 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10758 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10759 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10761 | else |
| 10762 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10763 | fi |
| 10764 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10765 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10766 | |
| 10767 | fi |
| 10768 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10769 | cat >>confdefs.h <<_ACEOF |
| 10770 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10771 | _ACEOF |
| 10772 | |
| 10773 | fi |
| 10774 | |
| 10775 | done |
| 10776 | |
| 10777 | |
| 10778 | for ac_header in sys/syscall.h |
| 10779 | do |
| 10780 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10781 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10782 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10783 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10786 | fi |
| 10787 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10788 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10789 | else |
| 10790 | # Is the header compilable? |
| 10791 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10792 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10793 | cat >conftest.$ac_ext <<_ACEOF |
| 10794 | /* confdefs.h. */ |
| 10795 | _ACEOF |
| 10796 | cat confdefs.h >>conftest.$ac_ext |
| 10797 | cat >>conftest.$ac_ext <<_ACEOF |
| 10798 | /* end confdefs.h. */ |
| 10799 | $ac_includes_default |
| 10800 | #include <$ac_header> |
| 10801 | _ACEOF |
| 10802 | rm -f conftest.$ac_objext |
| 10803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10804 | (eval $ac_compile) 2>conftest.er1 |
| 10805 | ac_status=$? |
| 10806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10807 | rm -f conftest.er1 |
| 10808 | cat conftest.err >&5 |
| 10809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10810 | (exit $ac_status); } && |
| 10811 | { ac_try='test -z "$ac_c_werror_flag" |
| 10812 | || test ! -s conftest.err' |
| 10813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10814 | (eval $ac_try) 2>&5 |
| 10815 | ac_status=$? |
| 10816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10817 | (exit $ac_status); }; } && |
| 10818 | { ac_try='test -s conftest.$ac_objext' |
| 10819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10820 | (eval $ac_try) 2>&5 |
| 10821 | ac_status=$? |
| 10822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10823 | (exit $ac_status); }; }; then |
| 10824 | ac_header_compiler=yes |
| 10825 | else |
| 10826 | echo "$as_me: failed program was:" >&5 |
| 10827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10828 | |
| 10829 | ac_header_compiler=no |
| 10830 | fi |
| 10831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10832 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10833 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10834 | |
| 10835 | # Is the header present? |
| 10836 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10837 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10838 | cat >conftest.$ac_ext <<_ACEOF |
| 10839 | /* confdefs.h. */ |
| 10840 | _ACEOF |
| 10841 | cat confdefs.h >>conftest.$ac_ext |
| 10842 | cat >>conftest.$ac_ext <<_ACEOF |
| 10843 | /* end confdefs.h. */ |
| 10844 | #include <$ac_header> |
| 10845 | _ACEOF |
| 10846 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10847 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10848 | ac_status=$? |
| 10849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10850 | rm -f conftest.er1 |
| 10851 | cat conftest.err >&5 |
| 10852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10853 | (exit $ac_status); } >/dev/null; then |
| 10854 | if test -s conftest.err; then |
| 10855 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10856 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10857 | else |
| 10858 | ac_cpp_err= |
| 10859 | fi |
| 10860 | else |
| 10861 | ac_cpp_err=yes |
| 10862 | fi |
| 10863 | if test -z "$ac_cpp_err"; then |
| 10864 | ac_header_preproc=yes |
| 10865 | else |
| 10866 | echo "$as_me: failed program was:" >&5 |
| 10867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10868 | |
| 10869 | ac_header_preproc=no |
| 10870 | fi |
| 10871 | rm -f conftest.err conftest.$ac_ext |
| 10872 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10873 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10874 | |
| 10875 | # So? What about this header? |
| 10876 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10877 | yes:no: ) |
| 10878 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10879 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10880 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10881 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10882 | ac_header_preproc=yes |
| 10883 | ;; |
| 10884 | no:yes:* ) |
| 10885 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10886 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10887 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10888 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10889 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10890 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10891 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10892 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10893 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10894 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10895 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10896 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10897 | ( |
| 10898 | cat <<\_ASBOX |
| 10899 | ## ------------------------------------------ ## |
| 10900 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10901 | ## ------------------------------------------ ## |
| 10902 | _ASBOX |
| 10903 | ) | |
| 10904 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10905 | ;; |
| 10906 | esac |
| 10907 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10908 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10909 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10911 | else |
| 10912 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10913 | fi |
| 10914 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10915 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10916 | |
| 10917 | fi |
| 10918 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10919 | cat >>confdefs.h <<_ACEOF |
| 10920 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10921 | _ACEOF |
| 10922 | |
| 10923 | fi |
| 10924 | |
| 10925 | done |
| 10926 | |
| 10927 | |
| 10928 | for ac_header in sys/types.h |
| 10929 | do |
| 10930 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10931 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10932 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10933 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10934 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10936 | fi |
| 10937 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10938 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10939 | else |
| 10940 | # Is the header compilable? |
| 10941 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10942 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10943 | cat >conftest.$ac_ext <<_ACEOF |
| 10944 | /* confdefs.h. */ |
| 10945 | _ACEOF |
| 10946 | cat confdefs.h >>conftest.$ac_ext |
| 10947 | cat >>conftest.$ac_ext <<_ACEOF |
| 10948 | /* end confdefs.h. */ |
| 10949 | $ac_includes_default |
| 10950 | #include <$ac_header> |
| 10951 | _ACEOF |
| 10952 | rm -f conftest.$ac_objext |
| 10953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10954 | (eval $ac_compile) 2>conftest.er1 |
| 10955 | ac_status=$? |
| 10956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10957 | rm -f conftest.er1 |
| 10958 | cat conftest.err >&5 |
| 10959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10960 | (exit $ac_status); } && |
| 10961 | { ac_try='test -z "$ac_c_werror_flag" |
| 10962 | || test ! -s conftest.err' |
| 10963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10964 | (eval $ac_try) 2>&5 |
| 10965 | ac_status=$? |
| 10966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10967 | (exit $ac_status); }; } && |
| 10968 | { ac_try='test -s conftest.$ac_objext' |
| 10969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10970 | (eval $ac_try) 2>&5 |
| 10971 | ac_status=$? |
| 10972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10973 | (exit $ac_status); }; }; then |
| 10974 | ac_header_compiler=yes |
| 10975 | else |
| 10976 | echo "$as_me: failed program was:" >&5 |
| 10977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10978 | |
| 10979 | ac_header_compiler=no |
| 10980 | fi |
| 10981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10982 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10983 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10984 | |
| 10985 | # Is the header present? |
| 10986 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10987 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10988 | cat >conftest.$ac_ext <<_ACEOF |
| 10989 | /* confdefs.h. */ |
| 10990 | _ACEOF |
| 10991 | cat confdefs.h >>conftest.$ac_ext |
| 10992 | cat >>conftest.$ac_ext <<_ACEOF |
| 10993 | /* end confdefs.h. */ |
| 10994 | #include <$ac_header> |
| 10995 | _ACEOF |
| 10996 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10997 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10998 | ac_status=$? |
| 10999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11000 | rm -f conftest.er1 |
| 11001 | cat conftest.err >&5 |
| 11002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11003 | (exit $ac_status); } >/dev/null; then |
| 11004 | if test -s conftest.err; then |
| 11005 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11006 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11007 | else |
| 11008 | ac_cpp_err= |
| 11009 | fi |
| 11010 | else |
| 11011 | ac_cpp_err=yes |
| 11012 | fi |
| 11013 | if test -z "$ac_cpp_err"; then |
| 11014 | ac_header_preproc=yes |
| 11015 | else |
| 11016 | echo "$as_me: failed program was:" >&5 |
| 11017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11018 | |
| 11019 | ac_header_preproc=no |
| 11020 | fi |
| 11021 | rm -f conftest.err conftest.$ac_ext |
| 11022 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11023 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11024 | |
| 11025 | # So? What about this header? |
| 11026 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11027 | yes:no: ) |
| 11028 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11029 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11030 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11031 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11032 | ac_header_preproc=yes |
| 11033 | ;; |
| 11034 | no:yes:* ) |
| 11035 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11036 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11037 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11038 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11039 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11040 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11041 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11042 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11043 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11044 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11045 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11046 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11047 | ( |
| 11048 | cat <<\_ASBOX |
| 11049 | ## ------------------------------------------ ## |
| 11050 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 11051 | ## ------------------------------------------ ## |
| 11052 | _ASBOX |
| 11053 | ) | |
| 11054 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11055 | ;; |
| 11056 | esac |
| 11057 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11058 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11059 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11061 | else |
| 11062 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11063 | fi |
| 11064 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11065 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11066 | |
| 11067 | fi |
| 11068 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11069 | cat >>confdefs.h <<_ACEOF |
| 11070 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11071 | _ACEOF |
| 11072 | |
| 11073 | fi |
| 11074 | |
| 11075 | done |
| 11076 | |
| 11077 | |
| 11078 | for ac_header in sys/user.h |
| 11079 | do |
| 11080 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11081 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11082 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11083 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11085 | else |
| 11086 | cat >conftest.$ac_ext <<_ACEOF |
| 11087 | /* confdefs.h. */ |
| 11088 | _ACEOF |
| 11089 | cat confdefs.h >>conftest.$ac_ext |
| 11090 | cat >>conftest.$ac_ext <<_ACEOF |
| 11091 | /* end confdefs.h. */ |
| 11092 | #if HAVE_SYS_PARAM_H |
| 11093 | # include <sys/param.h> |
| 11094 | #endif |
| 11095 | |
| 11096 | |
| 11097 | #include <$ac_header> |
| 11098 | _ACEOF |
| 11099 | rm -f conftest.$ac_objext |
| 11100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11101 | (eval $ac_compile) 2>conftest.er1 |
| 11102 | ac_status=$? |
| 11103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11104 | rm -f conftest.er1 |
| 11105 | cat conftest.err >&5 |
| 11106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11107 | (exit $ac_status); } && |
| 11108 | { ac_try='test -z "$ac_c_werror_flag" |
| 11109 | || test ! -s conftest.err' |
| 11110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11111 | (eval $ac_try) 2>&5 |
| 11112 | ac_status=$? |
| 11113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11114 | (exit $ac_status); }; } && |
| 11115 | { ac_try='test -s conftest.$ac_objext' |
| 11116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11117 | (eval $ac_try) 2>&5 |
| 11118 | ac_status=$? |
| 11119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11120 | (exit $ac_status); }; }; then |
| 11121 | eval "$as_ac_Header=yes" |
| 11122 | else |
| 11123 | echo "$as_me: failed program was:" >&5 |
| 11124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11125 | |
| 11126 | eval "$as_ac_Header=no" |
| 11127 | fi |
| 11128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11129 | fi |
| 11130 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11131 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11132 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11133 | cat >>confdefs.h <<_ACEOF |
| 11134 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11135 | _ACEOF |
| 11136 | |
| 11137 | fi |
| 11138 | |
| 11139 | done |
| 11140 | |
| 11141 | |
| 11142 | |
| 11143 | for ac_header in sys/wait.h wait.h |
| 11144 | do |
| 11145 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11146 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11147 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11148 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11149 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11151 | fi |
| 11152 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11153 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11154 | else |
| 11155 | # Is the header compilable? |
| 11156 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11157 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11158 | cat >conftest.$ac_ext <<_ACEOF |
| 11159 | /* confdefs.h. */ |
| 11160 | _ACEOF |
| 11161 | cat confdefs.h >>conftest.$ac_ext |
| 11162 | cat >>conftest.$ac_ext <<_ACEOF |
| 11163 | /* end confdefs.h. */ |
| 11164 | $ac_includes_default |
| 11165 | #include <$ac_header> |
| 11166 | _ACEOF |
| 11167 | rm -f conftest.$ac_objext |
| 11168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11169 | (eval $ac_compile) 2>conftest.er1 |
| 11170 | ac_status=$? |
| 11171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11172 | rm -f conftest.er1 |
| 11173 | cat conftest.err >&5 |
| 11174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11175 | (exit $ac_status); } && |
| 11176 | { ac_try='test -z "$ac_c_werror_flag" |
| 11177 | || test ! -s conftest.err' |
| 11178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11179 | (eval $ac_try) 2>&5 |
| 11180 | ac_status=$? |
| 11181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11182 | (exit $ac_status); }; } && |
| 11183 | { ac_try='test -s conftest.$ac_objext' |
| 11184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11185 | (eval $ac_try) 2>&5 |
| 11186 | ac_status=$? |
| 11187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11188 | (exit $ac_status); }; }; then |
| 11189 | ac_header_compiler=yes |
| 11190 | else |
| 11191 | echo "$as_me: failed program was:" >&5 |
| 11192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11193 | |
| 11194 | ac_header_compiler=no |
| 11195 | fi |
| 11196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11197 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11198 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11199 | |
| 11200 | # Is the header present? |
| 11201 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11202 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11203 | cat >conftest.$ac_ext <<_ACEOF |
| 11204 | /* confdefs.h. */ |
| 11205 | _ACEOF |
| 11206 | cat confdefs.h >>conftest.$ac_ext |
| 11207 | cat >>conftest.$ac_ext <<_ACEOF |
| 11208 | /* end confdefs.h. */ |
| 11209 | #include <$ac_header> |
| 11210 | _ACEOF |
| 11211 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11212 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11213 | ac_status=$? |
| 11214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11215 | rm -f conftest.er1 |
| 11216 | cat conftest.err >&5 |
| 11217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11218 | (exit $ac_status); } >/dev/null; then |
| 11219 | if test -s conftest.err; then |
| 11220 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11221 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11222 | else |
| 11223 | ac_cpp_err= |
| 11224 | fi |
| 11225 | else |
| 11226 | ac_cpp_err=yes |
| 11227 | fi |
| 11228 | if test -z "$ac_cpp_err"; then |
| 11229 | ac_header_preproc=yes |
| 11230 | else |
| 11231 | echo "$as_me: failed program was:" >&5 |
| 11232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11233 | |
| 11234 | ac_header_preproc=no |
| 11235 | fi |
| 11236 | rm -f conftest.err conftest.$ac_ext |
| 11237 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11238 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11239 | |
| 11240 | # So? What about this header? |
| 11241 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11242 | yes:no: ) |
| 11243 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11244 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11245 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11246 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11247 | ac_header_preproc=yes |
| 11248 | ;; |
| 11249 | no:yes:* ) |
| 11250 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11251 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11252 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11253 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11254 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11255 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11256 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11257 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11258 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11259 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11260 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11261 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11262 | ( |
| 11263 | cat <<\_ASBOX |
| 11264 | ## ------------------------------------------ ## |
| 11265 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 11266 | ## ------------------------------------------ ## |
| 11267 | _ASBOX |
| 11268 | ) | |
| 11269 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11270 | ;; |
| 11271 | esac |
| 11272 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11273 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11274 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11276 | else |
| 11277 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11278 | fi |
| 11279 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11280 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11281 | |
| 11282 | fi |
| 11283 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11284 | cat >>confdefs.h <<_ACEOF |
| 11285 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11286 | _ACEOF |
| 11287 | |
| 11288 | fi |
| 11289 | |
| 11290 | done |
| 11291 | |
| 11292 | |
| 11293 | |
| 11294 | |
| 11295 | for ac_header in termios.h termio.h sgtty.h |
| 11296 | do |
| 11297 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11298 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11299 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11300 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11301 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11303 | fi |
| 11304 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11305 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11306 | else |
| 11307 | # Is the header compilable? |
| 11308 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11309 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11310 | cat >conftest.$ac_ext <<_ACEOF |
| 11311 | /* confdefs.h. */ |
| 11312 | _ACEOF |
| 11313 | cat confdefs.h >>conftest.$ac_ext |
| 11314 | cat >>conftest.$ac_ext <<_ACEOF |
| 11315 | /* end confdefs.h. */ |
| 11316 | $ac_includes_default |
| 11317 | #include <$ac_header> |
| 11318 | _ACEOF |
| 11319 | rm -f conftest.$ac_objext |
| 11320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11321 | (eval $ac_compile) 2>conftest.er1 |
| 11322 | ac_status=$? |
| 11323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11324 | rm -f conftest.er1 |
| 11325 | cat conftest.err >&5 |
| 11326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11327 | (exit $ac_status); } && |
| 11328 | { ac_try='test -z "$ac_c_werror_flag" |
| 11329 | || test ! -s conftest.err' |
| 11330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11331 | (eval $ac_try) 2>&5 |
| 11332 | ac_status=$? |
| 11333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11334 | (exit $ac_status); }; } && |
| 11335 | { ac_try='test -s conftest.$ac_objext' |
| 11336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11337 | (eval $ac_try) 2>&5 |
| 11338 | ac_status=$? |
| 11339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11340 | (exit $ac_status); }; }; then |
| 11341 | ac_header_compiler=yes |
| 11342 | else |
| 11343 | echo "$as_me: failed program was:" >&5 |
| 11344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11345 | |
| 11346 | ac_header_compiler=no |
| 11347 | fi |
| 11348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11349 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11350 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11351 | |
| 11352 | # Is the header present? |
| 11353 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11354 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11355 | cat >conftest.$ac_ext <<_ACEOF |
| 11356 | /* confdefs.h. */ |
| 11357 | _ACEOF |
| 11358 | cat confdefs.h >>conftest.$ac_ext |
| 11359 | cat >>conftest.$ac_ext <<_ACEOF |
| 11360 | /* end confdefs.h. */ |
| 11361 | #include <$ac_header> |
| 11362 | _ACEOF |
| 11363 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11364 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11365 | ac_status=$? |
| 11366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11367 | rm -f conftest.er1 |
| 11368 | cat conftest.err >&5 |
| 11369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11370 | (exit $ac_status); } >/dev/null; then |
| 11371 | if test -s conftest.err; then |
| 11372 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11373 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11374 | else |
| 11375 | ac_cpp_err= |
| 11376 | fi |
| 11377 | else |
| 11378 | ac_cpp_err=yes |
| 11379 | fi |
| 11380 | if test -z "$ac_cpp_err"; then |
| 11381 | ac_header_preproc=yes |
| 11382 | else |
| 11383 | echo "$as_me: failed program was:" >&5 |
| 11384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11385 | |
| 11386 | ac_header_preproc=no |
| 11387 | fi |
| 11388 | rm -f conftest.err conftest.$ac_ext |
| 11389 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11390 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11391 | |
| 11392 | # So? What about this header? |
| 11393 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11394 | yes:no: ) |
| 11395 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11396 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11397 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11398 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11399 | ac_header_preproc=yes |
| 11400 | ;; |
| 11401 | no:yes:* ) |
| 11402 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11403 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11404 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11405 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11406 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11407 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11408 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11409 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11410 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11411 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11412 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11413 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11414 | ( |
| 11415 | cat <<\_ASBOX |
| 11416 | ## ------------------------------------------ ## |
| 11417 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 11418 | ## ------------------------------------------ ## |
| 11419 | _ASBOX |
| 11420 | ) | |
| 11421 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11422 | ;; |
| 11423 | esac |
| 11424 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11425 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11426 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11428 | else |
| 11429 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11430 | fi |
| 11431 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11432 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11433 | |
| 11434 | fi |
| 11435 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11436 | cat >>confdefs.h <<_ACEOF |
| 11437 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11438 | _ACEOF |
| 11439 | |
| 11440 | fi |
| 11441 | |
| 11442 | done |
| 11443 | |
| 11444 | |
| 11445 | for ac_header in unistd.h |
| 11446 | do |
| 11447 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11448 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11449 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11450 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11451 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11453 | fi |
| 11454 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11455 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11456 | else |
| 11457 | # Is the header compilable? |
| 11458 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11459 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11460 | cat >conftest.$ac_ext <<_ACEOF |
| 11461 | /* confdefs.h. */ |
| 11462 | _ACEOF |
| 11463 | cat confdefs.h >>conftest.$ac_ext |
| 11464 | cat >>conftest.$ac_ext <<_ACEOF |
| 11465 | /* end confdefs.h. */ |
| 11466 | $ac_includes_default |
| 11467 | #include <$ac_header> |
| 11468 | _ACEOF |
| 11469 | rm -f conftest.$ac_objext |
| 11470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11471 | (eval $ac_compile) 2>conftest.er1 |
| 11472 | ac_status=$? |
| 11473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11474 | rm -f conftest.er1 |
| 11475 | cat conftest.err >&5 |
| 11476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11477 | (exit $ac_status); } && |
| 11478 | { ac_try='test -z "$ac_c_werror_flag" |
| 11479 | || test ! -s conftest.err' |
| 11480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11481 | (eval $ac_try) 2>&5 |
| 11482 | ac_status=$? |
| 11483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11484 | (exit $ac_status); }; } && |
| 11485 | { ac_try='test -s conftest.$ac_objext' |
| 11486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11487 | (eval $ac_try) 2>&5 |
| 11488 | ac_status=$? |
| 11489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11490 | (exit $ac_status); }; }; then |
| 11491 | ac_header_compiler=yes |
| 11492 | else |
| 11493 | echo "$as_me: failed program was:" >&5 |
| 11494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11495 | |
| 11496 | ac_header_compiler=no |
| 11497 | fi |
| 11498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11499 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11500 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11501 | |
| 11502 | # Is the header present? |
| 11503 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11504 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11505 | cat >conftest.$ac_ext <<_ACEOF |
| 11506 | /* confdefs.h. */ |
| 11507 | _ACEOF |
| 11508 | cat confdefs.h >>conftest.$ac_ext |
| 11509 | cat >>conftest.$ac_ext <<_ACEOF |
| 11510 | /* end confdefs.h. */ |
| 11511 | #include <$ac_header> |
| 11512 | _ACEOF |
| 11513 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11514 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11515 | ac_status=$? |
| 11516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11517 | rm -f conftest.er1 |
| 11518 | cat conftest.err >&5 |
| 11519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11520 | (exit $ac_status); } >/dev/null; then |
| 11521 | if test -s conftest.err; then |
| 11522 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11523 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11524 | else |
| 11525 | ac_cpp_err= |
| 11526 | fi |
| 11527 | else |
| 11528 | ac_cpp_err=yes |
| 11529 | fi |
| 11530 | if test -z "$ac_cpp_err"; then |
| 11531 | ac_header_preproc=yes |
| 11532 | else |
| 11533 | echo "$as_me: failed program was:" >&5 |
| 11534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11535 | |
| 11536 | ac_header_preproc=no |
| 11537 | fi |
| 11538 | rm -f conftest.err conftest.$ac_ext |
| 11539 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11540 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11541 | |
| 11542 | # So? What about this header? |
| 11543 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11544 | yes:no: ) |
| 11545 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11546 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11547 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11548 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11549 | ac_header_preproc=yes |
| 11550 | ;; |
| 11551 | no:yes:* ) |
| 11552 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11553 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11554 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11555 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11556 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11557 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11558 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11559 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11560 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11561 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11562 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11563 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11564 | ( |
| 11565 | cat <<\_ASBOX |
| 11566 | ## ------------------------------------------ ## |
| 11567 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 11568 | ## ------------------------------------------ ## |
| 11569 | _ASBOX |
| 11570 | ) | |
| 11571 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11572 | ;; |
| 11573 | esac |
| 11574 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11576 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11578 | else |
| 11579 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11580 | fi |
| 11581 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11582 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11583 | |
| 11584 | fi |
| 11585 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11586 | cat >>confdefs.h <<_ACEOF |
| 11587 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11588 | _ACEOF |
| 11589 | |
| 11590 | fi |
| 11591 | |
| 11592 | done |
| 11593 | |
| 11594 | |
| 11595 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
| 11596 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
| 11597 | # think that we don't have <curses.h> if we're using GCC. |
| 11598 | case $host_os in |
| 11599 | solaris2.[789]) |
| 11600 | if test "$GCC" = yes; then |
| 11601 | |
| 11602 | cat >>confdefs.h <<\_ACEOF |
| 11603 | #define _MSE_INT_H 1 |
| 11604 | _ACEOF |
| 11605 | |
| 11606 | fi ;; |
| 11607 | esac |
| 11608 | |
| 11609 | |
| 11610 | |
| 11611 | |
| 11612 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h |
| 11613 | do |
| 11614 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11615 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11616 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11617 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11618 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11620 | fi |
| 11621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11622 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11623 | else |
| 11624 | # Is the header compilable? |
| 11625 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11626 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11627 | cat >conftest.$ac_ext <<_ACEOF |
| 11628 | /* confdefs.h. */ |
| 11629 | _ACEOF |
| 11630 | cat confdefs.h >>conftest.$ac_ext |
| 11631 | cat >>conftest.$ac_ext <<_ACEOF |
| 11632 | /* end confdefs.h. */ |
| 11633 | $ac_includes_default |
| 11634 | #include <$ac_header> |
| 11635 | _ACEOF |
| 11636 | rm -f conftest.$ac_objext |
| 11637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11638 | (eval $ac_compile) 2>conftest.er1 |
| 11639 | ac_status=$? |
| 11640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11641 | rm -f conftest.er1 |
| 11642 | cat conftest.err >&5 |
| 11643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11644 | (exit $ac_status); } && |
| 11645 | { ac_try='test -z "$ac_c_werror_flag" |
| 11646 | || test ! -s conftest.err' |
| 11647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11648 | (eval $ac_try) 2>&5 |
| 11649 | ac_status=$? |
| 11650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11651 | (exit $ac_status); }; } && |
| 11652 | { ac_try='test -s conftest.$ac_objext' |
| 11653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11654 | (eval $ac_try) 2>&5 |
| 11655 | ac_status=$? |
| 11656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11657 | (exit $ac_status); }; }; then |
| 11658 | ac_header_compiler=yes |
| 11659 | else |
| 11660 | echo "$as_me: failed program was:" >&5 |
| 11661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11662 | |
| 11663 | ac_header_compiler=no |
| 11664 | fi |
| 11665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11666 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11667 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11668 | |
| 11669 | # Is the header present? |
| 11670 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11671 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11672 | cat >conftest.$ac_ext <<_ACEOF |
| 11673 | /* confdefs.h. */ |
| 11674 | _ACEOF |
| 11675 | cat confdefs.h >>conftest.$ac_ext |
| 11676 | cat >>conftest.$ac_ext <<_ACEOF |
| 11677 | /* end confdefs.h. */ |
| 11678 | #include <$ac_header> |
| 11679 | _ACEOF |
| 11680 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11681 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11682 | ac_status=$? |
| 11683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11684 | rm -f conftest.er1 |
| 11685 | cat conftest.err >&5 |
| 11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11687 | (exit $ac_status); } >/dev/null; then |
| 11688 | if test -s conftest.err; then |
| 11689 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11690 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11691 | else |
| 11692 | ac_cpp_err= |
| 11693 | fi |
| 11694 | else |
| 11695 | ac_cpp_err=yes |
| 11696 | fi |
| 11697 | if test -z "$ac_cpp_err"; then |
| 11698 | ac_header_preproc=yes |
| 11699 | else |
| 11700 | echo "$as_me: failed program was:" >&5 |
| 11701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11702 | |
| 11703 | ac_header_preproc=no |
| 11704 | fi |
| 11705 | rm -f conftest.err conftest.$ac_ext |
| 11706 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11707 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11708 | |
| 11709 | # So? What about this header? |
| 11710 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11711 | yes:no: ) |
| 11712 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11713 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11714 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11715 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11716 | ac_header_preproc=yes |
| 11717 | ;; |
| 11718 | no:yes:* ) |
| 11719 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11720 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11721 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11722 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11723 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11724 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11725 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11726 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11728 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11729 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11730 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11731 | ( |
| 11732 | cat <<\_ASBOX |
| 11733 | ## ------------------------------------------ ## |
| 11734 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 11735 | ## ------------------------------------------ ## |
| 11736 | _ASBOX |
| 11737 | ) | |
| 11738 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11739 | ;; |
| 11740 | esac |
| 11741 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11742 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11743 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11745 | else |
| 11746 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11747 | fi |
| 11748 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11749 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11750 | |
| 11751 | fi |
| 11752 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11753 | cat >>confdefs.h <<_ACEOF |
| 11754 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11755 | _ACEOF |
| 11756 | |
| 11757 | fi |
| 11758 | |
| 11759 | done |
| 11760 | |
| 11761 | |
| 11762 | for ac_header in ncurses/term.h |
| 11763 | do |
| 11764 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11765 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11766 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11767 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11768 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11770 | fi |
| 11771 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11772 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11773 | else |
| 11774 | # Is the header compilable? |
| 11775 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11776 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11777 | cat >conftest.$ac_ext <<_ACEOF |
| 11778 | /* confdefs.h. */ |
| 11779 | _ACEOF |
| 11780 | cat confdefs.h >>conftest.$ac_ext |
| 11781 | cat >>conftest.$ac_ext <<_ACEOF |
| 11782 | /* end confdefs.h. */ |
| 11783 | $ac_includes_default |
| 11784 | #include <$ac_header> |
| 11785 | _ACEOF |
| 11786 | rm -f conftest.$ac_objext |
| 11787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11788 | (eval $ac_compile) 2>conftest.er1 |
| 11789 | ac_status=$? |
| 11790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11791 | rm -f conftest.er1 |
| 11792 | cat conftest.err >&5 |
| 11793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11794 | (exit $ac_status); } && |
| 11795 | { ac_try='test -z "$ac_c_werror_flag" |
| 11796 | || test ! -s conftest.err' |
| 11797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11798 | (eval $ac_try) 2>&5 |
| 11799 | ac_status=$? |
| 11800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11801 | (exit $ac_status); }; } && |
| 11802 | { ac_try='test -s conftest.$ac_objext' |
| 11803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11804 | (eval $ac_try) 2>&5 |
| 11805 | ac_status=$? |
| 11806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11807 | (exit $ac_status); }; }; then |
| 11808 | ac_header_compiler=yes |
| 11809 | else |
| 11810 | echo "$as_me: failed program was:" >&5 |
| 11811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11812 | |
| 11813 | ac_header_compiler=no |
| 11814 | fi |
| 11815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11816 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11817 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11818 | |
| 11819 | # Is the header present? |
| 11820 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11821 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11822 | cat >conftest.$ac_ext <<_ACEOF |
| 11823 | /* confdefs.h. */ |
| 11824 | _ACEOF |
| 11825 | cat confdefs.h >>conftest.$ac_ext |
| 11826 | cat >>conftest.$ac_ext <<_ACEOF |
| 11827 | /* end confdefs.h. */ |
| 11828 | #include <$ac_header> |
| 11829 | _ACEOF |
| 11830 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11831 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11832 | ac_status=$? |
| 11833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11834 | rm -f conftest.er1 |
| 11835 | cat conftest.err >&5 |
| 11836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11837 | (exit $ac_status); } >/dev/null; then |
| 11838 | if test -s conftest.err; then |
| 11839 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11840 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11841 | else |
| 11842 | ac_cpp_err= |
| 11843 | fi |
| 11844 | else |
| 11845 | ac_cpp_err=yes |
| 11846 | fi |
| 11847 | if test -z "$ac_cpp_err"; then |
| 11848 | ac_header_preproc=yes |
| 11849 | else |
| 11850 | echo "$as_me: failed program was:" >&5 |
| 11851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11852 | |
| 11853 | ac_header_preproc=no |
| 11854 | fi |
| 11855 | rm -f conftest.err conftest.$ac_ext |
| 11856 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11857 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11858 | |
| 11859 | # So? What about this header? |
| 11860 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11861 | yes:no: ) |
| 11862 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11863 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11864 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11865 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11866 | ac_header_preproc=yes |
| 11867 | ;; |
| 11868 | no:yes:* ) |
| 11869 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11870 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11871 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11872 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11873 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11874 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11875 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11876 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11878 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11879 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11880 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11881 | ( |
| 11882 | cat <<\_ASBOX |
| 11883 | ## ------------------------------------------ ## |
| 11884 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 11885 | ## ------------------------------------------ ## |
| 11886 | _ASBOX |
| 11887 | ) | |
| 11888 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11889 | ;; |
| 11890 | esac |
| 11891 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11892 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11893 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11895 | else |
| 11896 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11897 | fi |
| 11898 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11899 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11900 | |
| 11901 | fi |
| 11902 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11903 | cat >>confdefs.h <<_ACEOF |
| 11904 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11905 | _ACEOF |
| 11906 | |
| 11907 | fi |
| 11908 | |
| 11909 | done |
| 11910 | |
| 11911 | |
| 11912 | for ac_header in term.h |
| 11913 | do |
| 11914 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11915 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11916 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11917 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11919 | else |
| 11920 | cat >conftest.$ac_ext <<_ACEOF |
| 11921 | /* confdefs.h. */ |
| 11922 | _ACEOF |
| 11923 | cat confdefs.h >>conftest.$ac_ext |
| 11924 | cat >>conftest.$ac_ext <<_ACEOF |
| 11925 | /* end confdefs.h. */ |
| 11926 | #if HAVE_CURSES_H |
| 11927 | # include <curses.h> |
| 11928 | #endif |
| 11929 | |
| 11930 | |
| 11931 | #include <$ac_header> |
| 11932 | _ACEOF |
| 11933 | rm -f conftest.$ac_objext |
| 11934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11935 | (eval $ac_compile) 2>conftest.er1 |
| 11936 | ac_status=$? |
| 11937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11938 | rm -f conftest.er1 |
| 11939 | cat conftest.err >&5 |
| 11940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11941 | (exit $ac_status); } && |
| 11942 | { ac_try='test -z "$ac_c_werror_flag" |
| 11943 | || test ! -s conftest.err' |
| 11944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11945 | (eval $ac_try) 2>&5 |
| 11946 | ac_status=$? |
| 11947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11948 | (exit $ac_status); }; } && |
| 11949 | { ac_try='test -s conftest.$ac_objext' |
| 11950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11951 | (eval $ac_try) 2>&5 |
| 11952 | ac_status=$? |
| 11953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11954 | (exit $ac_status); }; }; then |
| 11955 | eval "$as_ac_Header=yes" |
| 11956 | else |
| 11957 | echo "$as_me: failed program was:" >&5 |
| 11958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11959 | |
| 11960 | eval "$as_ac_Header=no" |
| 11961 | fi |
| 11962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11963 | fi |
| 11964 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11965 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11966 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11967 | cat >>confdefs.h <<_ACEOF |
| 11968 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11969 | _ACEOF |
| 11970 | |
| 11971 | fi |
| 11972 | |
| 11973 | done |
| 11974 | |
| 11975 | |
| 11976 | # Check for HP/UX 64-bit shared library support |
| 11977 | |
| 11978 | for ac_header in elf_hp.h |
| 11979 | do |
| 11980 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11981 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11982 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11983 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11986 | fi |
| 11987 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11988 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11989 | else |
| 11990 | # Is the header compilable? |
| 11991 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11992 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11993 | cat >conftest.$ac_ext <<_ACEOF |
| 11994 | /* confdefs.h. */ |
| 11995 | _ACEOF |
| 11996 | cat confdefs.h >>conftest.$ac_ext |
| 11997 | cat >>conftest.$ac_ext <<_ACEOF |
| 11998 | /* end confdefs.h. */ |
| 11999 | $ac_includes_default |
| 12000 | #include <$ac_header> |
| 12001 | _ACEOF |
| 12002 | rm -f conftest.$ac_objext |
| 12003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12004 | (eval $ac_compile) 2>conftest.er1 |
| 12005 | ac_status=$? |
| 12006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12007 | rm -f conftest.er1 |
| 12008 | cat conftest.err >&5 |
| 12009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12010 | (exit $ac_status); } && |
| 12011 | { ac_try='test -z "$ac_c_werror_flag" |
| 12012 | || test ! -s conftest.err' |
| 12013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12014 | (eval $ac_try) 2>&5 |
| 12015 | ac_status=$? |
| 12016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12017 | (exit $ac_status); }; } && |
| 12018 | { ac_try='test -s conftest.$ac_objext' |
| 12019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12020 | (eval $ac_try) 2>&5 |
| 12021 | ac_status=$? |
| 12022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12023 | (exit $ac_status); }; }; then |
| 12024 | ac_header_compiler=yes |
| 12025 | else |
| 12026 | echo "$as_me: failed program was:" >&5 |
| 12027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12028 | |
| 12029 | ac_header_compiler=no |
| 12030 | fi |
| 12031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12032 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12033 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12034 | |
| 12035 | # Is the header present? |
| 12036 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12037 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12038 | cat >conftest.$ac_ext <<_ACEOF |
| 12039 | /* confdefs.h. */ |
| 12040 | _ACEOF |
| 12041 | cat confdefs.h >>conftest.$ac_ext |
| 12042 | cat >>conftest.$ac_ext <<_ACEOF |
| 12043 | /* end confdefs.h. */ |
| 12044 | #include <$ac_header> |
| 12045 | _ACEOF |
| 12046 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12047 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12048 | ac_status=$? |
| 12049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12050 | rm -f conftest.er1 |
| 12051 | cat conftest.err >&5 |
| 12052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12053 | (exit $ac_status); } >/dev/null; then |
| 12054 | if test -s conftest.err; then |
| 12055 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12056 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12057 | else |
| 12058 | ac_cpp_err= |
| 12059 | fi |
| 12060 | else |
| 12061 | ac_cpp_err=yes |
| 12062 | fi |
| 12063 | if test -z "$ac_cpp_err"; then |
| 12064 | ac_header_preproc=yes |
| 12065 | else |
| 12066 | echo "$as_me: failed program was:" >&5 |
| 12067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12068 | |
| 12069 | ac_header_preproc=no |
| 12070 | fi |
| 12071 | rm -f conftest.err conftest.$ac_ext |
| 12072 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12073 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12074 | |
| 12075 | # So? What about this header? |
| 12076 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12077 | yes:no: ) |
| 12078 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12079 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12080 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12081 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12082 | ac_header_preproc=yes |
| 12083 | ;; |
| 12084 | no:yes:* ) |
| 12085 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12086 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12087 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12088 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12089 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12090 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12091 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12092 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12093 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12094 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12095 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12096 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12097 | ( |
| 12098 | cat <<\_ASBOX |
| 12099 | ## ------------------------------------------ ## |
| 12100 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12101 | ## ------------------------------------------ ## |
| 12102 | _ASBOX |
| 12103 | ) | |
| 12104 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12105 | ;; |
| 12106 | esac |
| 12107 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12108 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12109 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12111 | else |
| 12112 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12113 | fi |
| 12114 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12115 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12116 | |
| 12117 | fi |
| 12118 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12119 | cat >>confdefs.h <<_ACEOF |
| 12120 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12121 | _ACEOF |
| 12122 | |
| 12123 | fi |
| 12124 | |
| 12125 | done |
| 12126 | |
| 12127 | |
| 12128 | # FIXME: kettenis/20030102: In most cases we include these |
| 12129 | # unconditionally, so what's the point in checking these? |
| 12130 | |
| 12131 | |
| 12132 | for ac_header in ctype.h time.h |
| 12133 | do |
| 12134 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12135 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12136 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12138 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12140 | fi |
| 12141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12142 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12143 | else |
| 12144 | # Is the header compilable? |
| 12145 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12146 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 12147 | cat >conftest.$ac_ext <<_ACEOF |
| 12148 | /* confdefs.h. */ |
| 12149 | _ACEOF |
| 12150 | cat confdefs.h >>conftest.$ac_ext |
| 12151 | cat >>conftest.$ac_ext <<_ACEOF |
| 12152 | /* end confdefs.h. */ |
| 12153 | $ac_includes_default |
| 12154 | #include <$ac_header> |
| 12155 | _ACEOF |
| 12156 | rm -f conftest.$ac_objext |
| 12157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12158 | (eval $ac_compile) 2>conftest.er1 |
| 12159 | ac_status=$? |
| 12160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12161 | rm -f conftest.er1 |
| 12162 | cat conftest.err >&5 |
| 12163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12164 | (exit $ac_status); } && |
| 12165 | { ac_try='test -z "$ac_c_werror_flag" |
| 12166 | || test ! -s conftest.err' |
| 12167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12168 | (eval $ac_try) 2>&5 |
| 12169 | ac_status=$? |
| 12170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12171 | (exit $ac_status); }; } && |
| 12172 | { ac_try='test -s conftest.$ac_objext' |
| 12173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12174 | (eval $ac_try) 2>&5 |
| 12175 | ac_status=$? |
| 12176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12177 | (exit $ac_status); }; }; then |
| 12178 | ac_header_compiler=yes |
| 12179 | else |
| 12180 | echo "$as_me: failed program was:" >&5 |
| 12181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12182 | |
| 12183 | ac_header_compiler=no |
| 12184 | fi |
| 12185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12186 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12187 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12188 | |
| 12189 | # Is the header present? |
| 12190 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12191 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12192 | cat >conftest.$ac_ext <<_ACEOF |
| 12193 | /* confdefs.h. */ |
| 12194 | _ACEOF |
| 12195 | cat confdefs.h >>conftest.$ac_ext |
| 12196 | cat >>conftest.$ac_ext <<_ACEOF |
| 12197 | /* end confdefs.h. */ |
| 12198 | #include <$ac_header> |
| 12199 | _ACEOF |
| 12200 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12201 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12202 | ac_status=$? |
| 12203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12204 | rm -f conftest.er1 |
| 12205 | cat conftest.err >&5 |
| 12206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12207 | (exit $ac_status); } >/dev/null; then |
| 12208 | if test -s conftest.err; then |
| 12209 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12210 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12211 | else |
| 12212 | ac_cpp_err= |
| 12213 | fi |
| 12214 | else |
| 12215 | ac_cpp_err=yes |
| 12216 | fi |
| 12217 | if test -z "$ac_cpp_err"; then |
| 12218 | ac_header_preproc=yes |
| 12219 | else |
| 12220 | echo "$as_me: failed program was:" >&5 |
| 12221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12222 | |
| 12223 | ac_header_preproc=no |
| 12224 | fi |
| 12225 | rm -f conftest.err conftest.$ac_ext |
| 12226 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12227 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12228 | |
| 12229 | # So? What about this header? |
| 12230 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12231 | yes:no: ) |
| 12232 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12233 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12234 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12235 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12236 | ac_header_preproc=yes |
| 12237 | ;; |
| 12238 | no:yes:* ) |
| 12239 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12240 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12241 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12242 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12243 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12244 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12245 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12246 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12247 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12248 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12249 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12250 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12251 | ( |
| 12252 | cat <<\_ASBOX |
| 12253 | ## ------------------------------------------ ## |
| 12254 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12255 | ## ------------------------------------------ ## |
| 12256 | _ASBOX |
| 12257 | ) | |
| 12258 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12259 | ;; |
| 12260 | esac |
| 12261 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12262 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12263 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12265 | else |
| 12266 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12267 | fi |
| 12268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12269 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12270 | |
| 12271 | fi |
| 12272 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12273 | cat >>confdefs.h <<_ACEOF |
| 12274 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12275 | _ACEOF |
| 12276 | |
| 12277 | fi |
| 12278 | |
| 12279 | done |
| 12280 | |
| 12281 | |
| 12282 | # Create a header we can use portably to get the standard integer types. |
| 12283 | |
| 12284 | |
| 12285 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
| 12286 | |
| 12287 | acx_cv_header_stdint=stddef.h |
| 12288 | acx_cv_header_stdint_kind="(already complete)" |
| 12289 | for i in stdint.h $inttype_headers; do |
| 12290 | unset ac_cv_type_uintptr_t |
| 12291 | unset ac_cv_type_uintmax_t |
| 12292 | unset ac_cv_type_int_least32_t |
| 12293 | unset ac_cv_type_int_fast32_t |
| 12294 | unset ac_cv_type_uint64_t |
| 12295 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 |
| 12296 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
| 12297 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 |
| 12298 | if test "${ac_cv_type_uintmax_t+set}" = set; then |
| 12299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12300 | else |
| 12301 | cat >conftest.$ac_ext <<_ACEOF |
| 12302 | /* confdefs.h. */ |
| 12303 | _ACEOF |
| 12304 | cat confdefs.h >>conftest.$ac_ext |
| 12305 | cat >>conftest.$ac_ext <<_ACEOF |
| 12306 | /* end confdefs.h. */ |
| 12307 | #include <sys/types.h> |
| 12308 | #include <$i> |
| 12309 | |
| 12310 | int |
| 12311 | main () |
| 12312 | { |
| 12313 | if ((uintmax_t *) 0) |
| 12314 | return 0; |
| 12315 | if (sizeof (uintmax_t)) |
| 12316 | return 0; |
| 12317 | ; |
| 12318 | return 0; |
| 12319 | } |
| 12320 | _ACEOF |
| 12321 | rm -f conftest.$ac_objext |
| 12322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12323 | (eval $ac_compile) 2>conftest.er1 |
| 12324 | ac_status=$? |
| 12325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12326 | rm -f conftest.er1 |
| 12327 | cat conftest.err >&5 |
| 12328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12329 | (exit $ac_status); } && |
| 12330 | { ac_try='test -z "$ac_c_werror_flag" |
| 12331 | || test ! -s conftest.err' |
| 12332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12333 | (eval $ac_try) 2>&5 |
| 12334 | ac_status=$? |
| 12335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12336 | (exit $ac_status); }; } && |
| 12337 | { ac_try='test -s conftest.$ac_objext' |
| 12338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12339 | (eval $ac_try) 2>&5 |
| 12340 | ac_status=$? |
| 12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12342 | (exit $ac_status); }; }; then |
| 12343 | ac_cv_type_uintmax_t=yes |
| 12344 | else |
| 12345 | echo "$as_me: failed program was:" >&5 |
| 12346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12347 | |
| 12348 | ac_cv_type_uintmax_t=no |
| 12349 | fi |
| 12350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12351 | fi |
| 12352 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 |
| 12353 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 |
| 12354 | if test $ac_cv_type_uintmax_t = yes; then |
| 12355 | acx_cv_header_stdint=$i |
| 12356 | else |
| 12357 | continue |
| 12358 | fi |
| 12359 | |
| 12360 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12361 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 12362 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12364 | else |
| 12365 | cat >conftest.$ac_ext <<_ACEOF |
| 12366 | /* confdefs.h. */ |
| 12367 | _ACEOF |
| 12368 | cat confdefs.h >>conftest.$ac_ext |
| 12369 | cat >>conftest.$ac_ext <<_ACEOF |
| 12370 | /* end confdefs.h. */ |
| 12371 | #include <sys/types.h> |
| 12372 | #include <$i> |
| 12373 | |
| 12374 | int |
| 12375 | main () |
| 12376 | { |
| 12377 | if ((uintptr_t *) 0) |
| 12378 | return 0; |
| 12379 | if (sizeof (uintptr_t)) |
| 12380 | return 0; |
| 12381 | ; |
| 12382 | return 0; |
| 12383 | } |
| 12384 | _ACEOF |
| 12385 | rm -f conftest.$ac_objext |
| 12386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12387 | (eval $ac_compile) 2>conftest.er1 |
| 12388 | ac_status=$? |
| 12389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12390 | rm -f conftest.er1 |
| 12391 | cat conftest.err >&5 |
| 12392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12393 | (exit $ac_status); } && |
| 12394 | { ac_try='test -z "$ac_c_werror_flag" |
| 12395 | || test ! -s conftest.err' |
| 12396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12397 | (eval $ac_try) 2>&5 |
| 12398 | ac_status=$? |
| 12399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12400 | (exit $ac_status); }; } && |
| 12401 | { ac_try='test -s conftest.$ac_objext' |
| 12402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12403 | (eval $ac_try) 2>&5 |
| 12404 | ac_status=$? |
| 12405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12406 | (exit $ac_status); }; }; then |
| 12407 | ac_cv_type_uintptr_t=yes |
| 12408 | else |
| 12409 | echo "$as_me: failed program was:" >&5 |
| 12410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12411 | |
| 12412 | ac_cv_type_uintptr_t=no |
| 12413 | fi |
| 12414 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12415 | fi |
| 12416 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12417 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 12418 | if test $ac_cv_type_uintptr_t = yes; then |
| 12419 | : |
| 12420 | else |
| 12421 | acx_cv_header_stdint_kind="(mostly complete)" |
| 12422 | fi |
| 12423 | |
| 12424 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 |
| 12425 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 |
| 12426 | if test "${ac_cv_type_int_least32_t+set}" = set; then |
| 12427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12428 | else |
| 12429 | cat >conftest.$ac_ext <<_ACEOF |
| 12430 | /* confdefs.h. */ |
| 12431 | _ACEOF |
| 12432 | cat confdefs.h >>conftest.$ac_ext |
| 12433 | cat >>conftest.$ac_ext <<_ACEOF |
| 12434 | /* end confdefs.h. */ |
| 12435 | #include <sys/types.h> |
| 12436 | #include <$i> |
| 12437 | |
| 12438 | int |
| 12439 | main () |
| 12440 | { |
| 12441 | if ((int_least32_t *) 0) |
| 12442 | return 0; |
| 12443 | if (sizeof (int_least32_t)) |
| 12444 | return 0; |
| 12445 | ; |
| 12446 | return 0; |
| 12447 | } |
| 12448 | _ACEOF |
| 12449 | rm -f conftest.$ac_objext |
| 12450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12451 | (eval $ac_compile) 2>conftest.er1 |
| 12452 | ac_status=$? |
| 12453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12454 | rm -f conftest.er1 |
| 12455 | cat conftest.err >&5 |
| 12456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12457 | (exit $ac_status); } && |
| 12458 | { ac_try='test -z "$ac_c_werror_flag" |
| 12459 | || test ! -s conftest.err' |
| 12460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12461 | (eval $ac_try) 2>&5 |
| 12462 | ac_status=$? |
| 12463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12464 | (exit $ac_status); }; } && |
| 12465 | { ac_try='test -s conftest.$ac_objext' |
| 12466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12467 | (eval $ac_try) 2>&5 |
| 12468 | ac_status=$? |
| 12469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12470 | (exit $ac_status); }; }; then |
| 12471 | ac_cv_type_int_least32_t=yes |
| 12472 | else |
| 12473 | echo "$as_me: failed program was:" >&5 |
| 12474 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12475 | |
| 12476 | ac_cv_type_int_least32_t=no |
| 12477 | fi |
| 12478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12479 | fi |
| 12480 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 |
| 12481 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 |
| 12482 | if test $ac_cv_type_int_least32_t = yes; then |
| 12483 | : |
| 12484 | else |
| 12485 | acx_cv_header_stdint_kind="(mostly complete)" |
| 12486 | fi |
| 12487 | |
| 12488 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 |
| 12489 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 |
| 12490 | if test "${ac_cv_type_int_fast32_t+set}" = set; then |
| 12491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12492 | else |
| 12493 | cat >conftest.$ac_ext <<_ACEOF |
| 12494 | /* confdefs.h. */ |
| 12495 | _ACEOF |
| 12496 | cat confdefs.h >>conftest.$ac_ext |
| 12497 | cat >>conftest.$ac_ext <<_ACEOF |
| 12498 | /* end confdefs.h. */ |
| 12499 | #include <sys/types.h> |
| 12500 | #include <$i> |
| 12501 | |
| 12502 | int |
| 12503 | main () |
| 12504 | { |
| 12505 | if ((int_fast32_t *) 0) |
| 12506 | return 0; |
| 12507 | if (sizeof (int_fast32_t)) |
| 12508 | return 0; |
| 12509 | ; |
| 12510 | return 0; |
| 12511 | } |
| 12512 | _ACEOF |
| 12513 | rm -f conftest.$ac_objext |
| 12514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12515 | (eval $ac_compile) 2>conftest.er1 |
| 12516 | ac_status=$? |
| 12517 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12518 | rm -f conftest.er1 |
| 12519 | cat conftest.err >&5 |
| 12520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12521 | (exit $ac_status); } && |
| 12522 | { ac_try='test -z "$ac_c_werror_flag" |
| 12523 | || test ! -s conftest.err' |
| 12524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12525 | (eval $ac_try) 2>&5 |
| 12526 | ac_status=$? |
| 12527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12528 | (exit $ac_status); }; } && |
| 12529 | { ac_try='test -s conftest.$ac_objext' |
| 12530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12531 | (eval $ac_try) 2>&5 |
| 12532 | ac_status=$? |
| 12533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12534 | (exit $ac_status); }; }; then |
| 12535 | ac_cv_type_int_fast32_t=yes |
| 12536 | else |
| 12537 | echo "$as_me: failed program was:" >&5 |
| 12538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12539 | |
| 12540 | ac_cv_type_int_fast32_t=no |
| 12541 | fi |
| 12542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12543 | fi |
| 12544 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 |
| 12545 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 |
| 12546 | if test $ac_cv_type_int_fast32_t = yes; then |
| 12547 | : |
| 12548 | else |
| 12549 | acx_cv_header_stdint_kind="(mostly complete)" |
| 12550 | fi |
| 12551 | |
| 12552 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 12553 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 12554 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 12555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12556 | else |
| 12557 | cat >conftest.$ac_ext <<_ACEOF |
| 12558 | /* confdefs.h. */ |
| 12559 | _ACEOF |
| 12560 | cat confdefs.h >>conftest.$ac_ext |
| 12561 | cat >>conftest.$ac_ext <<_ACEOF |
| 12562 | /* end confdefs.h. */ |
| 12563 | #include <sys/types.h> |
| 12564 | #include <$i> |
| 12565 | |
| 12566 | int |
| 12567 | main () |
| 12568 | { |
| 12569 | if ((uint64_t *) 0) |
| 12570 | return 0; |
| 12571 | if (sizeof (uint64_t)) |
| 12572 | return 0; |
| 12573 | ; |
| 12574 | return 0; |
| 12575 | } |
| 12576 | _ACEOF |
| 12577 | rm -f conftest.$ac_objext |
| 12578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12579 | (eval $ac_compile) 2>conftest.er1 |
| 12580 | ac_status=$? |
| 12581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12582 | rm -f conftest.er1 |
| 12583 | cat conftest.err >&5 |
| 12584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12585 | (exit $ac_status); } && |
| 12586 | { ac_try='test -z "$ac_c_werror_flag" |
| 12587 | || test ! -s conftest.err' |
| 12588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12589 | (eval $ac_try) 2>&5 |
| 12590 | ac_status=$? |
| 12591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12592 | (exit $ac_status); }; } && |
| 12593 | { ac_try='test -s conftest.$ac_objext' |
| 12594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12595 | (eval $ac_try) 2>&5 |
| 12596 | ac_status=$? |
| 12597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12598 | (exit $ac_status); }; }; then |
| 12599 | ac_cv_type_uint64_t=yes |
| 12600 | else |
| 12601 | echo "$as_me: failed program was:" >&5 |
| 12602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12603 | |
| 12604 | ac_cv_type_uint64_t=no |
| 12605 | fi |
| 12606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12607 | fi |
| 12608 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 12609 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 12610 | if test $ac_cv_type_uint64_t = yes; then |
| 12611 | : |
| 12612 | else |
| 12613 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
| 12614 | fi |
| 12615 | |
| 12616 | break |
| 12617 | done |
| 12618 | if test "$acx_cv_header_stdint" = stddef.h; then |
| 12619 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
| 12620 | for i in stdint.h $inttype_headers; do |
| 12621 | unset ac_cv_type_uintptr_t |
| 12622 | unset ac_cv_type_uint32_t |
| 12623 | unset ac_cv_type_uint64_t |
| 12624 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 |
| 12625 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 12626 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 |
| 12627 | if test "${ac_cv_type_uint32_t+set}" = set; then |
| 12628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12629 | else |
| 12630 | cat >conftest.$ac_ext <<_ACEOF |
| 12631 | /* confdefs.h. */ |
| 12632 | _ACEOF |
| 12633 | cat confdefs.h >>conftest.$ac_ext |
| 12634 | cat >>conftest.$ac_ext <<_ACEOF |
| 12635 | /* end confdefs.h. */ |
| 12636 | #include <sys/types.h> |
| 12637 | #include <$i> |
| 12638 | |
| 12639 | int |
| 12640 | main () |
| 12641 | { |
| 12642 | if ((uint32_t *) 0) |
| 12643 | return 0; |
| 12644 | if (sizeof (uint32_t)) |
| 12645 | return 0; |
| 12646 | ; |
| 12647 | return 0; |
| 12648 | } |
| 12649 | _ACEOF |
| 12650 | rm -f conftest.$ac_objext |
| 12651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12652 | (eval $ac_compile) 2>conftest.er1 |
| 12653 | ac_status=$? |
| 12654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12655 | rm -f conftest.er1 |
| 12656 | cat conftest.err >&5 |
| 12657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12658 | (exit $ac_status); } && |
| 12659 | { ac_try='test -z "$ac_c_werror_flag" |
| 12660 | || test ! -s conftest.err' |
| 12661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12662 | (eval $ac_try) 2>&5 |
| 12663 | ac_status=$? |
| 12664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12665 | (exit $ac_status); }; } && |
| 12666 | { ac_try='test -s conftest.$ac_objext' |
| 12667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12668 | (eval $ac_try) 2>&5 |
| 12669 | ac_status=$? |
| 12670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12671 | (exit $ac_status); }; }; then |
| 12672 | ac_cv_type_uint32_t=yes |
| 12673 | else |
| 12674 | echo "$as_me: failed program was:" >&5 |
| 12675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12676 | |
| 12677 | ac_cv_type_uint32_t=no |
| 12678 | fi |
| 12679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12680 | fi |
| 12681 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
| 12682 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 |
| 12683 | if test $ac_cv_type_uint32_t = yes; then |
| 12684 | acx_cv_header_stdint=$i |
| 12685 | else |
| 12686 | continue |
| 12687 | fi |
| 12688 | |
| 12689 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 12690 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 12691 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 12692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12693 | else |
| 12694 | cat >conftest.$ac_ext <<_ACEOF |
| 12695 | /* confdefs.h. */ |
| 12696 | _ACEOF |
| 12697 | cat confdefs.h >>conftest.$ac_ext |
| 12698 | cat >>conftest.$ac_ext <<_ACEOF |
| 12699 | /* end confdefs.h. */ |
| 12700 | #include <sys/types.h> |
| 12701 | #include <$i> |
| 12702 | |
| 12703 | int |
| 12704 | main () |
| 12705 | { |
| 12706 | if ((uint64_t *) 0) |
| 12707 | return 0; |
| 12708 | if (sizeof (uint64_t)) |
| 12709 | return 0; |
| 12710 | ; |
| 12711 | return 0; |
| 12712 | } |
| 12713 | _ACEOF |
| 12714 | rm -f conftest.$ac_objext |
| 12715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12716 | (eval $ac_compile) 2>conftest.er1 |
| 12717 | ac_status=$? |
| 12718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12719 | rm -f conftest.er1 |
| 12720 | cat conftest.err >&5 |
| 12721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12722 | (exit $ac_status); } && |
| 12723 | { ac_try='test -z "$ac_c_werror_flag" |
| 12724 | || test ! -s conftest.err' |
| 12725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12726 | (eval $ac_try) 2>&5 |
| 12727 | ac_status=$? |
| 12728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12729 | (exit $ac_status); }; } && |
| 12730 | { ac_try='test -s conftest.$ac_objext' |
| 12731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12732 | (eval $ac_try) 2>&5 |
| 12733 | ac_status=$? |
| 12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12735 | (exit $ac_status); }; }; then |
| 12736 | ac_cv_type_uint64_t=yes |
| 12737 | else |
| 12738 | echo "$as_me: failed program was:" >&5 |
| 12739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12740 | |
| 12741 | ac_cv_type_uint64_t=no |
| 12742 | fi |
| 12743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12744 | fi |
| 12745 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 12746 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 12747 | |
| 12748 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 12749 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 12750 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 12751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12752 | else |
| 12753 | cat >conftest.$ac_ext <<_ACEOF |
| 12754 | /* confdefs.h. */ |
| 12755 | _ACEOF |
| 12756 | cat confdefs.h >>conftest.$ac_ext |
| 12757 | cat >>conftest.$ac_ext <<_ACEOF |
| 12758 | /* end confdefs.h. */ |
| 12759 | #include <sys/types.h> |
| 12760 | #include <$i> |
| 12761 | |
| 12762 | int |
| 12763 | main () |
| 12764 | { |
| 12765 | if ((uintptr_t *) 0) |
| 12766 | return 0; |
| 12767 | if (sizeof (uintptr_t)) |
| 12768 | return 0; |
| 12769 | ; |
| 12770 | return 0; |
| 12771 | } |
| 12772 | _ACEOF |
| 12773 | rm -f conftest.$ac_objext |
| 12774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12775 | (eval $ac_compile) 2>conftest.er1 |
| 12776 | ac_status=$? |
| 12777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12778 | rm -f conftest.er1 |
| 12779 | cat conftest.err >&5 |
| 12780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12781 | (exit $ac_status); } && |
| 12782 | { ac_try='test -z "$ac_c_werror_flag" |
| 12783 | || test ! -s conftest.err' |
| 12784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12785 | (eval $ac_try) 2>&5 |
| 12786 | ac_status=$? |
| 12787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12788 | (exit $ac_status); }; } && |
| 12789 | { ac_try='test -s conftest.$ac_objext' |
| 12790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12791 | (eval $ac_try) 2>&5 |
| 12792 | ac_status=$? |
| 12793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12794 | (exit $ac_status); }; }; then |
| 12795 | ac_cv_type_uintptr_t=yes |
| 12796 | else |
| 12797 | echo "$as_me: failed program was:" >&5 |
| 12798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12799 | |
| 12800 | ac_cv_type_uintptr_t=no |
| 12801 | fi |
| 12802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12803 | fi |
| 12804 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 12805 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 12806 | |
| 12807 | break |
| 12808 | done |
| 12809 | fi |
| 12810 | if test "$acx_cv_header_stdint" = stddef.h; then |
| 12811 | acx_cv_header_stdint_kind="(u_intXX_t style)" |
| 12812 | for i in sys/types.h $inttype_headers; do |
| 12813 | unset ac_cv_type_u_int32_t |
| 12814 | unset ac_cv_type_u_int64_t |
| 12815 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 |
| 12816 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
| 12817 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 |
| 12818 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
| 12819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12820 | else |
| 12821 | cat >conftest.$ac_ext <<_ACEOF |
| 12822 | /* confdefs.h. */ |
| 12823 | _ACEOF |
| 12824 | cat confdefs.h >>conftest.$ac_ext |
| 12825 | cat >>conftest.$ac_ext <<_ACEOF |
| 12826 | /* end confdefs.h. */ |
| 12827 | #include <sys/types.h> |
| 12828 | #include <$i> |
| 12829 | |
| 12830 | int |
| 12831 | main () |
| 12832 | { |
| 12833 | if ((u_int32_t *) 0) |
| 12834 | return 0; |
| 12835 | if (sizeof (u_int32_t)) |
| 12836 | return 0; |
| 12837 | ; |
| 12838 | return 0; |
| 12839 | } |
| 12840 | _ACEOF |
| 12841 | rm -f conftest.$ac_objext |
| 12842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12843 | (eval $ac_compile) 2>conftest.er1 |
| 12844 | ac_status=$? |
| 12845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12846 | rm -f conftest.er1 |
| 12847 | cat conftest.err >&5 |
| 12848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12849 | (exit $ac_status); } && |
| 12850 | { ac_try='test -z "$ac_c_werror_flag" |
| 12851 | || test ! -s conftest.err' |
| 12852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12853 | (eval $ac_try) 2>&5 |
| 12854 | ac_status=$? |
| 12855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12856 | (exit $ac_status); }; } && |
| 12857 | { ac_try='test -s conftest.$ac_objext' |
| 12858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12859 | (eval $ac_try) 2>&5 |
| 12860 | ac_status=$? |
| 12861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12862 | (exit $ac_status); }; }; then |
| 12863 | ac_cv_type_u_int32_t=yes |
| 12864 | else |
| 12865 | echo "$as_me: failed program was:" >&5 |
| 12866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12867 | |
| 12868 | ac_cv_type_u_int32_t=no |
| 12869 | fi |
| 12870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12871 | fi |
| 12872 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
| 12873 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 |
| 12874 | if test $ac_cv_type_u_int32_t = yes; then |
| 12875 | acx_cv_header_stdint=$i |
| 12876 | else |
| 12877 | continue |
| 12878 | fi |
| 12879 | |
| 12880 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 12881 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 |
| 12882 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 12883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12884 | else |
| 12885 | cat >conftest.$ac_ext <<_ACEOF |
| 12886 | /* confdefs.h. */ |
| 12887 | _ACEOF |
| 12888 | cat confdefs.h >>conftest.$ac_ext |
| 12889 | cat >>conftest.$ac_ext <<_ACEOF |
| 12890 | /* end confdefs.h. */ |
| 12891 | #include <sys/types.h> |
| 12892 | #include <$i> |
| 12893 | |
| 12894 | int |
| 12895 | main () |
| 12896 | { |
| 12897 | if ((u_int64_t *) 0) |
| 12898 | return 0; |
| 12899 | if (sizeof (u_int64_t)) |
| 12900 | return 0; |
| 12901 | ; |
| 12902 | return 0; |
| 12903 | } |
| 12904 | _ACEOF |
| 12905 | rm -f conftest.$ac_objext |
| 12906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12907 | (eval $ac_compile) 2>conftest.er1 |
| 12908 | ac_status=$? |
| 12909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12910 | rm -f conftest.er1 |
| 12911 | cat conftest.err >&5 |
| 12912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12913 | (exit $ac_status); } && |
| 12914 | { ac_try='test -z "$ac_c_werror_flag" |
| 12915 | || test ! -s conftest.err' |
| 12916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12917 | (eval $ac_try) 2>&5 |
| 12918 | ac_status=$? |
| 12919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12920 | (exit $ac_status); }; } && |
| 12921 | { ac_try='test -s conftest.$ac_objext' |
| 12922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12923 | (eval $ac_try) 2>&5 |
| 12924 | ac_status=$? |
| 12925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12926 | (exit $ac_status); }; }; then |
| 12927 | ac_cv_type_u_int64_t=yes |
| 12928 | else |
| 12929 | echo "$as_me: failed program was:" >&5 |
| 12930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12931 | |
| 12932 | ac_cv_type_u_int64_t=no |
| 12933 | fi |
| 12934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12935 | fi |
| 12936 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 12937 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 |
| 12938 | |
| 12939 | break |
| 12940 | done |
| 12941 | fi |
| 12942 | if test "$acx_cv_header_stdint" = stddef.h; then |
| 12943 | acx_cv_header_stdint_kind="(using manual detection)" |
| 12944 | fi |
| 12945 | |
| 12946 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
| 12947 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no |
| 12948 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no |
| 12949 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no |
| 12950 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no |
| 12951 | |
| 12952 | # ----------------- Summarize what we found so far |
| 12953 | |
| 12954 | echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5 |
| 12955 | echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6 |
| 12956 | |
| 12957 | case `$as_basename gdb_stdint.h || |
| 12958 | $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ |
| 12959 | Xgdb_stdint.h : 'X\(//\)$' \| \ |
| 12960 | Xgdb_stdint.h : 'X\(/\)$' \| \ |
| 12961 | . : '\(.\)' 2>/dev/null || |
| 12962 | echo X/gdb_stdint.h | |
| 12963 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 12964 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 12965 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 12966 | s/.*/./; q'` in |
| 12967 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
| 12968 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; |
| 12969 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
| 12970 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; |
| 12971 | *) ;; |
| 12972 | esac |
| 12973 | |
| 12974 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
| 12975 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 |
| 12976 | |
| 12977 | # ----------------- done included file, check C basic types -------- |
| 12978 | |
| 12979 | # Lacking an uintptr_t? Test size of void * |
| 12980 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in |
| 12981 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 |
| 12982 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 12983 | if test "${ac_cv_type_void_p+set}" = set; then |
| 12984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12985 | else |
| 12986 | cat >conftest.$ac_ext <<_ACEOF |
| 12987 | /* confdefs.h. */ |
| 12988 | _ACEOF |
| 12989 | cat confdefs.h >>conftest.$ac_ext |
| 12990 | cat >>conftest.$ac_ext <<_ACEOF |
| 12991 | /* end confdefs.h. */ |
| 12992 | $ac_includes_default |
| 12993 | int |
| 12994 | main () |
| 12995 | { |
| 12996 | if ((void * *) 0) |
| 12997 | return 0; |
| 12998 | if (sizeof (void *)) |
| 12999 | return 0; |
| 13000 | ; |
| 13001 | return 0; |
| 13002 | } |
| 13003 | _ACEOF |
| 13004 | rm -f conftest.$ac_objext |
| 13005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13006 | (eval $ac_compile) 2>conftest.er1 |
| 13007 | ac_status=$? |
| 13008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13009 | rm -f conftest.er1 |
| 13010 | cat conftest.err >&5 |
| 13011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13012 | (exit $ac_status); } && |
| 13013 | { ac_try='test -z "$ac_c_werror_flag" |
| 13014 | || test ! -s conftest.err' |
| 13015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13016 | (eval $ac_try) 2>&5 |
| 13017 | ac_status=$? |
| 13018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13019 | (exit $ac_status); }; } && |
| 13020 | { ac_try='test -s conftest.$ac_objext' |
| 13021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13022 | (eval $ac_try) 2>&5 |
| 13023 | ac_status=$? |
| 13024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13025 | (exit $ac_status); }; }; then |
| 13026 | ac_cv_type_void_p=yes |
| 13027 | else |
| 13028 | echo "$as_me: failed program was:" >&5 |
| 13029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13030 | |
| 13031 | ac_cv_type_void_p=no |
| 13032 | fi |
| 13033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13034 | fi |
| 13035 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 13036 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 13037 | |
| 13038 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 13039 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 13040 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 13041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13042 | else |
| 13043 | if test "$ac_cv_type_void_p" = yes; then |
| 13044 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 13045 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13046 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13047 | # This bug is HP SR number 8606223364. |
| 13048 | if test "$cross_compiling" = yes; then |
| 13049 | # Depending upon the size, compute the lo and hi bounds. |
| 13050 | cat >conftest.$ac_ext <<_ACEOF |
| 13051 | /* confdefs.h. */ |
| 13052 | _ACEOF |
| 13053 | cat confdefs.h >>conftest.$ac_ext |
| 13054 | cat >>conftest.$ac_ext <<_ACEOF |
| 13055 | /* end confdefs.h. */ |
| 13056 | $ac_includes_default |
| 13057 | int |
| 13058 | main () |
| 13059 | { |
| 13060 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 13061 | test_array [0] = 0 |
| 13062 | |
| 13063 | ; |
| 13064 | return 0; |
| 13065 | } |
| 13066 | _ACEOF |
| 13067 | rm -f conftest.$ac_objext |
| 13068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13069 | (eval $ac_compile) 2>conftest.er1 |
| 13070 | ac_status=$? |
| 13071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13072 | rm -f conftest.er1 |
| 13073 | cat conftest.err >&5 |
| 13074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13075 | (exit $ac_status); } && |
| 13076 | { ac_try='test -z "$ac_c_werror_flag" |
| 13077 | || test ! -s conftest.err' |
| 13078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13079 | (eval $ac_try) 2>&5 |
| 13080 | ac_status=$? |
| 13081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13082 | (exit $ac_status); }; } && |
| 13083 | { ac_try='test -s conftest.$ac_objext' |
| 13084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13085 | (eval $ac_try) 2>&5 |
| 13086 | ac_status=$? |
| 13087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13088 | (exit $ac_status); }; }; then |
| 13089 | ac_lo=0 ac_mid=0 |
| 13090 | while :; do |
| 13091 | cat >conftest.$ac_ext <<_ACEOF |
| 13092 | /* confdefs.h. */ |
| 13093 | _ACEOF |
| 13094 | cat confdefs.h >>conftest.$ac_ext |
| 13095 | cat >>conftest.$ac_ext <<_ACEOF |
| 13096 | /* end confdefs.h. */ |
| 13097 | $ac_includes_default |
| 13098 | int |
| 13099 | main () |
| 13100 | { |
| 13101 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 13102 | test_array [0] = 0 |
| 13103 | |
| 13104 | ; |
| 13105 | return 0; |
| 13106 | } |
| 13107 | _ACEOF |
| 13108 | rm -f conftest.$ac_objext |
| 13109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13110 | (eval $ac_compile) 2>conftest.er1 |
| 13111 | ac_status=$? |
| 13112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13113 | rm -f conftest.er1 |
| 13114 | cat conftest.err >&5 |
| 13115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13116 | (exit $ac_status); } && |
| 13117 | { ac_try='test -z "$ac_c_werror_flag" |
| 13118 | || test ! -s conftest.err' |
| 13119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13120 | (eval $ac_try) 2>&5 |
| 13121 | ac_status=$? |
| 13122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13123 | (exit $ac_status); }; } && |
| 13124 | { ac_try='test -s conftest.$ac_objext' |
| 13125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13126 | (eval $ac_try) 2>&5 |
| 13127 | ac_status=$? |
| 13128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13129 | (exit $ac_status); }; }; then |
| 13130 | ac_hi=$ac_mid; break |
| 13131 | else |
| 13132 | echo "$as_me: failed program was:" >&5 |
| 13133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13134 | |
| 13135 | ac_lo=`expr $ac_mid + 1` |
| 13136 | if test $ac_lo -le $ac_mid; then |
| 13137 | ac_lo= ac_hi= |
| 13138 | break |
| 13139 | fi |
| 13140 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13141 | fi |
| 13142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13143 | done |
| 13144 | else |
| 13145 | echo "$as_me: failed program was:" >&5 |
| 13146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13147 | |
| 13148 | cat >conftest.$ac_ext <<_ACEOF |
| 13149 | /* confdefs.h. */ |
| 13150 | _ACEOF |
| 13151 | cat confdefs.h >>conftest.$ac_ext |
| 13152 | cat >>conftest.$ac_ext <<_ACEOF |
| 13153 | /* end confdefs.h. */ |
| 13154 | $ac_includes_default |
| 13155 | int |
| 13156 | main () |
| 13157 | { |
| 13158 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 13159 | test_array [0] = 0 |
| 13160 | |
| 13161 | ; |
| 13162 | return 0; |
| 13163 | } |
| 13164 | _ACEOF |
| 13165 | rm -f conftest.$ac_objext |
| 13166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13167 | (eval $ac_compile) 2>conftest.er1 |
| 13168 | ac_status=$? |
| 13169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13170 | rm -f conftest.er1 |
| 13171 | cat conftest.err >&5 |
| 13172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13173 | (exit $ac_status); } && |
| 13174 | { ac_try='test -z "$ac_c_werror_flag" |
| 13175 | || test ! -s conftest.err' |
| 13176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13177 | (eval $ac_try) 2>&5 |
| 13178 | ac_status=$? |
| 13179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13180 | (exit $ac_status); }; } && |
| 13181 | { ac_try='test -s conftest.$ac_objext' |
| 13182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13183 | (eval $ac_try) 2>&5 |
| 13184 | ac_status=$? |
| 13185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13186 | (exit $ac_status); }; }; then |
| 13187 | ac_hi=-1 ac_mid=-1 |
| 13188 | while :; do |
| 13189 | cat >conftest.$ac_ext <<_ACEOF |
| 13190 | /* confdefs.h. */ |
| 13191 | _ACEOF |
| 13192 | cat confdefs.h >>conftest.$ac_ext |
| 13193 | cat >>conftest.$ac_ext <<_ACEOF |
| 13194 | /* end confdefs.h. */ |
| 13195 | $ac_includes_default |
| 13196 | int |
| 13197 | main () |
| 13198 | { |
| 13199 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 13200 | test_array [0] = 0 |
| 13201 | |
| 13202 | ; |
| 13203 | return 0; |
| 13204 | } |
| 13205 | _ACEOF |
| 13206 | rm -f conftest.$ac_objext |
| 13207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13208 | (eval $ac_compile) 2>conftest.er1 |
| 13209 | ac_status=$? |
| 13210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13211 | rm -f conftest.er1 |
| 13212 | cat conftest.err >&5 |
| 13213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13214 | (exit $ac_status); } && |
| 13215 | { ac_try='test -z "$ac_c_werror_flag" |
| 13216 | || test ! -s conftest.err' |
| 13217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13218 | (eval $ac_try) 2>&5 |
| 13219 | ac_status=$? |
| 13220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13221 | (exit $ac_status); }; } && |
| 13222 | { ac_try='test -s conftest.$ac_objext' |
| 13223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13224 | (eval $ac_try) 2>&5 |
| 13225 | ac_status=$? |
| 13226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13227 | (exit $ac_status); }; }; then |
| 13228 | ac_lo=$ac_mid; break |
| 13229 | else |
| 13230 | echo "$as_me: failed program was:" >&5 |
| 13231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13232 | |
| 13233 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13234 | if test $ac_mid -le $ac_hi; then |
| 13235 | ac_lo= ac_hi= |
| 13236 | break |
| 13237 | fi |
| 13238 | ac_mid=`expr 2 '*' $ac_mid` |
| 13239 | fi |
| 13240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13241 | done |
| 13242 | else |
| 13243 | echo "$as_me: failed program was:" >&5 |
| 13244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13245 | |
| 13246 | ac_lo= ac_hi= |
| 13247 | fi |
| 13248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13249 | fi |
| 13250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13251 | # Binary search between lo and hi bounds. |
| 13252 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13253 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13254 | cat >conftest.$ac_ext <<_ACEOF |
| 13255 | /* confdefs.h. */ |
| 13256 | _ACEOF |
| 13257 | cat confdefs.h >>conftest.$ac_ext |
| 13258 | cat >>conftest.$ac_ext <<_ACEOF |
| 13259 | /* end confdefs.h. */ |
| 13260 | $ac_includes_default |
| 13261 | int |
| 13262 | main () |
| 13263 | { |
| 13264 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 13265 | test_array [0] = 0 |
| 13266 | |
| 13267 | ; |
| 13268 | return 0; |
| 13269 | } |
| 13270 | _ACEOF |
| 13271 | rm -f conftest.$ac_objext |
| 13272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13273 | (eval $ac_compile) 2>conftest.er1 |
| 13274 | ac_status=$? |
| 13275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13276 | rm -f conftest.er1 |
| 13277 | cat conftest.err >&5 |
| 13278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13279 | (exit $ac_status); } && |
| 13280 | { ac_try='test -z "$ac_c_werror_flag" |
| 13281 | || test ! -s conftest.err' |
| 13282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13283 | (eval $ac_try) 2>&5 |
| 13284 | ac_status=$? |
| 13285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13286 | (exit $ac_status); }; } && |
| 13287 | { ac_try='test -s conftest.$ac_objext' |
| 13288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13289 | (eval $ac_try) 2>&5 |
| 13290 | ac_status=$? |
| 13291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13292 | (exit $ac_status); }; }; then |
| 13293 | ac_hi=$ac_mid |
| 13294 | else |
| 13295 | echo "$as_me: failed program was:" >&5 |
| 13296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13297 | |
| 13298 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13299 | fi |
| 13300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13301 | done |
| 13302 | case $ac_lo in |
| 13303 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 13304 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 13305 | See \`config.log' for more details." >&5 |
| 13306 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 13307 | See \`config.log' for more details." >&2;} |
| 13308 | { (exit 1); exit 1; }; } ;; |
| 13309 | esac |
| 13310 | else |
| 13311 | if test "$cross_compiling" = yes; then |
| 13312 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 13313 | See \`config.log' for more details." >&5 |
| 13314 | echo "$as_me: error: cannot run test program while cross compiling |
| 13315 | See \`config.log' for more details." >&2;} |
| 13316 | { (exit 1); exit 1; }; } |
| 13317 | else |
| 13318 | cat >conftest.$ac_ext <<_ACEOF |
| 13319 | /* confdefs.h. */ |
| 13320 | _ACEOF |
| 13321 | cat confdefs.h >>conftest.$ac_ext |
| 13322 | cat >>conftest.$ac_ext <<_ACEOF |
| 13323 | /* end confdefs.h. */ |
| 13324 | $ac_includes_default |
| 13325 | long longval () { return (long) (sizeof (void *)); } |
| 13326 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
| 13327 | #include <stdio.h> |
| 13328 | #include <stdlib.h> |
| 13329 | int |
| 13330 | main () |
| 13331 | { |
| 13332 | |
| 13333 | FILE *f = fopen ("conftest.val", "w"); |
| 13334 | if (! f) |
| 13335 | exit (1); |
| 13336 | if (((long) (sizeof (void *))) < 0) |
| 13337 | { |
| 13338 | long i = longval (); |
| 13339 | if (i != ((long) (sizeof (void *)))) |
| 13340 | exit (1); |
| 13341 | fprintf (f, "%ld\n", i); |
| 13342 | } |
| 13343 | else |
| 13344 | { |
| 13345 | unsigned long i = ulongval (); |
| 13346 | if (i != ((long) (sizeof (void *)))) |
| 13347 | exit (1); |
| 13348 | fprintf (f, "%lu\n", i); |
| 13349 | } |
| 13350 | exit (ferror (f) || fclose (f) != 0); |
| 13351 | |
| 13352 | ; |
| 13353 | return 0; |
| 13354 | } |
| 13355 | _ACEOF |
| 13356 | rm -f conftest$ac_exeext |
| 13357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13358 | (eval $ac_link) 2>&5 |
| 13359 | ac_status=$? |
| 13360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13361 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13363 | (eval $ac_try) 2>&5 |
| 13364 | ac_status=$? |
| 13365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13366 | (exit $ac_status); }; }; then |
| 13367 | ac_cv_sizeof_void_p=`cat conftest.val` |
| 13368 | else |
| 13369 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13370 | echo "$as_me: failed program was:" >&5 |
| 13371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13372 | |
| 13373 | ( exit $ac_status ) |
| 13374 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 13375 | See \`config.log' for more details." >&5 |
| 13376 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 13377 | See \`config.log' for more details." >&2;} |
| 13378 | { (exit 1); exit 1; }; } |
| 13379 | fi |
| 13380 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13381 | fi |
| 13382 | fi |
| 13383 | rm -f conftest.val |
| 13384 | else |
| 13385 | ac_cv_sizeof_void_p=0 |
| 13386 | fi |
| 13387 | fi |
| 13388 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 13389 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 13390 | cat >>confdefs.h <<_ACEOF |
| 13391 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 13392 | _ACEOF |
| 13393 | |
| 13394 | ;; |
| 13395 | esac |
| 13396 | |
| 13397 | # Lacking an uint64_t? Test size of long |
| 13398 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in |
| 13399 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 |
| 13400 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 13401 | if test "${ac_cv_type_long+set}" = set; then |
| 13402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13403 | else |
| 13404 | cat >conftest.$ac_ext <<_ACEOF |
| 13405 | /* confdefs.h. */ |
| 13406 | _ACEOF |
| 13407 | cat confdefs.h >>conftest.$ac_ext |
| 13408 | cat >>conftest.$ac_ext <<_ACEOF |
| 13409 | /* end confdefs.h. */ |
| 13410 | $ac_includes_default |
| 13411 | int |
| 13412 | main () |
| 13413 | { |
| 13414 | if ((long *) 0) |
| 13415 | return 0; |
| 13416 | if (sizeof (long)) |
| 13417 | return 0; |
| 13418 | ; |
| 13419 | return 0; |
| 13420 | } |
| 13421 | _ACEOF |
| 13422 | rm -f conftest.$ac_objext |
| 13423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13424 | (eval $ac_compile) 2>conftest.er1 |
| 13425 | ac_status=$? |
| 13426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13427 | rm -f conftest.er1 |
| 13428 | cat conftest.err >&5 |
| 13429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13430 | (exit $ac_status); } && |
| 13431 | { ac_try='test -z "$ac_c_werror_flag" |
| 13432 | || test ! -s conftest.err' |
| 13433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13434 | (eval $ac_try) 2>&5 |
| 13435 | ac_status=$? |
| 13436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13437 | (exit $ac_status); }; } && |
| 13438 | { ac_try='test -s conftest.$ac_objext' |
| 13439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13440 | (eval $ac_try) 2>&5 |
| 13441 | ac_status=$? |
| 13442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13443 | (exit $ac_status); }; }; then |
| 13444 | ac_cv_type_long=yes |
| 13445 | else |
| 13446 | echo "$as_me: failed program was:" >&5 |
| 13447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13448 | |
| 13449 | ac_cv_type_long=no |
| 13450 | fi |
| 13451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13452 | fi |
| 13453 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 13454 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 13455 | |
| 13456 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 13457 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 13458 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 13459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13460 | else |
| 13461 | if test "$ac_cv_type_long" = yes; then |
| 13462 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 13463 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13464 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13465 | # This bug is HP SR number 8606223364. |
| 13466 | if test "$cross_compiling" = yes; then |
| 13467 | # Depending upon the size, compute the lo and hi bounds. |
| 13468 | cat >conftest.$ac_ext <<_ACEOF |
| 13469 | /* confdefs.h. */ |
| 13470 | _ACEOF |
| 13471 | cat confdefs.h >>conftest.$ac_ext |
| 13472 | cat >>conftest.$ac_ext <<_ACEOF |
| 13473 | /* end confdefs.h. */ |
| 13474 | $ac_includes_default |
| 13475 | int |
| 13476 | main () |
| 13477 | { |
| 13478 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 13479 | test_array [0] = 0 |
| 13480 | |
| 13481 | ; |
| 13482 | return 0; |
| 13483 | } |
| 13484 | _ACEOF |
| 13485 | rm -f conftest.$ac_objext |
| 13486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13487 | (eval $ac_compile) 2>conftest.er1 |
| 13488 | ac_status=$? |
| 13489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13490 | rm -f conftest.er1 |
| 13491 | cat conftest.err >&5 |
| 13492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13493 | (exit $ac_status); } && |
| 13494 | { ac_try='test -z "$ac_c_werror_flag" |
| 13495 | || test ! -s conftest.err' |
| 13496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13497 | (eval $ac_try) 2>&5 |
| 13498 | ac_status=$? |
| 13499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13500 | (exit $ac_status); }; } && |
| 13501 | { ac_try='test -s conftest.$ac_objext' |
| 13502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13503 | (eval $ac_try) 2>&5 |
| 13504 | ac_status=$? |
| 13505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13506 | (exit $ac_status); }; }; then |
| 13507 | ac_lo=0 ac_mid=0 |
| 13508 | while :; do |
| 13509 | cat >conftest.$ac_ext <<_ACEOF |
| 13510 | /* confdefs.h. */ |
| 13511 | _ACEOF |
| 13512 | cat confdefs.h >>conftest.$ac_ext |
| 13513 | cat >>conftest.$ac_ext <<_ACEOF |
| 13514 | /* end confdefs.h. */ |
| 13515 | $ac_includes_default |
| 13516 | int |
| 13517 | main () |
| 13518 | { |
| 13519 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 13520 | test_array [0] = 0 |
| 13521 | |
| 13522 | ; |
| 13523 | return 0; |
| 13524 | } |
| 13525 | _ACEOF |
| 13526 | rm -f conftest.$ac_objext |
| 13527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13528 | (eval $ac_compile) 2>conftest.er1 |
| 13529 | ac_status=$? |
| 13530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13531 | rm -f conftest.er1 |
| 13532 | cat conftest.err >&5 |
| 13533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13534 | (exit $ac_status); } && |
| 13535 | { ac_try='test -z "$ac_c_werror_flag" |
| 13536 | || test ! -s conftest.err' |
| 13537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13538 | (eval $ac_try) 2>&5 |
| 13539 | ac_status=$? |
| 13540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13541 | (exit $ac_status); }; } && |
| 13542 | { ac_try='test -s conftest.$ac_objext' |
| 13543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13544 | (eval $ac_try) 2>&5 |
| 13545 | ac_status=$? |
| 13546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13547 | (exit $ac_status); }; }; then |
| 13548 | ac_hi=$ac_mid; break |
| 13549 | else |
| 13550 | echo "$as_me: failed program was:" >&5 |
| 13551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13552 | |
| 13553 | ac_lo=`expr $ac_mid + 1` |
| 13554 | if test $ac_lo -le $ac_mid; then |
| 13555 | ac_lo= ac_hi= |
| 13556 | break |
| 13557 | fi |
| 13558 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13559 | fi |
| 13560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13561 | done |
| 13562 | else |
| 13563 | echo "$as_me: failed program was:" >&5 |
| 13564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13565 | |
| 13566 | cat >conftest.$ac_ext <<_ACEOF |
| 13567 | /* confdefs.h. */ |
| 13568 | _ACEOF |
| 13569 | cat confdefs.h >>conftest.$ac_ext |
| 13570 | cat >>conftest.$ac_ext <<_ACEOF |
| 13571 | /* end confdefs.h. */ |
| 13572 | $ac_includes_default |
| 13573 | int |
| 13574 | main () |
| 13575 | { |
| 13576 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 13577 | test_array [0] = 0 |
| 13578 | |
| 13579 | ; |
| 13580 | return 0; |
| 13581 | } |
| 13582 | _ACEOF |
| 13583 | rm -f conftest.$ac_objext |
| 13584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13585 | (eval $ac_compile) 2>conftest.er1 |
| 13586 | ac_status=$? |
| 13587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13588 | rm -f conftest.er1 |
| 13589 | cat conftest.err >&5 |
| 13590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13591 | (exit $ac_status); } && |
| 13592 | { ac_try='test -z "$ac_c_werror_flag" |
| 13593 | || test ! -s conftest.err' |
| 13594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13595 | (eval $ac_try) 2>&5 |
| 13596 | ac_status=$? |
| 13597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13598 | (exit $ac_status); }; } && |
| 13599 | { ac_try='test -s conftest.$ac_objext' |
| 13600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13601 | (eval $ac_try) 2>&5 |
| 13602 | ac_status=$? |
| 13603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13604 | (exit $ac_status); }; }; then |
| 13605 | ac_hi=-1 ac_mid=-1 |
| 13606 | while :; do |
| 13607 | cat >conftest.$ac_ext <<_ACEOF |
| 13608 | /* confdefs.h. */ |
| 13609 | _ACEOF |
| 13610 | cat confdefs.h >>conftest.$ac_ext |
| 13611 | cat >>conftest.$ac_ext <<_ACEOF |
| 13612 | /* end confdefs.h. */ |
| 13613 | $ac_includes_default |
| 13614 | int |
| 13615 | main () |
| 13616 | { |
| 13617 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 13618 | test_array [0] = 0 |
| 13619 | |
| 13620 | ; |
| 13621 | return 0; |
| 13622 | } |
| 13623 | _ACEOF |
| 13624 | rm -f conftest.$ac_objext |
| 13625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13626 | (eval $ac_compile) 2>conftest.er1 |
| 13627 | ac_status=$? |
| 13628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13629 | rm -f conftest.er1 |
| 13630 | cat conftest.err >&5 |
| 13631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13632 | (exit $ac_status); } && |
| 13633 | { ac_try='test -z "$ac_c_werror_flag" |
| 13634 | || test ! -s conftest.err' |
| 13635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13636 | (eval $ac_try) 2>&5 |
| 13637 | ac_status=$? |
| 13638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13639 | (exit $ac_status); }; } && |
| 13640 | { ac_try='test -s conftest.$ac_objext' |
| 13641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13642 | (eval $ac_try) 2>&5 |
| 13643 | ac_status=$? |
| 13644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13645 | (exit $ac_status); }; }; then |
| 13646 | ac_lo=$ac_mid; break |
| 13647 | else |
| 13648 | echo "$as_me: failed program was:" >&5 |
| 13649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13650 | |
| 13651 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13652 | if test $ac_mid -le $ac_hi; then |
| 13653 | ac_lo= ac_hi= |
| 13654 | break |
| 13655 | fi |
| 13656 | ac_mid=`expr 2 '*' $ac_mid` |
| 13657 | fi |
| 13658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13659 | done |
| 13660 | else |
| 13661 | echo "$as_me: failed program was:" >&5 |
| 13662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13663 | |
| 13664 | ac_lo= ac_hi= |
| 13665 | fi |
| 13666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13667 | fi |
| 13668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13669 | # Binary search between lo and hi bounds. |
| 13670 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13671 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13672 | cat >conftest.$ac_ext <<_ACEOF |
| 13673 | /* confdefs.h. */ |
| 13674 | _ACEOF |
| 13675 | cat confdefs.h >>conftest.$ac_ext |
| 13676 | cat >>conftest.$ac_ext <<_ACEOF |
| 13677 | /* end confdefs.h. */ |
| 13678 | $ac_includes_default |
| 13679 | int |
| 13680 | main () |
| 13681 | { |
| 13682 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 13683 | test_array [0] = 0 |
| 13684 | |
| 13685 | ; |
| 13686 | return 0; |
| 13687 | } |
| 13688 | _ACEOF |
| 13689 | rm -f conftest.$ac_objext |
| 13690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13691 | (eval $ac_compile) 2>conftest.er1 |
| 13692 | ac_status=$? |
| 13693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13694 | rm -f conftest.er1 |
| 13695 | cat conftest.err >&5 |
| 13696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13697 | (exit $ac_status); } && |
| 13698 | { ac_try='test -z "$ac_c_werror_flag" |
| 13699 | || test ! -s conftest.err' |
| 13700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13701 | (eval $ac_try) 2>&5 |
| 13702 | ac_status=$? |
| 13703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13704 | (exit $ac_status); }; } && |
| 13705 | { ac_try='test -s conftest.$ac_objext' |
| 13706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13707 | (eval $ac_try) 2>&5 |
| 13708 | ac_status=$? |
| 13709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13710 | (exit $ac_status); }; }; then |
| 13711 | ac_hi=$ac_mid |
| 13712 | else |
| 13713 | echo "$as_me: failed program was:" >&5 |
| 13714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13715 | |
| 13716 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13717 | fi |
| 13718 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13719 | done |
| 13720 | case $ac_lo in |
| 13721 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 13722 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 13723 | See \`config.log' for more details." >&5 |
| 13724 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 13725 | See \`config.log' for more details." >&2;} |
| 13726 | { (exit 1); exit 1; }; } ;; |
| 13727 | esac |
| 13728 | else |
| 13729 | if test "$cross_compiling" = yes; then |
| 13730 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 13731 | See \`config.log' for more details." >&5 |
| 13732 | echo "$as_me: error: cannot run test program while cross compiling |
| 13733 | See \`config.log' for more details." >&2;} |
| 13734 | { (exit 1); exit 1; }; } |
| 13735 | else |
| 13736 | cat >conftest.$ac_ext <<_ACEOF |
| 13737 | /* confdefs.h. */ |
| 13738 | _ACEOF |
| 13739 | cat confdefs.h >>conftest.$ac_ext |
| 13740 | cat >>conftest.$ac_ext <<_ACEOF |
| 13741 | /* end confdefs.h. */ |
| 13742 | $ac_includes_default |
| 13743 | long longval () { return (long) (sizeof (long)); } |
| 13744 | unsigned long ulongval () { return (long) (sizeof (long)); } |
| 13745 | #include <stdio.h> |
| 13746 | #include <stdlib.h> |
| 13747 | int |
| 13748 | main () |
| 13749 | { |
| 13750 | |
| 13751 | FILE *f = fopen ("conftest.val", "w"); |
| 13752 | if (! f) |
| 13753 | exit (1); |
| 13754 | if (((long) (sizeof (long))) < 0) |
| 13755 | { |
| 13756 | long i = longval (); |
| 13757 | if (i != ((long) (sizeof (long)))) |
| 13758 | exit (1); |
| 13759 | fprintf (f, "%ld\n", i); |
| 13760 | } |
| 13761 | else |
| 13762 | { |
| 13763 | unsigned long i = ulongval (); |
| 13764 | if (i != ((long) (sizeof (long)))) |
| 13765 | exit (1); |
| 13766 | fprintf (f, "%lu\n", i); |
| 13767 | } |
| 13768 | exit (ferror (f) || fclose (f) != 0); |
| 13769 | |
| 13770 | ; |
| 13771 | return 0; |
| 13772 | } |
| 13773 | _ACEOF |
| 13774 | rm -f conftest$ac_exeext |
| 13775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13776 | (eval $ac_link) 2>&5 |
| 13777 | ac_status=$? |
| 13778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13779 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13781 | (eval $ac_try) 2>&5 |
| 13782 | ac_status=$? |
| 13783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13784 | (exit $ac_status); }; }; then |
| 13785 | ac_cv_sizeof_long=`cat conftest.val` |
| 13786 | else |
| 13787 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13788 | echo "$as_me: failed program was:" >&5 |
| 13789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13790 | |
| 13791 | ( exit $ac_status ) |
| 13792 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 13793 | See \`config.log' for more details." >&5 |
| 13794 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 13795 | See \`config.log' for more details." >&2;} |
| 13796 | { (exit 1); exit 1; }; } |
| 13797 | fi |
| 13798 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13799 | fi |
| 13800 | fi |
| 13801 | rm -f conftest.val |
| 13802 | else |
| 13803 | ac_cv_sizeof_long=0 |
| 13804 | fi |
| 13805 | fi |
| 13806 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 13807 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 13808 | cat >>confdefs.h <<_ACEOF |
| 13809 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 13810 | _ACEOF |
| 13811 | |
| 13812 | ;; |
| 13813 | esac |
| 13814 | |
| 13815 | if test $acx_cv_header_stdint = stddef.h; then |
| 13816 | # Lacking a good header? Test size of everything and deduce all types. |
| 13817 | echo "$as_me:$LINENO: checking for int" >&5 |
| 13818 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 13819 | if test "${ac_cv_type_int+set}" = set; then |
| 13820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13821 | else |
| 13822 | cat >conftest.$ac_ext <<_ACEOF |
| 13823 | /* confdefs.h. */ |
| 13824 | _ACEOF |
| 13825 | cat confdefs.h >>conftest.$ac_ext |
| 13826 | cat >>conftest.$ac_ext <<_ACEOF |
| 13827 | /* end confdefs.h. */ |
| 13828 | $ac_includes_default |
| 13829 | int |
| 13830 | main () |
| 13831 | { |
| 13832 | if ((int *) 0) |
| 13833 | return 0; |
| 13834 | if (sizeof (int)) |
| 13835 | return 0; |
| 13836 | ; |
| 13837 | return 0; |
| 13838 | } |
| 13839 | _ACEOF |
| 13840 | rm -f conftest.$ac_objext |
| 13841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13842 | (eval $ac_compile) 2>conftest.er1 |
| 13843 | ac_status=$? |
| 13844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13845 | rm -f conftest.er1 |
| 13846 | cat conftest.err >&5 |
| 13847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13848 | (exit $ac_status); } && |
| 13849 | { ac_try='test -z "$ac_c_werror_flag" |
| 13850 | || test ! -s conftest.err' |
| 13851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13852 | (eval $ac_try) 2>&5 |
| 13853 | ac_status=$? |
| 13854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13855 | (exit $ac_status); }; } && |
| 13856 | { ac_try='test -s conftest.$ac_objext' |
| 13857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13858 | (eval $ac_try) 2>&5 |
| 13859 | ac_status=$? |
| 13860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13861 | (exit $ac_status); }; }; then |
| 13862 | ac_cv_type_int=yes |
| 13863 | else |
| 13864 | echo "$as_me: failed program was:" >&5 |
| 13865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13866 | |
| 13867 | ac_cv_type_int=no |
| 13868 | fi |
| 13869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13870 | fi |
| 13871 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 13872 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 13873 | |
| 13874 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 13875 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 13876 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 13877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13878 | else |
| 13879 | if test "$ac_cv_type_int" = yes; then |
| 13880 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 13881 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13882 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13883 | # This bug is HP SR number 8606223364. |
| 13884 | if test "$cross_compiling" = yes; then |
| 13885 | # Depending upon the size, compute the lo and hi bounds. |
| 13886 | cat >conftest.$ac_ext <<_ACEOF |
| 13887 | /* confdefs.h. */ |
| 13888 | _ACEOF |
| 13889 | cat confdefs.h >>conftest.$ac_ext |
| 13890 | cat >>conftest.$ac_ext <<_ACEOF |
| 13891 | /* end confdefs.h. */ |
| 13892 | $ac_includes_default |
| 13893 | int |
| 13894 | main () |
| 13895 | { |
| 13896 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 13897 | test_array [0] = 0 |
| 13898 | |
| 13899 | ; |
| 13900 | return 0; |
| 13901 | } |
| 13902 | _ACEOF |
| 13903 | rm -f conftest.$ac_objext |
| 13904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13905 | (eval $ac_compile) 2>conftest.er1 |
| 13906 | ac_status=$? |
| 13907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13908 | rm -f conftest.er1 |
| 13909 | cat conftest.err >&5 |
| 13910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13911 | (exit $ac_status); } && |
| 13912 | { ac_try='test -z "$ac_c_werror_flag" |
| 13913 | || test ! -s conftest.err' |
| 13914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13915 | (eval $ac_try) 2>&5 |
| 13916 | ac_status=$? |
| 13917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13918 | (exit $ac_status); }; } && |
| 13919 | { ac_try='test -s conftest.$ac_objext' |
| 13920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13921 | (eval $ac_try) 2>&5 |
| 13922 | ac_status=$? |
| 13923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13924 | (exit $ac_status); }; }; then |
| 13925 | ac_lo=0 ac_mid=0 |
| 13926 | while :; do |
| 13927 | cat >conftest.$ac_ext <<_ACEOF |
| 13928 | /* confdefs.h. */ |
| 13929 | _ACEOF |
| 13930 | cat confdefs.h >>conftest.$ac_ext |
| 13931 | cat >>conftest.$ac_ext <<_ACEOF |
| 13932 | /* end confdefs.h. */ |
| 13933 | $ac_includes_default |
| 13934 | int |
| 13935 | main () |
| 13936 | { |
| 13937 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 13938 | test_array [0] = 0 |
| 13939 | |
| 13940 | ; |
| 13941 | return 0; |
| 13942 | } |
| 13943 | _ACEOF |
| 13944 | rm -f conftest.$ac_objext |
| 13945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13946 | (eval $ac_compile) 2>conftest.er1 |
| 13947 | ac_status=$? |
| 13948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13949 | rm -f conftest.er1 |
| 13950 | cat conftest.err >&5 |
| 13951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13952 | (exit $ac_status); } && |
| 13953 | { ac_try='test -z "$ac_c_werror_flag" |
| 13954 | || test ! -s conftest.err' |
| 13955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13956 | (eval $ac_try) 2>&5 |
| 13957 | ac_status=$? |
| 13958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13959 | (exit $ac_status); }; } && |
| 13960 | { ac_try='test -s conftest.$ac_objext' |
| 13961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13962 | (eval $ac_try) 2>&5 |
| 13963 | ac_status=$? |
| 13964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13965 | (exit $ac_status); }; }; then |
| 13966 | ac_hi=$ac_mid; break |
| 13967 | else |
| 13968 | echo "$as_me: failed program was:" >&5 |
| 13969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13970 | |
| 13971 | ac_lo=`expr $ac_mid + 1` |
| 13972 | if test $ac_lo -le $ac_mid; then |
| 13973 | ac_lo= ac_hi= |
| 13974 | break |
| 13975 | fi |
| 13976 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13977 | fi |
| 13978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13979 | done |
| 13980 | else |
| 13981 | echo "$as_me: failed program was:" >&5 |
| 13982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13983 | |
| 13984 | cat >conftest.$ac_ext <<_ACEOF |
| 13985 | /* confdefs.h. */ |
| 13986 | _ACEOF |
| 13987 | cat confdefs.h >>conftest.$ac_ext |
| 13988 | cat >>conftest.$ac_ext <<_ACEOF |
| 13989 | /* end confdefs.h. */ |
| 13990 | $ac_includes_default |
| 13991 | int |
| 13992 | main () |
| 13993 | { |
| 13994 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 13995 | test_array [0] = 0 |
| 13996 | |
| 13997 | ; |
| 13998 | return 0; |
| 13999 | } |
| 14000 | _ACEOF |
| 14001 | rm -f conftest.$ac_objext |
| 14002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14003 | (eval $ac_compile) 2>conftest.er1 |
| 14004 | ac_status=$? |
| 14005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14006 | rm -f conftest.er1 |
| 14007 | cat conftest.err >&5 |
| 14008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14009 | (exit $ac_status); } && |
| 14010 | { ac_try='test -z "$ac_c_werror_flag" |
| 14011 | || test ! -s conftest.err' |
| 14012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14013 | (eval $ac_try) 2>&5 |
| 14014 | ac_status=$? |
| 14015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14016 | (exit $ac_status); }; } && |
| 14017 | { ac_try='test -s conftest.$ac_objext' |
| 14018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14019 | (eval $ac_try) 2>&5 |
| 14020 | ac_status=$? |
| 14021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14022 | (exit $ac_status); }; }; then |
| 14023 | ac_hi=-1 ac_mid=-1 |
| 14024 | while :; do |
| 14025 | cat >conftest.$ac_ext <<_ACEOF |
| 14026 | /* confdefs.h. */ |
| 14027 | _ACEOF |
| 14028 | cat confdefs.h >>conftest.$ac_ext |
| 14029 | cat >>conftest.$ac_ext <<_ACEOF |
| 14030 | /* end confdefs.h. */ |
| 14031 | $ac_includes_default |
| 14032 | int |
| 14033 | main () |
| 14034 | { |
| 14035 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 14036 | test_array [0] = 0 |
| 14037 | |
| 14038 | ; |
| 14039 | return 0; |
| 14040 | } |
| 14041 | _ACEOF |
| 14042 | rm -f conftest.$ac_objext |
| 14043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14044 | (eval $ac_compile) 2>conftest.er1 |
| 14045 | ac_status=$? |
| 14046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14047 | rm -f conftest.er1 |
| 14048 | cat conftest.err >&5 |
| 14049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14050 | (exit $ac_status); } && |
| 14051 | { ac_try='test -z "$ac_c_werror_flag" |
| 14052 | || test ! -s conftest.err' |
| 14053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14054 | (eval $ac_try) 2>&5 |
| 14055 | ac_status=$? |
| 14056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14057 | (exit $ac_status); }; } && |
| 14058 | { ac_try='test -s conftest.$ac_objext' |
| 14059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14060 | (eval $ac_try) 2>&5 |
| 14061 | ac_status=$? |
| 14062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14063 | (exit $ac_status); }; }; then |
| 14064 | ac_lo=$ac_mid; break |
| 14065 | else |
| 14066 | echo "$as_me: failed program was:" >&5 |
| 14067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14068 | |
| 14069 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14070 | if test $ac_mid -le $ac_hi; then |
| 14071 | ac_lo= ac_hi= |
| 14072 | break |
| 14073 | fi |
| 14074 | ac_mid=`expr 2 '*' $ac_mid` |
| 14075 | fi |
| 14076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14077 | done |
| 14078 | else |
| 14079 | echo "$as_me: failed program was:" >&5 |
| 14080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14081 | |
| 14082 | ac_lo= ac_hi= |
| 14083 | fi |
| 14084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14085 | fi |
| 14086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14087 | # Binary search between lo and hi bounds. |
| 14088 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14089 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14090 | cat >conftest.$ac_ext <<_ACEOF |
| 14091 | /* confdefs.h. */ |
| 14092 | _ACEOF |
| 14093 | cat confdefs.h >>conftest.$ac_ext |
| 14094 | cat >>conftest.$ac_ext <<_ACEOF |
| 14095 | /* end confdefs.h. */ |
| 14096 | $ac_includes_default |
| 14097 | int |
| 14098 | main () |
| 14099 | { |
| 14100 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 14101 | test_array [0] = 0 |
| 14102 | |
| 14103 | ; |
| 14104 | return 0; |
| 14105 | } |
| 14106 | _ACEOF |
| 14107 | rm -f conftest.$ac_objext |
| 14108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14109 | (eval $ac_compile) 2>conftest.er1 |
| 14110 | ac_status=$? |
| 14111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14112 | rm -f conftest.er1 |
| 14113 | cat conftest.err >&5 |
| 14114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14115 | (exit $ac_status); } && |
| 14116 | { ac_try='test -z "$ac_c_werror_flag" |
| 14117 | || test ! -s conftest.err' |
| 14118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14119 | (eval $ac_try) 2>&5 |
| 14120 | ac_status=$? |
| 14121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14122 | (exit $ac_status); }; } && |
| 14123 | { ac_try='test -s conftest.$ac_objext' |
| 14124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14125 | (eval $ac_try) 2>&5 |
| 14126 | ac_status=$? |
| 14127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14128 | (exit $ac_status); }; }; then |
| 14129 | ac_hi=$ac_mid |
| 14130 | else |
| 14131 | echo "$as_me: failed program was:" >&5 |
| 14132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14133 | |
| 14134 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14135 | fi |
| 14136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14137 | done |
| 14138 | case $ac_lo in |
| 14139 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 14140 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 14141 | See \`config.log' for more details." >&5 |
| 14142 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 14143 | See \`config.log' for more details." >&2;} |
| 14144 | { (exit 1); exit 1; }; } ;; |
| 14145 | esac |
| 14146 | else |
| 14147 | if test "$cross_compiling" = yes; then |
| 14148 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 14149 | See \`config.log' for more details." >&5 |
| 14150 | echo "$as_me: error: cannot run test program while cross compiling |
| 14151 | See \`config.log' for more details." >&2;} |
| 14152 | { (exit 1); exit 1; }; } |
| 14153 | else |
| 14154 | cat >conftest.$ac_ext <<_ACEOF |
| 14155 | /* confdefs.h. */ |
| 14156 | _ACEOF |
| 14157 | cat confdefs.h >>conftest.$ac_ext |
| 14158 | cat >>conftest.$ac_ext <<_ACEOF |
| 14159 | /* end confdefs.h. */ |
| 14160 | $ac_includes_default |
| 14161 | long longval () { return (long) (sizeof (int)); } |
| 14162 | unsigned long ulongval () { return (long) (sizeof (int)); } |
| 14163 | #include <stdio.h> |
| 14164 | #include <stdlib.h> |
| 14165 | int |
| 14166 | main () |
| 14167 | { |
| 14168 | |
| 14169 | FILE *f = fopen ("conftest.val", "w"); |
| 14170 | if (! f) |
| 14171 | exit (1); |
| 14172 | if (((long) (sizeof (int))) < 0) |
| 14173 | { |
| 14174 | long i = longval (); |
| 14175 | if (i != ((long) (sizeof (int)))) |
| 14176 | exit (1); |
| 14177 | fprintf (f, "%ld\n", i); |
| 14178 | } |
| 14179 | else |
| 14180 | { |
| 14181 | unsigned long i = ulongval (); |
| 14182 | if (i != ((long) (sizeof (int)))) |
| 14183 | exit (1); |
| 14184 | fprintf (f, "%lu\n", i); |
| 14185 | } |
| 14186 | exit (ferror (f) || fclose (f) != 0); |
| 14187 | |
| 14188 | ; |
| 14189 | return 0; |
| 14190 | } |
| 14191 | _ACEOF |
| 14192 | rm -f conftest$ac_exeext |
| 14193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14194 | (eval $ac_link) 2>&5 |
| 14195 | ac_status=$? |
| 14196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14197 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14199 | (eval $ac_try) 2>&5 |
| 14200 | ac_status=$? |
| 14201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14202 | (exit $ac_status); }; }; then |
| 14203 | ac_cv_sizeof_int=`cat conftest.val` |
| 14204 | else |
| 14205 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14206 | echo "$as_me: failed program was:" >&5 |
| 14207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14208 | |
| 14209 | ( exit $ac_status ) |
| 14210 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 14211 | See \`config.log' for more details." >&5 |
| 14212 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 14213 | See \`config.log' for more details." >&2;} |
| 14214 | { (exit 1); exit 1; }; } |
| 14215 | fi |
| 14216 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14217 | fi |
| 14218 | fi |
| 14219 | rm -f conftest.val |
| 14220 | else |
| 14221 | ac_cv_sizeof_int=0 |
| 14222 | fi |
| 14223 | fi |
| 14224 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 14225 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 14226 | cat >>confdefs.h <<_ACEOF |
| 14227 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 14228 | _ACEOF |
| 14229 | |
| 14230 | |
| 14231 | echo "$as_me:$LINENO: checking for short" >&5 |
| 14232 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 14233 | if test "${ac_cv_type_short+set}" = set; then |
| 14234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14235 | else |
| 14236 | cat >conftest.$ac_ext <<_ACEOF |
| 14237 | /* confdefs.h. */ |
| 14238 | _ACEOF |
| 14239 | cat confdefs.h >>conftest.$ac_ext |
| 14240 | cat >>conftest.$ac_ext <<_ACEOF |
| 14241 | /* end confdefs.h. */ |
| 14242 | $ac_includes_default |
| 14243 | int |
| 14244 | main () |
| 14245 | { |
| 14246 | if ((short *) 0) |
| 14247 | return 0; |
| 14248 | if (sizeof (short)) |
| 14249 | return 0; |
| 14250 | ; |
| 14251 | return 0; |
| 14252 | } |
| 14253 | _ACEOF |
| 14254 | rm -f conftest.$ac_objext |
| 14255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14256 | (eval $ac_compile) 2>conftest.er1 |
| 14257 | ac_status=$? |
| 14258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14259 | rm -f conftest.er1 |
| 14260 | cat conftest.err >&5 |
| 14261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14262 | (exit $ac_status); } && |
| 14263 | { ac_try='test -z "$ac_c_werror_flag" |
| 14264 | || test ! -s conftest.err' |
| 14265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14266 | (eval $ac_try) 2>&5 |
| 14267 | ac_status=$? |
| 14268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14269 | (exit $ac_status); }; } && |
| 14270 | { ac_try='test -s conftest.$ac_objext' |
| 14271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14272 | (eval $ac_try) 2>&5 |
| 14273 | ac_status=$? |
| 14274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14275 | (exit $ac_status); }; }; then |
| 14276 | ac_cv_type_short=yes |
| 14277 | else |
| 14278 | echo "$as_me: failed program was:" >&5 |
| 14279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14280 | |
| 14281 | ac_cv_type_short=no |
| 14282 | fi |
| 14283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14284 | fi |
| 14285 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 14286 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 14287 | |
| 14288 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 14289 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 14290 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 14291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14292 | else |
| 14293 | if test "$ac_cv_type_short" = yes; then |
| 14294 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 14295 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14296 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14297 | # This bug is HP SR number 8606223364. |
| 14298 | if test "$cross_compiling" = yes; then |
| 14299 | # Depending upon the size, compute the lo and hi bounds. |
| 14300 | cat >conftest.$ac_ext <<_ACEOF |
| 14301 | /* confdefs.h. */ |
| 14302 | _ACEOF |
| 14303 | cat confdefs.h >>conftest.$ac_ext |
| 14304 | cat >>conftest.$ac_ext <<_ACEOF |
| 14305 | /* end confdefs.h. */ |
| 14306 | $ac_includes_default |
| 14307 | int |
| 14308 | main () |
| 14309 | { |
| 14310 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 14311 | test_array [0] = 0 |
| 14312 | |
| 14313 | ; |
| 14314 | return 0; |
| 14315 | } |
| 14316 | _ACEOF |
| 14317 | rm -f conftest.$ac_objext |
| 14318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14319 | (eval $ac_compile) 2>conftest.er1 |
| 14320 | ac_status=$? |
| 14321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14322 | rm -f conftest.er1 |
| 14323 | cat conftest.err >&5 |
| 14324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14325 | (exit $ac_status); } && |
| 14326 | { ac_try='test -z "$ac_c_werror_flag" |
| 14327 | || test ! -s conftest.err' |
| 14328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14329 | (eval $ac_try) 2>&5 |
| 14330 | ac_status=$? |
| 14331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14332 | (exit $ac_status); }; } && |
| 14333 | { ac_try='test -s conftest.$ac_objext' |
| 14334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14335 | (eval $ac_try) 2>&5 |
| 14336 | ac_status=$? |
| 14337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14338 | (exit $ac_status); }; }; then |
| 14339 | ac_lo=0 ac_mid=0 |
| 14340 | while :; do |
| 14341 | cat >conftest.$ac_ext <<_ACEOF |
| 14342 | /* confdefs.h. */ |
| 14343 | _ACEOF |
| 14344 | cat confdefs.h >>conftest.$ac_ext |
| 14345 | cat >>conftest.$ac_ext <<_ACEOF |
| 14346 | /* end confdefs.h. */ |
| 14347 | $ac_includes_default |
| 14348 | int |
| 14349 | main () |
| 14350 | { |
| 14351 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 14352 | test_array [0] = 0 |
| 14353 | |
| 14354 | ; |
| 14355 | return 0; |
| 14356 | } |
| 14357 | _ACEOF |
| 14358 | rm -f conftest.$ac_objext |
| 14359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14360 | (eval $ac_compile) 2>conftest.er1 |
| 14361 | ac_status=$? |
| 14362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14363 | rm -f conftest.er1 |
| 14364 | cat conftest.err >&5 |
| 14365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14366 | (exit $ac_status); } && |
| 14367 | { ac_try='test -z "$ac_c_werror_flag" |
| 14368 | || test ! -s conftest.err' |
| 14369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14370 | (eval $ac_try) 2>&5 |
| 14371 | ac_status=$? |
| 14372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14373 | (exit $ac_status); }; } && |
| 14374 | { ac_try='test -s conftest.$ac_objext' |
| 14375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14376 | (eval $ac_try) 2>&5 |
| 14377 | ac_status=$? |
| 14378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14379 | (exit $ac_status); }; }; then |
| 14380 | ac_hi=$ac_mid; break |
| 14381 | else |
| 14382 | echo "$as_me: failed program was:" >&5 |
| 14383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14384 | |
| 14385 | ac_lo=`expr $ac_mid + 1` |
| 14386 | if test $ac_lo -le $ac_mid; then |
| 14387 | ac_lo= ac_hi= |
| 14388 | break |
| 14389 | fi |
| 14390 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14391 | fi |
| 14392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14393 | done |
| 14394 | else |
| 14395 | echo "$as_me: failed program was:" >&5 |
| 14396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14397 | |
| 14398 | cat >conftest.$ac_ext <<_ACEOF |
| 14399 | /* confdefs.h. */ |
| 14400 | _ACEOF |
| 14401 | cat confdefs.h >>conftest.$ac_ext |
| 14402 | cat >>conftest.$ac_ext <<_ACEOF |
| 14403 | /* end confdefs.h. */ |
| 14404 | $ac_includes_default |
| 14405 | int |
| 14406 | main () |
| 14407 | { |
| 14408 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 14409 | test_array [0] = 0 |
| 14410 | |
| 14411 | ; |
| 14412 | return 0; |
| 14413 | } |
| 14414 | _ACEOF |
| 14415 | rm -f conftest.$ac_objext |
| 14416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14417 | (eval $ac_compile) 2>conftest.er1 |
| 14418 | ac_status=$? |
| 14419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14420 | rm -f conftest.er1 |
| 14421 | cat conftest.err >&5 |
| 14422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14423 | (exit $ac_status); } && |
| 14424 | { ac_try='test -z "$ac_c_werror_flag" |
| 14425 | || test ! -s conftest.err' |
| 14426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14427 | (eval $ac_try) 2>&5 |
| 14428 | ac_status=$? |
| 14429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14430 | (exit $ac_status); }; } && |
| 14431 | { ac_try='test -s conftest.$ac_objext' |
| 14432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14433 | (eval $ac_try) 2>&5 |
| 14434 | ac_status=$? |
| 14435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14436 | (exit $ac_status); }; }; then |
| 14437 | ac_hi=-1 ac_mid=-1 |
| 14438 | while :; do |
| 14439 | cat >conftest.$ac_ext <<_ACEOF |
| 14440 | /* confdefs.h. */ |
| 14441 | _ACEOF |
| 14442 | cat confdefs.h >>conftest.$ac_ext |
| 14443 | cat >>conftest.$ac_ext <<_ACEOF |
| 14444 | /* end confdefs.h. */ |
| 14445 | $ac_includes_default |
| 14446 | int |
| 14447 | main () |
| 14448 | { |
| 14449 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 14450 | test_array [0] = 0 |
| 14451 | |
| 14452 | ; |
| 14453 | return 0; |
| 14454 | } |
| 14455 | _ACEOF |
| 14456 | rm -f conftest.$ac_objext |
| 14457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14458 | (eval $ac_compile) 2>conftest.er1 |
| 14459 | ac_status=$? |
| 14460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14461 | rm -f conftest.er1 |
| 14462 | cat conftest.err >&5 |
| 14463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14464 | (exit $ac_status); } && |
| 14465 | { ac_try='test -z "$ac_c_werror_flag" |
| 14466 | || test ! -s conftest.err' |
| 14467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14468 | (eval $ac_try) 2>&5 |
| 14469 | ac_status=$? |
| 14470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14471 | (exit $ac_status); }; } && |
| 14472 | { ac_try='test -s conftest.$ac_objext' |
| 14473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14474 | (eval $ac_try) 2>&5 |
| 14475 | ac_status=$? |
| 14476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14477 | (exit $ac_status); }; }; then |
| 14478 | ac_lo=$ac_mid; break |
| 14479 | else |
| 14480 | echo "$as_me: failed program was:" >&5 |
| 14481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14482 | |
| 14483 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14484 | if test $ac_mid -le $ac_hi; then |
| 14485 | ac_lo= ac_hi= |
| 14486 | break |
| 14487 | fi |
| 14488 | ac_mid=`expr 2 '*' $ac_mid` |
| 14489 | fi |
| 14490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14491 | done |
| 14492 | else |
| 14493 | echo "$as_me: failed program was:" >&5 |
| 14494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14495 | |
| 14496 | ac_lo= ac_hi= |
| 14497 | fi |
| 14498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14499 | fi |
| 14500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14501 | # Binary search between lo and hi bounds. |
| 14502 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14503 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14504 | cat >conftest.$ac_ext <<_ACEOF |
| 14505 | /* confdefs.h. */ |
| 14506 | _ACEOF |
| 14507 | cat confdefs.h >>conftest.$ac_ext |
| 14508 | cat >>conftest.$ac_ext <<_ACEOF |
| 14509 | /* end confdefs.h. */ |
| 14510 | $ac_includes_default |
| 14511 | int |
| 14512 | main () |
| 14513 | { |
| 14514 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 14515 | test_array [0] = 0 |
| 14516 | |
| 14517 | ; |
| 14518 | return 0; |
| 14519 | } |
| 14520 | _ACEOF |
| 14521 | rm -f conftest.$ac_objext |
| 14522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14523 | (eval $ac_compile) 2>conftest.er1 |
| 14524 | ac_status=$? |
| 14525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14526 | rm -f conftest.er1 |
| 14527 | cat conftest.err >&5 |
| 14528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14529 | (exit $ac_status); } && |
| 14530 | { ac_try='test -z "$ac_c_werror_flag" |
| 14531 | || test ! -s conftest.err' |
| 14532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14533 | (eval $ac_try) 2>&5 |
| 14534 | ac_status=$? |
| 14535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14536 | (exit $ac_status); }; } && |
| 14537 | { ac_try='test -s conftest.$ac_objext' |
| 14538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14539 | (eval $ac_try) 2>&5 |
| 14540 | ac_status=$? |
| 14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14542 | (exit $ac_status); }; }; then |
| 14543 | ac_hi=$ac_mid |
| 14544 | else |
| 14545 | echo "$as_me: failed program was:" >&5 |
| 14546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14547 | |
| 14548 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14549 | fi |
| 14550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14551 | done |
| 14552 | case $ac_lo in |
| 14553 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 14554 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 14555 | See \`config.log' for more details." >&5 |
| 14556 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 14557 | See \`config.log' for more details." >&2;} |
| 14558 | { (exit 1); exit 1; }; } ;; |
| 14559 | esac |
| 14560 | else |
| 14561 | if test "$cross_compiling" = yes; then |
| 14562 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 14563 | See \`config.log' for more details." >&5 |
| 14564 | echo "$as_me: error: cannot run test program while cross compiling |
| 14565 | See \`config.log' for more details." >&2;} |
| 14566 | { (exit 1); exit 1; }; } |
| 14567 | else |
| 14568 | cat >conftest.$ac_ext <<_ACEOF |
| 14569 | /* confdefs.h. */ |
| 14570 | _ACEOF |
| 14571 | cat confdefs.h >>conftest.$ac_ext |
| 14572 | cat >>conftest.$ac_ext <<_ACEOF |
| 14573 | /* end confdefs.h. */ |
| 14574 | $ac_includes_default |
| 14575 | long longval () { return (long) (sizeof (short)); } |
| 14576 | unsigned long ulongval () { return (long) (sizeof (short)); } |
| 14577 | #include <stdio.h> |
| 14578 | #include <stdlib.h> |
| 14579 | int |
| 14580 | main () |
| 14581 | { |
| 14582 | |
| 14583 | FILE *f = fopen ("conftest.val", "w"); |
| 14584 | if (! f) |
| 14585 | exit (1); |
| 14586 | if (((long) (sizeof (short))) < 0) |
| 14587 | { |
| 14588 | long i = longval (); |
| 14589 | if (i != ((long) (sizeof (short)))) |
| 14590 | exit (1); |
| 14591 | fprintf (f, "%ld\n", i); |
| 14592 | } |
| 14593 | else |
| 14594 | { |
| 14595 | unsigned long i = ulongval (); |
| 14596 | if (i != ((long) (sizeof (short)))) |
| 14597 | exit (1); |
| 14598 | fprintf (f, "%lu\n", i); |
| 14599 | } |
| 14600 | exit (ferror (f) || fclose (f) != 0); |
| 14601 | |
| 14602 | ; |
| 14603 | return 0; |
| 14604 | } |
| 14605 | _ACEOF |
| 14606 | rm -f conftest$ac_exeext |
| 14607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14608 | (eval $ac_link) 2>&5 |
| 14609 | ac_status=$? |
| 14610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14611 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14613 | (eval $ac_try) 2>&5 |
| 14614 | ac_status=$? |
| 14615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14616 | (exit $ac_status); }; }; then |
| 14617 | ac_cv_sizeof_short=`cat conftest.val` |
| 14618 | else |
| 14619 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14620 | echo "$as_me: failed program was:" >&5 |
| 14621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14622 | |
| 14623 | ( exit $ac_status ) |
| 14624 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 14625 | See \`config.log' for more details." >&5 |
| 14626 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 14627 | See \`config.log' for more details." >&2;} |
| 14628 | { (exit 1); exit 1; }; } |
| 14629 | fi |
| 14630 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14631 | fi |
| 14632 | fi |
| 14633 | rm -f conftest.val |
| 14634 | else |
| 14635 | ac_cv_sizeof_short=0 |
| 14636 | fi |
| 14637 | fi |
| 14638 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 14639 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 14640 | cat >>confdefs.h <<_ACEOF |
| 14641 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 14642 | _ACEOF |
| 14643 | |
| 14644 | |
| 14645 | echo "$as_me:$LINENO: checking for char" >&5 |
| 14646 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 14647 | if test "${ac_cv_type_char+set}" = set; then |
| 14648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14649 | else |
| 14650 | cat >conftest.$ac_ext <<_ACEOF |
| 14651 | /* confdefs.h. */ |
| 14652 | _ACEOF |
| 14653 | cat confdefs.h >>conftest.$ac_ext |
| 14654 | cat >>conftest.$ac_ext <<_ACEOF |
| 14655 | /* end confdefs.h. */ |
| 14656 | $ac_includes_default |
| 14657 | int |
| 14658 | main () |
| 14659 | { |
| 14660 | if ((char *) 0) |
| 14661 | return 0; |
| 14662 | if (sizeof (char)) |
| 14663 | return 0; |
| 14664 | ; |
| 14665 | return 0; |
| 14666 | } |
| 14667 | _ACEOF |
| 14668 | rm -f conftest.$ac_objext |
| 14669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14670 | (eval $ac_compile) 2>conftest.er1 |
| 14671 | ac_status=$? |
| 14672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14673 | rm -f conftest.er1 |
| 14674 | cat conftest.err >&5 |
| 14675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14676 | (exit $ac_status); } && |
| 14677 | { ac_try='test -z "$ac_c_werror_flag" |
| 14678 | || test ! -s conftest.err' |
| 14679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14680 | (eval $ac_try) 2>&5 |
| 14681 | ac_status=$? |
| 14682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14683 | (exit $ac_status); }; } && |
| 14684 | { ac_try='test -s conftest.$ac_objext' |
| 14685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14686 | (eval $ac_try) 2>&5 |
| 14687 | ac_status=$? |
| 14688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14689 | (exit $ac_status); }; }; then |
| 14690 | ac_cv_type_char=yes |
| 14691 | else |
| 14692 | echo "$as_me: failed program was:" >&5 |
| 14693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14694 | |
| 14695 | ac_cv_type_char=no |
| 14696 | fi |
| 14697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14698 | fi |
| 14699 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 14700 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 14701 | |
| 14702 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 14703 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 14704 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 14705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14706 | else |
| 14707 | if test "$ac_cv_type_char" = yes; then |
| 14708 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 14709 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14710 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14711 | # This bug is HP SR number 8606223364. |
| 14712 | if test "$cross_compiling" = yes; then |
| 14713 | # Depending upon the size, compute the lo and hi bounds. |
| 14714 | cat >conftest.$ac_ext <<_ACEOF |
| 14715 | /* confdefs.h. */ |
| 14716 | _ACEOF |
| 14717 | cat confdefs.h >>conftest.$ac_ext |
| 14718 | cat >>conftest.$ac_ext <<_ACEOF |
| 14719 | /* end confdefs.h. */ |
| 14720 | $ac_includes_default |
| 14721 | int |
| 14722 | main () |
| 14723 | { |
| 14724 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 14725 | test_array [0] = 0 |
| 14726 | |
| 14727 | ; |
| 14728 | return 0; |
| 14729 | } |
| 14730 | _ACEOF |
| 14731 | rm -f conftest.$ac_objext |
| 14732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14733 | (eval $ac_compile) 2>conftest.er1 |
| 14734 | ac_status=$? |
| 14735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14736 | rm -f conftest.er1 |
| 14737 | cat conftest.err >&5 |
| 14738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14739 | (exit $ac_status); } && |
| 14740 | { ac_try='test -z "$ac_c_werror_flag" |
| 14741 | || test ! -s conftest.err' |
| 14742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14743 | (eval $ac_try) 2>&5 |
| 14744 | ac_status=$? |
| 14745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14746 | (exit $ac_status); }; } && |
| 14747 | { ac_try='test -s conftest.$ac_objext' |
| 14748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14749 | (eval $ac_try) 2>&5 |
| 14750 | ac_status=$? |
| 14751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14752 | (exit $ac_status); }; }; then |
| 14753 | ac_lo=0 ac_mid=0 |
| 14754 | while :; do |
| 14755 | cat >conftest.$ac_ext <<_ACEOF |
| 14756 | /* confdefs.h. */ |
| 14757 | _ACEOF |
| 14758 | cat confdefs.h >>conftest.$ac_ext |
| 14759 | cat >>conftest.$ac_ext <<_ACEOF |
| 14760 | /* end confdefs.h. */ |
| 14761 | $ac_includes_default |
| 14762 | int |
| 14763 | main () |
| 14764 | { |
| 14765 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 14766 | test_array [0] = 0 |
| 14767 | |
| 14768 | ; |
| 14769 | return 0; |
| 14770 | } |
| 14771 | _ACEOF |
| 14772 | rm -f conftest.$ac_objext |
| 14773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14774 | (eval $ac_compile) 2>conftest.er1 |
| 14775 | ac_status=$? |
| 14776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14777 | rm -f conftest.er1 |
| 14778 | cat conftest.err >&5 |
| 14779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14780 | (exit $ac_status); } && |
| 14781 | { ac_try='test -z "$ac_c_werror_flag" |
| 14782 | || test ! -s conftest.err' |
| 14783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14784 | (eval $ac_try) 2>&5 |
| 14785 | ac_status=$? |
| 14786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14787 | (exit $ac_status); }; } && |
| 14788 | { ac_try='test -s conftest.$ac_objext' |
| 14789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14790 | (eval $ac_try) 2>&5 |
| 14791 | ac_status=$? |
| 14792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14793 | (exit $ac_status); }; }; then |
| 14794 | ac_hi=$ac_mid; break |
| 14795 | else |
| 14796 | echo "$as_me: failed program was:" >&5 |
| 14797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14798 | |
| 14799 | ac_lo=`expr $ac_mid + 1` |
| 14800 | if test $ac_lo -le $ac_mid; then |
| 14801 | ac_lo= ac_hi= |
| 14802 | break |
| 14803 | fi |
| 14804 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14805 | fi |
| 14806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14807 | done |
| 14808 | else |
| 14809 | echo "$as_me: failed program was:" >&5 |
| 14810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14811 | |
| 14812 | cat >conftest.$ac_ext <<_ACEOF |
| 14813 | /* confdefs.h. */ |
| 14814 | _ACEOF |
| 14815 | cat confdefs.h >>conftest.$ac_ext |
| 14816 | cat >>conftest.$ac_ext <<_ACEOF |
| 14817 | /* end confdefs.h. */ |
| 14818 | $ac_includes_default |
| 14819 | int |
| 14820 | main () |
| 14821 | { |
| 14822 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 14823 | test_array [0] = 0 |
| 14824 | |
| 14825 | ; |
| 14826 | return 0; |
| 14827 | } |
| 14828 | _ACEOF |
| 14829 | rm -f conftest.$ac_objext |
| 14830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14831 | (eval $ac_compile) 2>conftest.er1 |
| 14832 | ac_status=$? |
| 14833 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14834 | rm -f conftest.er1 |
| 14835 | cat conftest.err >&5 |
| 14836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14837 | (exit $ac_status); } && |
| 14838 | { ac_try='test -z "$ac_c_werror_flag" |
| 14839 | || test ! -s conftest.err' |
| 14840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14841 | (eval $ac_try) 2>&5 |
| 14842 | ac_status=$? |
| 14843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14844 | (exit $ac_status); }; } && |
| 14845 | { ac_try='test -s conftest.$ac_objext' |
| 14846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14847 | (eval $ac_try) 2>&5 |
| 14848 | ac_status=$? |
| 14849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14850 | (exit $ac_status); }; }; then |
| 14851 | ac_hi=-1 ac_mid=-1 |
| 14852 | while :; do |
| 14853 | cat >conftest.$ac_ext <<_ACEOF |
| 14854 | /* confdefs.h. */ |
| 14855 | _ACEOF |
| 14856 | cat confdefs.h >>conftest.$ac_ext |
| 14857 | cat >>conftest.$ac_ext <<_ACEOF |
| 14858 | /* end confdefs.h. */ |
| 14859 | $ac_includes_default |
| 14860 | int |
| 14861 | main () |
| 14862 | { |
| 14863 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 14864 | test_array [0] = 0 |
| 14865 | |
| 14866 | ; |
| 14867 | return 0; |
| 14868 | } |
| 14869 | _ACEOF |
| 14870 | rm -f conftest.$ac_objext |
| 14871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14872 | (eval $ac_compile) 2>conftest.er1 |
| 14873 | ac_status=$? |
| 14874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14875 | rm -f conftest.er1 |
| 14876 | cat conftest.err >&5 |
| 14877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14878 | (exit $ac_status); } && |
| 14879 | { ac_try='test -z "$ac_c_werror_flag" |
| 14880 | || test ! -s conftest.err' |
| 14881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14882 | (eval $ac_try) 2>&5 |
| 14883 | ac_status=$? |
| 14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14885 | (exit $ac_status); }; } && |
| 14886 | { ac_try='test -s conftest.$ac_objext' |
| 14887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14888 | (eval $ac_try) 2>&5 |
| 14889 | ac_status=$? |
| 14890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14891 | (exit $ac_status); }; }; then |
| 14892 | ac_lo=$ac_mid; break |
| 14893 | else |
| 14894 | echo "$as_me: failed program was:" >&5 |
| 14895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14896 | |
| 14897 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14898 | if test $ac_mid -le $ac_hi; then |
| 14899 | ac_lo= ac_hi= |
| 14900 | break |
| 14901 | fi |
| 14902 | ac_mid=`expr 2 '*' $ac_mid` |
| 14903 | fi |
| 14904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14905 | done |
| 14906 | else |
| 14907 | echo "$as_me: failed program was:" >&5 |
| 14908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14909 | |
| 14910 | ac_lo= ac_hi= |
| 14911 | fi |
| 14912 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14913 | fi |
| 14914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14915 | # Binary search between lo and hi bounds. |
| 14916 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14917 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14918 | cat >conftest.$ac_ext <<_ACEOF |
| 14919 | /* confdefs.h. */ |
| 14920 | _ACEOF |
| 14921 | cat confdefs.h >>conftest.$ac_ext |
| 14922 | cat >>conftest.$ac_ext <<_ACEOF |
| 14923 | /* end confdefs.h. */ |
| 14924 | $ac_includes_default |
| 14925 | int |
| 14926 | main () |
| 14927 | { |
| 14928 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 14929 | test_array [0] = 0 |
| 14930 | |
| 14931 | ; |
| 14932 | return 0; |
| 14933 | } |
| 14934 | _ACEOF |
| 14935 | rm -f conftest.$ac_objext |
| 14936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14937 | (eval $ac_compile) 2>conftest.er1 |
| 14938 | ac_status=$? |
| 14939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14940 | rm -f conftest.er1 |
| 14941 | cat conftest.err >&5 |
| 14942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14943 | (exit $ac_status); } && |
| 14944 | { ac_try='test -z "$ac_c_werror_flag" |
| 14945 | || test ! -s conftest.err' |
| 14946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14947 | (eval $ac_try) 2>&5 |
| 14948 | ac_status=$? |
| 14949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14950 | (exit $ac_status); }; } && |
| 14951 | { ac_try='test -s conftest.$ac_objext' |
| 14952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14953 | (eval $ac_try) 2>&5 |
| 14954 | ac_status=$? |
| 14955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14956 | (exit $ac_status); }; }; then |
| 14957 | ac_hi=$ac_mid |
| 14958 | else |
| 14959 | echo "$as_me: failed program was:" >&5 |
| 14960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14961 | |
| 14962 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14963 | fi |
| 14964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14965 | done |
| 14966 | case $ac_lo in |
| 14967 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 14968 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 14969 | See \`config.log' for more details." >&5 |
| 14970 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 14971 | See \`config.log' for more details." >&2;} |
| 14972 | { (exit 1); exit 1; }; } ;; |
| 14973 | esac |
| 14974 | else |
| 14975 | if test "$cross_compiling" = yes; then |
| 14976 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 14977 | See \`config.log' for more details." >&5 |
| 14978 | echo "$as_me: error: cannot run test program while cross compiling |
| 14979 | See \`config.log' for more details." >&2;} |
| 14980 | { (exit 1); exit 1; }; } |
| 14981 | else |
| 14982 | cat >conftest.$ac_ext <<_ACEOF |
| 14983 | /* confdefs.h. */ |
| 14984 | _ACEOF |
| 14985 | cat confdefs.h >>conftest.$ac_ext |
| 14986 | cat >>conftest.$ac_ext <<_ACEOF |
| 14987 | /* end confdefs.h. */ |
| 14988 | $ac_includes_default |
| 14989 | long longval () { return (long) (sizeof (char)); } |
| 14990 | unsigned long ulongval () { return (long) (sizeof (char)); } |
| 14991 | #include <stdio.h> |
| 14992 | #include <stdlib.h> |
| 14993 | int |
| 14994 | main () |
| 14995 | { |
| 14996 | |
| 14997 | FILE *f = fopen ("conftest.val", "w"); |
| 14998 | if (! f) |
| 14999 | exit (1); |
| 15000 | if (((long) (sizeof (char))) < 0) |
| 15001 | { |
| 15002 | long i = longval (); |
| 15003 | if (i != ((long) (sizeof (char)))) |
| 15004 | exit (1); |
| 15005 | fprintf (f, "%ld\n", i); |
| 15006 | } |
| 15007 | else |
| 15008 | { |
| 15009 | unsigned long i = ulongval (); |
| 15010 | if (i != ((long) (sizeof (char)))) |
| 15011 | exit (1); |
| 15012 | fprintf (f, "%lu\n", i); |
| 15013 | } |
| 15014 | exit (ferror (f) || fclose (f) != 0); |
| 15015 | |
| 15016 | ; |
| 15017 | return 0; |
| 15018 | } |
| 15019 | _ACEOF |
| 15020 | rm -f conftest$ac_exeext |
| 15021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15022 | (eval $ac_link) 2>&5 |
| 15023 | ac_status=$? |
| 15024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15025 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15027 | (eval $ac_try) 2>&5 |
| 15028 | ac_status=$? |
| 15029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15030 | (exit $ac_status); }; }; then |
| 15031 | ac_cv_sizeof_char=`cat conftest.val` |
| 15032 | else |
| 15033 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15034 | echo "$as_me: failed program was:" >&5 |
| 15035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15036 | |
| 15037 | ( exit $ac_status ) |
| 15038 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 15039 | See \`config.log' for more details." >&5 |
| 15040 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 15041 | See \`config.log' for more details." >&2;} |
| 15042 | { (exit 1); exit 1; }; } |
| 15043 | fi |
| 15044 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15045 | fi |
| 15046 | fi |
| 15047 | rm -f conftest.val |
| 15048 | else |
| 15049 | ac_cv_sizeof_char=0 |
| 15050 | fi |
| 15051 | fi |
| 15052 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 15053 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 15054 | cat >>confdefs.h <<_ACEOF |
| 15055 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 15056 | _ACEOF |
| 15057 | |
| 15058 | |
| 15059 | |
| 15060 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 |
| 15061 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 |
| 15062 | case "$ac_cv_sizeof_char" in |
| 15063 | 1) acx_cv_type_int8_t=char ;; |
| 15064 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 |
| 15065 | echo "$as_me: error: no 8-bit type" >&2;} |
| 15066 | { (exit please report a bug); exit please report a bug; }; } |
| 15067 | esac |
| 15068 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 |
| 15069 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 |
| 15070 | |
| 15071 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 |
| 15072 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 |
| 15073 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in |
| 15074 | 2:*) acx_cv_type_int16_t=int ;; |
| 15075 | *:2) acx_cv_type_int16_t=short ;; |
| 15076 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 |
| 15077 | echo "$as_me: error: no 16-bit type" >&2;} |
| 15078 | { (exit please report a bug); exit please report a bug; }; } |
| 15079 | esac |
| 15080 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 |
| 15081 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 |
| 15082 | |
| 15083 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 |
| 15084 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 |
| 15085 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in |
| 15086 | 4:*) acx_cv_type_int32_t=int ;; |
| 15087 | *:4) acx_cv_type_int32_t=long ;; |
| 15088 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 |
| 15089 | echo "$as_me: error: no 32-bit type" >&2;} |
| 15090 | { (exit please report a bug); exit please report a bug; }; } |
| 15091 | esac |
| 15092 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 |
| 15093 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 |
| 15094 | fi |
| 15095 | |
| 15096 | # These tests are here to make the output prettier |
| 15097 | |
| 15098 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then |
| 15099 | case "$ac_cv_sizeof_long" in |
| 15100 | 8) acx_cv_type_int64_t=long ;; |
| 15101 | esac |
| 15102 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 |
| 15103 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 |
| 15104 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 |
| 15105 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 |
| 15106 | fi |
| 15107 | |
| 15108 | # Now we can use the above types |
| 15109 | |
| 15110 | if test "$ac_cv_type_uintptr_t" != yes; then |
| 15111 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 |
| 15112 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 |
| 15113 | case $ac_cv_sizeof_void_p in |
| 15114 | 2) acx_cv_type_intptr_t=int16_t ;; |
| 15115 | 4) acx_cv_type_intptr_t=int32_t ;; |
| 15116 | 8) acx_cv_type_intptr_t=int64_t ;; |
| 15117 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 |
| 15118 | echo "$as_me: error: no equivalent for intptr_t" >&2;} |
| 15119 | { (exit please report a bug); exit please report a bug; }; } |
| 15120 | esac |
| 15121 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 |
| 15122 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 |
| 15123 | fi |
| 15124 | |
| 15125 | # ----------------- done all checks, emit header ------------- |
| 15126 | ac_config_commands="$ac_config_commands gdb_stdint.h" |
| 15127 | |
| 15128 | |
| 15129 | |
| 15130 | |
| 15131 | # ------------------------- # |
| 15132 | # Checks for declarations. # |
| 15133 | # ------------------------- # |
| 15134 | |
| 15135 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
| 15136 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 |
| 15137 | if test "${ac_cv_have_decl_free+set}" = set; then |
| 15138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15139 | else |
| 15140 | cat >conftest.$ac_ext <<_ACEOF |
| 15141 | /* confdefs.h. */ |
| 15142 | _ACEOF |
| 15143 | cat confdefs.h >>conftest.$ac_ext |
| 15144 | cat >>conftest.$ac_ext <<_ACEOF |
| 15145 | /* end confdefs.h. */ |
| 15146 | $ac_includes_default |
| 15147 | int |
| 15148 | main () |
| 15149 | { |
| 15150 | #ifndef free |
| 15151 | char *p = (char *) free; |
| 15152 | #endif |
| 15153 | |
| 15154 | ; |
| 15155 | return 0; |
| 15156 | } |
| 15157 | _ACEOF |
| 15158 | rm -f conftest.$ac_objext |
| 15159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15160 | (eval $ac_compile) 2>conftest.er1 |
| 15161 | ac_status=$? |
| 15162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15163 | rm -f conftest.er1 |
| 15164 | cat conftest.err >&5 |
| 15165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15166 | (exit $ac_status); } && |
| 15167 | { ac_try='test -z "$ac_c_werror_flag" |
| 15168 | || test ! -s conftest.err' |
| 15169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15170 | (eval $ac_try) 2>&5 |
| 15171 | ac_status=$? |
| 15172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15173 | (exit $ac_status); }; } && |
| 15174 | { ac_try='test -s conftest.$ac_objext' |
| 15175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15176 | (eval $ac_try) 2>&5 |
| 15177 | ac_status=$? |
| 15178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15179 | (exit $ac_status); }; }; then |
| 15180 | ac_cv_have_decl_free=yes |
| 15181 | else |
| 15182 | echo "$as_me: failed program was:" >&5 |
| 15183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15184 | |
| 15185 | ac_cv_have_decl_free=no |
| 15186 | fi |
| 15187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15188 | fi |
| 15189 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
| 15190 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 |
| 15191 | if test $ac_cv_have_decl_free = yes; then |
| 15192 | |
| 15193 | cat >>confdefs.h <<_ACEOF |
| 15194 | #define HAVE_DECL_FREE 1 |
| 15195 | _ACEOF |
| 15196 | |
| 15197 | |
| 15198 | else |
| 15199 | cat >>confdefs.h <<_ACEOF |
| 15200 | #define HAVE_DECL_FREE 0 |
| 15201 | _ACEOF |
| 15202 | |
| 15203 | |
| 15204 | fi |
| 15205 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
| 15206 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 |
| 15207 | if test "${ac_cv_have_decl_malloc+set}" = set; then |
| 15208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15209 | else |
| 15210 | cat >conftest.$ac_ext <<_ACEOF |
| 15211 | /* confdefs.h. */ |
| 15212 | _ACEOF |
| 15213 | cat confdefs.h >>conftest.$ac_ext |
| 15214 | cat >>conftest.$ac_ext <<_ACEOF |
| 15215 | /* end confdefs.h. */ |
| 15216 | $ac_includes_default |
| 15217 | int |
| 15218 | main () |
| 15219 | { |
| 15220 | #ifndef malloc |
| 15221 | char *p = (char *) malloc; |
| 15222 | #endif |
| 15223 | |
| 15224 | ; |
| 15225 | return 0; |
| 15226 | } |
| 15227 | _ACEOF |
| 15228 | rm -f conftest.$ac_objext |
| 15229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15230 | (eval $ac_compile) 2>conftest.er1 |
| 15231 | ac_status=$? |
| 15232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15233 | rm -f conftest.er1 |
| 15234 | cat conftest.err >&5 |
| 15235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15236 | (exit $ac_status); } && |
| 15237 | { ac_try='test -z "$ac_c_werror_flag" |
| 15238 | || test ! -s conftest.err' |
| 15239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15240 | (eval $ac_try) 2>&5 |
| 15241 | ac_status=$? |
| 15242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15243 | (exit $ac_status); }; } && |
| 15244 | { ac_try='test -s conftest.$ac_objext' |
| 15245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15246 | (eval $ac_try) 2>&5 |
| 15247 | ac_status=$? |
| 15248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15249 | (exit $ac_status); }; }; then |
| 15250 | ac_cv_have_decl_malloc=yes |
| 15251 | else |
| 15252 | echo "$as_me: failed program was:" >&5 |
| 15253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15254 | |
| 15255 | ac_cv_have_decl_malloc=no |
| 15256 | fi |
| 15257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15258 | fi |
| 15259 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
| 15260 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 |
| 15261 | if test $ac_cv_have_decl_malloc = yes; then |
| 15262 | |
| 15263 | cat >>confdefs.h <<_ACEOF |
| 15264 | #define HAVE_DECL_MALLOC 1 |
| 15265 | _ACEOF |
| 15266 | |
| 15267 | |
| 15268 | else |
| 15269 | cat >>confdefs.h <<_ACEOF |
| 15270 | #define HAVE_DECL_MALLOC 0 |
| 15271 | _ACEOF |
| 15272 | |
| 15273 | |
| 15274 | fi |
| 15275 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 |
| 15276 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 |
| 15277 | if test "${ac_cv_have_decl_realloc+set}" = set; then |
| 15278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15279 | else |
| 15280 | cat >conftest.$ac_ext <<_ACEOF |
| 15281 | /* confdefs.h. */ |
| 15282 | _ACEOF |
| 15283 | cat confdefs.h >>conftest.$ac_ext |
| 15284 | cat >>conftest.$ac_ext <<_ACEOF |
| 15285 | /* end confdefs.h. */ |
| 15286 | $ac_includes_default |
| 15287 | int |
| 15288 | main () |
| 15289 | { |
| 15290 | #ifndef realloc |
| 15291 | char *p = (char *) realloc; |
| 15292 | #endif |
| 15293 | |
| 15294 | ; |
| 15295 | return 0; |
| 15296 | } |
| 15297 | _ACEOF |
| 15298 | rm -f conftest.$ac_objext |
| 15299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15300 | (eval $ac_compile) 2>conftest.er1 |
| 15301 | ac_status=$? |
| 15302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15303 | rm -f conftest.er1 |
| 15304 | cat conftest.err >&5 |
| 15305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15306 | (exit $ac_status); } && |
| 15307 | { ac_try='test -z "$ac_c_werror_flag" |
| 15308 | || test ! -s conftest.err' |
| 15309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15310 | (eval $ac_try) 2>&5 |
| 15311 | ac_status=$? |
| 15312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15313 | (exit $ac_status); }; } && |
| 15314 | { ac_try='test -s conftest.$ac_objext' |
| 15315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15316 | (eval $ac_try) 2>&5 |
| 15317 | ac_status=$? |
| 15318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15319 | (exit $ac_status); }; }; then |
| 15320 | ac_cv_have_decl_realloc=yes |
| 15321 | else |
| 15322 | echo "$as_me: failed program was:" >&5 |
| 15323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15324 | |
| 15325 | ac_cv_have_decl_realloc=no |
| 15326 | fi |
| 15327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15328 | fi |
| 15329 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
| 15330 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 |
| 15331 | if test $ac_cv_have_decl_realloc = yes; then |
| 15332 | |
| 15333 | cat >>confdefs.h <<_ACEOF |
| 15334 | #define HAVE_DECL_REALLOC 1 |
| 15335 | _ACEOF |
| 15336 | |
| 15337 | |
| 15338 | else |
| 15339 | cat >>confdefs.h <<_ACEOF |
| 15340 | #define HAVE_DECL_REALLOC 0 |
| 15341 | _ACEOF |
| 15342 | |
| 15343 | |
| 15344 | fi |
| 15345 | |
| 15346 | |
| 15347 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
| 15348 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 |
| 15349 | if test "${ac_cv_have_decl_strerror+set}" = set; then |
| 15350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15351 | else |
| 15352 | cat >conftest.$ac_ext <<_ACEOF |
| 15353 | /* confdefs.h. */ |
| 15354 | _ACEOF |
| 15355 | cat confdefs.h >>conftest.$ac_ext |
| 15356 | cat >>conftest.$ac_ext <<_ACEOF |
| 15357 | /* end confdefs.h. */ |
| 15358 | $ac_includes_default |
| 15359 | int |
| 15360 | main () |
| 15361 | { |
| 15362 | #ifndef strerror |
| 15363 | char *p = (char *) strerror; |
| 15364 | #endif |
| 15365 | |
| 15366 | ; |
| 15367 | return 0; |
| 15368 | } |
| 15369 | _ACEOF |
| 15370 | rm -f conftest.$ac_objext |
| 15371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15372 | (eval $ac_compile) 2>conftest.er1 |
| 15373 | ac_status=$? |
| 15374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15375 | rm -f conftest.er1 |
| 15376 | cat conftest.err >&5 |
| 15377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15378 | (exit $ac_status); } && |
| 15379 | { ac_try='test -z "$ac_c_werror_flag" |
| 15380 | || test ! -s conftest.err' |
| 15381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15382 | (eval $ac_try) 2>&5 |
| 15383 | ac_status=$? |
| 15384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15385 | (exit $ac_status); }; } && |
| 15386 | { ac_try='test -s conftest.$ac_objext' |
| 15387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15388 | (eval $ac_try) 2>&5 |
| 15389 | ac_status=$? |
| 15390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15391 | (exit $ac_status); }; }; then |
| 15392 | ac_cv_have_decl_strerror=yes |
| 15393 | else |
| 15394 | echo "$as_me: failed program was:" >&5 |
| 15395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15396 | |
| 15397 | ac_cv_have_decl_strerror=no |
| 15398 | fi |
| 15399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15400 | fi |
| 15401 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
| 15402 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 |
| 15403 | if test $ac_cv_have_decl_strerror = yes; then |
| 15404 | |
| 15405 | cat >>confdefs.h <<_ACEOF |
| 15406 | #define HAVE_DECL_STRERROR 1 |
| 15407 | _ACEOF |
| 15408 | |
| 15409 | |
| 15410 | else |
| 15411 | cat >>confdefs.h <<_ACEOF |
| 15412 | #define HAVE_DECL_STRERROR 0 |
| 15413 | _ACEOF |
| 15414 | |
| 15415 | |
| 15416 | fi |
| 15417 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
| 15418 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 |
| 15419 | if test "${ac_cv_have_decl_strstr+set}" = set; then |
| 15420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15421 | else |
| 15422 | cat >conftest.$ac_ext <<_ACEOF |
| 15423 | /* confdefs.h. */ |
| 15424 | _ACEOF |
| 15425 | cat confdefs.h >>conftest.$ac_ext |
| 15426 | cat >>conftest.$ac_ext <<_ACEOF |
| 15427 | /* end confdefs.h. */ |
| 15428 | $ac_includes_default |
| 15429 | int |
| 15430 | main () |
| 15431 | { |
| 15432 | #ifndef strstr |
| 15433 | char *p = (char *) strstr; |
| 15434 | #endif |
| 15435 | |
| 15436 | ; |
| 15437 | return 0; |
| 15438 | } |
| 15439 | _ACEOF |
| 15440 | rm -f conftest.$ac_objext |
| 15441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15442 | (eval $ac_compile) 2>conftest.er1 |
| 15443 | ac_status=$? |
| 15444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15445 | rm -f conftest.er1 |
| 15446 | cat conftest.err >&5 |
| 15447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15448 | (exit $ac_status); } && |
| 15449 | { ac_try='test -z "$ac_c_werror_flag" |
| 15450 | || test ! -s conftest.err' |
| 15451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15452 | (eval $ac_try) 2>&5 |
| 15453 | ac_status=$? |
| 15454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15455 | (exit $ac_status); }; } && |
| 15456 | { ac_try='test -s conftest.$ac_objext' |
| 15457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15458 | (eval $ac_try) 2>&5 |
| 15459 | ac_status=$? |
| 15460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15461 | (exit $ac_status); }; }; then |
| 15462 | ac_cv_have_decl_strstr=yes |
| 15463 | else |
| 15464 | echo "$as_me: failed program was:" >&5 |
| 15465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15466 | |
| 15467 | ac_cv_have_decl_strstr=no |
| 15468 | fi |
| 15469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15470 | fi |
| 15471 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
| 15472 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 |
| 15473 | if test $ac_cv_have_decl_strstr = yes; then |
| 15474 | |
| 15475 | cat >>confdefs.h <<_ACEOF |
| 15476 | #define HAVE_DECL_STRSTR 1 |
| 15477 | _ACEOF |
| 15478 | |
| 15479 | |
| 15480 | else |
| 15481 | cat >>confdefs.h <<_ACEOF |
| 15482 | #define HAVE_DECL_STRSTR 0 |
| 15483 | _ACEOF |
| 15484 | |
| 15485 | |
| 15486 | fi |
| 15487 | |
| 15488 | |
| 15489 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 |
| 15490 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 |
| 15491 | if test "${ac_cv_have_decl_getopt+set}" = set; then |
| 15492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15493 | else |
| 15494 | cat >conftest.$ac_ext <<_ACEOF |
| 15495 | /* confdefs.h. */ |
| 15496 | _ACEOF |
| 15497 | cat confdefs.h >>conftest.$ac_ext |
| 15498 | cat >>conftest.$ac_ext <<_ACEOF |
| 15499 | /* end confdefs.h. */ |
| 15500 | $ac_includes_default |
| 15501 | int |
| 15502 | main () |
| 15503 | { |
| 15504 | #ifndef getopt |
| 15505 | char *p = (char *) getopt; |
| 15506 | #endif |
| 15507 | |
| 15508 | ; |
| 15509 | return 0; |
| 15510 | } |
| 15511 | _ACEOF |
| 15512 | rm -f conftest.$ac_objext |
| 15513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15514 | (eval $ac_compile) 2>conftest.er1 |
| 15515 | ac_status=$? |
| 15516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15517 | rm -f conftest.er1 |
| 15518 | cat conftest.err >&5 |
| 15519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15520 | (exit $ac_status); } && |
| 15521 | { ac_try='test -z "$ac_c_werror_flag" |
| 15522 | || test ! -s conftest.err' |
| 15523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15524 | (eval $ac_try) 2>&5 |
| 15525 | ac_status=$? |
| 15526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15527 | (exit $ac_status); }; } && |
| 15528 | { ac_try='test -s conftest.$ac_objext' |
| 15529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15530 | (eval $ac_try) 2>&5 |
| 15531 | ac_status=$? |
| 15532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15533 | (exit $ac_status); }; }; then |
| 15534 | ac_cv_have_decl_getopt=yes |
| 15535 | else |
| 15536 | echo "$as_me: failed program was:" >&5 |
| 15537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15538 | |
| 15539 | ac_cv_have_decl_getopt=no |
| 15540 | fi |
| 15541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15542 | fi |
| 15543 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 |
| 15544 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 |
| 15545 | if test $ac_cv_have_decl_getopt = yes; then |
| 15546 | |
| 15547 | cat >>confdefs.h <<_ACEOF |
| 15548 | #define HAVE_DECL_GETOPT 1 |
| 15549 | _ACEOF |
| 15550 | |
| 15551 | |
| 15552 | else |
| 15553 | cat >>confdefs.h <<_ACEOF |
| 15554 | #define HAVE_DECL_GETOPT 0 |
| 15555 | _ACEOF |
| 15556 | |
| 15557 | |
| 15558 | fi |
| 15559 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
| 15560 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 |
| 15561 | if test "${ac_cv_have_decl_snprintf+set}" = set; then |
| 15562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15563 | else |
| 15564 | cat >conftest.$ac_ext <<_ACEOF |
| 15565 | /* confdefs.h. */ |
| 15566 | _ACEOF |
| 15567 | cat confdefs.h >>conftest.$ac_ext |
| 15568 | cat >>conftest.$ac_ext <<_ACEOF |
| 15569 | /* end confdefs.h. */ |
| 15570 | $ac_includes_default |
| 15571 | int |
| 15572 | main () |
| 15573 | { |
| 15574 | #ifndef snprintf |
| 15575 | char *p = (char *) snprintf; |
| 15576 | #endif |
| 15577 | |
| 15578 | ; |
| 15579 | return 0; |
| 15580 | } |
| 15581 | _ACEOF |
| 15582 | rm -f conftest.$ac_objext |
| 15583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15584 | (eval $ac_compile) 2>conftest.er1 |
| 15585 | ac_status=$? |
| 15586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15587 | rm -f conftest.er1 |
| 15588 | cat conftest.err >&5 |
| 15589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15590 | (exit $ac_status); } && |
| 15591 | { ac_try='test -z "$ac_c_werror_flag" |
| 15592 | || test ! -s conftest.err' |
| 15593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15594 | (eval $ac_try) 2>&5 |
| 15595 | ac_status=$? |
| 15596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15597 | (exit $ac_status); }; } && |
| 15598 | { ac_try='test -s conftest.$ac_objext' |
| 15599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15600 | (eval $ac_try) 2>&5 |
| 15601 | ac_status=$? |
| 15602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15603 | (exit $ac_status); }; }; then |
| 15604 | ac_cv_have_decl_snprintf=yes |
| 15605 | else |
| 15606 | echo "$as_me: failed program was:" >&5 |
| 15607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15608 | |
| 15609 | ac_cv_have_decl_snprintf=no |
| 15610 | fi |
| 15611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15612 | fi |
| 15613 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 |
| 15614 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 |
| 15615 | if test $ac_cv_have_decl_snprintf = yes; then |
| 15616 | |
| 15617 | cat >>confdefs.h <<_ACEOF |
| 15618 | #define HAVE_DECL_SNPRINTF 1 |
| 15619 | _ACEOF |
| 15620 | |
| 15621 | |
| 15622 | else |
| 15623 | cat >>confdefs.h <<_ACEOF |
| 15624 | #define HAVE_DECL_SNPRINTF 0 |
| 15625 | _ACEOF |
| 15626 | |
| 15627 | |
| 15628 | fi |
| 15629 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
| 15630 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 |
| 15631 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
| 15632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15633 | else |
| 15634 | cat >conftest.$ac_ext <<_ACEOF |
| 15635 | /* confdefs.h. */ |
| 15636 | _ACEOF |
| 15637 | cat confdefs.h >>conftest.$ac_ext |
| 15638 | cat >>conftest.$ac_ext <<_ACEOF |
| 15639 | /* end confdefs.h. */ |
| 15640 | $ac_includes_default |
| 15641 | int |
| 15642 | main () |
| 15643 | { |
| 15644 | #ifndef vsnprintf |
| 15645 | char *p = (char *) vsnprintf; |
| 15646 | #endif |
| 15647 | |
| 15648 | ; |
| 15649 | return 0; |
| 15650 | } |
| 15651 | _ACEOF |
| 15652 | rm -f conftest.$ac_objext |
| 15653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15654 | (eval $ac_compile) 2>conftest.er1 |
| 15655 | ac_status=$? |
| 15656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15657 | rm -f conftest.er1 |
| 15658 | cat conftest.err >&5 |
| 15659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15660 | (exit $ac_status); } && |
| 15661 | { ac_try='test -z "$ac_c_werror_flag" |
| 15662 | || test ! -s conftest.err' |
| 15663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15664 | (eval $ac_try) 2>&5 |
| 15665 | ac_status=$? |
| 15666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15667 | (exit $ac_status); }; } && |
| 15668 | { ac_try='test -s conftest.$ac_objext' |
| 15669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15670 | (eval $ac_try) 2>&5 |
| 15671 | ac_status=$? |
| 15672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15673 | (exit $ac_status); }; }; then |
| 15674 | ac_cv_have_decl_vsnprintf=yes |
| 15675 | else |
| 15676 | echo "$as_me: failed program was:" >&5 |
| 15677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15678 | |
| 15679 | ac_cv_have_decl_vsnprintf=no |
| 15680 | fi |
| 15681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15682 | fi |
| 15683 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
| 15684 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 |
| 15685 | if test $ac_cv_have_decl_vsnprintf = yes; then |
| 15686 | |
| 15687 | cat >>confdefs.h <<_ACEOF |
| 15688 | #define HAVE_DECL_VSNPRINTF 1 |
| 15689 | _ACEOF |
| 15690 | |
| 15691 | |
| 15692 | else |
| 15693 | cat >>confdefs.h <<_ACEOF |
| 15694 | #define HAVE_DECL_VSNPRINTF 0 |
| 15695 | _ACEOF |
| 15696 | |
| 15697 | |
| 15698 | fi |
| 15699 | |
| 15700 | |
| 15701 | |
| 15702 | # ----------------------- # |
| 15703 | # Checks for structures. # |
| 15704 | # ----------------------- # |
| 15705 | |
| 15706 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 15707 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 15708 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 15709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15710 | else |
| 15711 | cat >conftest.$ac_ext <<_ACEOF |
| 15712 | /* confdefs.h. */ |
| 15713 | _ACEOF |
| 15714 | cat confdefs.h >>conftest.$ac_ext |
| 15715 | cat >>conftest.$ac_ext <<_ACEOF |
| 15716 | /* end confdefs.h. */ |
| 15717 | $ac_includes_default |
| 15718 | int |
| 15719 | main () |
| 15720 | { |
| 15721 | static struct stat ac_aggr; |
| 15722 | if (ac_aggr.st_blocks) |
| 15723 | return 0; |
| 15724 | ; |
| 15725 | return 0; |
| 15726 | } |
| 15727 | _ACEOF |
| 15728 | rm -f conftest.$ac_objext |
| 15729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15730 | (eval $ac_compile) 2>conftest.er1 |
| 15731 | ac_status=$? |
| 15732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15733 | rm -f conftest.er1 |
| 15734 | cat conftest.err >&5 |
| 15735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15736 | (exit $ac_status); } && |
| 15737 | { ac_try='test -z "$ac_c_werror_flag" |
| 15738 | || test ! -s conftest.err' |
| 15739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15740 | (eval $ac_try) 2>&5 |
| 15741 | ac_status=$? |
| 15742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15743 | (exit $ac_status); }; } && |
| 15744 | { ac_try='test -s conftest.$ac_objext' |
| 15745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15746 | (eval $ac_try) 2>&5 |
| 15747 | ac_status=$? |
| 15748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15749 | (exit $ac_status); }; }; then |
| 15750 | ac_cv_member_struct_stat_st_blocks=yes |
| 15751 | else |
| 15752 | echo "$as_me: failed program was:" >&5 |
| 15753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15754 | |
| 15755 | cat >conftest.$ac_ext <<_ACEOF |
| 15756 | /* confdefs.h. */ |
| 15757 | _ACEOF |
| 15758 | cat confdefs.h >>conftest.$ac_ext |
| 15759 | cat >>conftest.$ac_ext <<_ACEOF |
| 15760 | /* end confdefs.h. */ |
| 15761 | $ac_includes_default |
| 15762 | int |
| 15763 | main () |
| 15764 | { |
| 15765 | static struct stat ac_aggr; |
| 15766 | if (sizeof ac_aggr.st_blocks) |
| 15767 | return 0; |
| 15768 | ; |
| 15769 | return 0; |
| 15770 | } |
| 15771 | _ACEOF |
| 15772 | rm -f conftest.$ac_objext |
| 15773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15774 | (eval $ac_compile) 2>conftest.er1 |
| 15775 | ac_status=$? |
| 15776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15777 | rm -f conftest.er1 |
| 15778 | cat conftest.err >&5 |
| 15779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15780 | (exit $ac_status); } && |
| 15781 | { ac_try='test -z "$ac_c_werror_flag" |
| 15782 | || test ! -s conftest.err' |
| 15783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15784 | (eval $ac_try) 2>&5 |
| 15785 | ac_status=$? |
| 15786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15787 | (exit $ac_status); }; } && |
| 15788 | { ac_try='test -s conftest.$ac_objext' |
| 15789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15790 | (eval $ac_try) 2>&5 |
| 15791 | ac_status=$? |
| 15792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15793 | (exit $ac_status); }; }; then |
| 15794 | ac_cv_member_struct_stat_st_blocks=yes |
| 15795 | else |
| 15796 | echo "$as_me: failed program was:" >&5 |
| 15797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15798 | |
| 15799 | ac_cv_member_struct_stat_st_blocks=no |
| 15800 | fi |
| 15801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15802 | fi |
| 15803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15804 | fi |
| 15805 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 15806 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 15807 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
| 15808 | |
| 15809 | cat >>confdefs.h <<_ACEOF |
| 15810 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 15811 | _ACEOF |
| 15812 | |
| 15813 | |
| 15814 | fi |
| 15815 | |
| 15816 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 15817 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 15818 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 15819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15820 | else |
| 15821 | cat >conftest.$ac_ext <<_ACEOF |
| 15822 | /* confdefs.h. */ |
| 15823 | _ACEOF |
| 15824 | cat confdefs.h >>conftest.$ac_ext |
| 15825 | cat >>conftest.$ac_ext <<_ACEOF |
| 15826 | /* end confdefs.h. */ |
| 15827 | $ac_includes_default |
| 15828 | int |
| 15829 | main () |
| 15830 | { |
| 15831 | static struct stat ac_aggr; |
| 15832 | if (ac_aggr.st_blksize) |
| 15833 | return 0; |
| 15834 | ; |
| 15835 | return 0; |
| 15836 | } |
| 15837 | _ACEOF |
| 15838 | rm -f conftest.$ac_objext |
| 15839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15840 | (eval $ac_compile) 2>conftest.er1 |
| 15841 | ac_status=$? |
| 15842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15843 | rm -f conftest.er1 |
| 15844 | cat conftest.err >&5 |
| 15845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15846 | (exit $ac_status); } && |
| 15847 | { ac_try='test -z "$ac_c_werror_flag" |
| 15848 | || test ! -s conftest.err' |
| 15849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15850 | (eval $ac_try) 2>&5 |
| 15851 | ac_status=$? |
| 15852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15853 | (exit $ac_status); }; } && |
| 15854 | { ac_try='test -s conftest.$ac_objext' |
| 15855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15856 | (eval $ac_try) 2>&5 |
| 15857 | ac_status=$? |
| 15858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15859 | (exit $ac_status); }; }; then |
| 15860 | ac_cv_member_struct_stat_st_blksize=yes |
| 15861 | else |
| 15862 | echo "$as_me: failed program was:" >&5 |
| 15863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15864 | |
| 15865 | cat >conftest.$ac_ext <<_ACEOF |
| 15866 | /* confdefs.h. */ |
| 15867 | _ACEOF |
| 15868 | cat confdefs.h >>conftest.$ac_ext |
| 15869 | cat >>conftest.$ac_ext <<_ACEOF |
| 15870 | /* end confdefs.h. */ |
| 15871 | $ac_includes_default |
| 15872 | int |
| 15873 | main () |
| 15874 | { |
| 15875 | static struct stat ac_aggr; |
| 15876 | if (sizeof ac_aggr.st_blksize) |
| 15877 | return 0; |
| 15878 | ; |
| 15879 | return 0; |
| 15880 | } |
| 15881 | _ACEOF |
| 15882 | rm -f conftest.$ac_objext |
| 15883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15884 | (eval $ac_compile) 2>conftest.er1 |
| 15885 | ac_status=$? |
| 15886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15887 | rm -f conftest.er1 |
| 15888 | cat conftest.err >&5 |
| 15889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15890 | (exit $ac_status); } && |
| 15891 | { ac_try='test -z "$ac_c_werror_flag" |
| 15892 | || test ! -s conftest.err' |
| 15893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15894 | (eval $ac_try) 2>&5 |
| 15895 | ac_status=$? |
| 15896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15897 | (exit $ac_status); }; } && |
| 15898 | { ac_try='test -s conftest.$ac_objext' |
| 15899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15900 | (eval $ac_try) 2>&5 |
| 15901 | ac_status=$? |
| 15902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15903 | (exit $ac_status); }; }; then |
| 15904 | ac_cv_member_struct_stat_st_blksize=yes |
| 15905 | else |
| 15906 | echo "$as_me: failed program was:" >&5 |
| 15907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15908 | |
| 15909 | ac_cv_member_struct_stat_st_blksize=no |
| 15910 | fi |
| 15911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15912 | fi |
| 15913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15914 | fi |
| 15915 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 15916 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 15917 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
| 15918 | |
| 15919 | cat >>confdefs.h <<_ACEOF |
| 15920 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 15921 | _ACEOF |
| 15922 | |
| 15923 | |
| 15924 | fi |
| 15925 | |
| 15926 | |
| 15927 | # ------------------ # |
| 15928 | # Checks for types. # |
| 15929 | # ------------------ # |
| 15930 | |
| 15931 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 15932 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 15933 | if test "${ac_cv_type_signal+set}" = set; then |
| 15934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15935 | else |
| 15936 | cat >conftest.$ac_ext <<_ACEOF |
| 15937 | /* confdefs.h. */ |
| 15938 | _ACEOF |
| 15939 | cat confdefs.h >>conftest.$ac_ext |
| 15940 | cat >>conftest.$ac_ext <<_ACEOF |
| 15941 | /* end confdefs.h. */ |
| 15942 | #include <sys/types.h> |
| 15943 | #include <signal.h> |
| 15944 | #ifdef signal |
| 15945 | # undef signal |
| 15946 | #endif |
| 15947 | #ifdef __cplusplus |
| 15948 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 15949 | #else |
| 15950 | void (*signal ()) (); |
| 15951 | #endif |
| 15952 | |
| 15953 | int |
| 15954 | main () |
| 15955 | { |
| 15956 | int i; |
| 15957 | ; |
| 15958 | return 0; |
| 15959 | } |
| 15960 | _ACEOF |
| 15961 | rm -f conftest.$ac_objext |
| 15962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15963 | (eval $ac_compile) 2>conftest.er1 |
| 15964 | ac_status=$? |
| 15965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15966 | rm -f conftest.er1 |
| 15967 | cat conftest.err >&5 |
| 15968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15969 | (exit $ac_status); } && |
| 15970 | { ac_try='test -z "$ac_c_werror_flag" |
| 15971 | || test ! -s conftest.err' |
| 15972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15973 | (eval $ac_try) 2>&5 |
| 15974 | ac_status=$? |
| 15975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15976 | (exit $ac_status); }; } && |
| 15977 | { ac_try='test -s conftest.$ac_objext' |
| 15978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15979 | (eval $ac_try) 2>&5 |
| 15980 | ac_status=$? |
| 15981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15982 | (exit $ac_status); }; }; then |
| 15983 | ac_cv_type_signal=void |
| 15984 | else |
| 15985 | echo "$as_me: failed program was:" >&5 |
| 15986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15987 | |
| 15988 | ac_cv_type_signal=int |
| 15989 | fi |
| 15990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15991 | fi |
| 15992 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 15993 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 15994 | |
| 15995 | cat >>confdefs.h <<_ACEOF |
| 15996 | #define RETSIGTYPE $ac_cv_type_signal |
| 15997 | _ACEOF |
| 15998 | |
| 15999 | |
| 16000 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 16001 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 16002 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 16003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16004 | else |
| 16005 | cat >conftest.$ac_ext <<_ACEOF |
| 16006 | /* confdefs.h. */ |
| 16007 | _ACEOF |
| 16008 | cat confdefs.h >>conftest.$ac_ext |
| 16009 | cat >>conftest.$ac_ext <<_ACEOF |
| 16010 | /* end confdefs.h. */ |
| 16011 | #include <sys/types.h> |
| 16012 | #include <sys/socket.h> |
| 16013 | |
| 16014 | |
| 16015 | int |
| 16016 | main () |
| 16017 | { |
| 16018 | if ((socklen_t *) 0) |
| 16019 | return 0; |
| 16020 | if (sizeof (socklen_t)) |
| 16021 | return 0; |
| 16022 | ; |
| 16023 | return 0; |
| 16024 | } |
| 16025 | _ACEOF |
| 16026 | rm -f conftest.$ac_objext |
| 16027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16028 | (eval $ac_compile) 2>conftest.er1 |
| 16029 | ac_status=$? |
| 16030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16031 | rm -f conftest.er1 |
| 16032 | cat conftest.err >&5 |
| 16033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16034 | (exit $ac_status); } && |
| 16035 | { ac_try='test -z "$ac_c_werror_flag" |
| 16036 | || test ! -s conftest.err' |
| 16037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16038 | (eval $ac_try) 2>&5 |
| 16039 | ac_status=$? |
| 16040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16041 | (exit $ac_status); }; } && |
| 16042 | { ac_try='test -s conftest.$ac_objext' |
| 16043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16044 | (eval $ac_try) 2>&5 |
| 16045 | ac_status=$? |
| 16046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16047 | (exit $ac_status); }; }; then |
| 16048 | ac_cv_type_socklen_t=yes |
| 16049 | else |
| 16050 | echo "$as_me: failed program was:" >&5 |
| 16051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16052 | |
| 16053 | ac_cv_type_socklen_t=no |
| 16054 | fi |
| 16055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16056 | fi |
| 16057 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 16058 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 16059 | if test $ac_cv_type_socklen_t = yes; then |
| 16060 | |
| 16061 | cat >>confdefs.h <<_ACEOF |
| 16062 | #define HAVE_SOCKLEN_T 1 |
| 16063 | _ACEOF |
| 16064 | |
| 16065 | |
| 16066 | fi |
| 16067 | |
| 16068 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 16069 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 16070 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 16071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16072 | else |
| 16073 | cat >conftest.$ac_ext <<_ACEOF |
| 16074 | /* confdefs.h. */ |
| 16075 | _ACEOF |
| 16076 | cat confdefs.h >>conftest.$ac_ext |
| 16077 | cat >>conftest.$ac_ext <<_ACEOF |
| 16078 | /* end confdefs.h. */ |
| 16079 | #include <stdint.h> |
| 16080 | |
| 16081 | int |
| 16082 | main () |
| 16083 | { |
| 16084 | if ((uintptr_t *) 0) |
| 16085 | return 0; |
| 16086 | if (sizeof (uintptr_t)) |
| 16087 | return 0; |
| 16088 | ; |
| 16089 | return 0; |
| 16090 | } |
| 16091 | _ACEOF |
| 16092 | rm -f conftest.$ac_objext |
| 16093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16094 | (eval $ac_compile) 2>conftest.er1 |
| 16095 | ac_status=$? |
| 16096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16097 | rm -f conftest.er1 |
| 16098 | cat conftest.err >&5 |
| 16099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16100 | (exit $ac_status); } && |
| 16101 | { ac_try='test -z "$ac_c_werror_flag" |
| 16102 | || test ! -s conftest.err' |
| 16103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16104 | (eval $ac_try) 2>&5 |
| 16105 | ac_status=$? |
| 16106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16107 | (exit $ac_status); }; } && |
| 16108 | { ac_try='test -s conftest.$ac_objext' |
| 16109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16110 | (eval $ac_try) 2>&5 |
| 16111 | ac_status=$? |
| 16112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16113 | (exit $ac_status); }; }; then |
| 16114 | ac_cv_type_uintptr_t=yes |
| 16115 | else |
| 16116 | echo "$as_me: failed program was:" >&5 |
| 16117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16118 | |
| 16119 | ac_cv_type_uintptr_t=no |
| 16120 | fi |
| 16121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16122 | fi |
| 16123 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 16124 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 16125 | if test $ac_cv_type_uintptr_t = yes; then |
| 16126 | |
| 16127 | cat >>confdefs.h <<_ACEOF |
| 16128 | #define HAVE_UINTPTR_T 1 |
| 16129 | _ACEOF |
| 16130 | |
| 16131 | |
| 16132 | fi |
| 16133 | |
| 16134 | |
| 16135 | # ------------------------------------- # |
| 16136 | # Checks for compiler characteristics. # |
| 16137 | # ------------------------------------- # |
| 16138 | |
| 16139 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 16140 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 16141 | if test "${ac_cv_c_const+set}" = set; then |
| 16142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16143 | else |
| 16144 | cat >conftest.$ac_ext <<_ACEOF |
| 16145 | /* confdefs.h. */ |
| 16146 | _ACEOF |
| 16147 | cat confdefs.h >>conftest.$ac_ext |
| 16148 | cat >>conftest.$ac_ext <<_ACEOF |
| 16149 | /* end confdefs.h. */ |
| 16150 | |
| 16151 | int |
| 16152 | main () |
| 16153 | { |
| 16154 | /* FIXME: Include the comments suggested by Paul. */ |
| 16155 | #ifndef __cplusplus |
| 16156 | /* Ultrix mips cc rejects this. */ |
| 16157 | typedef int charset[2]; |
| 16158 | const charset x; |
| 16159 | /* SunOS 4.1.1 cc rejects this. */ |
| 16160 | char const *const *ccp; |
| 16161 | char **p; |
| 16162 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16163 | struct point {int x, y;}; |
| 16164 | static struct point const zero = {0,0}; |
| 16165 | /* AIX XL C 1.02.0.0 rejects this. |
| 16166 | It does not let you subtract one const X* pointer from another in |
| 16167 | an arm of an if-expression whose if-part is not a constant |
| 16168 | expression */ |
| 16169 | const char *g = "string"; |
| 16170 | ccp = &g + (g ? g-g : 0); |
| 16171 | /* HPUX 7.0 cc rejects these. */ |
| 16172 | ++ccp; |
| 16173 | p = (char**) ccp; |
| 16174 | ccp = (char const *const *) p; |
| 16175 | { /* SCO 3.2v4 cc rejects this. */ |
| 16176 | char *t; |
| 16177 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 16178 | |
| 16179 | *t++ = 0; |
| 16180 | } |
| 16181 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 16182 | int x[] = {25, 17}; |
| 16183 | const int *foo = &x[0]; |
| 16184 | ++foo; |
| 16185 | } |
| 16186 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 16187 | typedef const int *iptr; |
| 16188 | iptr p = 0; |
| 16189 | ++p; |
| 16190 | } |
| 16191 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 16192 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 16193 | struct s { int j; const int *ap[3]; }; |
| 16194 | struct s *b; b->j = 5; |
| 16195 | } |
| 16196 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 16197 | const int foo = 10; |
| 16198 | } |
| 16199 | #endif |
| 16200 | |
| 16201 | ; |
| 16202 | return 0; |
| 16203 | } |
| 16204 | _ACEOF |
| 16205 | rm -f conftest.$ac_objext |
| 16206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16207 | (eval $ac_compile) 2>conftest.er1 |
| 16208 | ac_status=$? |
| 16209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16210 | rm -f conftest.er1 |
| 16211 | cat conftest.err >&5 |
| 16212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16213 | (exit $ac_status); } && |
| 16214 | { ac_try='test -z "$ac_c_werror_flag" |
| 16215 | || test ! -s conftest.err' |
| 16216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16217 | (eval $ac_try) 2>&5 |
| 16218 | ac_status=$? |
| 16219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16220 | (exit $ac_status); }; } && |
| 16221 | { ac_try='test -s conftest.$ac_objext' |
| 16222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16223 | (eval $ac_try) 2>&5 |
| 16224 | ac_status=$? |
| 16225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16226 | (exit $ac_status); }; }; then |
| 16227 | ac_cv_c_const=yes |
| 16228 | else |
| 16229 | echo "$as_me: failed program was:" >&5 |
| 16230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16231 | |
| 16232 | ac_cv_c_const=no |
| 16233 | fi |
| 16234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16235 | fi |
| 16236 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 16237 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 16238 | if test $ac_cv_c_const = no; then |
| 16239 | |
| 16240 | cat >>confdefs.h <<\_ACEOF |
| 16241 | #define const |
| 16242 | _ACEOF |
| 16243 | |
| 16244 | fi |
| 16245 | |
| 16246 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 16247 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 16248 | if test "${ac_cv_c_inline+set}" = set; then |
| 16249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16250 | else |
| 16251 | ac_cv_c_inline=no |
| 16252 | for ac_kw in inline __inline__ __inline; do |
| 16253 | cat >conftest.$ac_ext <<_ACEOF |
| 16254 | /* confdefs.h. */ |
| 16255 | _ACEOF |
| 16256 | cat confdefs.h >>conftest.$ac_ext |
| 16257 | cat >>conftest.$ac_ext <<_ACEOF |
| 16258 | /* end confdefs.h. */ |
| 16259 | #ifndef __cplusplus |
| 16260 | typedef int foo_t; |
| 16261 | static $ac_kw foo_t static_foo () {return 0; } |
| 16262 | $ac_kw foo_t foo () {return 0; } |
| 16263 | #endif |
| 16264 | |
| 16265 | _ACEOF |
| 16266 | rm -f conftest.$ac_objext |
| 16267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16268 | (eval $ac_compile) 2>conftest.er1 |
| 16269 | ac_status=$? |
| 16270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16271 | rm -f conftest.er1 |
| 16272 | cat conftest.err >&5 |
| 16273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16274 | (exit $ac_status); } && |
| 16275 | { ac_try='test -z "$ac_c_werror_flag" |
| 16276 | || test ! -s conftest.err' |
| 16277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16278 | (eval $ac_try) 2>&5 |
| 16279 | ac_status=$? |
| 16280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16281 | (exit $ac_status); }; } && |
| 16282 | { ac_try='test -s conftest.$ac_objext' |
| 16283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16284 | (eval $ac_try) 2>&5 |
| 16285 | ac_status=$? |
| 16286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16287 | (exit $ac_status); }; }; then |
| 16288 | ac_cv_c_inline=$ac_kw; break |
| 16289 | else |
| 16290 | echo "$as_me: failed program was:" >&5 |
| 16291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16292 | |
| 16293 | fi |
| 16294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16295 | done |
| 16296 | |
| 16297 | fi |
| 16298 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 16299 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 16300 | |
| 16301 | |
| 16302 | case $ac_cv_c_inline in |
| 16303 | inline | yes) ;; |
| 16304 | *) |
| 16305 | case $ac_cv_c_inline in |
| 16306 | no) ac_val=;; |
| 16307 | *) ac_val=$ac_cv_c_inline;; |
| 16308 | esac |
| 16309 | cat >>confdefs.h <<_ACEOF |
| 16310 | #ifndef __cplusplus |
| 16311 | #define inline $ac_val |
| 16312 | #endif |
| 16313 | _ACEOF |
| 16314 | ;; |
| 16315 | esac |
| 16316 | |
| 16317 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 16318 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 16319 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 16320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16321 | else |
| 16322 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 16323 | cat >conftest.$ac_ext <<_ACEOF |
| 16324 | /* confdefs.h. */ |
| 16325 | _ACEOF |
| 16326 | cat confdefs.h >>conftest.$ac_ext |
| 16327 | cat >>conftest.$ac_ext <<_ACEOF |
| 16328 | /* end confdefs.h. */ |
| 16329 | #include <sys/types.h> |
| 16330 | #include <sys/param.h> |
| 16331 | |
| 16332 | int |
| 16333 | main () |
| 16334 | { |
| 16335 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 16336 | bogus endian macros |
| 16337 | #endif |
| 16338 | |
| 16339 | ; |
| 16340 | return 0; |
| 16341 | } |
| 16342 | _ACEOF |
| 16343 | rm -f conftest.$ac_objext |
| 16344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16345 | (eval $ac_compile) 2>conftest.er1 |
| 16346 | ac_status=$? |
| 16347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16348 | rm -f conftest.er1 |
| 16349 | cat conftest.err >&5 |
| 16350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16351 | (exit $ac_status); } && |
| 16352 | { ac_try='test -z "$ac_c_werror_flag" |
| 16353 | || test ! -s conftest.err' |
| 16354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16355 | (eval $ac_try) 2>&5 |
| 16356 | ac_status=$? |
| 16357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16358 | (exit $ac_status); }; } && |
| 16359 | { ac_try='test -s conftest.$ac_objext' |
| 16360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16361 | (eval $ac_try) 2>&5 |
| 16362 | ac_status=$? |
| 16363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16364 | (exit $ac_status); }; }; then |
| 16365 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 16366 | cat >conftest.$ac_ext <<_ACEOF |
| 16367 | /* confdefs.h. */ |
| 16368 | _ACEOF |
| 16369 | cat confdefs.h >>conftest.$ac_ext |
| 16370 | cat >>conftest.$ac_ext <<_ACEOF |
| 16371 | /* end confdefs.h. */ |
| 16372 | #include <sys/types.h> |
| 16373 | #include <sys/param.h> |
| 16374 | |
| 16375 | int |
| 16376 | main () |
| 16377 | { |
| 16378 | #if BYTE_ORDER != BIG_ENDIAN |
| 16379 | not big endian |
| 16380 | #endif |
| 16381 | |
| 16382 | ; |
| 16383 | return 0; |
| 16384 | } |
| 16385 | _ACEOF |
| 16386 | rm -f conftest.$ac_objext |
| 16387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16388 | (eval $ac_compile) 2>conftest.er1 |
| 16389 | ac_status=$? |
| 16390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16391 | rm -f conftest.er1 |
| 16392 | cat conftest.err >&5 |
| 16393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16394 | (exit $ac_status); } && |
| 16395 | { ac_try='test -z "$ac_c_werror_flag" |
| 16396 | || test ! -s conftest.err' |
| 16397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16398 | (eval $ac_try) 2>&5 |
| 16399 | ac_status=$? |
| 16400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16401 | (exit $ac_status); }; } && |
| 16402 | { ac_try='test -s conftest.$ac_objext' |
| 16403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16404 | (eval $ac_try) 2>&5 |
| 16405 | ac_status=$? |
| 16406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16407 | (exit $ac_status); }; }; then |
| 16408 | ac_cv_c_bigendian=yes |
| 16409 | else |
| 16410 | echo "$as_me: failed program was:" >&5 |
| 16411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16412 | |
| 16413 | ac_cv_c_bigendian=no |
| 16414 | fi |
| 16415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16416 | else |
| 16417 | echo "$as_me: failed program was:" >&5 |
| 16418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16419 | |
| 16420 | # It does not; compile a test program. |
| 16421 | if test "$cross_compiling" = yes; then |
| 16422 | # try to guess the endianness by grepping values into an object file |
| 16423 | ac_cv_c_bigendian=unknown |
| 16424 | cat >conftest.$ac_ext <<_ACEOF |
| 16425 | /* confdefs.h. */ |
| 16426 | _ACEOF |
| 16427 | cat confdefs.h >>conftest.$ac_ext |
| 16428 | cat >>conftest.$ac_ext <<_ACEOF |
| 16429 | /* end confdefs.h. */ |
| 16430 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 16431 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 16432 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 16433 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 16434 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 16435 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 16436 | int |
| 16437 | main () |
| 16438 | { |
| 16439 | _ascii (); _ebcdic (); |
| 16440 | ; |
| 16441 | return 0; |
| 16442 | } |
| 16443 | _ACEOF |
| 16444 | rm -f conftest.$ac_objext |
| 16445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16446 | (eval $ac_compile) 2>conftest.er1 |
| 16447 | ac_status=$? |
| 16448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16449 | rm -f conftest.er1 |
| 16450 | cat conftest.err >&5 |
| 16451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16452 | (exit $ac_status); } && |
| 16453 | { ac_try='test -z "$ac_c_werror_flag" |
| 16454 | || test ! -s conftest.err' |
| 16455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16456 | (eval $ac_try) 2>&5 |
| 16457 | ac_status=$? |
| 16458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16459 | (exit $ac_status); }; } && |
| 16460 | { ac_try='test -s conftest.$ac_objext' |
| 16461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16462 | (eval $ac_try) 2>&5 |
| 16463 | ac_status=$? |
| 16464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16465 | (exit $ac_status); }; }; then |
| 16466 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 16467 | ac_cv_c_bigendian=yes |
| 16468 | fi |
| 16469 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 16470 | if test "$ac_cv_c_bigendian" = unknown; then |
| 16471 | ac_cv_c_bigendian=no |
| 16472 | else |
| 16473 | # finding both strings is unlikely to happen, but who knows? |
| 16474 | ac_cv_c_bigendian=unknown |
| 16475 | fi |
| 16476 | fi |
| 16477 | else |
| 16478 | echo "$as_me: failed program was:" >&5 |
| 16479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16480 | |
| 16481 | fi |
| 16482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16483 | else |
| 16484 | cat >conftest.$ac_ext <<_ACEOF |
| 16485 | /* confdefs.h. */ |
| 16486 | _ACEOF |
| 16487 | cat confdefs.h >>conftest.$ac_ext |
| 16488 | cat >>conftest.$ac_ext <<_ACEOF |
| 16489 | /* end confdefs.h. */ |
| 16490 | int |
| 16491 | main () |
| 16492 | { |
| 16493 | /* Are we little or big endian? From Harbison&Steele. */ |
| 16494 | union |
| 16495 | { |
| 16496 | long l; |
| 16497 | char c[sizeof (long)]; |
| 16498 | } u; |
| 16499 | u.l = 1; |
| 16500 | exit (u.c[sizeof (long) - 1] == 1); |
| 16501 | } |
| 16502 | _ACEOF |
| 16503 | rm -f conftest$ac_exeext |
| 16504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16505 | (eval $ac_link) 2>&5 |
| 16506 | ac_status=$? |
| 16507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16508 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16510 | (eval $ac_try) 2>&5 |
| 16511 | ac_status=$? |
| 16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16513 | (exit $ac_status); }; }; then |
| 16514 | ac_cv_c_bigendian=no |
| 16515 | else |
| 16516 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16517 | echo "$as_me: failed program was:" >&5 |
| 16518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16519 | |
| 16520 | ( exit $ac_status ) |
| 16521 | ac_cv_c_bigendian=yes |
| 16522 | fi |
| 16523 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16524 | fi |
| 16525 | fi |
| 16526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16527 | fi |
| 16528 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 16529 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 16530 | case $ac_cv_c_bigendian in |
| 16531 | yes) |
| 16532 | |
| 16533 | cat >>confdefs.h <<\_ACEOF |
| 16534 | #define WORDS_BIGENDIAN 1 |
| 16535 | _ACEOF |
| 16536 | ;; |
| 16537 | no) |
| 16538 | ;; |
| 16539 | *) |
| 16540 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 16541 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 16542 | echo "$as_me: error: unknown endianness |
| 16543 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 16544 | { (exit 1); exit 1; }; } ;; |
| 16545 | esac |
| 16546 | |
| 16547 | |
| 16548 | # ------------------------------ # |
| 16549 | # Checks for library functions. # |
| 16550 | # ------------------------------ # |
| 16551 | |
| 16552 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 16553 | # for constant arguments. Useless! |
| 16554 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 16555 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 16556 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 16557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16558 | else |
| 16559 | cat >conftest.$ac_ext <<_ACEOF |
| 16560 | /* confdefs.h. */ |
| 16561 | _ACEOF |
| 16562 | cat confdefs.h >>conftest.$ac_ext |
| 16563 | cat >>conftest.$ac_ext <<_ACEOF |
| 16564 | /* end confdefs.h. */ |
| 16565 | #include <alloca.h> |
| 16566 | int |
| 16567 | main () |
| 16568 | { |
| 16569 | char *p = (char *) alloca (2 * sizeof (int)); |
| 16570 | ; |
| 16571 | return 0; |
| 16572 | } |
| 16573 | _ACEOF |
| 16574 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16576 | (eval $ac_link) 2>conftest.er1 |
| 16577 | ac_status=$? |
| 16578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16579 | rm -f conftest.er1 |
| 16580 | cat conftest.err >&5 |
| 16581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16582 | (exit $ac_status); } && |
| 16583 | { ac_try='test -z "$ac_c_werror_flag" |
| 16584 | || test ! -s conftest.err' |
| 16585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16586 | (eval $ac_try) 2>&5 |
| 16587 | ac_status=$? |
| 16588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16589 | (exit $ac_status); }; } && |
| 16590 | { ac_try='test -s conftest$ac_exeext' |
| 16591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16592 | (eval $ac_try) 2>&5 |
| 16593 | ac_status=$? |
| 16594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16595 | (exit $ac_status); }; }; then |
| 16596 | ac_cv_working_alloca_h=yes |
| 16597 | else |
| 16598 | echo "$as_me: failed program was:" >&5 |
| 16599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16600 | |
| 16601 | ac_cv_working_alloca_h=no |
| 16602 | fi |
| 16603 | rm -f conftest.err conftest.$ac_objext \ |
| 16604 | conftest$ac_exeext conftest.$ac_ext |
| 16605 | fi |
| 16606 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 16607 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 16608 | if test $ac_cv_working_alloca_h = yes; then |
| 16609 | |
| 16610 | cat >>confdefs.h <<\_ACEOF |
| 16611 | #define HAVE_ALLOCA_H 1 |
| 16612 | _ACEOF |
| 16613 | |
| 16614 | fi |
| 16615 | |
| 16616 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 16617 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 16618 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 16619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16620 | else |
| 16621 | cat >conftest.$ac_ext <<_ACEOF |
| 16622 | /* confdefs.h. */ |
| 16623 | _ACEOF |
| 16624 | cat confdefs.h >>conftest.$ac_ext |
| 16625 | cat >>conftest.$ac_ext <<_ACEOF |
| 16626 | /* end confdefs.h. */ |
| 16627 | #ifdef __GNUC__ |
| 16628 | # define alloca __builtin_alloca |
| 16629 | #else |
| 16630 | # ifdef _MSC_VER |
| 16631 | # include <malloc.h> |
| 16632 | # define alloca _alloca |
| 16633 | # else |
| 16634 | # if HAVE_ALLOCA_H |
| 16635 | # include <alloca.h> |
| 16636 | # else |
| 16637 | # ifdef _AIX |
| 16638 | #pragma alloca |
| 16639 | # else |
| 16640 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 16641 | char *alloca (); |
| 16642 | # endif |
| 16643 | # endif |
| 16644 | # endif |
| 16645 | # endif |
| 16646 | #endif |
| 16647 | |
| 16648 | int |
| 16649 | main () |
| 16650 | { |
| 16651 | char *p = (char *) alloca (1); |
| 16652 | ; |
| 16653 | return 0; |
| 16654 | } |
| 16655 | _ACEOF |
| 16656 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16658 | (eval $ac_link) 2>conftest.er1 |
| 16659 | ac_status=$? |
| 16660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16661 | rm -f conftest.er1 |
| 16662 | cat conftest.err >&5 |
| 16663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16664 | (exit $ac_status); } && |
| 16665 | { ac_try='test -z "$ac_c_werror_flag" |
| 16666 | || test ! -s conftest.err' |
| 16667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16668 | (eval $ac_try) 2>&5 |
| 16669 | ac_status=$? |
| 16670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16671 | (exit $ac_status); }; } && |
| 16672 | { ac_try='test -s conftest$ac_exeext' |
| 16673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16674 | (eval $ac_try) 2>&5 |
| 16675 | ac_status=$? |
| 16676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16677 | (exit $ac_status); }; }; then |
| 16678 | ac_cv_func_alloca_works=yes |
| 16679 | else |
| 16680 | echo "$as_me: failed program was:" >&5 |
| 16681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16682 | |
| 16683 | ac_cv_func_alloca_works=no |
| 16684 | fi |
| 16685 | rm -f conftest.err conftest.$ac_objext \ |
| 16686 | conftest$ac_exeext conftest.$ac_ext |
| 16687 | fi |
| 16688 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 16689 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 16690 | |
| 16691 | if test $ac_cv_func_alloca_works = yes; then |
| 16692 | |
| 16693 | cat >>confdefs.h <<\_ACEOF |
| 16694 | #define HAVE_ALLOCA 1 |
| 16695 | _ACEOF |
| 16696 | |
| 16697 | else |
| 16698 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 16699 | # that cause trouble. Some versions do not even contain alloca or |
| 16700 | # contain a buggy version. If you still want to use their alloca, |
| 16701 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 16702 | |
| 16703 | ALLOCA=alloca.$ac_objext |
| 16704 | |
| 16705 | cat >>confdefs.h <<\_ACEOF |
| 16706 | #define C_ALLOCA 1 |
| 16707 | _ACEOF |
| 16708 | |
| 16709 | |
| 16710 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 16711 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 16712 | if test "${ac_cv_os_cray+set}" = set; then |
| 16713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16714 | else |
| 16715 | cat >conftest.$ac_ext <<_ACEOF |
| 16716 | /* confdefs.h. */ |
| 16717 | _ACEOF |
| 16718 | cat confdefs.h >>conftest.$ac_ext |
| 16719 | cat >>conftest.$ac_ext <<_ACEOF |
| 16720 | /* end confdefs.h. */ |
| 16721 | #if defined(CRAY) && ! defined(CRAY2) |
| 16722 | webecray |
| 16723 | #else |
| 16724 | wenotbecray |
| 16725 | #endif |
| 16726 | |
| 16727 | _ACEOF |
| 16728 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16729 | $EGREP "webecray" >/dev/null 2>&1; then |
| 16730 | ac_cv_os_cray=yes |
| 16731 | else |
| 16732 | ac_cv_os_cray=no |
| 16733 | fi |
| 16734 | rm -f conftest* |
| 16735 | |
| 16736 | fi |
| 16737 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 16738 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 16739 | if test $ac_cv_os_cray = yes; then |
| 16740 | for ac_func in _getb67 GETB67 getb67; do |
| 16741 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16742 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16743 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16744 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16746 | else |
| 16747 | cat >conftest.$ac_ext <<_ACEOF |
| 16748 | /* confdefs.h. */ |
| 16749 | _ACEOF |
| 16750 | cat confdefs.h >>conftest.$ac_ext |
| 16751 | cat >>conftest.$ac_ext <<_ACEOF |
| 16752 | /* end confdefs.h. */ |
| 16753 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16754 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16755 | #define $ac_func innocuous_$ac_func |
| 16756 | |
| 16757 | /* System header to define __stub macros and hopefully few prototypes, |
| 16758 | which can conflict with char $ac_func (); below. |
| 16759 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16760 | <limits.h> exists even on freestanding compilers. */ |
| 16761 | |
| 16762 | #ifdef __STDC__ |
| 16763 | # include <limits.h> |
| 16764 | #else |
| 16765 | # include <assert.h> |
| 16766 | #endif |
| 16767 | |
| 16768 | #undef $ac_func |
| 16769 | |
| 16770 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16771 | #ifdef __cplusplus |
| 16772 | extern "C" |
| 16773 | { |
| 16774 | #endif |
| 16775 | /* We use char because int might match the return type of a gcc2 |
| 16776 | builtin and then its argument prototype would still apply. */ |
| 16777 | char $ac_func (); |
| 16778 | /* The GNU C library defines this for functions which it implements |
| 16779 | to always fail with ENOSYS. Some functions are actually named |
| 16780 | something starting with __ and the normal name is an alias. */ |
| 16781 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16782 | choke me |
| 16783 | #else |
| 16784 | char (*f) () = $ac_func; |
| 16785 | #endif |
| 16786 | #ifdef __cplusplus |
| 16787 | } |
| 16788 | #endif |
| 16789 | |
| 16790 | int |
| 16791 | main () |
| 16792 | { |
| 16793 | return f != $ac_func; |
| 16794 | ; |
| 16795 | return 0; |
| 16796 | } |
| 16797 | _ACEOF |
| 16798 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16800 | (eval $ac_link) 2>conftest.er1 |
| 16801 | ac_status=$? |
| 16802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16803 | rm -f conftest.er1 |
| 16804 | cat conftest.err >&5 |
| 16805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16806 | (exit $ac_status); } && |
| 16807 | { ac_try='test -z "$ac_c_werror_flag" |
| 16808 | || test ! -s conftest.err' |
| 16809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16810 | (eval $ac_try) 2>&5 |
| 16811 | ac_status=$? |
| 16812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16813 | (exit $ac_status); }; } && |
| 16814 | { ac_try='test -s conftest$ac_exeext' |
| 16815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16816 | (eval $ac_try) 2>&5 |
| 16817 | ac_status=$? |
| 16818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16819 | (exit $ac_status); }; }; then |
| 16820 | eval "$as_ac_var=yes" |
| 16821 | else |
| 16822 | echo "$as_me: failed program was:" >&5 |
| 16823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16824 | |
| 16825 | eval "$as_ac_var=no" |
| 16826 | fi |
| 16827 | rm -f conftest.err conftest.$ac_objext \ |
| 16828 | conftest$ac_exeext conftest.$ac_ext |
| 16829 | fi |
| 16830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16831 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16832 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16833 | |
| 16834 | cat >>confdefs.h <<_ACEOF |
| 16835 | #define CRAY_STACKSEG_END $ac_func |
| 16836 | _ACEOF |
| 16837 | |
| 16838 | break |
| 16839 | fi |
| 16840 | |
| 16841 | done |
| 16842 | fi |
| 16843 | |
| 16844 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 16845 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 16846 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 16847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16848 | else |
| 16849 | if test "$cross_compiling" = yes; then |
| 16850 | ac_cv_c_stack_direction=0 |
| 16851 | else |
| 16852 | cat >conftest.$ac_ext <<_ACEOF |
| 16853 | /* confdefs.h. */ |
| 16854 | _ACEOF |
| 16855 | cat confdefs.h >>conftest.$ac_ext |
| 16856 | cat >>conftest.$ac_ext <<_ACEOF |
| 16857 | /* end confdefs.h. */ |
| 16858 | int |
| 16859 | find_stack_direction () |
| 16860 | { |
| 16861 | static char *addr = 0; |
| 16862 | auto char dummy; |
| 16863 | if (addr == 0) |
| 16864 | { |
| 16865 | addr = &dummy; |
| 16866 | return find_stack_direction (); |
| 16867 | } |
| 16868 | else |
| 16869 | return (&dummy > addr) ? 1 : -1; |
| 16870 | } |
| 16871 | |
| 16872 | int |
| 16873 | main () |
| 16874 | { |
| 16875 | exit (find_stack_direction () < 0); |
| 16876 | } |
| 16877 | _ACEOF |
| 16878 | rm -f conftest$ac_exeext |
| 16879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16880 | (eval $ac_link) 2>&5 |
| 16881 | ac_status=$? |
| 16882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16883 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16885 | (eval $ac_try) 2>&5 |
| 16886 | ac_status=$? |
| 16887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16888 | (exit $ac_status); }; }; then |
| 16889 | ac_cv_c_stack_direction=1 |
| 16890 | else |
| 16891 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16892 | echo "$as_me: failed program was:" >&5 |
| 16893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16894 | |
| 16895 | ( exit $ac_status ) |
| 16896 | ac_cv_c_stack_direction=-1 |
| 16897 | fi |
| 16898 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16899 | fi |
| 16900 | fi |
| 16901 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 16902 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 16903 | |
| 16904 | cat >>confdefs.h <<_ACEOF |
| 16905 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 16906 | _ACEOF |
| 16907 | |
| 16908 | |
| 16909 | fi |
| 16910 | |
| 16911 | |
| 16912 | |
| 16913 | for ac_header in stdlib.h unistd.h |
| 16914 | do |
| 16915 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16916 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16917 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16918 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16919 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16921 | fi |
| 16922 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16923 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16924 | else |
| 16925 | # Is the header compilable? |
| 16926 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16927 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 16928 | cat >conftest.$ac_ext <<_ACEOF |
| 16929 | /* confdefs.h. */ |
| 16930 | _ACEOF |
| 16931 | cat confdefs.h >>conftest.$ac_ext |
| 16932 | cat >>conftest.$ac_ext <<_ACEOF |
| 16933 | /* end confdefs.h. */ |
| 16934 | $ac_includes_default |
| 16935 | #include <$ac_header> |
| 16936 | _ACEOF |
| 16937 | rm -f conftest.$ac_objext |
| 16938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16939 | (eval $ac_compile) 2>conftest.er1 |
| 16940 | ac_status=$? |
| 16941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16942 | rm -f conftest.er1 |
| 16943 | cat conftest.err >&5 |
| 16944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16945 | (exit $ac_status); } && |
| 16946 | { ac_try='test -z "$ac_c_werror_flag" |
| 16947 | || test ! -s conftest.err' |
| 16948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16949 | (eval $ac_try) 2>&5 |
| 16950 | ac_status=$? |
| 16951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16952 | (exit $ac_status); }; } && |
| 16953 | { ac_try='test -s conftest.$ac_objext' |
| 16954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16955 | (eval $ac_try) 2>&5 |
| 16956 | ac_status=$? |
| 16957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16958 | (exit $ac_status); }; }; then |
| 16959 | ac_header_compiler=yes |
| 16960 | else |
| 16961 | echo "$as_me: failed program was:" >&5 |
| 16962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16963 | |
| 16964 | ac_header_compiler=no |
| 16965 | fi |
| 16966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16967 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16968 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16969 | |
| 16970 | # Is the header present? |
| 16971 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16972 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 16973 | cat >conftest.$ac_ext <<_ACEOF |
| 16974 | /* confdefs.h. */ |
| 16975 | _ACEOF |
| 16976 | cat confdefs.h >>conftest.$ac_ext |
| 16977 | cat >>conftest.$ac_ext <<_ACEOF |
| 16978 | /* end confdefs.h. */ |
| 16979 | #include <$ac_header> |
| 16980 | _ACEOF |
| 16981 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16982 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16983 | ac_status=$? |
| 16984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16985 | rm -f conftest.er1 |
| 16986 | cat conftest.err >&5 |
| 16987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16988 | (exit $ac_status); } >/dev/null; then |
| 16989 | if test -s conftest.err; then |
| 16990 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16991 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16992 | else |
| 16993 | ac_cpp_err= |
| 16994 | fi |
| 16995 | else |
| 16996 | ac_cpp_err=yes |
| 16997 | fi |
| 16998 | if test -z "$ac_cpp_err"; then |
| 16999 | ac_header_preproc=yes |
| 17000 | else |
| 17001 | echo "$as_me: failed program was:" >&5 |
| 17002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17003 | |
| 17004 | ac_header_preproc=no |
| 17005 | fi |
| 17006 | rm -f conftest.err conftest.$ac_ext |
| 17007 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17008 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 17009 | |
| 17010 | # So? What about this header? |
| 17011 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17012 | yes:no: ) |
| 17013 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17014 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17015 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17016 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17017 | ac_header_preproc=yes |
| 17018 | ;; |
| 17019 | no:yes:* ) |
| 17020 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17021 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17022 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17023 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17024 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17025 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17026 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17027 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17028 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17029 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17030 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17031 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17032 | ( |
| 17033 | cat <<\_ASBOX |
| 17034 | ## ------------------------------------------ ## |
| 17035 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 17036 | ## ------------------------------------------ ## |
| 17037 | _ASBOX |
| 17038 | ) | |
| 17039 | sed "s/^/$as_me: WARNING: /" >&2 |
| 17040 | ;; |
| 17041 | esac |
| 17042 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17043 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 17044 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 17045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17046 | else |
| 17047 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17048 | fi |
| 17049 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 17050 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 17051 | |
| 17052 | fi |
| 17053 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17054 | cat >>confdefs.h <<_ACEOF |
| 17055 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17056 | _ACEOF |
| 17057 | |
| 17058 | fi |
| 17059 | |
| 17060 | done |
| 17061 | |
| 17062 | |
| 17063 | for ac_func in getpagesize |
| 17064 | do |
| 17065 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17066 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17067 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17068 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17070 | else |
| 17071 | cat >conftest.$ac_ext <<_ACEOF |
| 17072 | /* confdefs.h. */ |
| 17073 | _ACEOF |
| 17074 | cat confdefs.h >>conftest.$ac_ext |
| 17075 | cat >>conftest.$ac_ext <<_ACEOF |
| 17076 | /* end confdefs.h. */ |
| 17077 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17078 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17079 | #define $ac_func innocuous_$ac_func |
| 17080 | |
| 17081 | /* System header to define __stub macros and hopefully few prototypes, |
| 17082 | which can conflict with char $ac_func (); below. |
| 17083 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17084 | <limits.h> exists even on freestanding compilers. */ |
| 17085 | |
| 17086 | #ifdef __STDC__ |
| 17087 | # include <limits.h> |
| 17088 | #else |
| 17089 | # include <assert.h> |
| 17090 | #endif |
| 17091 | |
| 17092 | #undef $ac_func |
| 17093 | |
| 17094 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17095 | #ifdef __cplusplus |
| 17096 | extern "C" |
| 17097 | { |
| 17098 | #endif |
| 17099 | /* We use char because int might match the return type of a gcc2 |
| 17100 | builtin and then its argument prototype would still apply. */ |
| 17101 | char $ac_func (); |
| 17102 | /* The GNU C library defines this for functions which it implements |
| 17103 | to always fail with ENOSYS. Some functions are actually named |
| 17104 | something starting with __ and the normal name is an alias. */ |
| 17105 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17106 | choke me |
| 17107 | #else |
| 17108 | char (*f) () = $ac_func; |
| 17109 | #endif |
| 17110 | #ifdef __cplusplus |
| 17111 | } |
| 17112 | #endif |
| 17113 | |
| 17114 | int |
| 17115 | main () |
| 17116 | { |
| 17117 | return f != $ac_func; |
| 17118 | ; |
| 17119 | return 0; |
| 17120 | } |
| 17121 | _ACEOF |
| 17122 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17124 | (eval $ac_link) 2>conftest.er1 |
| 17125 | ac_status=$? |
| 17126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17127 | rm -f conftest.er1 |
| 17128 | cat conftest.err >&5 |
| 17129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17130 | (exit $ac_status); } && |
| 17131 | { ac_try='test -z "$ac_c_werror_flag" |
| 17132 | || test ! -s conftest.err' |
| 17133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17134 | (eval $ac_try) 2>&5 |
| 17135 | ac_status=$? |
| 17136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17137 | (exit $ac_status); }; } && |
| 17138 | { ac_try='test -s conftest$ac_exeext' |
| 17139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17140 | (eval $ac_try) 2>&5 |
| 17141 | ac_status=$? |
| 17142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17143 | (exit $ac_status); }; }; then |
| 17144 | eval "$as_ac_var=yes" |
| 17145 | else |
| 17146 | echo "$as_me: failed program was:" >&5 |
| 17147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17148 | |
| 17149 | eval "$as_ac_var=no" |
| 17150 | fi |
| 17151 | rm -f conftest.err conftest.$ac_objext \ |
| 17152 | conftest$ac_exeext conftest.$ac_ext |
| 17153 | fi |
| 17154 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17155 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17156 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17157 | cat >>confdefs.h <<_ACEOF |
| 17158 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17159 | _ACEOF |
| 17160 | |
| 17161 | fi |
| 17162 | done |
| 17163 | |
| 17164 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 17165 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 17166 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 17167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17168 | else |
| 17169 | if test "$cross_compiling" = yes; then |
| 17170 | ac_cv_func_mmap_fixed_mapped=no |
| 17171 | else |
| 17172 | cat >conftest.$ac_ext <<_ACEOF |
| 17173 | /* confdefs.h. */ |
| 17174 | _ACEOF |
| 17175 | cat confdefs.h >>conftest.$ac_ext |
| 17176 | cat >>conftest.$ac_ext <<_ACEOF |
| 17177 | /* end confdefs.h. */ |
| 17178 | $ac_includes_default |
| 17179 | /* malloc might have been renamed as rpl_malloc. */ |
| 17180 | #undef malloc |
| 17181 | |
| 17182 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 17183 | Here is a matrix of mmap possibilities: |
| 17184 | mmap private not fixed |
| 17185 | mmap private fixed at somewhere currently unmapped |
| 17186 | mmap private fixed at somewhere already mapped |
| 17187 | mmap shared not fixed |
| 17188 | mmap shared fixed at somewhere currently unmapped |
| 17189 | mmap shared fixed at somewhere already mapped |
| 17190 | For private mappings, we should verify that changes cannot be read() |
| 17191 | back from the file, nor mmap's back from the file at a different |
| 17192 | address. (There have been systems where private was not correctly |
| 17193 | implemented like the infamous i386 svr4.0, and systems where the |
| 17194 | VM page cache was not coherent with the file system buffer cache |
| 17195 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 17196 | For shared mappings, we should conversely verify that changes get |
| 17197 | propagated back to all the places they're supposed to be. |
| 17198 | |
| 17199 | Grep wants private fixed already mapped. |
| 17200 | The main things grep needs to know about mmap are: |
| 17201 | * does it exist and is it safe to write into the mmap'd area |
| 17202 | * how to use it (BSD variants) */ |
| 17203 | |
| 17204 | #include <fcntl.h> |
| 17205 | #include <sys/mman.h> |
| 17206 | |
| 17207 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 17208 | char *malloc (); |
| 17209 | #endif |
| 17210 | |
| 17211 | /* This mess was copied from the GNU getpagesize.h. */ |
| 17212 | #if !HAVE_GETPAGESIZE |
| 17213 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 17214 | # if !HAVE_SYS_PARAM_H |
| 17215 | # define HAVE_SYS_PARAM_H 1 |
| 17216 | # endif |
| 17217 | |
| 17218 | # ifdef _SC_PAGESIZE |
| 17219 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 17220 | # else /* no _SC_PAGESIZE */ |
| 17221 | # if HAVE_SYS_PARAM_H |
| 17222 | # include <sys/param.h> |
| 17223 | # ifdef EXEC_PAGESIZE |
| 17224 | # define getpagesize() EXEC_PAGESIZE |
| 17225 | # else /* no EXEC_PAGESIZE */ |
| 17226 | # ifdef NBPG |
| 17227 | # define getpagesize() NBPG * CLSIZE |
| 17228 | # ifndef CLSIZE |
| 17229 | # define CLSIZE 1 |
| 17230 | # endif /* no CLSIZE */ |
| 17231 | # else /* no NBPG */ |
| 17232 | # ifdef NBPC |
| 17233 | # define getpagesize() NBPC |
| 17234 | # else /* no NBPC */ |
| 17235 | # ifdef PAGESIZE |
| 17236 | # define getpagesize() PAGESIZE |
| 17237 | # endif /* PAGESIZE */ |
| 17238 | # endif /* no NBPC */ |
| 17239 | # endif /* no NBPG */ |
| 17240 | # endif /* no EXEC_PAGESIZE */ |
| 17241 | # else /* no HAVE_SYS_PARAM_H */ |
| 17242 | # define getpagesize() 8192 /* punt totally */ |
| 17243 | # endif /* no HAVE_SYS_PARAM_H */ |
| 17244 | # endif /* no _SC_PAGESIZE */ |
| 17245 | |
| 17246 | #endif /* no HAVE_GETPAGESIZE */ |
| 17247 | |
| 17248 | int |
| 17249 | main () |
| 17250 | { |
| 17251 | char *data, *data2, *data3; |
| 17252 | int i, pagesize; |
| 17253 | int fd; |
| 17254 | |
| 17255 | pagesize = getpagesize (); |
| 17256 | |
| 17257 | /* First, make a file with some known garbage in it. */ |
| 17258 | data = (char *) malloc (pagesize); |
| 17259 | if (!data) |
| 17260 | exit (1); |
| 17261 | for (i = 0; i < pagesize; ++i) |
| 17262 | *(data + i) = rand (); |
| 17263 | umask (0); |
| 17264 | fd = creat ("conftest.mmap", 0600); |
| 17265 | if (fd < 0) |
| 17266 | exit (1); |
| 17267 | if (write (fd, data, pagesize) != pagesize) |
| 17268 | exit (1); |
| 17269 | close (fd); |
| 17270 | |
| 17271 | /* Next, try to mmap the file at a fixed address which already has |
| 17272 | something else allocated at it. If we can, also make sure that |
| 17273 | we see the same garbage. */ |
| 17274 | fd = open ("conftest.mmap", O_RDWR); |
| 17275 | if (fd < 0) |
| 17276 | exit (1); |
| 17277 | data2 = (char *) malloc (2 * pagesize); |
| 17278 | if (!data2) |
| 17279 | exit (1); |
| 17280 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
| 17281 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 17282 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 17283 | exit (1); |
| 17284 | for (i = 0; i < pagesize; ++i) |
| 17285 | if (*(data + i) != *(data2 + i)) |
| 17286 | exit (1); |
| 17287 | |
| 17288 | /* Finally, make sure that changes to the mapped area do not |
| 17289 | percolate back to the file as seen by read(). (This is a bug on |
| 17290 | some variants of i386 svr4.0.) */ |
| 17291 | for (i = 0; i < pagesize; ++i) |
| 17292 | *(data2 + i) = *(data2 + i) + 1; |
| 17293 | data3 = (char *) malloc (pagesize); |
| 17294 | if (!data3) |
| 17295 | exit (1); |
| 17296 | if (read (fd, data3, pagesize) != pagesize) |
| 17297 | exit (1); |
| 17298 | for (i = 0; i < pagesize; ++i) |
| 17299 | if (*(data + i) != *(data3 + i)) |
| 17300 | exit (1); |
| 17301 | close (fd); |
| 17302 | exit (0); |
| 17303 | } |
| 17304 | _ACEOF |
| 17305 | rm -f conftest$ac_exeext |
| 17306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17307 | (eval $ac_link) 2>&5 |
| 17308 | ac_status=$? |
| 17309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17310 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17312 | (eval $ac_try) 2>&5 |
| 17313 | ac_status=$? |
| 17314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17315 | (exit $ac_status); }; }; then |
| 17316 | ac_cv_func_mmap_fixed_mapped=yes |
| 17317 | else |
| 17318 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17319 | echo "$as_me: failed program was:" >&5 |
| 17320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17321 | |
| 17322 | ( exit $ac_status ) |
| 17323 | ac_cv_func_mmap_fixed_mapped=no |
| 17324 | fi |
| 17325 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17326 | fi |
| 17327 | fi |
| 17328 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 17329 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 17330 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 17331 | |
| 17332 | cat >>confdefs.h <<\_ACEOF |
| 17333 | #define HAVE_MMAP 1 |
| 17334 | _ACEOF |
| 17335 | |
| 17336 | fi |
| 17337 | rm -f conftest.mmap |
| 17338 | |
| 17339 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 17340 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 17341 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 17342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17343 | else |
| 17344 | cat >conftest.$ac_ext <<_ACEOF |
| 17345 | /* confdefs.h. */ |
| 17346 | _ACEOF |
| 17347 | cat confdefs.h >>conftest.$ac_ext |
| 17348 | cat >>conftest.$ac_ext <<_ACEOF |
| 17349 | /* end confdefs.h. */ |
| 17350 | $ac_includes_default |
| 17351 | int |
| 17352 | main () |
| 17353 | { |
| 17354 | if ((pid_t *) 0) |
| 17355 | return 0; |
| 17356 | if (sizeof (pid_t)) |
| 17357 | return 0; |
| 17358 | ; |
| 17359 | return 0; |
| 17360 | } |
| 17361 | _ACEOF |
| 17362 | rm -f conftest.$ac_objext |
| 17363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17364 | (eval $ac_compile) 2>conftest.er1 |
| 17365 | ac_status=$? |
| 17366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17367 | rm -f conftest.er1 |
| 17368 | cat conftest.err >&5 |
| 17369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17370 | (exit $ac_status); } && |
| 17371 | { ac_try='test -z "$ac_c_werror_flag" |
| 17372 | || test ! -s conftest.err' |
| 17373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17374 | (eval $ac_try) 2>&5 |
| 17375 | ac_status=$? |
| 17376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17377 | (exit $ac_status); }; } && |
| 17378 | { ac_try='test -s conftest.$ac_objext' |
| 17379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17380 | (eval $ac_try) 2>&5 |
| 17381 | ac_status=$? |
| 17382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17383 | (exit $ac_status); }; }; then |
| 17384 | ac_cv_type_pid_t=yes |
| 17385 | else |
| 17386 | echo "$as_me: failed program was:" >&5 |
| 17387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17388 | |
| 17389 | ac_cv_type_pid_t=no |
| 17390 | fi |
| 17391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17392 | fi |
| 17393 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 17394 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 17395 | if test $ac_cv_type_pid_t = yes; then |
| 17396 | : |
| 17397 | else |
| 17398 | |
| 17399 | cat >>confdefs.h <<_ACEOF |
| 17400 | #define pid_t int |
| 17401 | _ACEOF |
| 17402 | |
| 17403 | fi |
| 17404 | |
| 17405 | |
| 17406 | |
| 17407 | for ac_header in unistd.h vfork.h |
| 17408 | do |
| 17409 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 17411 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17412 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 17413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 17414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17415 | fi |
| 17416 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 17417 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 17418 | else |
| 17419 | # Is the header compilable? |
| 17420 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 17421 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 17422 | cat >conftest.$ac_ext <<_ACEOF |
| 17423 | /* confdefs.h. */ |
| 17424 | _ACEOF |
| 17425 | cat confdefs.h >>conftest.$ac_ext |
| 17426 | cat >>conftest.$ac_ext <<_ACEOF |
| 17427 | /* end confdefs.h. */ |
| 17428 | $ac_includes_default |
| 17429 | #include <$ac_header> |
| 17430 | _ACEOF |
| 17431 | rm -f conftest.$ac_objext |
| 17432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17433 | (eval $ac_compile) 2>conftest.er1 |
| 17434 | ac_status=$? |
| 17435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17436 | rm -f conftest.er1 |
| 17437 | cat conftest.err >&5 |
| 17438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17439 | (exit $ac_status); } && |
| 17440 | { ac_try='test -z "$ac_c_werror_flag" |
| 17441 | || test ! -s conftest.err' |
| 17442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17443 | (eval $ac_try) 2>&5 |
| 17444 | ac_status=$? |
| 17445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17446 | (exit $ac_status); }; } && |
| 17447 | { ac_try='test -s conftest.$ac_objext' |
| 17448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17449 | (eval $ac_try) 2>&5 |
| 17450 | ac_status=$? |
| 17451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17452 | (exit $ac_status); }; }; then |
| 17453 | ac_header_compiler=yes |
| 17454 | else |
| 17455 | echo "$as_me: failed program was:" >&5 |
| 17456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17457 | |
| 17458 | ac_header_compiler=no |
| 17459 | fi |
| 17460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17461 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17462 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 17463 | |
| 17464 | # Is the header present? |
| 17465 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17466 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 17467 | cat >conftest.$ac_ext <<_ACEOF |
| 17468 | /* confdefs.h. */ |
| 17469 | _ACEOF |
| 17470 | cat confdefs.h >>conftest.$ac_ext |
| 17471 | cat >>conftest.$ac_ext <<_ACEOF |
| 17472 | /* end confdefs.h. */ |
| 17473 | #include <$ac_header> |
| 17474 | _ACEOF |
| 17475 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 17476 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 17477 | ac_status=$? |
| 17478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17479 | rm -f conftest.er1 |
| 17480 | cat conftest.err >&5 |
| 17481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17482 | (exit $ac_status); } >/dev/null; then |
| 17483 | if test -s conftest.err; then |
| 17484 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17485 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17486 | else |
| 17487 | ac_cpp_err= |
| 17488 | fi |
| 17489 | else |
| 17490 | ac_cpp_err=yes |
| 17491 | fi |
| 17492 | if test -z "$ac_cpp_err"; then |
| 17493 | ac_header_preproc=yes |
| 17494 | else |
| 17495 | echo "$as_me: failed program was:" >&5 |
| 17496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17497 | |
| 17498 | ac_header_preproc=no |
| 17499 | fi |
| 17500 | rm -f conftest.err conftest.$ac_ext |
| 17501 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17502 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 17503 | |
| 17504 | # So? What about this header? |
| 17505 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17506 | yes:no: ) |
| 17507 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17508 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17509 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17510 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17511 | ac_header_preproc=yes |
| 17512 | ;; |
| 17513 | no:yes:* ) |
| 17514 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17515 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17516 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17517 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17518 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17519 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17520 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17521 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17522 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17523 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17524 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17525 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17526 | ( |
| 17527 | cat <<\_ASBOX |
| 17528 | ## ------------------------------------------ ## |
| 17529 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 17530 | ## ------------------------------------------ ## |
| 17531 | _ASBOX |
| 17532 | ) | |
| 17533 | sed "s/^/$as_me: WARNING: /" >&2 |
| 17534 | ;; |
| 17535 | esac |
| 17536 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17537 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 17538 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 17539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17540 | else |
| 17541 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17542 | fi |
| 17543 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 17544 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 17545 | |
| 17546 | fi |
| 17547 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17548 | cat >>confdefs.h <<_ACEOF |
| 17549 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17550 | _ACEOF |
| 17551 | |
| 17552 | fi |
| 17553 | |
| 17554 | done |
| 17555 | |
| 17556 | |
| 17557 | |
| 17558 | for ac_func in fork vfork |
| 17559 | do |
| 17560 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17561 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17562 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17563 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17565 | else |
| 17566 | cat >conftest.$ac_ext <<_ACEOF |
| 17567 | /* confdefs.h. */ |
| 17568 | _ACEOF |
| 17569 | cat confdefs.h >>conftest.$ac_ext |
| 17570 | cat >>conftest.$ac_ext <<_ACEOF |
| 17571 | /* end confdefs.h. */ |
| 17572 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17573 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17574 | #define $ac_func innocuous_$ac_func |
| 17575 | |
| 17576 | /* System header to define __stub macros and hopefully few prototypes, |
| 17577 | which can conflict with char $ac_func (); below. |
| 17578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17579 | <limits.h> exists even on freestanding compilers. */ |
| 17580 | |
| 17581 | #ifdef __STDC__ |
| 17582 | # include <limits.h> |
| 17583 | #else |
| 17584 | # include <assert.h> |
| 17585 | #endif |
| 17586 | |
| 17587 | #undef $ac_func |
| 17588 | |
| 17589 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17590 | #ifdef __cplusplus |
| 17591 | extern "C" |
| 17592 | { |
| 17593 | #endif |
| 17594 | /* We use char because int might match the return type of a gcc2 |
| 17595 | builtin and then its argument prototype would still apply. */ |
| 17596 | char $ac_func (); |
| 17597 | /* The GNU C library defines this for functions which it implements |
| 17598 | to always fail with ENOSYS. Some functions are actually named |
| 17599 | something starting with __ and the normal name is an alias. */ |
| 17600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17601 | choke me |
| 17602 | #else |
| 17603 | char (*f) () = $ac_func; |
| 17604 | #endif |
| 17605 | #ifdef __cplusplus |
| 17606 | } |
| 17607 | #endif |
| 17608 | |
| 17609 | int |
| 17610 | main () |
| 17611 | { |
| 17612 | return f != $ac_func; |
| 17613 | ; |
| 17614 | return 0; |
| 17615 | } |
| 17616 | _ACEOF |
| 17617 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17619 | (eval $ac_link) 2>conftest.er1 |
| 17620 | ac_status=$? |
| 17621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17622 | rm -f conftest.er1 |
| 17623 | cat conftest.err >&5 |
| 17624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17625 | (exit $ac_status); } && |
| 17626 | { ac_try='test -z "$ac_c_werror_flag" |
| 17627 | || test ! -s conftest.err' |
| 17628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17629 | (eval $ac_try) 2>&5 |
| 17630 | ac_status=$? |
| 17631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17632 | (exit $ac_status); }; } && |
| 17633 | { ac_try='test -s conftest$ac_exeext' |
| 17634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17635 | (eval $ac_try) 2>&5 |
| 17636 | ac_status=$? |
| 17637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17638 | (exit $ac_status); }; }; then |
| 17639 | eval "$as_ac_var=yes" |
| 17640 | else |
| 17641 | echo "$as_me: failed program was:" >&5 |
| 17642 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17643 | |
| 17644 | eval "$as_ac_var=no" |
| 17645 | fi |
| 17646 | rm -f conftest.err conftest.$ac_objext \ |
| 17647 | conftest$ac_exeext conftest.$ac_ext |
| 17648 | fi |
| 17649 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17650 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17651 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17652 | cat >>confdefs.h <<_ACEOF |
| 17653 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17654 | _ACEOF |
| 17655 | |
| 17656 | fi |
| 17657 | done |
| 17658 | |
| 17659 | if test "x$ac_cv_func_fork" = xyes; then |
| 17660 | echo "$as_me:$LINENO: checking for working fork" >&5 |
| 17661 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
| 17662 | if test "${ac_cv_func_fork_works+set}" = set; then |
| 17663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17664 | else |
| 17665 | if test "$cross_compiling" = yes; then |
| 17666 | ac_cv_func_fork_works=cross |
| 17667 | else |
| 17668 | cat >conftest.$ac_ext <<_ACEOF |
| 17669 | /* By Ruediger Kuhlmann. */ |
| 17670 | #include <sys/types.h> |
| 17671 | #if HAVE_UNISTD_H |
| 17672 | # include <unistd.h> |
| 17673 | #endif |
| 17674 | /* Some systems only have a dummy stub for fork() */ |
| 17675 | int main () |
| 17676 | { |
| 17677 | if (fork() < 0) |
| 17678 | exit (1); |
| 17679 | exit (0); |
| 17680 | } |
| 17681 | _ACEOF |
| 17682 | rm -f conftest$ac_exeext |
| 17683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17684 | (eval $ac_link) 2>&5 |
| 17685 | ac_status=$? |
| 17686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17687 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17689 | (eval $ac_try) 2>&5 |
| 17690 | ac_status=$? |
| 17691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17692 | (exit $ac_status); }; }; then |
| 17693 | ac_cv_func_fork_works=yes |
| 17694 | else |
| 17695 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17696 | echo "$as_me: failed program was:" >&5 |
| 17697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17698 | |
| 17699 | ( exit $ac_status ) |
| 17700 | ac_cv_func_fork_works=no |
| 17701 | fi |
| 17702 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17703 | fi |
| 17704 | fi |
| 17705 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
| 17706 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
| 17707 | |
| 17708 | else |
| 17709 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 17710 | fi |
| 17711 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 17712 | case $host in |
| 17713 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 17714 | # Override, as these systems have only a dummy fork() stub |
| 17715 | ac_cv_func_fork_works=no |
| 17716 | ;; |
| 17717 | *) |
| 17718 | ac_cv_func_fork_works=yes |
| 17719 | ;; |
| 17720 | esac |
| 17721 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| 17722 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 17723 | fi |
| 17724 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 17725 | if test "x$ac_cv_func_vfork" = xyes; then |
| 17726 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
| 17727 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
| 17728 | if test "${ac_cv_func_vfork_works+set}" = set; then |
| 17729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17730 | else |
| 17731 | if test "$cross_compiling" = yes; then |
| 17732 | ac_cv_func_vfork_works=cross |
| 17733 | else |
| 17734 | cat >conftest.$ac_ext <<_ACEOF |
| 17735 | /* confdefs.h. */ |
| 17736 | _ACEOF |
| 17737 | cat confdefs.h >>conftest.$ac_ext |
| 17738 | cat >>conftest.$ac_ext <<_ACEOF |
| 17739 | /* end confdefs.h. */ |
| 17740 | /* Thanks to Paul Eggert for this test. */ |
| 17741 | #include <stdio.h> |
| 17742 | #include <stdlib.h> |
| 17743 | #include <sys/types.h> |
| 17744 | #include <sys/stat.h> |
| 17745 | #include <sys/wait.h> |
| 17746 | #if HAVE_UNISTD_H |
| 17747 | # include <unistd.h> |
| 17748 | #endif |
| 17749 | #if HAVE_VFORK_H |
| 17750 | # include <vfork.h> |
| 17751 | #endif |
| 17752 | /* On some sparc systems, changes by the child to local and incoming |
| 17753 | argument registers are propagated back to the parent. The compiler |
| 17754 | is told about this with #include <vfork.h>, but some compilers |
| 17755 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 17756 | static variable whose address is put into a register that is |
| 17757 | clobbered by the vfork. */ |
| 17758 | static void |
| 17759 | #ifdef __cplusplus |
| 17760 | sparc_address_test (int arg) |
| 17761 | # else |
| 17762 | sparc_address_test (arg) int arg; |
| 17763 | #endif |
| 17764 | { |
| 17765 | static pid_t child; |
| 17766 | if (!child) { |
| 17767 | child = vfork (); |
| 17768 | if (child < 0) { |
| 17769 | perror ("vfork"); |
| 17770 | _exit(2); |
| 17771 | } |
| 17772 | if (!child) { |
| 17773 | arg = getpid(); |
| 17774 | write(-1, "", 0); |
| 17775 | _exit (arg); |
| 17776 | } |
| 17777 | } |
| 17778 | } |
| 17779 | |
| 17780 | int |
| 17781 | main () |
| 17782 | { |
| 17783 | pid_t parent = getpid (); |
| 17784 | pid_t child; |
| 17785 | |
| 17786 | sparc_address_test (0); |
| 17787 | |
| 17788 | child = vfork (); |
| 17789 | |
| 17790 | if (child == 0) { |
| 17791 | /* Here is another test for sparc vfork register problems. This |
| 17792 | test uses lots of local variables, at least as many local |
| 17793 | variables as main has allocated so far including compiler |
| 17794 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 17795 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 17796 | reuse the register of parent for one of the local variables, |
| 17797 | since it will think that parent can't possibly be used any more |
| 17798 | in this routine. Assigning to the local variable will thus |
| 17799 | munge parent in the parent process. */ |
| 17800 | pid_t |
| 17801 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 17802 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 17803 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 17804 | use the same hardware register for all 8 local variables. */ |
| 17805 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 17806 | || p != p5 || p != p6 || p != p7) |
| 17807 | _exit(1); |
| 17808 | |
| 17809 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 17810 | from child file descriptors. If the child closes a descriptor |
| 17811 | before it execs or exits, this munges the parent's descriptor |
| 17812 | as well. Test for this by closing stdout in the child. */ |
| 17813 | _exit(close(fileno(stdout)) != 0); |
| 17814 | } else { |
| 17815 | int status; |
| 17816 | struct stat st; |
| 17817 | |
| 17818 | while (wait(&status) != child) |
| 17819 | ; |
| 17820 | exit( |
| 17821 | /* Was there some problem with vforking? */ |
| 17822 | child < 0 |
| 17823 | |
| 17824 | /* Did the child fail? (This shouldn't happen.) */ |
| 17825 | || status |
| 17826 | |
| 17827 | /* Did the vfork/compiler bug occur? */ |
| 17828 | || parent != getpid() |
| 17829 | |
| 17830 | /* Did the file descriptor bug occur? */ |
| 17831 | || fstat(fileno(stdout), &st) != 0 |
| 17832 | ); |
| 17833 | } |
| 17834 | } |
| 17835 | _ACEOF |
| 17836 | rm -f conftest$ac_exeext |
| 17837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17838 | (eval $ac_link) 2>&5 |
| 17839 | ac_status=$? |
| 17840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17841 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17843 | (eval $ac_try) 2>&5 |
| 17844 | ac_status=$? |
| 17845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17846 | (exit $ac_status); }; }; then |
| 17847 | ac_cv_func_vfork_works=yes |
| 17848 | else |
| 17849 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17850 | echo "$as_me: failed program was:" >&5 |
| 17851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17852 | |
| 17853 | ( exit $ac_status ) |
| 17854 | ac_cv_func_vfork_works=no |
| 17855 | fi |
| 17856 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17857 | fi |
| 17858 | fi |
| 17859 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
| 17860 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
| 17861 | |
| 17862 | fi; |
| 17863 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 17864 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 17865 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| 17866 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 17867 | fi |
| 17868 | |
| 17869 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 17870 | |
| 17871 | cat >>confdefs.h <<\_ACEOF |
| 17872 | #define HAVE_WORKING_VFORK 1 |
| 17873 | _ACEOF |
| 17874 | |
| 17875 | else |
| 17876 | |
| 17877 | cat >>confdefs.h <<\_ACEOF |
| 17878 | #define vfork fork |
| 17879 | _ACEOF |
| 17880 | |
| 17881 | fi |
| 17882 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 17883 | |
| 17884 | cat >>confdefs.h <<\_ACEOF |
| 17885 | #define HAVE_WORKING_FORK 1 |
| 17886 | _ACEOF |
| 17887 | |
| 17888 | fi |
| 17889 | |
| 17890 | |
| 17891 | |
| 17892 | for ac_func in canonicalize_file_name realpath |
| 17893 | do |
| 17894 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17895 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17896 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17897 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17899 | else |
| 17900 | cat >conftest.$ac_ext <<_ACEOF |
| 17901 | /* confdefs.h. */ |
| 17902 | _ACEOF |
| 17903 | cat confdefs.h >>conftest.$ac_ext |
| 17904 | cat >>conftest.$ac_ext <<_ACEOF |
| 17905 | /* end confdefs.h. */ |
| 17906 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17907 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17908 | #define $ac_func innocuous_$ac_func |
| 17909 | |
| 17910 | /* System header to define __stub macros and hopefully few prototypes, |
| 17911 | which can conflict with char $ac_func (); below. |
| 17912 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17913 | <limits.h> exists even on freestanding compilers. */ |
| 17914 | |
| 17915 | #ifdef __STDC__ |
| 17916 | # include <limits.h> |
| 17917 | #else |
| 17918 | # include <assert.h> |
| 17919 | #endif |
| 17920 | |
| 17921 | #undef $ac_func |
| 17922 | |
| 17923 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17924 | #ifdef __cplusplus |
| 17925 | extern "C" |
| 17926 | { |
| 17927 | #endif |
| 17928 | /* We use char because int might match the return type of a gcc2 |
| 17929 | builtin and then its argument prototype would still apply. */ |
| 17930 | char $ac_func (); |
| 17931 | /* The GNU C library defines this for functions which it implements |
| 17932 | to always fail with ENOSYS. Some functions are actually named |
| 17933 | something starting with __ and the normal name is an alias. */ |
| 17934 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17935 | choke me |
| 17936 | #else |
| 17937 | char (*f) () = $ac_func; |
| 17938 | #endif |
| 17939 | #ifdef __cplusplus |
| 17940 | } |
| 17941 | #endif |
| 17942 | |
| 17943 | int |
| 17944 | main () |
| 17945 | { |
| 17946 | return f != $ac_func; |
| 17947 | ; |
| 17948 | return 0; |
| 17949 | } |
| 17950 | _ACEOF |
| 17951 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17953 | (eval $ac_link) 2>conftest.er1 |
| 17954 | ac_status=$? |
| 17955 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17956 | rm -f conftest.er1 |
| 17957 | cat conftest.err >&5 |
| 17958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17959 | (exit $ac_status); } && |
| 17960 | { ac_try='test -z "$ac_c_werror_flag" |
| 17961 | || test ! -s conftest.err' |
| 17962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17963 | (eval $ac_try) 2>&5 |
| 17964 | ac_status=$? |
| 17965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17966 | (exit $ac_status); }; } && |
| 17967 | { ac_try='test -s conftest$ac_exeext' |
| 17968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17969 | (eval $ac_try) 2>&5 |
| 17970 | ac_status=$? |
| 17971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17972 | (exit $ac_status); }; }; then |
| 17973 | eval "$as_ac_var=yes" |
| 17974 | else |
| 17975 | echo "$as_me: failed program was:" >&5 |
| 17976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17977 | |
| 17978 | eval "$as_ac_var=no" |
| 17979 | fi |
| 17980 | rm -f conftest.err conftest.$ac_objext \ |
| 17981 | conftest$ac_exeext conftest.$ac_ext |
| 17982 | fi |
| 17983 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17984 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17985 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17986 | cat >>confdefs.h <<_ACEOF |
| 17987 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17988 | _ACEOF |
| 17989 | |
| 17990 | fi |
| 17991 | done |
| 17992 | |
| 17993 | |
| 17994 | for ac_func in getrusage |
| 17995 | do |
| 17996 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17997 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17998 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17999 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18001 | else |
| 18002 | cat >conftest.$ac_ext <<_ACEOF |
| 18003 | /* confdefs.h. */ |
| 18004 | _ACEOF |
| 18005 | cat confdefs.h >>conftest.$ac_ext |
| 18006 | cat >>conftest.$ac_ext <<_ACEOF |
| 18007 | /* end confdefs.h. */ |
| 18008 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18009 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18010 | #define $ac_func innocuous_$ac_func |
| 18011 | |
| 18012 | /* System header to define __stub macros and hopefully few prototypes, |
| 18013 | which can conflict with char $ac_func (); below. |
| 18014 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18015 | <limits.h> exists even on freestanding compilers. */ |
| 18016 | |
| 18017 | #ifdef __STDC__ |
| 18018 | # include <limits.h> |
| 18019 | #else |
| 18020 | # include <assert.h> |
| 18021 | #endif |
| 18022 | |
| 18023 | #undef $ac_func |
| 18024 | |
| 18025 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18026 | #ifdef __cplusplus |
| 18027 | extern "C" |
| 18028 | { |
| 18029 | #endif |
| 18030 | /* We use char because int might match the return type of a gcc2 |
| 18031 | builtin and then its argument prototype would still apply. */ |
| 18032 | char $ac_func (); |
| 18033 | /* The GNU C library defines this for functions which it implements |
| 18034 | to always fail with ENOSYS. Some functions are actually named |
| 18035 | something starting with __ and the normal name is an alias. */ |
| 18036 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18037 | choke me |
| 18038 | #else |
| 18039 | char (*f) () = $ac_func; |
| 18040 | #endif |
| 18041 | #ifdef __cplusplus |
| 18042 | } |
| 18043 | #endif |
| 18044 | |
| 18045 | int |
| 18046 | main () |
| 18047 | { |
| 18048 | return f != $ac_func; |
| 18049 | ; |
| 18050 | return 0; |
| 18051 | } |
| 18052 | _ACEOF |
| 18053 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18055 | (eval $ac_link) 2>conftest.er1 |
| 18056 | ac_status=$? |
| 18057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18058 | rm -f conftest.er1 |
| 18059 | cat conftest.err >&5 |
| 18060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18061 | (exit $ac_status); } && |
| 18062 | { ac_try='test -z "$ac_c_werror_flag" |
| 18063 | || test ! -s conftest.err' |
| 18064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18065 | (eval $ac_try) 2>&5 |
| 18066 | ac_status=$? |
| 18067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18068 | (exit $ac_status); }; } && |
| 18069 | { ac_try='test -s conftest$ac_exeext' |
| 18070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18071 | (eval $ac_try) 2>&5 |
| 18072 | ac_status=$? |
| 18073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18074 | (exit $ac_status); }; }; then |
| 18075 | eval "$as_ac_var=yes" |
| 18076 | else |
| 18077 | echo "$as_me: failed program was:" >&5 |
| 18078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18079 | |
| 18080 | eval "$as_ac_var=no" |
| 18081 | fi |
| 18082 | rm -f conftest.err conftest.$ac_objext \ |
| 18083 | conftest$ac_exeext conftest.$ac_ext |
| 18084 | fi |
| 18085 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18086 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18087 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18088 | cat >>confdefs.h <<_ACEOF |
| 18089 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18090 | _ACEOF |
| 18091 | |
| 18092 | fi |
| 18093 | done |
| 18094 | |
| 18095 | |
| 18096 | |
| 18097 | for ac_func in getuid getgid |
| 18098 | do |
| 18099 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18100 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18101 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18102 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18104 | else |
| 18105 | cat >conftest.$ac_ext <<_ACEOF |
| 18106 | /* confdefs.h. */ |
| 18107 | _ACEOF |
| 18108 | cat confdefs.h >>conftest.$ac_ext |
| 18109 | cat >>conftest.$ac_ext <<_ACEOF |
| 18110 | /* end confdefs.h. */ |
| 18111 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18112 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18113 | #define $ac_func innocuous_$ac_func |
| 18114 | |
| 18115 | /* System header to define __stub macros and hopefully few prototypes, |
| 18116 | which can conflict with char $ac_func (); below. |
| 18117 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18118 | <limits.h> exists even on freestanding compilers. */ |
| 18119 | |
| 18120 | #ifdef __STDC__ |
| 18121 | # include <limits.h> |
| 18122 | #else |
| 18123 | # include <assert.h> |
| 18124 | #endif |
| 18125 | |
| 18126 | #undef $ac_func |
| 18127 | |
| 18128 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18129 | #ifdef __cplusplus |
| 18130 | extern "C" |
| 18131 | { |
| 18132 | #endif |
| 18133 | /* We use char because int might match the return type of a gcc2 |
| 18134 | builtin and then its argument prototype would still apply. */ |
| 18135 | char $ac_func (); |
| 18136 | /* The GNU C library defines this for functions which it implements |
| 18137 | to always fail with ENOSYS. Some functions are actually named |
| 18138 | something starting with __ and the normal name is an alias. */ |
| 18139 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18140 | choke me |
| 18141 | #else |
| 18142 | char (*f) () = $ac_func; |
| 18143 | #endif |
| 18144 | #ifdef __cplusplus |
| 18145 | } |
| 18146 | #endif |
| 18147 | |
| 18148 | int |
| 18149 | main () |
| 18150 | { |
| 18151 | return f != $ac_func; |
| 18152 | ; |
| 18153 | return 0; |
| 18154 | } |
| 18155 | _ACEOF |
| 18156 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18158 | (eval $ac_link) 2>conftest.er1 |
| 18159 | ac_status=$? |
| 18160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18161 | rm -f conftest.er1 |
| 18162 | cat conftest.err >&5 |
| 18163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18164 | (exit $ac_status); } && |
| 18165 | { ac_try='test -z "$ac_c_werror_flag" |
| 18166 | || test ! -s conftest.err' |
| 18167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18168 | (eval $ac_try) 2>&5 |
| 18169 | ac_status=$? |
| 18170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18171 | (exit $ac_status); }; } && |
| 18172 | { ac_try='test -s conftest$ac_exeext' |
| 18173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18174 | (eval $ac_try) 2>&5 |
| 18175 | ac_status=$? |
| 18176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18177 | (exit $ac_status); }; }; then |
| 18178 | eval "$as_ac_var=yes" |
| 18179 | else |
| 18180 | echo "$as_me: failed program was:" >&5 |
| 18181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18182 | |
| 18183 | eval "$as_ac_var=no" |
| 18184 | fi |
| 18185 | rm -f conftest.err conftest.$ac_objext \ |
| 18186 | conftest$ac_exeext conftest.$ac_ext |
| 18187 | fi |
| 18188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18189 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18190 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18191 | cat >>confdefs.h <<_ACEOF |
| 18192 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18193 | _ACEOF |
| 18194 | |
| 18195 | fi |
| 18196 | done |
| 18197 | |
| 18198 | |
| 18199 | for ac_func in poll |
| 18200 | do |
| 18201 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18202 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18203 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18204 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18206 | else |
| 18207 | cat >conftest.$ac_ext <<_ACEOF |
| 18208 | /* confdefs.h. */ |
| 18209 | _ACEOF |
| 18210 | cat confdefs.h >>conftest.$ac_ext |
| 18211 | cat >>conftest.$ac_ext <<_ACEOF |
| 18212 | /* end confdefs.h. */ |
| 18213 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18214 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18215 | #define $ac_func innocuous_$ac_func |
| 18216 | |
| 18217 | /* System header to define __stub macros and hopefully few prototypes, |
| 18218 | which can conflict with char $ac_func (); below. |
| 18219 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18220 | <limits.h> exists even on freestanding compilers. */ |
| 18221 | |
| 18222 | #ifdef __STDC__ |
| 18223 | # include <limits.h> |
| 18224 | #else |
| 18225 | # include <assert.h> |
| 18226 | #endif |
| 18227 | |
| 18228 | #undef $ac_func |
| 18229 | |
| 18230 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18231 | #ifdef __cplusplus |
| 18232 | extern "C" |
| 18233 | { |
| 18234 | #endif |
| 18235 | /* We use char because int might match the return type of a gcc2 |
| 18236 | builtin and then its argument prototype would still apply. */ |
| 18237 | char $ac_func (); |
| 18238 | /* The GNU C library defines this for functions which it implements |
| 18239 | to always fail with ENOSYS. Some functions are actually named |
| 18240 | something starting with __ and the normal name is an alias. */ |
| 18241 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18242 | choke me |
| 18243 | #else |
| 18244 | char (*f) () = $ac_func; |
| 18245 | #endif |
| 18246 | #ifdef __cplusplus |
| 18247 | } |
| 18248 | #endif |
| 18249 | |
| 18250 | int |
| 18251 | main () |
| 18252 | { |
| 18253 | return f != $ac_func; |
| 18254 | ; |
| 18255 | return 0; |
| 18256 | } |
| 18257 | _ACEOF |
| 18258 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18260 | (eval $ac_link) 2>conftest.er1 |
| 18261 | ac_status=$? |
| 18262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18263 | rm -f conftest.er1 |
| 18264 | cat conftest.err >&5 |
| 18265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18266 | (exit $ac_status); } && |
| 18267 | { ac_try='test -z "$ac_c_werror_flag" |
| 18268 | || test ! -s conftest.err' |
| 18269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18270 | (eval $ac_try) 2>&5 |
| 18271 | ac_status=$? |
| 18272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18273 | (exit $ac_status); }; } && |
| 18274 | { ac_try='test -s conftest$ac_exeext' |
| 18275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18276 | (eval $ac_try) 2>&5 |
| 18277 | ac_status=$? |
| 18278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18279 | (exit $ac_status); }; }; then |
| 18280 | eval "$as_ac_var=yes" |
| 18281 | else |
| 18282 | echo "$as_me: failed program was:" >&5 |
| 18283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18284 | |
| 18285 | eval "$as_ac_var=no" |
| 18286 | fi |
| 18287 | rm -f conftest.err conftest.$ac_objext \ |
| 18288 | conftest$ac_exeext conftest.$ac_ext |
| 18289 | fi |
| 18290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18291 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18292 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18293 | cat >>confdefs.h <<_ACEOF |
| 18294 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18295 | _ACEOF |
| 18296 | |
| 18297 | fi |
| 18298 | done |
| 18299 | |
| 18300 | |
| 18301 | for ac_func in pread64 |
| 18302 | do |
| 18303 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18304 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18305 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18306 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18308 | else |
| 18309 | cat >conftest.$ac_ext <<_ACEOF |
| 18310 | /* confdefs.h. */ |
| 18311 | _ACEOF |
| 18312 | cat confdefs.h >>conftest.$ac_ext |
| 18313 | cat >>conftest.$ac_ext <<_ACEOF |
| 18314 | /* end confdefs.h. */ |
| 18315 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18316 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18317 | #define $ac_func innocuous_$ac_func |
| 18318 | |
| 18319 | /* System header to define __stub macros and hopefully few prototypes, |
| 18320 | which can conflict with char $ac_func (); below. |
| 18321 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18322 | <limits.h> exists even on freestanding compilers. */ |
| 18323 | |
| 18324 | #ifdef __STDC__ |
| 18325 | # include <limits.h> |
| 18326 | #else |
| 18327 | # include <assert.h> |
| 18328 | #endif |
| 18329 | |
| 18330 | #undef $ac_func |
| 18331 | |
| 18332 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18333 | #ifdef __cplusplus |
| 18334 | extern "C" |
| 18335 | { |
| 18336 | #endif |
| 18337 | /* We use char because int might match the return type of a gcc2 |
| 18338 | builtin and then its argument prototype would still apply. */ |
| 18339 | char $ac_func (); |
| 18340 | /* The GNU C library defines this for functions which it implements |
| 18341 | to always fail with ENOSYS. Some functions are actually named |
| 18342 | something starting with __ and the normal name is an alias. */ |
| 18343 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18344 | choke me |
| 18345 | #else |
| 18346 | char (*f) () = $ac_func; |
| 18347 | #endif |
| 18348 | #ifdef __cplusplus |
| 18349 | } |
| 18350 | #endif |
| 18351 | |
| 18352 | int |
| 18353 | main () |
| 18354 | { |
| 18355 | return f != $ac_func; |
| 18356 | ; |
| 18357 | return 0; |
| 18358 | } |
| 18359 | _ACEOF |
| 18360 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18362 | (eval $ac_link) 2>conftest.er1 |
| 18363 | ac_status=$? |
| 18364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18365 | rm -f conftest.er1 |
| 18366 | cat conftest.err >&5 |
| 18367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18368 | (exit $ac_status); } && |
| 18369 | { ac_try='test -z "$ac_c_werror_flag" |
| 18370 | || test ! -s conftest.err' |
| 18371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18372 | (eval $ac_try) 2>&5 |
| 18373 | ac_status=$? |
| 18374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18375 | (exit $ac_status); }; } && |
| 18376 | { ac_try='test -s conftest$ac_exeext' |
| 18377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18378 | (eval $ac_try) 2>&5 |
| 18379 | ac_status=$? |
| 18380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18381 | (exit $ac_status); }; }; then |
| 18382 | eval "$as_ac_var=yes" |
| 18383 | else |
| 18384 | echo "$as_me: failed program was:" >&5 |
| 18385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18386 | |
| 18387 | eval "$as_ac_var=no" |
| 18388 | fi |
| 18389 | rm -f conftest.err conftest.$ac_objext \ |
| 18390 | conftest$ac_exeext conftest.$ac_ext |
| 18391 | fi |
| 18392 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18393 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18394 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18395 | cat >>confdefs.h <<_ACEOF |
| 18396 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18397 | _ACEOF |
| 18398 | |
| 18399 | fi |
| 18400 | done |
| 18401 | |
| 18402 | |
| 18403 | for ac_func in sbrk |
| 18404 | do |
| 18405 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18406 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18407 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18408 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18410 | else |
| 18411 | cat >conftest.$ac_ext <<_ACEOF |
| 18412 | /* confdefs.h. */ |
| 18413 | _ACEOF |
| 18414 | cat confdefs.h >>conftest.$ac_ext |
| 18415 | cat >>conftest.$ac_ext <<_ACEOF |
| 18416 | /* end confdefs.h. */ |
| 18417 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18418 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18419 | #define $ac_func innocuous_$ac_func |
| 18420 | |
| 18421 | /* System header to define __stub macros and hopefully few prototypes, |
| 18422 | which can conflict with char $ac_func (); below. |
| 18423 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18424 | <limits.h> exists even on freestanding compilers. */ |
| 18425 | |
| 18426 | #ifdef __STDC__ |
| 18427 | # include <limits.h> |
| 18428 | #else |
| 18429 | # include <assert.h> |
| 18430 | #endif |
| 18431 | |
| 18432 | #undef $ac_func |
| 18433 | |
| 18434 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18435 | #ifdef __cplusplus |
| 18436 | extern "C" |
| 18437 | { |
| 18438 | #endif |
| 18439 | /* We use char because int might match the return type of a gcc2 |
| 18440 | builtin and then its argument prototype would still apply. */ |
| 18441 | char $ac_func (); |
| 18442 | /* The GNU C library defines this for functions which it implements |
| 18443 | to always fail with ENOSYS. Some functions are actually named |
| 18444 | something starting with __ and the normal name is an alias. */ |
| 18445 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18446 | choke me |
| 18447 | #else |
| 18448 | char (*f) () = $ac_func; |
| 18449 | #endif |
| 18450 | #ifdef __cplusplus |
| 18451 | } |
| 18452 | #endif |
| 18453 | |
| 18454 | int |
| 18455 | main () |
| 18456 | { |
| 18457 | return f != $ac_func; |
| 18458 | ; |
| 18459 | return 0; |
| 18460 | } |
| 18461 | _ACEOF |
| 18462 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18463 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18464 | (eval $ac_link) 2>conftest.er1 |
| 18465 | ac_status=$? |
| 18466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18467 | rm -f conftest.er1 |
| 18468 | cat conftest.err >&5 |
| 18469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18470 | (exit $ac_status); } && |
| 18471 | { ac_try='test -z "$ac_c_werror_flag" |
| 18472 | || test ! -s conftest.err' |
| 18473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18474 | (eval $ac_try) 2>&5 |
| 18475 | ac_status=$? |
| 18476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18477 | (exit $ac_status); }; } && |
| 18478 | { ac_try='test -s conftest$ac_exeext' |
| 18479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18480 | (eval $ac_try) 2>&5 |
| 18481 | ac_status=$? |
| 18482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18483 | (exit $ac_status); }; }; then |
| 18484 | eval "$as_ac_var=yes" |
| 18485 | else |
| 18486 | echo "$as_me: failed program was:" >&5 |
| 18487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18488 | |
| 18489 | eval "$as_ac_var=no" |
| 18490 | fi |
| 18491 | rm -f conftest.err conftest.$ac_objext \ |
| 18492 | conftest$ac_exeext conftest.$ac_ext |
| 18493 | fi |
| 18494 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18495 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18496 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18497 | cat >>confdefs.h <<_ACEOF |
| 18498 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18499 | _ACEOF |
| 18500 | |
| 18501 | fi |
| 18502 | done |
| 18503 | |
| 18504 | |
| 18505 | |
| 18506 | |
| 18507 | for ac_func in setpgid setpgrp setsid |
| 18508 | do |
| 18509 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18510 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18511 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18512 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18514 | else |
| 18515 | cat >conftest.$ac_ext <<_ACEOF |
| 18516 | /* confdefs.h. */ |
| 18517 | _ACEOF |
| 18518 | cat confdefs.h >>conftest.$ac_ext |
| 18519 | cat >>conftest.$ac_ext <<_ACEOF |
| 18520 | /* end confdefs.h. */ |
| 18521 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18522 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18523 | #define $ac_func innocuous_$ac_func |
| 18524 | |
| 18525 | /* System header to define __stub macros and hopefully few prototypes, |
| 18526 | which can conflict with char $ac_func (); below. |
| 18527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18528 | <limits.h> exists even on freestanding compilers. */ |
| 18529 | |
| 18530 | #ifdef __STDC__ |
| 18531 | # include <limits.h> |
| 18532 | #else |
| 18533 | # include <assert.h> |
| 18534 | #endif |
| 18535 | |
| 18536 | #undef $ac_func |
| 18537 | |
| 18538 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18539 | #ifdef __cplusplus |
| 18540 | extern "C" |
| 18541 | { |
| 18542 | #endif |
| 18543 | /* We use char because int might match the return type of a gcc2 |
| 18544 | builtin and then its argument prototype would still apply. */ |
| 18545 | char $ac_func (); |
| 18546 | /* The GNU C library defines this for functions which it implements |
| 18547 | to always fail with ENOSYS. Some functions are actually named |
| 18548 | something starting with __ and the normal name is an alias. */ |
| 18549 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18550 | choke me |
| 18551 | #else |
| 18552 | char (*f) () = $ac_func; |
| 18553 | #endif |
| 18554 | #ifdef __cplusplus |
| 18555 | } |
| 18556 | #endif |
| 18557 | |
| 18558 | int |
| 18559 | main () |
| 18560 | { |
| 18561 | return f != $ac_func; |
| 18562 | ; |
| 18563 | return 0; |
| 18564 | } |
| 18565 | _ACEOF |
| 18566 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18568 | (eval $ac_link) 2>conftest.er1 |
| 18569 | ac_status=$? |
| 18570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18571 | rm -f conftest.er1 |
| 18572 | cat conftest.err >&5 |
| 18573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18574 | (exit $ac_status); } && |
| 18575 | { ac_try='test -z "$ac_c_werror_flag" |
| 18576 | || test ! -s conftest.err' |
| 18577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18578 | (eval $ac_try) 2>&5 |
| 18579 | ac_status=$? |
| 18580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18581 | (exit $ac_status); }; } && |
| 18582 | { ac_try='test -s conftest$ac_exeext' |
| 18583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18584 | (eval $ac_try) 2>&5 |
| 18585 | ac_status=$? |
| 18586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18587 | (exit $ac_status); }; }; then |
| 18588 | eval "$as_ac_var=yes" |
| 18589 | else |
| 18590 | echo "$as_me: failed program was:" >&5 |
| 18591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18592 | |
| 18593 | eval "$as_ac_var=no" |
| 18594 | fi |
| 18595 | rm -f conftest.err conftest.$ac_objext \ |
| 18596 | conftest$ac_exeext conftest.$ac_ext |
| 18597 | fi |
| 18598 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18599 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18600 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18601 | cat >>confdefs.h <<_ACEOF |
| 18602 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18603 | _ACEOF |
| 18604 | |
| 18605 | fi |
| 18606 | done |
| 18607 | |
| 18608 | |
| 18609 | |
| 18610 | |
| 18611 | for ac_func in sigaction sigprocmask sigsetmask |
| 18612 | do |
| 18613 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18614 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18615 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18616 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18618 | else |
| 18619 | cat >conftest.$ac_ext <<_ACEOF |
| 18620 | /* confdefs.h. */ |
| 18621 | _ACEOF |
| 18622 | cat confdefs.h >>conftest.$ac_ext |
| 18623 | cat >>conftest.$ac_ext <<_ACEOF |
| 18624 | /* end confdefs.h. */ |
| 18625 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18626 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18627 | #define $ac_func innocuous_$ac_func |
| 18628 | |
| 18629 | /* System header to define __stub macros and hopefully few prototypes, |
| 18630 | which can conflict with char $ac_func (); below. |
| 18631 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18632 | <limits.h> exists even on freestanding compilers. */ |
| 18633 | |
| 18634 | #ifdef __STDC__ |
| 18635 | # include <limits.h> |
| 18636 | #else |
| 18637 | # include <assert.h> |
| 18638 | #endif |
| 18639 | |
| 18640 | #undef $ac_func |
| 18641 | |
| 18642 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18643 | #ifdef __cplusplus |
| 18644 | extern "C" |
| 18645 | { |
| 18646 | #endif |
| 18647 | /* We use char because int might match the return type of a gcc2 |
| 18648 | builtin and then its argument prototype would still apply. */ |
| 18649 | char $ac_func (); |
| 18650 | /* The GNU C library defines this for functions which it implements |
| 18651 | to always fail with ENOSYS. Some functions are actually named |
| 18652 | something starting with __ and the normal name is an alias. */ |
| 18653 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18654 | choke me |
| 18655 | #else |
| 18656 | char (*f) () = $ac_func; |
| 18657 | #endif |
| 18658 | #ifdef __cplusplus |
| 18659 | } |
| 18660 | #endif |
| 18661 | |
| 18662 | int |
| 18663 | main () |
| 18664 | { |
| 18665 | return f != $ac_func; |
| 18666 | ; |
| 18667 | return 0; |
| 18668 | } |
| 18669 | _ACEOF |
| 18670 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18672 | (eval $ac_link) 2>conftest.er1 |
| 18673 | ac_status=$? |
| 18674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18675 | rm -f conftest.er1 |
| 18676 | cat conftest.err >&5 |
| 18677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18678 | (exit $ac_status); } && |
| 18679 | { ac_try='test -z "$ac_c_werror_flag" |
| 18680 | || test ! -s conftest.err' |
| 18681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18682 | (eval $ac_try) 2>&5 |
| 18683 | ac_status=$? |
| 18684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18685 | (exit $ac_status); }; } && |
| 18686 | { ac_try='test -s conftest$ac_exeext' |
| 18687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18688 | (eval $ac_try) 2>&5 |
| 18689 | ac_status=$? |
| 18690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18691 | (exit $ac_status); }; }; then |
| 18692 | eval "$as_ac_var=yes" |
| 18693 | else |
| 18694 | echo "$as_me: failed program was:" >&5 |
| 18695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18696 | |
| 18697 | eval "$as_ac_var=no" |
| 18698 | fi |
| 18699 | rm -f conftest.err conftest.$ac_objext \ |
| 18700 | conftest$ac_exeext conftest.$ac_ext |
| 18701 | fi |
| 18702 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18703 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18704 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18705 | cat >>confdefs.h <<_ACEOF |
| 18706 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18707 | _ACEOF |
| 18708 | |
| 18709 | fi |
| 18710 | done |
| 18711 | |
| 18712 | |
| 18713 | for ac_func in socketpair |
| 18714 | do |
| 18715 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18716 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18717 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18718 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18720 | else |
| 18721 | cat >conftest.$ac_ext <<_ACEOF |
| 18722 | /* confdefs.h. */ |
| 18723 | _ACEOF |
| 18724 | cat confdefs.h >>conftest.$ac_ext |
| 18725 | cat >>conftest.$ac_ext <<_ACEOF |
| 18726 | /* end confdefs.h. */ |
| 18727 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18728 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18729 | #define $ac_func innocuous_$ac_func |
| 18730 | |
| 18731 | /* System header to define __stub macros and hopefully few prototypes, |
| 18732 | which can conflict with char $ac_func (); below. |
| 18733 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18734 | <limits.h> exists even on freestanding compilers. */ |
| 18735 | |
| 18736 | #ifdef __STDC__ |
| 18737 | # include <limits.h> |
| 18738 | #else |
| 18739 | # include <assert.h> |
| 18740 | #endif |
| 18741 | |
| 18742 | #undef $ac_func |
| 18743 | |
| 18744 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18745 | #ifdef __cplusplus |
| 18746 | extern "C" |
| 18747 | { |
| 18748 | #endif |
| 18749 | /* We use char because int might match the return type of a gcc2 |
| 18750 | builtin and then its argument prototype would still apply. */ |
| 18751 | char $ac_func (); |
| 18752 | /* The GNU C library defines this for functions which it implements |
| 18753 | to always fail with ENOSYS. Some functions are actually named |
| 18754 | something starting with __ and the normal name is an alias. */ |
| 18755 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18756 | choke me |
| 18757 | #else |
| 18758 | char (*f) () = $ac_func; |
| 18759 | #endif |
| 18760 | #ifdef __cplusplus |
| 18761 | } |
| 18762 | #endif |
| 18763 | |
| 18764 | int |
| 18765 | main () |
| 18766 | { |
| 18767 | return f != $ac_func; |
| 18768 | ; |
| 18769 | return 0; |
| 18770 | } |
| 18771 | _ACEOF |
| 18772 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18774 | (eval $ac_link) 2>conftest.er1 |
| 18775 | ac_status=$? |
| 18776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18777 | rm -f conftest.er1 |
| 18778 | cat conftest.err >&5 |
| 18779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18780 | (exit $ac_status); } && |
| 18781 | { ac_try='test -z "$ac_c_werror_flag" |
| 18782 | || test ! -s conftest.err' |
| 18783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18784 | (eval $ac_try) 2>&5 |
| 18785 | ac_status=$? |
| 18786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18787 | (exit $ac_status); }; } && |
| 18788 | { ac_try='test -s conftest$ac_exeext' |
| 18789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18790 | (eval $ac_try) 2>&5 |
| 18791 | ac_status=$? |
| 18792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18793 | (exit $ac_status); }; }; then |
| 18794 | eval "$as_ac_var=yes" |
| 18795 | else |
| 18796 | echo "$as_me: failed program was:" >&5 |
| 18797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18798 | |
| 18799 | eval "$as_ac_var=no" |
| 18800 | fi |
| 18801 | rm -f conftest.err conftest.$ac_objext \ |
| 18802 | conftest$ac_exeext conftest.$ac_ext |
| 18803 | fi |
| 18804 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18805 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18806 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18807 | cat >>confdefs.h <<_ACEOF |
| 18808 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18809 | _ACEOF |
| 18810 | |
| 18811 | fi |
| 18812 | done |
| 18813 | |
| 18814 | |
| 18815 | for ac_func in syscall |
| 18816 | do |
| 18817 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18818 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18819 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18820 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18822 | else |
| 18823 | cat >conftest.$ac_ext <<_ACEOF |
| 18824 | /* confdefs.h. */ |
| 18825 | _ACEOF |
| 18826 | cat confdefs.h >>conftest.$ac_ext |
| 18827 | cat >>conftest.$ac_ext <<_ACEOF |
| 18828 | /* end confdefs.h. */ |
| 18829 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18830 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18831 | #define $ac_func innocuous_$ac_func |
| 18832 | |
| 18833 | /* System header to define __stub macros and hopefully few prototypes, |
| 18834 | which can conflict with char $ac_func (); below. |
| 18835 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18836 | <limits.h> exists even on freestanding compilers. */ |
| 18837 | |
| 18838 | #ifdef __STDC__ |
| 18839 | # include <limits.h> |
| 18840 | #else |
| 18841 | # include <assert.h> |
| 18842 | #endif |
| 18843 | |
| 18844 | #undef $ac_func |
| 18845 | |
| 18846 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18847 | #ifdef __cplusplus |
| 18848 | extern "C" |
| 18849 | { |
| 18850 | #endif |
| 18851 | /* We use char because int might match the return type of a gcc2 |
| 18852 | builtin and then its argument prototype would still apply. */ |
| 18853 | char $ac_func (); |
| 18854 | /* The GNU C library defines this for functions which it implements |
| 18855 | to always fail with ENOSYS. Some functions are actually named |
| 18856 | something starting with __ and the normal name is an alias. */ |
| 18857 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18858 | choke me |
| 18859 | #else |
| 18860 | char (*f) () = $ac_func; |
| 18861 | #endif |
| 18862 | #ifdef __cplusplus |
| 18863 | } |
| 18864 | #endif |
| 18865 | |
| 18866 | int |
| 18867 | main () |
| 18868 | { |
| 18869 | return f != $ac_func; |
| 18870 | ; |
| 18871 | return 0; |
| 18872 | } |
| 18873 | _ACEOF |
| 18874 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18876 | (eval $ac_link) 2>conftest.er1 |
| 18877 | ac_status=$? |
| 18878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18879 | rm -f conftest.er1 |
| 18880 | cat conftest.err >&5 |
| 18881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18882 | (exit $ac_status); } && |
| 18883 | { ac_try='test -z "$ac_c_werror_flag" |
| 18884 | || test ! -s conftest.err' |
| 18885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18886 | (eval $ac_try) 2>&5 |
| 18887 | ac_status=$? |
| 18888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18889 | (exit $ac_status); }; } && |
| 18890 | { ac_try='test -s conftest$ac_exeext' |
| 18891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18892 | (eval $ac_try) 2>&5 |
| 18893 | ac_status=$? |
| 18894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18895 | (exit $ac_status); }; }; then |
| 18896 | eval "$as_ac_var=yes" |
| 18897 | else |
| 18898 | echo "$as_me: failed program was:" >&5 |
| 18899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18900 | |
| 18901 | eval "$as_ac_var=no" |
| 18902 | fi |
| 18903 | rm -f conftest.err conftest.$ac_objext \ |
| 18904 | conftest$ac_exeext conftest.$ac_ext |
| 18905 | fi |
| 18906 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18907 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18908 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18909 | cat >>confdefs.h <<_ACEOF |
| 18910 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18911 | _ACEOF |
| 18912 | |
| 18913 | fi |
| 18914 | done |
| 18915 | |
| 18916 | |
| 18917 | for ac_func in ttrace |
| 18918 | do |
| 18919 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18920 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18921 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18922 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18924 | else |
| 18925 | cat >conftest.$ac_ext <<_ACEOF |
| 18926 | /* confdefs.h. */ |
| 18927 | _ACEOF |
| 18928 | cat confdefs.h >>conftest.$ac_ext |
| 18929 | cat >>conftest.$ac_ext <<_ACEOF |
| 18930 | /* end confdefs.h. */ |
| 18931 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18932 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18933 | #define $ac_func innocuous_$ac_func |
| 18934 | |
| 18935 | /* System header to define __stub macros and hopefully few prototypes, |
| 18936 | which can conflict with char $ac_func (); below. |
| 18937 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18938 | <limits.h> exists even on freestanding compilers. */ |
| 18939 | |
| 18940 | #ifdef __STDC__ |
| 18941 | # include <limits.h> |
| 18942 | #else |
| 18943 | # include <assert.h> |
| 18944 | #endif |
| 18945 | |
| 18946 | #undef $ac_func |
| 18947 | |
| 18948 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 18949 | #ifdef __cplusplus |
| 18950 | extern "C" |
| 18951 | { |
| 18952 | #endif |
| 18953 | /* We use char because int might match the return type of a gcc2 |
| 18954 | builtin and then its argument prototype would still apply. */ |
| 18955 | char $ac_func (); |
| 18956 | /* The GNU C library defines this for functions which it implements |
| 18957 | to always fail with ENOSYS. Some functions are actually named |
| 18958 | something starting with __ and the normal name is an alias. */ |
| 18959 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18960 | choke me |
| 18961 | #else |
| 18962 | char (*f) () = $ac_func; |
| 18963 | #endif |
| 18964 | #ifdef __cplusplus |
| 18965 | } |
| 18966 | #endif |
| 18967 | |
| 18968 | int |
| 18969 | main () |
| 18970 | { |
| 18971 | return f != $ac_func; |
| 18972 | ; |
| 18973 | return 0; |
| 18974 | } |
| 18975 | _ACEOF |
| 18976 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18978 | (eval $ac_link) 2>conftest.er1 |
| 18979 | ac_status=$? |
| 18980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18981 | rm -f conftest.er1 |
| 18982 | cat conftest.err >&5 |
| 18983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18984 | (exit $ac_status); } && |
| 18985 | { ac_try='test -z "$ac_c_werror_flag" |
| 18986 | || test ! -s conftest.err' |
| 18987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18988 | (eval $ac_try) 2>&5 |
| 18989 | ac_status=$? |
| 18990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18991 | (exit $ac_status); }; } && |
| 18992 | { ac_try='test -s conftest$ac_exeext' |
| 18993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18994 | (eval $ac_try) 2>&5 |
| 18995 | ac_status=$? |
| 18996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18997 | (exit $ac_status); }; }; then |
| 18998 | eval "$as_ac_var=yes" |
| 18999 | else |
| 19000 | echo "$as_me: failed program was:" >&5 |
| 19001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19002 | |
| 19003 | eval "$as_ac_var=no" |
| 19004 | fi |
| 19005 | rm -f conftest.err conftest.$ac_objext \ |
| 19006 | conftest$ac_exeext conftest.$ac_ext |
| 19007 | fi |
| 19008 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 19009 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 19010 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 19011 | cat >>confdefs.h <<_ACEOF |
| 19012 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19013 | _ACEOF |
| 19014 | |
| 19015 | fi |
| 19016 | done |
| 19017 | |
| 19018 | |
| 19019 | for ac_func in wborder |
| 19020 | do |
| 19021 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19022 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19023 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 19024 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 19025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19026 | else |
| 19027 | cat >conftest.$ac_ext <<_ACEOF |
| 19028 | /* confdefs.h. */ |
| 19029 | _ACEOF |
| 19030 | cat confdefs.h >>conftest.$ac_ext |
| 19031 | cat >>conftest.$ac_ext <<_ACEOF |
| 19032 | /* end confdefs.h. */ |
| 19033 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19034 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19035 | #define $ac_func innocuous_$ac_func |
| 19036 | |
| 19037 | /* System header to define __stub macros and hopefully few prototypes, |
| 19038 | which can conflict with char $ac_func (); below. |
| 19039 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19040 | <limits.h> exists even on freestanding compilers. */ |
| 19041 | |
| 19042 | #ifdef __STDC__ |
| 19043 | # include <limits.h> |
| 19044 | #else |
| 19045 | # include <assert.h> |
| 19046 | #endif |
| 19047 | |
| 19048 | #undef $ac_func |
| 19049 | |
| 19050 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19051 | #ifdef __cplusplus |
| 19052 | extern "C" |
| 19053 | { |
| 19054 | #endif |
| 19055 | /* We use char because int might match the return type of a gcc2 |
| 19056 | builtin and then its argument prototype would still apply. */ |
| 19057 | char $ac_func (); |
| 19058 | /* The GNU C library defines this for functions which it implements |
| 19059 | to always fail with ENOSYS. Some functions are actually named |
| 19060 | something starting with __ and the normal name is an alias. */ |
| 19061 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 19062 | choke me |
| 19063 | #else |
| 19064 | char (*f) () = $ac_func; |
| 19065 | #endif |
| 19066 | #ifdef __cplusplus |
| 19067 | } |
| 19068 | #endif |
| 19069 | |
| 19070 | int |
| 19071 | main () |
| 19072 | { |
| 19073 | return f != $ac_func; |
| 19074 | ; |
| 19075 | return 0; |
| 19076 | } |
| 19077 | _ACEOF |
| 19078 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19080 | (eval $ac_link) 2>conftest.er1 |
| 19081 | ac_status=$? |
| 19082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19083 | rm -f conftest.er1 |
| 19084 | cat conftest.err >&5 |
| 19085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19086 | (exit $ac_status); } && |
| 19087 | { ac_try='test -z "$ac_c_werror_flag" |
| 19088 | || test ! -s conftest.err' |
| 19089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19090 | (eval $ac_try) 2>&5 |
| 19091 | ac_status=$? |
| 19092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19093 | (exit $ac_status); }; } && |
| 19094 | { ac_try='test -s conftest$ac_exeext' |
| 19095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19096 | (eval $ac_try) 2>&5 |
| 19097 | ac_status=$? |
| 19098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19099 | (exit $ac_status); }; }; then |
| 19100 | eval "$as_ac_var=yes" |
| 19101 | else |
| 19102 | echo "$as_me: failed program was:" >&5 |
| 19103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19104 | |
| 19105 | eval "$as_ac_var=no" |
| 19106 | fi |
| 19107 | rm -f conftest.err conftest.$ac_objext \ |
| 19108 | conftest$ac_exeext conftest.$ac_ext |
| 19109 | fi |
| 19110 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 19111 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 19112 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 19113 | cat >>confdefs.h <<_ACEOF |
| 19114 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19115 | _ACEOF |
| 19116 | |
| 19117 | fi |
| 19118 | done |
| 19119 | |
| 19120 | |
| 19121 | # Check the return and argument types of ptrace. No canned test for |
| 19122 | # this, so roll our own. |
| 19123 | gdb_ptrace_headers=' |
| 19124 | #if HAVE_SYS_TYPES_H |
| 19125 | # include <sys/types.h> |
| 19126 | #endif |
| 19127 | #if HAVE_SYS_PTRACE_H |
| 19128 | # include <sys/ptrace.h> |
| 19129 | #endif |
| 19130 | #if HAVE_UNISTD_H |
| 19131 | # include <unistd.h> |
| 19132 | #endif |
| 19133 | ' |
| 19134 | # There is no point in checking if we don't have a prototype. |
| 19135 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
| 19136 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 |
| 19137 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
| 19138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19139 | else |
| 19140 | cat >conftest.$ac_ext <<_ACEOF |
| 19141 | /* confdefs.h. */ |
| 19142 | _ACEOF |
| 19143 | cat confdefs.h >>conftest.$ac_ext |
| 19144 | cat >>conftest.$ac_ext <<_ACEOF |
| 19145 | /* end confdefs.h. */ |
| 19146 | $gdb_ptrace_headers |
| 19147 | |
| 19148 | int |
| 19149 | main () |
| 19150 | { |
| 19151 | #ifndef ptrace |
| 19152 | char *p = (char *) ptrace; |
| 19153 | #endif |
| 19154 | |
| 19155 | ; |
| 19156 | return 0; |
| 19157 | } |
| 19158 | _ACEOF |
| 19159 | rm -f conftest.$ac_objext |
| 19160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19161 | (eval $ac_compile) 2>conftest.er1 |
| 19162 | ac_status=$? |
| 19163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19164 | rm -f conftest.er1 |
| 19165 | cat conftest.err >&5 |
| 19166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19167 | (exit $ac_status); } && |
| 19168 | { ac_try='test -z "$ac_c_werror_flag" |
| 19169 | || test ! -s conftest.err' |
| 19170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19171 | (eval $ac_try) 2>&5 |
| 19172 | ac_status=$? |
| 19173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19174 | (exit $ac_status); }; } && |
| 19175 | { ac_try='test -s conftest.$ac_objext' |
| 19176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19177 | (eval $ac_try) 2>&5 |
| 19178 | ac_status=$? |
| 19179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19180 | (exit $ac_status); }; }; then |
| 19181 | ac_cv_have_decl_ptrace=yes |
| 19182 | else |
| 19183 | echo "$as_me: failed program was:" >&5 |
| 19184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19185 | |
| 19186 | ac_cv_have_decl_ptrace=no |
| 19187 | fi |
| 19188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19189 | fi |
| 19190 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
| 19191 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 |
| 19192 | if test $ac_cv_have_decl_ptrace = yes; then |
| 19193 | |
| 19194 | cat >>confdefs.h <<_ACEOF |
| 19195 | #define HAVE_DECL_PTRACE 1 |
| 19196 | _ACEOF |
| 19197 | |
| 19198 | |
| 19199 | else |
| 19200 | cat >>confdefs.h <<_ACEOF |
| 19201 | #define HAVE_DECL_PTRACE 0 |
| 19202 | _ACEOF |
| 19203 | |
| 19204 | |
| 19205 | : ${gdb_cv_func_ptrace_ret='int'} |
| 19206 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} |
| 19207 | |
| 19208 | fi |
| 19209 | |
| 19210 | |
| 19211 | # Check return type. |
| 19212 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
| 19213 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 |
| 19214 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
| 19215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19216 | else |
| 19217 | cat >conftest.$ac_ext <<_ACEOF |
| 19218 | /* confdefs.h. */ |
| 19219 | _ACEOF |
| 19220 | cat confdefs.h >>conftest.$ac_ext |
| 19221 | cat >>conftest.$ac_ext <<_ACEOF |
| 19222 | /* end confdefs.h. */ |
| 19223 | $gdb_ptrace_headers |
| 19224 | int |
| 19225 | main () |
| 19226 | { |
| 19227 | extern int ptrace (); |
| 19228 | ; |
| 19229 | return 0; |
| 19230 | } |
| 19231 | _ACEOF |
| 19232 | rm -f conftest.$ac_objext |
| 19233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19234 | (eval $ac_compile) 2>conftest.er1 |
| 19235 | ac_status=$? |
| 19236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19237 | rm -f conftest.er1 |
| 19238 | cat conftest.err >&5 |
| 19239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19240 | (exit $ac_status); } && |
| 19241 | { ac_try='test -z "$ac_c_werror_flag" |
| 19242 | || test ! -s conftest.err' |
| 19243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19244 | (eval $ac_try) 2>&5 |
| 19245 | ac_status=$? |
| 19246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19247 | (exit $ac_status); }; } && |
| 19248 | { ac_try='test -s conftest.$ac_objext' |
| 19249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19250 | (eval $ac_try) 2>&5 |
| 19251 | ac_status=$? |
| 19252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19253 | (exit $ac_status); }; }; then |
| 19254 | gdb_cv_func_ptrace_ret='int' |
| 19255 | else |
| 19256 | echo "$as_me: failed program was:" >&5 |
| 19257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19258 | |
| 19259 | gdb_cv_func_ptrace_ret='long' |
| 19260 | fi |
| 19261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19262 | fi |
| 19263 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
| 19264 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 |
| 19265 | |
| 19266 | cat >>confdefs.h <<_ACEOF |
| 19267 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret |
| 19268 | _ACEOF |
| 19269 | |
| 19270 | # Check argument types. |
| 19271 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
| 19272 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 |
| 19273 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
| 19274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19275 | else |
| 19276 | |
| 19277 | for gdb_arg1 in 'int' 'long'; do |
| 19278 | for gdb_arg2 in 'pid_t' 'int' 'long'; do |
| 19279 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do |
| 19280 | for gdb_arg4 in 'int' 'long'; do |
| 19281 | cat >conftest.$ac_ext <<_ACEOF |
| 19282 | /* confdefs.h. */ |
| 19283 | _ACEOF |
| 19284 | cat confdefs.h >>conftest.$ac_ext |
| 19285 | cat >>conftest.$ac_ext <<_ACEOF |
| 19286 | /* end confdefs.h. */ |
| 19287 | $gdb_ptrace_headers |
| 19288 | int |
| 19289 | main () |
| 19290 | { |
| 19291 | |
| 19292 | extern $gdb_cv_func_ptrace_ret |
| 19293 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); |
| 19294 | |
| 19295 | ; |
| 19296 | return 0; |
| 19297 | } |
| 19298 | _ACEOF |
| 19299 | rm -f conftest.$ac_objext |
| 19300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19301 | (eval $ac_compile) 2>conftest.er1 |
| 19302 | ac_status=$? |
| 19303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19304 | rm -f conftest.er1 |
| 19305 | cat conftest.err >&5 |
| 19306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19307 | (exit $ac_status); } && |
| 19308 | { ac_try='test -z "$ac_c_werror_flag" |
| 19309 | || test ! -s conftest.err' |
| 19310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19311 | (eval $ac_try) 2>&5 |
| 19312 | ac_status=$? |
| 19313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19314 | (exit $ac_status); }; } && |
| 19315 | { ac_try='test -s conftest.$ac_objext' |
| 19316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19317 | (eval $ac_try) 2>&5 |
| 19318 | ac_status=$? |
| 19319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19320 | (exit $ac_status); }; }; then |
| 19321 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
| 19322 | break 4; |
| 19323 | else |
| 19324 | echo "$as_me: failed program was:" >&5 |
| 19325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19326 | |
| 19327 | fi |
| 19328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19329 | for gdb_arg5 in 'int *' 'int' 'long'; do |
| 19330 | cat >conftest.$ac_ext <<_ACEOF |
| 19331 | /* confdefs.h. */ |
| 19332 | _ACEOF |
| 19333 | cat confdefs.h >>conftest.$ac_ext |
| 19334 | cat >>conftest.$ac_ext <<_ACEOF |
| 19335 | /* end confdefs.h. */ |
| 19336 | $gdb_ptrace_headers |
| 19337 | int |
| 19338 | main () |
| 19339 | { |
| 19340 | |
| 19341 | extern $gdb_cv_func_ptrace_ret |
| 19342 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); |
| 19343 | |
| 19344 | ; |
| 19345 | return 0; |
| 19346 | } |
| 19347 | _ACEOF |
| 19348 | rm -f conftest.$ac_objext |
| 19349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19350 | (eval $ac_compile) 2>conftest.er1 |
| 19351 | ac_status=$? |
| 19352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19353 | rm -f conftest.er1 |
| 19354 | cat conftest.err >&5 |
| 19355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19356 | (exit $ac_status); } && |
| 19357 | { ac_try='test -z "$ac_c_werror_flag" |
| 19358 | || test ! -s conftest.err' |
| 19359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19360 | (eval $ac_try) 2>&5 |
| 19361 | ac_status=$? |
| 19362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19363 | (exit $ac_status); }; } && |
| 19364 | { ac_try='test -s conftest.$ac_objext' |
| 19365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19366 | (eval $ac_try) 2>&5 |
| 19367 | ac_status=$? |
| 19368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19369 | (exit $ac_status); }; }; then |
| 19370 | |
| 19371 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; |
| 19372 | break 5; |
| 19373 | else |
| 19374 | echo "$as_me: failed program was:" >&5 |
| 19375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19376 | |
| 19377 | fi |
| 19378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19379 | done |
| 19380 | done |
| 19381 | done |
| 19382 | done |
| 19383 | done |
| 19384 | # Provide a safe default value. |
| 19385 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} |
| 19386 | |
| 19387 | fi |
| 19388 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
| 19389 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 |
| 19390 | ac_save_IFS=$IFS; IFS=',' |
| 19391 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` |
| 19392 | IFS=$ac_save_IFS |
| 19393 | shift |
| 19394 | |
| 19395 | cat >>confdefs.h <<_ACEOF |
| 19396 | #define PTRACE_TYPE_ARG3 $3 |
| 19397 | _ACEOF |
| 19398 | |
| 19399 | if test -n "$5"; then |
| 19400 | |
| 19401 | cat >>confdefs.h <<_ACEOF |
| 19402 | #define PTRACE_TYPE_ARG5 $5 |
| 19403 | _ACEOF |
| 19404 | |
| 19405 | fi |
| 19406 | |
| 19407 | if test "$cross_compiling" = no; then |
| 19408 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 19409 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 19410 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
| 19411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19412 | else |
| 19413 | if test "$cross_compiling" = yes; then |
| 19414 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 19415 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 19416 | { (exit 1); exit 1; }; } |
| 19417 | else |
| 19418 | cat >conftest.$ac_ext <<_ACEOF |
| 19419 | /* confdefs.h. */ |
| 19420 | _ACEOF |
| 19421 | cat confdefs.h >>conftest.$ac_ext |
| 19422 | cat >>conftest.$ac_ext <<_ACEOF |
| 19423 | /* end confdefs.h. */ |
| 19424 | #if HAVE_UNISTD_H |
| 19425 | # include <unistd.h> |
| 19426 | #endif |
| 19427 | |
| 19428 | int |
| 19429 | main () |
| 19430 | { |
| 19431 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 19432 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 19433 | exit successfully. */ |
| 19434 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
| 19435 | ; |
| 19436 | return 0; |
| 19437 | } |
| 19438 | _ACEOF |
| 19439 | rm -f conftest$ac_exeext |
| 19440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19441 | (eval $ac_link) 2>&5 |
| 19442 | ac_status=$? |
| 19443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19444 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19446 | (eval $ac_try) 2>&5 |
| 19447 | ac_status=$? |
| 19448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19449 | (exit $ac_status); }; }; then |
| 19450 | ac_cv_func_setpgrp_void=no |
| 19451 | else |
| 19452 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19453 | echo "$as_me: failed program was:" >&5 |
| 19454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19455 | |
| 19456 | ( exit $ac_status ) |
| 19457 | ac_cv_func_setpgrp_void=yes |
| 19458 | fi |
| 19459 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19460 | fi |
| 19461 | fi |
| 19462 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 19463 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 19464 | if test $ac_cv_func_setpgrp_void = yes; then |
| 19465 | |
| 19466 | cat >>confdefs.h <<\_ACEOF |
| 19467 | #define SETPGRP_VOID 1 |
| 19468 | _ACEOF |
| 19469 | |
| 19470 | fi |
| 19471 | |
| 19472 | else |
| 19473 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 19474 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 19475 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
| 19476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19477 | else |
| 19478 | cat >conftest.$ac_ext <<_ACEOF |
| 19479 | /* confdefs.h. */ |
| 19480 | _ACEOF |
| 19481 | cat confdefs.h >>conftest.$ac_ext |
| 19482 | cat >>conftest.$ac_ext <<_ACEOF |
| 19483 | /* end confdefs.h. */ |
| 19484 | |
| 19485 | #include <unistd.h> |
| 19486 | |
| 19487 | int |
| 19488 | main () |
| 19489 | { |
| 19490 | |
| 19491 | if (setpgrp(1,1) == -1) |
| 19492 | exit (0); |
| 19493 | else |
| 19494 | exit (1); |
| 19495 | |
| 19496 | ; |
| 19497 | return 0; |
| 19498 | } |
| 19499 | _ACEOF |
| 19500 | rm -f conftest.$ac_objext |
| 19501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19502 | (eval $ac_compile) 2>conftest.er1 |
| 19503 | ac_status=$? |
| 19504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19505 | rm -f conftest.er1 |
| 19506 | cat conftest.err >&5 |
| 19507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19508 | (exit $ac_status); } && |
| 19509 | { ac_try='test -z "$ac_c_werror_flag" |
| 19510 | || test ! -s conftest.err' |
| 19511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19512 | (eval $ac_try) 2>&5 |
| 19513 | ac_status=$? |
| 19514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19515 | (exit $ac_status); }; } && |
| 19516 | { ac_try='test -s conftest.$ac_objext' |
| 19517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19518 | (eval $ac_try) 2>&5 |
| 19519 | ac_status=$? |
| 19520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19521 | (exit $ac_status); }; }; then |
| 19522 | ac_cv_func_setpgrp_void=no |
| 19523 | else |
| 19524 | echo "$as_me: failed program was:" >&5 |
| 19525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19526 | |
| 19527 | ac_cv_func_setpgrp_void=yes |
| 19528 | fi |
| 19529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19530 | fi |
| 19531 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 19532 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 19533 | if test $ac_cv_func_setpgrp_void = yes; then |
| 19534 | cat >>confdefs.h <<\_ACEOF |
| 19535 | #define SETPGRP_VOID 1 |
| 19536 | _ACEOF |
| 19537 | |
| 19538 | fi |
| 19539 | fi |
| 19540 | |
| 19541 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
| 19542 | # since sigsetjmp might only be defined as a macro. |
| 19543 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
| 19544 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 |
| 19545 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
| 19546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19547 | else |
| 19548 | cat >conftest.$ac_ext <<_ACEOF |
| 19549 | /* confdefs.h. */ |
| 19550 | _ACEOF |
| 19551 | cat confdefs.h >>conftest.$ac_ext |
| 19552 | cat >>conftest.$ac_ext <<_ACEOF |
| 19553 | /* end confdefs.h. */ |
| 19554 | |
| 19555 | #include <setjmp.h> |
| 19556 | |
| 19557 | int |
| 19558 | main () |
| 19559 | { |
| 19560 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
| 19561 | ; |
| 19562 | return 0; |
| 19563 | } |
| 19564 | _ACEOF |
| 19565 | rm -f conftest.$ac_objext |
| 19566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19567 | (eval $ac_compile) 2>conftest.er1 |
| 19568 | ac_status=$? |
| 19569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19570 | rm -f conftest.er1 |
| 19571 | cat conftest.err >&5 |
| 19572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19573 | (exit $ac_status); } && |
| 19574 | { ac_try='test -z "$ac_c_werror_flag" |
| 19575 | || test ! -s conftest.err' |
| 19576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19577 | (eval $ac_try) 2>&5 |
| 19578 | ac_status=$? |
| 19579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19580 | (exit $ac_status); }; } && |
| 19581 | { ac_try='test -s conftest.$ac_objext' |
| 19582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19583 | (eval $ac_try) 2>&5 |
| 19584 | ac_status=$? |
| 19585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19586 | (exit $ac_status); }; }; then |
| 19587 | gdb_cv_func_sigsetjmp=yes |
| 19588 | else |
| 19589 | echo "$as_me: failed program was:" >&5 |
| 19590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19591 | |
| 19592 | gdb_cv_func_sigsetjmp=no |
| 19593 | fi |
| 19594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19595 | fi |
| 19596 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
| 19597 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 |
| 19598 | if test $gdb_cv_func_sigsetjmp = yes; then |
| 19599 | |
| 19600 | cat >>confdefs.h <<\_ACEOF |
| 19601 | #define HAVE_SIGSETJMP 1 |
| 19602 | _ACEOF |
| 19603 | |
| 19604 | fi |
| 19605 | |
| 19606 | # Assume we'll default to using the included libiberty regex. |
| 19607 | gdb_use_included_regex=yes |
| 19608 | |
| 19609 | # However, if the system regex is GNU regex, then default to *not* |
| 19610 | # using the included regex. |
| 19611 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
| 19612 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 |
| 19613 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
| 19614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19615 | else |
| 19616 | cat >conftest.$ac_ext <<_ACEOF |
| 19617 | /* confdefs.h. */ |
| 19618 | _ACEOF |
| 19619 | cat confdefs.h >>conftest.$ac_ext |
| 19620 | cat >>conftest.$ac_ext <<_ACEOF |
| 19621 | /* end confdefs.h. */ |
| 19622 | #include <gnu-versions.h> |
| 19623 | int |
| 19624 | main () |
| 19625 | { |
| 19626 | #define REGEX_INTERFACE_VERSION 1 |
| 19627 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION |
| 19628 | # error "Version mismatch" |
| 19629 | #endif |
| 19630 | ; |
| 19631 | return 0; |
| 19632 | } |
| 19633 | _ACEOF |
| 19634 | rm -f conftest.$ac_objext |
| 19635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19636 | (eval $ac_compile) 2>conftest.er1 |
| 19637 | ac_status=$? |
| 19638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19639 | rm -f conftest.er1 |
| 19640 | cat conftest.err >&5 |
| 19641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19642 | (exit $ac_status); } && |
| 19643 | { ac_try='test -z "$ac_c_werror_flag" |
| 19644 | || test ! -s conftest.err' |
| 19645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19646 | (eval $ac_try) 2>&5 |
| 19647 | ac_status=$? |
| 19648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19649 | (exit $ac_status); }; } && |
| 19650 | { ac_try='test -s conftest.$ac_objext' |
| 19651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19652 | (eval $ac_try) 2>&5 |
| 19653 | ac_status=$? |
| 19654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19655 | (exit $ac_status); }; }; then |
| 19656 | gdb_cv_have_gnu_regex=yes |
| 19657 | else |
| 19658 | echo "$as_me: failed program was:" >&5 |
| 19659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19660 | |
| 19661 | gdb_cv_have_gnu_regex=no |
| 19662 | fi |
| 19663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19664 | fi |
| 19665 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
| 19666 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 |
| 19667 | if test $gdb_cv_have_gnu_regex = yes; then |
| 19668 | gdb_use_included_regex=no |
| 19669 | fi |
| 19670 | |
| 19671 | |
| 19672 | # Check whether --with-included-regex or --without-included-regex was given. |
| 19673 | if test "${with_included_regex+set}" = set; then |
| 19674 | withval="$with_included_regex" |
| 19675 | gdb_with_regex=$withval |
| 19676 | else |
| 19677 | gdb_with_regex=$gdb_use_included_regex |
| 19678 | fi; |
| 19679 | if test "$gdb_with_regex" = yes; then |
| 19680 | |
| 19681 | cat >>confdefs.h <<\_ACEOF |
| 19682 | #define USE_INCLUDED_REGEX 1 |
| 19683 | _ACEOF |
| 19684 | |
| 19685 | fi |
| 19686 | |
| 19687 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
| 19688 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
| 19689 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 |
| 19690 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
| 19691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19692 | else |
| 19693 | cat >conftest.$ac_ext <<_ACEOF |
| 19694 | /* confdefs.h. */ |
| 19695 | _ACEOF |
| 19696 | cat confdefs.h >>conftest.$ac_ext |
| 19697 | cat >>conftest.$ac_ext <<_ACEOF |
| 19698 | /* end confdefs.h. */ |
| 19699 | #include <sys/param.h> |
| 19700 | #include <sys/proc.h> |
| 19701 | |
| 19702 | |
| 19703 | int |
| 19704 | main () |
| 19705 | { |
| 19706 | static struct thread ac_aggr; |
| 19707 | if (ac_aggr.td_pcb) |
| 19708 | return 0; |
| 19709 | ; |
| 19710 | return 0; |
| 19711 | } |
| 19712 | _ACEOF |
| 19713 | rm -f conftest.$ac_objext |
| 19714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19715 | (eval $ac_compile) 2>conftest.er1 |
| 19716 | ac_status=$? |
| 19717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19718 | rm -f conftest.er1 |
| 19719 | cat conftest.err >&5 |
| 19720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19721 | (exit $ac_status); } && |
| 19722 | { ac_try='test -z "$ac_c_werror_flag" |
| 19723 | || test ! -s conftest.err' |
| 19724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19725 | (eval $ac_try) 2>&5 |
| 19726 | ac_status=$? |
| 19727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19728 | (exit $ac_status); }; } && |
| 19729 | { ac_try='test -s conftest.$ac_objext' |
| 19730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19731 | (eval $ac_try) 2>&5 |
| 19732 | ac_status=$? |
| 19733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19734 | (exit $ac_status); }; }; then |
| 19735 | ac_cv_member_struct_thread_td_pcb=yes |
| 19736 | else |
| 19737 | echo "$as_me: failed program was:" >&5 |
| 19738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19739 | |
| 19740 | cat >conftest.$ac_ext <<_ACEOF |
| 19741 | /* confdefs.h. */ |
| 19742 | _ACEOF |
| 19743 | cat confdefs.h >>conftest.$ac_ext |
| 19744 | cat >>conftest.$ac_ext <<_ACEOF |
| 19745 | /* end confdefs.h. */ |
| 19746 | #include <sys/param.h> |
| 19747 | #include <sys/proc.h> |
| 19748 | |
| 19749 | |
| 19750 | int |
| 19751 | main () |
| 19752 | { |
| 19753 | static struct thread ac_aggr; |
| 19754 | if (sizeof ac_aggr.td_pcb) |
| 19755 | return 0; |
| 19756 | ; |
| 19757 | return 0; |
| 19758 | } |
| 19759 | _ACEOF |
| 19760 | rm -f conftest.$ac_objext |
| 19761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19762 | (eval $ac_compile) 2>conftest.er1 |
| 19763 | ac_status=$? |
| 19764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19765 | rm -f conftest.er1 |
| 19766 | cat conftest.err >&5 |
| 19767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19768 | (exit $ac_status); } && |
| 19769 | { ac_try='test -z "$ac_c_werror_flag" |
| 19770 | || test ! -s conftest.err' |
| 19771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19772 | (eval $ac_try) 2>&5 |
| 19773 | ac_status=$? |
| 19774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19775 | (exit $ac_status); }; } && |
| 19776 | { ac_try='test -s conftest.$ac_objext' |
| 19777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19778 | (eval $ac_try) 2>&5 |
| 19779 | ac_status=$? |
| 19780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19781 | (exit $ac_status); }; }; then |
| 19782 | ac_cv_member_struct_thread_td_pcb=yes |
| 19783 | else |
| 19784 | echo "$as_me: failed program was:" >&5 |
| 19785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19786 | |
| 19787 | ac_cv_member_struct_thread_td_pcb=no |
| 19788 | fi |
| 19789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19790 | fi |
| 19791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19792 | fi |
| 19793 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
| 19794 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 |
| 19795 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
| 19796 | |
| 19797 | cat >>confdefs.h <<_ACEOF |
| 19798 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
| 19799 | _ACEOF |
| 19800 | |
| 19801 | |
| 19802 | fi |
| 19803 | |
| 19804 | |
| 19805 | # See if <sys/lwp.h> defines `struct lwp`. |
| 19806 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
| 19807 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 |
| 19808 | if test "${gdb_cv_struct_lwp+set}" = set; then |
| 19809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19810 | else |
| 19811 | cat >conftest.$ac_ext <<_ACEOF |
| 19812 | /* confdefs.h. */ |
| 19813 | _ACEOF |
| 19814 | cat confdefs.h >>conftest.$ac_ext |
| 19815 | cat >>conftest.$ac_ext <<_ACEOF |
| 19816 | /* end confdefs.h. */ |
| 19817 | #include <sys/param.h> |
| 19818 | #include <sys/lwp.h> |
| 19819 | int |
| 19820 | main () |
| 19821 | { |
| 19822 | struct lwp l; |
| 19823 | ; |
| 19824 | return 0; |
| 19825 | } |
| 19826 | _ACEOF |
| 19827 | rm -f conftest.$ac_objext |
| 19828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19829 | (eval $ac_compile) 2>conftest.er1 |
| 19830 | ac_status=$? |
| 19831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19832 | rm -f conftest.er1 |
| 19833 | cat conftest.err >&5 |
| 19834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19835 | (exit $ac_status); } && |
| 19836 | { ac_try='test -z "$ac_c_werror_flag" |
| 19837 | || test ! -s conftest.err' |
| 19838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19839 | (eval $ac_try) 2>&5 |
| 19840 | ac_status=$? |
| 19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19842 | (exit $ac_status); }; } && |
| 19843 | { ac_try='test -s conftest.$ac_objext' |
| 19844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19845 | (eval $ac_try) 2>&5 |
| 19846 | ac_status=$? |
| 19847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19848 | (exit $ac_status); }; }; then |
| 19849 | gdb_cv_struct_lwp=yes |
| 19850 | else |
| 19851 | echo "$as_me: failed program was:" >&5 |
| 19852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19853 | |
| 19854 | gdb_cv_struct_lwp=no |
| 19855 | fi |
| 19856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19857 | fi |
| 19858 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
| 19859 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 |
| 19860 | if test $gdb_cv_struct_lwp = yes; then |
| 19861 | |
| 19862 | cat >>confdefs.h <<\_ACEOF |
| 19863 | #define HAVE_STRUCT_LWP 1 |
| 19864 | _ACEOF |
| 19865 | |
| 19866 | fi |
| 19867 | |
| 19868 | # See if <machine/reg.h> degines `struct reg'. |
| 19869 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
| 19870 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 |
| 19871 | if test "${gdb_cv_struct_reg+set}" = set; then |
| 19872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19873 | else |
| 19874 | cat >conftest.$ac_ext <<_ACEOF |
| 19875 | /* confdefs.h. */ |
| 19876 | _ACEOF |
| 19877 | cat confdefs.h >>conftest.$ac_ext |
| 19878 | cat >>conftest.$ac_ext <<_ACEOF |
| 19879 | /* end confdefs.h. */ |
| 19880 | #include <sys/types.h> |
| 19881 | #include <machine/reg.h> |
| 19882 | int |
| 19883 | main () |
| 19884 | { |
| 19885 | struct reg r; |
| 19886 | ; |
| 19887 | return 0; |
| 19888 | } |
| 19889 | _ACEOF |
| 19890 | rm -f conftest.$ac_objext |
| 19891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19892 | (eval $ac_compile) 2>conftest.er1 |
| 19893 | ac_status=$? |
| 19894 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19895 | rm -f conftest.er1 |
| 19896 | cat conftest.err >&5 |
| 19897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19898 | (exit $ac_status); } && |
| 19899 | { ac_try='test -z "$ac_c_werror_flag" |
| 19900 | || test ! -s conftest.err' |
| 19901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19902 | (eval $ac_try) 2>&5 |
| 19903 | ac_status=$? |
| 19904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19905 | (exit $ac_status); }; } && |
| 19906 | { ac_try='test -s conftest.$ac_objext' |
| 19907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19908 | (eval $ac_try) 2>&5 |
| 19909 | ac_status=$? |
| 19910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19911 | (exit $ac_status); }; }; then |
| 19912 | gdb_cv_struct_reg=yes |
| 19913 | else |
| 19914 | echo "$as_me: failed program was:" >&5 |
| 19915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19916 | |
| 19917 | gdb_cv_struct_reg=no |
| 19918 | fi |
| 19919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19920 | fi |
| 19921 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
| 19922 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 |
| 19923 | if test $gdb_cv_struct_reg = yes; then |
| 19924 | |
| 19925 | cat >>confdefs.h <<\_ACEOF |
| 19926 | #define HAVE_STRUCT_REG 1 |
| 19927 | _ACEOF |
| 19928 | |
| 19929 | fi |
| 19930 | |
| 19931 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
| 19932 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. |
| 19933 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
| 19934 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 |
| 19935 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
| 19936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19937 | else |
| 19938 | cat >conftest.$ac_ext <<_ACEOF |
| 19939 | /* confdefs.h. */ |
| 19940 | _ACEOF |
| 19941 | cat confdefs.h >>conftest.$ac_ext |
| 19942 | cat >>conftest.$ac_ext <<_ACEOF |
| 19943 | /* end confdefs.h. */ |
| 19944 | #include <machine/reg.h> |
| 19945 | |
| 19946 | int |
| 19947 | main () |
| 19948 | { |
| 19949 | static struct reg ac_aggr; |
| 19950 | if (ac_aggr.r_fs) |
| 19951 | return 0; |
| 19952 | ; |
| 19953 | return 0; |
| 19954 | } |
| 19955 | _ACEOF |
| 19956 | rm -f conftest.$ac_objext |
| 19957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19958 | (eval $ac_compile) 2>conftest.er1 |
| 19959 | ac_status=$? |
| 19960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19961 | rm -f conftest.er1 |
| 19962 | cat conftest.err >&5 |
| 19963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19964 | (exit $ac_status); } && |
| 19965 | { ac_try='test -z "$ac_c_werror_flag" |
| 19966 | || test ! -s conftest.err' |
| 19967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19968 | (eval $ac_try) 2>&5 |
| 19969 | ac_status=$? |
| 19970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19971 | (exit $ac_status); }; } && |
| 19972 | { ac_try='test -s conftest.$ac_objext' |
| 19973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19974 | (eval $ac_try) 2>&5 |
| 19975 | ac_status=$? |
| 19976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19977 | (exit $ac_status); }; }; then |
| 19978 | ac_cv_member_struct_reg_r_fs=yes |
| 19979 | else |
| 19980 | echo "$as_me: failed program was:" >&5 |
| 19981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19982 | |
| 19983 | cat >conftest.$ac_ext <<_ACEOF |
| 19984 | /* confdefs.h. */ |
| 19985 | _ACEOF |
| 19986 | cat confdefs.h >>conftest.$ac_ext |
| 19987 | cat >>conftest.$ac_ext <<_ACEOF |
| 19988 | /* end confdefs.h. */ |
| 19989 | #include <machine/reg.h> |
| 19990 | |
| 19991 | int |
| 19992 | main () |
| 19993 | { |
| 19994 | static struct reg ac_aggr; |
| 19995 | if (sizeof ac_aggr.r_fs) |
| 19996 | return 0; |
| 19997 | ; |
| 19998 | return 0; |
| 19999 | } |
| 20000 | _ACEOF |
| 20001 | rm -f conftest.$ac_objext |
| 20002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20003 | (eval $ac_compile) 2>conftest.er1 |
| 20004 | ac_status=$? |
| 20005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20006 | rm -f conftest.er1 |
| 20007 | cat conftest.err >&5 |
| 20008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20009 | (exit $ac_status); } && |
| 20010 | { ac_try='test -z "$ac_c_werror_flag" |
| 20011 | || test ! -s conftest.err' |
| 20012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20013 | (eval $ac_try) 2>&5 |
| 20014 | ac_status=$? |
| 20015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20016 | (exit $ac_status); }; } && |
| 20017 | { ac_try='test -s conftest.$ac_objext' |
| 20018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20019 | (eval $ac_try) 2>&5 |
| 20020 | ac_status=$? |
| 20021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20022 | (exit $ac_status); }; }; then |
| 20023 | ac_cv_member_struct_reg_r_fs=yes |
| 20024 | else |
| 20025 | echo "$as_me: failed program was:" >&5 |
| 20026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20027 | |
| 20028 | ac_cv_member_struct_reg_r_fs=no |
| 20029 | fi |
| 20030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20031 | fi |
| 20032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20033 | fi |
| 20034 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
| 20035 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 |
| 20036 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
| 20037 | |
| 20038 | cat >>confdefs.h <<_ACEOF |
| 20039 | #define HAVE_STRUCT_REG_R_FS 1 |
| 20040 | _ACEOF |
| 20041 | |
| 20042 | |
| 20043 | fi |
| 20044 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
| 20045 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 |
| 20046 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
| 20047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20048 | else |
| 20049 | cat >conftest.$ac_ext <<_ACEOF |
| 20050 | /* confdefs.h. */ |
| 20051 | _ACEOF |
| 20052 | cat confdefs.h >>conftest.$ac_ext |
| 20053 | cat >>conftest.$ac_ext <<_ACEOF |
| 20054 | /* end confdefs.h. */ |
| 20055 | #include <machine/reg.h> |
| 20056 | |
| 20057 | int |
| 20058 | main () |
| 20059 | { |
| 20060 | static struct reg ac_aggr; |
| 20061 | if (ac_aggr.r_gs) |
| 20062 | return 0; |
| 20063 | ; |
| 20064 | return 0; |
| 20065 | } |
| 20066 | _ACEOF |
| 20067 | rm -f conftest.$ac_objext |
| 20068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20069 | (eval $ac_compile) 2>conftest.er1 |
| 20070 | ac_status=$? |
| 20071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20072 | rm -f conftest.er1 |
| 20073 | cat conftest.err >&5 |
| 20074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20075 | (exit $ac_status); } && |
| 20076 | { ac_try='test -z "$ac_c_werror_flag" |
| 20077 | || test ! -s conftest.err' |
| 20078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20079 | (eval $ac_try) 2>&5 |
| 20080 | ac_status=$? |
| 20081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20082 | (exit $ac_status); }; } && |
| 20083 | { ac_try='test -s conftest.$ac_objext' |
| 20084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20085 | (eval $ac_try) 2>&5 |
| 20086 | ac_status=$? |
| 20087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20088 | (exit $ac_status); }; }; then |
| 20089 | ac_cv_member_struct_reg_r_gs=yes |
| 20090 | else |
| 20091 | echo "$as_me: failed program was:" >&5 |
| 20092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20093 | |
| 20094 | cat >conftest.$ac_ext <<_ACEOF |
| 20095 | /* confdefs.h. */ |
| 20096 | _ACEOF |
| 20097 | cat confdefs.h >>conftest.$ac_ext |
| 20098 | cat >>conftest.$ac_ext <<_ACEOF |
| 20099 | /* end confdefs.h. */ |
| 20100 | #include <machine/reg.h> |
| 20101 | |
| 20102 | int |
| 20103 | main () |
| 20104 | { |
| 20105 | static struct reg ac_aggr; |
| 20106 | if (sizeof ac_aggr.r_gs) |
| 20107 | return 0; |
| 20108 | ; |
| 20109 | return 0; |
| 20110 | } |
| 20111 | _ACEOF |
| 20112 | rm -f conftest.$ac_objext |
| 20113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20114 | (eval $ac_compile) 2>conftest.er1 |
| 20115 | ac_status=$? |
| 20116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20117 | rm -f conftest.er1 |
| 20118 | cat conftest.err >&5 |
| 20119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20120 | (exit $ac_status); } && |
| 20121 | { ac_try='test -z "$ac_c_werror_flag" |
| 20122 | || test ! -s conftest.err' |
| 20123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20124 | (eval $ac_try) 2>&5 |
| 20125 | ac_status=$? |
| 20126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20127 | (exit $ac_status); }; } && |
| 20128 | { ac_try='test -s conftest.$ac_objext' |
| 20129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20130 | (eval $ac_try) 2>&5 |
| 20131 | ac_status=$? |
| 20132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20133 | (exit $ac_status); }; }; then |
| 20134 | ac_cv_member_struct_reg_r_gs=yes |
| 20135 | else |
| 20136 | echo "$as_me: failed program was:" >&5 |
| 20137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20138 | |
| 20139 | ac_cv_member_struct_reg_r_gs=no |
| 20140 | fi |
| 20141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20142 | fi |
| 20143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20144 | fi |
| 20145 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
| 20146 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 |
| 20147 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
| 20148 | |
| 20149 | cat >>confdefs.h <<_ACEOF |
| 20150 | #define HAVE_STRUCT_REG_R_GS 1 |
| 20151 | _ACEOF |
| 20152 | |
| 20153 | |
| 20154 | fi |
| 20155 | |
| 20156 | |
| 20157 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
| 20158 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
| 20159 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 |
| 20160 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
| 20161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20162 | else |
| 20163 | cat >conftest.$ac_ext <<_ACEOF |
| 20164 | /* confdefs.h. */ |
| 20165 | _ACEOF |
| 20166 | cat confdefs.h >>conftest.$ac_ext |
| 20167 | cat >>conftest.$ac_ext <<_ACEOF |
| 20168 | /* end confdefs.h. */ |
| 20169 | #include <sys/ptrace.h> |
| 20170 | int |
| 20171 | main () |
| 20172 | { |
| 20173 | PTRACE_GETREGS; |
| 20174 | ; |
| 20175 | return 0; |
| 20176 | } |
| 20177 | _ACEOF |
| 20178 | rm -f conftest.$ac_objext |
| 20179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20180 | (eval $ac_compile) 2>conftest.er1 |
| 20181 | ac_status=$? |
| 20182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20183 | rm -f conftest.er1 |
| 20184 | cat conftest.err >&5 |
| 20185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20186 | (exit $ac_status); } && |
| 20187 | { ac_try='test -z "$ac_c_werror_flag" |
| 20188 | || test ! -s conftest.err' |
| 20189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20190 | (eval $ac_try) 2>&5 |
| 20191 | ac_status=$? |
| 20192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20193 | (exit $ac_status); }; } && |
| 20194 | { ac_try='test -s conftest.$ac_objext' |
| 20195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20196 | (eval $ac_try) 2>&5 |
| 20197 | ac_status=$? |
| 20198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20199 | (exit $ac_status); }; }; then |
| 20200 | gdb_cv_have_ptrace_getregs=yes |
| 20201 | else |
| 20202 | echo "$as_me: failed program was:" >&5 |
| 20203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20204 | |
| 20205 | gdb_cv_have_ptrace_getregs=no |
| 20206 | fi |
| 20207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20208 | fi |
| 20209 | |
| 20210 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
| 20211 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 |
| 20212 | if test $gdb_cv_have_ptrace_getregs = yes; then |
| 20213 | |
| 20214 | cat >>confdefs.h <<\_ACEOF |
| 20215 | #define HAVE_PTRACE_GETREGS 1 |
| 20216 | _ACEOF |
| 20217 | |
| 20218 | fi |
| 20219 | |
| 20220 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
| 20221 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
| 20222 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 |
| 20223 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
| 20224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20225 | else |
| 20226 | cat >conftest.$ac_ext <<_ACEOF |
| 20227 | /* confdefs.h. */ |
| 20228 | _ACEOF |
| 20229 | cat confdefs.h >>conftest.$ac_ext |
| 20230 | cat >>conftest.$ac_ext <<_ACEOF |
| 20231 | /* end confdefs.h. */ |
| 20232 | #include <sys/ptrace.h> |
| 20233 | int |
| 20234 | main () |
| 20235 | { |
| 20236 | PTRACE_GETFPXREGS; |
| 20237 | ; |
| 20238 | return 0; |
| 20239 | } |
| 20240 | _ACEOF |
| 20241 | rm -f conftest.$ac_objext |
| 20242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20243 | (eval $ac_compile) 2>conftest.er1 |
| 20244 | ac_status=$? |
| 20245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20246 | rm -f conftest.er1 |
| 20247 | cat conftest.err >&5 |
| 20248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20249 | (exit $ac_status); } && |
| 20250 | { ac_try='test -z "$ac_c_werror_flag" |
| 20251 | || test ! -s conftest.err' |
| 20252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20253 | (eval $ac_try) 2>&5 |
| 20254 | ac_status=$? |
| 20255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20256 | (exit $ac_status); }; } && |
| 20257 | { ac_try='test -s conftest.$ac_objext' |
| 20258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20259 | (eval $ac_try) 2>&5 |
| 20260 | ac_status=$? |
| 20261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20262 | (exit $ac_status); }; }; then |
| 20263 | gdb_cv_have_ptrace_getfpxregs=yes |
| 20264 | else |
| 20265 | echo "$as_me: failed program was:" >&5 |
| 20266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20267 | |
| 20268 | gdb_cv_have_ptrace_getfpxregs=no |
| 20269 | fi |
| 20270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20271 | fi |
| 20272 | |
| 20273 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
| 20274 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 |
| 20275 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
| 20276 | |
| 20277 | cat >>confdefs.h <<\_ACEOF |
| 20278 | #define HAVE_PTRACE_GETFPXREGS 1 |
| 20279 | _ACEOF |
| 20280 | |
| 20281 | fi |
| 20282 | |
| 20283 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
| 20284 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
| 20285 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 |
| 20286 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
| 20287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20288 | else |
| 20289 | cat >conftest.$ac_ext <<_ACEOF |
| 20290 | /* confdefs.h. */ |
| 20291 | _ACEOF |
| 20292 | cat confdefs.h >>conftest.$ac_ext |
| 20293 | cat >>conftest.$ac_ext <<_ACEOF |
| 20294 | /* end confdefs.h. */ |
| 20295 | #include <sys/types.h> |
| 20296 | #include <sys/ptrace.h> |
| 20297 | int |
| 20298 | main () |
| 20299 | { |
| 20300 | PT_GETDBREGS; |
| 20301 | ; |
| 20302 | return 0; |
| 20303 | } |
| 20304 | _ACEOF |
| 20305 | rm -f conftest.$ac_objext |
| 20306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20307 | (eval $ac_compile) 2>conftest.er1 |
| 20308 | ac_status=$? |
| 20309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20310 | rm -f conftest.er1 |
| 20311 | cat conftest.err >&5 |
| 20312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20313 | (exit $ac_status); } && |
| 20314 | { ac_try='test -z "$ac_c_werror_flag" |
| 20315 | || test ! -s conftest.err' |
| 20316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20317 | (eval $ac_try) 2>&5 |
| 20318 | ac_status=$? |
| 20319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20320 | (exit $ac_status); }; } && |
| 20321 | { ac_try='test -s conftest.$ac_objext' |
| 20322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20323 | (eval $ac_try) 2>&5 |
| 20324 | ac_status=$? |
| 20325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20326 | (exit $ac_status); }; }; then |
| 20327 | gdb_cv_have_pt_getdbregs=yes |
| 20328 | else |
| 20329 | echo "$as_me: failed program was:" >&5 |
| 20330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20331 | |
| 20332 | gdb_cv_have_pt_getdbregs=no |
| 20333 | fi |
| 20334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20335 | fi |
| 20336 | |
| 20337 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
| 20338 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 |
| 20339 | if test $gdb_cv_have_pt_getdbregs = yes; then |
| 20340 | |
| 20341 | cat >>confdefs.h <<\_ACEOF |
| 20342 | #define HAVE_PT_GETDBREGS 1 |
| 20343 | _ACEOF |
| 20344 | |
| 20345 | fi |
| 20346 | |
| 20347 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
| 20348 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
| 20349 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 |
| 20350 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
| 20351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20352 | else |
| 20353 | cat >conftest.$ac_ext <<_ACEOF |
| 20354 | /* confdefs.h. */ |
| 20355 | _ACEOF |
| 20356 | cat confdefs.h >>conftest.$ac_ext |
| 20357 | cat >>conftest.$ac_ext <<_ACEOF |
| 20358 | /* end confdefs.h. */ |
| 20359 | #include <sys/types.h> |
| 20360 | #include <sys/ptrace.h> |
| 20361 | int |
| 20362 | main () |
| 20363 | { |
| 20364 | PT_GETXMMREGS; |
| 20365 | ; |
| 20366 | return 0; |
| 20367 | } |
| 20368 | _ACEOF |
| 20369 | rm -f conftest.$ac_objext |
| 20370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20371 | (eval $ac_compile) 2>conftest.er1 |
| 20372 | ac_status=$? |
| 20373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20374 | rm -f conftest.er1 |
| 20375 | cat conftest.err >&5 |
| 20376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20377 | (exit $ac_status); } && |
| 20378 | { ac_try='test -z "$ac_c_werror_flag" |
| 20379 | || test ! -s conftest.err' |
| 20380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20381 | (eval $ac_try) 2>&5 |
| 20382 | ac_status=$? |
| 20383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20384 | (exit $ac_status); }; } && |
| 20385 | { ac_try='test -s conftest.$ac_objext' |
| 20386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20387 | (eval $ac_try) 2>&5 |
| 20388 | ac_status=$? |
| 20389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20390 | (exit $ac_status); }; }; then |
| 20391 | gdb_cv_have_pt_getxmmregs=yes |
| 20392 | else |
| 20393 | echo "$as_me: failed program was:" >&5 |
| 20394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20395 | |
| 20396 | gdb_cv_have_pt_getxmmregs=no |
| 20397 | fi |
| 20398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20399 | fi |
| 20400 | |
| 20401 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
| 20402 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 |
| 20403 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
| 20404 | |
| 20405 | cat >>confdefs.h <<\_ACEOF |
| 20406 | #define HAVE_PT_GETXMMREGS 1 |
| 20407 | _ACEOF |
| 20408 | |
| 20409 | fi |
| 20410 | |
| 20411 | # Detect which type of /proc is in use, such as for Unixware or Solaris. |
| 20412 | |
| 20413 | if test "${target}" = "${host}"; then |
| 20414 | case "${host}" in |
| 20415 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
| 20416 | |
| 20417 | cat >>confdefs.h <<\_ACEOF |
| 20418 | #define NEW_PROC_API 1 |
| 20419 | _ACEOF |
| 20420 | |
| 20421 | ;; |
| 20422 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*) |
| 20423 | |
| 20424 | cat >>confdefs.h <<\_ACEOF |
| 20425 | #define NEW_PROC_API 1 |
| 20426 | _ACEOF |
| 20427 | |
| 20428 | ;; |
| 20429 | mips-sgi-irix5*) |
| 20430 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. |
| 20431 | |
| 20432 | cat >>confdefs.h <<\_ACEOF |
| 20433 | #define _KMEMUSER 1 |
| 20434 | _ACEOF |
| 20435 | |
| 20436 | ;; |
| 20437 | esac |
| 20438 | fi |
| 20439 | |
| 20440 | if test "$ac_cv_header_sys_procfs_h" = yes; then |
| 20441 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
| 20442 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 |
| 20443 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
| 20444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20445 | else |
| 20446 | cat >conftest.$ac_ext <<_ACEOF |
| 20447 | /* confdefs.h. */ |
| 20448 | _ACEOF |
| 20449 | cat confdefs.h >>conftest.$ac_ext |
| 20450 | cat >>conftest.$ac_ext <<_ACEOF |
| 20451 | /* end confdefs.h. */ |
| 20452 | |
| 20453 | #define _SYSCALL32 |
| 20454 | #include <sys/procfs.h> |
| 20455 | int |
| 20456 | main () |
| 20457 | { |
| 20458 | pstatus_t avar |
| 20459 | ; |
| 20460 | return 0; |
| 20461 | } |
| 20462 | _ACEOF |
| 20463 | rm -f conftest.$ac_objext |
| 20464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20465 | (eval $ac_compile) 2>conftest.er1 |
| 20466 | ac_status=$? |
| 20467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20468 | rm -f conftest.er1 |
| 20469 | cat conftest.err >&5 |
| 20470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20471 | (exit $ac_status); } && |
| 20472 | { ac_try='test -z "$ac_c_werror_flag" |
| 20473 | || test ! -s conftest.err' |
| 20474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20475 | (eval $ac_try) 2>&5 |
| 20476 | ac_status=$? |
| 20477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20478 | (exit $ac_status); }; } && |
| 20479 | { ac_try='test -s conftest.$ac_objext' |
| 20480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20481 | (eval $ac_try) 2>&5 |
| 20482 | ac_status=$? |
| 20483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20484 | (exit $ac_status); }; }; then |
| 20485 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
| 20486 | else |
| 20487 | echo "$as_me: failed program was:" >&5 |
| 20488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20489 | |
| 20490 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
| 20491 | |
| 20492 | fi |
| 20493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20494 | fi |
| 20495 | |
| 20496 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
| 20497 | |
| 20498 | cat >>confdefs.h <<\_ACEOF |
| 20499 | #define HAVE_PSTATUS_T 1 |
| 20500 | _ACEOF |
| 20501 | |
| 20502 | fi |
| 20503 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
| 20504 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 |
| 20505 | |
| 20506 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
| 20507 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 |
| 20508 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
| 20509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20510 | else |
| 20511 | cat >conftest.$ac_ext <<_ACEOF |
| 20512 | /* confdefs.h. */ |
| 20513 | _ACEOF |
| 20514 | cat confdefs.h >>conftest.$ac_ext |
| 20515 | cat >>conftest.$ac_ext <<_ACEOF |
| 20516 | /* end confdefs.h. */ |
| 20517 | |
| 20518 | #define _SYSCALL32 |
| 20519 | #include <sys/procfs.h> |
| 20520 | int |
| 20521 | main () |
| 20522 | { |
| 20523 | prrun_t avar |
| 20524 | ; |
| 20525 | return 0; |
| 20526 | } |
| 20527 | _ACEOF |
| 20528 | rm -f conftest.$ac_objext |
| 20529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20530 | (eval $ac_compile) 2>conftest.er1 |
| 20531 | ac_status=$? |
| 20532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20533 | rm -f conftest.er1 |
| 20534 | cat conftest.err >&5 |
| 20535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20536 | (exit $ac_status); } && |
| 20537 | { ac_try='test -z "$ac_c_werror_flag" |
| 20538 | || test ! -s conftest.err' |
| 20539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20540 | (eval $ac_try) 2>&5 |
| 20541 | ac_status=$? |
| 20542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20543 | (exit $ac_status); }; } && |
| 20544 | { ac_try='test -s conftest.$ac_objext' |
| 20545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20546 | (eval $ac_try) 2>&5 |
| 20547 | ac_status=$? |
| 20548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20549 | (exit $ac_status); }; }; then |
| 20550 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
| 20551 | else |
| 20552 | echo "$as_me: failed program was:" >&5 |
| 20553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20554 | |
| 20555 | bfd_cv_have_sys_procfs_type_prrun_t=no |
| 20556 | |
| 20557 | fi |
| 20558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20559 | fi |
| 20560 | |
| 20561 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
| 20562 | |
| 20563 | cat >>confdefs.h <<\_ACEOF |
| 20564 | #define HAVE_PRRUN_T 1 |
| 20565 | _ACEOF |
| 20566 | |
| 20567 | fi |
| 20568 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
| 20569 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 |
| 20570 | |
| 20571 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
| 20572 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 20573 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
| 20574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20575 | else |
| 20576 | cat >conftest.$ac_ext <<_ACEOF |
| 20577 | /* confdefs.h. */ |
| 20578 | _ACEOF |
| 20579 | cat confdefs.h >>conftest.$ac_ext |
| 20580 | cat >>conftest.$ac_ext <<_ACEOF |
| 20581 | /* end confdefs.h. */ |
| 20582 | |
| 20583 | #define _SYSCALL32 |
| 20584 | #include <sys/procfs.h> |
| 20585 | int |
| 20586 | main () |
| 20587 | { |
| 20588 | gregset_t avar |
| 20589 | ; |
| 20590 | return 0; |
| 20591 | } |
| 20592 | _ACEOF |
| 20593 | rm -f conftest.$ac_objext |
| 20594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20595 | (eval $ac_compile) 2>conftest.er1 |
| 20596 | ac_status=$? |
| 20597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20598 | rm -f conftest.er1 |
| 20599 | cat conftest.err >&5 |
| 20600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20601 | (exit $ac_status); } && |
| 20602 | { ac_try='test -z "$ac_c_werror_flag" |
| 20603 | || test ! -s conftest.err' |
| 20604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20605 | (eval $ac_try) 2>&5 |
| 20606 | ac_status=$? |
| 20607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20608 | (exit $ac_status); }; } && |
| 20609 | { ac_try='test -s conftest.$ac_objext' |
| 20610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20611 | (eval $ac_try) 2>&5 |
| 20612 | ac_status=$? |
| 20613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20614 | (exit $ac_status); }; }; then |
| 20615 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
| 20616 | else |
| 20617 | echo "$as_me: failed program was:" >&5 |
| 20618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20619 | |
| 20620 | bfd_cv_have_sys_procfs_type_gregset_t=no |
| 20621 | |
| 20622 | fi |
| 20623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20624 | fi |
| 20625 | |
| 20626 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
| 20627 | |
| 20628 | cat >>confdefs.h <<\_ACEOF |
| 20629 | #define HAVE_GREGSET_T 1 |
| 20630 | _ACEOF |
| 20631 | |
| 20632 | fi |
| 20633 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
| 20634 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 |
| 20635 | |
| 20636 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
| 20637 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 20638 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
| 20639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20640 | else |
| 20641 | cat >conftest.$ac_ext <<_ACEOF |
| 20642 | /* confdefs.h. */ |
| 20643 | _ACEOF |
| 20644 | cat confdefs.h >>conftest.$ac_ext |
| 20645 | cat >>conftest.$ac_ext <<_ACEOF |
| 20646 | /* end confdefs.h. */ |
| 20647 | |
| 20648 | #define _SYSCALL32 |
| 20649 | #include <sys/procfs.h> |
| 20650 | int |
| 20651 | main () |
| 20652 | { |
| 20653 | fpregset_t avar |
| 20654 | ; |
| 20655 | return 0; |
| 20656 | } |
| 20657 | _ACEOF |
| 20658 | rm -f conftest.$ac_objext |
| 20659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20660 | (eval $ac_compile) 2>conftest.er1 |
| 20661 | ac_status=$? |
| 20662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20663 | rm -f conftest.er1 |
| 20664 | cat conftest.err >&5 |
| 20665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20666 | (exit $ac_status); } && |
| 20667 | { ac_try='test -z "$ac_c_werror_flag" |
| 20668 | || test ! -s conftest.err' |
| 20669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20670 | (eval $ac_try) 2>&5 |
| 20671 | ac_status=$? |
| 20672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20673 | (exit $ac_status); }; } && |
| 20674 | { ac_try='test -s conftest.$ac_objext' |
| 20675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20676 | (eval $ac_try) 2>&5 |
| 20677 | ac_status=$? |
| 20678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20679 | (exit $ac_status); }; }; then |
| 20680 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
| 20681 | else |
| 20682 | echo "$as_me: failed program was:" >&5 |
| 20683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20684 | |
| 20685 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
| 20686 | |
| 20687 | fi |
| 20688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20689 | fi |
| 20690 | |
| 20691 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
| 20692 | |
| 20693 | cat >>confdefs.h <<\_ACEOF |
| 20694 | #define HAVE_FPREGSET_T 1 |
| 20695 | _ACEOF |
| 20696 | |
| 20697 | fi |
| 20698 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
| 20699 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 |
| 20700 | |
| 20701 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
| 20702 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 20703 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
| 20704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20705 | else |
| 20706 | cat >conftest.$ac_ext <<_ACEOF |
| 20707 | /* confdefs.h. */ |
| 20708 | _ACEOF |
| 20709 | cat confdefs.h >>conftest.$ac_ext |
| 20710 | cat >>conftest.$ac_ext <<_ACEOF |
| 20711 | /* end confdefs.h. */ |
| 20712 | |
| 20713 | #define _SYSCALL32 |
| 20714 | #include <sys/procfs.h> |
| 20715 | int |
| 20716 | main () |
| 20717 | { |
| 20718 | prgregset_t avar |
| 20719 | ; |
| 20720 | return 0; |
| 20721 | } |
| 20722 | _ACEOF |
| 20723 | rm -f conftest.$ac_objext |
| 20724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20725 | (eval $ac_compile) 2>conftest.er1 |
| 20726 | ac_status=$? |
| 20727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20728 | rm -f conftest.er1 |
| 20729 | cat conftest.err >&5 |
| 20730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20731 | (exit $ac_status); } && |
| 20732 | { ac_try='test -z "$ac_c_werror_flag" |
| 20733 | || test ! -s conftest.err' |
| 20734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20735 | (eval $ac_try) 2>&5 |
| 20736 | ac_status=$? |
| 20737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20738 | (exit $ac_status); }; } && |
| 20739 | { ac_try='test -s conftest.$ac_objext' |
| 20740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20741 | (eval $ac_try) 2>&5 |
| 20742 | ac_status=$? |
| 20743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20744 | (exit $ac_status); }; }; then |
| 20745 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
| 20746 | else |
| 20747 | echo "$as_me: failed program was:" >&5 |
| 20748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20749 | |
| 20750 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
| 20751 | |
| 20752 | fi |
| 20753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20754 | fi |
| 20755 | |
| 20756 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
| 20757 | |
| 20758 | cat >>confdefs.h <<\_ACEOF |
| 20759 | #define HAVE_PRGREGSET_T 1 |
| 20760 | _ACEOF |
| 20761 | |
| 20762 | fi |
| 20763 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
| 20764 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 |
| 20765 | |
| 20766 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
| 20767 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 20768 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
| 20769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20770 | else |
| 20771 | cat >conftest.$ac_ext <<_ACEOF |
| 20772 | /* confdefs.h. */ |
| 20773 | _ACEOF |
| 20774 | cat confdefs.h >>conftest.$ac_ext |
| 20775 | cat >>conftest.$ac_ext <<_ACEOF |
| 20776 | /* end confdefs.h. */ |
| 20777 | |
| 20778 | #define _SYSCALL32 |
| 20779 | #include <sys/procfs.h> |
| 20780 | int |
| 20781 | main () |
| 20782 | { |
| 20783 | prfpregset_t avar |
| 20784 | ; |
| 20785 | return 0; |
| 20786 | } |
| 20787 | _ACEOF |
| 20788 | rm -f conftest.$ac_objext |
| 20789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20790 | (eval $ac_compile) 2>conftest.er1 |
| 20791 | ac_status=$? |
| 20792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20793 | rm -f conftest.er1 |
| 20794 | cat conftest.err >&5 |
| 20795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20796 | (exit $ac_status); } && |
| 20797 | { ac_try='test -z "$ac_c_werror_flag" |
| 20798 | || test ! -s conftest.err' |
| 20799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20800 | (eval $ac_try) 2>&5 |
| 20801 | ac_status=$? |
| 20802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20803 | (exit $ac_status); }; } && |
| 20804 | { ac_try='test -s conftest.$ac_objext' |
| 20805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20806 | (eval $ac_try) 2>&5 |
| 20807 | ac_status=$? |
| 20808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20809 | (exit $ac_status); }; }; then |
| 20810 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
| 20811 | else |
| 20812 | echo "$as_me: failed program was:" >&5 |
| 20813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20814 | |
| 20815 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
| 20816 | |
| 20817 | fi |
| 20818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20819 | fi |
| 20820 | |
| 20821 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
| 20822 | |
| 20823 | cat >>confdefs.h <<\_ACEOF |
| 20824 | #define HAVE_PRFPREGSET_T 1 |
| 20825 | _ACEOF |
| 20826 | |
| 20827 | fi |
| 20828 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
| 20829 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 |
| 20830 | |
| 20831 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
| 20832 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 |
| 20833 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
| 20834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20835 | else |
| 20836 | cat >conftest.$ac_ext <<_ACEOF |
| 20837 | /* confdefs.h. */ |
| 20838 | _ACEOF |
| 20839 | cat confdefs.h >>conftest.$ac_ext |
| 20840 | cat >>conftest.$ac_ext <<_ACEOF |
| 20841 | /* end confdefs.h. */ |
| 20842 | |
| 20843 | #define _SYSCALL32 |
| 20844 | #include <sys/procfs.h> |
| 20845 | int |
| 20846 | main () |
| 20847 | { |
| 20848 | prgregset32_t avar |
| 20849 | ; |
| 20850 | return 0; |
| 20851 | } |
| 20852 | _ACEOF |
| 20853 | rm -f conftest.$ac_objext |
| 20854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20855 | (eval $ac_compile) 2>conftest.er1 |
| 20856 | ac_status=$? |
| 20857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20858 | rm -f conftest.er1 |
| 20859 | cat conftest.err >&5 |
| 20860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20861 | (exit $ac_status); } && |
| 20862 | { ac_try='test -z "$ac_c_werror_flag" |
| 20863 | || test ! -s conftest.err' |
| 20864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20865 | (eval $ac_try) 2>&5 |
| 20866 | ac_status=$? |
| 20867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20868 | (exit $ac_status); }; } && |
| 20869 | { ac_try='test -s conftest.$ac_objext' |
| 20870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20871 | (eval $ac_try) 2>&5 |
| 20872 | ac_status=$? |
| 20873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20874 | (exit $ac_status); }; }; then |
| 20875 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
| 20876 | else |
| 20877 | echo "$as_me: failed program was:" >&5 |
| 20878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20879 | |
| 20880 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
| 20881 | |
| 20882 | fi |
| 20883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20884 | fi |
| 20885 | |
| 20886 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
| 20887 | |
| 20888 | cat >>confdefs.h <<\_ACEOF |
| 20889 | #define HAVE_PRGREGSET32_T 1 |
| 20890 | _ACEOF |
| 20891 | |
| 20892 | fi |
| 20893 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
| 20894 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 |
| 20895 | |
| 20896 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
| 20897 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 |
| 20898 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
| 20899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20900 | else |
| 20901 | cat >conftest.$ac_ext <<_ACEOF |
| 20902 | /* confdefs.h. */ |
| 20903 | _ACEOF |
| 20904 | cat confdefs.h >>conftest.$ac_ext |
| 20905 | cat >>conftest.$ac_ext <<_ACEOF |
| 20906 | /* end confdefs.h. */ |
| 20907 | |
| 20908 | #define _SYSCALL32 |
| 20909 | #include <sys/procfs.h> |
| 20910 | int |
| 20911 | main () |
| 20912 | { |
| 20913 | prfpregset32_t avar |
| 20914 | ; |
| 20915 | return 0; |
| 20916 | } |
| 20917 | _ACEOF |
| 20918 | rm -f conftest.$ac_objext |
| 20919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20920 | (eval $ac_compile) 2>conftest.er1 |
| 20921 | ac_status=$? |
| 20922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20923 | rm -f conftest.er1 |
| 20924 | cat conftest.err >&5 |
| 20925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20926 | (exit $ac_status); } && |
| 20927 | { ac_try='test -z "$ac_c_werror_flag" |
| 20928 | || test ! -s conftest.err' |
| 20929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20930 | (eval $ac_try) 2>&5 |
| 20931 | ac_status=$? |
| 20932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20933 | (exit $ac_status); }; } && |
| 20934 | { ac_try='test -s conftest.$ac_objext' |
| 20935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20936 | (eval $ac_try) 2>&5 |
| 20937 | ac_status=$? |
| 20938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20939 | (exit $ac_status); }; }; then |
| 20940 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
| 20941 | else |
| 20942 | echo "$as_me: failed program was:" >&5 |
| 20943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20944 | |
| 20945 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
| 20946 | |
| 20947 | fi |
| 20948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20949 | fi |
| 20950 | |
| 20951 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
| 20952 | |
| 20953 | cat >>confdefs.h <<\_ACEOF |
| 20954 | #define HAVE_PRFPREGSET32_T 1 |
| 20955 | _ACEOF |
| 20956 | |
| 20957 | fi |
| 20958 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
| 20959 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 |
| 20960 | |
| 20961 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
| 20962 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 |
| 20963 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
| 20964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20965 | else |
| 20966 | cat >conftest.$ac_ext <<_ACEOF |
| 20967 | /* confdefs.h. */ |
| 20968 | _ACEOF |
| 20969 | cat confdefs.h >>conftest.$ac_ext |
| 20970 | cat >>conftest.$ac_ext <<_ACEOF |
| 20971 | /* end confdefs.h. */ |
| 20972 | |
| 20973 | #define _SYSCALL32 |
| 20974 | #include <sys/procfs.h> |
| 20975 | int |
| 20976 | main () |
| 20977 | { |
| 20978 | lwpid_t avar |
| 20979 | ; |
| 20980 | return 0; |
| 20981 | } |
| 20982 | _ACEOF |
| 20983 | rm -f conftest.$ac_objext |
| 20984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20985 | (eval $ac_compile) 2>conftest.er1 |
| 20986 | ac_status=$? |
| 20987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20988 | rm -f conftest.er1 |
| 20989 | cat conftest.err >&5 |
| 20990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20991 | (exit $ac_status); } && |
| 20992 | { ac_try='test -z "$ac_c_werror_flag" |
| 20993 | || test ! -s conftest.err' |
| 20994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20995 | (eval $ac_try) 2>&5 |
| 20996 | ac_status=$? |
| 20997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20998 | (exit $ac_status); }; } && |
| 20999 | { ac_try='test -s conftest.$ac_objext' |
| 21000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21001 | (eval $ac_try) 2>&5 |
| 21002 | ac_status=$? |
| 21003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21004 | (exit $ac_status); }; }; then |
| 21005 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
| 21006 | else |
| 21007 | echo "$as_me: failed program was:" >&5 |
| 21008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21009 | |
| 21010 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
| 21011 | |
| 21012 | fi |
| 21013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21014 | fi |
| 21015 | |
| 21016 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
| 21017 | |
| 21018 | cat >>confdefs.h <<\_ACEOF |
| 21019 | #define HAVE_LWPID_T 1 |
| 21020 | _ACEOF |
| 21021 | |
| 21022 | fi |
| 21023 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
| 21024 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 |
| 21025 | |
| 21026 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
| 21027 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 |
| 21028 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
| 21029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21030 | else |
| 21031 | cat >conftest.$ac_ext <<_ACEOF |
| 21032 | /* confdefs.h. */ |
| 21033 | _ACEOF |
| 21034 | cat confdefs.h >>conftest.$ac_ext |
| 21035 | cat >>conftest.$ac_ext <<_ACEOF |
| 21036 | /* end confdefs.h. */ |
| 21037 | |
| 21038 | #define _SYSCALL32 |
| 21039 | #include <sys/procfs.h> |
| 21040 | int |
| 21041 | main () |
| 21042 | { |
| 21043 | psaddr_t avar |
| 21044 | ; |
| 21045 | return 0; |
| 21046 | } |
| 21047 | _ACEOF |
| 21048 | rm -f conftest.$ac_objext |
| 21049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21050 | (eval $ac_compile) 2>conftest.er1 |
| 21051 | ac_status=$? |
| 21052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21053 | rm -f conftest.er1 |
| 21054 | cat conftest.err >&5 |
| 21055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21056 | (exit $ac_status); } && |
| 21057 | { ac_try='test -z "$ac_c_werror_flag" |
| 21058 | || test ! -s conftest.err' |
| 21059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21060 | (eval $ac_try) 2>&5 |
| 21061 | ac_status=$? |
| 21062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21063 | (exit $ac_status); }; } && |
| 21064 | { ac_try='test -s conftest.$ac_objext' |
| 21065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21066 | (eval $ac_try) 2>&5 |
| 21067 | ac_status=$? |
| 21068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21069 | (exit $ac_status); }; }; then |
| 21070 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
| 21071 | else |
| 21072 | echo "$as_me: failed program was:" >&5 |
| 21073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21074 | |
| 21075 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
| 21076 | |
| 21077 | fi |
| 21078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21079 | fi |
| 21080 | |
| 21081 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
| 21082 | |
| 21083 | cat >>confdefs.h <<\_ACEOF |
| 21084 | #define HAVE_PSADDR_T 1 |
| 21085 | _ACEOF |
| 21086 | |
| 21087 | fi |
| 21088 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
| 21089 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 |
| 21090 | |
| 21091 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
| 21092 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 |
| 21093 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
| 21094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21095 | else |
| 21096 | cat >conftest.$ac_ext <<_ACEOF |
| 21097 | /* confdefs.h. */ |
| 21098 | _ACEOF |
| 21099 | cat confdefs.h >>conftest.$ac_ext |
| 21100 | cat >>conftest.$ac_ext <<_ACEOF |
| 21101 | /* end confdefs.h. */ |
| 21102 | |
| 21103 | #define _SYSCALL32 |
| 21104 | #include <sys/procfs.h> |
| 21105 | int |
| 21106 | main () |
| 21107 | { |
| 21108 | prsysent_t avar |
| 21109 | ; |
| 21110 | return 0; |
| 21111 | } |
| 21112 | _ACEOF |
| 21113 | rm -f conftest.$ac_objext |
| 21114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21115 | (eval $ac_compile) 2>conftest.er1 |
| 21116 | ac_status=$? |
| 21117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21118 | rm -f conftest.er1 |
| 21119 | cat conftest.err >&5 |
| 21120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21121 | (exit $ac_status); } && |
| 21122 | { ac_try='test -z "$ac_c_werror_flag" |
| 21123 | || test ! -s conftest.err' |
| 21124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21125 | (eval $ac_try) 2>&5 |
| 21126 | ac_status=$? |
| 21127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21128 | (exit $ac_status); }; } && |
| 21129 | { ac_try='test -s conftest.$ac_objext' |
| 21130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21131 | (eval $ac_try) 2>&5 |
| 21132 | ac_status=$? |
| 21133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21134 | (exit $ac_status); }; }; then |
| 21135 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
| 21136 | else |
| 21137 | echo "$as_me: failed program was:" >&5 |
| 21138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21139 | |
| 21140 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
| 21141 | |
| 21142 | fi |
| 21143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21144 | fi |
| 21145 | |
| 21146 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
| 21147 | |
| 21148 | cat >>confdefs.h <<\_ACEOF |
| 21149 | #define HAVE_PRSYSENT_T 1 |
| 21150 | _ACEOF |
| 21151 | |
| 21152 | fi |
| 21153 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
| 21154 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 |
| 21155 | |
| 21156 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
| 21157 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 |
| 21158 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
| 21159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21160 | else |
| 21161 | cat >conftest.$ac_ext <<_ACEOF |
| 21162 | /* confdefs.h. */ |
| 21163 | _ACEOF |
| 21164 | cat confdefs.h >>conftest.$ac_ext |
| 21165 | cat >>conftest.$ac_ext <<_ACEOF |
| 21166 | /* end confdefs.h. */ |
| 21167 | |
| 21168 | #define _SYSCALL32 |
| 21169 | #include <sys/procfs.h> |
| 21170 | int |
| 21171 | main () |
| 21172 | { |
| 21173 | pr_sigset_t avar |
| 21174 | ; |
| 21175 | return 0; |
| 21176 | } |
| 21177 | _ACEOF |
| 21178 | rm -f conftest.$ac_objext |
| 21179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21180 | (eval $ac_compile) 2>conftest.er1 |
| 21181 | ac_status=$? |
| 21182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21183 | rm -f conftest.er1 |
| 21184 | cat conftest.err >&5 |
| 21185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21186 | (exit $ac_status); } && |
| 21187 | { ac_try='test -z "$ac_c_werror_flag" |
| 21188 | || test ! -s conftest.err' |
| 21189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21190 | (eval $ac_try) 2>&5 |
| 21191 | ac_status=$? |
| 21192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21193 | (exit $ac_status); }; } && |
| 21194 | { ac_try='test -s conftest.$ac_objext' |
| 21195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21196 | (eval $ac_try) 2>&5 |
| 21197 | ac_status=$? |
| 21198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21199 | (exit $ac_status); }; }; then |
| 21200 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
| 21201 | else |
| 21202 | echo "$as_me: failed program was:" >&5 |
| 21203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21204 | |
| 21205 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
| 21206 | |
| 21207 | fi |
| 21208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21209 | fi |
| 21210 | |
| 21211 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
| 21212 | |
| 21213 | cat >>confdefs.h <<\_ACEOF |
| 21214 | #define HAVE_PR_SIGSET_T 1 |
| 21215 | _ACEOF |
| 21216 | |
| 21217 | fi |
| 21218 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
| 21219 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 |
| 21220 | |
| 21221 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
| 21222 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 |
| 21223 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
| 21224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21225 | else |
| 21226 | cat >conftest.$ac_ext <<_ACEOF |
| 21227 | /* confdefs.h. */ |
| 21228 | _ACEOF |
| 21229 | cat confdefs.h >>conftest.$ac_ext |
| 21230 | cat >>conftest.$ac_ext <<_ACEOF |
| 21231 | /* end confdefs.h. */ |
| 21232 | |
| 21233 | #define _SYSCALL32 |
| 21234 | #include <sys/procfs.h> |
| 21235 | int |
| 21236 | main () |
| 21237 | { |
| 21238 | pr_sigaction64_t avar |
| 21239 | ; |
| 21240 | return 0; |
| 21241 | } |
| 21242 | _ACEOF |
| 21243 | rm -f conftest.$ac_objext |
| 21244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21245 | (eval $ac_compile) 2>conftest.er1 |
| 21246 | ac_status=$? |
| 21247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21248 | rm -f conftest.er1 |
| 21249 | cat conftest.err >&5 |
| 21250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21251 | (exit $ac_status); } && |
| 21252 | { ac_try='test -z "$ac_c_werror_flag" |
| 21253 | || test ! -s conftest.err' |
| 21254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21255 | (eval $ac_try) 2>&5 |
| 21256 | ac_status=$? |
| 21257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21258 | (exit $ac_status); }; } && |
| 21259 | { ac_try='test -s conftest.$ac_objext' |
| 21260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21261 | (eval $ac_try) 2>&5 |
| 21262 | ac_status=$? |
| 21263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21264 | (exit $ac_status); }; }; then |
| 21265 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
| 21266 | else |
| 21267 | echo "$as_me: failed program was:" >&5 |
| 21268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21269 | |
| 21270 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
| 21271 | |
| 21272 | fi |
| 21273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21274 | fi |
| 21275 | |
| 21276 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
| 21277 | |
| 21278 | cat >>confdefs.h <<\_ACEOF |
| 21279 | #define HAVE_PR_SIGACTION64_T 1 |
| 21280 | _ACEOF |
| 21281 | |
| 21282 | fi |
| 21283 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
| 21284 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 |
| 21285 | |
| 21286 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
| 21287 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 |
| 21288 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
| 21289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21290 | else |
| 21291 | cat >conftest.$ac_ext <<_ACEOF |
| 21292 | /* confdefs.h. */ |
| 21293 | _ACEOF |
| 21294 | cat confdefs.h >>conftest.$ac_ext |
| 21295 | cat >>conftest.$ac_ext <<_ACEOF |
| 21296 | /* end confdefs.h. */ |
| 21297 | |
| 21298 | #define _SYSCALL32 |
| 21299 | #include <sys/procfs.h> |
| 21300 | int |
| 21301 | main () |
| 21302 | { |
| 21303 | pr_siginfo64_t avar |
| 21304 | ; |
| 21305 | return 0; |
| 21306 | } |
| 21307 | _ACEOF |
| 21308 | rm -f conftest.$ac_objext |
| 21309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21310 | (eval $ac_compile) 2>conftest.er1 |
| 21311 | ac_status=$? |
| 21312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21313 | rm -f conftest.er1 |
| 21314 | cat conftest.err >&5 |
| 21315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21316 | (exit $ac_status); } && |
| 21317 | { ac_try='test -z "$ac_c_werror_flag" |
| 21318 | || test ! -s conftest.err' |
| 21319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21320 | (eval $ac_try) 2>&5 |
| 21321 | ac_status=$? |
| 21322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21323 | (exit $ac_status); }; } && |
| 21324 | { ac_try='test -s conftest.$ac_objext' |
| 21325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21326 | (eval $ac_try) 2>&5 |
| 21327 | ac_status=$? |
| 21328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21329 | (exit $ac_status); }; }; then |
| 21330 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
| 21331 | else |
| 21332 | echo "$as_me: failed program was:" >&5 |
| 21333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21334 | |
| 21335 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
| 21336 | |
| 21337 | fi |
| 21338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21339 | fi |
| 21340 | |
| 21341 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
| 21342 | |
| 21343 | cat >>confdefs.h <<\_ACEOF |
| 21344 | #define HAVE_PR_SIGINFO64_T 1 |
| 21345 | _ACEOF |
| 21346 | |
| 21347 | fi |
| 21348 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
| 21349 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 |
| 21350 | |
| 21351 | |
| 21352 | |
| 21353 | |
| 21354 | |
| 21355 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
| 21356 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
| 21357 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 |
| 21358 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
| 21359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21360 | else |
| 21361 | if test "$cross_compiling" = yes; then |
| 21362 | gdb_cv_prfpregset_t_broken=yes |
| 21363 | else |
| 21364 | cat >conftest.$ac_ext <<_ACEOF |
| 21365 | /* confdefs.h. */ |
| 21366 | _ACEOF |
| 21367 | cat confdefs.h >>conftest.$ac_ext |
| 21368 | cat >>conftest.$ac_ext <<_ACEOF |
| 21369 | /* end confdefs.h. */ |
| 21370 | #include <sys/procfs.h> |
| 21371 | int main () |
| 21372 | { |
| 21373 | if (sizeof (prfpregset_t) == sizeof (void *)) |
| 21374 | return 1; |
| 21375 | return 0; |
| 21376 | } |
| 21377 | _ACEOF |
| 21378 | rm -f conftest$ac_exeext |
| 21379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21380 | (eval $ac_link) 2>&5 |
| 21381 | ac_status=$? |
| 21382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21383 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21385 | (eval $ac_try) 2>&5 |
| 21386 | ac_status=$? |
| 21387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21388 | (exit $ac_status); }; }; then |
| 21389 | gdb_cv_prfpregset_t_broken=no |
| 21390 | else |
| 21391 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21392 | echo "$as_me: failed program was:" >&5 |
| 21393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21394 | |
| 21395 | ( exit $ac_status ) |
| 21396 | gdb_cv_prfpregset_t_broken=yes |
| 21397 | fi |
| 21398 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21399 | fi |
| 21400 | fi |
| 21401 | |
| 21402 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
| 21403 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 |
| 21404 | if test $gdb_cv_prfpregset_t_broken = yes; then |
| 21405 | |
| 21406 | cat >>confdefs.h <<\_ACEOF |
| 21407 | #define PRFPREGSET_T_BROKEN 1 |
| 21408 | _ACEOF |
| 21409 | |
| 21410 | fi |
| 21411 | fi |
| 21412 | |
| 21413 | |
| 21414 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
| 21415 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 |
| 21416 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
| 21417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21418 | else |
| 21419 | cat >conftest.$ac_ext <<_ACEOF |
| 21420 | /* confdefs.h. */ |
| 21421 | _ACEOF |
| 21422 | cat confdefs.h >>conftest.$ac_ext |
| 21423 | cat >>conftest.$ac_ext <<_ACEOF |
| 21424 | /* end confdefs.h. */ |
| 21425 | #include <unistd.h> |
| 21426 | #include <sys/types.h> |
| 21427 | #include <sys/procfs.h> |
| 21428 | |
| 21429 | int |
| 21430 | main () |
| 21431 | { |
| 21432 | |
| 21433 | int dummy;; |
| 21434 | dummy = ioctl(0, PIOCSET, &dummy); |
| 21435 | |
| 21436 | ; |
| 21437 | return 0; |
| 21438 | } |
| 21439 | _ACEOF |
| 21440 | rm -f conftest.$ac_objext |
| 21441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21442 | (eval $ac_compile) 2>conftest.er1 |
| 21443 | ac_status=$? |
| 21444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21445 | rm -f conftest.er1 |
| 21446 | cat conftest.err >&5 |
| 21447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21448 | (exit $ac_status); } && |
| 21449 | { ac_try='test -z "$ac_c_werror_flag" |
| 21450 | || test ! -s conftest.err' |
| 21451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21452 | (eval $ac_try) 2>&5 |
| 21453 | ac_status=$? |
| 21454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21455 | (exit $ac_status); }; } && |
| 21456 | { ac_try='test -s conftest.$ac_objext' |
| 21457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21458 | (eval $ac_try) 2>&5 |
| 21459 | ac_status=$? |
| 21460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21461 | (exit $ac_status); }; }; then |
| 21462 | gdb_cv_have_procfs_piocset=yes |
| 21463 | else |
| 21464 | echo "$as_me: failed program was:" >&5 |
| 21465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21466 | |
| 21467 | gdb_cv_have_procfs_piocset=no |
| 21468 | fi |
| 21469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21470 | fi |
| 21471 | |
| 21472 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
| 21473 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 |
| 21474 | if test $gdb_cv_have_procfs_piocset = yes; then |
| 21475 | |
| 21476 | cat >>confdefs.h <<\_ACEOF |
| 21477 | #define HAVE_PROCFS_PIOCSET 1 |
| 21478 | _ACEOF |
| 21479 | |
| 21480 | fi |
| 21481 | fi |
| 21482 | |
| 21483 | if test ${host} = ${target} ; then |
| 21484 | |
| 21485 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
| 21486 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 |
| 21487 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
| 21488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21489 | else |
| 21490 | cat >conftest.$ac_ext <<_ACEOF |
| 21491 | /* confdefs.h. */ |
| 21492 | _ACEOF |
| 21493 | cat confdefs.h >>conftest.$ac_ext |
| 21494 | cat >>conftest.$ac_ext <<_ACEOF |
| 21495 | /* end confdefs.h. */ |
| 21496 | #include <link.h> |
| 21497 | int |
| 21498 | main () |
| 21499 | { |
| 21500 | struct link_map lm; (void) lm.l_addr; |
| 21501 | ; |
| 21502 | return 0; |
| 21503 | } |
| 21504 | _ACEOF |
| 21505 | rm -f conftest.$ac_objext |
| 21506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21507 | (eval $ac_compile) 2>conftest.er1 |
| 21508 | ac_status=$? |
| 21509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21510 | rm -f conftest.er1 |
| 21511 | cat conftest.err >&5 |
| 21512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21513 | (exit $ac_status); } && |
| 21514 | { ac_try='test -z "$ac_c_werror_flag" |
| 21515 | || test ! -s conftest.err' |
| 21516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21517 | (eval $ac_try) 2>&5 |
| 21518 | ac_status=$? |
| 21519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21520 | (exit $ac_status); }; } && |
| 21521 | { ac_try='test -s conftest.$ac_objext' |
| 21522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21523 | (eval $ac_try) 2>&5 |
| 21524 | ac_status=$? |
| 21525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21526 | (exit $ac_status); }; }; then |
| 21527 | gdb_cv_have_struct_link_map_with_l_members=yes |
| 21528 | else |
| 21529 | echo "$as_me: failed program was:" >&5 |
| 21530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21531 | |
| 21532 | gdb_cv_have_struct_link_map_with_l_members=no |
| 21533 | fi |
| 21534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21535 | fi |
| 21536 | |
| 21537 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
| 21538 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 |
| 21539 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
| 21540 | |
| 21541 | cat >>confdefs.h <<\_ACEOF |
| 21542 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
| 21543 | _ACEOF |
| 21544 | |
| 21545 | fi |
| 21546 | |
| 21547 | |
| 21548 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
| 21549 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 |
| 21550 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
| 21551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21552 | else |
| 21553 | cat >conftest.$ac_ext <<_ACEOF |
| 21554 | /* confdefs.h. */ |
| 21555 | _ACEOF |
| 21556 | cat confdefs.h >>conftest.$ac_ext |
| 21557 | cat >>conftest.$ac_ext <<_ACEOF |
| 21558 | /* end confdefs.h. */ |
| 21559 | #include <sys/types.h> |
| 21560 | #include <link.h> |
| 21561 | int |
| 21562 | main () |
| 21563 | { |
| 21564 | struct link_map lm; (void) lm.lm_addr; |
| 21565 | ; |
| 21566 | return 0; |
| 21567 | } |
| 21568 | _ACEOF |
| 21569 | rm -f conftest.$ac_objext |
| 21570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21571 | (eval $ac_compile) 2>conftest.er1 |
| 21572 | ac_status=$? |
| 21573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21574 | rm -f conftest.er1 |
| 21575 | cat conftest.err >&5 |
| 21576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21577 | (exit $ac_status); } && |
| 21578 | { ac_try='test -z "$ac_c_werror_flag" |
| 21579 | || test ! -s conftest.err' |
| 21580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21581 | (eval $ac_try) 2>&5 |
| 21582 | ac_status=$? |
| 21583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21584 | (exit $ac_status); }; } && |
| 21585 | { ac_try='test -s conftest.$ac_objext' |
| 21586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21587 | (eval $ac_try) 2>&5 |
| 21588 | ac_status=$? |
| 21589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21590 | (exit $ac_status); }; }; then |
| 21591 | gdb_cv_have_struct_link_map_with_lm_members=yes |
| 21592 | else |
| 21593 | echo "$as_me: failed program was:" >&5 |
| 21594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21595 | |
| 21596 | gdb_cv_have_struct_link_map_with_lm_members=no |
| 21597 | fi |
| 21598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21599 | fi |
| 21600 | |
| 21601 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
| 21602 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 |
| 21603 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
| 21604 | |
| 21605 | cat >>confdefs.h <<\_ACEOF |
| 21606 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
| 21607 | _ACEOF |
| 21608 | |
| 21609 | fi |
| 21610 | |
| 21611 | |
| 21612 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
| 21613 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 |
| 21614 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
| 21615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21616 | else |
| 21617 | cat >conftest.$ac_ext <<_ACEOF |
| 21618 | /* confdefs.h. */ |
| 21619 | _ACEOF |
| 21620 | cat confdefs.h >>conftest.$ac_ext |
| 21621 | cat >>conftest.$ac_ext <<_ACEOF |
| 21622 | /* end confdefs.h. */ |
| 21623 | #include <sys/types.h> |
| 21624 | #ifdef HAVE_NLIST_H |
| 21625 | #include <nlist.h> |
| 21626 | #endif |
| 21627 | #include <link.h> |
| 21628 | int |
| 21629 | main () |
| 21630 | { |
| 21631 | struct so_map lm; (void) lm.som_addr; |
| 21632 | ; |
| 21633 | return 0; |
| 21634 | } |
| 21635 | _ACEOF |
| 21636 | rm -f conftest.$ac_objext |
| 21637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21638 | (eval $ac_compile) 2>conftest.er1 |
| 21639 | ac_status=$? |
| 21640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21641 | rm -f conftest.er1 |
| 21642 | cat conftest.err >&5 |
| 21643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21644 | (exit $ac_status); } && |
| 21645 | { ac_try='test -z "$ac_c_werror_flag" |
| 21646 | || test ! -s conftest.err' |
| 21647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21648 | (eval $ac_try) 2>&5 |
| 21649 | ac_status=$? |
| 21650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21651 | (exit $ac_status); }; } && |
| 21652 | { ac_try='test -s conftest.$ac_objext' |
| 21653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21654 | (eval $ac_try) 2>&5 |
| 21655 | ac_status=$? |
| 21656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21657 | (exit $ac_status); }; }; then |
| 21658 | gdb_cv_have_struct_so_map_with_som_members=yes |
| 21659 | else |
| 21660 | echo "$as_me: failed program was:" >&5 |
| 21661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21662 | |
| 21663 | gdb_cv_have_struct_so_map_with_som_members=no |
| 21664 | fi |
| 21665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21666 | fi |
| 21667 | |
| 21668 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
| 21669 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 |
| 21670 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
| 21671 | |
| 21672 | cat >>confdefs.h <<\_ACEOF |
| 21673 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
| 21674 | _ACEOF |
| 21675 | |
| 21676 | fi |
| 21677 | |
| 21678 | |
| 21679 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
| 21680 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 |
| 21681 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
| 21682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21683 | else |
| 21684 | cat >conftest.$ac_ext <<_ACEOF |
| 21685 | /* confdefs.h. */ |
| 21686 | _ACEOF |
| 21687 | cat confdefs.h >>conftest.$ac_ext |
| 21688 | cat >>conftest.$ac_ext <<_ACEOF |
| 21689 | /* end confdefs.h. */ |
| 21690 | #define _SYSCALL32 |
| 21691 | #include <sys/link.h> |
| 21692 | int |
| 21693 | main () |
| 21694 | { |
| 21695 | struct link_map32 l; |
| 21696 | ; |
| 21697 | return 0; |
| 21698 | } |
| 21699 | _ACEOF |
| 21700 | rm -f conftest.$ac_objext |
| 21701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21702 | (eval $ac_compile) 2>conftest.er1 |
| 21703 | ac_status=$? |
| 21704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21705 | rm -f conftest.er1 |
| 21706 | cat conftest.err >&5 |
| 21707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21708 | (exit $ac_status); } && |
| 21709 | { ac_try='test -z "$ac_c_werror_flag" |
| 21710 | || test ! -s conftest.err' |
| 21711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21712 | (eval $ac_try) 2>&5 |
| 21713 | ac_status=$? |
| 21714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21715 | (exit $ac_status); }; } && |
| 21716 | { ac_try='test -s conftest.$ac_objext' |
| 21717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21718 | (eval $ac_try) 2>&5 |
| 21719 | ac_status=$? |
| 21720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21721 | (exit $ac_status); }; }; then |
| 21722 | gdb_cv_have_struct_link_map32=yes |
| 21723 | else |
| 21724 | echo "$as_me: failed program was:" >&5 |
| 21725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21726 | |
| 21727 | gdb_cv_have_struct_link_map32=no |
| 21728 | fi |
| 21729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21730 | fi |
| 21731 | |
| 21732 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
| 21733 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 |
| 21734 | if test $gdb_cv_have_struct_link_map32 = yes; then |
| 21735 | |
| 21736 | cat >>confdefs.h <<\_ACEOF |
| 21737 | #define HAVE_STRUCT_LINK_MAP32 1 |
| 21738 | _ACEOF |
| 21739 | |
| 21740 | |
| 21741 | cat >>confdefs.h <<\_ACEOF |
| 21742 | #define _SYSCALL32 1 |
| 21743 | _ACEOF |
| 21744 | |
| 21745 | fi |
| 21746 | fi |
| 21747 | |
| 21748 | # Check if the compiler supports the `long long' type. |
| 21749 | |
| 21750 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
| 21751 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 |
| 21752 | if test "${gdb_cv_c_long_long+set}" = set; then |
| 21753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21754 | else |
| 21755 | cat >conftest.$ac_ext <<_ACEOF |
| 21756 | /* confdefs.h. */ |
| 21757 | _ACEOF |
| 21758 | cat confdefs.h >>conftest.$ac_ext |
| 21759 | cat >>conftest.$ac_ext <<_ACEOF |
| 21760 | /* end confdefs.h. */ |
| 21761 | extern long long foo; |
| 21762 | int |
| 21763 | main () |
| 21764 | { |
| 21765 | switch (foo & 2) { case 0: return 1; } |
| 21766 | ; |
| 21767 | return 0; |
| 21768 | } |
| 21769 | _ACEOF |
| 21770 | rm -f conftest.$ac_objext |
| 21771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21772 | (eval $ac_compile) 2>conftest.er1 |
| 21773 | ac_status=$? |
| 21774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21775 | rm -f conftest.er1 |
| 21776 | cat conftest.err >&5 |
| 21777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21778 | (exit $ac_status); } && |
| 21779 | { ac_try='test -z "$ac_c_werror_flag" |
| 21780 | || test ! -s conftest.err' |
| 21781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21782 | (eval $ac_try) 2>&5 |
| 21783 | ac_status=$? |
| 21784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21785 | (exit $ac_status); }; } && |
| 21786 | { ac_try='test -s conftest.$ac_objext' |
| 21787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21788 | (eval $ac_try) 2>&5 |
| 21789 | ac_status=$? |
| 21790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21791 | (exit $ac_status); }; }; then |
| 21792 | gdb_cv_c_long_long=yes |
| 21793 | else |
| 21794 | echo "$as_me: failed program was:" >&5 |
| 21795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21796 | |
| 21797 | gdb_cv_c_long_long=no |
| 21798 | fi |
| 21799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21800 | fi |
| 21801 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
| 21802 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 |
| 21803 | if test $gdb_cv_c_long_long = yes; then |
| 21804 | |
| 21805 | cat >>confdefs.h <<\_ACEOF |
| 21806 | #define CC_HAS_LONG_LONG 1 |
| 21807 | _ACEOF |
| 21808 | |
| 21809 | fi |
| 21810 | |
| 21811 | # Check if the compiler and runtime support printing long longs. |
| 21812 | |
| 21813 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
| 21814 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 |
| 21815 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
| 21816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21817 | else |
| 21818 | if test "$cross_compiling" = yes; then |
| 21819 | gdb_cv_printf_has_long_long=no |
| 21820 | else |
| 21821 | cat >conftest.$ac_ext <<_ACEOF |
| 21822 | /* confdefs.h. */ |
| 21823 | _ACEOF |
| 21824 | cat confdefs.h >>conftest.$ac_ext |
| 21825 | cat >>conftest.$ac_ext <<_ACEOF |
| 21826 | /* end confdefs.h. */ |
| 21827 | $ac_includes_default |
| 21828 | int |
| 21829 | main () |
| 21830 | { |
| 21831 | char buf[32]; |
| 21832 | long long l = 0; |
| 21833 | l = (l << 16) + 0x0123; |
| 21834 | l = (l << 16) + 0x4567; |
| 21835 | l = (l << 16) + 0x89ab; |
| 21836 | l = (l << 16) + 0xcdef; |
| 21837 | sprintf (buf, "0x%016llx", l); |
| 21838 | return (strcmp ("0x0123456789abcdef", buf)); |
| 21839 | ; |
| 21840 | return 0; |
| 21841 | } |
| 21842 | _ACEOF |
| 21843 | rm -f conftest$ac_exeext |
| 21844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21845 | (eval $ac_link) 2>&5 |
| 21846 | ac_status=$? |
| 21847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21848 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21850 | (eval $ac_try) 2>&5 |
| 21851 | ac_status=$? |
| 21852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21853 | (exit $ac_status); }; }; then |
| 21854 | gdb_cv_printf_has_long_long=yes |
| 21855 | else |
| 21856 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21857 | echo "$as_me: failed program was:" >&5 |
| 21858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21859 | |
| 21860 | ( exit $ac_status ) |
| 21861 | gdb_cv_printf_has_long_long=no |
| 21862 | fi |
| 21863 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21864 | fi |
| 21865 | fi |
| 21866 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
| 21867 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 |
| 21868 | if test $gdb_cv_printf_has_long_long = yes; then |
| 21869 | |
| 21870 | cat >>confdefs.h <<\_ACEOF |
| 21871 | #define PRINTF_HAS_LONG_LONG 1 |
| 21872 | _ACEOF |
| 21873 | |
| 21874 | fi |
| 21875 | |
| 21876 | # Check if the compiler and runtime support printing decfloats. |
| 21877 | |
| 21878 | echo "$as_me:$LINENO: checking for decfloat support in printf" >&5 |
| 21879 | echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6 |
| 21880 | if test "${gdb_cv_printf_has_decfloat+set}" = set; then |
| 21881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21882 | else |
| 21883 | if test "$cross_compiling" = yes; then |
| 21884 | gdb_cv_printf_has_decfloat=no |
| 21885 | else |
| 21886 | cat >conftest.$ac_ext <<_ACEOF |
| 21887 | /* confdefs.h. */ |
| 21888 | _ACEOF |
| 21889 | cat confdefs.h >>conftest.$ac_ext |
| 21890 | cat >>conftest.$ac_ext <<_ACEOF |
| 21891 | /* end confdefs.h. */ |
| 21892 | $ac_includes_default |
| 21893 | int |
| 21894 | main () |
| 21895 | { |
| 21896 | char buf[64]; |
| 21897 | _Decimal32 d32 = 1.2345df; |
| 21898 | _Decimal64 d64 = 1.2345dd; |
| 21899 | _Decimal128 d128 = 1.2345dl; |
| 21900 | sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128); |
| 21901 | return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf)); |
| 21902 | ; |
| 21903 | return 0; |
| 21904 | } |
| 21905 | _ACEOF |
| 21906 | rm -f conftest$ac_exeext |
| 21907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21908 | (eval $ac_link) 2>&5 |
| 21909 | ac_status=$? |
| 21910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21911 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21913 | (eval $ac_try) 2>&5 |
| 21914 | ac_status=$? |
| 21915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21916 | (exit $ac_status); }; }; then |
| 21917 | gdb_cv_printf_has_decfloat=yes |
| 21918 | else |
| 21919 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21920 | echo "$as_me: failed program was:" >&5 |
| 21921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21922 | |
| 21923 | ( exit $ac_status ) |
| 21924 | gdb_cv_printf_has_decfloat=no |
| 21925 | fi |
| 21926 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21927 | fi |
| 21928 | fi |
| 21929 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5 |
| 21930 | echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6 |
| 21931 | if test $gdb_cv_printf_has_decfloat = yes; then |
| 21932 | |
| 21933 | cat >>confdefs.h <<\_ACEOF |
| 21934 | #define PRINTF_HAS_DECFLOAT 1 |
| 21935 | _ACEOF |
| 21936 | |
| 21937 | fi |
| 21938 | |
| 21939 | # Check if the compiler supports the `long double' type. We can't use |
| 21940 | # AC_C_LONG_DOUBLE because that one does additional checks on the |
| 21941 | # constants defined in <float.h> that fail on some systems, |
| 21942 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. |
| 21943 | |
| 21944 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
| 21945 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 |
| 21946 | if test "${gdb_cv_c_long_double+set}" = set; then |
| 21947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21948 | else |
| 21949 | cat >conftest.$ac_ext <<_ACEOF |
| 21950 | /* confdefs.h. */ |
| 21951 | _ACEOF |
| 21952 | cat confdefs.h >>conftest.$ac_ext |
| 21953 | cat >>conftest.$ac_ext <<_ACEOF |
| 21954 | /* end confdefs.h. */ |
| 21955 | long double foo; |
| 21956 | _ACEOF |
| 21957 | rm -f conftest.$ac_objext |
| 21958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21959 | (eval $ac_compile) 2>conftest.er1 |
| 21960 | ac_status=$? |
| 21961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21962 | rm -f conftest.er1 |
| 21963 | cat conftest.err >&5 |
| 21964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21965 | (exit $ac_status); } && |
| 21966 | { ac_try='test -z "$ac_c_werror_flag" |
| 21967 | || test ! -s conftest.err' |
| 21968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21969 | (eval $ac_try) 2>&5 |
| 21970 | ac_status=$? |
| 21971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21972 | (exit $ac_status); }; } && |
| 21973 | { ac_try='test -s conftest.$ac_objext' |
| 21974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21975 | (eval $ac_try) 2>&5 |
| 21976 | ac_status=$? |
| 21977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21978 | (exit $ac_status); }; }; then |
| 21979 | gdb_cv_c_long_double=yes |
| 21980 | else |
| 21981 | echo "$as_me: failed program was:" >&5 |
| 21982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21983 | |
| 21984 | gdb_cv_c_long_double=no |
| 21985 | fi |
| 21986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21987 | fi |
| 21988 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
| 21989 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 |
| 21990 | if test $gdb_cv_c_long_double = yes; then |
| 21991 | |
| 21992 | cat >>confdefs.h <<\_ACEOF |
| 21993 | #define HAVE_LONG_DOUBLE 1 |
| 21994 | _ACEOF |
| 21995 | |
| 21996 | fi |
| 21997 | |
| 21998 | # Check if the compiler and runtime support printing long doubles. |
| 21999 | |
| 22000 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
| 22001 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 |
| 22002 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
| 22003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22004 | else |
| 22005 | if test "$cross_compiling" = yes; then |
| 22006 | gdb_cv_printf_has_long_double=no |
| 22007 | else |
| 22008 | cat >conftest.$ac_ext <<_ACEOF |
| 22009 | /* confdefs.h. */ |
| 22010 | _ACEOF |
| 22011 | cat confdefs.h >>conftest.$ac_ext |
| 22012 | cat >>conftest.$ac_ext <<_ACEOF |
| 22013 | /* end confdefs.h. */ |
| 22014 | $ac_includes_default |
| 22015 | int |
| 22016 | main () |
| 22017 | { |
| 22018 | char buf[16]; |
| 22019 | long double f = 3.141592653; |
| 22020 | sprintf (buf, "%Lg", f); |
| 22021 | return (strncmp ("3.14159", buf, 7)); |
| 22022 | ; |
| 22023 | return 0; |
| 22024 | } |
| 22025 | _ACEOF |
| 22026 | rm -f conftest$ac_exeext |
| 22027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22028 | (eval $ac_link) 2>&5 |
| 22029 | ac_status=$? |
| 22030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22031 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22033 | (eval $ac_try) 2>&5 |
| 22034 | ac_status=$? |
| 22035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22036 | (exit $ac_status); }; }; then |
| 22037 | gdb_cv_printf_has_long_double=yes |
| 22038 | else |
| 22039 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22040 | echo "$as_me: failed program was:" >&5 |
| 22041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22042 | |
| 22043 | ( exit $ac_status ) |
| 22044 | gdb_cv_printf_has_long_double=no |
| 22045 | fi |
| 22046 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22047 | fi |
| 22048 | fi |
| 22049 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
| 22050 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 |
| 22051 | if test $gdb_cv_printf_has_long_double = yes; then |
| 22052 | |
| 22053 | cat >>confdefs.h <<\_ACEOF |
| 22054 | #define PRINTF_HAS_LONG_DOUBLE 1 |
| 22055 | _ACEOF |
| 22056 | |
| 22057 | fi |
| 22058 | |
| 22059 | # Check if the compiler and runtime support scanning long doubles. |
| 22060 | |
| 22061 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
| 22062 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 |
| 22063 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
| 22064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22065 | else |
| 22066 | if test "$cross_compiling" = yes; then |
| 22067 | gdb_cv_scanf_has_long_double=no |
| 22068 | else |
| 22069 | cat >conftest.$ac_ext <<_ACEOF |
| 22070 | /* confdefs.h. */ |
| 22071 | _ACEOF |
| 22072 | cat confdefs.h >>conftest.$ac_ext |
| 22073 | cat >>conftest.$ac_ext <<_ACEOF |
| 22074 | /* end confdefs.h. */ |
| 22075 | #include <stdio.h> |
| 22076 | int |
| 22077 | main () |
| 22078 | { |
| 22079 | char *buf = "3.141592653"; |
| 22080 | long double f = 0; |
| 22081 | sscanf (buf, "%Lg", &f); |
| 22082 | return !(f > 3.14159 && f < 3.14160); |
| 22083 | ; |
| 22084 | return 0; |
| 22085 | } |
| 22086 | _ACEOF |
| 22087 | rm -f conftest$ac_exeext |
| 22088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22089 | (eval $ac_link) 2>&5 |
| 22090 | ac_status=$? |
| 22091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22092 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22094 | (eval $ac_try) 2>&5 |
| 22095 | ac_status=$? |
| 22096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22097 | (exit $ac_status); }; }; then |
| 22098 | gdb_cv_scanf_has_long_double=yes |
| 22099 | else |
| 22100 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22101 | echo "$as_me: failed program was:" >&5 |
| 22102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22103 | |
| 22104 | ( exit $ac_status ) |
| 22105 | gdb_cv_scanf_has_long_double=no |
| 22106 | fi |
| 22107 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22108 | fi |
| 22109 | fi |
| 22110 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
| 22111 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 |
| 22112 | if test $gdb_cv_scanf_has_long_double = yes; then |
| 22113 | |
| 22114 | cat >>confdefs.h <<\_ACEOF |
| 22115 | #define SCANF_HAS_LONG_DOUBLE 1 |
| 22116 | _ACEOF |
| 22117 | |
| 22118 | fi |
| 22119 | |
| 22120 | case ${host_os} in |
| 22121 | aix*) |
| 22122 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
| 22123 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 |
| 22124 | if test "${gdb_cv_bigtoc+set}" = set; then |
| 22125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22126 | else |
| 22127 | |
| 22128 | SAVE_LDFLAGS=$LDFLAGS |
| 22129 | |
| 22130 | case $GCC in |
| 22131 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; |
| 22132 | *) gdb_cv_bigtoc=-bbigtoc ;; |
| 22133 | esac |
| 22134 | |
| 22135 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc |
| 22136 | cat >conftest.$ac_ext <<_ACEOF |
| 22137 | /* confdefs.h. */ |
| 22138 | _ACEOF |
| 22139 | cat confdefs.h >>conftest.$ac_ext |
| 22140 | cat >>conftest.$ac_ext <<_ACEOF |
| 22141 | /* end confdefs.h. */ |
| 22142 | |
| 22143 | int |
| 22144 | main () |
| 22145 | { |
| 22146 | int i; |
| 22147 | ; |
| 22148 | return 0; |
| 22149 | } |
| 22150 | _ACEOF |
| 22151 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22153 | (eval $ac_link) 2>conftest.er1 |
| 22154 | ac_status=$? |
| 22155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22156 | rm -f conftest.er1 |
| 22157 | cat conftest.err >&5 |
| 22158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22159 | (exit $ac_status); } && |
| 22160 | { ac_try='test -z "$ac_c_werror_flag" |
| 22161 | || test ! -s conftest.err' |
| 22162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22163 | (eval $ac_try) 2>&5 |
| 22164 | ac_status=$? |
| 22165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22166 | (exit $ac_status); }; } && |
| 22167 | { ac_try='test -s conftest$ac_exeext' |
| 22168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22169 | (eval $ac_try) 2>&5 |
| 22170 | ac_status=$? |
| 22171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22172 | (exit $ac_status); }; }; then |
| 22173 | : |
| 22174 | else |
| 22175 | echo "$as_me: failed program was:" >&5 |
| 22176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22177 | |
| 22178 | gdb_cv_bigtoc= |
| 22179 | fi |
| 22180 | rm -f conftest.err conftest.$ac_objext \ |
| 22181 | conftest$ac_exeext conftest.$ac_ext |
| 22182 | LDFLAGS="${SAVE_LDFLAGS}" |
| 22183 | |
| 22184 | fi |
| 22185 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
| 22186 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 |
| 22187 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
| 22188 | ;; |
| 22189 | esac |
| 22190 | |
| 22191 | |
| 22192 | |
| 22193 | if test ${build} = ${host} -a ${host} = ${target} ; then |
| 22194 | case ${host_os} in |
| 22195 | hpux*) |
| 22196 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
| 22197 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 |
| 22198 | if test -f /usr/include/dce/cma_config.h ; then |
| 22199 | if test "$GCC" = "yes" ; then |
| 22200 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22201 | echo "${ECHO_T}yes" >&6 |
| 22202 | |
| 22203 | cat >>confdefs.h <<\_ACEOF |
| 22204 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
| 22205 | _ACEOF |
| 22206 | |
| 22207 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
| 22208 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
| 22209 | else |
| 22210 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
| 22211 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 |
| 22212 | fi |
| 22213 | else |
| 22214 | echo "$as_me:$LINENO: result: no" >&5 |
| 22215 | echo "${ECHO_T}no" >&6 |
| 22216 | fi |
| 22217 | ;; |
| 22218 | solaris*) |
| 22219 | # See if thread_db library is around for Solaris thread debugging. |
| 22220 | # Note that we must explicitly test for version 1 of the library |
| 22221 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have |
| 22222 | # the same API. |
| 22223 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
| 22224 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 |
| 22225 | if test -f /usr/lib/libthread_db.so.1 ; then |
| 22226 | echo "$as_me:$LINENO: result: yes" >&5 |
| 22227 | echo "${ECHO_T}yes" >&6 |
| 22228 | |
| 22229 | cat >>confdefs.h <<\_ACEOF |
| 22230 | #define HAVE_THREAD_DB_LIB 1 |
| 22231 | _ACEOF |
| 22232 | |
| 22233 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
| 22234 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
| 22235 | |
| 22236 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 22237 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 22238 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 22239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22240 | else |
| 22241 | ac_check_lib_save_LIBS=$LIBS |
| 22242 | LIBS="-ldl $LIBS" |
| 22243 | cat >conftest.$ac_ext <<_ACEOF |
| 22244 | /* confdefs.h. */ |
| 22245 | _ACEOF |
| 22246 | cat confdefs.h >>conftest.$ac_ext |
| 22247 | cat >>conftest.$ac_ext <<_ACEOF |
| 22248 | /* end confdefs.h. */ |
| 22249 | |
| 22250 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22251 | #ifdef __cplusplus |
| 22252 | extern "C" |
| 22253 | #endif |
| 22254 | /* We use char because int might match the return type of a gcc2 |
| 22255 | builtin and then its argument prototype would still apply. */ |
| 22256 | char dlopen (); |
| 22257 | int |
| 22258 | main () |
| 22259 | { |
| 22260 | dlopen (); |
| 22261 | ; |
| 22262 | return 0; |
| 22263 | } |
| 22264 | _ACEOF |
| 22265 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22267 | (eval $ac_link) 2>conftest.er1 |
| 22268 | ac_status=$? |
| 22269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22270 | rm -f conftest.er1 |
| 22271 | cat conftest.err >&5 |
| 22272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22273 | (exit $ac_status); } && |
| 22274 | { ac_try='test -z "$ac_c_werror_flag" |
| 22275 | || test ! -s conftest.err' |
| 22276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22277 | (eval $ac_try) 2>&5 |
| 22278 | ac_status=$? |
| 22279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22280 | (exit $ac_status); }; } && |
| 22281 | { ac_try='test -s conftest$ac_exeext' |
| 22282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22283 | (eval $ac_try) 2>&5 |
| 22284 | ac_status=$? |
| 22285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22286 | (exit $ac_status); }; }; then |
| 22287 | ac_cv_lib_dl_dlopen=yes |
| 22288 | else |
| 22289 | echo "$as_me: failed program was:" >&5 |
| 22290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22291 | |
| 22292 | ac_cv_lib_dl_dlopen=no |
| 22293 | fi |
| 22294 | rm -f conftest.err conftest.$ac_objext \ |
| 22295 | conftest$ac_exeext conftest.$ac_ext |
| 22296 | LIBS=$ac_check_lib_save_LIBS |
| 22297 | fi |
| 22298 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 22299 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 22300 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 22301 | cat >>confdefs.h <<_ACEOF |
| 22302 | #define HAVE_LIBDL 1 |
| 22303 | _ACEOF |
| 22304 | |
| 22305 | LIBS="-ldl $LIBS" |
| 22306 | |
| 22307 | fi |
| 22308 | |
| 22309 | if test "$GCC" = "yes" ; then |
| 22310 | # The GNU linker requires the -export-dynamic option to make |
| 22311 | # all symbols visible in the dynamic symbol table. |
| 22312 | hold_ldflags=$LDFLAGS |
| 22313 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
| 22314 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 |
| 22315 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
| 22316 | cat >conftest.$ac_ext <<_ACEOF |
| 22317 | /* confdefs.h. */ |
| 22318 | _ACEOF |
| 22319 | cat confdefs.h >>conftest.$ac_ext |
| 22320 | cat >>conftest.$ac_ext <<_ACEOF |
| 22321 | /* end confdefs.h. */ |
| 22322 | |
| 22323 | int |
| 22324 | main () |
| 22325 | { |
| 22326 | int i; |
| 22327 | ; |
| 22328 | return 0; |
| 22329 | } |
| 22330 | _ACEOF |
| 22331 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22333 | (eval $ac_link) 2>conftest.er1 |
| 22334 | ac_status=$? |
| 22335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22336 | rm -f conftest.er1 |
| 22337 | cat conftest.err >&5 |
| 22338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22339 | (exit $ac_status); } && |
| 22340 | { ac_try='test -z "$ac_c_werror_flag" |
| 22341 | || test ! -s conftest.err' |
| 22342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22343 | (eval $ac_try) 2>&5 |
| 22344 | ac_status=$? |
| 22345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22346 | (exit $ac_status); }; } && |
| 22347 | { ac_try='test -s conftest$ac_exeext' |
| 22348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22349 | (eval $ac_try) 2>&5 |
| 22350 | ac_status=$? |
| 22351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22352 | (exit $ac_status); }; }; then |
| 22353 | found=yes |
| 22354 | else |
| 22355 | echo "$as_me: failed program was:" >&5 |
| 22356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22357 | |
| 22358 | found=no |
| 22359 | fi |
| 22360 | rm -f conftest.err conftest.$ac_objext \ |
| 22361 | conftest$ac_exeext conftest.$ac_ext |
| 22362 | LDFLAGS=$hold_ldflags |
| 22363 | echo "$as_me:$LINENO: result: $found" >&5 |
| 22364 | echo "${ECHO_T}$found" >&6 |
| 22365 | if test $found = yes; then |
| 22366 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" |
| 22367 | fi |
| 22368 | fi |
| 22369 | # Sun randomly tweaked the prototypes in <proc_service.h> |
| 22370 | # at one point. |
| 22371 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
| 22372 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 |
| 22373 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
| 22374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22375 | else |
| 22376 | |
| 22377 | cat >conftest.$ac_ext <<_ACEOF |
| 22378 | /* confdefs.h. */ |
| 22379 | _ACEOF |
| 22380 | cat confdefs.h >>conftest.$ac_ext |
| 22381 | cat >>conftest.$ac_ext <<_ACEOF |
| 22382 | /* end confdefs.h. */ |
| 22383 | |
| 22384 | #include <proc_service.h> |
| 22385 | ps_err_e ps_pdwrite |
| 22386 | (struct ps_prochandle*, psaddr_t, const void*, size_t); |
| 22387 | |
| 22388 | int |
| 22389 | main () |
| 22390 | { |
| 22391 | |
| 22392 | ; |
| 22393 | return 0; |
| 22394 | } |
| 22395 | _ACEOF |
| 22396 | rm -f conftest.$ac_objext |
| 22397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22398 | (eval $ac_compile) 2>conftest.er1 |
| 22399 | ac_status=$? |
| 22400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22401 | rm -f conftest.er1 |
| 22402 | cat conftest.err >&5 |
| 22403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22404 | (exit $ac_status); } && |
| 22405 | { ac_try='test -z "$ac_c_werror_flag" |
| 22406 | || test ! -s conftest.err' |
| 22407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22408 | (eval $ac_try) 2>&5 |
| 22409 | ac_status=$? |
| 22410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22411 | (exit $ac_status); }; } && |
| 22412 | { ac_try='test -s conftest.$ac_objext' |
| 22413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22414 | (eval $ac_try) 2>&5 |
| 22415 | ac_status=$? |
| 22416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22417 | (exit $ac_status); }; }; then |
| 22418 | gdb_cv_proc_service_is_old=no |
| 22419 | else |
| 22420 | echo "$as_me: failed program was:" >&5 |
| 22421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22422 | |
| 22423 | gdb_cv_proc_service_is_old=yes |
| 22424 | fi |
| 22425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22426 | |
| 22427 | fi |
| 22428 | |
| 22429 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
| 22430 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 |
| 22431 | if test $gdb_cv_proc_service_is_old = yes; then |
| 22432 | |
| 22433 | cat >>confdefs.h <<\_ACEOF |
| 22434 | #define PROC_SERVICE_IS_OLD 1 |
| 22435 | _ACEOF |
| 22436 | |
| 22437 | fi |
| 22438 | else |
| 22439 | echo "$as_me:$LINENO: result: no" >&5 |
| 22440 | echo "${ECHO_T}no" >&6 |
| 22441 | fi |
| 22442 | ;; |
| 22443 | aix*) |
| 22444 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
| 22445 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 |
| 22446 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
| 22447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22448 | else |
| 22449 | cat >conftest.$ac_ext <<_ACEOF |
| 22450 | /* confdefs.h. */ |
| 22451 | _ACEOF |
| 22452 | cat confdefs.h >>conftest.$ac_ext |
| 22453 | cat >>conftest.$ac_ext <<_ACEOF |
| 22454 | /* end confdefs.h. */ |
| 22455 | #include <sys/pthdebug.h> |
| 22456 | int |
| 22457 | main () |
| 22458 | { |
| 22459 | #ifndef PTHDB_VERSION_3 |
| 22460 | #error |
| 22461 | #endif |
| 22462 | ; |
| 22463 | return 0; |
| 22464 | } |
| 22465 | _ACEOF |
| 22466 | rm -f conftest.$ac_objext |
| 22467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22468 | (eval $ac_compile) 2>conftest.er1 |
| 22469 | ac_status=$? |
| 22470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22471 | rm -f conftest.er1 |
| 22472 | cat conftest.err >&5 |
| 22473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22474 | (exit $ac_status); } && |
| 22475 | { ac_try='test -z "$ac_c_werror_flag" |
| 22476 | || test ! -s conftest.err' |
| 22477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22478 | (eval $ac_try) 2>&5 |
| 22479 | ac_status=$? |
| 22480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22481 | (exit $ac_status); }; } && |
| 22482 | { ac_try='test -s conftest.$ac_objext' |
| 22483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22484 | (eval $ac_try) 2>&5 |
| 22485 | ac_status=$? |
| 22486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22487 | (exit $ac_status); }; }; then |
| 22488 | gdb_cv_have_aix_thread_debug=yes |
| 22489 | else |
| 22490 | echo "$as_me: failed program was:" >&5 |
| 22491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22492 | |
| 22493 | gdb_cv_have_aix_thread_debug=no |
| 22494 | fi |
| 22495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22496 | fi |
| 22497 | |
| 22498 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
| 22499 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 |
| 22500 | if test $gdb_cv_have_aix_thread_debug = yes; then |
| 22501 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" |
| 22502 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
| 22503 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
| 22504 | fi |
| 22505 | ;; |
| 22506 | esac |
| 22507 | |
| 22508 | fi |
| 22509 | |
| 22510 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
| 22511 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
| 22512 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 |
| 22513 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
| 22514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22515 | else |
| 22516 | cat >conftest.$ac_ext <<_ACEOF |
| 22517 | /* confdefs.h. */ |
| 22518 | _ACEOF |
| 22519 | cat confdefs.h >>conftest.$ac_ext |
| 22520 | cat >>conftest.$ac_ext <<_ACEOF |
| 22521 | /* end confdefs.h. */ |
| 22522 | #include <thread_db.h> |
| 22523 | int |
| 22524 | main () |
| 22525 | { |
| 22526 | int i = TD_NOTALLOC; |
| 22527 | ; |
| 22528 | return 0; |
| 22529 | } |
| 22530 | _ACEOF |
| 22531 | rm -f conftest.$ac_objext |
| 22532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22533 | (eval $ac_compile) 2>conftest.er1 |
| 22534 | ac_status=$? |
| 22535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22536 | rm -f conftest.er1 |
| 22537 | cat conftest.err >&5 |
| 22538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22539 | (exit $ac_status); } && |
| 22540 | { ac_try='test -z "$ac_c_werror_flag" |
| 22541 | || test ! -s conftest.err' |
| 22542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22543 | (eval $ac_try) 2>&5 |
| 22544 | ac_status=$? |
| 22545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22546 | (exit $ac_status); }; } && |
| 22547 | { ac_try='test -s conftest.$ac_objext' |
| 22548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22549 | (eval $ac_try) 2>&5 |
| 22550 | ac_status=$? |
| 22551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22552 | (exit $ac_status); }; }; then |
| 22553 | gdb_cv_thread_db_h_has_td_notalloc=yes |
| 22554 | else |
| 22555 | echo "$as_me: failed program was:" >&5 |
| 22556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22557 | |
| 22558 | gdb_cv_thread_db_h_has_td_notalloc=no |
| 22559 | |
| 22560 | fi |
| 22561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22562 | |
| 22563 | fi |
| 22564 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
| 22565 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 |
| 22566 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5 |
| 22567 | echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6 |
| 22568 | if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then |
| 22569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22570 | else |
| 22571 | cat >conftest.$ac_ext <<_ACEOF |
| 22572 | /* confdefs.h. */ |
| 22573 | _ACEOF |
| 22574 | cat confdefs.h >>conftest.$ac_ext |
| 22575 | cat >>conftest.$ac_ext <<_ACEOF |
| 22576 | /* end confdefs.h. */ |
| 22577 | #include <thread_db.h> |
| 22578 | int |
| 22579 | main () |
| 22580 | { |
| 22581 | int i = TD_VERSION; |
| 22582 | ; |
| 22583 | return 0; |
| 22584 | } |
| 22585 | _ACEOF |
| 22586 | rm -f conftest.$ac_objext |
| 22587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22588 | (eval $ac_compile) 2>conftest.er1 |
| 22589 | ac_status=$? |
| 22590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22591 | rm -f conftest.er1 |
| 22592 | cat conftest.err >&5 |
| 22593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22594 | (exit $ac_status); } && |
| 22595 | { ac_try='test -z "$ac_c_werror_flag" |
| 22596 | || test ! -s conftest.err' |
| 22597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22598 | (eval $ac_try) 2>&5 |
| 22599 | ac_status=$? |
| 22600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22601 | (exit $ac_status); }; } && |
| 22602 | { ac_try='test -s conftest.$ac_objext' |
| 22603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22604 | (eval $ac_try) 2>&5 |
| 22605 | ac_status=$? |
| 22606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22607 | (exit $ac_status); }; }; then |
| 22608 | gdb_cv_thread_db_h_has_td_version=yes |
| 22609 | else |
| 22610 | echo "$as_me: failed program was:" >&5 |
| 22611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22612 | |
| 22613 | gdb_cv_thread_db_h_has_td_version=no |
| 22614 | |
| 22615 | fi |
| 22616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22617 | |
| 22618 | fi |
| 22619 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5 |
| 22620 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6 |
| 22621 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5 |
| 22622 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6 |
| 22623 | if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then |
| 22624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22625 | else |
| 22626 | cat >conftest.$ac_ext <<_ACEOF |
| 22627 | /* confdefs.h. */ |
| 22628 | _ACEOF |
| 22629 | cat confdefs.h >>conftest.$ac_ext |
| 22630 | cat >>conftest.$ac_ext <<_ACEOF |
| 22631 | /* end confdefs.h. */ |
| 22632 | #include <thread_db.h> |
| 22633 | int |
| 22634 | main () |
| 22635 | { |
| 22636 | int i = TD_NOTLS; |
| 22637 | ; |
| 22638 | return 0; |
| 22639 | } |
| 22640 | _ACEOF |
| 22641 | rm -f conftest.$ac_objext |
| 22642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22643 | (eval $ac_compile) 2>conftest.er1 |
| 22644 | ac_status=$? |
| 22645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22646 | rm -f conftest.er1 |
| 22647 | cat conftest.err >&5 |
| 22648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22649 | (exit $ac_status); } && |
| 22650 | { ac_try='test -z "$ac_c_werror_flag" |
| 22651 | || test ! -s conftest.err' |
| 22652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22653 | (eval $ac_try) 2>&5 |
| 22654 | ac_status=$? |
| 22655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22656 | (exit $ac_status); }; } && |
| 22657 | { ac_try='test -s conftest.$ac_objext' |
| 22658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22659 | (eval $ac_try) 2>&5 |
| 22660 | ac_status=$? |
| 22661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22662 | (exit $ac_status); }; }; then |
| 22663 | gdb_cv_thread_db_h_has_td_notls=yes |
| 22664 | else |
| 22665 | echo "$as_me: failed program was:" >&5 |
| 22666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22667 | |
| 22668 | gdb_cv_thread_db_h_has_td_notls=no |
| 22669 | |
| 22670 | fi |
| 22671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22672 | |
| 22673 | fi |
| 22674 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5 |
| 22675 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6 |
| 22676 | fi |
| 22677 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then |
| 22678 | |
| 22679 | cat >>confdefs.h <<\_ACEOF |
| 22680 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
| 22681 | _ACEOF |
| 22682 | |
| 22683 | fi |
| 22684 | if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then |
| 22685 | |
| 22686 | cat >>confdefs.h <<\_ACEOF |
| 22687 | #define THREAD_DB_HAS_TD_VERSION 1 |
| 22688 | _ACEOF |
| 22689 | |
| 22690 | fi |
| 22691 | if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then |
| 22692 | |
| 22693 | cat >>confdefs.h <<\_ACEOF |
| 22694 | #define THREAD_DB_HAS_TD_NOTLS 1 |
| 22695 | _ACEOF |
| 22696 | |
| 22697 | fi |
| 22698 | |
| 22699 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
| 22700 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
| 22701 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 |
| 22702 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
| 22703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22704 | else |
| 22705 | cat >conftest.$ac_ext <<_ACEOF |
| 22706 | /* confdefs.h. */ |
| 22707 | _ACEOF |
| 22708 | cat confdefs.h >>conftest.$ac_ext |
| 22709 | cat >>conftest.$ac_ext <<_ACEOF |
| 22710 | /* end confdefs.h. */ |
| 22711 | #include <sys/syscall.h> |
| 22712 | int |
| 22713 | main () |
| 22714 | { |
| 22715 | int i = __NR_tkill; |
| 22716 | ; |
| 22717 | return 0; |
| 22718 | } |
| 22719 | _ACEOF |
| 22720 | rm -f conftest.$ac_objext |
| 22721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22722 | (eval $ac_compile) 2>conftest.er1 |
| 22723 | ac_status=$? |
| 22724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22725 | rm -f conftest.er1 |
| 22726 | cat conftest.err >&5 |
| 22727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22728 | (exit $ac_status); } && |
| 22729 | { ac_try='test -z "$ac_c_werror_flag" |
| 22730 | || test ! -s conftest.err' |
| 22731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22732 | (eval $ac_try) 2>&5 |
| 22733 | ac_status=$? |
| 22734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22735 | (exit $ac_status); }; } && |
| 22736 | { ac_try='test -s conftest.$ac_objext' |
| 22737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22738 | (eval $ac_try) 2>&5 |
| 22739 | ac_status=$? |
| 22740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22741 | (exit $ac_status); }; }; then |
| 22742 | gdb_cv_sys_syscall_h_has_tkill=yes |
| 22743 | else |
| 22744 | echo "$as_me: failed program was:" >&5 |
| 22745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22746 | |
| 22747 | gdb_cv_sys_syscall_h_has_tkill=no |
| 22748 | |
| 22749 | fi |
| 22750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22751 | |
| 22752 | fi |
| 22753 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
| 22754 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 |
| 22755 | fi |
| 22756 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then |
| 22757 | |
| 22758 | cat >>confdefs.h <<\_ACEOF |
| 22759 | #define HAVE_TKILL_SYSCALL 1 |
| 22760 | _ACEOF |
| 22761 | |
| 22762 | fi |
| 22763 | |
| 22764 | |
| 22765 | |
| 22766 | # Check whether --with-sysroot or --without-sysroot was given. |
| 22767 | if test "${with_sysroot+set}" = set; then |
| 22768 | withval="$with_sysroot" |
| 22769 | |
| 22770 | case ${with_sysroot} in |
| 22771 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
| 22772 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
| 22773 | esac |
| 22774 | |
| 22775 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' |
| 22776 | |
| 22777 | if test "x$prefix" = xNONE; then |
| 22778 | test_prefix=/usr/local |
| 22779 | else |
| 22780 | test_prefix=$prefix |
| 22781 | fi |
| 22782 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
| 22783 | test_exec_prefix=$test_prefix |
| 22784 | else |
| 22785 | test_exec_prefix=$exec_prefix |
| 22786 | fi |
| 22787 | case ${TARGET_SYSTEM_ROOT} in |
| 22788 | "${test_prefix}"|"${test_prefix}/"*|\ |
| 22789 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ |
| 22790 | '${prefix}'|'${prefix}/'*|\ |
| 22791 | '${exec_prefix}'|'${exec_prefix}/'*) |
| 22792 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
| 22793 | TARGET_SYSTEM_ROOT_DEFINE="$t" |
| 22794 | ;; |
| 22795 | esac |
| 22796 | |
| 22797 | else |
| 22798 | |
| 22799 | TARGET_SYSTEM_ROOT= |
| 22800 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' |
| 22801 | |
| 22802 | fi; |
| 22803 | |
| 22804 | |
| 22805 | |
| 22806 | # Check whether --enable-werror or --disable-werror was given. |
| 22807 | if test "${enable_werror+set}" = set; then |
| 22808 | enableval="$enable_werror" |
| 22809 | case "${enableval}" in |
| 22810 | yes | y) ERROR_ON_WARNING="yes" ;; |
| 22811 | no | n) ERROR_ON_WARNING="no" ;; |
| 22812 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
| 22813 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} |
| 22814 | { (exit 1); exit 1; }; } ;; |
| 22815 | esac |
| 22816 | fi; |
| 22817 | |
| 22818 | # Enable -Werror by default when using gcc |
| 22819 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then |
| 22820 | ERROR_ON_WARNING=yes |
| 22821 | fi |
| 22822 | |
| 22823 | WERROR_CFLAGS="" |
| 22824 | if test "${ERROR_ON_WARNING}" = yes ; then |
| 22825 | WERROR_CFLAGS="-Werror" |
| 22826 | fi |
| 22827 | |
| 22828 | # The entries after -Wno-pointer-sign are disabled warnings which may |
| 22829 | # be enabled in the future, which can not currently be used to build |
| 22830 | # GDB. |
| 22831 | # NOTE: If you change this list, remember to update |
| 22832 | # gdb/doc/gdbint.texinfo. |
| 22833 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
| 22834 | -Wformat-nonliteral -Wno-pointer-sign \ |
| 22835 | -Wno-unused -Wno-switch -Wno-char-subscripts" |
| 22836 | |
| 22837 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
| 22838 | if test "${enable_build_warnings+set}" = set; then |
| 22839 | enableval="$enable_build_warnings" |
| 22840 | case "${enableval}" in |
| 22841 | yes) ;; |
| 22842 | no) build_warnings="-w";; |
| 22843 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 22844 | build_warnings="${build_warnings} ${t}";; |
| 22845 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 22846 | build_warnings="${t} ${build_warnings}";; |
| 22847 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 22848 | esac |
| 22849 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
| 22850 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
| 22851 | fi |
| 22852 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
| 22853 | if test "${enable_gdb_build_warnings+set}" = set; then |
| 22854 | enableval="$enable_gdb_build_warnings" |
| 22855 | case "${enableval}" in |
| 22856 | yes) ;; |
| 22857 | no) build_warnings="-w";; |
| 22858 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 22859 | build_warnings="${build_warnings} ${t}";; |
| 22860 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 22861 | build_warnings="${t} ${build_warnings}";; |
| 22862 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 22863 | esac |
| 22864 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
| 22865 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 |
| 22866 | fi |
| 22867 | fi; WARN_CFLAGS="" |
| 22868 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
| 22869 | then |
| 22870 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
| 22871 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 |
| 22872 | # Separate out the -Werror flag as some files just cannot be |
| 22873 | # compiled with it enabled. |
| 22874 | for w in ${build_warnings}; do |
| 22875 | case $w in |
| 22876 | -Werr*) WERROR_CFLAGS=-Werror ;; |
| 22877 | *) # Check that GCC accepts it |
| 22878 | saved_CFLAGS="$CFLAGS" |
| 22879 | CFLAGS="$CFLAGS $w" |
| 22880 | cat >conftest.$ac_ext <<_ACEOF |
| 22881 | /* confdefs.h. */ |
| 22882 | _ACEOF |
| 22883 | cat confdefs.h >>conftest.$ac_ext |
| 22884 | cat >>conftest.$ac_ext <<_ACEOF |
| 22885 | /* end confdefs.h. */ |
| 22886 | |
| 22887 | int |
| 22888 | main () |
| 22889 | { |
| 22890 | |
| 22891 | ; |
| 22892 | return 0; |
| 22893 | } |
| 22894 | _ACEOF |
| 22895 | rm -f conftest.$ac_objext |
| 22896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22897 | (eval $ac_compile) 2>conftest.er1 |
| 22898 | ac_status=$? |
| 22899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22900 | rm -f conftest.er1 |
| 22901 | cat conftest.err >&5 |
| 22902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22903 | (exit $ac_status); } && |
| 22904 | { ac_try='test -z "$ac_c_werror_flag" |
| 22905 | || test ! -s conftest.err' |
| 22906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22907 | (eval $ac_try) 2>&5 |
| 22908 | ac_status=$? |
| 22909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22910 | (exit $ac_status); }; } && |
| 22911 | { ac_try='test -s conftest.$ac_objext' |
| 22912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22913 | (eval $ac_try) 2>&5 |
| 22914 | ac_status=$? |
| 22915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22916 | (exit $ac_status); }; }; then |
| 22917 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
| 22918 | else |
| 22919 | echo "$as_me: failed program was:" >&5 |
| 22920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22921 | |
| 22922 | fi |
| 22923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22924 | CFLAGS="$saved_CFLAGS" |
| 22925 | esac |
| 22926 | done |
| 22927 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
| 22928 | echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6 |
| 22929 | fi |
| 22930 | |
| 22931 | |
| 22932 | |
| 22933 | # In the Cygwin environment, we need some additional flags. |
| 22934 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
| 22935 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 |
| 22936 | if test "${gdb_cv_os_cygwin+set}" = set; then |
| 22937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22938 | else |
| 22939 | cat >conftest.$ac_ext <<_ACEOF |
| 22940 | /* confdefs.h. */ |
| 22941 | _ACEOF |
| 22942 | cat confdefs.h >>conftest.$ac_ext |
| 22943 | cat >>conftest.$ac_ext <<_ACEOF |
| 22944 | /* end confdefs.h. */ |
| 22945 | |
| 22946 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) |
| 22947 | lose |
| 22948 | #endif |
| 22949 | _ACEOF |
| 22950 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22951 | $EGREP "lose" >/dev/null 2>&1; then |
| 22952 | gdb_cv_os_cygwin=yes |
| 22953 | else |
| 22954 | gdb_cv_os_cygwin=no |
| 22955 | fi |
| 22956 | rm -f conftest* |
| 22957 | |
| 22958 | fi |
| 22959 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
| 22960 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 |
| 22961 | |
| 22962 | |
| 22963 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
| 22964 | case ${host} in |
| 22965 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
| 22966 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; |
| 22967 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
| 22968 | esac |
| 22969 | |
| 22970 | |
| 22971 | # libreadline needs libuser32.a in a cygwin environment |
| 22972 | WIN32LIBS= |
| 22973 | if test x$gdb_cv_os_cygwin = xyes; then |
| 22974 | WIN32LIBS="-luser32" |
| 22975 | case "${target}" in |
| 22976 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" |
| 22977 | ;; |
| 22978 | esac |
| 22979 | fi |
| 22980 | |
| 22981 | # The ser-tcp.c module requires sockets. |
| 22982 | case ${host} in |
| 22983 | *mingw32*) |
| 22984 | |
| 22985 | cat >>confdefs.h <<\_ACEOF |
| 22986 | #define USE_WIN32API 1 |
| 22987 | _ACEOF |
| 22988 | |
| 22989 | WIN32LIBS="$WIN32LIBS -lws2_32" |
| 22990 | ;; |
| 22991 | esac |
| 22992 | |
| 22993 | |
| 22994 | # Add ELF support to GDB, but only if BFD includes ELF support. |
| 22995 | OLD_CFLAGS=$CFLAGS |
| 22996 | OLD_LDFLAGS=$LDFLAGS |
| 22997 | OLD_LIBS=$LIBS |
| 22998 | CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" |
| 22999 | LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" |
| 23000 | intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` |
| 23001 | LIBS="$LIBS -lbfd -liberty $intl" |
| 23002 | echo "$as_me:$LINENO: checking for ELF support in BFD" >&5 |
| 23003 | echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6 |
| 23004 | if test "${gdb_cv_var_elf+set}" = set; then |
| 23005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23006 | else |
| 23007 | cat >conftest.$ac_ext <<_ACEOF |
| 23008 | /* confdefs.h. */ |
| 23009 | _ACEOF |
| 23010 | cat confdefs.h >>conftest.$ac_ext |
| 23011 | cat >>conftest.$ac_ext <<_ACEOF |
| 23012 | /* end confdefs.h. */ |
| 23013 | #include <stdlib.h> |
| 23014 | #include "bfd.h" |
| 23015 | #include "elf-bfd.h" |
| 23016 | |
| 23017 | int |
| 23018 | main () |
| 23019 | { |
| 23020 | bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); |
| 23021 | ; |
| 23022 | return 0; |
| 23023 | } |
| 23024 | _ACEOF |
| 23025 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23026 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23027 | (eval $ac_link) 2>conftest.er1 |
| 23028 | ac_status=$? |
| 23029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23030 | rm -f conftest.er1 |
| 23031 | cat conftest.err >&5 |
| 23032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23033 | (exit $ac_status); } && |
| 23034 | { ac_try='test -z "$ac_c_werror_flag" |
| 23035 | || test ! -s conftest.err' |
| 23036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23037 | (eval $ac_try) 2>&5 |
| 23038 | ac_status=$? |
| 23039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23040 | (exit $ac_status); }; } && |
| 23041 | { ac_try='test -s conftest$ac_exeext' |
| 23042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23043 | (eval $ac_try) 2>&5 |
| 23044 | ac_status=$? |
| 23045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23046 | (exit $ac_status); }; }; then |
| 23047 | gdb_cv_var_elf=yes |
| 23048 | else |
| 23049 | echo "$as_me: failed program was:" >&5 |
| 23050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23051 | |
| 23052 | gdb_cv_var_elf=no |
| 23053 | fi |
| 23054 | rm -f conftest.err conftest.$ac_objext \ |
| 23055 | conftest$ac_exeext conftest.$ac_ext |
| 23056 | fi |
| 23057 | echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5 |
| 23058 | echo "${ECHO_T}$gdb_cv_var_elf" >&6 |
| 23059 | if test $gdb_cv_var_elf = yes; then |
| 23060 | CONFIG_OBS="$CONFIG_OBS elfread.o" |
| 23061 | |
| 23062 | cat >>confdefs.h <<\_ACEOF |
| 23063 | #define HAVE_ELF 1 |
| 23064 | _ACEOF |
| 23065 | |
| 23066 | fi |
| 23067 | CFLAGS=$OLD_CFLAGS |
| 23068 | LDFLAGS=$OLD_LDFLAGS |
| 23069 | LIBS=$OLD_LIBS |
| 23070 | |
| 23071 | # Add any host-specific objects to GDB. |
| 23072 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" |
| 23073 | |
| 23074 | LIBGUI="../libgui/src/libgui.a" |
| 23075 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" |
| 23076 | |
| 23077 | |
| 23078 | |
| 23079 | WIN32LDAPP= |
| 23080 | |
| 23081 | |
| 23082 | |
| 23083 | case "${host}" in |
| 23084 | *-*-cygwin* | *-*-mingw* ) |
| 23085 | configdir="win" |
| 23086 | ;; |
| 23087 | *) |
| 23088 | configdir="unix" |
| 23089 | ;; |
| 23090 | esac |
| 23091 | |
| 23092 | GDBTKLIBS= |
| 23093 | if test "${enable_gdbtk}" = "yes"; then |
| 23094 | |
| 23095 | # Gdbtk must have an absolute path to srcdir in order to run |
| 23096 | # properly when not installed. |
| 23097 | here=`pwd` |
| 23098 | cd ${srcdir} |
| 23099 | GDBTK_SRC_DIR=`pwd` |
| 23100 | cd $here |
| 23101 | |
| 23102 | |
| 23103 | # |
| 23104 | # Ok, lets find the tcl configuration |
| 23105 | # First, look for one uninstalled. |
| 23106 | # the alternative search directory is invoked by --with-tclconfig |
| 23107 | # |
| 23108 | |
| 23109 | if test x"${no_tcl}" = x ; then |
| 23110 | # we reset no_tcl in case something fails here |
| 23111 | no_tcl=true |
| 23112 | |
| 23113 | # Check whether --with-tclconfig or --without-tclconfig was given. |
| 23114 | if test "${with_tclconfig+set}" = set; then |
| 23115 | withval="$with_tclconfig" |
| 23116 | with_tclconfig=${withval} |
| 23117 | fi; |
| 23118 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 |
| 23119 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 |
| 23120 | if test "${ac_cv_c_tclconfig+set}" = set; then |
| 23121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23122 | else |
| 23123 | |
| 23124 | |
| 23125 | # First check to see if --with-tclconfig was specified. |
| 23126 | if test x"${with_tclconfig}" != x ; then |
| 23127 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
| 23128 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
| 23129 | else |
| 23130 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
| 23131 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} |
| 23132 | { (exit 1); exit 1; }; } |
| 23133 | fi |
| 23134 | fi |
| 23135 | |
| 23136 | # then check for a private Tcl installation |
| 23137 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 23138 | for i in \ |
| 23139 | ../tcl \ |
| 23140 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ |
| 23141 | ../../tcl \ |
| 23142 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ |
| 23143 | ../../../tcl \ |
| 23144 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do |
| 23145 | if test -f "$i/${configdir}/tclConfig.sh" ; then |
| 23146 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` |
| 23147 | break |
| 23148 | fi |
| 23149 | done |
| 23150 | fi |
| 23151 | # check in a few common install locations |
| 23152 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 23153 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 23154 | if test -f "$i/tclConfig.sh" ; then |
| 23155 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
| 23156 | break |
| 23157 | fi |
| 23158 | done |
| 23159 | fi |
| 23160 | # check in a few other private locations |
| 23161 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 23162 | for i in \ |
| 23163 | ${srcdir}/../tcl \ |
| 23164 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do |
| 23165 | if test -f "$i/${configdir}/tclConfig.sh" ; then |
| 23166 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` |
| 23167 | break |
| 23168 | fi |
| 23169 | done |
| 23170 | fi |
| 23171 | |
| 23172 | fi |
| 23173 | |
| 23174 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 23175 | TCLCONFIG="# no Tcl configs found" |
| 23176 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
| 23177 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
| 23178 | else |
| 23179 | no_tcl= |
| 23180 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh |
| 23181 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
| 23182 | echo "${ECHO_T}found $TCLCONFIG" >&6 |
| 23183 | fi |
| 23184 | fi |
| 23185 | |
| 23186 | if test -z "${no_tcl}"; then |
| 23187 | |
| 23188 | . $TCLCONFIG |
| 23189 | |
| 23190 | |
| 23191 | |
| 23192 | |
| 23193 | |
| 23194 | |
| 23195 | |
| 23196 | |
| 23197 | |
| 23198 | |
| 23199 | |
| 23200 | |
| 23201 | |
| 23202 | |
| 23203 | |
| 23204 | |
| 23205 | |
| 23206 | |
| 23207 | |
| 23208 | |
| 23209 | |
| 23210 | |
| 23211 | |
| 23212 | |
| 23213 | |
| 23214 | |
| 23215 | |
| 23216 | # |
| 23217 | # Ok, lets find the tk configuration |
| 23218 | # First, look for one uninstalled. |
| 23219 | # the alternative search directory is invoked by --with-tkconfig |
| 23220 | # |
| 23221 | |
| 23222 | if test x"${no_tk}" = x ; then |
| 23223 | # we reset no_tk in case something fails here |
| 23224 | no_tk=true |
| 23225 | |
| 23226 | # Check whether --with-tkconfig or --without-tkconfig was given. |
| 23227 | if test "${with_tkconfig+set}" = set; then |
| 23228 | withval="$with_tkconfig" |
| 23229 | with_tkconfig=${withval} |
| 23230 | fi; |
| 23231 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 |
| 23232 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 |
| 23233 | if test "${ac_cv_c_tkconfig+set}" = set; then |
| 23234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23235 | else |
| 23236 | |
| 23237 | |
| 23238 | # First check to see if --with-tkconfig was specified. |
| 23239 | if test x"${with_tkconfig}" != x ; then |
| 23240 | if test -f "${with_tkconfig}/tkConfig.sh" ; then |
| 23241 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` |
| 23242 | else |
| 23243 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
| 23244 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} |
| 23245 | { (exit 1); exit 1; }; } |
| 23246 | fi |
| 23247 | fi |
| 23248 | |
| 23249 | # then check for a private Tk library |
| 23250 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 23251 | for i in \ |
| 23252 | ../tk \ |
| 23253 | `ls -dr ../tk[4-9]* 2>/dev/null` \ |
| 23254 | ../../tk \ |
| 23255 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ |
| 23256 | ../../../tk \ |
| 23257 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do |
| 23258 | if test -f "$i/${configdir}/tkConfig.sh" ; then |
| 23259 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` |
| 23260 | break |
| 23261 | fi |
| 23262 | done |
| 23263 | fi |
| 23264 | # check in a few common install locations |
| 23265 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 23266 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 23267 | if test -f "$i/tkConfig.sh" ; then |
| 23268 | ac_cv_c_tkconfig=`(cd $i; pwd)` |
| 23269 | break |
| 23270 | fi |
| 23271 | done |
| 23272 | fi |
| 23273 | # check in a few other private locations |
| 23274 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 23275 | for i in \ |
| 23276 | ${srcdir}/../tk \ |
| 23277 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do |
| 23278 | if test -f "$i/${configdir}/tkConfig.sh" ; then |
| 23279 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` |
| 23280 | break |
| 23281 | fi |
| 23282 | done |
| 23283 | fi |
| 23284 | |
| 23285 | fi |
| 23286 | |
| 23287 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 23288 | TKCONFIG="# no Tk configs found" |
| 23289 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
| 23290 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} |
| 23291 | else |
| 23292 | no_tk= |
| 23293 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh |
| 23294 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
| 23295 | echo "${ECHO_T}found $TKCONFIG" >&6 |
| 23296 | fi |
| 23297 | fi |
| 23298 | |
| 23299 | |
| 23300 | |
| 23301 | # now look for Tcl library stuff |
| 23302 | |
| 23303 | tcldir="../tcl/${configdir}/" |
| 23304 | |
| 23305 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" |
| 23306 | |
| 23307 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
| 23308 | # point to doing Tcl. |
| 23309 | if test -z "${no_tk}"; then |
| 23310 | |
| 23311 | if test -f "$TKCONFIG" ; then |
| 23312 | . $TKCONFIG |
| 23313 | fi |
| 23314 | |
| 23315 | |
| 23316 | |
| 23317 | |
| 23318 | |
| 23319 | |
| 23320 | |
| 23321 | |
| 23322 | |
| 23323 | |
| 23324 | |
| 23325 | |
| 23326 | |
| 23327 | |
| 23328 | # |
| 23329 | # Ok, lets find the tcl source trees so we can use the headers |
| 23330 | # Warning: transition of version 9 to 10 will break this algorithm |
| 23331 | # because 10 sorts before 9. We also look for just tcl. We have to |
| 23332 | # be careful that we don't match stuff like tclX by accident. |
| 23333 | # the alternative search directory is involked by --with-tclinclude |
| 23334 | # |
| 23335 | |
| 23336 | no_tcl=true |
| 23337 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
| 23338 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 |
| 23339 | |
| 23340 | # Check whether --with-tclinclude or --without-tclinclude was given. |
| 23341 | if test "${with_tclinclude+set}" = set; then |
| 23342 | withval="$with_tclinclude" |
| 23343 | with_tclinclude=${withval} |
| 23344 | fi; |
| 23345 | if test "${ac_cv_c_tclh+set}" = set; then |
| 23346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23347 | else |
| 23348 | |
| 23349 | # first check to see if --with-tclinclude was specified |
| 23350 | if test x"${with_tclinclude}" != x ; then |
| 23351 | if test -f ${with_tclinclude}/tclInt.h ; then |
| 23352 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` |
| 23353 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then |
| 23354 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` |
| 23355 | else |
| 23356 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
| 23357 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} |
| 23358 | { (exit 1); exit 1; }; } |
| 23359 | fi |
| 23360 | fi |
| 23361 | |
| 23362 | # next check if it came with Tcl configuration file |
| 23363 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 23364 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then |
| 23365 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` |
| 23366 | fi |
| 23367 | fi |
| 23368 | |
| 23369 | # next check in private source directory |
| 23370 | # |
| 23371 | # since ls returns lowest version numbers first, reverse its output |
| 23372 | if test x"${ac_cv_c_tclh}" = x ; then |
| 23373 | for i in \ |
| 23374 | ${srcdir}/../tcl \ |
| 23375 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ |
| 23376 | ${srcdir}/../../tcl \ |
| 23377 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ |
| 23378 | ${srcdir}/../../../tcl \ |
| 23379 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do |
| 23380 | if test -f $i/generic/tclInt.h ; then |
| 23381 | ac_cv_c_tclh=`(cd $i/generic; pwd)` |
| 23382 | break |
| 23383 | fi |
| 23384 | done |
| 23385 | fi |
| 23386 | # finally check in a few common install locations |
| 23387 | # |
| 23388 | # since ls returns lowest version numbers first, reverse its output |
| 23389 | if test x"${ac_cv_c_tclh}" = x ; then |
| 23390 | for i in \ |
| 23391 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ |
| 23392 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ |
| 23393 | /usr/local/src/tcl \ |
| 23394 | /usr/local/lib/tcl \ |
| 23395 | ${prefix}/include ; do |
| 23396 | if test -f $i/generic/tclInt.h ; then |
| 23397 | ac_cv_c_tclh=`(cd $i/generic; pwd)` |
| 23398 | break |
| 23399 | fi |
| 23400 | done |
| 23401 | fi |
| 23402 | # see if one is installed |
| 23403 | if test x"${ac_cv_c_tclh}" = x ; then |
| 23404 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
| 23405 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
| 23406 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 |
| 23407 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
| 23408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23409 | fi |
| 23410 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
| 23411 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 |
| 23412 | else |
| 23413 | # Is the header compilable? |
| 23414 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 |
| 23415 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 |
| 23416 | cat >conftest.$ac_ext <<_ACEOF |
| 23417 | /* confdefs.h. */ |
| 23418 | _ACEOF |
| 23419 | cat confdefs.h >>conftest.$ac_ext |
| 23420 | cat >>conftest.$ac_ext <<_ACEOF |
| 23421 | /* end confdefs.h. */ |
| 23422 | $ac_includes_default |
| 23423 | #include <tclInt.h> |
| 23424 | _ACEOF |
| 23425 | rm -f conftest.$ac_objext |
| 23426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23427 | (eval $ac_compile) 2>conftest.er1 |
| 23428 | ac_status=$? |
| 23429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23430 | rm -f conftest.er1 |
| 23431 | cat conftest.err >&5 |
| 23432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23433 | (exit $ac_status); } && |
| 23434 | { ac_try='test -z "$ac_c_werror_flag" |
| 23435 | || test ! -s conftest.err' |
| 23436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23437 | (eval $ac_try) 2>&5 |
| 23438 | ac_status=$? |
| 23439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23440 | (exit $ac_status); }; } && |
| 23441 | { ac_try='test -s conftest.$ac_objext' |
| 23442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23443 | (eval $ac_try) 2>&5 |
| 23444 | ac_status=$? |
| 23445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23446 | (exit $ac_status); }; }; then |
| 23447 | ac_header_compiler=yes |
| 23448 | else |
| 23449 | echo "$as_me: failed program was:" >&5 |
| 23450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23451 | |
| 23452 | ac_header_compiler=no |
| 23453 | fi |
| 23454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23455 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 23456 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 23457 | |
| 23458 | # Is the header present? |
| 23459 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 |
| 23460 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 |
| 23461 | cat >conftest.$ac_ext <<_ACEOF |
| 23462 | /* confdefs.h. */ |
| 23463 | _ACEOF |
| 23464 | cat confdefs.h >>conftest.$ac_ext |
| 23465 | cat >>conftest.$ac_ext <<_ACEOF |
| 23466 | /* end confdefs.h. */ |
| 23467 | #include <tclInt.h> |
| 23468 | _ACEOF |
| 23469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 23470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 23471 | ac_status=$? |
| 23472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23473 | rm -f conftest.er1 |
| 23474 | cat conftest.err >&5 |
| 23475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23476 | (exit $ac_status); } >/dev/null; then |
| 23477 | if test -s conftest.err; then |
| 23478 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 23479 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 23480 | else |
| 23481 | ac_cpp_err= |
| 23482 | fi |
| 23483 | else |
| 23484 | ac_cpp_err=yes |
| 23485 | fi |
| 23486 | if test -z "$ac_cpp_err"; then |
| 23487 | ac_header_preproc=yes |
| 23488 | else |
| 23489 | echo "$as_me: failed program was:" >&5 |
| 23490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23491 | |
| 23492 | ac_header_preproc=no |
| 23493 | fi |
| 23494 | rm -f conftest.err conftest.$ac_ext |
| 23495 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 23496 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 23497 | |
| 23498 | # So? What about this header? |
| 23499 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 23500 | yes:no: ) |
| 23501 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 23502 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 23503 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 |
| 23504 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} |
| 23505 | ac_header_preproc=yes |
| 23506 | ;; |
| 23507 | no:yes:* ) |
| 23508 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 |
| 23509 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} |
| 23510 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 |
| 23511 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} |
| 23512 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 |
| 23513 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} |
| 23514 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 23515 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 23516 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 |
| 23517 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} |
| 23518 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 |
| 23519 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} |
| 23520 | ( |
| 23521 | cat <<\_ASBOX |
| 23522 | ## ------------------------------------------ ## |
| 23523 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 23524 | ## ------------------------------------------ ## |
| 23525 | _ASBOX |
| 23526 | ) | |
| 23527 | sed "s/^/$as_me: WARNING: /" >&2 |
| 23528 | ;; |
| 23529 | esac |
| 23530 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
| 23531 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 |
| 23532 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
| 23533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23534 | else |
| 23535 | ac_cv_header_tclInt_h=$ac_header_preproc |
| 23536 | fi |
| 23537 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
| 23538 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 |
| 23539 | |
| 23540 | fi |
| 23541 | if test $ac_cv_header_tclInt_h = yes; then |
| 23542 | ac_cv_c_tclh=installed |
| 23543 | else |
| 23544 | ac_cv_c_tclh="" |
| 23545 | fi |
| 23546 | |
| 23547 | |
| 23548 | fi |
| 23549 | |
| 23550 | fi |
| 23551 | |
| 23552 | if test x"${ac_cv_c_tclh}" = x ; then |
| 23553 | TCLHDIR="# no Tcl private headers found" |
| 23554 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
| 23555 | echo "$as_me: error: Can't find Tcl private headers" >&2;} |
| 23556 | { (exit 1); exit 1; }; } |
| 23557 | fi |
| 23558 | if test x"${ac_cv_c_tclh}" != x ; then |
| 23559 | no_tcl="" |
| 23560 | if test x"${ac_cv_c_tclh}" = x"installed" ; then |
| 23561 | echo "$as_me:$LINENO: result: is installed" >&5 |
| 23562 | echo "${ECHO_T}is installed" >&6 |
| 23563 | TCLHDIR="" |
| 23564 | else |
| 23565 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
| 23566 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 |
| 23567 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
| 23568 | TCLHDIR="-I${ac_cv_c_tclh}" |
| 23569 | fi |
| 23570 | fi |
| 23571 | |
| 23572 | |
| 23573 | |
| 23574 | |
| 23575 | # |
| 23576 | # Ok, lets find the tk source trees so we can use the headers |
| 23577 | # If the directory (presumably symlink) named "tk" exists, use that one |
| 23578 | # in preference to any others. Same logic is used when choosing library |
| 23579 | # and again with Tcl. The search order is the best place to look first, then in |
| 23580 | # decreasing significance. The loop breaks if the trigger file is found. |
| 23581 | # Note the gross little conversion here of srcdir by cd'ing to the found |
| 23582 | # directory. This converts the path from a relative to an absolute, so |
| 23583 | # recursive cache variables for the path will work right. We check all |
| 23584 | # the possible paths in one loop rather than many seperate loops to speed |
| 23585 | # things up. |
| 23586 | # the alternative search directory is involked by --with-tkinclude |
| 23587 | # |
| 23588 | no_tk=true |
| 23589 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
| 23590 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 |
| 23591 | |
| 23592 | # Check whether --with-tkinclude or --without-tkinclude was given. |
| 23593 | if test "${with_tkinclude+set}" = set; then |
| 23594 | withval="$with_tkinclude" |
| 23595 | with_tkinclude=${withval} |
| 23596 | fi; |
| 23597 | if test "${ac_cv_c_tkh+set}" = set; then |
| 23598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23599 | else |
| 23600 | |
| 23601 | # first check to see if --with-tkinclude was specified |
| 23602 | if test x"${with_tkinclude}" != x ; then |
| 23603 | if test -f ${with_tkinclude}/tk.h ; then |
| 23604 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` |
| 23605 | elif test -f ${with_tkinclude}/generic/tk.h ; then |
| 23606 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` |
| 23607 | else |
| 23608 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
| 23609 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} |
| 23610 | { (exit 1); exit 1; }; } |
| 23611 | fi |
| 23612 | fi |
| 23613 | |
| 23614 | # next check if it came with Tk configuration file |
| 23615 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 23616 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then |
| 23617 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` |
| 23618 | fi |
| 23619 | fi |
| 23620 | |
| 23621 | # next check in private source directory |
| 23622 | # |
| 23623 | # since ls returns lowest version numbers first, reverse its output |
| 23624 | if test x"${ac_cv_c_tkh}" = x ; then |
| 23625 | for i in \ |
| 23626 | ${srcdir}/../tk \ |
| 23627 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ |
| 23628 | ${srcdir}/../../tk \ |
| 23629 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ |
| 23630 | ${srcdir}/../../../tk \ |
| 23631 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do |
| 23632 | if test -f $i/generic/tk.h ; then |
| 23633 | ac_cv_c_tkh=`(cd $i/generic; pwd)` |
| 23634 | break |
| 23635 | fi |
| 23636 | done |
| 23637 | fi |
| 23638 | # finally check in a few common install locations |
| 23639 | # |
| 23640 | # since ls returns lowest version numbers first, reverse its output |
| 23641 | if test x"${ac_cv_c_tkh}" = x ; then |
| 23642 | for i in \ |
| 23643 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ |
| 23644 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ |
| 23645 | /usr/local/src/tk \ |
| 23646 | /usr/local/lib/tk \ |
| 23647 | ${prefix}/include ; do |
| 23648 | if test -f $i/generic/tk.h ; then |
| 23649 | ac_cv_c_tkh=`(cd $i/generic; pwd)` |
| 23650 | break |
| 23651 | fi |
| 23652 | done |
| 23653 | fi |
| 23654 | # see if one is installed |
| 23655 | if test x"${ac_cv_c_tkh}" = x ; then |
| 23656 | if test "${ac_cv_header_tk_h+set}" = set; then |
| 23657 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
| 23658 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 |
| 23659 | if test "${ac_cv_header_tk_h+set}" = set; then |
| 23660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23661 | fi |
| 23662 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
| 23663 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 |
| 23664 | else |
| 23665 | # Is the header compilable? |
| 23666 | echo "$as_me:$LINENO: checking tk.h usability" >&5 |
| 23667 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 |
| 23668 | cat >conftest.$ac_ext <<_ACEOF |
| 23669 | /* confdefs.h. */ |
| 23670 | _ACEOF |
| 23671 | cat confdefs.h >>conftest.$ac_ext |
| 23672 | cat >>conftest.$ac_ext <<_ACEOF |
| 23673 | /* end confdefs.h. */ |
| 23674 | $ac_includes_default |
| 23675 | #include <tk.h> |
| 23676 | _ACEOF |
| 23677 | rm -f conftest.$ac_objext |
| 23678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23679 | (eval $ac_compile) 2>conftest.er1 |
| 23680 | ac_status=$? |
| 23681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23682 | rm -f conftest.er1 |
| 23683 | cat conftest.err >&5 |
| 23684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23685 | (exit $ac_status); } && |
| 23686 | { ac_try='test -z "$ac_c_werror_flag" |
| 23687 | || test ! -s conftest.err' |
| 23688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23689 | (eval $ac_try) 2>&5 |
| 23690 | ac_status=$? |
| 23691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23692 | (exit $ac_status); }; } && |
| 23693 | { ac_try='test -s conftest.$ac_objext' |
| 23694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23695 | (eval $ac_try) 2>&5 |
| 23696 | ac_status=$? |
| 23697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23698 | (exit $ac_status); }; }; then |
| 23699 | ac_header_compiler=yes |
| 23700 | else |
| 23701 | echo "$as_me: failed program was:" >&5 |
| 23702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23703 | |
| 23704 | ac_header_compiler=no |
| 23705 | fi |
| 23706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23707 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 23708 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 23709 | |
| 23710 | # Is the header present? |
| 23711 | echo "$as_me:$LINENO: checking tk.h presence" >&5 |
| 23712 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 |
| 23713 | cat >conftest.$ac_ext <<_ACEOF |
| 23714 | /* confdefs.h. */ |
| 23715 | _ACEOF |
| 23716 | cat confdefs.h >>conftest.$ac_ext |
| 23717 | cat >>conftest.$ac_ext <<_ACEOF |
| 23718 | /* end confdefs.h. */ |
| 23719 | #include <tk.h> |
| 23720 | _ACEOF |
| 23721 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 23722 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 23723 | ac_status=$? |
| 23724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23725 | rm -f conftest.er1 |
| 23726 | cat conftest.err >&5 |
| 23727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23728 | (exit $ac_status); } >/dev/null; then |
| 23729 | if test -s conftest.err; then |
| 23730 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 23731 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 23732 | else |
| 23733 | ac_cpp_err= |
| 23734 | fi |
| 23735 | else |
| 23736 | ac_cpp_err=yes |
| 23737 | fi |
| 23738 | if test -z "$ac_cpp_err"; then |
| 23739 | ac_header_preproc=yes |
| 23740 | else |
| 23741 | echo "$as_me: failed program was:" >&5 |
| 23742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23743 | |
| 23744 | ac_header_preproc=no |
| 23745 | fi |
| 23746 | rm -f conftest.err conftest.$ac_ext |
| 23747 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 23748 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 23749 | |
| 23750 | # So? What about this header? |
| 23751 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 23752 | yes:no: ) |
| 23753 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 23754 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 23755 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 |
| 23756 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} |
| 23757 | ac_header_preproc=yes |
| 23758 | ;; |
| 23759 | no:yes:* ) |
| 23760 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 |
| 23761 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} |
| 23762 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 |
| 23763 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} |
| 23764 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 |
| 23765 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} |
| 23766 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 23767 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 23768 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 |
| 23769 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} |
| 23770 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 |
| 23771 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} |
| 23772 | ( |
| 23773 | cat <<\_ASBOX |
| 23774 | ## ------------------------------------------ ## |
| 23775 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 23776 | ## ------------------------------------------ ## |
| 23777 | _ASBOX |
| 23778 | ) | |
| 23779 | sed "s/^/$as_me: WARNING: /" >&2 |
| 23780 | ;; |
| 23781 | esac |
| 23782 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
| 23783 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 |
| 23784 | if test "${ac_cv_header_tk_h+set}" = set; then |
| 23785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23786 | else |
| 23787 | ac_cv_header_tk_h=$ac_header_preproc |
| 23788 | fi |
| 23789 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
| 23790 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 |
| 23791 | |
| 23792 | fi |
| 23793 | if test $ac_cv_header_tk_h = yes; then |
| 23794 | ac_cv_c_tkh=installed |
| 23795 | else |
| 23796 | ac_cv_c_tkh="" |
| 23797 | fi |
| 23798 | |
| 23799 | |
| 23800 | fi |
| 23801 | |
| 23802 | fi |
| 23803 | |
| 23804 | if test x"${ac_cv_c_tkh}" != x ; then |
| 23805 | no_tk="" |
| 23806 | if test x"${ac_cv_c_tkh}" = x"installed" ; then |
| 23807 | echo "$as_me:$LINENO: result: is installed" >&5 |
| 23808 | echo "${ECHO_T}is installed" >&6 |
| 23809 | TKHDIR="" |
| 23810 | else |
| 23811 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
| 23812 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 |
| 23813 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
| 23814 | TKHDIR="-I${ac_cv_c_tkh}" |
| 23815 | fi |
| 23816 | else |
| 23817 | TKHDIR="# no Tk directory found" |
| 23818 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
| 23819 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} |
| 23820 | no_tk=true |
| 23821 | fi |
| 23822 | |
| 23823 | |
| 23824 | |
| 23825 | |
| 23826 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 |
| 23827 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 |
| 23828 | if test x"${ac_cv_c_itclh}" = x ; then |
| 23829 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do |
| 23830 | if test -f $i/generic/itcl.h ; then |
| 23831 | ac_cv_c_itclh=`(cd $i/generic; pwd)` |
| 23832 | break |
| 23833 | fi |
| 23834 | done |
| 23835 | fi |
| 23836 | if test x"${ac_cv_c_itclh}" = x ; then |
| 23837 | ITCLHDIR="# no Itcl private headers found" |
| 23838 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
| 23839 | echo "$as_me: error: Can't find Itcl private headers" >&2;} |
| 23840 | { (exit 1); exit 1; }; } |
| 23841 | fi |
| 23842 | if test x"${ac_cv_c_itclh}" != x ; then |
| 23843 | ITCLHDIR="-I${ac_cv_c_itclh}" |
| 23844 | fi |
| 23845 | # should always be here |
| 23846 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" |
| 23847 | |
| 23848 | #AC_SUBST(ITCLLIB) |
| 23849 | |
| 23850 | |
| 23851 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 |
| 23852 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 |
| 23853 | if test x"${ac_cv_c_itkh}" = x ; then |
| 23854 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do |
| 23855 | if test -f $i/generic/itk.h ; then |
| 23856 | ac_cv_c_itkh=`(cd $i/generic; pwd)` |
| 23857 | break |
| 23858 | fi |
| 23859 | done |
| 23860 | fi |
| 23861 | if test x"${ac_cv_c_itkh}" = x ; then |
| 23862 | ITKHDIR="# no Itk private headers found" |
| 23863 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
| 23864 | echo "$as_me: error: Can't find Itk private headers" >&2;} |
| 23865 | { (exit 1); exit 1; }; } |
| 23866 | fi |
| 23867 | if test x"${ac_cv_c_itkh}" != x ; then |
| 23868 | ITKHDIR="-I${ac_cv_c_itkh}" |
| 23869 | fi |
| 23870 | # should always be here |
| 23871 | # ITKLIB="../itcl/itk/unix/libitk.a" |
| 23872 | |
| 23873 | #AC_SUBST(ITKLIB) |
| 23874 | |
| 23875 | |
| 23876 | |
| 23877 | # now look for Tk library stuff |
| 23878 | |
| 23879 | tkdir="../tk/${configdir}/" |
| 23880 | |
| 23881 | TK_DEPS="${tkdir}${TK_LIB_FILE}" |
| 23882 | |
| 23883 | # now look for Itcl library stuff |
| 23884 | |
| 23885 | |
| 23886 | # |
| 23887 | # Ok, lets find the itcl configuration |
| 23888 | # First, look for one uninstalled. |
| 23889 | # the alternative search directory is invoked by --with-itclconfig |
| 23890 | # |
| 23891 | |
| 23892 | if test x"${no_itcl}" = x ; then |
| 23893 | # we reset no_itcl in case something fails here |
| 23894 | no_itcl=true |
| 23895 | |
| 23896 | # Check whether --with-itclconfig or --without-itclconfig was given. |
| 23897 | if test "${with_itclconfig+set}" = set; then |
| 23898 | withval="$with_itclconfig" |
| 23899 | with_itclconfig=${withval} |
| 23900 | fi; |
| 23901 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 |
| 23902 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 |
| 23903 | if test "${ac_cv_c_itclconfig+set}" = set; then |
| 23904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23905 | else |
| 23906 | |
| 23907 | |
| 23908 | # First check to see if --with-itclconfig was specified. |
| 23909 | if test x"${with_itclconfig}" != x ; then |
| 23910 | if test -f "${with_itclconfig}/itclConfig.sh" ; then |
| 23911 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` |
| 23912 | else |
| 23913 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
| 23914 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} |
| 23915 | { (exit 1); exit 1; }; } |
| 23916 | fi |
| 23917 | fi |
| 23918 | |
| 23919 | # then check for a private Itcl library |
| 23920 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 23921 | for i in \ |
| 23922 | ../itcl/itcl \ |
| 23923 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ |
| 23924 | ../../itcl \ |
| 23925 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ |
| 23926 | ../../../itcl \ |
| 23927 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do |
| 23928 | if test -f "$i/itclConfig.sh" ; then |
| 23929 | ac_cv_c_itclconfig=`(cd $i; pwd)` |
| 23930 | break |
| 23931 | fi |
| 23932 | done |
| 23933 | fi |
| 23934 | # check in a few common install locations |
| 23935 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 23936 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 23937 | if test -f "$i/itclConfig.sh" ; then |
| 23938 | ac_cv_c_itclconfig=`(cd $i; pwd)` |
| 23939 | break |
| 23940 | fi |
| 23941 | done |
| 23942 | fi |
| 23943 | # check in a few other private locations |
| 23944 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 23945 | for i in \ |
| 23946 | ${srcdir}/../itcl/itcl \ |
| 23947 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do |
| 23948 | if test -f "$i/itclConfig.sh" ; then |
| 23949 | ac_cv_c_itclconfig=`(cd $i; pwd)` |
| 23950 | break |
| 23951 | fi |
| 23952 | done |
| 23953 | fi |
| 23954 | |
| 23955 | fi |
| 23956 | |
| 23957 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 23958 | ITCLCONFIG="# no Itcl configs found" |
| 23959 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
| 23960 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} |
| 23961 | else |
| 23962 | no_itcl= |
| 23963 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh |
| 23964 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
| 23965 | echo "${ECHO_T}found $ITCLCONFIG" >&6 |
| 23966 | fi |
| 23967 | fi |
| 23968 | |
| 23969 | if test -z "${no_itcl}"; then |
| 23970 | |
| 23971 | if test -f "$ITCLCONFIG" ; then |
| 23972 | . $ITCLCONFIG |
| 23973 | fi |
| 23974 | |
| 23975 | |
| 23976 | |
| 23977 | |
| 23978 | |
| 23979 | |
| 23980 | |
| 23981 | |
| 23982 | |
| 23983 | |
| 23984 | |
| 23985 | |
| 23986 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" |
| 23987 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
| 23988 | fi |
| 23989 | |
| 23990 | |
| 23991 | # now look for Itk library stuff |
| 23992 | |
| 23993 | # |
| 23994 | # Ok, lets find the itk configuration |
| 23995 | # First, look for one uninstalled. |
| 23996 | # the alternative search directory is invoked by --with-itkconfig |
| 23997 | # |
| 23998 | |
| 23999 | if test x"${no_itk}" = x ; then |
| 24000 | # we reset no_itk in case something fails here |
| 24001 | no_itk=true |
| 24002 | |
| 24003 | # Check whether --with-itkconfig or --without-itkconfig was given. |
| 24004 | if test "${with_itkconfig+set}" = set; then |
| 24005 | withval="$with_itkconfig" |
| 24006 | with_itkconfig=${withval} |
| 24007 | fi; |
| 24008 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 |
| 24009 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 |
| 24010 | if test "${ac_cv_c_itkconfig+set}" = set; then |
| 24011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24012 | else |
| 24013 | |
| 24014 | |
| 24015 | # First check to see if --with-itkconfig was specified. |
| 24016 | if test x"${with_itkconfig}" != x ; then |
| 24017 | if test -f "${with_itkconfig}/itkConfig.sh" ; then |
| 24018 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` |
| 24019 | else |
| 24020 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
| 24021 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} |
| 24022 | { (exit 1); exit 1; }; } |
| 24023 | fi |
| 24024 | fi |
| 24025 | |
| 24026 | # then check for a private Itk library |
| 24027 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 24028 | for i in \ |
| 24029 | ../itcl/itk \ |
| 24030 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ |
| 24031 | ../../itk \ |
| 24032 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ |
| 24033 | ../../../itk \ |
| 24034 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do |
| 24035 | if test -f "$i/itkConfig.sh" ; then |
| 24036 | ac_cv_c_itkconfig=`(cd $i; pwd)` |
| 24037 | break |
| 24038 | fi |
| 24039 | done |
| 24040 | fi |
| 24041 | # check in a few common install locations |
| 24042 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 24043 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 24044 | if test -f "$i/itkConfig.sh" ; then |
| 24045 | ac_cv_c_itkconfig=`(cd $i; pwd)` |
| 24046 | break |
| 24047 | fi |
| 24048 | done |
| 24049 | fi |
| 24050 | # check in a few other private locations |
| 24051 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 24052 | for i in \ |
| 24053 | ${srcdir}/../itcl/itk \ |
| 24054 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do |
| 24055 | if test -f "$i/itkConfig.sh" ; then |
| 24056 | ac_cv_c_itkconfig=`(cd $i; pwd)` |
| 24057 | break |
| 24058 | fi |
| 24059 | done |
| 24060 | fi |
| 24061 | |
| 24062 | fi |
| 24063 | |
| 24064 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 24065 | ITKCONFIG="# no Itk configs found" |
| 24066 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
| 24067 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} |
| 24068 | else |
| 24069 | no_itk= |
| 24070 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh |
| 24071 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
| 24072 | echo "${ECHO_T}found $ITKCONFIG" >&6 |
| 24073 | fi |
| 24074 | fi |
| 24075 | |
| 24076 | |
| 24077 | if test -z "${no_itcl}"; then |
| 24078 | |
| 24079 | if test -f "$ITKCONFIG" ; then |
| 24080 | . $ITKCONFIG |
| 24081 | fi |
| 24082 | |
| 24083 | |
| 24084 | |
| 24085 | |
| 24086 | |
| 24087 | |
| 24088 | |
| 24089 | |
| 24090 | |
| 24091 | |
| 24092 | |
| 24093 | |
| 24094 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
| 24095 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
| 24096 | fi |
| 24097 | |
| 24098 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
| 24099 | |
| 24100 | # Include some libraries that Tcl and Tk want. |
| 24101 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
| 24102 | # Yes, the ordering seems wrong here. But it isn't. |
| 24103 | # TK_LIBS is the list of libraries that need to be linked |
| 24104 | # after Tcl/Tk. Note that this isn't put into LIBS. If it |
| 24105 | # were in LIBS then any link tests after this point would |
| 24106 | # try to include things like `$(LIBGUI)', which wouldn't work. |
| 24107 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" |
| 24108 | |
| 24109 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" |
| 24110 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" |
| 24111 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" |
| 24112 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
| 24113 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" |
| 24114 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" |
| 24115 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" |
| 24116 | |
| 24117 | if test x$gdb_cv_os_cygwin = xyes; then |
| 24118 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" |
| 24119 | WIN32LDAPP="-Wl,--subsystem,console" |
| 24120 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" |
| 24121 | fi |
| 24122 | fi |
| 24123 | fi |
| 24124 | |
| 24125 | |
| 24126 | |
| 24127 | subdirs="$subdirs gdbtk" |
| 24128 | |
| 24129 | fi |
| 24130 | |
| 24131 | |
| 24132 | |
| 24133 | |
| 24134 | |
| 24135 | |
| 24136 | |
| 24137 | |
| 24138 | |
| 24139 | |
| 24140 | |
| 24141 | |
| 24142 | |
| 24143 | |
| 24144 | echo "$as_me:$LINENO: checking for X" >&5 |
| 24145 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 24146 | |
| 24147 | |
| 24148 | # Check whether --with-x or --without-x was given. |
| 24149 | if test "${with_x+set}" = set; then |
| 24150 | withval="$with_x" |
| 24151 | |
| 24152 | fi; |
| 24153 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 24154 | if test "x$with_x" = xno; then |
| 24155 | # The user explicitly disabled X. |
| 24156 | have_x=disabled |
| 24157 | else |
| 24158 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 24159 | # Both variables are already set. |
| 24160 | have_x=yes |
| 24161 | else |
| 24162 | if test "${ac_cv_have_x+set}" = set; then |
| 24163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24164 | else |
| 24165 | # One or both of the vars are not set, and there is no cached value. |
| 24166 | ac_x_includes=no ac_x_libraries=no |
| 24167 | rm -fr conftest.dir |
| 24168 | if mkdir conftest.dir; then |
| 24169 | cd conftest.dir |
| 24170 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 24171 | cat >Imakefile <<'_ACEOF' |
| 24172 | acfindx: |
| 24173 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 24174 | _ACEOF |
| 24175 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 24176 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 24177 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 24178 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 24179 | for ac_extension in a so sl; do |
| 24180 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 24181 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 24182 | ac_im_usrlibdir=$ac_im_libdir; break |
| 24183 | fi |
| 24184 | done |
| 24185 | # Screen out bogus values from the imake configuration. They are |
| 24186 | # bogus both because they are the default anyway, and because |
| 24187 | # using them would break gcc on systems where it needs fixed includes. |
| 24188 | case $ac_im_incroot in |
| 24189 | /usr/include) ;; |
| 24190 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 24191 | esac |
| 24192 | case $ac_im_usrlibdir in |
| 24193 | /usr/lib | /lib) ;; |
| 24194 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 24195 | esac |
| 24196 | fi |
| 24197 | cd .. |
| 24198 | rm -fr conftest.dir |
| 24199 | fi |
| 24200 | |
| 24201 | # Standard set of common directories for X headers. |
| 24202 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 24203 | ac_x_header_dirs=' |
| 24204 | /usr/X11/include |
| 24205 | /usr/X11R6/include |
| 24206 | /usr/X11R5/include |
| 24207 | /usr/X11R4/include |
| 24208 | |
| 24209 | /usr/include/X11 |
| 24210 | /usr/include/X11R6 |
| 24211 | /usr/include/X11R5 |
| 24212 | /usr/include/X11R4 |
| 24213 | |
| 24214 | /usr/local/X11/include |
| 24215 | /usr/local/X11R6/include |
| 24216 | /usr/local/X11R5/include |
| 24217 | /usr/local/X11R4/include |
| 24218 | |
| 24219 | /usr/local/include/X11 |
| 24220 | /usr/local/include/X11R6 |
| 24221 | /usr/local/include/X11R5 |
| 24222 | /usr/local/include/X11R4 |
| 24223 | |
| 24224 | /usr/X386/include |
| 24225 | /usr/x386/include |
| 24226 | /usr/XFree86/include/X11 |
| 24227 | |
| 24228 | /usr/include |
| 24229 | /usr/local/include |
| 24230 | /usr/unsupported/include |
| 24231 | /usr/athena/include |
| 24232 | /usr/local/x11r5/include |
| 24233 | /usr/lpp/Xamples/include |
| 24234 | |
| 24235 | /usr/openwin/include |
| 24236 | /usr/openwin/share/include' |
| 24237 | |
| 24238 | if test "$ac_x_includes" = no; then |
| 24239 | # Guess where to find include files, by looking for Intrinsic.h. |
| 24240 | # First, try using that file with no special directory specified. |
| 24241 | cat >conftest.$ac_ext <<_ACEOF |
| 24242 | /* confdefs.h. */ |
| 24243 | _ACEOF |
| 24244 | cat confdefs.h >>conftest.$ac_ext |
| 24245 | cat >>conftest.$ac_ext <<_ACEOF |
| 24246 | /* end confdefs.h. */ |
| 24247 | #include <X11/Intrinsic.h> |
| 24248 | _ACEOF |
| 24249 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 24250 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 24251 | ac_status=$? |
| 24252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24253 | rm -f conftest.er1 |
| 24254 | cat conftest.err >&5 |
| 24255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24256 | (exit $ac_status); } >/dev/null; then |
| 24257 | if test -s conftest.err; then |
| 24258 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 24259 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 24260 | else |
| 24261 | ac_cpp_err= |
| 24262 | fi |
| 24263 | else |
| 24264 | ac_cpp_err=yes |
| 24265 | fi |
| 24266 | if test -z "$ac_cpp_err"; then |
| 24267 | # We can compile using X headers with no special include directory. |
| 24268 | ac_x_includes= |
| 24269 | else |
| 24270 | echo "$as_me: failed program was:" >&5 |
| 24271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24272 | |
| 24273 | for ac_dir in $ac_x_header_dirs; do |
| 24274 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 24275 | ac_x_includes=$ac_dir |
| 24276 | break |
| 24277 | fi |
| 24278 | done |
| 24279 | fi |
| 24280 | rm -f conftest.err conftest.$ac_ext |
| 24281 | fi # $ac_x_includes = no |
| 24282 | |
| 24283 | if test "$ac_x_libraries" = no; then |
| 24284 | # Check for the libraries. |
| 24285 | # See if we find them without any special options. |
| 24286 | # Don't add to $LIBS permanently. |
| 24287 | ac_save_LIBS=$LIBS |
| 24288 | LIBS="-lXt $LIBS" |
| 24289 | cat >conftest.$ac_ext <<_ACEOF |
| 24290 | /* confdefs.h. */ |
| 24291 | _ACEOF |
| 24292 | cat confdefs.h >>conftest.$ac_ext |
| 24293 | cat >>conftest.$ac_ext <<_ACEOF |
| 24294 | /* end confdefs.h. */ |
| 24295 | #include <X11/Intrinsic.h> |
| 24296 | int |
| 24297 | main () |
| 24298 | { |
| 24299 | XtMalloc (0) |
| 24300 | ; |
| 24301 | return 0; |
| 24302 | } |
| 24303 | _ACEOF |
| 24304 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 24306 | (eval $ac_link) 2>conftest.er1 |
| 24307 | ac_status=$? |
| 24308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24309 | rm -f conftest.er1 |
| 24310 | cat conftest.err >&5 |
| 24311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24312 | (exit $ac_status); } && |
| 24313 | { ac_try='test -z "$ac_c_werror_flag" |
| 24314 | || test ! -s conftest.err' |
| 24315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24316 | (eval $ac_try) 2>&5 |
| 24317 | ac_status=$? |
| 24318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24319 | (exit $ac_status); }; } && |
| 24320 | { ac_try='test -s conftest$ac_exeext' |
| 24321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24322 | (eval $ac_try) 2>&5 |
| 24323 | ac_status=$? |
| 24324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24325 | (exit $ac_status); }; }; then |
| 24326 | LIBS=$ac_save_LIBS |
| 24327 | # We can link X programs with no special library path. |
| 24328 | ac_x_libraries= |
| 24329 | else |
| 24330 | echo "$as_me: failed program was:" >&5 |
| 24331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24332 | |
| 24333 | LIBS=$ac_save_LIBS |
| 24334 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 24335 | do |
| 24336 | # Don't even attempt the hair of trying to link an X program! |
| 24337 | for ac_extension in a so sl; do |
| 24338 | if test -r $ac_dir/libXt.$ac_extension; then |
| 24339 | ac_x_libraries=$ac_dir |
| 24340 | break 2 |
| 24341 | fi |
| 24342 | done |
| 24343 | done |
| 24344 | fi |
| 24345 | rm -f conftest.err conftest.$ac_objext \ |
| 24346 | conftest$ac_exeext conftest.$ac_ext |
| 24347 | fi # $ac_x_libraries = no |
| 24348 | |
| 24349 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
| 24350 | # Didn't find X anywhere. Cache the known absence of X. |
| 24351 | ac_cv_have_x="have_x=no" |
| 24352 | else |
| 24353 | # Record where we found X for the cache. |
| 24354 | ac_cv_have_x="have_x=yes \ |
| 24355 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 24356 | fi |
| 24357 | fi |
| 24358 | |
| 24359 | fi |
| 24360 | eval "$ac_cv_have_x" |
| 24361 | fi # $with_x != no |
| 24362 | |
| 24363 | if test "$have_x" != yes; then |
| 24364 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 24365 | echo "${ECHO_T}$have_x" >&6 |
| 24366 | no_x=yes |
| 24367 | else |
| 24368 | # If each of the values was on the command line, it overrides each guess. |
| 24369 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 24370 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 24371 | # Update the cache value to reflect the command line values. |
| 24372 | ac_cv_have_x="have_x=yes \ |
| 24373 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 24374 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 24375 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
| 24376 | fi |
| 24377 | |
| 24378 | |
| 24379 | # Check whether we should enable the TUI, but only do so if we really |
| 24380 | # can. |
| 24381 | if test x"$enable_tui" = xyes; then |
| 24382 | if test -d $srcdir/tui; then |
| 24383 | if test "$ac_cv_search_waddstr" != no; then |
| 24384 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" |
| 24385 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" |
| 24386 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" |
| 24387 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" |
| 24388 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" |
| 24389 | CONFIG_ALL="${CONFIG_ALL} all-tui" |
| 24390 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" |
| 24391 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" |
| 24392 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" |
| 24393 | else |
| 24394 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
| 24395 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} |
| 24396 | fi |
| 24397 | fi |
| 24398 | fi |
| 24399 | |
| 24400 | # Unlike the sim directory, whether a simulator is linked is controlled by |
| 24401 | # presence of a gdb_sim definition in the target configure.tgt entry. |
| 24402 | # This code just checks for a few cases where we'd like to ignore those |
| 24403 | # definitions, even when they're present in the '.mt' file. These cases |
| 24404 | # are when --disable-sim is specified, or if the simulator directory is |
| 24405 | # not part of the source tree. |
| 24406 | # |
| 24407 | # Check whether --enable-sim or --disable-sim was given. |
| 24408 | if test "${enable_sim+set}" = set; then |
| 24409 | enableval="$enable_sim" |
| 24410 | echo "enable_sim = $enable_sim"; |
| 24411 | echo "enableval = ${enableval}"; |
| 24412 | case "${enableval}" in |
| 24413 | yes) ignore_sim=false ;; |
| 24414 | no) ignore_sim=true ;; |
| 24415 | *) ignore_sim=false ;; |
| 24416 | esac |
| 24417 | else |
| 24418 | ignore_sim=false |
| 24419 | fi; |
| 24420 | |
| 24421 | if test ! -d "${srcdir}/../sim"; then |
| 24422 | ignore_sim=true |
| 24423 | fi |
| 24424 | |
| 24425 | SIM= |
| 24426 | SIM_OBS= |
| 24427 | if test "${ignore_sim}" = "false"; then |
| 24428 | if test x"${gdb_sim}" != x ; then |
| 24429 | SIM="${gdb_sim}" |
| 24430 | SIM_OBS="remote-sim.o" |
| 24431 | |
| 24432 | cat >>confdefs.h <<\_ACEOF |
| 24433 | #define WITH_SIM 1 |
| 24434 | _ACEOF |
| 24435 | |
| 24436 | fi |
| 24437 | fi |
| 24438 | |
| 24439 | |
| 24440 | |
| 24441 | |
| 24442 | |
| 24443 | |
| 24444 | |
| 24445 | |
| 24446 | |
| 24447 | |
| 24448 | |
| 24449 | |
| 24450 | |
| 24451 | |
| 24452 | # List of host floatformats. |
| 24453 | |
| 24454 | cat >>confdefs.h <<_ACEOF |
| 24455 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
| 24456 | _ACEOF |
| 24457 | |
| 24458 | |
| 24459 | cat >>confdefs.h <<_ACEOF |
| 24460 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
| 24461 | _ACEOF |
| 24462 | |
| 24463 | |
| 24464 | cat >>confdefs.h <<_ACEOF |
| 24465 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
| 24466 | _ACEOF |
| 24467 | |
| 24468 | |
| 24469 | # target_subdir is used by the testsuite to find the target libraries. |
| 24470 | target_subdir= |
| 24471 | if test "${host}" != "${target}"; then |
| 24472 | target_subdir="${target_alias}/" |
| 24473 | fi |
| 24474 | |
| 24475 | |
| 24476 | frags= |
| 24477 | if test "${gdb_native}" = "yes"; then |
| 24478 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
| 24479 | if test ! -f ${host_makefile_frag}; then |
| 24480 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
| 24481 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} |
| 24482 | { (exit 1); exit 1; }; } |
| 24483 | fi |
| 24484 | frags="$frags $host_makefile_frag" |
| 24485 | else |
| 24486 | host_makefile_frag=/dev/null |
| 24487 | fi |
| 24488 | |
| 24489 | |
| 24490 | |
| 24491 | |
| 24492 | if test "${gdb_native}" = "yes"; then |
| 24493 | # We pick this up from the host configuration file (.mh) because we |
| 24494 | # do not have a native configuration Makefile fragment. |
| 24495 | nativefile=`sed -n ' |
| 24496 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
| 24497 | ' ${host_makefile_frag}` |
| 24498 | fi |
| 24499 | |
| 24500 | |
| 24501 | if test x"${gdb_osabi}" != x ; then |
| 24502 | |
| 24503 | cat >>confdefs.h <<_ACEOF |
| 24504 | #define GDB_OSABI_DEFAULT $gdb_osabi |
| 24505 | _ACEOF |
| 24506 | |
| 24507 | fi |
| 24508 | |
| 24509 | # Enable multi-ice-gdb-server. |
| 24510 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
| 24511 | if test "${enable_multi_ice+set}" = set; then |
| 24512 | enableval="$enable_multi_ice" |
| 24513 | case $enableval in |
| 24514 | yes | no) |
| 24515 | ;; |
| 24516 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
| 24517 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} |
| 24518 | { (exit 1); exit 1; }; } ;; |
| 24519 | esac |
| 24520 | fi; |
| 24521 | if test "x$enable_multi_ice" = xyes; then |
| 24522 | |
| 24523 | |
| 24524 | subdirs="$subdirs multi-ice" |
| 24525 | |
| 24526 | fi |
| 24527 | |
| 24528 | # We only build gdbserver automatically in a native configuration. |
| 24529 | if test "$gdb_native" = "yes"; then |
| 24530 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
| 24531 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 |
| 24532 | if test "x$build_gdbserver" = xyes; then |
| 24533 | echo "$as_me:$LINENO: result: yes" >&5 |
| 24534 | echo "${ECHO_T}yes" >&6 |
| 24535 | |
| 24536 | |
| 24537 | subdirs="$subdirs gdbserver" |
| 24538 | |
| 24539 | else |
| 24540 | echo "$as_me:$LINENO: result: no" >&5 |
| 24541 | echo "${ECHO_T}no" >&6 |
| 24542 | fi |
| 24543 | fi |
| 24544 | |
| 24545 | # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link |
| 24546 | # to an empty version. |
| 24547 | |
| 24548 | files= |
| 24549 | links= |
| 24550 | |
| 24551 | rm -f nm.h |
| 24552 | nm_h="" |
| 24553 | if test "${nativefile}" != ""; then |
| 24554 | nm_h=nm.h |
| 24555 | case "${nativefile}" in |
| 24556 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; |
| 24557 | * ) GDB_NM_FILE="${nativefile}" |
| 24558 | esac |
| 24559 | files="${files} ${GDB_NM_FILE}" |
| 24560 | links="${links} nm.h" |
| 24561 | |
| 24562 | cat >>confdefs.h <<_ACEOF |
| 24563 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
| 24564 | _ACEOF |
| 24565 | |
| 24566 | fi |
| 24567 | |
| 24568 | |
| 24569 | ac_sources="$files" |
| 24570 | ac_dests="$links" |
| 24571 | while test -n "$ac_sources"; do |
| 24572 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* |
| 24573 | set $ac_sources; ac_source=$1; shift; ac_sources=$* |
| 24574 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" |
| 24575 | done |
| 24576 | ac_config_links="$ac_config_links $ac_config_links_1" |
| 24577 | |
| 24578 | |
| 24579 | |
| 24580 | |
| 24581 | |
| 24582 | |
| 24583 | cat >>confdefs.h <<\_ACEOF |
| 24584 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" |
| 24585 | _ACEOF |
| 24586 | |
| 24587 | |
| 24588 | |
| 24589 | |
| 24590 | |
| 24591 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
| 24592 | if test "${with_libiconv_prefix+set}" = set; then |
| 24593 | withval="$with_libiconv_prefix" |
| 24594 | |
| 24595 | for dir in `echo "$withval" | tr : ' '`; do |
| 24596 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi |
| 24597 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi |
| 24598 | done |
| 24599 | |
| 24600 | fi; |
| 24601 | |
| 24602 | echo "$as_me:$LINENO: checking for iconv" >&5 |
| 24603 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
| 24604 | if test "${am_cv_func_iconv+set}" = set; then |
| 24605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24606 | else |
| 24607 | |
| 24608 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 24609 | am_cv_lib_iconv=no |
| 24610 | cat >conftest.$ac_ext <<_ACEOF |
| 24611 | /* confdefs.h. */ |
| 24612 | _ACEOF |
| 24613 | cat confdefs.h >>conftest.$ac_ext |
| 24614 | cat >>conftest.$ac_ext <<_ACEOF |
| 24615 | /* end confdefs.h. */ |
| 24616 | #include <stdlib.h> |
| 24617 | #include <iconv.h> |
| 24618 | int |
| 24619 | main () |
| 24620 | { |
| 24621 | iconv_t cd = iconv_open("",""); |
| 24622 | iconv(cd,NULL,NULL,NULL,NULL); |
| 24623 | iconv_close(cd); |
| 24624 | ; |
| 24625 | return 0; |
| 24626 | } |
| 24627 | _ACEOF |
| 24628 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 24630 | (eval $ac_link) 2>conftest.er1 |
| 24631 | ac_status=$? |
| 24632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24633 | rm -f conftest.er1 |
| 24634 | cat conftest.err >&5 |
| 24635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24636 | (exit $ac_status); } && |
| 24637 | { ac_try='test -z "$ac_c_werror_flag" |
| 24638 | || test ! -s conftest.err' |
| 24639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24640 | (eval $ac_try) 2>&5 |
| 24641 | ac_status=$? |
| 24642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24643 | (exit $ac_status); }; } && |
| 24644 | { ac_try='test -s conftest$ac_exeext' |
| 24645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24646 | (eval $ac_try) 2>&5 |
| 24647 | ac_status=$? |
| 24648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24649 | (exit $ac_status); }; }; then |
| 24650 | am_cv_func_iconv=yes |
| 24651 | else |
| 24652 | echo "$as_me: failed program was:" >&5 |
| 24653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24654 | |
| 24655 | fi |
| 24656 | rm -f conftest.err conftest.$ac_objext \ |
| 24657 | conftest$ac_exeext conftest.$ac_ext |
| 24658 | if test "$am_cv_func_iconv" != yes; then |
| 24659 | am_save_LIBS="$LIBS" |
| 24660 | LIBS="$LIBS -liconv" |
| 24661 | cat >conftest.$ac_ext <<_ACEOF |
| 24662 | /* confdefs.h. */ |
| 24663 | _ACEOF |
| 24664 | cat confdefs.h >>conftest.$ac_ext |
| 24665 | cat >>conftest.$ac_ext <<_ACEOF |
| 24666 | /* end confdefs.h. */ |
| 24667 | #include <stdlib.h> |
| 24668 | #include <iconv.h> |
| 24669 | int |
| 24670 | main () |
| 24671 | { |
| 24672 | iconv_t cd = iconv_open("",""); |
| 24673 | iconv(cd,NULL,NULL,NULL,NULL); |
| 24674 | iconv_close(cd); |
| 24675 | ; |
| 24676 | return 0; |
| 24677 | } |
| 24678 | _ACEOF |
| 24679 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 24680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 24681 | (eval $ac_link) 2>conftest.er1 |
| 24682 | ac_status=$? |
| 24683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24684 | rm -f conftest.er1 |
| 24685 | cat conftest.err >&5 |
| 24686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24687 | (exit $ac_status); } && |
| 24688 | { ac_try='test -z "$ac_c_werror_flag" |
| 24689 | || test ! -s conftest.err' |
| 24690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24691 | (eval $ac_try) 2>&5 |
| 24692 | ac_status=$? |
| 24693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24694 | (exit $ac_status); }; } && |
| 24695 | { ac_try='test -s conftest$ac_exeext' |
| 24696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24697 | (eval $ac_try) 2>&5 |
| 24698 | ac_status=$? |
| 24699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24700 | (exit $ac_status); }; }; then |
| 24701 | am_cv_lib_iconv=yes |
| 24702 | am_cv_func_iconv=yes |
| 24703 | else |
| 24704 | echo "$as_me: failed program was:" >&5 |
| 24705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24706 | |
| 24707 | fi |
| 24708 | rm -f conftest.err conftest.$ac_objext \ |
| 24709 | conftest$ac_exeext conftest.$ac_ext |
| 24710 | LIBS="$am_save_LIBS" |
| 24711 | fi |
| 24712 | |
| 24713 | fi |
| 24714 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 24715 | echo "${ECHO_T}$am_cv_func_iconv" >&6 |
| 24716 | if test "$am_cv_func_iconv" = yes; then |
| 24717 | |
| 24718 | cat >>confdefs.h <<\_ACEOF |
| 24719 | #define HAVE_ICONV 1 |
| 24720 | _ACEOF |
| 24721 | |
| 24722 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 24723 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 |
| 24724 | if test "${am_cv_proto_iconv+set}" = set; then |
| 24725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24726 | else |
| 24727 | |
| 24728 | cat >conftest.$ac_ext <<_ACEOF |
| 24729 | /* confdefs.h. */ |
| 24730 | _ACEOF |
| 24731 | cat confdefs.h >>conftest.$ac_ext |
| 24732 | cat >>conftest.$ac_ext <<_ACEOF |
| 24733 | /* end confdefs.h. */ |
| 24734 | |
| 24735 | #include <stdlib.h> |
| 24736 | #include <iconv.h> |
| 24737 | extern |
| 24738 | #ifdef __cplusplus |
| 24739 | "C" |
| 24740 | #endif |
| 24741 | #if defined(__STDC__) || defined(__cplusplus) |
| 24742 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 24743 | #else |
| 24744 | size_t iconv(); |
| 24745 | #endif |
| 24746 | |
| 24747 | int |
| 24748 | main () |
| 24749 | { |
| 24750 | |
| 24751 | ; |
| 24752 | return 0; |
| 24753 | } |
| 24754 | _ACEOF |
| 24755 | rm -f conftest.$ac_objext |
| 24756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24757 | (eval $ac_compile) 2>conftest.er1 |
| 24758 | ac_status=$? |
| 24759 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24760 | rm -f conftest.er1 |
| 24761 | cat conftest.err >&5 |
| 24762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24763 | (exit $ac_status); } && |
| 24764 | { ac_try='test -z "$ac_c_werror_flag" |
| 24765 | || test ! -s conftest.err' |
| 24766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24767 | (eval $ac_try) 2>&5 |
| 24768 | ac_status=$? |
| 24769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24770 | (exit $ac_status); }; } && |
| 24771 | { ac_try='test -s conftest.$ac_objext' |
| 24772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 24773 | (eval $ac_try) 2>&5 |
| 24774 | ac_status=$? |
| 24775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24776 | (exit $ac_status); }; }; then |
| 24777 | am_cv_proto_iconv_arg1="" |
| 24778 | else |
| 24779 | echo "$as_me: failed program was:" >&5 |
| 24780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24781 | |
| 24782 | am_cv_proto_iconv_arg1="const" |
| 24783 | fi |
| 24784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24785 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
| 24786 | fi |
| 24787 | |
| 24788 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
| 24789 | echo "$as_me:$LINENO: result: ${ac_t:- |
| 24790 | }$am_cv_proto_iconv" >&5 |
| 24791 | echo "${ECHO_T}${ac_t:- |
| 24792 | }$am_cv_proto_iconv" >&6 |
| 24793 | |
| 24794 | cat >>confdefs.h <<_ACEOF |
| 24795 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
| 24796 | _ACEOF |
| 24797 | |
| 24798 | fi |
| 24799 | LIBICONV= |
| 24800 | if test "$am_cv_lib_iconv" = yes; then |
| 24801 | LIBICONV="-liconv" |
| 24802 | fi |
| 24803 | |
| 24804 | |
| 24805 | |
| 24806 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" |
| 24807 | ac_config_commands="$ac_config_commands default" |
| 24808 | cat >confcache <<\_ACEOF |
| 24809 | # This file is a shell script that caches the results of configure |
| 24810 | # tests run on this system so they can be shared between configure |
| 24811 | # scripts and configure runs, see configure's option --config-cache. |
| 24812 | # It is not useful on other systems. If it contains results you don't |
| 24813 | # want to keep, you may remove or edit it. |
| 24814 | # |
| 24815 | # config.status only pays attention to the cache file if you give it |
| 24816 | # the --recheck option to rerun configure. |
| 24817 | # |
| 24818 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 24819 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 24820 | # following values. |
| 24821 | |
| 24822 | _ACEOF |
| 24823 | |
| 24824 | # The following way of writing the cache mishandles newlines in values, |
| 24825 | # but we know of no workaround that is simple, portable, and efficient. |
| 24826 | # So, don't put newlines in cache variables' values. |
| 24827 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 24828 | # and sets the high bit in the cache file unless we assign to the vars. |
| 24829 | { |
| 24830 | (set) 2>&1 | |
| 24831 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 24832 | *ac_space=\ *) |
| 24833 | # `set' does not quote correctly, so add quotes (double-quote |
| 24834 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 24835 | sed -n \ |
| 24836 | "s/'/'\\\\''/g; |
| 24837 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 24838 | ;; |
| 24839 | *) |
| 24840 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 24841 | sed -n \ |
| 24842 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 24843 | ;; |
| 24844 | esac; |
| 24845 | } | |
| 24846 | sed ' |
| 24847 | t clear |
| 24848 | : clear |
| 24849 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 24850 | t end |
| 24851 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 24852 | : end' >>confcache |
| 24853 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 24854 | if test -w $cache_file; then |
| 24855 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 24856 | cat confcache >$cache_file |
| 24857 | else |
| 24858 | echo "not updating unwritable cache $cache_file" |
| 24859 | fi |
| 24860 | fi |
| 24861 | rm -f confcache |
| 24862 | |
| 24863 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 24864 | # Let make expand exec_prefix. |
| 24865 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 24866 | |
| 24867 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 24868 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 24869 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 24870 | # (actually we leave an empty line to preserve line numbers). |
| 24871 | if test "x$srcdir" = x.; then |
| 24872 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 24873 | s/:*\$(srcdir):*/:/; |
| 24874 | s/:*\${srcdir}:*/:/; |
| 24875 | s/:*@srcdir@:*/:/; |
| 24876 | s/^\([^=]*=[ ]*\):*/\1/; |
| 24877 | s/:*$//; |
| 24878 | s/^[^=]*=[ ]*$//; |
| 24879 | }' |
| 24880 | fi |
| 24881 | |
| 24882 | DEFS=-DHAVE_CONFIG_H |
| 24883 | |
| 24884 | ac_libobjs= |
| 24885 | ac_ltlibobjs= |
| 24886 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 24887 | # 1. Remove the extension, and $U if already installed. |
| 24888 | ac_i=`echo "$ac_i" | |
| 24889 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 24890 | # 2. Add them. |
| 24891 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 24892 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 24893 | done |
| 24894 | LIBOBJS=$ac_libobjs |
| 24895 | |
| 24896 | LTLIBOBJS=$ac_ltlibobjs |
| 24897 | |
| 24898 | |
| 24899 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 24900 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 24901 | Usually this means the macro was only invoked conditionally." >&5 |
| 24902 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 24903 | Usually this means the macro was only invoked conditionally." >&2;} |
| 24904 | { (exit 1); exit 1; }; } |
| 24905 | fi |
| 24906 | |
| 24907 | : ${CONFIG_STATUS=./config.status} |
| 24908 | ac_clean_files_save=$ac_clean_files |
| 24909 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 24910 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 24911 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 24912 | cat >$CONFIG_STATUS <<_ACEOF |
| 24913 | #! $SHELL |
| 24914 | # Generated by $as_me. |
| 24915 | # Run this file to recreate the current configuration. |
| 24916 | # Compiler output produced by configure, useful for debugging |
| 24917 | # configure, is in config.log if it exists. |
| 24918 | |
| 24919 | debug=false |
| 24920 | ac_cs_recheck=false |
| 24921 | ac_cs_silent=false |
| 24922 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 24923 | _ACEOF |
| 24924 | |
| 24925 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24926 | ## --------------------- ## |
| 24927 | ## M4sh Initialization. ## |
| 24928 | ## --------------------- ## |
| 24929 | |
| 24930 | # Be Bourne compatible |
| 24931 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 24932 | emulate sh |
| 24933 | NULLCMD=: |
| 24934 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 24935 | # is contrary to our usage. Disable this feature. |
| 24936 | alias -g '${1+"$@"}'='"$@"' |
| 24937 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 24938 | set -o posix |
| 24939 | fi |
| 24940 | DUALCASE=1; export DUALCASE # for MKS sh |
| 24941 | |
| 24942 | # Support unset when possible. |
| 24943 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 24944 | as_unset=unset |
| 24945 | else |
| 24946 | as_unset=false |
| 24947 | fi |
| 24948 | |
| 24949 | |
| 24950 | # Work around bugs in pre-3.0 UWIN ksh. |
| 24951 | $as_unset ENV MAIL MAILPATH |
| 24952 | PS1='$ ' |
| 24953 | PS2='> ' |
| 24954 | PS4='+ ' |
| 24955 | |
| 24956 | # NLS nuisances. |
| 24957 | for as_var in \ |
| 24958 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 24959 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 24960 | LC_TELEPHONE LC_TIME |
| 24961 | do |
| 24962 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 24963 | eval $as_var=C; export $as_var |
| 24964 | else |
| 24965 | $as_unset $as_var |
| 24966 | fi |
| 24967 | done |
| 24968 | |
| 24969 | # Required to use basename. |
| 24970 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 24971 | as_expr=expr |
| 24972 | else |
| 24973 | as_expr=false |
| 24974 | fi |
| 24975 | |
| 24976 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 24977 | as_basename=basename |
| 24978 | else |
| 24979 | as_basename=false |
| 24980 | fi |
| 24981 | |
| 24982 | |
| 24983 | # Name of the executable. |
| 24984 | as_me=`$as_basename "$0" || |
| 24985 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 24986 | X"$0" : 'X\(//\)$' \| \ |
| 24987 | X"$0" : 'X\(/\)$' \| \ |
| 24988 | . : '\(.\)' 2>/dev/null || |
| 24989 | echo X/"$0" | |
| 24990 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 24991 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 24992 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 24993 | s/.*/./; q'` |
| 24994 | |
| 24995 | |
| 24996 | # PATH needs CR, and LINENO needs CR and PATH. |
| 24997 | # Avoid depending upon Character Ranges. |
| 24998 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 24999 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 25000 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 25001 | as_cr_digits='0123456789' |
| 25002 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 25003 | |
| 25004 | # The user is always right. |
| 25005 | if test "${PATH_SEPARATOR+set}" != set; then |
| 25006 | echo "#! /bin/sh" >conf$$.sh |
| 25007 | echo "exit 0" >>conf$$.sh |
| 25008 | chmod +x conf$$.sh |
| 25009 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 25010 | PATH_SEPARATOR=';' |
| 25011 | else |
| 25012 | PATH_SEPARATOR=: |
| 25013 | fi |
| 25014 | rm -f conf$$.sh |
| 25015 | fi |
| 25016 | |
| 25017 | |
| 25018 | as_lineno_1=$LINENO |
| 25019 | as_lineno_2=$LINENO |
| 25020 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 25021 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 25022 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 25023 | # Find who we are. Look in the path if we contain no path at all |
| 25024 | # relative or not. |
| 25025 | case $0 in |
| 25026 | *[\\/]* ) as_myself=$0 ;; |
| 25027 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25028 | for as_dir in $PATH |
| 25029 | do |
| 25030 | IFS=$as_save_IFS |
| 25031 | test -z "$as_dir" && as_dir=. |
| 25032 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 25033 | done |
| 25034 | |
| 25035 | ;; |
| 25036 | esac |
| 25037 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 25038 | # in which case we are not to be found in the path. |
| 25039 | if test "x$as_myself" = x; then |
| 25040 | as_myself=$0 |
| 25041 | fi |
| 25042 | if test ! -f "$as_myself"; then |
| 25043 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 25044 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 25045 | { (exit 1); exit 1; }; } |
| 25046 | fi |
| 25047 | case $CONFIG_SHELL in |
| 25048 | '') |
| 25049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25050 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 25051 | do |
| 25052 | IFS=$as_save_IFS |
| 25053 | test -z "$as_dir" && as_dir=. |
| 25054 | for as_base in sh bash ksh sh5; do |
| 25055 | case $as_dir in |
| 25056 | /*) |
| 25057 | if ("$as_dir/$as_base" -c ' |
| 25058 | as_lineno_1=$LINENO |
| 25059 | as_lineno_2=$LINENO |
| 25060 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 25061 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 25062 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 25063 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 25064 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 25065 | CONFIG_SHELL=$as_dir/$as_base |
| 25066 | export CONFIG_SHELL |
| 25067 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 25068 | fi;; |
| 25069 | esac |
| 25070 | done |
| 25071 | done |
| 25072 | ;; |
| 25073 | esac |
| 25074 | |
| 25075 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 25076 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 25077 | # line-number line before each line; the second 'sed' does the real |
| 25078 | # work. The second script uses 'N' to pair each line-number line |
| 25079 | # with the numbered line, and appends trailing '-' during |
| 25080 | # substitution so that $LINENO is not a special case at line end. |
| 25081 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 25082 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 25083 | sed '=' <$as_myself | |
| 25084 | sed ' |
| 25085 | N |
| 25086 | s,$,-, |
| 25087 | : loop |
| 25088 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 25089 | t loop |
| 25090 | s,-$,, |
| 25091 | s,^['$as_cr_digits']*\n,, |
| 25092 | ' >$as_me.lineno && |
| 25093 | chmod +x $as_me.lineno || |
| 25094 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 25095 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 25096 | { (exit 1); exit 1; }; } |
| 25097 | |
| 25098 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 25099 | # (the dirname of $[0] is not the place where we might find the |
| 25100 | # original and so on. Autoconf is especially sensible to this). |
| 25101 | . ./$as_me.lineno |
| 25102 | # Exit status is that of the last command. |
| 25103 | exit |
| 25104 | } |
| 25105 | |
| 25106 | |
| 25107 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 25108 | *c*,-n*) ECHO_N= ECHO_C=' |
| 25109 | ' ECHO_T=' ' ;; |
| 25110 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 25111 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 25112 | esac |
| 25113 | |
| 25114 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 25115 | as_expr=expr |
| 25116 | else |
| 25117 | as_expr=false |
| 25118 | fi |
| 25119 | |
| 25120 | rm -f conf$$ conf$$.exe conf$$.file |
| 25121 | echo >conf$$.file |
| 25122 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 25123 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 25124 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 25125 | if test -f conf$$.exe; then |
| 25126 | # Don't use ln at all; we don't have any links |
| 25127 | as_ln_s='cp -p' |
| 25128 | else |
| 25129 | as_ln_s='ln -s' |
| 25130 | fi |
| 25131 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 25132 | as_ln_s=ln |
| 25133 | else |
| 25134 | as_ln_s='cp -p' |
| 25135 | fi |
| 25136 | rm -f conf$$ conf$$.exe conf$$.file |
| 25137 | |
| 25138 | if mkdir -p . 2>/dev/null; then |
| 25139 | as_mkdir_p=: |
| 25140 | else |
| 25141 | test -d ./-p && rmdir ./-p |
| 25142 | as_mkdir_p=false |
| 25143 | fi |
| 25144 | |
| 25145 | as_executable_p="test -f" |
| 25146 | |
| 25147 | # Sed expression to map a string onto a valid CPP name. |
| 25148 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 25149 | |
| 25150 | # Sed expression to map a string onto a valid variable name. |
| 25151 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 25152 | |
| 25153 | |
| 25154 | # IFS |
| 25155 | # We need space, tab and new line, in precisely that order. |
| 25156 | as_nl=' |
| 25157 | ' |
| 25158 | IFS=" $as_nl" |
| 25159 | |
| 25160 | # CDPATH. |
| 25161 | $as_unset CDPATH |
| 25162 | |
| 25163 | exec 6>&1 |
| 25164 | |
| 25165 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 25166 | # report actual input values of CONFIG_FILES etc. instead of their |
| 25167 | # values after options handling. Logging --version etc. is OK. |
| 25168 | exec 5>>config.log |
| 25169 | { |
| 25170 | echo |
| 25171 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 25172 | ## Running $as_me. ## |
| 25173 | _ASBOX |
| 25174 | } >&5 |
| 25175 | cat >&5 <<_CSEOF |
| 25176 | |
| 25177 | This file was extended by $as_me, which was |
| 25178 | generated by GNU Autoconf 2.59. Invocation command line was |
| 25179 | |
| 25180 | CONFIG_FILES = $CONFIG_FILES |
| 25181 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 25182 | CONFIG_LINKS = $CONFIG_LINKS |
| 25183 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 25184 | $ $0 $@ |
| 25185 | |
| 25186 | _CSEOF |
| 25187 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 25188 | echo >&5 |
| 25189 | _ACEOF |
| 25190 | |
| 25191 | # Files that config.status was made for. |
| 25192 | if test -n "$ac_config_files"; then |
| 25193 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 25194 | fi |
| 25195 | |
| 25196 | if test -n "$ac_config_headers"; then |
| 25197 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 25198 | fi |
| 25199 | |
| 25200 | if test -n "$ac_config_links"; then |
| 25201 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 25202 | fi |
| 25203 | |
| 25204 | if test -n "$ac_config_commands"; then |
| 25205 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 25206 | fi |
| 25207 | |
| 25208 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25209 | |
| 25210 | ac_cs_usage="\ |
| 25211 | \`$as_me' instantiates files from templates according to the |
| 25212 | current configuration. |
| 25213 | |
| 25214 | Usage: $0 [OPTIONS] [FILE]... |
| 25215 | |
| 25216 | -h, --help print this help, then exit |
| 25217 | -V, --version print version number, then exit |
| 25218 | -q, --quiet do not print progress messages |
| 25219 | -d, --debug don't remove temporary files |
| 25220 | --recheck update $as_me by reconfiguring in the same conditions |
| 25221 | --file=FILE[:TEMPLATE] |
| 25222 | instantiate the configuration file FILE |
| 25223 | --header=FILE[:TEMPLATE] |
| 25224 | instantiate the configuration header FILE |
| 25225 | |
| 25226 | Configuration files: |
| 25227 | $config_files |
| 25228 | |
| 25229 | Configuration headers: |
| 25230 | $config_headers |
| 25231 | |
| 25232 | Configuration links: |
| 25233 | $config_links |
| 25234 | |
| 25235 | Configuration commands: |
| 25236 | $config_commands |
| 25237 | |
| 25238 | Report bugs to <bug-autoconf@gnu.org>." |
| 25239 | _ACEOF |
| 25240 | |
| 25241 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25242 | ac_cs_version="\\ |
| 25243 | config.status |
| 25244 | configured by $0, generated by GNU Autoconf 2.59, |
| 25245 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 25246 | |
| 25247 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 25248 | This config.status script is free software; the Free Software Foundation |
| 25249 | gives unlimited permission to copy, distribute and modify it." |
| 25250 | srcdir=$srcdir |
| 25251 | INSTALL="$INSTALL" |
| 25252 | _ACEOF |
| 25253 | |
| 25254 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25255 | # If no file are specified by the user, then we need to provide default |
| 25256 | # value. By we need to know if files were specified by the user. |
| 25257 | ac_need_defaults=: |
| 25258 | while test $# != 0 |
| 25259 | do |
| 25260 | case $1 in |
| 25261 | --*=*) |
| 25262 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 25263 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 25264 | ac_shift=: |
| 25265 | ;; |
| 25266 | -*) |
| 25267 | ac_option=$1 |
| 25268 | ac_optarg=$2 |
| 25269 | ac_shift=shift |
| 25270 | ;; |
| 25271 | *) # This is not an option, so the user has probably given explicit |
| 25272 | # arguments. |
| 25273 | ac_option=$1 |
| 25274 | ac_need_defaults=false;; |
| 25275 | esac |
| 25276 | |
| 25277 | case $ac_option in |
| 25278 | # Handling of the options. |
| 25279 | _ACEOF |
| 25280 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25281 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 25282 | ac_cs_recheck=: ;; |
| 25283 | --version | --vers* | -V ) |
| 25284 | echo "$ac_cs_version"; exit 0 ;; |
| 25285 | --he | --h) |
| 25286 | # Conflict between --help and --header |
| 25287 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 25288 | Try \`$0 --help' for more information." >&5 |
| 25289 | echo "$as_me: error: ambiguous option: $1 |
| 25290 | Try \`$0 --help' for more information." >&2;} |
| 25291 | { (exit 1); exit 1; }; };; |
| 25292 | --help | --hel | -h ) |
| 25293 | echo "$ac_cs_usage"; exit 0 ;; |
| 25294 | --debug | --d* | -d ) |
| 25295 | debug=: ;; |
| 25296 | --file | --fil | --fi | --f ) |
| 25297 | $ac_shift |
| 25298 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 25299 | ac_need_defaults=false;; |
| 25300 | --header | --heade | --head | --hea ) |
| 25301 | $ac_shift |
| 25302 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 25303 | ac_need_defaults=false;; |
| 25304 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 25305 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 25306 | ac_cs_silent=: ;; |
| 25307 | |
| 25308 | # This is an error. |
| 25309 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 25310 | Try \`$0 --help' for more information." >&5 |
| 25311 | echo "$as_me: error: unrecognized option: $1 |
| 25312 | Try \`$0 --help' for more information." >&2;} |
| 25313 | { (exit 1); exit 1; }; } ;; |
| 25314 | |
| 25315 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 25316 | |
| 25317 | esac |
| 25318 | shift |
| 25319 | done |
| 25320 | |
| 25321 | ac_configure_extra_args= |
| 25322 | |
| 25323 | if $ac_cs_silent; then |
| 25324 | exec 6>/dev/null |
| 25325 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 25326 | fi |
| 25327 | |
| 25328 | _ACEOF |
| 25329 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25330 | if \$ac_cs_recheck; then |
| 25331 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 25332 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 25333 | fi |
| 25334 | |
| 25335 | _ACEOF |
| 25336 | |
| 25337 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25338 | # |
| 25339 | # INIT-COMMANDS section. |
| 25340 | # |
| 25341 | |
| 25342 | |
| 25343 | GCC="$GCC" |
| 25344 | CC="$CC" |
| 25345 | acx_cv_header_stdint="$acx_cv_header_stdint" |
| 25346 | acx_cv_type_int8_t="$acx_cv_type_int8_t" |
| 25347 | acx_cv_type_int16_t="$acx_cv_type_int16_t" |
| 25348 | acx_cv_type_int32_t="$acx_cv_type_int32_t" |
| 25349 | acx_cv_type_int64_t="$acx_cv_type_int64_t" |
| 25350 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" |
| 25351 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" |
| 25352 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" |
| 25353 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" |
| 25354 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" |
| 25355 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" |
| 25356 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" |
| 25357 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" |
| 25358 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" |
| 25359 | |
| 25360 | |
| 25361 | gdb_host_cpu=$gdb_host_cpu |
| 25362 | nativefile=$nativefile |
| 25363 | |
| 25364 | |
| 25365 | _ACEOF |
| 25366 | |
| 25367 | |
| 25368 | |
| 25369 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25370 | for ac_config_target in $ac_config_targets |
| 25371 | do |
| 25372 | case "$ac_config_target" in |
| 25373 | # Handling of arguments. |
| 25374 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 25375 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; |
| 25376 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; |
| 25377 | "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;; |
| 25378 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 25379 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
| 25380 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 25381 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 25382 | { (exit 1); exit 1; }; };; |
| 25383 | esac |
| 25384 | done |
| 25385 | |
| 25386 | # If the user did not use the arguments to specify the items to instantiate, |
| 25387 | # then the envvar interface is used. Set only those that are not. |
| 25388 | # We use the long form for the default assignment because of an extremely |
| 25389 | # bizarre bug on SunOS 4.1.3. |
| 25390 | if $ac_need_defaults; then |
| 25391 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 25392 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 25393 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
| 25394 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 25395 | fi |
| 25396 | |
| 25397 | # Have a temporary directory for convenience. Make it in the build tree |
| 25398 | # simply because there is no reason to put it here, and in addition, |
| 25399 | # creating and moving files from /tmp can sometimes cause problems. |
| 25400 | # Create a temporary directory, and hook for its removal unless debugging. |
| 25401 | $debug || |
| 25402 | { |
| 25403 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 25404 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 25405 | } |
| 25406 | |
| 25407 | # Create a (secure) tmp directory for tmp files. |
| 25408 | |
| 25409 | { |
| 25410 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 25411 | test -n "$tmp" && test -d "$tmp" |
| 25412 | } || |
| 25413 | { |
| 25414 | tmp=./confstat$$-$RANDOM |
| 25415 | (umask 077 && mkdir $tmp) |
| 25416 | } || |
| 25417 | { |
| 25418 | echo "$me: cannot create a temporary directory in ." >&2 |
| 25419 | { (exit 1); exit 1; } |
| 25420 | } |
| 25421 | |
| 25422 | _ACEOF |
| 25423 | |
| 25424 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25425 | |
| 25426 | # |
| 25427 | # CONFIG_FILES section. |
| 25428 | # |
| 25429 | |
| 25430 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 25431 | # This happens for instance when ./config.status config.h |
| 25432 | if test -n "\$CONFIG_FILES"; then |
| 25433 | # Protect against being on the right side of a sed subst in config.status. |
| 25434 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 25435 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 25436 | s,@SHELL@,$SHELL,;t t |
| 25437 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 25438 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 25439 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 25440 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 25441 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 25442 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 25443 | s,@exec_prefix@,$exec_prefix,;t t |
| 25444 | s,@prefix@,$prefix,;t t |
| 25445 | s,@program_transform_name@,$program_transform_name,;t t |
| 25446 | s,@bindir@,$bindir,;t t |
| 25447 | s,@sbindir@,$sbindir,;t t |
| 25448 | s,@libexecdir@,$libexecdir,;t t |
| 25449 | s,@datadir@,$datadir,;t t |
| 25450 | s,@sysconfdir@,$sysconfdir,;t t |
| 25451 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 25452 | s,@localstatedir@,$localstatedir,;t t |
| 25453 | s,@libdir@,$libdir,;t t |
| 25454 | s,@includedir@,$includedir,;t t |
| 25455 | s,@oldincludedir@,$oldincludedir,;t t |
| 25456 | s,@infodir@,$infodir,;t t |
| 25457 | s,@mandir@,$mandir,;t t |
| 25458 | s,@build_alias@,$build_alias,;t t |
| 25459 | s,@host_alias@,$host_alias,;t t |
| 25460 | s,@target_alias@,$target_alias,;t t |
| 25461 | s,@DEFS@,$DEFS,;t t |
| 25462 | s,@ECHO_C@,$ECHO_C,;t t |
| 25463 | s,@ECHO_N@,$ECHO_N,;t t |
| 25464 | s,@ECHO_T@,$ECHO_T,;t t |
| 25465 | s,@LIBS@,$LIBS,;t t |
| 25466 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| 25467 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| 25468 | s,@MAINT@,$MAINT,;t t |
| 25469 | s,@CC@,$CC,;t t |
| 25470 | s,@CFLAGS@,$CFLAGS,;t t |
| 25471 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 25472 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 25473 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 25474 | s,@EXEEXT@,$EXEEXT,;t t |
| 25475 | s,@OBJEXT@,$OBJEXT,;t t |
| 25476 | s,@CPP@,$CPP,;t t |
| 25477 | s,@EGREP@,$EGREP,;t t |
| 25478 | s,@build@,$build,;t t |
| 25479 | s,@build_cpu@,$build_cpu,;t t |
| 25480 | s,@build_vendor@,$build_vendor,;t t |
| 25481 | s,@build_os@,$build_os,;t t |
| 25482 | s,@host@,$host,;t t |
| 25483 | s,@host_cpu@,$host_cpu,;t t |
| 25484 | s,@host_vendor@,$host_vendor,;t t |
| 25485 | s,@host_os@,$host_os,;t t |
| 25486 | s,@target@,$target,;t t |
| 25487 | s,@target_cpu@,$target_cpu,;t t |
| 25488 | s,@target_vendor@,$target_vendor,;t t |
| 25489 | s,@target_os@,$target_os,;t t |
| 25490 | s,@USE_NLS@,$USE_NLS,;t t |
| 25491 | s,@LIBINTL@,$LIBINTL,;t t |
| 25492 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t |
| 25493 | s,@INCINTL@,$INCINTL,;t t |
| 25494 | s,@XGETTEXT@,$XGETTEXT,;t t |
| 25495 | s,@GMSGFMT@,$GMSGFMT,;t t |
| 25496 | s,@POSUB@,$POSUB,;t t |
| 25497 | s,@CATALOGS@,$CATALOGS,;t t |
| 25498 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
| 25499 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
| 25500 | s,@GENCAT@,$GENCAT,;t t |
| 25501 | s,@CATOBJEXT@,$CATOBJEXT,;t t |
| 25502 | s,@localedir@,$localedir,;t t |
| 25503 | s,@PACKAGE@,$PACKAGE,;t t |
| 25504 | s,@subdirs@,$subdirs,;t t |
| 25505 | s,@TARGET_OBS@,$TARGET_OBS,;t t |
| 25506 | s,@AWK@,$AWK,;t t |
| 25507 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 25508 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 25509 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 25510 | s,@LN_S@,$LN_S,;t t |
| 25511 | s,@RANLIB@,$RANLIB,;t t |
| 25512 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 25513 | s,@YACC@,$YACC,;t t |
| 25514 | s,@AR@,$AR,;t t |
| 25515 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 25516 | s,@DLLTOOL@,$DLLTOOL,;t t |
| 25517 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t |
| 25518 | s,@WINDRES@,$WINDRES,;t t |
| 25519 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t |
| 25520 | s,@MIG@,$MIG,;t t |
| 25521 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t |
| 25522 | s,@READLINE@,$READLINE,;t t |
| 25523 | s,@READLINE_DEPS@,$READLINE_DEPS,;t t |
| 25524 | s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t |
| 25525 | s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t |
| 25526 | s,@LIBEXPAT@,$LIBEXPAT,;t t |
| 25527 | s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t |
| 25528 | s,@ALLOCA@,$ALLOCA,;t t |
| 25529 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t |
| 25530 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t |
| 25531 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t |
| 25532 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
| 25533 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t |
| 25534 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t |
| 25535 | s,@WIN32LIBS@,$WIN32LIBS,;t t |
| 25536 | s,@LIBGUI@,$LIBGUI,;t t |
| 25537 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t |
| 25538 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t |
| 25539 | s,@TCL_VERSION@,$TCL_VERSION,;t t |
| 25540 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t |
| 25541 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t |
| 25542 | s,@TCL_CC@,$TCL_CC,;t t |
| 25543 | s,@TCL_DEFS@,$TCL_DEFS,;t t |
| 25544 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t |
| 25545 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t |
| 25546 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t |
| 25547 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t |
| 25548 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t |
| 25549 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t |
| 25550 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t |
| 25551 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t |
| 25552 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t |
| 25553 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t |
| 25554 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t |
| 25555 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t |
| 25556 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t |
| 25557 | s,@TK_VERSION@,$TK_VERSION,;t t |
| 25558 | s,@TK_DEFS@,$TK_DEFS,;t t |
| 25559 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t |
| 25560 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t |
| 25561 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t |
| 25562 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t |
| 25563 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t |
| 25564 | s,@TCLHDIR@,$TCLHDIR,;t t |
| 25565 | s,@TKHDIR@,$TKHDIR,;t t |
| 25566 | s,@ITCLHDIR@,$ITCLHDIR,;t t |
| 25567 | s,@ITKHDIR@,$ITKHDIR,;t t |
| 25568 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t |
| 25569 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t |
| 25570 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t |
| 25571 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t |
| 25572 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t |
| 25573 | s,@ITK_VERSION@,$ITK_VERSION,;t t |
| 25574 | s,@ITK_DEFS@,$ITK_DEFS,;t t |
| 25575 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t |
| 25576 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t |
| 25577 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t |
| 25578 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 25579 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t |
| 25580 | s,@X_LIBS@,$X_LIBS,;t t |
| 25581 | s,@TCL_DEPS@,$TCL_DEPS,;t t |
| 25582 | s,@TK_DEPS@,$TK_DEPS,;t t |
| 25583 | s,@ITCLLIB@,$ITCLLIB,;t t |
| 25584 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t |
| 25585 | s,@ITKLIB@,$ITKLIB,;t t |
| 25586 | s,@ITK_DEPS@,$ITK_DEPS,;t t |
| 25587 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t |
| 25588 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t |
| 25589 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t |
| 25590 | s,@SIM@,$SIM,;t t |
| 25591 | s,@SIM_OBS@,$SIM_OBS,;t t |
| 25592 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t |
| 25593 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t |
| 25594 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t |
| 25595 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t |
| 25596 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t |
| 25597 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t |
| 25598 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t |
| 25599 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t |
| 25600 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t |
| 25601 | s,@target_subdir@,$target_subdir,;t t |
| 25602 | s,@frags@,$frags,;t t |
| 25603 | s,@nm_h@,$nm_h,;t t |
| 25604 | s,@LIBICONV@,$LIBICONV,;t t |
| 25605 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 25606 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 25607 | /@host_makefile_frag@/r $host_makefile_frag |
| 25608 | s,@host_makefile_frag@,,;t t |
| 25609 | CEOF |
| 25610 | |
| 25611 | _ACEOF |
| 25612 | |
| 25613 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25614 | # Split the substitutions into bite-sized pieces for seds with |
| 25615 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 25616 | ac_max_sed_lines=48 |
| 25617 | ac_sed_frag=1 # Number of current file. |
| 25618 | ac_beg=1 # First line for current file. |
| 25619 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 25620 | ac_more_lines=: |
| 25621 | ac_sed_cmds= |
| 25622 | while $ac_more_lines; do |
| 25623 | if test $ac_beg -gt 1; then |
| 25624 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 25625 | else |
| 25626 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 25627 | fi |
| 25628 | if test ! -s $tmp/subs.frag; then |
| 25629 | ac_more_lines=false |
| 25630 | else |
| 25631 | # The purpose of the label and of the branching condition is to |
| 25632 | # speed up the sed processing (if there are no `@' at all, there |
| 25633 | # is no need to browse any of the substitutions). |
| 25634 | # These are the two extra sed commands mentioned above. |
| 25635 | (echo ':t |
| 25636 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 25637 | if test -z "$ac_sed_cmds"; then |
| 25638 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 25639 | else |
| 25640 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 25641 | fi |
| 25642 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 25643 | ac_beg=$ac_end |
| 25644 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 25645 | fi |
| 25646 | done |
| 25647 | if test -z "$ac_sed_cmds"; then |
| 25648 | ac_sed_cmds=cat |
| 25649 | fi |
| 25650 | fi # test -n "$CONFIG_FILES" |
| 25651 | |
| 25652 | _ACEOF |
| 25653 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25654 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 25655 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 25656 | case $ac_file in |
| 25657 | - | *:- | *:-:* ) # input from stdin |
| 25658 | cat >$tmp/stdin |
| 25659 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 25660 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 25661 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 25662 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 25663 | * ) ac_file_in=$ac_file.in ;; |
| 25664 | esac |
| 25665 | |
| 25666 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 25667 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 25668 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 25669 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 25670 | X"$ac_file" : 'X\(//\)$' \| \ |
| 25671 | X"$ac_file" : 'X\(/\)' \| \ |
| 25672 | . : '\(.\)' 2>/dev/null || |
| 25673 | echo X"$ac_file" | |
| 25674 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 25675 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 25676 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 25677 | /^X\(\/\).*/{ s//\1/; q; } |
| 25678 | s/.*/./; q'` |
| 25679 | { if $as_mkdir_p; then |
| 25680 | mkdir -p "$ac_dir" |
| 25681 | else |
| 25682 | as_dir="$ac_dir" |
| 25683 | as_dirs= |
| 25684 | while test ! -d "$as_dir"; do |
| 25685 | as_dirs="$as_dir $as_dirs" |
| 25686 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 25687 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 25688 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25689 | X"$as_dir" : 'X\(//\)$' \| \ |
| 25690 | X"$as_dir" : 'X\(/\)' \| \ |
| 25691 | . : '\(.\)' 2>/dev/null || |
| 25692 | echo X"$as_dir" | |
| 25693 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 25694 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 25695 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 25696 | /^X\(\/\).*/{ s//\1/; q; } |
| 25697 | s/.*/./; q'` |
| 25698 | done |
| 25699 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 25700 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 25701 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 25702 | { (exit 1); exit 1; }; }; } |
| 25703 | |
| 25704 | ac_builddir=. |
| 25705 | |
| 25706 | if test "$ac_dir" != .; then |
| 25707 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 25708 | # A "../" for each directory in $ac_dir_suffix. |
| 25709 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 25710 | else |
| 25711 | ac_dir_suffix= ac_top_builddir= |
| 25712 | fi |
| 25713 | |
| 25714 | case $srcdir in |
| 25715 | .) # No --srcdir option. We are building in place. |
| 25716 | ac_srcdir=. |
| 25717 | if test -z "$ac_top_builddir"; then |
| 25718 | ac_top_srcdir=. |
| 25719 | else |
| 25720 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 25721 | fi ;; |
| 25722 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 25723 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 25724 | ac_top_srcdir=$srcdir ;; |
| 25725 | *) # Relative path. |
| 25726 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 25727 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 25728 | esac |
| 25729 | |
| 25730 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 25731 | # the directories may not exist. |
| 25732 | case `pwd` in |
| 25733 | .) ac_abs_builddir="$ac_dir";; |
| 25734 | *) |
| 25735 | case "$ac_dir" in |
| 25736 | .) ac_abs_builddir=`pwd`;; |
| 25737 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 25738 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 25739 | esac;; |
| 25740 | esac |
| 25741 | case $ac_abs_builddir in |
| 25742 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25743 | *) |
| 25744 | case ${ac_top_builddir}. in |
| 25745 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 25746 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25747 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 25748 | esac;; |
| 25749 | esac |
| 25750 | case $ac_abs_builddir in |
| 25751 | .) ac_abs_srcdir=$ac_srcdir;; |
| 25752 | *) |
| 25753 | case $ac_srcdir in |
| 25754 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 25755 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 25756 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 25757 | esac;; |
| 25758 | esac |
| 25759 | case $ac_abs_builddir in |
| 25760 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25761 | *) |
| 25762 | case $ac_top_srcdir in |
| 25763 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 25764 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25765 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 25766 | esac;; |
| 25767 | esac |
| 25768 | |
| 25769 | |
| 25770 | case $INSTALL in |
| 25771 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 25772 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 25773 | esac |
| 25774 | |
| 25775 | if test x"$ac_file" != x-; then |
| 25776 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 25777 | echo "$as_me: creating $ac_file" >&6;} |
| 25778 | rm -f "$ac_file" |
| 25779 | fi |
| 25780 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 25781 | # use $as_me), people would be surprised to read: |
| 25782 | # /* config.h. Generated by config.status. */ |
| 25783 | if test x"$ac_file" = x-; then |
| 25784 | configure_input= |
| 25785 | else |
| 25786 | configure_input="$ac_file. " |
| 25787 | fi |
| 25788 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 25789 | sed 's,.*/,,'` by configure." |
| 25790 | |
| 25791 | # First look for the input files in the build tree, otherwise in the |
| 25792 | # src tree. |
| 25793 | ac_file_inputs=`IFS=: |
| 25794 | for f in $ac_file_in; do |
| 25795 | case $f in |
| 25796 | -) echo $tmp/stdin ;; |
| 25797 | [\\/$]*) |
| 25798 | # Absolute (can't be DOS-style, as IFS=:) |
| 25799 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 25800 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 25801 | { (exit 1); exit 1; }; } |
| 25802 | echo "$f";; |
| 25803 | *) # Relative |
| 25804 | if test -f "$f"; then |
| 25805 | # Build tree |
| 25806 | echo "$f" |
| 25807 | elif test -f "$srcdir/$f"; then |
| 25808 | # Source tree |
| 25809 | echo "$srcdir/$f" |
| 25810 | else |
| 25811 | # /dev/null tree |
| 25812 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 25813 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 25814 | { (exit 1); exit 1; }; } |
| 25815 | fi;; |
| 25816 | esac |
| 25817 | done` || { (exit 1); exit 1; } |
| 25818 | _ACEOF |
| 25819 | cat >>$CONFIG_STATUS <<_ACEOF |
| 25820 | sed "$ac_vpsub |
| 25821 | $extrasub |
| 25822 | _ACEOF |
| 25823 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25824 | :t |
| 25825 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 25826 | s,@configure_input@,$configure_input,;t t |
| 25827 | s,@srcdir@,$ac_srcdir,;t t |
| 25828 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 25829 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 25830 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 25831 | s,@builddir@,$ac_builddir,;t t |
| 25832 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 25833 | s,@top_builddir@,$ac_top_builddir,;t t |
| 25834 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 25835 | s,@INSTALL@,$ac_INSTALL,;t t |
| 25836 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 25837 | rm -f $tmp/stdin |
| 25838 | if test x"$ac_file" != x-; then |
| 25839 | mv $tmp/out $ac_file |
| 25840 | else |
| 25841 | cat $tmp/out |
| 25842 | rm -f $tmp/out |
| 25843 | fi |
| 25844 | |
| 25845 | done |
| 25846 | _ACEOF |
| 25847 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25848 | |
| 25849 | # |
| 25850 | # CONFIG_HEADER section. |
| 25851 | # |
| 25852 | |
| 25853 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 25854 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 25855 | # |
| 25856 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 25857 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 25858 | ac_dB='[ ].*$,\1#\2' |
| 25859 | ac_dC=' ' |
| 25860 | ac_dD=',;t' |
| 25861 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 25862 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 25863 | ac_uB='$,\1#\2define\3' |
| 25864 | ac_uC=' ' |
| 25865 | ac_uD=',;t' |
| 25866 | |
| 25867 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 25868 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 25869 | case $ac_file in |
| 25870 | - | *:- | *:-:* ) # input from stdin |
| 25871 | cat >$tmp/stdin |
| 25872 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 25873 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 25874 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 25875 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 25876 | * ) ac_file_in=$ac_file.in ;; |
| 25877 | esac |
| 25878 | |
| 25879 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 25880 | echo "$as_me: creating $ac_file" >&6;} |
| 25881 | |
| 25882 | # First look for the input files in the build tree, otherwise in the |
| 25883 | # src tree. |
| 25884 | ac_file_inputs=`IFS=: |
| 25885 | for f in $ac_file_in; do |
| 25886 | case $f in |
| 25887 | -) echo $tmp/stdin ;; |
| 25888 | [\\/$]*) |
| 25889 | # Absolute (can't be DOS-style, as IFS=:) |
| 25890 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 25891 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 25892 | { (exit 1); exit 1; }; } |
| 25893 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 25894 | echo "$f";; |
| 25895 | *) # Relative |
| 25896 | if test -f "$f"; then |
| 25897 | # Build tree |
| 25898 | echo "$f" |
| 25899 | elif test -f "$srcdir/$f"; then |
| 25900 | # Source tree |
| 25901 | echo "$srcdir/$f" |
| 25902 | else |
| 25903 | # /dev/null tree |
| 25904 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 25905 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 25906 | { (exit 1); exit 1; }; } |
| 25907 | fi;; |
| 25908 | esac |
| 25909 | done` || { (exit 1); exit 1; } |
| 25910 | # Remove the trailing spaces. |
| 25911 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 25912 | |
| 25913 | _ACEOF |
| 25914 | |
| 25915 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 25916 | # `conftest.undefs', that substitutes the proper values into |
| 25917 | # config.h.in to produce config.h. The first handles `#define' |
| 25918 | # templates, and the second `#undef' templates. |
| 25919 | # And first: Protect against being on the right side of a sed subst in |
| 25920 | # config.status. Protect against being in an unquoted here document |
| 25921 | # in config.status. |
| 25922 | rm -f conftest.defines conftest.undefs |
| 25923 | # Using a here document instead of a string reduces the quoting nightmare. |
| 25924 | # Putting comments in sed scripts is not portable. |
| 25925 | # |
| 25926 | # `end' is used to avoid that the second main sed command (meant for |
| 25927 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 25928 | # See the Autoconf documentation for `clear'. |
| 25929 | cat >confdef2sed.sed <<\_ACEOF |
| 25930 | s/[\\&,]/\\&/g |
| 25931 | s,[\\$`],\\&,g |
| 25932 | t clear |
| 25933 | : clear |
| 25934 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 25935 | t end |
| 25936 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 25937 | : end |
| 25938 | _ACEOF |
| 25939 | # If some macros were called several times there might be several times |
| 25940 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 25941 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 25942 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 25943 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 25944 | rm -f confdef2sed.sed |
| 25945 | |
| 25946 | # This sed command replaces #undef with comments. This is necessary, for |
| 25947 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 25948 | # on some systems where configure will not decide to define it. |
| 25949 | cat >>conftest.undefs <<\_ACEOF |
| 25950 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 25951 | _ACEOF |
| 25952 | |
| 25953 | # Break up conftest.defines because some shells have a limit on the size |
| 25954 | # of here documents, and old seds have small limits too (100 cmds). |
| 25955 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 25956 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 25957 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 25958 | echo ' :' >>$CONFIG_STATUS |
| 25959 | rm -f conftest.tail |
| 25960 | while grep . conftest.defines >/dev/null |
| 25961 | do |
| 25962 | # Write a limited-size here document to $tmp/defines.sed. |
| 25963 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 25964 | # Speed up: don't consider the non `#define' lines. |
| 25965 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 25966 | # Work around the forget-to-reset-the-flag bug. |
| 25967 | echo 't clr' >>$CONFIG_STATUS |
| 25968 | echo ': clr' >>$CONFIG_STATUS |
| 25969 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 25970 | echo 'CEOF |
| 25971 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 25972 | rm -f $tmp/in |
| 25973 | mv $tmp/out $tmp/in |
| 25974 | ' >>$CONFIG_STATUS |
| 25975 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 25976 | rm -f conftest.defines |
| 25977 | mv conftest.tail conftest.defines |
| 25978 | done |
| 25979 | rm -f conftest.defines |
| 25980 | echo ' fi # grep' >>$CONFIG_STATUS |
| 25981 | echo >>$CONFIG_STATUS |
| 25982 | |
| 25983 | # Break up conftest.undefs because some shells have a limit on the size |
| 25984 | # of here documents, and old seds have small limits too (100 cmds). |
| 25985 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 25986 | rm -f conftest.tail |
| 25987 | while grep . conftest.undefs >/dev/null |
| 25988 | do |
| 25989 | # Write a limited-size here document to $tmp/undefs.sed. |
| 25990 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 25991 | # Speed up: don't consider the non `#undef' |
| 25992 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 25993 | # Work around the forget-to-reset-the-flag bug. |
| 25994 | echo 't clr' >>$CONFIG_STATUS |
| 25995 | echo ': clr' >>$CONFIG_STATUS |
| 25996 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 25997 | echo 'CEOF |
| 25998 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 25999 | rm -f $tmp/in |
| 26000 | mv $tmp/out $tmp/in |
| 26001 | ' >>$CONFIG_STATUS |
| 26002 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 26003 | rm -f conftest.undefs |
| 26004 | mv conftest.tail conftest.undefs |
| 26005 | done |
| 26006 | rm -f conftest.undefs |
| 26007 | |
| 26008 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26009 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 26010 | # use $as_me), people would be surprised to read: |
| 26011 | # /* config.h. Generated by config.status. */ |
| 26012 | if test x"$ac_file" = x-; then |
| 26013 | echo "/* Generated by configure. */" >$tmp/config.h |
| 26014 | else |
| 26015 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 26016 | fi |
| 26017 | cat $tmp/in >>$tmp/config.h |
| 26018 | rm -f $tmp/in |
| 26019 | if test x"$ac_file" != x-; then |
| 26020 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 26021 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 26022 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 26023 | else |
| 26024 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 26025 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26026 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 26027 | X"$ac_file" : 'X\(//\)$' \| \ |
| 26028 | X"$ac_file" : 'X\(/\)' \| \ |
| 26029 | . : '\(.\)' 2>/dev/null || |
| 26030 | echo X"$ac_file" | |
| 26031 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26032 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26033 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26034 | /^X\(\/\).*/{ s//\1/; q; } |
| 26035 | s/.*/./; q'` |
| 26036 | { if $as_mkdir_p; then |
| 26037 | mkdir -p "$ac_dir" |
| 26038 | else |
| 26039 | as_dir="$ac_dir" |
| 26040 | as_dirs= |
| 26041 | while test ! -d "$as_dir"; do |
| 26042 | as_dirs="$as_dir $as_dirs" |
| 26043 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 26044 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26045 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 26046 | X"$as_dir" : 'X\(//\)$' \| \ |
| 26047 | X"$as_dir" : 'X\(/\)' \| \ |
| 26048 | . : '\(.\)' 2>/dev/null || |
| 26049 | echo X"$as_dir" | |
| 26050 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26051 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26052 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26053 | /^X\(\/\).*/{ s//\1/; q; } |
| 26054 | s/.*/./; q'` |
| 26055 | done |
| 26056 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 26057 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 26058 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 26059 | { (exit 1); exit 1; }; }; } |
| 26060 | |
| 26061 | rm -f $ac_file |
| 26062 | mv $tmp/config.h $ac_file |
| 26063 | fi |
| 26064 | else |
| 26065 | cat $tmp/config.h |
| 26066 | rm -f $tmp/config.h |
| 26067 | fi |
| 26068 | done |
| 26069 | _ACEOF |
| 26070 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26071 | |
| 26072 | # |
| 26073 | # CONFIG_LINKS section. |
| 26074 | # |
| 26075 | |
| 26076 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
| 26077 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 26078 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 26079 | |
| 26080 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
| 26081 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
| 26082 | |
| 26083 | if test ! -r $srcdir/$ac_source; then |
| 26084 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
| 26085 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
| 26086 | { (exit 1); exit 1; }; } |
| 26087 | fi |
| 26088 | rm -f $ac_dest |
| 26089 | |
| 26090 | # Make relative symlinks. |
| 26091 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 26092 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26093 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 26094 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 26095 | X"$ac_dest" : 'X\(/\)' \| \ |
| 26096 | . : '\(.\)' 2>/dev/null || |
| 26097 | echo X"$ac_dest" | |
| 26098 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26099 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26100 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26101 | /^X\(\/\).*/{ s//\1/; q; } |
| 26102 | s/.*/./; q'` |
| 26103 | { if $as_mkdir_p; then |
| 26104 | mkdir -p "$ac_dest_dir" |
| 26105 | else |
| 26106 | as_dir="$ac_dest_dir" |
| 26107 | as_dirs= |
| 26108 | while test ! -d "$as_dir"; do |
| 26109 | as_dirs="$as_dir $as_dirs" |
| 26110 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 26111 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26112 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 26113 | X"$as_dir" : 'X\(//\)$' \| \ |
| 26114 | X"$as_dir" : 'X\(/\)' \| \ |
| 26115 | . : '\(.\)' 2>/dev/null || |
| 26116 | echo X"$as_dir" | |
| 26117 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26118 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26119 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26120 | /^X\(\/\).*/{ s//\1/; q; } |
| 26121 | s/.*/./; q'` |
| 26122 | done |
| 26123 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 26124 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 |
| 26125 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} |
| 26126 | { (exit 1); exit 1; }; }; } |
| 26127 | |
| 26128 | ac_builddir=. |
| 26129 | |
| 26130 | if test "$ac_dest_dir" != .; then |
| 26131 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` |
| 26132 | # A "../" for each directory in $ac_dir_suffix. |
| 26133 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 26134 | else |
| 26135 | ac_dir_suffix= ac_top_builddir= |
| 26136 | fi |
| 26137 | |
| 26138 | case $srcdir in |
| 26139 | .) # No --srcdir option. We are building in place. |
| 26140 | ac_srcdir=. |
| 26141 | if test -z "$ac_top_builddir"; then |
| 26142 | ac_top_srcdir=. |
| 26143 | else |
| 26144 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 26145 | fi ;; |
| 26146 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 26147 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 26148 | ac_top_srcdir=$srcdir ;; |
| 26149 | *) # Relative path. |
| 26150 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 26151 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 26152 | esac |
| 26153 | |
| 26154 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 26155 | # the directories may not exist. |
| 26156 | case `pwd` in |
| 26157 | .) ac_abs_builddir="$ac_dest_dir";; |
| 26158 | *) |
| 26159 | case "$ac_dest_dir" in |
| 26160 | .) ac_abs_builddir=`pwd`;; |
| 26161 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; |
| 26162 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; |
| 26163 | esac;; |
| 26164 | esac |
| 26165 | case $ac_abs_builddir in |
| 26166 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 26167 | *) |
| 26168 | case ${ac_top_builddir}. in |
| 26169 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 26170 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 26171 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 26172 | esac;; |
| 26173 | esac |
| 26174 | case $ac_abs_builddir in |
| 26175 | .) ac_abs_srcdir=$ac_srcdir;; |
| 26176 | *) |
| 26177 | case $ac_srcdir in |
| 26178 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 26179 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 26180 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 26181 | esac;; |
| 26182 | esac |
| 26183 | case $ac_abs_builddir in |
| 26184 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 26185 | *) |
| 26186 | case $ac_top_srcdir in |
| 26187 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 26188 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 26189 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 26190 | esac;; |
| 26191 | esac |
| 26192 | |
| 26193 | |
| 26194 | case $srcdir in |
| 26195 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
| 26196 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
| 26197 | esac |
| 26198 | |
| 26199 | # Try a symlink, then a hard link, then a copy. |
| 26200 | ln -s $ac_rel_source $ac_dest 2>/dev/null || |
| 26201 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
| 26202 | cp -p $srcdir/$ac_source $ac_dest || |
| 26203 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 |
| 26204 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} |
| 26205 | { (exit 1); exit 1; }; } |
| 26206 | done |
| 26207 | _ACEOF |
| 26208 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26209 | |
| 26210 | # |
| 26211 | # CONFIG_COMMANDS section. |
| 26212 | # |
| 26213 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 26214 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 26215 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 26216 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 26217 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26218 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 26219 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 26220 | X"$ac_dest" : 'X\(/\)' \| \ |
| 26221 | . : '\(.\)' 2>/dev/null || |
| 26222 | echo X"$ac_dest" | |
| 26223 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26224 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26225 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26226 | /^X\(\/\).*/{ s//\1/; q; } |
| 26227 | s/.*/./; q'` |
| 26228 | { if $as_mkdir_p; then |
| 26229 | mkdir -p "$ac_dir" |
| 26230 | else |
| 26231 | as_dir="$ac_dir" |
| 26232 | as_dirs= |
| 26233 | while test ! -d "$as_dir"; do |
| 26234 | as_dirs="$as_dir $as_dirs" |
| 26235 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 26236 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26237 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 26238 | X"$as_dir" : 'X\(//\)$' \| \ |
| 26239 | X"$as_dir" : 'X\(/\)' \| \ |
| 26240 | . : '\(.\)' 2>/dev/null || |
| 26241 | echo X"$as_dir" | |
| 26242 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26243 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26244 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26245 | /^X\(\/\).*/{ s//\1/; q; } |
| 26246 | s/.*/./; q'` |
| 26247 | done |
| 26248 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 26249 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 26250 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 26251 | { (exit 1); exit 1; }; }; } |
| 26252 | |
| 26253 | ac_builddir=. |
| 26254 | |
| 26255 | if test "$ac_dir" != .; then |
| 26256 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 26257 | # A "../" for each directory in $ac_dir_suffix. |
| 26258 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 26259 | else |
| 26260 | ac_dir_suffix= ac_top_builddir= |
| 26261 | fi |
| 26262 | |
| 26263 | case $srcdir in |
| 26264 | .) # No --srcdir option. We are building in place. |
| 26265 | ac_srcdir=. |
| 26266 | if test -z "$ac_top_builddir"; then |
| 26267 | ac_top_srcdir=. |
| 26268 | else |
| 26269 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 26270 | fi ;; |
| 26271 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 26272 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 26273 | ac_top_srcdir=$srcdir ;; |
| 26274 | *) # Relative path. |
| 26275 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 26276 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 26277 | esac |
| 26278 | |
| 26279 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 26280 | # the directories may not exist. |
| 26281 | case `pwd` in |
| 26282 | .) ac_abs_builddir="$ac_dir";; |
| 26283 | *) |
| 26284 | case "$ac_dir" in |
| 26285 | .) ac_abs_builddir=`pwd`;; |
| 26286 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 26287 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 26288 | esac;; |
| 26289 | esac |
| 26290 | case $ac_abs_builddir in |
| 26291 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 26292 | *) |
| 26293 | case ${ac_top_builddir}. in |
| 26294 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 26295 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 26296 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 26297 | esac;; |
| 26298 | esac |
| 26299 | case $ac_abs_builddir in |
| 26300 | .) ac_abs_srcdir=$ac_srcdir;; |
| 26301 | *) |
| 26302 | case $ac_srcdir in |
| 26303 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 26304 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 26305 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 26306 | esac;; |
| 26307 | esac |
| 26308 | case $ac_abs_builddir in |
| 26309 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 26310 | *) |
| 26311 | case $ac_top_srcdir in |
| 26312 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 26313 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 26314 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 26315 | esac;; |
| 26316 | esac |
| 26317 | |
| 26318 | |
| 26319 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 26320 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 26321 | case $ac_dest in |
| 26322 | gdb_stdint.h ) |
| 26323 | if test "$GCC" = yes; then |
| 26324 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h |
| 26325 | else |
| 26326 | echo "/* generated for $CC */" > tmp-stdint.h |
| 26327 | fi |
| 26328 | |
| 26329 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26330 | |
| 26331 | #ifndef GCC_GENERATED_STDINT_H |
| 26332 | #define GCC_GENERATED_STDINT_H 1 |
| 26333 | |
| 26334 | #include <sys/types.h> |
| 26335 | EOF |
| 26336 | |
| 26337 | if test "$acx_cv_header_stdint" != stdint.h; then |
| 26338 | echo "#include <stddef.h>" >> tmp-stdint.h |
| 26339 | fi |
| 26340 | if test "$acx_cv_header_stdint" != stddef.h; then |
| 26341 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h |
| 26342 | fi |
| 26343 | |
| 26344 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26345 | /* glibc uses these symbols as guards to prevent redefinitions. */ |
| 26346 | #ifdef __int8_t_defined |
| 26347 | #define _INT8_T |
| 26348 | #define _INT16_T |
| 26349 | #define _INT32_T |
| 26350 | #endif |
| 26351 | #ifdef __uint32_t_defined |
| 26352 | #define _UINT32_T |
| 26353 | #endif |
| 26354 | |
| 26355 | EOF |
| 26356 | |
| 26357 | # ----------------- done header, emit basic int types ------------- |
| 26358 | if test "$acx_cv_header_stdint" = stddef.h; then |
| 26359 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26360 | |
| 26361 | #ifndef _UINT8_T |
| 26362 | #define _UINT8_T |
| 26363 | #ifndef __uint8_t_defined |
| 26364 | #define __uint8_t_defined |
| 26365 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
| 26366 | #endif |
| 26367 | #endif |
| 26368 | |
| 26369 | #ifndef _UINT16_T |
| 26370 | #define _UINT16_T |
| 26371 | #ifndef __uint16_t_defined |
| 26372 | #define __uint16_t_defined |
| 26373 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
| 26374 | #endif |
| 26375 | #endif |
| 26376 | |
| 26377 | #ifndef _UINT32_T |
| 26378 | #define _UINT32_T |
| 26379 | #ifndef __uint32_t_defined |
| 26380 | #define __uint32_t_defined |
| 26381 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
| 26382 | #endif |
| 26383 | #endif |
| 26384 | |
| 26385 | #ifndef _INT8_T |
| 26386 | #define _INT8_T |
| 26387 | #ifndef __int8_t_defined |
| 26388 | #define __int8_t_defined |
| 26389 | typedef $acx_cv_type_int8_t int8_t; |
| 26390 | #endif |
| 26391 | #endif |
| 26392 | |
| 26393 | #ifndef _INT16_T |
| 26394 | #define _INT16_T |
| 26395 | #ifndef __int16_t_defined |
| 26396 | #define __int16_t_defined |
| 26397 | typedef $acx_cv_type_int16_t int16_t; |
| 26398 | #endif |
| 26399 | #endif |
| 26400 | |
| 26401 | #ifndef _INT32_T |
| 26402 | #define _INT32_T |
| 26403 | #ifndef __int32_t_defined |
| 26404 | #define __int32_t_defined |
| 26405 | typedef $acx_cv_type_int32_t int32_t; |
| 26406 | #endif |
| 26407 | #endif |
| 26408 | EOF |
| 26409 | elif test "$ac_cv_type_u_int32_t" = yes; then |
| 26410 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26411 | |
| 26412 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ |
| 26413 | #ifndef _INT8_T |
| 26414 | #define _INT8_T |
| 26415 | #endif |
| 26416 | #ifndef _INT16_T |
| 26417 | #define _INT16_T |
| 26418 | #endif |
| 26419 | #ifndef _INT32_T |
| 26420 | #define _INT32_T |
| 26421 | #endif |
| 26422 | |
| 26423 | #ifndef _UINT8_T |
| 26424 | #define _UINT8_T |
| 26425 | #ifndef __uint8_t_defined |
| 26426 | #define __uint8_t_defined |
| 26427 | typedef u_int8_t uint8_t; |
| 26428 | #endif |
| 26429 | #endif |
| 26430 | |
| 26431 | #ifndef _UINT16_T |
| 26432 | #define _UINT16_T |
| 26433 | #ifndef __uint16_t_defined |
| 26434 | #define __uint16_t_defined |
| 26435 | typedef u_int16_t uint16_t; |
| 26436 | #endif |
| 26437 | #endif |
| 26438 | |
| 26439 | #ifndef _UINT32_T |
| 26440 | #define _UINT32_T |
| 26441 | #ifndef __uint32_t_defined |
| 26442 | #define __uint32_t_defined |
| 26443 | typedef u_int32_t uint32_t; |
| 26444 | #endif |
| 26445 | #endif |
| 26446 | EOF |
| 26447 | else |
| 26448 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26449 | |
| 26450 | /* Some systems have guard macros to prevent redefinitions, define them. */ |
| 26451 | #ifndef _INT8_T |
| 26452 | #define _INT8_T |
| 26453 | #endif |
| 26454 | #ifndef _INT16_T |
| 26455 | #define _INT16_T |
| 26456 | #endif |
| 26457 | #ifndef _INT32_T |
| 26458 | #define _INT32_T |
| 26459 | #endif |
| 26460 | #ifndef _UINT8_T |
| 26461 | #define _UINT8_T |
| 26462 | #endif |
| 26463 | #ifndef _UINT16_T |
| 26464 | #define _UINT16_T |
| 26465 | #endif |
| 26466 | #ifndef _UINT32_T |
| 26467 | #define _UINT32_T |
| 26468 | #endif |
| 26469 | EOF |
| 26470 | fi |
| 26471 | |
| 26472 | # ------------- done basic int types, emit int64_t types ------------ |
| 26473 | if test "$ac_cv_type_uint64_t" = yes; then |
| 26474 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26475 | |
| 26476 | /* system headers have good uint64_t and int64_t */ |
| 26477 | #ifndef _INT64_T |
| 26478 | #define _INT64_T |
| 26479 | #endif |
| 26480 | #ifndef _UINT64_T |
| 26481 | #define _UINT64_T |
| 26482 | #endif |
| 26483 | EOF |
| 26484 | elif test "$ac_cv_type_u_int64_t" = yes; then |
| 26485 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26486 | |
| 26487 | /* system headers have an u_int64_t (and int64_t) */ |
| 26488 | #ifndef _INT64_T |
| 26489 | #define _INT64_T |
| 26490 | #endif |
| 26491 | #ifndef _UINT64_T |
| 26492 | #define _UINT64_T |
| 26493 | #ifndef __uint64_t_defined |
| 26494 | #define __uint64_t_defined |
| 26495 | typedef u_int64_t uint64_t; |
| 26496 | #endif |
| 26497 | #endif |
| 26498 | EOF |
| 26499 | elif test -n "$acx_cv_type_int64_t"; then |
| 26500 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26501 | |
| 26502 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ |
| 26503 | #ifndef _INT64_T |
| 26504 | #define _INT64_T |
| 26505 | typedef $acx_cv_type_int64_t int64_t; |
| 26506 | #endif |
| 26507 | #ifndef _UINT64_T |
| 26508 | #define _UINT64_T |
| 26509 | #ifndef __uint64_t_defined |
| 26510 | #define __uint64_t_defined |
| 26511 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
| 26512 | #endif |
| 26513 | #endif |
| 26514 | EOF |
| 26515 | else |
| 26516 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26517 | |
| 26518 | /* some common heuristics for int64_t, using compiler-specific tests */ |
| 26519 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L |
| 26520 | #ifndef _INT64_T |
| 26521 | #define _INT64_T |
| 26522 | #ifndef __int64_t_defined |
| 26523 | typedef long long int64_t; |
| 26524 | #endif |
| 26525 | #endif |
| 26526 | #ifndef _UINT64_T |
| 26527 | #define _UINT64_T |
| 26528 | typedef unsigned long long uint64_t; |
| 26529 | #endif |
| 26530 | |
| 26531 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 |
| 26532 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and |
| 26533 | does not implement __extension__. But that compiler doesn't define |
| 26534 | __GNUC_MINOR__. */ |
| 26535 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) |
| 26536 | # define __extension__ |
| 26537 | # endif |
| 26538 | |
| 26539 | # ifndef _INT64_T |
| 26540 | # define _INT64_T |
| 26541 | __extension__ typedef long long int64_t; |
| 26542 | # endif |
| 26543 | # ifndef _UINT64_T |
| 26544 | # define _UINT64_T |
| 26545 | __extension__ typedef unsigned long long uint64_t; |
| 26546 | # endif |
| 26547 | |
| 26548 | #elif !defined __STRICT_ANSI__ |
| 26549 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ |
| 26550 | |
| 26551 | # ifndef _INT64_T |
| 26552 | # define _INT64_T |
| 26553 | typedef __int64 int64_t; |
| 26554 | # endif |
| 26555 | # ifndef _UINT64_T |
| 26556 | # define _UINT64_T |
| 26557 | typedef unsigned __int64 uint64_t; |
| 26558 | # endif |
| 26559 | # endif /* compiler */ |
| 26560 | |
| 26561 | #endif /* ANSI version */ |
| 26562 | EOF |
| 26563 | fi |
| 26564 | |
| 26565 | # ------------- done int64_t types, emit intptr types ------------ |
| 26566 | if test "$ac_cv_type_uintptr_t" != yes; then |
| 26567 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26568 | |
| 26569 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ |
| 26570 | #ifndef __uintptr_t_defined |
| 26571 | typedef u$acx_cv_type_intptr_t uintptr_t; |
| 26572 | #endif |
| 26573 | #ifndef __intptr_t_defined |
| 26574 | typedef $acx_cv_type_intptr_t intptr_t; |
| 26575 | #endif |
| 26576 | EOF |
| 26577 | fi |
| 26578 | |
| 26579 | # ------------- done intptr types, emit int_least types ------------ |
| 26580 | if test "$ac_cv_type_int_least32_t" != yes; then |
| 26581 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26582 | |
| 26583 | /* Define int_least types */ |
| 26584 | typedef int8_t int_least8_t; |
| 26585 | typedef int16_t int_least16_t; |
| 26586 | typedef int32_t int_least32_t; |
| 26587 | #ifdef _INT64_T |
| 26588 | typedef int64_t int_least64_t; |
| 26589 | #endif |
| 26590 | |
| 26591 | typedef uint8_t uint_least8_t; |
| 26592 | typedef uint16_t uint_least16_t; |
| 26593 | typedef uint32_t uint_least32_t; |
| 26594 | #ifdef _UINT64_T |
| 26595 | typedef uint64_t uint_least64_t; |
| 26596 | #endif |
| 26597 | EOF |
| 26598 | fi |
| 26599 | |
| 26600 | # ------------- done intptr types, emit int_fast types ------------ |
| 26601 | if test "$ac_cv_type_int_fast32_t" != yes; then |
| 26602 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26603 | |
| 26604 | /* Define int_fast types. short is often slow */ |
| 26605 | typedef int8_t int_fast8_t; |
| 26606 | typedef int int_fast16_t; |
| 26607 | typedef int32_t int_fast32_t; |
| 26608 | #ifdef _INT64_T |
| 26609 | typedef int64_t int_fast64_t; |
| 26610 | #endif |
| 26611 | |
| 26612 | typedef uint8_t uint_fast8_t; |
| 26613 | typedef unsigned int uint_fast16_t; |
| 26614 | typedef uint32_t uint_fast32_t; |
| 26615 | #ifdef _UINT64_T |
| 26616 | typedef uint64_t uint_fast64_t; |
| 26617 | #endif |
| 26618 | EOF |
| 26619 | fi |
| 26620 | |
| 26621 | if test "$ac_cv_type_uintmax_t" != yes; then |
| 26622 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26623 | |
| 26624 | /* Define intmax based on what we found */ |
| 26625 | #ifdef _INT64_T |
| 26626 | typedef int64_t intmax_t; |
| 26627 | #else |
| 26628 | typedef long intmax_t; |
| 26629 | #endif |
| 26630 | #ifdef _UINT64_T |
| 26631 | typedef uint64_t uintmax_t; |
| 26632 | #else |
| 26633 | typedef unsigned long uintmax_t; |
| 26634 | #endif |
| 26635 | EOF |
| 26636 | fi |
| 26637 | |
| 26638 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 26639 | |
| 26640 | #endif /* GCC_GENERATED_STDINT_H */ |
| 26641 | EOF |
| 26642 | |
| 26643 | if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then |
| 26644 | rm -f tmp-stdint.h |
| 26645 | else |
| 26646 | mv -f tmp-stdint.h gdb_stdint.h |
| 26647 | fi |
| 26648 | |
| 26649 | ;; |
| 26650 | default ) |
| 26651 | |
| 26652 | sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp |
| 26653 | mv -f Makefile.tmp Makefile |
| 26654 | |
| 26655 | |
| 26656 | case x$CONFIG_HEADERS in |
| 26657 | xconfig.h:config.in) |
| 26658 | echo > stamp-h ;; |
| 26659 | esac |
| 26660 | ;; |
| 26661 | esac |
| 26662 | done |
| 26663 | _ACEOF |
| 26664 | |
| 26665 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 26666 | |
| 26667 | { (exit 0); exit 0; } |
| 26668 | _ACEOF |
| 26669 | chmod +x $CONFIG_STATUS |
| 26670 | ac_clean_files=$ac_clean_files_save |
| 26671 | |
| 26672 | |
| 26673 | # configure is writing to config.log, and then calls config.status. |
| 26674 | # config.status does its own redirection, appending to config.log. |
| 26675 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 26676 | # by configure, so config.status won't be able to write to it; its |
| 26677 | # output is simply discarded. So we exec the FD to /dev/null, |
| 26678 | # effectively closing config.log, so it can be properly (re)opened and |
| 26679 | # appended to by config.status. When coming back to configure, we |
| 26680 | # need to make the FD available again. |
| 26681 | if test "$no_create" != yes; then |
| 26682 | ac_cs_success=: |
| 26683 | ac_config_status_args= |
| 26684 | test "$silent" = yes && |
| 26685 | ac_config_status_args="$ac_config_status_args --quiet" |
| 26686 | exec 5>/dev/null |
| 26687 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 26688 | exec 5>>config.log |
| 26689 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 26690 | # would make configure fail if this is the last instruction. |
| 26691 | $ac_cs_success || { (exit 1); exit 1; } |
| 26692 | fi |
| 26693 | |
| 26694 | # |
| 26695 | # CONFIG_SUBDIRS section. |
| 26696 | # |
| 26697 | if test "$no_recursion" != yes; then |
| 26698 | |
| 26699 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 26700 | ac_sub_configure_args= |
| 26701 | ac_prev= |
| 26702 | for ac_arg in $ac_configure_args; do |
| 26703 | if test -n "$ac_prev"; then |
| 26704 | ac_prev= |
| 26705 | continue |
| 26706 | fi |
| 26707 | case $ac_arg in |
| 26708 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 26709 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 26710 | ac_prev=cache_file ;; |
| 26711 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 26712 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 26713 | | --c=*) |
| 26714 | ;; |
| 26715 | --config-cache | -C) |
| 26716 | ;; |
| 26717 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 26718 | ac_prev=srcdir ;; |
| 26719 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 26720 | ;; |
| 26721 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 26722 | ac_prev=prefix ;; |
| 26723 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 26724 | ;; |
| 26725 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
| 26726 | esac |
| 26727 | done |
| 26728 | |
| 26729 | # Always prepend --prefix to ensure using the same prefix |
| 26730 | # in subdir configurations. |
| 26731 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" |
| 26732 | |
| 26733 | ac_popdir=`pwd` |
| 26734 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 26735 | |
| 26736 | # Do not complain, so a configure script can configure whichever |
| 26737 | # parts of a large source tree are present. |
| 26738 | test -d $srcdir/$ac_dir || continue |
| 26739 | |
| 26740 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
| 26741 | echo "$as_me: configuring in $ac_dir" >&6;} |
| 26742 | { if $as_mkdir_p; then |
| 26743 | mkdir -p "$ac_dir" |
| 26744 | else |
| 26745 | as_dir="$ac_dir" |
| 26746 | as_dirs= |
| 26747 | while test ! -d "$as_dir"; do |
| 26748 | as_dirs="$as_dir $as_dirs" |
| 26749 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 26750 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26751 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 26752 | X"$as_dir" : 'X\(//\)$' \| \ |
| 26753 | X"$as_dir" : 'X\(/\)' \| \ |
| 26754 | . : '\(.\)' 2>/dev/null || |
| 26755 | echo X"$as_dir" | |
| 26756 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 26757 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 26758 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 26759 | /^X\(\/\).*/{ s//\1/; q; } |
| 26760 | s/.*/./; q'` |
| 26761 | done |
| 26762 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 26763 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 26764 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 26765 | { (exit 1); exit 1; }; }; } |
| 26766 | |
| 26767 | ac_builddir=. |
| 26768 | |
| 26769 | if test "$ac_dir" != .; then |
| 26770 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 26771 | # A "../" for each directory in $ac_dir_suffix. |
| 26772 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 26773 | else |
| 26774 | ac_dir_suffix= ac_top_builddir= |
| 26775 | fi |
| 26776 | |
| 26777 | case $srcdir in |
| 26778 | .) # No --srcdir option. We are building in place. |
| 26779 | ac_srcdir=. |
| 26780 | if test -z "$ac_top_builddir"; then |
| 26781 | ac_top_srcdir=. |
| 26782 | else |
| 26783 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 26784 | fi ;; |
| 26785 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 26786 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 26787 | ac_top_srcdir=$srcdir ;; |
| 26788 | *) # Relative path. |
| 26789 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 26790 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 26791 | esac |
| 26792 | |
| 26793 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 26794 | # the directories may not exist. |
| 26795 | case `pwd` in |
| 26796 | .) ac_abs_builddir="$ac_dir";; |
| 26797 | *) |
| 26798 | case "$ac_dir" in |
| 26799 | .) ac_abs_builddir=`pwd`;; |
| 26800 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 26801 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 26802 | esac;; |
| 26803 | esac |
| 26804 | case $ac_abs_builddir in |
| 26805 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 26806 | *) |
| 26807 | case ${ac_top_builddir}. in |
| 26808 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 26809 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 26810 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 26811 | esac;; |
| 26812 | esac |
| 26813 | case $ac_abs_builddir in |
| 26814 | .) ac_abs_srcdir=$ac_srcdir;; |
| 26815 | *) |
| 26816 | case $ac_srcdir in |
| 26817 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 26818 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 26819 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 26820 | esac;; |
| 26821 | esac |
| 26822 | case $ac_abs_builddir in |
| 26823 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 26824 | *) |
| 26825 | case $ac_top_srcdir in |
| 26826 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 26827 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 26828 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 26829 | esac;; |
| 26830 | esac |
| 26831 | |
| 26832 | |
| 26833 | cd $ac_dir |
| 26834 | |
| 26835 | # Check for guested configure; otherwise get Cygnus style configure. |
| 26836 | if test -f $ac_srcdir/configure.gnu; then |
| 26837 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" |
| 26838 | elif test -f $ac_srcdir/configure; then |
| 26839 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" |
| 26840 | elif test -f $ac_srcdir/configure.in; then |
| 26841 | ac_sub_configure=$ac_configure |
| 26842 | else |
| 26843 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 26844 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 26845 | ac_sub_configure= |
| 26846 | fi |
| 26847 | |
| 26848 | # The recursion is here. |
| 26849 | if test -n "$ac_sub_configure"; then |
| 26850 | # Make the cache file name correct relative to the subdirectory. |
| 26851 | case $cache_file in |
| 26852 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 26853 | *) # Relative path. |
| 26854 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
| 26855 | esac |
| 26856 | |
| 26857 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 26858 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 26859 | # The eval makes quoting arguments work. |
| 26860 | eval $ac_sub_configure $ac_sub_configure_args \ |
| 26861 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
| 26862 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 26863 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 26864 | { (exit 1); exit 1; }; } |
| 26865 | fi |
| 26866 | |
| 26867 | cd $ac_popdir |
| 26868 | done |
| 26869 | fi |
| 26870 | |
| 26871 | |
| 26872 | exit 0 |