| 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 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 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 IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS' |
| 317 | ac_subst_files='host_makefile_frag target_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 | --disable-gdbcli disable command-line interface (CLI) |
| 864 | --disable-gdbmi disable machine-interface (MI) |
| 865 | --enable-tui enable full-screen terminal user interface (TUI) |
| 866 | --enable-gdbtk enable gdbtk graphical user interface (GUI) |
| 867 | --enable-profiling enable profiling of GDB |
| 868 | --disable-rpath do not hardcode runtime library paths |
| 869 | --enable-werror treat compile warnings as errors |
| 870 | --enable-build-warnings Enable build-time compiler warnings if gcc is used |
| 871 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used |
| 872 | --enable-sim Link gdb with simulator |
| 873 | --enable-multi-ice build the multi-ice-gdb-server |
| 874 | |
| 875 | Optional Packages: |
| 876 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 877 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 878 | --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug |
| 879 | --with-libunwind Use libunwind frame unwinding support |
| 880 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 881 | --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib |
| 882 | --without-libexpat-prefix don't search for libexpat in includedir and libdir |
| 883 | --without-included-regex don't use included regex; this is the default |
| 884 | on systems with version 2 of the GNU C library |
| 885 | (use with caution on other system) |
| 886 | --with-sysroot=DIR Search for usr/lib et al within DIR. |
| 887 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh) |
| 888 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh) |
| 889 | --with-tclinclude=DIR Directory where tcl private headers are |
| 890 | --with-tkinclude=DIR Directory where tk private headers are |
| 891 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh) |
| 892 | --with-itkconfig Directory containing itk configuration (itkConfig.sh) |
| 893 | --with-x use the X Window System |
| 894 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib |
| 895 | |
| 896 | Some influential environment variables: |
| 897 | CC C compiler command |
| 898 | CFLAGS C compiler flags |
| 899 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 900 | nonstandard directory <lib dir> |
| 901 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 902 | headers in a nonstandard directory <include dir> |
| 903 | CPP C preprocessor |
| 904 | |
| 905 | Use these variables to override the choices made by `configure' or to help |
| 906 | it to find libraries and programs with nonstandard names/locations. |
| 907 | |
| 908 | _ACEOF |
| 909 | fi |
| 910 | |
| 911 | if test "$ac_init_help" = "recursive"; then |
| 912 | # If there are subdirs, report their specific --help. |
| 913 | ac_popdir=`pwd` |
| 914 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 915 | test -d $ac_dir || continue |
| 916 | ac_builddir=. |
| 917 | |
| 918 | if test "$ac_dir" != .; then |
| 919 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 920 | # A "../" for each directory in $ac_dir_suffix. |
| 921 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 922 | else |
| 923 | ac_dir_suffix= ac_top_builddir= |
| 924 | fi |
| 925 | |
| 926 | case $srcdir in |
| 927 | .) # No --srcdir option. We are building in place. |
| 928 | ac_srcdir=. |
| 929 | if test -z "$ac_top_builddir"; then |
| 930 | ac_top_srcdir=. |
| 931 | else |
| 932 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 933 | fi ;; |
| 934 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 935 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 936 | ac_top_srcdir=$srcdir ;; |
| 937 | *) # Relative path. |
| 938 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 939 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 940 | esac |
| 941 | |
| 942 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 943 | # the directories may not exist. |
| 944 | case `pwd` in |
| 945 | .) ac_abs_builddir="$ac_dir";; |
| 946 | *) |
| 947 | case "$ac_dir" in |
| 948 | .) ac_abs_builddir=`pwd`;; |
| 949 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 950 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 951 | esac;; |
| 952 | esac |
| 953 | case $ac_abs_builddir in |
| 954 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 955 | *) |
| 956 | case ${ac_top_builddir}. in |
| 957 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 958 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 959 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 960 | esac;; |
| 961 | esac |
| 962 | case $ac_abs_builddir in |
| 963 | .) ac_abs_srcdir=$ac_srcdir;; |
| 964 | *) |
| 965 | case $ac_srcdir in |
| 966 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 967 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 968 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 969 | esac;; |
| 970 | esac |
| 971 | case $ac_abs_builddir in |
| 972 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 973 | *) |
| 974 | case $ac_top_srcdir in |
| 975 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 976 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 977 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 978 | esac;; |
| 979 | esac |
| 980 | |
| 981 | cd $ac_dir |
| 982 | # Check for guested configure; otherwise get Cygnus style configure. |
| 983 | if test -f $ac_srcdir/configure.gnu; then |
| 984 | echo |
| 985 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 986 | elif test -f $ac_srcdir/configure; then |
| 987 | echo |
| 988 | $SHELL $ac_srcdir/configure --help=recursive |
| 989 | elif test -f $ac_srcdir/configure.ac || |
| 990 | test -f $ac_srcdir/configure.in; then |
| 991 | echo |
| 992 | $ac_configure --help |
| 993 | else |
| 994 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 995 | fi |
| 996 | cd $ac_popdir |
| 997 | done |
| 998 | fi |
| 999 | |
| 1000 | test -n "$ac_init_help" && exit 0 |
| 1001 | if $ac_init_version; then |
| 1002 | cat <<\_ACEOF |
| 1003 | |
| 1004 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1005 | This configure script is free software; the Free Software Foundation |
| 1006 | gives unlimited permission to copy, distribute and modify it. |
| 1007 | _ACEOF |
| 1008 | exit 0 |
| 1009 | fi |
| 1010 | exec 5>config.log |
| 1011 | cat >&5 <<_ACEOF |
| 1012 | This file contains any messages produced by compilers while |
| 1013 | running configure, to aid debugging if configure makes a mistake. |
| 1014 | |
| 1015 | It was created by $as_me, which was |
| 1016 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1017 | |
| 1018 | $ $0 $@ |
| 1019 | |
| 1020 | _ACEOF |
| 1021 | { |
| 1022 | cat <<_ASUNAME |
| 1023 | ## --------- ## |
| 1024 | ## Platform. ## |
| 1025 | ## --------- ## |
| 1026 | |
| 1027 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1028 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1029 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1030 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1031 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1032 | |
| 1033 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1034 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1035 | |
| 1036 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1037 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1038 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1039 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1040 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1041 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1042 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1043 | |
| 1044 | _ASUNAME |
| 1045 | |
| 1046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1047 | for as_dir in $PATH |
| 1048 | do |
| 1049 | IFS=$as_save_IFS |
| 1050 | test -z "$as_dir" && as_dir=. |
| 1051 | echo "PATH: $as_dir" |
| 1052 | done |
| 1053 | |
| 1054 | } >&5 |
| 1055 | |
| 1056 | cat >&5 <<_ACEOF |
| 1057 | |
| 1058 | |
| 1059 | ## ----------- ## |
| 1060 | ## Core tests. ## |
| 1061 | ## ----------- ## |
| 1062 | |
| 1063 | _ACEOF |
| 1064 | |
| 1065 | |
| 1066 | # Keep a trace of the command line. |
| 1067 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1068 | # Strip out --silent because we don't want to record it for future runs. |
| 1069 | # Also quote any args containing shell meta-characters. |
| 1070 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1071 | ac_configure_args= |
| 1072 | ac_configure_args0= |
| 1073 | ac_configure_args1= |
| 1074 | ac_sep= |
| 1075 | ac_must_keep_next=false |
| 1076 | for ac_pass in 1 2 |
| 1077 | do |
| 1078 | for ac_arg |
| 1079 | do |
| 1080 | case $ac_arg in |
| 1081 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1082 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1083 | | -silent | --silent | --silen | --sile | --sil) |
| 1084 | continue ;; |
| 1085 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1086 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1087 | esac |
| 1088 | case $ac_pass in |
| 1089 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1090 | 2) |
| 1091 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1092 | if test $ac_must_keep_next = true; then |
| 1093 | ac_must_keep_next=false # Got value, back to normal. |
| 1094 | else |
| 1095 | case $ac_arg in |
| 1096 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1097 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1098 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1099 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1100 | case "$ac_configure_args0 " in |
| 1101 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1102 | esac |
| 1103 | ;; |
| 1104 | -* ) ac_must_keep_next=true ;; |
| 1105 | esac |
| 1106 | fi |
| 1107 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1108 | # Get rid of the leading space. |
| 1109 | ac_sep=" " |
| 1110 | ;; |
| 1111 | esac |
| 1112 | done |
| 1113 | done |
| 1114 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1115 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1116 | |
| 1117 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1118 | # config.log. We remove comments because anyway the quotes in there |
| 1119 | # would cause problems or look ugly. |
| 1120 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1121 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1122 | trap 'exit_status=$? |
| 1123 | # Save into config.log some information that might help in debugging. |
| 1124 | { |
| 1125 | echo |
| 1126 | |
| 1127 | cat <<\_ASBOX |
| 1128 | ## ---------------- ## |
| 1129 | ## Cache variables. ## |
| 1130 | ## ---------------- ## |
| 1131 | _ASBOX |
| 1132 | echo |
| 1133 | # The following way of writing the cache mishandles newlines in values, |
| 1134 | { |
| 1135 | (set) 2>&1 | |
| 1136 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1137 | *ac_space=\ *) |
| 1138 | sed -n \ |
| 1139 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1140 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1141 | ;; |
| 1142 | *) |
| 1143 | sed -n \ |
| 1144 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1145 | ;; |
| 1146 | esac; |
| 1147 | } |
| 1148 | echo |
| 1149 | |
| 1150 | cat <<\_ASBOX |
| 1151 | ## ----------------- ## |
| 1152 | ## Output variables. ## |
| 1153 | ## ----------------- ## |
| 1154 | _ASBOX |
| 1155 | echo |
| 1156 | for ac_var in $ac_subst_vars |
| 1157 | do |
| 1158 | eval ac_val=$`echo $ac_var` |
| 1159 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1160 | done | sort |
| 1161 | echo |
| 1162 | |
| 1163 | if test -n "$ac_subst_files"; then |
| 1164 | cat <<\_ASBOX |
| 1165 | ## ------------- ## |
| 1166 | ## Output files. ## |
| 1167 | ## ------------- ## |
| 1168 | _ASBOX |
| 1169 | echo |
| 1170 | for ac_var in $ac_subst_files |
| 1171 | do |
| 1172 | eval ac_val=$`echo $ac_var` |
| 1173 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1174 | done | sort |
| 1175 | echo |
| 1176 | fi |
| 1177 | |
| 1178 | if test -s confdefs.h; then |
| 1179 | cat <<\_ASBOX |
| 1180 | ## ----------- ## |
| 1181 | ## confdefs.h. ## |
| 1182 | ## ----------- ## |
| 1183 | _ASBOX |
| 1184 | echo |
| 1185 | sed "/^$/d" confdefs.h | sort |
| 1186 | echo |
| 1187 | fi |
| 1188 | test "$ac_signal" != 0 && |
| 1189 | echo "$as_me: caught signal $ac_signal" |
| 1190 | echo "$as_me: exit $exit_status" |
| 1191 | } >&5 |
| 1192 | rm -f core *.core && |
| 1193 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1194 | exit $exit_status |
| 1195 | ' 0 |
| 1196 | for ac_signal in 1 2 13 15; do |
| 1197 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1198 | done |
| 1199 | ac_signal=0 |
| 1200 | |
| 1201 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1202 | rm -rf conftest* confdefs.h |
| 1203 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1204 | echo >confdefs.h |
| 1205 | |
| 1206 | # Predefined preprocessor variables. |
| 1207 | |
| 1208 | cat >>confdefs.h <<_ACEOF |
| 1209 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1210 | _ACEOF |
| 1211 | |
| 1212 | |
| 1213 | cat >>confdefs.h <<_ACEOF |
| 1214 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1215 | _ACEOF |
| 1216 | |
| 1217 | |
| 1218 | cat >>confdefs.h <<_ACEOF |
| 1219 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1220 | _ACEOF |
| 1221 | |
| 1222 | |
| 1223 | cat >>confdefs.h <<_ACEOF |
| 1224 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1225 | _ACEOF |
| 1226 | |
| 1227 | |
| 1228 | cat >>confdefs.h <<_ACEOF |
| 1229 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1230 | _ACEOF |
| 1231 | |
| 1232 | |
| 1233 | # Let the site file select an alternate cache file if it wants to. |
| 1234 | # Prefer explicitly selected file to automatically selected ones. |
| 1235 | if test -z "$CONFIG_SITE"; then |
| 1236 | if test "x$prefix" != xNONE; then |
| 1237 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1238 | else |
| 1239 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1240 | fi |
| 1241 | fi |
| 1242 | for ac_site_file in $CONFIG_SITE; do |
| 1243 | if test -r "$ac_site_file"; then |
| 1244 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1245 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1246 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1247 | . "$ac_site_file" |
| 1248 | fi |
| 1249 | done |
| 1250 | |
| 1251 | if test -r "$cache_file"; then |
| 1252 | # Some versions of bash will fail to source /dev/null (special |
| 1253 | # files actually), so we avoid doing that. |
| 1254 | if test -f "$cache_file"; then |
| 1255 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1256 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1257 | case $cache_file in |
| 1258 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1259 | *) . ./$cache_file;; |
| 1260 | esac |
| 1261 | fi |
| 1262 | else |
| 1263 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1264 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1265 | >$cache_file |
| 1266 | fi |
| 1267 | |
| 1268 | # Check that the precious variables saved in the cache have kept the same |
| 1269 | # value. |
| 1270 | ac_cache_corrupted=false |
| 1271 | for ac_var in `(set) 2>&1 | |
| 1272 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1273 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1274 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1275 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1276 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1277 | case $ac_old_set,$ac_new_set in |
| 1278 | set,) |
| 1279 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1280 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1281 | ac_cache_corrupted=: ;; |
| 1282 | ,set) |
| 1283 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1284 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1285 | ac_cache_corrupted=: ;; |
| 1286 | ,);; |
| 1287 | *) |
| 1288 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1289 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1290 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1291 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1292 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1293 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1294 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1295 | ac_cache_corrupted=: |
| 1296 | fi;; |
| 1297 | esac |
| 1298 | # Pass precious variables to config.status. |
| 1299 | if test "$ac_new_set" = set; then |
| 1300 | case $ac_new_val in |
| 1301 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1302 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1303 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1304 | esac |
| 1305 | case " $ac_configure_args " in |
| 1306 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1307 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1308 | esac |
| 1309 | fi |
| 1310 | done |
| 1311 | if $ac_cache_corrupted; then |
| 1312 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1313 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1314 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1315 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1316 | { (exit 1); exit 1; }; } |
| 1317 | fi |
| 1318 | |
| 1319 | ac_ext=c |
| 1320 | ac_cpp='$CPP $CPPFLAGS' |
| 1321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | ac_config_headers="$ac_config_headers config.h:config.in" |
| 1344 | |
| 1345 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 1346 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 1347 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 1348 | if test "${enable_maintainer_mode+set}" = set; then |
| 1349 | enableval="$enable_maintainer_mode" |
| 1350 | USE_MAINTAINER_MODE=$enableval |
| 1351 | else |
| 1352 | USE_MAINTAINER_MODE=no |
| 1353 | fi; |
| 1354 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 1355 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 1356 | |
| 1357 | |
| 1358 | if test $USE_MAINTAINER_MODE = yes; then |
| 1359 | MAINTAINER_MODE_TRUE= |
| 1360 | MAINTAINER_MODE_FALSE='#' |
| 1361 | else |
| 1362 | MAINTAINER_MODE_TRUE='#' |
| 1363 | MAINTAINER_MODE_FALSE= |
| 1364 | fi |
| 1365 | |
| 1366 | MAINT=$MAINTAINER_MODE_TRUE |
| 1367 | |
| 1368 | |
| 1369 | |
| 1370 | ac_ext=c |
| 1371 | ac_cpp='$CPP $CPPFLAGS' |
| 1372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1375 | if test -n "$ac_tool_prefix"; then |
| 1376 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1377 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1378 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1380 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1382 | else |
| 1383 | if test -n "$CC"; then |
| 1384 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1385 | else |
| 1386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1387 | for as_dir in $PATH |
| 1388 | do |
| 1389 | IFS=$as_save_IFS |
| 1390 | test -z "$as_dir" && as_dir=. |
| 1391 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1392 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1393 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1394 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1395 | break 2 |
| 1396 | fi |
| 1397 | done |
| 1398 | done |
| 1399 | |
| 1400 | fi |
| 1401 | fi |
| 1402 | CC=$ac_cv_prog_CC |
| 1403 | if test -n "$CC"; then |
| 1404 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1405 | echo "${ECHO_T}$CC" >&6 |
| 1406 | else |
| 1407 | echo "$as_me:$LINENO: result: no" >&5 |
| 1408 | echo "${ECHO_T}no" >&6 |
| 1409 | fi |
| 1410 | |
| 1411 | fi |
| 1412 | if test -z "$ac_cv_prog_CC"; then |
| 1413 | ac_ct_CC=$CC |
| 1414 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1415 | set dummy gcc; ac_word=$2 |
| 1416 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1418 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1420 | else |
| 1421 | if test -n "$ac_ct_CC"; then |
| 1422 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1423 | else |
| 1424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1425 | for as_dir in $PATH |
| 1426 | do |
| 1427 | IFS=$as_save_IFS |
| 1428 | test -z "$as_dir" && as_dir=. |
| 1429 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1430 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1431 | ac_cv_prog_ac_ct_CC="gcc" |
| 1432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1433 | break 2 |
| 1434 | fi |
| 1435 | done |
| 1436 | done |
| 1437 | |
| 1438 | fi |
| 1439 | fi |
| 1440 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1441 | if test -n "$ac_ct_CC"; then |
| 1442 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1443 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1444 | else |
| 1445 | echo "$as_me:$LINENO: result: no" >&5 |
| 1446 | echo "${ECHO_T}no" >&6 |
| 1447 | fi |
| 1448 | |
| 1449 | CC=$ac_ct_CC |
| 1450 | else |
| 1451 | CC="$ac_cv_prog_CC" |
| 1452 | fi |
| 1453 | |
| 1454 | if test -z "$CC"; then |
| 1455 | if test -n "$ac_tool_prefix"; then |
| 1456 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1457 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1458 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1460 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1462 | else |
| 1463 | if test -n "$CC"; then |
| 1464 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1465 | else |
| 1466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1467 | for as_dir in $PATH |
| 1468 | do |
| 1469 | IFS=$as_save_IFS |
| 1470 | test -z "$as_dir" && as_dir=. |
| 1471 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1472 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1473 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1475 | break 2 |
| 1476 | fi |
| 1477 | done |
| 1478 | done |
| 1479 | |
| 1480 | fi |
| 1481 | fi |
| 1482 | CC=$ac_cv_prog_CC |
| 1483 | if test -n "$CC"; then |
| 1484 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1485 | echo "${ECHO_T}$CC" >&6 |
| 1486 | else |
| 1487 | echo "$as_me:$LINENO: result: no" >&5 |
| 1488 | echo "${ECHO_T}no" >&6 |
| 1489 | fi |
| 1490 | |
| 1491 | fi |
| 1492 | if test -z "$ac_cv_prog_CC"; then |
| 1493 | ac_ct_CC=$CC |
| 1494 | # Extract the first word of "cc", so it can be a program name with args. |
| 1495 | set dummy cc; ac_word=$2 |
| 1496 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1498 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1500 | else |
| 1501 | if test -n "$ac_ct_CC"; then |
| 1502 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1503 | else |
| 1504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1505 | for as_dir in $PATH |
| 1506 | do |
| 1507 | IFS=$as_save_IFS |
| 1508 | test -z "$as_dir" && as_dir=. |
| 1509 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1510 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1511 | ac_cv_prog_ac_ct_CC="cc" |
| 1512 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1513 | break 2 |
| 1514 | fi |
| 1515 | done |
| 1516 | done |
| 1517 | |
| 1518 | fi |
| 1519 | fi |
| 1520 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1521 | if test -n "$ac_ct_CC"; then |
| 1522 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1523 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1524 | else |
| 1525 | echo "$as_me:$LINENO: result: no" >&5 |
| 1526 | echo "${ECHO_T}no" >&6 |
| 1527 | fi |
| 1528 | |
| 1529 | CC=$ac_ct_CC |
| 1530 | else |
| 1531 | CC="$ac_cv_prog_CC" |
| 1532 | fi |
| 1533 | |
| 1534 | fi |
| 1535 | if test -z "$CC"; then |
| 1536 | # Extract the first word of "cc", so it can be a program name with args. |
| 1537 | set dummy cc; ac_word=$2 |
| 1538 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1540 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1542 | else |
| 1543 | if test -n "$CC"; then |
| 1544 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1545 | else |
| 1546 | ac_prog_rejected=no |
| 1547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1548 | for as_dir in $PATH |
| 1549 | do |
| 1550 | IFS=$as_save_IFS |
| 1551 | test -z "$as_dir" && as_dir=. |
| 1552 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1553 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1554 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1555 | ac_prog_rejected=yes |
| 1556 | continue |
| 1557 | fi |
| 1558 | ac_cv_prog_CC="cc" |
| 1559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1560 | break 2 |
| 1561 | fi |
| 1562 | done |
| 1563 | done |
| 1564 | |
| 1565 | if test $ac_prog_rejected = yes; then |
| 1566 | # We found a bogon in the path, so make sure we never use it. |
| 1567 | set dummy $ac_cv_prog_CC |
| 1568 | shift |
| 1569 | if test $# != 0; then |
| 1570 | # We chose a different compiler from the bogus one. |
| 1571 | # However, it has the same basename, so the bogon will be chosen |
| 1572 | # first if we set CC to just the basename; use the full file name. |
| 1573 | shift |
| 1574 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1575 | fi |
| 1576 | fi |
| 1577 | fi |
| 1578 | fi |
| 1579 | CC=$ac_cv_prog_CC |
| 1580 | if test -n "$CC"; then |
| 1581 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1582 | echo "${ECHO_T}$CC" >&6 |
| 1583 | else |
| 1584 | echo "$as_me:$LINENO: result: no" >&5 |
| 1585 | echo "${ECHO_T}no" >&6 |
| 1586 | fi |
| 1587 | |
| 1588 | fi |
| 1589 | if test -z "$CC"; then |
| 1590 | if test -n "$ac_tool_prefix"; then |
| 1591 | for ac_prog in cl |
| 1592 | do |
| 1593 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1594 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1597 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1599 | else |
| 1600 | if test -n "$CC"; then |
| 1601 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1602 | else |
| 1603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1604 | for as_dir in $PATH |
| 1605 | do |
| 1606 | IFS=$as_save_IFS |
| 1607 | test -z "$as_dir" && as_dir=. |
| 1608 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1610 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1612 | break 2 |
| 1613 | fi |
| 1614 | done |
| 1615 | done |
| 1616 | |
| 1617 | fi |
| 1618 | fi |
| 1619 | CC=$ac_cv_prog_CC |
| 1620 | if test -n "$CC"; then |
| 1621 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1622 | echo "${ECHO_T}$CC" >&6 |
| 1623 | else |
| 1624 | echo "$as_me:$LINENO: result: no" >&5 |
| 1625 | echo "${ECHO_T}no" >&6 |
| 1626 | fi |
| 1627 | |
| 1628 | test -n "$CC" && break |
| 1629 | done |
| 1630 | fi |
| 1631 | if test -z "$CC"; then |
| 1632 | ac_ct_CC=$CC |
| 1633 | for ac_prog in cl |
| 1634 | do |
| 1635 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1636 | set dummy $ac_prog; ac_word=$2 |
| 1637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1639 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1641 | else |
| 1642 | if test -n "$ac_ct_CC"; then |
| 1643 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1644 | else |
| 1645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1646 | for as_dir in $PATH |
| 1647 | do |
| 1648 | IFS=$as_save_IFS |
| 1649 | test -z "$as_dir" && as_dir=. |
| 1650 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1651 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1652 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1654 | break 2 |
| 1655 | fi |
| 1656 | done |
| 1657 | done |
| 1658 | |
| 1659 | fi |
| 1660 | fi |
| 1661 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1662 | if test -n "$ac_ct_CC"; then |
| 1663 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1664 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1665 | else |
| 1666 | echo "$as_me:$LINENO: result: no" >&5 |
| 1667 | echo "${ECHO_T}no" >&6 |
| 1668 | fi |
| 1669 | |
| 1670 | test -n "$ac_ct_CC" && break |
| 1671 | done |
| 1672 | |
| 1673 | CC=$ac_ct_CC |
| 1674 | fi |
| 1675 | |
| 1676 | fi |
| 1677 | |
| 1678 | |
| 1679 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1680 | See \`config.log' for more details." >&5 |
| 1681 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1682 | See \`config.log' for more details." >&2;} |
| 1683 | { (exit 1); exit 1; }; } |
| 1684 | |
| 1685 | # Provide some information about the compiler. |
| 1686 | echo "$as_me:$LINENO:" \ |
| 1687 | "checking for C compiler version" >&5 |
| 1688 | ac_compiler=`set X $ac_compile; echo $2` |
| 1689 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1690 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1691 | ac_status=$? |
| 1692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1693 | (exit $ac_status); } |
| 1694 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1695 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1696 | ac_status=$? |
| 1697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1698 | (exit $ac_status); } |
| 1699 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1700 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1701 | ac_status=$? |
| 1702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1703 | (exit $ac_status); } |
| 1704 | |
| 1705 | cat >conftest.$ac_ext <<_ACEOF |
| 1706 | /* confdefs.h. */ |
| 1707 | _ACEOF |
| 1708 | cat confdefs.h >>conftest.$ac_ext |
| 1709 | cat >>conftest.$ac_ext <<_ACEOF |
| 1710 | /* end confdefs.h. */ |
| 1711 | |
| 1712 | int |
| 1713 | main () |
| 1714 | { |
| 1715 | |
| 1716 | ; |
| 1717 | return 0; |
| 1718 | } |
| 1719 | _ACEOF |
| 1720 | ac_clean_files_save=$ac_clean_files |
| 1721 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1722 | # Try to create an executable without -o first, disregard a.out. |
| 1723 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1724 | # of exeext. |
| 1725 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1726 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1727 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1728 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1729 | (eval $ac_link_default) 2>&5 |
| 1730 | ac_status=$? |
| 1731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1732 | (exit $ac_status); }; then |
| 1733 | # Find the output, starting from the most likely. This scheme is |
| 1734 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1735 | # resort. |
| 1736 | |
| 1737 | # Be careful to initialize this variable, since it used to be cached. |
| 1738 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1739 | ac_cv_exeext= |
| 1740 | # b.out is created by i960 compilers. |
| 1741 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1742 | do |
| 1743 | test -f "$ac_file" || continue |
| 1744 | case $ac_file in |
| 1745 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1746 | ;; |
| 1747 | conftest.$ac_ext ) |
| 1748 | # This is the source file. |
| 1749 | ;; |
| 1750 | [ab].out ) |
| 1751 | # We found the default executable, but exeext='' is most |
| 1752 | # certainly right. |
| 1753 | break;; |
| 1754 | *.* ) |
| 1755 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1756 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1757 | # but it would be cool to find out if it's true. Does anybody |
| 1758 | # maintain Libtool? --akim. |
| 1759 | export ac_cv_exeext |
| 1760 | break;; |
| 1761 | * ) |
| 1762 | break;; |
| 1763 | esac |
| 1764 | done |
| 1765 | else |
| 1766 | echo "$as_me: failed program was:" >&5 |
| 1767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1768 | |
| 1769 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1770 | See \`config.log' for more details." >&5 |
| 1771 | echo "$as_me: error: C compiler cannot create executables |
| 1772 | See \`config.log' for more details." >&2;} |
| 1773 | { (exit 77); exit 77; }; } |
| 1774 | fi |
| 1775 | |
| 1776 | ac_exeext=$ac_cv_exeext |
| 1777 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1778 | echo "${ECHO_T}$ac_file" >&6 |
| 1779 | |
| 1780 | # Check the compiler produces executables we can run. If not, either |
| 1781 | # the compiler is broken, or we cross compile. |
| 1782 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1783 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1784 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1785 | # If not cross compiling, check that we can run a simple program. |
| 1786 | if test "$cross_compiling" != yes; then |
| 1787 | if { ac_try='./$ac_file' |
| 1788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1789 | (eval $ac_try) 2>&5 |
| 1790 | ac_status=$? |
| 1791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1792 | (exit $ac_status); }; }; then |
| 1793 | cross_compiling=no |
| 1794 | else |
| 1795 | if test "$cross_compiling" = maybe; then |
| 1796 | cross_compiling=yes |
| 1797 | else |
| 1798 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1799 | If you meant to cross compile, use \`--host'. |
| 1800 | See \`config.log' for more details." >&5 |
| 1801 | echo "$as_me: error: cannot run C compiled programs. |
| 1802 | If you meant to cross compile, use \`--host'. |
| 1803 | See \`config.log' for more details." >&2;} |
| 1804 | { (exit 1); exit 1; }; } |
| 1805 | fi |
| 1806 | fi |
| 1807 | fi |
| 1808 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1809 | echo "${ECHO_T}yes" >&6 |
| 1810 | |
| 1811 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1812 | ac_clean_files=$ac_clean_files_save |
| 1813 | # Check the compiler produces executables we can run. If not, either |
| 1814 | # the compiler is broken, or we cross compile. |
| 1815 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1816 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1817 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1818 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1819 | |
| 1820 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1821 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1823 | (eval $ac_link) 2>&5 |
| 1824 | ac_status=$? |
| 1825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1826 | (exit $ac_status); }; then |
| 1827 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1828 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1829 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1830 | # `rm'. |
| 1831 | for ac_file in conftest.exe conftest conftest.*; do |
| 1832 | test -f "$ac_file" || continue |
| 1833 | case $ac_file in |
| 1834 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1835 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1836 | export ac_cv_exeext |
| 1837 | break;; |
| 1838 | * ) break;; |
| 1839 | esac |
| 1840 | done |
| 1841 | else |
| 1842 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1843 | See \`config.log' for more details." >&5 |
| 1844 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1845 | See \`config.log' for more details." >&2;} |
| 1846 | { (exit 1); exit 1; }; } |
| 1847 | fi |
| 1848 | |
| 1849 | rm -f conftest$ac_cv_exeext |
| 1850 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1851 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1852 | |
| 1853 | rm -f conftest.$ac_ext |
| 1854 | EXEEXT=$ac_cv_exeext |
| 1855 | ac_exeext=$EXEEXT |
| 1856 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1857 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1858 | if test "${ac_cv_objext+set}" = set; then |
| 1859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1860 | else |
| 1861 | cat >conftest.$ac_ext <<_ACEOF |
| 1862 | /* confdefs.h. */ |
| 1863 | _ACEOF |
| 1864 | cat confdefs.h >>conftest.$ac_ext |
| 1865 | cat >>conftest.$ac_ext <<_ACEOF |
| 1866 | /* end confdefs.h. */ |
| 1867 | |
| 1868 | int |
| 1869 | main () |
| 1870 | { |
| 1871 | |
| 1872 | ; |
| 1873 | return 0; |
| 1874 | } |
| 1875 | _ACEOF |
| 1876 | rm -f conftest.o conftest.obj |
| 1877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1878 | (eval $ac_compile) 2>&5 |
| 1879 | ac_status=$? |
| 1880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1881 | (exit $ac_status); }; then |
| 1882 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1883 | case $ac_file in |
| 1884 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1885 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1886 | break;; |
| 1887 | esac |
| 1888 | done |
| 1889 | else |
| 1890 | echo "$as_me: failed program was:" >&5 |
| 1891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1892 | |
| 1893 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1894 | See \`config.log' for more details." >&5 |
| 1895 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1896 | See \`config.log' for more details." >&2;} |
| 1897 | { (exit 1); exit 1; }; } |
| 1898 | fi |
| 1899 | |
| 1900 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1901 | fi |
| 1902 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1903 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1904 | OBJEXT=$ac_cv_objext |
| 1905 | ac_objext=$OBJEXT |
| 1906 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1907 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1908 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1910 | else |
| 1911 | cat >conftest.$ac_ext <<_ACEOF |
| 1912 | /* confdefs.h. */ |
| 1913 | _ACEOF |
| 1914 | cat confdefs.h >>conftest.$ac_ext |
| 1915 | cat >>conftest.$ac_ext <<_ACEOF |
| 1916 | /* end confdefs.h. */ |
| 1917 | |
| 1918 | int |
| 1919 | main () |
| 1920 | { |
| 1921 | #ifndef __GNUC__ |
| 1922 | choke me |
| 1923 | #endif |
| 1924 | |
| 1925 | ; |
| 1926 | return 0; |
| 1927 | } |
| 1928 | _ACEOF |
| 1929 | rm -f conftest.$ac_objext |
| 1930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1931 | (eval $ac_compile) 2>conftest.er1 |
| 1932 | ac_status=$? |
| 1933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1934 | rm -f conftest.er1 |
| 1935 | cat conftest.err >&5 |
| 1936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1937 | (exit $ac_status); } && |
| 1938 | { ac_try='test -z "$ac_c_werror_flag" |
| 1939 | || test ! -s conftest.err' |
| 1940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1941 | (eval $ac_try) 2>&5 |
| 1942 | ac_status=$? |
| 1943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1944 | (exit $ac_status); }; } && |
| 1945 | { ac_try='test -s conftest.$ac_objext' |
| 1946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1947 | (eval $ac_try) 2>&5 |
| 1948 | ac_status=$? |
| 1949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1950 | (exit $ac_status); }; }; then |
| 1951 | ac_compiler_gnu=yes |
| 1952 | else |
| 1953 | echo "$as_me: failed program was:" >&5 |
| 1954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1955 | |
| 1956 | ac_compiler_gnu=no |
| 1957 | fi |
| 1958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1959 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 1960 | |
| 1961 | fi |
| 1962 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1963 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1964 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1965 | ac_test_CFLAGS=${CFLAGS+set} |
| 1966 | ac_save_CFLAGS=$CFLAGS |
| 1967 | CFLAGS="-g" |
| 1968 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1969 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1970 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1972 | else |
| 1973 | cat >conftest.$ac_ext <<_ACEOF |
| 1974 | /* confdefs.h. */ |
| 1975 | _ACEOF |
| 1976 | cat confdefs.h >>conftest.$ac_ext |
| 1977 | cat >>conftest.$ac_ext <<_ACEOF |
| 1978 | /* end confdefs.h. */ |
| 1979 | |
| 1980 | int |
| 1981 | main () |
| 1982 | { |
| 1983 | |
| 1984 | ; |
| 1985 | return 0; |
| 1986 | } |
| 1987 | _ACEOF |
| 1988 | rm -f conftest.$ac_objext |
| 1989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1990 | (eval $ac_compile) 2>conftest.er1 |
| 1991 | ac_status=$? |
| 1992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1993 | rm -f conftest.er1 |
| 1994 | cat conftest.err >&5 |
| 1995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1996 | (exit $ac_status); } && |
| 1997 | { ac_try='test -z "$ac_c_werror_flag" |
| 1998 | || test ! -s conftest.err' |
| 1999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2000 | (eval $ac_try) 2>&5 |
| 2001 | ac_status=$? |
| 2002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2003 | (exit $ac_status); }; } && |
| 2004 | { ac_try='test -s conftest.$ac_objext' |
| 2005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2006 | (eval $ac_try) 2>&5 |
| 2007 | ac_status=$? |
| 2008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2009 | (exit $ac_status); }; }; then |
| 2010 | ac_cv_prog_cc_g=yes |
| 2011 | else |
| 2012 | echo "$as_me: failed program was:" >&5 |
| 2013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2014 | |
| 2015 | ac_cv_prog_cc_g=no |
| 2016 | fi |
| 2017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2018 | fi |
| 2019 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2020 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2021 | if test "$ac_test_CFLAGS" = set; then |
| 2022 | CFLAGS=$ac_save_CFLAGS |
| 2023 | elif test $ac_cv_prog_cc_g = yes; then |
| 2024 | if test "$GCC" = yes; then |
| 2025 | CFLAGS="-g -O2" |
| 2026 | else |
| 2027 | CFLAGS="-g" |
| 2028 | fi |
| 2029 | else |
| 2030 | if test "$GCC" = yes; then |
| 2031 | CFLAGS="-O2" |
| 2032 | else |
| 2033 | CFLAGS= |
| 2034 | fi |
| 2035 | fi |
| 2036 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2037 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2038 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2040 | else |
| 2041 | ac_cv_prog_cc_stdc=no |
| 2042 | ac_save_CC=$CC |
| 2043 | cat >conftest.$ac_ext <<_ACEOF |
| 2044 | /* confdefs.h. */ |
| 2045 | _ACEOF |
| 2046 | cat confdefs.h >>conftest.$ac_ext |
| 2047 | cat >>conftest.$ac_ext <<_ACEOF |
| 2048 | /* end confdefs.h. */ |
| 2049 | #include <stdarg.h> |
| 2050 | #include <stdio.h> |
| 2051 | #include <sys/types.h> |
| 2052 | #include <sys/stat.h> |
| 2053 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2054 | struct buf { int x; }; |
| 2055 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2056 | static char *e (p, i) |
| 2057 | char **p; |
| 2058 | int i; |
| 2059 | { |
| 2060 | return p[i]; |
| 2061 | } |
| 2062 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2063 | { |
| 2064 | char *s; |
| 2065 | va_list v; |
| 2066 | va_start (v,p); |
| 2067 | s = g (p, va_arg (v,int)); |
| 2068 | va_end (v); |
| 2069 | return s; |
| 2070 | } |
| 2071 | |
| 2072 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2073 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2074 | These don't provoke an error unfortunately, instead are silently treated |
| 2075 | as 'x'. The following induces an error, until -std1 is added to get |
| 2076 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2077 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2078 | that's true only with -std1. */ |
| 2079 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2080 | |
| 2081 | int test (int i, double x); |
| 2082 | struct s1 {int (*f) (int a);}; |
| 2083 | struct s2 {int (*f) (double a);}; |
| 2084 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2085 | int argc; |
| 2086 | char **argv; |
| 2087 | int |
| 2088 | main () |
| 2089 | { |
| 2090 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2091 | ; |
| 2092 | return 0; |
| 2093 | } |
| 2094 | _ACEOF |
| 2095 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2096 | # breaks some systems' header files. |
| 2097 | # AIX -qlanglvl=ansi |
| 2098 | # Ultrix and OSF/1 -std1 |
| 2099 | # HP-UX 10.20 and later -Ae |
| 2100 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2101 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2102 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2103 | do |
| 2104 | CC="$ac_save_CC $ac_arg" |
| 2105 | rm -f conftest.$ac_objext |
| 2106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2107 | (eval $ac_compile) 2>conftest.er1 |
| 2108 | ac_status=$? |
| 2109 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2110 | rm -f conftest.er1 |
| 2111 | cat conftest.err >&5 |
| 2112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2113 | (exit $ac_status); } && |
| 2114 | { ac_try='test -z "$ac_c_werror_flag" |
| 2115 | || test ! -s conftest.err' |
| 2116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2117 | (eval $ac_try) 2>&5 |
| 2118 | ac_status=$? |
| 2119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2120 | (exit $ac_status); }; } && |
| 2121 | { ac_try='test -s conftest.$ac_objext' |
| 2122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2123 | (eval $ac_try) 2>&5 |
| 2124 | ac_status=$? |
| 2125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2126 | (exit $ac_status); }; }; then |
| 2127 | ac_cv_prog_cc_stdc=$ac_arg |
| 2128 | break |
| 2129 | else |
| 2130 | echo "$as_me: failed program was:" >&5 |
| 2131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2132 | |
| 2133 | fi |
| 2134 | rm -f conftest.err conftest.$ac_objext |
| 2135 | done |
| 2136 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2137 | CC=$ac_save_CC |
| 2138 | |
| 2139 | fi |
| 2140 | |
| 2141 | case "x$ac_cv_prog_cc_stdc" in |
| 2142 | x|xno) |
| 2143 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2144 | echo "${ECHO_T}none needed" >&6 ;; |
| 2145 | *) |
| 2146 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2147 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2148 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2149 | esac |
| 2150 | |
| 2151 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2152 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2153 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2154 | # the declaration of exit, since it's the most demanding environment. |
| 2155 | cat >conftest.$ac_ext <<_ACEOF |
| 2156 | #ifndef __cplusplus |
| 2157 | choke me |
| 2158 | #endif |
| 2159 | _ACEOF |
| 2160 | rm -f conftest.$ac_objext |
| 2161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2162 | (eval $ac_compile) 2>conftest.er1 |
| 2163 | ac_status=$? |
| 2164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2165 | rm -f conftest.er1 |
| 2166 | cat conftest.err >&5 |
| 2167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2168 | (exit $ac_status); } && |
| 2169 | { ac_try='test -z "$ac_c_werror_flag" |
| 2170 | || test ! -s conftest.err' |
| 2171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2172 | (eval $ac_try) 2>&5 |
| 2173 | ac_status=$? |
| 2174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2175 | (exit $ac_status); }; } && |
| 2176 | { ac_try='test -s conftest.$ac_objext' |
| 2177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2178 | (eval $ac_try) 2>&5 |
| 2179 | ac_status=$? |
| 2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2181 | (exit $ac_status); }; }; then |
| 2182 | for ac_declaration in \ |
| 2183 | '' \ |
| 2184 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2185 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2186 | 'extern "C" void exit (int) throw ();' \ |
| 2187 | 'extern "C" void exit (int);' \ |
| 2188 | 'void exit (int);' |
| 2189 | do |
| 2190 | cat >conftest.$ac_ext <<_ACEOF |
| 2191 | /* confdefs.h. */ |
| 2192 | _ACEOF |
| 2193 | cat confdefs.h >>conftest.$ac_ext |
| 2194 | cat >>conftest.$ac_ext <<_ACEOF |
| 2195 | /* end confdefs.h. */ |
| 2196 | $ac_declaration |
| 2197 | #include <stdlib.h> |
| 2198 | int |
| 2199 | main () |
| 2200 | { |
| 2201 | exit (42); |
| 2202 | ; |
| 2203 | return 0; |
| 2204 | } |
| 2205 | _ACEOF |
| 2206 | rm -f conftest.$ac_objext |
| 2207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2208 | (eval $ac_compile) 2>conftest.er1 |
| 2209 | ac_status=$? |
| 2210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2211 | rm -f conftest.er1 |
| 2212 | cat conftest.err >&5 |
| 2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2214 | (exit $ac_status); } && |
| 2215 | { ac_try='test -z "$ac_c_werror_flag" |
| 2216 | || test ! -s conftest.err' |
| 2217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2218 | (eval $ac_try) 2>&5 |
| 2219 | ac_status=$? |
| 2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2221 | (exit $ac_status); }; } && |
| 2222 | { ac_try='test -s conftest.$ac_objext' |
| 2223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2224 | (eval $ac_try) 2>&5 |
| 2225 | ac_status=$? |
| 2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2227 | (exit $ac_status); }; }; then |
| 2228 | : |
| 2229 | else |
| 2230 | echo "$as_me: failed program was:" >&5 |
| 2231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2232 | |
| 2233 | continue |
| 2234 | fi |
| 2235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2236 | cat >conftest.$ac_ext <<_ACEOF |
| 2237 | /* confdefs.h. */ |
| 2238 | _ACEOF |
| 2239 | cat confdefs.h >>conftest.$ac_ext |
| 2240 | cat >>conftest.$ac_ext <<_ACEOF |
| 2241 | /* end confdefs.h. */ |
| 2242 | $ac_declaration |
| 2243 | int |
| 2244 | main () |
| 2245 | { |
| 2246 | exit (42); |
| 2247 | ; |
| 2248 | return 0; |
| 2249 | } |
| 2250 | _ACEOF |
| 2251 | rm -f conftest.$ac_objext |
| 2252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2253 | (eval $ac_compile) 2>conftest.er1 |
| 2254 | ac_status=$? |
| 2255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2256 | rm -f conftest.er1 |
| 2257 | cat conftest.err >&5 |
| 2258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2259 | (exit $ac_status); } && |
| 2260 | { ac_try='test -z "$ac_c_werror_flag" |
| 2261 | || test ! -s conftest.err' |
| 2262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2263 | (eval $ac_try) 2>&5 |
| 2264 | ac_status=$? |
| 2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2266 | (exit $ac_status); }; } && |
| 2267 | { ac_try='test -s conftest.$ac_objext' |
| 2268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2269 | (eval $ac_try) 2>&5 |
| 2270 | ac_status=$? |
| 2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2272 | (exit $ac_status); }; }; then |
| 2273 | break |
| 2274 | else |
| 2275 | echo "$as_me: failed program was:" >&5 |
| 2276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2277 | |
| 2278 | fi |
| 2279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2280 | done |
| 2281 | rm -f conftest* |
| 2282 | if test -n "$ac_declaration"; then |
| 2283 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2284 | echo $ac_declaration >>confdefs.h |
| 2285 | echo '#endif' >>confdefs.h |
| 2286 | fi |
| 2287 | |
| 2288 | else |
| 2289 | echo "$as_me: failed program was:" >&5 |
| 2290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2291 | |
| 2292 | fi |
| 2293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2294 | ac_ext=c |
| 2295 | ac_cpp='$CPP $CPPFLAGS' |
| 2296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2299 | |
| 2300 | |
| 2301 | cat >>confdefs.h <<\_ACEOF |
| 2302 | #define _GNU_SOURCE 1 |
| 2303 | _ACEOF |
| 2304 | |
| 2305 | |
| 2306 | |
| 2307 | ac_ext=c |
| 2308 | ac_cpp='$CPP $CPPFLAGS' |
| 2309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2312 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2313 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2314 | # On Suns, sometimes $CPP names a directory. |
| 2315 | if test -n "$CPP" && test -d "$CPP"; then |
| 2316 | CPP= |
| 2317 | fi |
| 2318 | if test -z "$CPP"; then |
| 2319 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2321 | else |
| 2322 | # Double quotes because CPP needs to be expanded |
| 2323 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2324 | do |
| 2325 | ac_preproc_ok=false |
| 2326 | for ac_c_preproc_warn_flag in '' yes |
| 2327 | do |
| 2328 | # Use a header file that comes with gcc, so configuring glibc |
| 2329 | # with a fresh cross-compiler works. |
| 2330 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2331 | # <limits.h> exists even on freestanding compilers. |
| 2332 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2333 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2334 | cat >conftest.$ac_ext <<_ACEOF |
| 2335 | /* confdefs.h. */ |
| 2336 | _ACEOF |
| 2337 | cat confdefs.h >>conftest.$ac_ext |
| 2338 | cat >>conftest.$ac_ext <<_ACEOF |
| 2339 | /* end confdefs.h. */ |
| 2340 | #ifdef __STDC__ |
| 2341 | # include <limits.h> |
| 2342 | #else |
| 2343 | # include <assert.h> |
| 2344 | #endif |
| 2345 | Syntax error |
| 2346 | _ACEOF |
| 2347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2349 | ac_status=$? |
| 2350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2351 | rm -f conftest.er1 |
| 2352 | cat conftest.err >&5 |
| 2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2354 | (exit $ac_status); } >/dev/null; then |
| 2355 | if test -s conftest.err; then |
| 2356 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2357 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2358 | else |
| 2359 | ac_cpp_err= |
| 2360 | fi |
| 2361 | else |
| 2362 | ac_cpp_err=yes |
| 2363 | fi |
| 2364 | if test -z "$ac_cpp_err"; then |
| 2365 | : |
| 2366 | else |
| 2367 | echo "$as_me: failed program was:" >&5 |
| 2368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2369 | |
| 2370 | # Broken: fails on valid input. |
| 2371 | continue |
| 2372 | fi |
| 2373 | rm -f conftest.err conftest.$ac_ext |
| 2374 | |
| 2375 | # OK, works on sane cases. Now check whether non-existent headers |
| 2376 | # can be detected and how. |
| 2377 | cat >conftest.$ac_ext <<_ACEOF |
| 2378 | /* confdefs.h. */ |
| 2379 | _ACEOF |
| 2380 | cat confdefs.h >>conftest.$ac_ext |
| 2381 | cat >>conftest.$ac_ext <<_ACEOF |
| 2382 | /* end confdefs.h. */ |
| 2383 | #include <ac_nonexistent.h> |
| 2384 | _ACEOF |
| 2385 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2386 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2387 | ac_status=$? |
| 2388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2389 | rm -f conftest.er1 |
| 2390 | cat conftest.err >&5 |
| 2391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2392 | (exit $ac_status); } >/dev/null; then |
| 2393 | if test -s conftest.err; then |
| 2394 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2395 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2396 | else |
| 2397 | ac_cpp_err= |
| 2398 | fi |
| 2399 | else |
| 2400 | ac_cpp_err=yes |
| 2401 | fi |
| 2402 | if test -z "$ac_cpp_err"; then |
| 2403 | # Broken: success on invalid input. |
| 2404 | continue |
| 2405 | else |
| 2406 | echo "$as_me: failed program was:" >&5 |
| 2407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2408 | |
| 2409 | # Passes both tests. |
| 2410 | ac_preproc_ok=: |
| 2411 | break |
| 2412 | fi |
| 2413 | rm -f conftest.err conftest.$ac_ext |
| 2414 | |
| 2415 | done |
| 2416 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2417 | rm -f conftest.err conftest.$ac_ext |
| 2418 | if $ac_preproc_ok; then |
| 2419 | break |
| 2420 | fi |
| 2421 | |
| 2422 | done |
| 2423 | ac_cv_prog_CPP=$CPP |
| 2424 | |
| 2425 | fi |
| 2426 | CPP=$ac_cv_prog_CPP |
| 2427 | else |
| 2428 | ac_cv_prog_CPP=$CPP |
| 2429 | fi |
| 2430 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2431 | echo "${ECHO_T}$CPP" >&6 |
| 2432 | ac_preproc_ok=false |
| 2433 | for ac_c_preproc_warn_flag in '' yes |
| 2434 | do |
| 2435 | # Use a header file that comes with gcc, so configuring glibc |
| 2436 | # with a fresh cross-compiler works. |
| 2437 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2438 | # <limits.h> exists even on freestanding compilers. |
| 2439 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2440 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2441 | cat >conftest.$ac_ext <<_ACEOF |
| 2442 | /* confdefs.h. */ |
| 2443 | _ACEOF |
| 2444 | cat confdefs.h >>conftest.$ac_ext |
| 2445 | cat >>conftest.$ac_ext <<_ACEOF |
| 2446 | /* end confdefs.h. */ |
| 2447 | #ifdef __STDC__ |
| 2448 | # include <limits.h> |
| 2449 | #else |
| 2450 | # include <assert.h> |
| 2451 | #endif |
| 2452 | Syntax error |
| 2453 | _ACEOF |
| 2454 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2455 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2456 | ac_status=$? |
| 2457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2458 | rm -f conftest.er1 |
| 2459 | cat conftest.err >&5 |
| 2460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2461 | (exit $ac_status); } >/dev/null; then |
| 2462 | if test -s conftest.err; then |
| 2463 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2464 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2465 | else |
| 2466 | ac_cpp_err= |
| 2467 | fi |
| 2468 | else |
| 2469 | ac_cpp_err=yes |
| 2470 | fi |
| 2471 | if test -z "$ac_cpp_err"; then |
| 2472 | : |
| 2473 | else |
| 2474 | echo "$as_me: failed program was:" >&5 |
| 2475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2476 | |
| 2477 | # Broken: fails on valid input. |
| 2478 | continue |
| 2479 | fi |
| 2480 | rm -f conftest.err conftest.$ac_ext |
| 2481 | |
| 2482 | # OK, works on sane cases. Now check whether non-existent headers |
| 2483 | # can be detected and how. |
| 2484 | cat >conftest.$ac_ext <<_ACEOF |
| 2485 | /* confdefs.h. */ |
| 2486 | _ACEOF |
| 2487 | cat confdefs.h >>conftest.$ac_ext |
| 2488 | cat >>conftest.$ac_ext <<_ACEOF |
| 2489 | /* end confdefs.h. */ |
| 2490 | #include <ac_nonexistent.h> |
| 2491 | _ACEOF |
| 2492 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2493 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2494 | ac_status=$? |
| 2495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2496 | rm -f conftest.er1 |
| 2497 | cat conftest.err >&5 |
| 2498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2499 | (exit $ac_status); } >/dev/null; then |
| 2500 | if test -s conftest.err; then |
| 2501 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2502 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2503 | else |
| 2504 | ac_cpp_err= |
| 2505 | fi |
| 2506 | else |
| 2507 | ac_cpp_err=yes |
| 2508 | fi |
| 2509 | if test -z "$ac_cpp_err"; then |
| 2510 | # Broken: success on invalid input. |
| 2511 | continue |
| 2512 | else |
| 2513 | echo "$as_me: failed program was:" >&5 |
| 2514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2515 | |
| 2516 | # Passes both tests. |
| 2517 | ac_preproc_ok=: |
| 2518 | break |
| 2519 | fi |
| 2520 | rm -f conftest.err conftest.$ac_ext |
| 2521 | |
| 2522 | done |
| 2523 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2524 | rm -f conftest.err conftest.$ac_ext |
| 2525 | if $ac_preproc_ok; then |
| 2526 | : |
| 2527 | else |
| 2528 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2529 | See \`config.log' for more details." >&5 |
| 2530 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2531 | See \`config.log' for more details." >&2;} |
| 2532 | { (exit 1); exit 1; }; } |
| 2533 | fi |
| 2534 | |
| 2535 | ac_ext=c |
| 2536 | ac_cpp='$CPP $CPPFLAGS' |
| 2537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2540 | |
| 2541 | |
| 2542 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2543 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2544 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2546 | else |
| 2547 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2548 | then ac_cv_prog_egrep='grep -E' |
| 2549 | else ac_cv_prog_egrep='egrep' |
| 2550 | fi |
| 2551 | fi |
| 2552 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2553 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2554 | EGREP=$ac_cv_prog_egrep |
| 2555 | |
| 2556 | |
| 2557 | |
| 2558 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2559 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2560 | cat >conftest.$ac_ext <<_ACEOF |
| 2561 | /* confdefs.h. */ |
| 2562 | _ACEOF |
| 2563 | cat confdefs.h >>conftest.$ac_ext |
| 2564 | cat >>conftest.$ac_ext <<_ACEOF |
| 2565 | /* end confdefs.h. */ |
| 2566 | #ifdef _AIX |
| 2567 | yes |
| 2568 | #endif |
| 2569 | |
| 2570 | _ACEOF |
| 2571 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2572 | $EGREP "yes" >/dev/null 2>&1; then |
| 2573 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2574 | echo "${ECHO_T}yes" >&6 |
| 2575 | cat >>confdefs.h <<\_ACEOF |
| 2576 | #define _ALL_SOURCE 1 |
| 2577 | _ACEOF |
| 2578 | |
| 2579 | else |
| 2580 | echo "$as_me:$LINENO: result: no" >&5 |
| 2581 | echo "${ECHO_T}no" >&6 |
| 2582 | fi |
| 2583 | rm -f conftest* |
| 2584 | |
| 2585 | |
| 2586 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 2587 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
| 2588 | if test "${ac_cv_search_strerror+set}" = set; then |
| 2589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2590 | else |
| 2591 | ac_func_search_save_LIBS=$LIBS |
| 2592 | ac_cv_search_strerror=no |
| 2593 | cat >conftest.$ac_ext <<_ACEOF |
| 2594 | /* confdefs.h. */ |
| 2595 | _ACEOF |
| 2596 | cat confdefs.h >>conftest.$ac_ext |
| 2597 | cat >>conftest.$ac_ext <<_ACEOF |
| 2598 | /* end confdefs.h. */ |
| 2599 | |
| 2600 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2601 | #ifdef __cplusplus |
| 2602 | extern "C" |
| 2603 | #endif |
| 2604 | /* We use char because int might match the return type of a gcc2 |
| 2605 | builtin and then its argument prototype would still apply. */ |
| 2606 | char strerror (); |
| 2607 | int |
| 2608 | main () |
| 2609 | { |
| 2610 | strerror (); |
| 2611 | ; |
| 2612 | return 0; |
| 2613 | } |
| 2614 | _ACEOF |
| 2615 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2617 | (eval $ac_link) 2>conftest.er1 |
| 2618 | ac_status=$? |
| 2619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2620 | rm -f conftest.er1 |
| 2621 | cat conftest.err >&5 |
| 2622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2623 | (exit $ac_status); } && |
| 2624 | { ac_try='test -z "$ac_c_werror_flag" |
| 2625 | || test ! -s conftest.err' |
| 2626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2627 | (eval $ac_try) 2>&5 |
| 2628 | ac_status=$? |
| 2629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2630 | (exit $ac_status); }; } && |
| 2631 | { ac_try='test -s conftest$ac_exeext' |
| 2632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2633 | (eval $ac_try) 2>&5 |
| 2634 | ac_status=$? |
| 2635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2636 | (exit $ac_status); }; }; then |
| 2637 | ac_cv_search_strerror="none required" |
| 2638 | else |
| 2639 | echo "$as_me: failed program was:" >&5 |
| 2640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2641 | |
| 2642 | fi |
| 2643 | rm -f conftest.err conftest.$ac_objext \ |
| 2644 | conftest$ac_exeext conftest.$ac_ext |
| 2645 | if test "$ac_cv_search_strerror" = no; then |
| 2646 | for ac_lib in cposix; do |
| 2647 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 2648 | cat >conftest.$ac_ext <<_ACEOF |
| 2649 | /* confdefs.h. */ |
| 2650 | _ACEOF |
| 2651 | cat confdefs.h >>conftest.$ac_ext |
| 2652 | cat >>conftest.$ac_ext <<_ACEOF |
| 2653 | /* end confdefs.h. */ |
| 2654 | |
| 2655 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2656 | #ifdef __cplusplus |
| 2657 | extern "C" |
| 2658 | #endif |
| 2659 | /* We use char because int might match the return type of a gcc2 |
| 2660 | builtin and then its argument prototype would still apply. */ |
| 2661 | char strerror (); |
| 2662 | int |
| 2663 | main () |
| 2664 | { |
| 2665 | strerror (); |
| 2666 | ; |
| 2667 | return 0; |
| 2668 | } |
| 2669 | _ACEOF |
| 2670 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2672 | (eval $ac_link) 2>conftest.er1 |
| 2673 | ac_status=$? |
| 2674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2675 | rm -f conftest.er1 |
| 2676 | cat conftest.err >&5 |
| 2677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2678 | (exit $ac_status); } && |
| 2679 | { ac_try='test -z "$ac_c_werror_flag" |
| 2680 | || test ! -s conftest.err' |
| 2681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2682 | (eval $ac_try) 2>&5 |
| 2683 | ac_status=$? |
| 2684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2685 | (exit $ac_status); }; } && |
| 2686 | { ac_try='test -s conftest$ac_exeext' |
| 2687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2688 | (eval $ac_try) 2>&5 |
| 2689 | ac_status=$? |
| 2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2691 | (exit $ac_status); }; }; then |
| 2692 | ac_cv_search_strerror="-l$ac_lib" |
| 2693 | break |
| 2694 | else |
| 2695 | echo "$as_me: failed program was:" >&5 |
| 2696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2697 | |
| 2698 | fi |
| 2699 | rm -f conftest.err conftest.$ac_objext \ |
| 2700 | conftest$ac_exeext conftest.$ac_ext |
| 2701 | done |
| 2702 | fi |
| 2703 | LIBS=$ac_func_search_save_LIBS |
| 2704 | fi |
| 2705 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 2706 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
| 2707 | if test "$ac_cv_search_strerror" != no; then |
| 2708 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
| 2709 | |
| 2710 | fi |
| 2711 | |
| 2712 | |
| 2713 | |
| 2714 | |
| 2715 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 |
| 2716 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 |
| 2717 | if test "${am_cv_prog_cc_stdc+set}" = set; then |
| 2718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2719 | else |
| 2720 | am_cv_prog_cc_stdc=no |
| 2721 | ac_save_CC="$CC" |
| 2722 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2723 | # breaks some systems' header files. |
| 2724 | # AIX -qlanglvl=ansi |
| 2725 | # Ultrix and OSF/1 -std1 |
| 2726 | # HP-UX 10.20 and later -Ae |
| 2727 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2728 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2729 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2730 | do |
| 2731 | CC="$ac_save_CC $ac_arg" |
| 2732 | cat >conftest.$ac_ext <<_ACEOF |
| 2733 | /* confdefs.h. */ |
| 2734 | _ACEOF |
| 2735 | cat confdefs.h >>conftest.$ac_ext |
| 2736 | cat >>conftest.$ac_ext <<_ACEOF |
| 2737 | /* end confdefs.h. */ |
| 2738 | #include <stdarg.h> |
| 2739 | #include <stdio.h> |
| 2740 | #include <sys/types.h> |
| 2741 | #include <sys/stat.h> |
| 2742 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2743 | struct buf { int x; }; |
| 2744 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2745 | static char *e (p, i) |
| 2746 | char **p; |
| 2747 | int i; |
| 2748 | { |
| 2749 | return p[i]; |
| 2750 | } |
| 2751 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2752 | { |
| 2753 | char *s; |
| 2754 | va_list v; |
| 2755 | va_start (v,p); |
| 2756 | s = g (p, va_arg (v,int)); |
| 2757 | va_end (v); |
| 2758 | return s; |
| 2759 | } |
| 2760 | int test (int i, double x); |
| 2761 | struct s1 {int (*f) (int a);}; |
| 2762 | struct s2 {int (*f) (double a);}; |
| 2763 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2764 | int argc; |
| 2765 | char **argv; |
| 2766 | |
| 2767 | int |
| 2768 | main () |
| 2769 | { |
| 2770 | |
| 2771 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2772 | |
| 2773 | ; |
| 2774 | return 0; |
| 2775 | } |
| 2776 | _ACEOF |
| 2777 | rm -f conftest.$ac_objext |
| 2778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2779 | (eval $ac_compile) 2>conftest.er1 |
| 2780 | ac_status=$? |
| 2781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2782 | rm -f conftest.er1 |
| 2783 | cat conftest.err >&5 |
| 2784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2785 | (exit $ac_status); } && |
| 2786 | { ac_try='test -z "$ac_c_werror_flag" |
| 2787 | || test ! -s conftest.err' |
| 2788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2789 | (eval $ac_try) 2>&5 |
| 2790 | ac_status=$? |
| 2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2792 | (exit $ac_status); }; } && |
| 2793 | { ac_try='test -s conftest.$ac_objext' |
| 2794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2795 | (eval $ac_try) 2>&5 |
| 2796 | ac_status=$? |
| 2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2798 | (exit $ac_status); }; }; then |
| 2799 | am_cv_prog_cc_stdc="$ac_arg"; break |
| 2800 | else |
| 2801 | echo "$as_me: failed program was:" >&5 |
| 2802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2803 | |
| 2804 | fi |
| 2805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2806 | done |
| 2807 | CC="$ac_save_CC" |
| 2808 | |
| 2809 | fi |
| 2810 | |
| 2811 | if test -z "$am_cv_prog_cc_stdc"; then |
| 2812 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2813 | echo "${ECHO_T}none needed" >&6 |
| 2814 | else |
| 2815 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
| 2816 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 |
| 2817 | fi |
| 2818 | case "x$am_cv_prog_cc_stdc" in |
| 2819 | x|xno) ;; |
| 2820 | *) CC="$CC $am_cv_prog_cc_stdc" ;; |
| 2821 | esac |
| 2822 | |
| 2823 | |
| 2824 | ac_aux_dir= |
| 2825 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do |
| 2826 | if test -f $ac_dir/install-sh; then |
| 2827 | ac_aux_dir=$ac_dir |
| 2828 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2829 | break |
| 2830 | elif 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/shtool; then |
| 2835 | ac_aux_dir=$ac_dir |
| 2836 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2837 | break |
| 2838 | fi |
| 2839 | done |
| 2840 | if test -z "$ac_aux_dir"; then |
| 2841 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5 |
| 2842 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;} |
| 2843 | { (exit 1); exit 1; }; } |
| 2844 | fi |
| 2845 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 2846 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 2847 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 2848 | |
| 2849 | # Make sure we can run config.sub. |
| 2850 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 2851 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 2852 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 2853 | { (exit 1); exit 1; }; } |
| 2854 | |
| 2855 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 2856 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 2857 | if test "${ac_cv_build+set}" = set; then |
| 2858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2859 | else |
| 2860 | ac_cv_build_alias=$build_alias |
| 2861 | test -z "$ac_cv_build_alias" && |
| 2862 | ac_cv_build_alias=`$ac_config_guess` |
| 2863 | test -z "$ac_cv_build_alias" && |
| 2864 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2865 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2866 | { (exit 1); exit 1; }; } |
| 2867 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 2868 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 2869 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 2870 | { (exit 1); exit 1; }; } |
| 2871 | |
| 2872 | fi |
| 2873 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2874 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 2875 | build=$ac_cv_build |
| 2876 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 2877 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 2878 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 2879 | |
| 2880 | |
| 2881 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 2882 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 2883 | if test "${ac_cv_host+set}" = set; then |
| 2884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2885 | else |
| 2886 | ac_cv_host_alias=$host_alias |
| 2887 | test -z "$ac_cv_host_alias" && |
| 2888 | ac_cv_host_alias=$ac_cv_build_alias |
| 2889 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 2890 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 2891 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 2892 | { (exit 1); exit 1; }; } |
| 2893 | |
| 2894 | fi |
| 2895 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2896 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 2897 | host=$ac_cv_host |
| 2898 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 2899 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 2900 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 2901 | |
| 2902 | |
| 2903 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 2904 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 2905 | if test "${ac_cv_target+set}" = set; then |
| 2906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2907 | else |
| 2908 | ac_cv_target_alias=$target_alias |
| 2909 | test "x$ac_cv_target_alias" = "x" && |
| 2910 | ac_cv_target_alias=$ac_cv_host_alias |
| 2911 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 2912 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 2913 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 2914 | { (exit 1); exit 1; }; } |
| 2915 | |
| 2916 | fi |
| 2917 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2918 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 2919 | target=$ac_cv_target |
| 2920 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 2921 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 2922 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 2923 | |
| 2924 | |
| 2925 | # The aliases save the names the user supplied, while $host etc. |
| 2926 | # will get canonicalized. |
| 2927 | test -n "$target_alias" && |
| 2928 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2929 | NONENONEs,x,x, && |
| 2930 | program_prefix=${target_alias}- |
| 2931 | |
| 2932 | |
| 2933 | CONFIG_OBS= |
| 2934 | CONFIG_DEPS= |
| 2935 | CONFIG_SRCS= |
| 2936 | ENABLE_CFLAGS= |
| 2937 | |
| 2938 | CONFIG_ALL= |
| 2939 | CONFIG_CLEAN= |
| 2940 | CONFIG_INSTALL= |
| 2941 | CONFIG_UNINSTALL= |
| 2942 | |
| 2943 | # If we haven't got the data from the intl directory, |
| 2944 | # assume NLS is disabled. |
| 2945 | USE_NLS=no |
| 2946 | LIBINTL= |
| 2947 | LIBINTL_DEP= |
| 2948 | INCINTL= |
| 2949 | XGETTEXT= |
| 2950 | GMSGFMT= |
| 2951 | POSUB= |
| 2952 | |
| 2953 | if test -f ../intl/config.intl; then |
| 2954 | . ../intl/config.intl |
| 2955 | fi |
| 2956 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 2957 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
| 2958 | if test x"$USE_NLS" != xyes; then |
| 2959 | echo "$as_me:$LINENO: result: no" >&5 |
| 2960 | echo "${ECHO_T}no" >&6 |
| 2961 | else |
| 2962 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2963 | echo "${ECHO_T}yes" >&6 |
| 2964 | |
| 2965 | cat >>confdefs.h <<\_ACEOF |
| 2966 | #define ENABLE_NLS 1 |
| 2967 | _ACEOF |
| 2968 | |
| 2969 | |
| 2970 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
| 2971 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 |
| 2972 | # Look for .po and .gmo files in the source directory. |
| 2973 | CATALOGS= |
| 2974 | XLINGUAS= |
| 2975 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do |
| 2976 | # If there aren't any .gmo files the shell will give us the |
| 2977 | # literal string "../path/to/srcdir/po/*.gmo" which has to be |
| 2978 | # weeded out. |
| 2979 | case "$cat" in *\**) |
| 2980 | continue;; |
| 2981 | esac |
| 2982 | # The quadruple backslash is collapsed to a double backslash |
| 2983 | # by the backticks, then collapsed again by the double quotes, |
| 2984 | # leaving us with one backslash in the sed expression (right |
| 2985 | # before the dot that mustn't act as a wildcard). |
| 2986 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` |
| 2987 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` |
| 2988 | # The user is allowed to set LINGUAS to a list of languages to |
| 2989 | # install catalogs for. If it's empty that means "all of them." |
| 2990 | if test "x$LINGUAS" = x; then |
| 2991 | CATALOGS="$CATALOGS $cat" |
| 2992 | XLINGUAS="$XLINGUAS $lang" |
| 2993 | else |
| 2994 | case "$LINGUAS" in *$lang*) |
| 2995 | CATALOGS="$CATALOGS $cat" |
| 2996 | XLINGUAS="$XLINGUAS $lang" |
| 2997 | ;; |
| 2998 | esac |
| 2999 | fi |
| 3000 | done |
| 3001 | LINGUAS="$XLINGUAS" |
| 3002 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
| 3003 | echo "${ECHO_T}$LINGUAS" >&6 |
| 3004 | |
| 3005 | |
| 3006 | DATADIRNAME=share |
| 3007 | |
| 3008 | INSTOBJEXT=.mo |
| 3009 | |
| 3010 | GENCAT=gencat |
| 3011 | |
| 3012 | CATOBJEXT=.gmo |
| 3013 | |
| 3014 | fi |
| 3015 | |
| 3016 | localedir='${datadir}/locale' |
| 3017 | |
| 3018 | |
| 3019 | if test x"$USE_NLS" = xyes; then |
| 3020 | CONFIG_ALL="$CONFIG_ALL all-po" |
| 3021 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" |
| 3022 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" |
| 3023 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" |
| 3024 | fi |
| 3025 | |
| 3026 | PACKAGE=gdb |
| 3027 | |
| 3028 | cat >>confdefs.h <<_ACEOF |
| 3029 | #define PACKAGE "$PACKAGE" |
| 3030 | _ACEOF |
| 3031 | |
| 3032 | |
| 3033 | |
| 3034 | debugdir=${libdir}/debug |
| 3035 | |
| 3036 | |
| 3037 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
| 3038 | if test "${with_separate_debug_dir+set}" = set; then |
| 3039 | withval="$with_separate_debug_dir" |
| 3040 | debugdir="${withval}" |
| 3041 | fi; |
| 3042 | |
| 3043 | |
| 3044 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
| 3045 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 3046 | ac_define_dir=`eval echo $debugdir` |
| 3047 | ac_define_dir=`eval echo $ac_define_dir` |
| 3048 | |
| 3049 | cat >>confdefs.h <<_ACEOF |
| 3050 | #define DEBUGDIR "$ac_define_dir" |
| 3051 | _ACEOF |
| 3052 | |
| 3053 | |
| 3054 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), |
| 3055 | |
| 3056 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
| 3057 | if test "x$prefix" = xNONE; then |
| 3058 | test_prefix=/usr/local |
| 3059 | else |
| 3060 | test_prefix=$prefix |
| 3061 | fi |
| 3062 | else |
| 3063 | test_prefix=$exec_prefix |
| 3064 | fi |
| 3065 | case ${debugdir} in |
| 3066 | "${test_prefix}"|"${test_prefix}/"*|\ |
| 3067 | '${exec_prefix}'|'${exec_prefix}/'*) |
| 3068 | |
| 3069 | cat >>confdefs.h <<\_ACEOF |
| 3070 | #define DEBUGDIR_RELOCATABLE 1 |
| 3071 | _ACEOF |
| 3072 | |
| 3073 | ;; |
| 3074 | esac |
| 3075 | |
| 3076 | |
| 3077 | |
| 3078 | subdirs="$subdirs doc testsuite" |
| 3079 | |
| 3080 | |
| 3081 | # Provide defaults for some variables set by the per-host and per-target |
| 3082 | # configuration. |
| 3083 | gdb_host_obs=posix-hdep.o |
| 3084 | |
| 3085 | if test "${target}" = "${host}"; then |
| 3086 | gdb_native=yes |
| 3087 | else |
| 3088 | gdb_native=no |
| 3089 | fi |
| 3090 | |
| 3091 | . $srcdir/configure.host |
| 3092 | |
| 3093 | . $srcdir/configure.tgt |
| 3094 | |
| 3095 | # Fetch the default architecture and default target vector from BFD. |
| 3096 | targ=$target; . $srcdir/../bfd/config.bfd |
| 3097 | |
| 3098 | # We only want the first architecture, so strip off the others if |
| 3099 | # there is more than one. |
| 3100 | targ_archs=`echo $targ_archs | sed 's/ .*//'` |
| 3101 | |
| 3102 | if test "x$targ_archs" != x; then |
| 3103 | |
| 3104 | cat >>confdefs.h <<_ACEOF |
| 3105 | #define DEFAULT_BFD_ARCH $targ_archs |
| 3106 | _ACEOF |
| 3107 | |
| 3108 | fi |
| 3109 | if test "x$targ_defvec" != x; then |
| 3110 | |
| 3111 | cat >>confdefs.h <<_ACEOF |
| 3112 | #define DEFAULT_BFD_VEC $targ_defvec |
| 3113 | _ACEOF |
| 3114 | |
| 3115 | fi |
| 3116 | |
| 3117 | test "$program_prefix" != NONE && |
| 3118 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 3119 | # Use a double $ so make ignores it. |
| 3120 | test "$program_suffix" != NONE && |
| 3121 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 3122 | # Double any \ or $. echo might interpret backslashes. |
| 3123 | # By default was `s,x,x', remove it if useless. |
| 3124 | cat <<\_ACEOF >conftest.sed |
| 3125 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 3126 | _ACEOF |
| 3127 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 3128 | rm conftest.sed |
| 3129 | |
| 3130 | |
| 3131 | # The CLI cannot be disabled yet, but may be in the future. |
| 3132 | |
| 3133 | # Enable CLI. |
| 3134 | # Check whether --enable-gdbcli or --disable-gdbcli was given. |
| 3135 | if test "${enable_gdbcli+set}" = set; then |
| 3136 | enableval="$enable_gdbcli" |
| 3137 | case $enableval in |
| 3138 | yes) |
| 3139 | ;; |
| 3140 | no) |
| 3141 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 |
| 3142 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} |
| 3143 | { (exit 1); exit 1; }; } ;; |
| 3144 | *) |
| 3145 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 |
| 3146 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} |
| 3147 | { (exit 1); exit 1; }; } ;; |
| 3148 | esac |
| 3149 | else |
| 3150 | enable_gdbcli=yes |
| 3151 | fi; |
| 3152 | if test x"$enable_gdbcli" = xyes; then |
| 3153 | if test -d $srcdir/cli; then |
| 3154 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" |
| 3155 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" |
| 3156 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" |
| 3157 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" |
| 3158 | fi |
| 3159 | fi |
| 3160 | |
| 3161 | # Enable MI. |
| 3162 | # Check whether --enable-gdbmi or --disable-gdbmi was given. |
| 3163 | if test "${enable_gdbmi+set}" = set; then |
| 3164 | enableval="$enable_gdbmi" |
| 3165 | case $enableval in |
| 3166 | yes | no) |
| 3167 | ;; |
| 3168 | *) |
| 3169 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 |
| 3170 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} |
| 3171 | { (exit 1); exit 1; }; } ;; |
| 3172 | esac |
| 3173 | else |
| 3174 | enable_gdbmi=yes |
| 3175 | fi; |
| 3176 | if test x"$enable_gdbmi" = xyes; then |
| 3177 | if test -d $srcdir/mi; then |
| 3178 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" |
| 3179 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" |
| 3180 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" |
| 3181 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" |
| 3182 | fi |
| 3183 | fi |
| 3184 | |
| 3185 | # Enable TUI. |
| 3186 | # Check whether --enable-tui or --disable-tui was given. |
| 3187 | if test "${enable_tui+set}" = set; then |
| 3188 | enableval="$enable_tui" |
| 3189 | case $enableval in |
| 3190 | yes | no) |
| 3191 | ;; |
| 3192 | *) |
| 3193 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 |
| 3194 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} |
| 3195 | { (exit 1); exit 1; }; } ;; |
| 3196 | esac |
| 3197 | else |
| 3198 | enable_tui=yes |
| 3199 | fi; |
| 3200 | |
| 3201 | # Enable gdbtk. |
| 3202 | # Check whether --enable-gdbtk or --disable-gdbtk was given. |
| 3203 | if test "${enable_gdbtk+set}" = set; then |
| 3204 | enableval="$enable_gdbtk" |
| 3205 | case $enableval in |
| 3206 | yes | no) |
| 3207 | ;; |
| 3208 | *) |
| 3209 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 |
| 3210 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} |
| 3211 | { (exit 1); exit 1; }; } ;; |
| 3212 | esac |
| 3213 | else |
| 3214 | if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then |
| 3215 | enable_gdbtk=yes |
| 3216 | else |
| 3217 | enable_gdbtk=no |
| 3218 | fi |
| 3219 | fi; |
| 3220 | # We unconditionally disable gdbtk tests on selected platforms. |
| 3221 | case $host_os in |
| 3222 | go32* | windows*) |
| 3223 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 |
| 3224 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} |
| 3225 | enable_gdbtk=no ;; |
| 3226 | esac |
| 3227 | |
| 3228 | # Libunwind support. |
| 3229 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3230 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3231 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3233 | else |
| 3234 | cat >conftest.$ac_ext <<_ACEOF |
| 3235 | /* confdefs.h. */ |
| 3236 | _ACEOF |
| 3237 | cat confdefs.h >>conftest.$ac_ext |
| 3238 | cat >>conftest.$ac_ext <<_ACEOF |
| 3239 | /* end confdefs.h. */ |
| 3240 | #include <stdlib.h> |
| 3241 | #include <stdarg.h> |
| 3242 | #include <string.h> |
| 3243 | #include <float.h> |
| 3244 | |
| 3245 | int |
| 3246 | main () |
| 3247 | { |
| 3248 | |
| 3249 | ; |
| 3250 | return 0; |
| 3251 | } |
| 3252 | _ACEOF |
| 3253 | rm -f conftest.$ac_objext |
| 3254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3255 | (eval $ac_compile) 2>conftest.er1 |
| 3256 | ac_status=$? |
| 3257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3258 | rm -f conftest.er1 |
| 3259 | cat conftest.err >&5 |
| 3260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3261 | (exit $ac_status); } && |
| 3262 | { ac_try='test -z "$ac_c_werror_flag" |
| 3263 | || test ! -s conftest.err' |
| 3264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3265 | (eval $ac_try) 2>&5 |
| 3266 | ac_status=$? |
| 3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3268 | (exit $ac_status); }; } && |
| 3269 | { ac_try='test -s conftest.$ac_objext' |
| 3270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3271 | (eval $ac_try) 2>&5 |
| 3272 | ac_status=$? |
| 3273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3274 | (exit $ac_status); }; }; then |
| 3275 | ac_cv_header_stdc=yes |
| 3276 | else |
| 3277 | echo "$as_me: failed program was:" >&5 |
| 3278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3279 | |
| 3280 | ac_cv_header_stdc=no |
| 3281 | fi |
| 3282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3283 | |
| 3284 | if test $ac_cv_header_stdc = yes; then |
| 3285 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3286 | cat >conftest.$ac_ext <<_ACEOF |
| 3287 | /* confdefs.h. */ |
| 3288 | _ACEOF |
| 3289 | cat confdefs.h >>conftest.$ac_ext |
| 3290 | cat >>conftest.$ac_ext <<_ACEOF |
| 3291 | /* end confdefs.h. */ |
| 3292 | #include <string.h> |
| 3293 | |
| 3294 | _ACEOF |
| 3295 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3296 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3297 | : |
| 3298 | else |
| 3299 | ac_cv_header_stdc=no |
| 3300 | fi |
| 3301 | rm -f conftest* |
| 3302 | |
| 3303 | fi |
| 3304 | |
| 3305 | if test $ac_cv_header_stdc = yes; then |
| 3306 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3307 | cat >conftest.$ac_ext <<_ACEOF |
| 3308 | /* confdefs.h. */ |
| 3309 | _ACEOF |
| 3310 | cat confdefs.h >>conftest.$ac_ext |
| 3311 | cat >>conftest.$ac_ext <<_ACEOF |
| 3312 | /* end confdefs.h. */ |
| 3313 | #include <stdlib.h> |
| 3314 | |
| 3315 | _ACEOF |
| 3316 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3317 | $EGREP "free" >/dev/null 2>&1; then |
| 3318 | : |
| 3319 | else |
| 3320 | ac_cv_header_stdc=no |
| 3321 | fi |
| 3322 | rm -f conftest* |
| 3323 | |
| 3324 | fi |
| 3325 | |
| 3326 | if test $ac_cv_header_stdc = yes; then |
| 3327 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3328 | if test "$cross_compiling" = yes; then |
| 3329 | : |
| 3330 | else |
| 3331 | cat >conftest.$ac_ext <<_ACEOF |
| 3332 | /* confdefs.h. */ |
| 3333 | _ACEOF |
| 3334 | cat confdefs.h >>conftest.$ac_ext |
| 3335 | cat >>conftest.$ac_ext <<_ACEOF |
| 3336 | /* end confdefs.h. */ |
| 3337 | #include <ctype.h> |
| 3338 | #if ((' ' & 0x0FF) == 0x020) |
| 3339 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3340 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3341 | #else |
| 3342 | # define ISLOWER(c) \ |
| 3343 | (('a' <= (c) && (c) <= 'i') \ |
| 3344 | || ('j' <= (c) && (c) <= 'r') \ |
| 3345 | || ('s' <= (c) && (c) <= 'z')) |
| 3346 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3347 | #endif |
| 3348 | |
| 3349 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3350 | int |
| 3351 | main () |
| 3352 | { |
| 3353 | int i; |
| 3354 | for (i = 0; i < 256; i++) |
| 3355 | if (XOR (islower (i), ISLOWER (i)) |
| 3356 | || toupper (i) != TOUPPER (i)) |
| 3357 | exit(2); |
| 3358 | exit (0); |
| 3359 | } |
| 3360 | _ACEOF |
| 3361 | rm -f conftest$ac_exeext |
| 3362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3363 | (eval $ac_link) 2>&5 |
| 3364 | ac_status=$? |
| 3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3366 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3368 | (eval $ac_try) 2>&5 |
| 3369 | ac_status=$? |
| 3370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3371 | (exit $ac_status); }; }; then |
| 3372 | : |
| 3373 | else |
| 3374 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3375 | echo "$as_me: failed program was:" >&5 |
| 3376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3377 | |
| 3378 | ( exit $ac_status ) |
| 3379 | ac_cv_header_stdc=no |
| 3380 | fi |
| 3381 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3382 | fi |
| 3383 | fi |
| 3384 | fi |
| 3385 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3386 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3387 | if test $ac_cv_header_stdc = yes; then |
| 3388 | |
| 3389 | cat >>confdefs.h <<\_ACEOF |
| 3390 | #define STDC_HEADERS 1 |
| 3391 | _ACEOF |
| 3392 | |
| 3393 | fi |
| 3394 | |
| 3395 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3396 | |
| 3397 | |
| 3398 | |
| 3399 | |
| 3400 | |
| 3401 | |
| 3402 | |
| 3403 | |
| 3404 | |
| 3405 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3406 | inttypes.h stdint.h unistd.h |
| 3407 | do |
| 3408 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3409 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3410 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3411 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3413 | else |
| 3414 | cat >conftest.$ac_ext <<_ACEOF |
| 3415 | /* confdefs.h. */ |
| 3416 | _ACEOF |
| 3417 | cat confdefs.h >>conftest.$ac_ext |
| 3418 | cat >>conftest.$ac_ext <<_ACEOF |
| 3419 | /* end confdefs.h. */ |
| 3420 | $ac_includes_default |
| 3421 | |
| 3422 | #include <$ac_header> |
| 3423 | _ACEOF |
| 3424 | rm -f conftest.$ac_objext |
| 3425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3426 | (eval $ac_compile) 2>conftest.er1 |
| 3427 | ac_status=$? |
| 3428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3429 | rm -f conftest.er1 |
| 3430 | cat conftest.err >&5 |
| 3431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3432 | (exit $ac_status); } && |
| 3433 | { ac_try='test -z "$ac_c_werror_flag" |
| 3434 | || test ! -s conftest.err' |
| 3435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3436 | (eval $ac_try) 2>&5 |
| 3437 | ac_status=$? |
| 3438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3439 | (exit $ac_status); }; } && |
| 3440 | { ac_try='test -s conftest.$ac_objext' |
| 3441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3442 | (eval $ac_try) 2>&5 |
| 3443 | ac_status=$? |
| 3444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3445 | (exit $ac_status); }; }; then |
| 3446 | eval "$as_ac_Header=yes" |
| 3447 | else |
| 3448 | echo "$as_me: failed program was:" >&5 |
| 3449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3450 | |
| 3451 | eval "$as_ac_Header=no" |
| 3452 | fi |
| 3453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3454 | fi |
| 3455 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3456 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3457 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3458 | cat >>confdefs.h <<_ACEOF |
| 3459 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3460 | _ACEOF |
| 3461 | |
| 3462 | fi |
| 3463 | |
| 3464 | done |
| 3465 | |
| 3466 | |
| 3467 | |
| 3468 | # Check whether --with-libunwind or --without-libunwind was given. |
| 3469 | if test "${with_libunwind+set}" = set; then |
| 3470 | withval="$with_libunwind" |
| 3471 | case "${withval}" in |
| 3472 | yes) enable_libunwind=yes ;; |
| 3473 | no) enable_libunwind=no ;; |
| 3474 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 |
| 3475 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} |
| 3476 | { (exit 1); exit 1; }; } ;; |
| 3477 | esac |
| 3478 | else |
| 3479 | |
| 3480 | |
| 3481 | for ac_header in libunwind.h |
| 3482 | do |
| 3483 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3484 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3485 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3486 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3487 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3489 | fi |
| 3490 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3491 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3492 | else |
| 3493 | # Is the header compilable? |
| 3494 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3495 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3496 | cat >conftest.$ac_ext <<_ACEOF |
| 3497 | /* confdefs.h. */ |
| 3498 | _ACEOF |
| 3499 | cat confdefs.h >>conftest.$ac_ext |
| 3500 | cat >>conftest.$ac_ext <<_ACEOF |
| 3501 | /* end confdefs.h. */ |
| 3502 | $ac_includes_default |
| 3503 | #include <$ac_header> |
| 3504 | _ACEOF |
| 3505 | rm -f conftest.$ac_objext |
| 3506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3507 | (eval $ac_compile) 2>conftest.er1 |
| 3508 | ac_status=$? |
| 3509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3510 | rm -f conftest.er1 |
| 3511 | cat conftest.err >&5 |
| 3512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3513 | (exit $ac_status); } && |
| 3514 | { ac_try='test -z "$ac_c_werror_flag" |
| 3515 | || test ! -s conftest.err' |
| 3516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3517 | (eval $ac_try) 2>&5 |
| 3518 | ac_status=$? |
| 3519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3520 | (exit $ac_status); }; } && |
| 3521 | { ac_try='test -s conftest.$ac_objext' |
| 3522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3523 | (eval $ac_try) 2>&5 |
| 3524 | ac_status=$? |
| 3525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3526 | (exit $ac_status); }; }; then |
| 3527 | ac_header_compiler=yes |
| 3528 | else |
| 3529 | echo "$as_me: failed program was:" >&5 |
| 3530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3531 | |
| 3532 | ac_header_compiler=no |
| 3533 | fi |
| 3534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3535 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3536 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3537 | |
| 3538 | # Is the header present? |
| 3539 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3540 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3541 | cat >conftest.$ac_ext <<_ACEOF |
| 3542 | /* confdefs.h. */ |
| 3543 | _ACEOF |
| 3544 | cat confdefs.h >>conftest.$ac_ext |
| 3545 | cat >>conftest.$ac_ext <<_ACEOF |
| 3546 | /* end confdefs.h. */ |
| 3547 | #include <$ac_header> |
| 3548 | _ACEOF |
| 3549 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3550 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3551 | ac_status=$? |
| 3552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3553 | rm -f conftest.er1 |
| 3554 | cat conftest.err >&5 |
| 3555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3556 | (exit $ac_status); } >/dev/null; then |
| 3557 | if test -s conftest.err; then |
| 3558 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3559 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3560 | else |
| 3561 | ac_cpp_err= |
| 3562 | fi |
| 3563 | else |
| 3564 | ac_cpp_err=yes |
| 3565 | fi |
| 3566 | if test -z "$ac_cpp_err"; then |
| 3567 | ac_header_preproc=yes |
| 3568 | else |
| 3569 | echo "$as_me: failed program was:" >&5 |
| 3570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3571 | |
| 3572 | ac_header_preproc=no |
| 3573 | fi |
| 3574 | rm -f conftest.err conftest.$ac_ext |
| 3575 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3576 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3577 | |
| 3578 | # So? What about this header? |
| 3579 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3580 | yes:no: ) |
| 3581 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3582 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3583 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3584 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3585 | ac_header_preproc=yes |
| 3586 | ;; |
| 3587 | no:yes:* ) |
| 3588 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3589 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3590 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3591 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3592 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3593 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3594 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3595 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3596 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3597 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 3598 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3599 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 3600 | ( |
| 3601 | cat <<\_ASBOX |
| 3602 | ## ------------------------------------------ ## |
| 3603 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3604 | ## ------------------------------------------ ## |
| 3605 | _ASBOX |
| 3606 | ) | |
| 3607 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3608 | ;; |
| 3609 | esac |
| 3610 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3611 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3614 | else |
| 3615 | eval "$as_ac_Header=\$ac_header_preproc" |
| 3616 | fi |
| 3617 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3618 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3619 | |
| 3620 | fi |
| 3621 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3622 | cat >>confdefs.h <<_ACEOF |
| 3623 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3624 | _ACEOF |
| 3625 | |
| 3626 | fi |
| 3627 | |
| 3628 | done |
| 3629 | |
| 3630 | |
| 3631 | for ac_header in libunwind-ia64.h |
| 3632 | do |
| 3633 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3634 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3635 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3639 | fi |
| 3640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3641 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3642 | else |
| 3643 | # Is the header compilable? |
| 3644 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3645 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3646 | cat >conftest.$ac_ext <<_ACEOF |
| 3647 | /* confdefs.h. */ |
| 3648 | _ACEOF |
| 3649 | cat confdefs.h >>conftest.$ac_ext |
| 3650 | cat >>conftest.$ac_ext <<_ACEOF |
| 3651 | /* end confdefs.h. */ |
| 3652 | $ac_includes_default |
| 3653 | #include <$ac_header> |
| 3654 | _ACEOF |
| 3655 | rm -f conftest.$ac_objext |
| 3656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3657 | (eval $ac_compile) 2>conftest.er1 |
| 3658 | ac_status=$? |
| 3659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3660 | rm -f conftest.er1 |
| 3661 | cat conftest.err >&5 |
| 3662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3663 | (exit $ac_status); } && |
| 3664 | { ac_try='test -z "$ac_c_werror_flag" |
| 3665 | || test ! -s conftest.err' |
| 3666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3667 | (eval $ac_try) 2>&5 |
| 3668 | ac_status=$? |
| 3669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3670 | (exit $ac_status); }; } && |
| 3671 | { ac_try='test -s conftest.$ac_objext' |
| 3672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3673 | (eval $ac_try) 2>&5 |
| 3674 | ac_status=$? |
| 3675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3676 | (exit $ac_status); }; }; then |
| 3677 | ac_header_compiler=yes |
| 3678 | else |
| 3679 | echo "$as_me: failed program was:" >&5 |
| 3680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3681 | |
| 3682 | ac_header_compiler=no |
| 3683 | fi |
| 3684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3685 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3686 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3687 | |
| 3688 | # Is the header present? |
| 3689 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3690 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3691 | cat >conftest.$ac_ext <<_ACEOF |
| 3692 | /* confdefs.h. */ |
| 3693 | _ACEOF |
| 3694 | cat confdefs.h >>conftest.$ac_ext |
| 3695 | cat >>conftest.$ac_ext <<_ACEOF |
| 3696 | /* end confdefs.h. */ |
| 3697 | #include <$ac_header> |
| 3698 | _ACEOF |
| 3699 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3700 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3701 | ac_status=$? |
| 3702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3703 | rm -f conftest.er1 |
| 3704 | cat conftest.err >&5 |
| 3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3706 | (exit $ac_status); } >/dev/null; then |
| 3707 | if test -s conftest.err; then |
| 3708 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3709 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3710 | else |
| 3711 | ac_cpp_err= |
| 3712 | fi |
| 3713 | else |
| 3714 | ac_cpp_err=yes |
| 3715 | fi |
| 3716 | if test -z "$ac_cpp_err"; then |
| 3717 | ac_header_preproc=yes |
| 3718 | else |
| 3719 | echo "$as_me: failed program was:" >&5 |
| 3720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3721 | |
| 3722 | ac_header_preproc=no |
| 3723 | fi |
| 3724 | rm -f conftest.err conftest.$ac_ext |
| 3725 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3726 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3727 | |
| 3728 | # So? What about this header? |
| 3729 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3730 | yes:no: ) |
| 3731 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3732 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3734 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3735 | ac_header_preproc=yes |
| 3736 | ;; |
| 3737 | no:yes:* ) |
| 3738 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3739 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3740 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3741 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3742 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3743 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3744 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3745 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3747 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 3748 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3749 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 3750 | ( |
| 3751 | cat <<\_ASBOX |
| 3752 | ## ------------------------------------------ ## |
| 3753 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3754 | ## ------------------------------------------ ## |
| 3755 | _ASBOX |
| 3756 | ) | |
| 3757 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3758 | ;; |
| 3759 | esac |
| 3760 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3764 | else |
| 3765 | eval "$as_ac_Header=\$ac_header_preproc" |
| 3766 | fi |
| 3767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3768 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3769 | |
| 3770 | fi |
| 3771 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3772 | cat >>confdefs.h <<_ACEOF |
| 3773 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3774 | _ACEOF |
| 3775 | |
| 3776 | fi |
| 3777 | |
| 3778 | done |
| 3779 | |
| 3780 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then |
| 3781 | enable_libunwind=yes; |
| 3782 | fi |
| 3783 | |
| 3784 | fi; |
| 3785 | |
| 3786 | if test x"$enable_libunwind" = xyes; then |
| 3787 | |
| 3788 | for ac_header in libunwind.h |
| 3789 | do |
| 3790 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3791 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3792 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3793 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3796 | fi |
| 3797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3798 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3799 | else |
| 3800 | # Is the header compilable? |
| 3801 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3802 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3803 | cat >conftest.$ac_ext <<_ACEOF |
| 3804 | /* confdefs.h. */ |
| 3805 | _ACEOF |
| 3806 | cat confdefs.h >>conftest.$ac_ext |
| 3807 | cat >>conftest.$ac_ext <<_ACEOF |
| 3808 | /* end confdefs.h. */ |
| 3809 | $ac_includes_default |
| 3810 | #include <$ac_header> |
| 3811 | _ACEOF |
| 3812 | rm -f conftest.$ac_objext |
| 3813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3814 | (eval $ac_compile) 2>conftest.er1 |
| 3815 | ac_status=$? |
| 3816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3817 | rm -f conftest.er1 |
| 3818 | cat conftest.err >&5 |
| 3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3820 | (exit $ac_status); } && |
| 3821 | { ac_try='test -z "$ac_c_werror_flag" |
| 3822 | || test ! -s conftest.err' |
| 3823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3824 | (eval $ac_try) 2>&5 |
| 3825 | ac_status=$? |
| 3826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3827 | (exit $ac_status); }; } && |
| 3828 | { ac_try='test -s conftest.$ac_objext' |
| 3829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3830 | (eval $ac_try) 2>&5 |
| 3831 | ac_status=$? |
| 3832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3833 | (exit $ac_status); }; }; then |
| 3834 | ac_header_compiler=yes |
| 3835 | else |
| 3836 | echo "$as_me: failed program was:" >&5 |
| 3837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3838 | |
| 3839 | ac_header_compiler=no |
| 3840 | fi |
| 3841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3842 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3843 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3844 | |
| 3845 | # Is the header present? |
| 3846 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3847 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3848 | cat >conftest.$ac_ext <<_ACEOF |
| 3849 | /* confdefs.h. */ |
| 3850 | _ACEOF |
| 3851 | cat confdefs.h >>conftest.$ac_ext |
| 3852 | cat >>conftest.$ac_ext <<_ACEOF |
| 3853 | /* end confdefs.h. */ |
| 3854 | #include <$ac_header> |
| 3855 | _ACEOF |
| 3856 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3857 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3858 | ac_status=$? |
| 3859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3860 | rm -f conftest.er1 |
| 3861 | cat conftest.err >&5 |
| 3862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3863 | (exit $ac_status); } >/dev/null; then |
| 3864 | if test -s conftest.err; then |
| 3865 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3866 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3867 | else |
| 3868 | ac_cpp_err= |
| 3869 | fi |
| 3870 | else |
| 3871 | ac_cpp_err=yes |
| 3872 | fi |
| 3873 | if test -z "$ac_cpp_err"; then |
| 3874 | ac_header_preproc=yes |
| 3875 | else |
| 3876 | echo "$as_me: failed program was:" >&5 |
| 3877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3878 | |
| 3879 | ac_header_preproc=no |
| 3880 | fi |
| 3881 | rm -f conftest.err conftest.$ac_ext |
| 3882 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3883 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3884 | |
| 3885 | # So? What about this header? |
| 3886 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3887 | yes:no: ) |
| 3888 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3889 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3891 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3892 | ac_header_preproc=yes |
| 3893 | ;; |
| 3894 | no:yes:* ) |
| 3895 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3896 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3897 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3898 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3899 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3900 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3901 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3902 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3904 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 3905 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3906 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 3907 | ( |
| 3908 | cat <<\_ASBOX |
| 3909 | ## ------------------------------------------ ## |
| 3910 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3911 | ## ------------------------------------------ ## |
| 3912 | _ASBOX |
| 3913 | ) | |
| 3914 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3915 | ;; |
| 3916 | esac |
| 3917 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3918 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3919 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3921 | else |
| 3922 | eval "$as_ac_Header=\$ac_header_preproc" |
| 3923 | fi |
| 3924 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3925 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3926 | |
| 3927 | fi |
| 3928 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3929 | cat >>confdefs.h <<_ACEOF |
| 3930 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3931 | _ACEOF |
| 3932 | |
| 3933 | fi |
| 3934 | |
| 3935 | done |
| 3936 | |
| 3937 | |
| 3938 | for ac_header in libunwind-ia64.h |
| 3939 | do |
| 3940 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3941 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3942 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3943 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3944 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3946 | fi |
| 3947 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3948 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3949 | else |
| 3950 | # Is the header compilable? |
| 3951 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3952 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3953 | cat >conftest.$ac_ext <<_ACEOF |
| 3954 | /* confdefs.h. */ |
| 3955 | _ACEOF |
| 3956 | cat confdefs.h >>conftest.$ac_ext |
| 3957 | cat >>conftest.$ac_ext <<_ACEOF |
| 3958 | /* end confdefs.h. */ |
| 3959 | $ac_includes_default |
| 3960 | #include <$ac_header> |
| 3961 | _ACEOF |
| 3962 | rm -f conftest.$ac_objext |
| 3963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3964 | (eval $ac_compile) 2>conftest.er1 |
| 3965 | ac_status=$? |
| 3966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3967 | rm -f conftest.er1 |
| 3968 | cat conftest.err >&5 |
| 3969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3970 | (exit $ac_status); } && |
| 3971 | { ac_try='test -z "$ac_c_werror_flag" |
| 3972 | || test ! -s conftest.err' |
| 3973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3974 | (eval $ac_try) 2>&5 |
| 3975 | ac_status=$? |
| 3976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3977 | (exit $ac_status); }; } && |
| 3978 | { ac_try='test -s conftest.$ac_objext' |
| 3979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3980 | (eval $ac_try) 2>&5 |
| 3981 | ac_status=$? |
| 3982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3983 | (exit $ac_status); }; }; then |
| 3984 | ac_header_compiler=yes |
| 3985 | else |
| 3986 | echo "$as_me: failed program was:" >&5 |
| 3987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3988 | |
| 3989 | ac_header_compiler=no |
| 3990 | fi |
| 3991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3992 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3993 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3994 | |
| 3995 | # Is the header present? |
| 3996 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3997 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3998 | cat >conftest.$ac_ext <<_ACEOF |
| 3999 | /* confdefs.h. */ |
| 4000 | _ACEOF |
| 4001 | cat confdefs.h >>conftest.$ac_ext |
| 4002 | cat >>conftest.$ac_ext <<_ACEOF |
| 4003 | /* end confdefs.h. */ |
| 4004 | #include <$ac_header> |
| 4005 | _ACEOF |
| 4006 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4007 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4008 | ac_status=$? |
| 4009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4010 | rm -f conftest.er1 |
| 4011 | cat conftest.err >&5 |
| 4012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4013 | (exit $ac_status); } >/dev/null; then |
| 4014 | if test -s conftest.err; then |
| 4015 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4016 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4017 | else |
| 4018 | ac_cpp_err= |
| 4019 | fi |
| 4020 | else |
| 4021 | ac_cpp_err=yes |
| 4022 | fi |
| 4023 | if test -z "$ac_cpp_err"; then |
| 4024 | ac_header_preproc=yes |
| 4025 | else |
| 4026 | echo "$as_me: failed program was:" >&5 |
| 4027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4028 | |
| 4029 | ac_header_preproc=no |
| 4030 | fi |
| 4031 | rm -f conftest.err conftest.$ac_ext |
| 4032 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4033 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4034 | |
| 4035 | # So? What about this header? |
| 4036 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4037 | yes:no: ) |
| 4038 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4039 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4040 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4041 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4042 | ac_header_preproc=yes |
| 4043 | ;; |
| 4044 | no:yes:* ) |
| 4045 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4046 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4047 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4048 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4049 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4050 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4051 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4052 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4053 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4054 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4055 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4056 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 4057 | ( |
| 4058 | cat <<\_ASBOX |
| 4059 | ## ------------------------------------------ ## |
| 4060 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 4061 | ## ------------------------------------------ ## |
| 4062 | _ASBOX |
| 4063 | ) | |
| 4064 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4065 | ;; |
| 4066 | esac |
| 4067 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4071 | else |
| 4072 | eval "$as_ac_Header=\$ac_header_preproc" |
| 4073 | fi |
| 4074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4075 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4076 | |
| 4077 | fi |
| 4078 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4079 | cat >>confdefs.h <<_ACEOF |
| 4080 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4081 | _ACEOF |
| 4082 | |
| 4083 | fi |
| 4084 | |
| 4085 | done |
| 4086 | |
| 4087 | |
| 4088 | cat >>confdefs.h <<\_ACEOF |
| 4089 | #define HAVE_LIBUNWIND 1 |
| 4090 | _ACEOF |
| 4091 | |
| 4092 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" |
| 4093 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" |
| 4094 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" |
| 4095 | fi |
| 4096 | |
| 4097 | # Profiling support. |
| 4098 | # Check whether --enable-profiling or --disable-profiling was given. |
| 4099 | if test "${enable_profiling+set}" = set; then |
| 4100 | enableval="$enable_profiling" |
| 4101 | case $enableval in |
| 4102 | yes | no) |
| 4103 | ;; |
| 4104 | *) |
| 4105 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 |
| 4106 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} |
| 4107 | { (exit 1); exit 1; }; } ;; |
| 4108 | esac |
| 4109 | else |
| 4110 | enable_profiling=no |
| 4111 | fi; |
| 4112 | |
| 4113 | |
| 4114 | |
| 4115 | for ac_func in monstartup _mcleanup |
| 4116 | do |
| 4117 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4118 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 4119 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4120 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4122 | else |
| 4123 | cat >conftest.$ac_ext <<_ACEOF |
| 4124 | /* confdefs.h. */ |
| 4125 | _ACEOF |
| 4126 | cat confdefs.h >>conftest.$ac_ext |
| 4127 | cat >>conftest.$ac_ext <<_ACEOF |
| 4128 | /* end confdefs.h. */ |
| 4129 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 4130 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4131 | #define $ac_func innocuous_$ac_func |
| 4132 | |
| 4133 | /* System header to define __stub macros and hopefully few prototypes, |
| 4134 | which can conflict with char $ac_func (); below. |
| 4135 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4136 | <limits.h> exists even on freestanding compilers. */ |
| 4137 | |
| 4138 | #ifdef __STDC__ |
| 4139 | # include <limits.h> |
| 4140 | #else |
| 4141 | # include <assert.h> |
| 4142 | #endif |
| 4143 | |
| 4144 | #undef $ac_func |
| 4145 | |
| 4146 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4147 | #ifdef __cplusplus |
| 4148 | extern "C" |
| 4149 | { |
| 4150 | #endif |
| 4151 | /* We use char because int might match the return type of a gcc2 |
| 4152 | builtin and then its argument prototype would still apply. */ |
| 4153 | char $ac_func (); |
| 4154 | /* The GNU C library defines this for functions which it implements |
| 4155 | to always fail with ENOSYS. Some functions are actually named |
| 4156 | something starting with __ and the normal name is an alias. */ |
| 4157 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4158 | choke me |
| 4159 | #else |
| 4160 | char (*f) () = $ac_func; |
| 4161 | #endif |
| 4162 | #ifdef __cplusplus |
| 4163 | } |
| 4164 | #endif |
| 4165 | |
| 4166 | int |
| 4167 | main () |
| 4168 | { |
| 4169 | return f != $ac_func; |
| 4170 | ; |
| 4171 | return 0; |
| 4172 | } |
| 4173 | _ACEOF |
| 4174 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4176 | (eval $ac_link) 2>conftest.er1 |
| 4177 | ac_status=$? |
| 4178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4179 | rm -f conftest.er1 |
| 4180 | cat conftest.err >&5 |
| 4181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4182 | (exit $ac_status); } && |
| 4183 | { ac_try='test -z "$ac_c_werror_flag" |
| 4184 | || test ! -s conftest.err' |
| 4185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4186 | (eval $ac_try) 2>&5 |
| 4187 | ac_status=$? |
| 4188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4189 | (exit $ac_status); }; } && |
| 4190 | { ac_try='test -s conftest$ac_exeext' |
| 4191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4192 | (eval $ac_try) 2>&5 |
| 4193 | ac_status=$? |
| 4194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4195 | (exit $ac_status); }; }; then |
| 4196 | eval "$as_ac_var=yes" |
| 4197 | else |
| 4198 | echo "$as_me: failed program was:" >&5 |
| 4199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4200 | |
| 4201 | eval "$as_ac_var=no" |
| 4202 | fi |
| 4203 | rm -f conftest.err conftest.$ac_objext \ |
| 4204 | conftest$ac_exeext conftest.$ac_ext |
| 4205 | fi |
| 4206 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4207 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4208 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4209 | cat >>confdefs.h <<_ACEOF |
| 4210 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4211 | _ACEOF |
| 4212 | |
| 4213 | fi |
| 4214 | done |
| 4215 | |
| 4216 | echo "$as_me:$LINENO: checking for _etext" >&5 |
| 4217 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 |
| 4218 | if test "${ac_cv_var__etext+set}" = set; then |
| 4219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4220 | else |
| 4221 | cat >conftest.$ac_ext <<_ACEOF |
| 4222 | /* confdefs.h. */ |
| 4223 | _ACEOF |
| 4224 | cat confdefs.h >>conftest.$ac_ext |
| 4225 | cat >>conftest.$ac_ext <<_ACEOF |
| 4226 | /* end confdefs.h. */ |
| 4227 | #include <stdlib.h> |
| 4228 | extern char _etext; |
| 4229 | |
| 4230 | int |
| 4231 | main () |
| 4232 | { |
| 4233 | free (&_etext); |
| 4234 | ; |
| 4235 | return 0; |
| 4236 | } |
| 4237 | _ACEOF |
| 4238 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4240 | (eval $ac_link) 2>conftest.er1 |
| 4241 | ac_status=$? |
| 4242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4243 | rm -f conftest.er1 |
| 4244 | cat conftest.err >&5 |
| 4245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4246 | (exit $ac_status); } && |
| 4247 | { ac_try='test -z "$ac_c_werror_flag" |
| 4248 | || test ! -s conftest.err' |
| 4249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4250 | (eval $ac_try) 2>&5 |
| 4251 | ac_status=$? |
| 4252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4253 | (exit $ac_status); }; } && |
| 4254 | { ac_try='test -s conftest$ac_exeext' |
| 4255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4256 | (eval $ac_try) 2>&5 |
| 4257 | ac_status=$? |
| 4258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4259 | (exit $ac_status); }; }; then |
| 4260 | ac_cv_var__etext=yes |
| 4261 | else |
| 4262 | echo "$as_me: failed program was:" >&5 |
| 4263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4264 | |
| 4265 | ac_cv_var__etext=no |
| 4266 | fi |
| 4267 | rm -f conftest.err conftest.$ac_objext \ |
| 4268 | conftest$ac_exeext conftest.$ac_ext |
| 4269 | fi |
| 4270 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 |
| 4271 | echo "${ECHO_T}$ac_cv_var__etext" >&6 |
| 4272 | if test $ac_cv_var__etext = yes; then |
| 4273 | |
| 4274 | cat >>confdefs.h <<\_ACEOF |
| 4275 | #define HAVE__ETEXT 1 |
| 4276 | _ACEOF |
| 4277 | |
| 4278 | fi |
| 4279 | if test "$enable_profiling" = yes ; then |
| 4280 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then |
| 4281 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 |
| 4282 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} |
| 4283 | { (exit 1); exit 1; }; } |
| 4284 | fi |
| 4285 | PROFILE_CFLAGS=-pg |
| 4286 | OLD_CFLAGS="$CFLAGS" |
| 4287 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" |
| 4288 | |
| 4289 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 |
| 4290 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 |
| 4291 | if test "${ac_cv_cc_supports_pg+set}" = set; then |
| 4292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4293 | else |
| 4294 | cat >conftest.$ac_ext <<_ACEOF |
| 4295 | /* confdefs.h. */ |
| 4296 | _ACEOF |
| 4297 | cat confdefs.h >>conftest.$ac_ext |
| 4298 | cat >>conftest.$ac_ext <<_ACEOF |
| 4299 | /* end confdefs.h. */ |
| 4300 | |
| 4301 | int |
| 4302 | main () |
| 4303 | { |
| 4304 | int x; |
| 4305 | ; |
| 4306 | return 0; |
| 4307 | } |
| 4308 | _ACEOF |
| 4309 | rm -f conftest.$ac_objext |
| 4310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4311 | (eval $ac_compile) 2>conftest.er1 |
| 4312 | ac_status=$? |
| 4313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4314 | rm -f conftest.er1 |
| 4315 | cat conftest.err >&5 |
| 4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4317 | (exit $ac_status); } && |
| 4318 | { ac_try='test -z "$ac_c_werror_flag" |
| 4319 | || test ! -s conftest.err' |
| 4320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4321 | (eval $ac_try) 2>&5 |
| 4322 | ac_status=$? |
| 4323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4324 | (exit $ac_status); }; } && |
| 4325 | { ac_try='test -s conftest.$ac_objext' |
| 4326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4327 | (eval $ac_try) 2>&5 |
| 4328 | ac_status=$? |
| 4329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4330 | (exit $ac_status); }; }; then |
| 4331 | ac_cv_cc_supports_pg=yes |
| 4332 | else |
| 4333 | echo "$as_me: failed program was:" >&5 |
| 4334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4335 | |
| 4336 | ac_cv_cc_supports_pg=no |
| 4337 | fi |
| 4338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4339 | fi |
| 4340 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 |
| 4341 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 |
| 4342 | |
| 4343 | if test $ac_cv_cc_supports_pg = no; then |
| 4344 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 |
| 4345 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} |
| 4346 | { (exit 1); exit 1; }; } |
| 4347 | fi |
| 4348 | |
| 4349 | CFLAGS="$OLD_CFLAGS" |
| 4350 | fi |
| 4351 | |
| 4352 | # --------------------- # |
| 4353 | # Checks for programs. # |
| 4354 | # --------------------- # |
| 4355 | |
| 4356 | for ac_prog in gawk mawk nawk awk |
| 4357 | do |
| 4358 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4359 | set dummy $ac_prog; ac_word=$2 |
| 4360 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4362 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 4363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4364 | else |
| 4365 | if test -n "$AWK"; then |
| 4366 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 4367 | else |
| 4368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4369 | for as_dir in $PATH |
| 4370 | do |
| 4371 | IFS=$as_save_IFS |
| 4372 | test -z "$as_dir" && as_dir=. |
| 4373 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4374 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4375 | ac_cv_prog_AWK="$ac_prog" |
| 4376 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4377 | break 2 |
| 4378 | fi |
| 4379 | done |
| 4380 | done |
| 4381 | |
| 4382 | fi |
| 4383 | fi |
| 4384 | AWK=$ac_cv_prog_AWK |
| 4385 | if test -n "$AWK"; then |
| 4386 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 4387 | echo "${ECHO_T}$AWK" >&6 |
| 4388 | else |
| 4389 | echo "$as_me:$LINENO: result: no" >&5 |
| 4390 | echo "${ECHO_T}no" >&6 |
| 4391 | fi |
| 4392 | |
| 4393 | test -n "$AWK" && break |
| 4394 | done |
| 4395 | |
| 4396 | # Find a good install program. We prefer a C program (faster), |
| 4397 | # so one script is as good as another. But avoid the broken or |
| 4398 | # incompatible versions: |
| 4399 | # SysV /etc/install, /usr/sbin/install |
| 4400 | # SunOS /usr/etc/install |
| 4401 | # IRIX /sbin/install |
| 4402 | # AIX /bin/install |
| 4403 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4404 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4405 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4406 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4407 | # OS/2's system install, which has a completely different semantic |
| 4408 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4409 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4410 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 4411 | if test -z "$INSTALL"; then |
| 4412 | if test "${ac_cv_path_install+set}" = set; then |
| 4413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4414 | else |
| 4415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4416 | for as_dir in $PATH |
| 4417 | do |
| 4418 | IFS=$as_save_IFS |
| 4419 | test -z "$as_dir" && as_dir=. |
| 4420 | # Account for people who put trailing slashes in PATH elements. |
| 4421 | case $as_dir/ in |
| 4422 | ./ | .// | /cC/* | \ |
| 4423 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4424 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4425 | /usr/ucb/* ) ;; |
| 4426 | *) |
| 4427 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4428 | # Don't use installbsd from OSF since it installs stuff as root |
| 4429 | # by default. |
| 4430 | for ac_prog in ginstall scoinst install; do |
| 4431 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4432 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 4433 | if test $ac_prog = install && |
| 4434 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4435 | # AIX install. It has an incompatible calling convention. |
| 4436 | : |
| 4437 | elif test $ac_prog = install && |
| 4438 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4439 | # program-specific install script used by HP pwplus--don't use. |
| 4440 | : |
| 4441 | else |
| 4442 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4443 | break 3 |
| 4444 | fi |
| 4445 | fi |
| 4446 | done |
| 4447 | done |
| 4448 | ;; |
| 4449 | esac |
| 4450 | done |
| 4451 | |
| 4452 | |
| 4453 | fi |
| 4454 | if test "${ac_cv_path_install+set}" = set; then |
| 4455 | INSTALL=$ac_cv_path_install |
| 4456 | else |
| 4457 | # As a last resort, use the slow shell script. We don't cache a |
| 4458 | # path for INSTALL within a source directory, because that will |
| 4459 | # break other packages using the cache if that directory is |
| 4460 | # removed, or if the path is relative. |
| 4461 | INSTALL=$ac_install_sh |
| 4462 | fi |
| 4463 | fi |
| 4464 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4465 | echo "${ECHO_T}$INSTALL" >&6 |
| 4466 | |
| 4467 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4468 | # It thinks the first close brace ends the variable substitution. |
| 4469 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4470 | |
| 4471 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4472 | |
| 4473 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4474 | |
| 4475 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4476 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4477 | LN_S=$as_ln_s |
| 4478 | if test "$LN_S" = "ln -s"; then |
| 4479 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4480 | echo "${ECHO_T}yes" >&6 |
| 4481 | else |
| 4482 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4483 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 4484 | fi |
| 4485 | |
| 4486 | if test -n "$ac_tool_prefix"; then |
| 4487 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4488 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4489 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4490 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4491 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4493 | else |
| 4494 | if test -n "$RANLIB"; then |
| 4495 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4496 | else |
| 4497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4498 | for as_dir in $PATH |
| 4499 | do |
| 4500 | IFS=$as_save_IFS |
| 4501 | test -z "$as_dir" && as_dir=. |
| 4502 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4503 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4504 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4505 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4506 | break 2 |
| 4507 | fi |
| 4508 | done |
| 4509 | done |
| 4510 | |
| 4511 | fi |
| 4512 | fi |
| 4513 | RANLIB=$ac_cv_prog_RANLIB |
| 4514 | if test -n "$RANLIB"; then |
| 4515 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4516 | echo "${ECHO_T}$RANLIB" >&6 |
| 4517 | else |
| 4518 | echo "$as_me:$LINENO: result: no" >&5 |
| 4519 | echo "${ECHO_T}no" >&6 |
| 4520 | fi |
| 4521 | |
| 4522 | fi |
| 4523 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4524 | ac_ct_RANLIB=$RANLIB |
| 4525 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4526 | set dummy ranlib; ac_word=$2 |
| 4527 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4528 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4529 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4531 | else |
| 4532 | if test -n "$ac_ct_RANLIB"; then |
| 4533 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4534 | else |
| 4535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4536 | for as_dir in $PATH |
| 4537 | do |
| 4538 | IFS=$as_save_IFS |
| 4539 | test -z "$as_dir" && as_dir=. |
| 4540 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4541 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4542 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4543 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4544 | break 2 |
| 4545 | fi |
| 4546 | done |
| 4547 | done |
| 4548 | |
| 4549 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4550 | fi |
| 4551 | fi |
| 4552 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4553 | if test -n "$ac_ct_RANLIB"; then |
| 4554 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4555 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4556 | else |
| 4557 | echo "$as_me:$LINENO: result: no" >&5 |
| 4558 | echo "${ECHO_T}no" >&6 |
| 4559 | fi |
| 4560 | |
| 4561 | RANLIB=$ac_ct_RANLIB |
| 4562 | else |
| 4563 | RANLIB="$ac_cv_prog_RANLIB" |
| 4564 | fi |
| 4565 | |
| 4566 | for ac_prog in 'bison -y' byacc |
| 4567 | do |
| 4568 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4569 | set dummy $ac_prog; ac_word=$2 |
| 4570 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4572 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 4573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4574 | else |
| 4575 | if test -n "$YACC"; then |
| 4576 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 4577 | else |
| 4578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4579 | for as_dir in $PATH |
| 4580 | do |
| 4581 | IFS=$as_save_IFS |
| 4582 | test -z "$as_dir" && as_dir=. |
| 4583 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4584 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4585 | ac_cv_prog_YACC="$ac_prog" |
| 4586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4587 | break 2 |
| 4588 | fi |
| 4589 | done |
| 4590 | done |
| 4591 | |
| 4592 | fi |
| 4593 | fi |
| 4594 | YACC=$ac_cv_prog_YACC |
| 4595 | if test -n "$YACC"; then |
| 4596 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 4597 | echo "${ECHO_T}$YACC" >&6 |
| 4598 | else |
| 4599 | echo "$as_me:$LINENO: result: no" >&5 |
| 4600 | echo "${ECHO_T}no" >&6 |
| 4601 | fi |
| 4602 | |
| 4603 | test -n "$YACC" && break |
| 4604 | done |
| 4605 | test -n "$YACC" || YACC="yacc" |
| 4606 | |
| 4607 | |
| 4608 | if test -n "$ac_tool_prefix"; then |
| 4609 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 4610 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 4611 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4613 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4615 | else |
| 4616 | if test -n "$AR"; then |
| 4617 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4618 | else |
| 4619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4620 | for as_dir in $PATH |
| 4621 | do |
| 4622 | IFS=$as_save_IFS |
| 4623 | test -z "$as_dir" && as_dir=. |
| 4624 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4625 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4626 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 4627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4628 | break 2 |
| 4629 | fi |
| 4630 | done |
| 4631 | done |
| 4632 | |
| 4633 | fi |
| 4634 | fi |
| 4635 | AR=$ac_cv_prog_AR |
| 4636 | if test -n "$AR"; then |
| 4637 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 4638 | echo "${ECHO_T}$AR" >&6 |
| 4639 | else |
| 4640 | echo "$as_me:$LINENO: result: no" >&5 |
| 4641 | echo "${ECHO_T}no" >&6 |
| 4642 | fi |
| 4643 | |
| 4644 | fi |
| 4645 | if test -z "$ac_cv_prog_AR"; then |
| 4646 | ac_ct_AR=$AR |
| 4647 | # Extract the first word of "ar", so it can be a program name with args. |
| 4648 | set dummy ar; ac_word=$2 |
| 4649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4651 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 4652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4653 | else |
| 4654 | if test -n "$ac_ct_AR"; then |
| 4655 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4656 | else |
| 4657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4658 | for as_dir in $PATH |
| 4659 | do |
| 4660 | IFS=$as_save_IFS |
| 4661 | test -z "$as_dir" && as_dir=. |
| 4662 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4664 | ac_cv_prog_ac_ct_AR="ar" |
| 4665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4666 | break 2 |
| 4667 | fi |
| 4668 | done |
| 4669 | done |
| 4670 | |
| 4671 | fi |
| 4672 | fi |
| 4673 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4674 | if test -n "$ac_ct_AR"; then |
| 4675 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 4676 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 4677 | else |
| 4678 | echo "$as_me:$LINENO: result: no" >&5 |
| 4679 | echo "${ECHO_T}no" >&6 |
| 4680 | fi |
| 4681 | |
| 4682 | AR=$ac_ct_AR |
| 4683 | else |
| 4684 | AR="$ac_cv_prog_AR" |
| 4685 | fi |
| 4686 | |
| 4687 | if test -n "$ac_tool_prefix"; then |
| 4688 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 4689 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 4690 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4692 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4694 | else |
| 4695 | if test -n "$DLLTOOL"; then |
| 4696 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 4697 | else |
| 4698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4699 | for as_dir in $PATH |
| 4700 | do |
| 4701 | IFS=$as_save_IFS |
| 4702 | test -z "$as_dir" && as_dir=. |
| 4703 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4705 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 4706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4707 | break 2 |
| 4708 | fi |
| 4709 | done |
| 4710 | done |
| 4711 | |
| 4712 | fi |
| 4713 | fi |
| 4714 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 4715 | if test -n "$DLLTOOL"; then |
| 4716 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 4717 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 4718 | else |
| 4719 | echo "$as_me:$LINENO: result: no" >&5 |
| 4720 | echo "${ECHO_T}no" >&6 |
| 4721 | fi |
| 4722 | |
| 4723 | fi |
| 4724 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 4725 | ac_ct_DLLTOOL=$DLLTOOL |
| 4726 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 4727 | set dummy dlltool; ac_word=$2 |
| 4728 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4730 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 4731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4732 | else |
| 4733 | if test -n "$ac_ct_DLLTOOL"; then |
| 4734 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 4735 | else |
| 4736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4737 | for as_dir in $PATH |
| 4738 | do |
| 4739 | IFS=$as_save_IFS |
| 4740 | test -z "$as_dir" && as_dir=. |
| 4741 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4742 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4743 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 4744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4745 | break 2 |
| 4746 | fi |
| 4747 | done |
| 4748 | done |
| 4749 | |
| 4750 | fi |
| 4751 | fi |
| 4752 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 4753 | if test -n "$ac_ct_DLLTOOL"; then |
| 4754 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 4755 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 |
| 4756 | else |
| 4757 | echo "$as_me:$LINENO: result: no" >&5 |
| 4758 | echo "${ECHO_T}no" >&6 |
| 4759 | fi |
| 4760 | |
| 4761 | DLLTOOL=$ac_ct_DLLTOOL |
| 4762 | else |
| 4763 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 4764 | fi |
| 4765 | |
| 4766 | if test -n "$ac_tool_prefix"; then |
| 4767 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 4768 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 4769 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4771 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 4772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4773 | else |
| 4774 | if test -n "$WINDRES"; then |
| 4775 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 4776 | else |
| 4777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4778 | for as_dir in $PATH |
| 4779 | do |
| 4780 | IFS=$as_save_IFS |
| 4781 | test -z "$as_dir" && as_dir=. |
| 4782 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4783 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4784 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 4785 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4786 | break 2 |
| 4787 | fi |
| 4788 | done |
| 4789 | done |
| 4790 | |
| 4791 | fi |
| 4792 | fi |
| 4793 | WINDRES=$ac_cv_prog_WINDRES |
| 4794 | if test -n "$WINDRES"; then |
| 4795 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 4796 | echo "${ECHO_T}$WINDRES" >&6 |
| 4797 | else |
| 4798 | echo "$as_me:$LINENO: result: no" >&5 |
| 4799 | echo "${ECHO_T}no" >&6 |
| 4800 | fi |
| 4801 | |
| 4802 | fi |
| 4803 | if test -z "$ac_cv_prog_WINDRES"; then |
| 4804 | ac_ct_WINDRES=$WINDRES |
| 4805 | # Extract the first word of "windres", so it can be a program name with args. |
| 4806 | set dummy windres; ac_word=$2 |
| 4807 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4809 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 4810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4811 | else |
| 4812 | if test -n "$ac_ct_WINDRES"; then |
| 4813 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 4814 | else |
| 4815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4816 | for as_dir in $PATH |
| 4817 | do |
| 4818 | IFS=$as_save_IFS |
| 4819 | test -z "$as_dir" && as_dir=. |
| 4820 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4821 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4822 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 4823 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4824 | break 2 |
| 4825 | fi |
| 4826 | done |
| 4827 | done |
| 4828 | |
| 4829 | fi |
| 4830 | fi |
| 4831 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 4832 | if test -n "$ac_ct_WINDRES"; then |
| 4833 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 4834 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 |
| 4835 | else |
| 4836 | echo "$as_me:$LINENO: result: no" >&5 |
| 4837 | echo "${ECHO_T}no" >&6 |
| 4838 | fi |
| 4839 | |
| 4840 | WINDRES=$ac_ct_WINDRES |
| 4841 | else |
| 4842 | WINDRES="$ac_cv_prog_WINDRES" |
| 4843 | fi |
| 4844 | |
| 4845 | |
| 4846 | # Needed for GNU/Hurd. |
| 4847 | if test -n "$ac_tool_prefix"; then |
| 4848 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. |
| 4849 | set dummy ${ac_tool_prefix}mig; ac_word=$2 |
| 4850 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4852 | if test "${ac_cv_prog_MIG+set}" = set; then |
| 4853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4854 | else |
| 4855 | if test -n "$MIG"; then |
| 4856 | ac_cv_prog_MIG="$MIG" # Let the user override the test. |
| 4857 | else |
| 4858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4859 | for as_dir in $PATH |
| 4860 | do |
| 4861 | IFS=$as_save_IFS |
| 4862 | test -z "$as_dir" && as_dir=. |
| 4863 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4864 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4865 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
| 4866 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4867 | break 2 |
| 4868 | fi |
| 4869 | done |
| 4870 | done |
| 4871 | |
| 4872 | fi |
| 4873 | fi |
| 4874 | MIG=$ac_cv_prog_MIG |
| 4875 | if test -n "$MIG"; then |
| 4876 | echo "$as_me:$LINENO: result: $MIG" >&5 |
| 4877 | echo "${ECHO_T}$MIG" >&6 |
| 4878 | else |
| 4879 | echo "$as_me:$LINENO: result: no" >&5 |
| 4880 | echo "${ECHO_T}no" >&6 |
| 4881 | fi |
| 4882 | |
| 4883 | fi |
| 4884 | if test -z "$ac_cv_prog_MIG"; then |
| 4885 | ac_ct_MIG=$MIG |
| 4886 | # Extract the first word of "mig", so it can be a program name with args. |
| 4887 | set dummy mig; ac_word=$2 |
| 4888 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4889 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4890 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then |
| 4891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4892 | else |
| 4893 | if test -n "$ac_ct_MIG"; then |
| 4894 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. |
| 4895 | else |
| 4896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4897 | for as_dir in $PATH |
| 4898 | do |
| 4899 | IFS=$as_save_IFS |
| 4900 | test -z "$as_dir" && as_dir=. |
| 4901 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4902 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4903 | ac_cv_prog_ac_ct_MIG="mig" |
| 4904 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4905 | break 2 |
| 4906 | fi |
| 4907 | done |
| 4908 | done |
| 4909 | |
| 4910 | fi |
| 4911 | fi |
| 4912 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG |
| 4913 | if test -n "$ac_ct_MIG"; then |
| 4914 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 |
| 4915 | echo "${ECHO_T}$ac_ct_MIG" >&6 |
| 4916 | else |
| 4917 | echo "$as_me:$LINENO: result: no" >&5 |
| 4918 | echo "${ECHO_T}no" >&6 |
| 4919 | fi |
| 4920 | |
| 4921 | MIG=$ac_ct_MIG |
| 4922 | else |
| 4923 | MIG="$ac_cv_prog_MIG" |
| 4924 | fi |
| 4925 | |
| 4926 | |
| 4927 | # ---------------------- # |
| 4928 | # Checks for libraries. # |
| 4929 | # ---------------------- # |
| 4930 | |
| 4931 | # We might need to link with -lm; most simulators need it. |
| 4932 | |
| 4933 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
| 4934 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
| 4935 | if test "${ac_cv_lib_m_main+set}" = set; then |
| 4936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4937 | else |
| 4938 | ac_check_lib_save_LIBS=$LIBS |
| 4939 | LIBS="-lm $LIBS" |
| 4940 | cat >conftest.$ac_ext <<_ACEOF |
| 4941 | /* confdefs.h. */ |
| 4942 | _ACEOF |
| 4943 | cat confdefs.h >>conftest.$ac_ext |
| 4944 | cat >>conftest.$ac_ext <<_ACEOF |
| 4945 | /* end confdefs.h. */ |
| 4946 | |
| 4947 | |
| 4948 | int |
| 4949 | main () |
| 4950 | { |
| 4951 | main (); |
| 4952 | ; |
| 4953 | return 0; |
| 4954 | } |
| 4955 | _ACEOF |
| 4956 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4958 | (eval $ac_link) 2>conftest.er1 |
| 4959 | ac_status=$? |
| 4960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4961 | rm -f conftest.er1 |
| 4962 | cat conftest.err >&5 |
| 4963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4964 | (exit $ac_status); } && |
| 4965 | { ac_try='test -z "$ac_c_werror_flag" |
| 4966 | || test ! -s conftest.err' |
| 4967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4968 | (eval $ac_try) 2>&5 |
| 4969 | ac_status=$? |
| 4970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4971 | (exit $ac_status); }; } && |
| 4972 | { ac_try='test -s conftest$ac_exeext' |
| 4973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4974 | (eval $ac_try) 2>&5 |
| 4975 | ac_status=$? |
| 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4977 | (exit $ac_status); }; }; then |
| 4978 | ac_cv_lib_m_main=yes |
| 4979 | else |
| 4980 | echo "$as_me: failed program was:" >&5 |
| 4981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4982 | |
| 4983 | ac_cv_lib_m_main=no |
| 4984 | fi |
| 4985 | rm -f conftest.err conftest.$ac_objext \ |
| 4986 | conftest$ac_exeext conftest.$ac_ext |
| 4987 | LIBS=$ac_check_lib_save_LIBS |
| 4988 | fi |
| 4989 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
| 4990 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
| 4991 | if test $ac_cv_lib_m_main = yes; then |
| 4992 | cat >>confdefs.h <<_ACEOF |
| 4993 | #define HAVE_LIBM 1 |
| 4994 | _ACEOF |
| 4995 | |
| 4996 | LIBS="-lm $LIBS" |
| 4997 | |
| 4998 | fi |
| 4999 | |
| 5000 | |
| 5001 | # We need to link with -lw to get `wctype' on Solaris before Solaris |
| 5002 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a |
| 5003 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 |
| 5004 | # is known to have this problem). Therefore we avoid libw if we can. |
| 5005 | echo "$as_me:$LINENO: checking for wctype" >&5 |
| 5006 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 |
| 5007 | if test "${ac_cv_func_wctype+set}" = set; then |
| 5008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5009 | else |
| 5010 | cat >conftest.$ac_ext <<_ACEOF |
| 5011 | /* confdefs.h. */ |
| 5012 | _ACEOF |
| 5013 | cat confdefs.h >>conftest.$ac_ext |
| 5014 | cat >>conftest.$ac_ext <<_ACEOF |
| 5015 | /* end confdefs.h. */ |
| 5016 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. |
| 5017 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5018 | #define wctype innocuous_wctype |
| 5019 | |
| 5020 | /* System header to define __stub macros and hopefully few prototypes, |
| 5021 | which can conflict with char wctype (); below. |
| 5022 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5023 | <limits.h> exists even on freestanding compilers. */ |
| 5024 | |
| 5025 | #ifdef __STDC__ |
| 5026 | # include <limits.h> |
| 5027 | #else |
| 5028 | # include <assert.h> |
| 5029 | #endif |
| 5030 | |
| 5031 | #undef wctype |
| 5032 | |
| 5033 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5034 | #ifdef __cplusplus |
| 5035 | extern "C" |
| 5036 | { |
| 5037 | #endif |
| 5038 | /* We use char because int might match the return type of a gcc2 |
| 5039 | builtin and then its argument prototype would still apply. */ |
| 5040 | char wctype (); |
| 5041 | /* The GNU C library defines this for functions which it implements |
| 5042 | to always fail with ENOSYS. Some functions are actually named |
| 5043 | something starting with __ and the normal name is an alias. */ |
| 5044 | #if defined (__stub_wctype) || defined (__stub___wctype) |
| 5045 | choke me |
| 5046 | #else |
| 5047 | char (*f) () = wctype; |
| 5048 | #endif |
| 5049 | #ifdef __cplusplus |
| 5050 | } |
| 5051 | #endif |
| 5052 | |
| 5053 | int |
| 5054 | main () |
| 5055 | { |
| 5056 | return f != wctype; |
| 5057 | ; |
| 5058 | return 0; |
| 5059 | } |
| 5060 | _ACEOF |
| 5061 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5063 | (eval $ac_link) 2>conftest.er1 |
| 5064 | ac_status=$? |
| 5065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5066 | rm -f conftest.er1 |
| 5067 | cat conftest.err >&5 |
| 5068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5069 | (exit $ac_status); } && |
| 5070 | { ac_try='test -z "$ac_c_werror_flag" |
| 5071 | || test ! -s conftest.err' |
| 5072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5073 | (eval $ac_try) 2>&5 |
| 5074 | ac_status=$? |
| 5075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5076 | (exit $ac_status); }; } && |
| 5077 | { ac_try='test -s conftest$ac_exeext' |
| 5078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5079 | (eval $ac_try) 2>&5 |
| 5080 | ac_status=$? |
| 5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5082 | (exit $ac_status); }; }; then |
| 5083 | ac_cv_func_wctype=yes |
| 5084 | else |
| 5085 | echo "$as_me: failed program was:" >&5 |
| 5086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5087 | |
| 5088 | ac_cv_func_wctype=no |
| 5089 | fi |
| 5090 | rm -f conftest.err conftest.$ac_objext \ |
| 5091 | conftest$ac_exeext conftest.$ac_ext |
| 5092 | fi |
| 5093 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
| 5094 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 |
| 5095 | if test $ac_cv_func_wctype = yes; then |
| 5096 | : |
| 5097 | else |
| 5098 | |
| 5099 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
| 5100 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 |
| 5101 | if test "${ac_cv_lib_w_wctype+set}" = set; then |
| 5102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5103 | else |
| 5104 | ac_check_lib_save_LIBS=$LIBS |
| 5105 | LIBS="-lw $LIBS" |
| 5106 | cat >conftest.$ac_ext <<_ACEOF |
| 5107 | /* confdefs.h. */ |
| 5108 | _ACEOF |
| 5109 | cat confdefs.h >>conftest.$ac_ext |
| 5110 | cat >>conftest.$ac_ext <<_ACEOF |
| 5111 | /* end confdefs.h. */ |
| 5112 | |
| 5113 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5114 | #ifdef __cplusplus |
| 5115 | extern "C" |
| 5116 | #endif |
| 5117 | /* We use char because int might match the return type of a gcc2 |
| 5118 | builtin and then its argument prototype would still apply. */ |
| 5119 | char wctype (); |
| 5120 | int |
| 5121 | main () |
| 5122 | { |
| 5123 | wctype (); |
| 5124 | ; |
| 5125 | return 0; |
| 5126 | } |
| 5127 | _ACEOF |
| 5128 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5130 | (eval $ac_link) 2>conftest.er1 |
| 5131 | ac_status=$? |
| 5132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5133 | rm -f conftest.er1 |
| 5134 | cat conftest.err >&5 |
| 5135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5136 | (exit $ac_status); } && |
| 5137 | { ac_try='test -z "$ac_c_werror_flag" |
| 5138 | || test ! -s conftest.err' |
| 5139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5140 | (eval $ac_try) 2>&5 |
| 5141 | ac_status=$? |
| 5142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5143 | (exit $ac_status); }; } && |
| 5144 | { ac_try='test -s conftest$ac_exeext' |
| 5145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5146 | (eval $ac_try) 2>&5 |
| 5147 | ac_status=$? |
| 5148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5149 | (exit $ac_status); }; }; then |
| 5150 | ac_cv_lib_w_wctype=yes |
| 5151 | else |
| 5152 | echo "$as_me: failed program was:" >&5 |
| 5153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5154 | |
| 5155 | ac_cv_lib_w_wctype=no |
| 5156 | fi |
| 5157 | rm -f conftest.err conftest.$ac_objext \ |
| 5158 | conftest$ac_exeext conftest.$ac_ext |
| 5159 | LIBS=$ac_check_lib_save_LIBS |
| 5160 | fi |
| 5161 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 |
| 5162 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 |
| 5163 | if test $ac_cv_lib_w_wctype = yes; then |
| 5164 | cat >>confdefs.h <<_ACEOF |
| 5165 | #define HAVE_LIBW 1 |
| 5166 | _ACEOF |
| 5167 | |
| 5168 | LIBS="-lw $LIBS" |
| 5169 | |
| 5170 | fi |
| 5171 | |
| 5172 | fi |
| 5173 | |
| 5174 | |
| 5175 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
| 5176 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
| 5177 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 |
| 5178 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
| 5179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5180 | else |
| 5181 | ac_func_search_save_LIBS=$LIBS |
| 5182 | ac_cv_search_gethostbyname=no |
| 5183 | cat >conftest.$ac_ext <<_ACEOF |
| 5184 | /* confdefs.h. */ |
| 5185 | _ACEOF |
| 5186 | cat confdefs.h >>conftest.$ac_ext |
| 5187 | cat >>conftest.$ac_ext <<_ACEOF |
| 5188 | /* end confdefs.h. */ |
| 5189 | |
| 5190 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5191 | #ifdef __cplusplus |
| 5192 | extern "C" |
| 5193 | #endif |
| 5194 | /* We use char because int might match the return type of a gcc2 |
| 5195 | builtin and then its argument prototype would still apply. */ |
| 5196 | char gethostbyname (); |
| 5197 | int |
| 5198 | main () |
| 5199 | { |
| 5200 | gethostbyname (); |
| 5201 | ; |
| 5202 | return 0; |
| 5203 | } |
| 5204 | _ACEOF |
| 5205 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5207 | (eval $ac_link) 2>conftest.er1 |
| 5208 | ac_status=$? |
| 5209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5210 | rm -f conftest.er1 |
| 5211 | cat conftest.err >&5 |
| 5212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5213 | (exit $ac_status); } && |
| 5214 | { ac_try='test -z "$ac_c_werror_flag" |
| 5215 | || test ! -s conftest.err' |
| 5216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5217 | (eval $ac_try) 2>&5 |
| 5218 | ac_status=$? |
| 5219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5220 | (exit $ac_status); }; } && |
| 5221 | { ac_try='test -s conftest$ac_exeext' |
| 5222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5223 | (eval $ac_try) 2>&5 |
| 5224 | ac_status=$? |
| 5225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5226 | (exit $ac_status); }; }; then |
| 5227 | ac_cv_search_gethostbyname="none required" |
| 5228 | else |
| 5229 | echo "$as_me: failed program was:" >&5 |
| 5230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5231 | |
| 5232 | fi |
| 5233 | rm -f conftest.err conftest.$ac_objext \ |
| 5234 | conftest$ac_exeext conftest.$ac_ext |
| 5235 | if test "$ac_cv_search_gethostbyname" = no; then |
| 5236 | for ac_lib in nsl; do |
| 5237 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5238 | cat >conftest.$ac_ext <<_ACEOF |
| 5239 | /* confdefs.h. */ |
| 5240 | _ACEOF |
| 5241 | cat confdefs.h >>conftest.$ac_ext |
| 5242 | cat >>conftest.$ac_ext <<_ACEOF |
| 5243 | /* end confdefs.h. */ |
| 5244 | |
| 5245 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5246 | #ifdef __cplusplus |
| 5247 | extern "C" |
| 5248 | #endif |
| 5249 | /* We use char because int might match the return type of a gcc2 |
| 5250 | builtin and then its argument prototype would still apply. */ |
| 5251 | char gethostbyname (); |
| 5252 | int |
| 5253 | main () |
| 5254 | { |
| 5255 | gethostbyname (); |
| 5256 | ; |
| 5257 | return 0; |
| 5258 | } |
| 5259 | _ACEOF |
| 5260 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5262 | (eval $ac_link) 2>conftest.er1 |
| 5263 | ac_status=$? |
| 5264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5265 | rm -f conftest.er1 |
| 5266 | cat conftest.err >&5 |
| 5267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5268 | (exit $ac_status); } && |
| 5269 | { ac_try='test -z "$ac_c_werror_flag" |
| 5270 | || test ! -s conftest.err' |
| 5271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5272 | (eval $ac_try) 2>&5 |
| 5273 | ac_status=$? |
| 5274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5275 | (exit $ac_status); }; } && |
| 5276 | { ac_try='test -s conftest$ac_exeext' |
| 5277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5278 | (eval $ac_try) 2>&5 |
| 5279 | ac_status=$? |
| 5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5281 | (exit $ac_status); }; }; then |
| 5282 | ac_cv_search_gethostbyname="-l$ac_lib" |
| 5283 | break |
| 5284 | else |
| 5285 | echo "$as_me: failed program was:" >&5 |
| 5286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5287 | |
| 5288 | fi |
| 5289 | rm -f conftest.err conftest.$ac_objext \ |
| 5290 | conftest$ac_exeext conftest.$ac_ext |
| 5291 | done |
| 5292 | fi |
| 5293 | LIBS=$ac_func_search_save_LIBS |
| 5294 | fi |
| 5295 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
| 5296 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 |
| 5297 | if test "$ac_cv_search_gethostbyname" != no; then |
| 5298 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" |
| 5299 | |
| 5300 | fi |
| 5301 | |
| 5302 | |
| 5303 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
| 5304 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 |
| 5305 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 |
| 5306 | if test "${ac_cv_search_socketpair+set}" = set; then |
| 5307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5308 | else |
| 5309 | ac_func_search_save_LIBS=$LIBS |
| 5310 | ac_cv_search_socketpair=no |
| 5311 | cat >conftest.$ac_ext <<_ACEOF |
| 5312 | /* confdefs.h. */ |
| 5313 | _ACEOF |
| 5314 | cat confdefs.h >>conftest.$ac_ext |
| 5315 | cat >>conftest.$ac_ext <<_ACEOF |
| 5316 | /* end confdefs.h. */ |
| 5317 | |
| 5318 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5319 | #ifdef __cplusplus |
| 5320 | extern "C" |
| 5321 | #endif |
| 5322 | /* We use char because int might match the return type of a gcc2 |
| 5323 | builtin and then its argument prototype would still apply. */ |
| 5324 | char socketpair (); |
| 5325 | int |
| 5326 | main () |
| 5327 | { |
| 5328 | socketpair (); |
| 5329 | ; |
| 5330 | return 0; |
| 5331 | } |
| 5332 | _ACEOF |
| 5333 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5335 | (eval $ac_link) 2>conftest.er1 |
| 5336 | ac_status=$? |
| 5337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5338 | rm -f conftest.er1 |
| 5339 | cat conftest.err >&5 |
| 5340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5341 | (exit $ac_status); } && |
| 5342 | { ac_try='test -z "$ac_c_werror_flag" |
| 5343 | || test ! -s conftest.err' |
| 5344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5345 | (eval $ac_try) 2>&5 |
| 5346 | ac_status=$? |
| 5347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5348 | (exit $ac_status); }; } && |
| 5349 | { ac_try='test -s conftest$ac_exeext' |
| 5350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5351 | (eval $ac_try) 2>&5 |
| 5352 | ac_status=$? |
| 5353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5354 | (exit $ac_status); }; }; then |
| 5355 | ac_cv_search_socketpair="none required" |
| 5356 | else |
| 5357 | echo "$as_me: failed program was:" >&5 |
| 5358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5359 | |
| 5360 | fi |
| 5361 | rm -f conftest.err conftest.$ac_objext \ |
| 5362 | conftest$ac_exeext conftest.$ac_ext |
| 5363 | if test "$ac_cv_search_socketpair" = no; then |
| 5364 | for ac_lib in socket; do |
| 5365 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5366 | cat >conftest.$ac_ext <<_ACEOF |
| 5367 | /* confdefs.h. */ |
| 5368 | _ACEOF |
| 5369 | cat confdefs.h >>conftest.$ac_ext |
| 5370 | cat >>conftest.$ac_ext <<_ACEOF |
| 5371 | /* end confdefs.h. */ |
| 5372 | |
| 5373 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5374 | #ifdef __cplusplus |
| 5375 | extern "C" |
| 5376 | #endif |
| 5377 | /* We use char because int might match the return type of a gcc2 |
| 5378 | builtin and then its argument prototype would still apply. */ |
| 5379 | char socketpair (); |
| 5380 | int |
| 5381 | main () |
| 5382 | { |
| 5383 | socketpair (); |
| 5384 | ; |
| 5385 | return 0; |
| 5386 | } |
| 5387 | _ACEOF |
| 5388 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5390 | (eval $ac_link) 2>conftest.er1 |
| 5391 | ac_status=$? |
| 5392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5393 | rm -f conftest.er1 |
| 5394 | cat conftest.err >&5 |
| 5395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5396 | (exit $ac_status); } && |
| 5397 | { ac_try='test -z "$ac_c_werror_flag" |
| 5398 | || test ! -s conftest.err' |
| 5399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5400 | (eval $ac_try) 2>&5 |
| 5401 | ac_status=$? |
| 5402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5403 | (exit $ac_status); }; } && |
| 5404 | { ac_try='test -s conftest$ac_exeext' |
| 5405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5406 | (eval $ac_try) 2>&5 |
| 5407 | ac_status=$? |
| 5408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5409 | (exit $ac_status); }; }; then |
| 5410 | ac_cv_search_socketpair="-l$ac_lib" |
| 5411 | break |
| 5412 | else |
| 5413 | echo "$as_me: failed program was:" >&5 |
| 5414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5415 | |
| 5416 | fi |
| 5417 | rm -f conftest.err conftest.$ac_objext \ |
| 5418 | conftest$ac_exeext conftest.$ac_ext |
| 5419 | done |
| 5420 | fi |
| 5421 | LIBS=$ac_func_search_save_LIBS |
| 5422 | fi |
| 5423 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 |
| 5424 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 |
| 5425 | if test "$ac_cv_search_socketpair" != no; then |
| 5426 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" |
| 5427 | |
| 5428 | fi |
| 5429 | |
| 5430 | |
| 5431 | # For the TUI, we need enhanced curses functionality. |
| 5432 | # |
| 5433 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied |
| 5434 | # curses library because the latter might not provide all the |
| 5435 | # functionality we need. However, this leads to problems on systems |
| 5436 | # where the linker searches /usr/local/lib, but the compiler doesn't |
| 5437 | # search /usr/local/include, if ncurses is installed in /usr/local. A |
| 5438 | # default installation of ncurses on alpha*-dec-osf* will lead to such |
| 5439 | # a situation. |
| 5440 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 |
| 5441 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 |
| 5442 | if test "${ac_cv_search_waddstr+set}" = set; then |
| 5443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5444 | else |
| 5445 | ac_func_search_save_LIBS=$LIBS |
| 5446 | ac_cv_search_waddstr=no |
| 5447 | cat >conftest.$ac_ext <<_ACEOF |
| 5448 | /* confdefs.h. */ |
| 5449 | _ACEOF |
| 5450 | cat confdefs.h >>conftest.$ac_ext |
| 5451 | cat >>conftest.$ac_ext <<_ACEOF |
| 5452 | /* end confdefs.h. */ |
| 5453 | |
| 5454 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5455 | #ifdef __cplusplus |
| 5456 | extern "C" |
| 5457 | #endif |
| 5458 | /* We use char because int might match the return type of a gcc2 |
| 5459 | builtin and then its argument prototype would still apply. */ |
| 5460 | char waddstr (); |
| 5461 | int |
| 5462 | main () |
| 5463 | { |
| 5464 | waddstr (); |
| 5465 | ; |
| 5466 | return 0; |
| 5467 | } |
| 5468 | _ACEOF |
| 5469 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5471 | (eval $ac_link) 2>conftest.er1 |
| 5472 | ac_status=$? |
| 5473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5474 | rm -f conftest.er1 |
| 5475 | cat conftest.err >&5 |
| 5476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5477 | (exit $ac_status); } && |
| 5478 | { ac_try='test -z "$ac_c_werror_flag" |
| 5479 | || test ! -s conftest.err' |
| 5480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5481 | (eval $ac_try) 2>&5 |
| 5482 | ac_status=$? |
| 5483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5484 | (exit $ac_status); }; } && |
| 5485 | { ac_try='test -s conftest$ac_exeext' |
| 5486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5487 | (eval $ac_try) 2>&5 |
| 5488 | ac_status=$? |
| 5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5490 | (exit $ac_status); }; }; then |
| 5491 | ac_cv_search_waddstr="none required" |
| 5492 | else |
| 5493 | echo "$as_me: failed program was:" >&5 |
| 5494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5495 | |
| 5496 | fi |
| 5497 | rm -f conftest.err conftest.$ac_objext \ |
| 5498 | conftest$ac_exeext conftest.$ac_ext |
| 5499 | if test "$ac_cv_search_waddstr" = no; then |
| 5500 | for ac_lib in ncurses cursesX curses; do |
| 5501 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5502 | cat >conftest.$ac_ext <<_ACEOF |
| 5503 | /* confdefs.h. */ |
| 5504 | _ACEOF |
| 5505 | cat confdefs.h >>conftest.$ac_ext |
| 5506 | cat >>conftest.$ac_ext <<_ACEOF |
| 5507 | /* end confdefs.h. */ |
| 5508 | |
| 5509 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5510 | #ifdef __cplusplus |
| 5511 | extern "C" |
| 5512 | #endif |
| 5513 | /* We use char because int might match the return type of a gcc2 |
| 5514 | builtin and then its argument prototype would still apply. */ |
| 5515 | char waddstr (); |
| 5516 | int |
| 5517 | main () |
| 5518 | { |
| 5519 | waddstr (); |
| 5520 | ; |
| 5521 | return 0; |
| 5522 | } |
| 5523 | _ACEOF |
| 5524 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5526 | (eval $ac_link) 2>conftest.er1 |
| 5527 | ac_status=$? |
| 5528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5529 | rm -f conftest.er1 |
| 5530 | cat conftest.err >&5 |
| 5531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5532 | (exit $ac_status); } && |
| 5533 | { ac_try='test -z "$ac_c_werror_flag" |
| 5534 | || test ! -s conftest.err' |
| 5535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5536 | (eval $ac_try) 2>&5 |
| 5537 | ac_status=$? |
| 5538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5539 | (exit $ac_status); }; } && |
| 5540 | { ac_try='test -s conftest$ac_exeext' |
| 5541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5542 | (eval $ac_try) 2>&5 |
| 5543 | ac_status=$? |
| 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5545 | (exit $ac_status); }; }; then |
| 5546 | ac_cv_search_waddstr="-l$ac_lib" |
| 5547 | break |
| 5548 | else |
| 5549 | echo "$as_me: failed program was:" >&5 |
| 5550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5551 | |
| 5552 | fi |
| 5553 | rm -f conftest.err conftest.$ac_objext \ |
| 5554 | conftest$ac_exeext conftest.$ac_ext |
| 5555 | done |
| 5556 | fi |
| 5557 | LIBS=$ac_func_search_save_LIBS |
| 5558 | fi |
| 5559 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 |
| 5560 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 |
| 5561 | if test "$ac_cv_search_waddstr" != no; then |
| 5562 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" |
| 5563 | |
| 5564 | fi |
| 5565 | |
| 5566 | |
| 5567 | # Since GDB uses Readline, we need termcap functionality. In many |
| 5568 | # cases this will be provided by the curses library, but some systems |
| 5569 | # have a seperate termcap library, or no curses library at all. |
| 5570 | |
| 5571 | case $host_os in |
| 5572 | cygwin*) |
| 5573 | if test -d $srcdir/libtermcap; then |
| 5574 | LIBS="../libtermcap/libtermcap.a $LIBS" |
| 5575 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" |
| 5576 | fi ;; |
| 5577 | go32* | *djgpp*) |
| 5578 | ac_cv_search_tgetent="none required" |
| 5579 | ;; |
| 5580 | *mingw32*) |
| 5581 | ac_cv_search_tgetent="none required" |
| 5582 | CONFIG_OBS="$CONFIG_OBS win32-termcap.o" |
| 5583 | ;; |
| 5584 | esac |
| 5585 | |
| 5586 | # These are the libraries checked by Readline. |
| 5587 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
| 5588 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 |
| 5589 | if test "${ac_cv_search_tgetent+set}" = set; then |
| 5590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5591 | else |
| 5592 | ac_func_search_save_LIBS=$LIBS |
| 5593 | ac_cv_search_tgetent=no |
| 5594 | cat >conftest.$ac_ext <<_ACEOF |
| 5595 | /* confdefs.h. */ |
| 5596 | _ACEOF |
| 5597 | cat confdefs.h >>conftest.$ac_ext |
| 5598 | cat >>conftest.$ac_ext <<_ACEOF |
| 5599 | /* end confdefs.h. */ |
| 5600 | |
| 5601 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5602 | #ifdef __cplusplus |
| 5603 | extern "C" |
| 5604 | #endif |
| 5605 | /* We use char because int might match the return type of a gcc2 |
| 5606 | builtin and then its argument prototype would still apply. */ |
| 5607 | char tgetent (); |
| 5608 | int |
| 5609 | main () |
| 5610 | { |
| 5611 | tgetent (); |
| 5612 | ; |
| 5613 | return 0; |
| 5614 | } |
| 5615 | _ACEOF |
| 5616 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5618 | (eval $ac_link) 2>conftest.er1 |
| 5619 | ac_status=$? |
| 5620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5621 | rm -f conftest.er1 |
| 5622 | cat conftest.err >&5 |
| 5623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5624 | (exit $ac_status); } && |
| 5625 | { ac_try='test -z "$ac_c_werror_flag" |
| 5626 | || test ! -s conftest.err' |
| 5627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5628 | (eval $ac_try) 2>&5 |
| 5629 | ac_status=$? |
| 5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5631 | (exit $ac_status); }; } && |
| 5632 | { ac_try='test -s conftest$ac_exeext' |
| 5633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5634 | (eval $ac_try) 2>&5 |
| 5635 | ac_status=$? |
| 5636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5637 | (exit $ac_status); }; }; then |
| 5638 | ac_cv_search_tgetent="none required" |
| 5639 | else |
| 5640 | echo "$as_me: failed program was:" >&5 |
| 5641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5642 | |
| 5643 | fi |
| 5644 | rm -f conftest.err conftest.$ac_objext \ |
| 5645 | conftest$ac_exeext conftest.$ac_ext |
| 5646 | if test "$ac_cv_search_tgetent" = no; then |
| 5647 | for ac_lib in termcap tinfo curses ncurses; do |
| 5648 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5649 | cat >conftest.$ac_ext <<_ACEOF |
| 5650 | /* confdefs.h. */ |
| 5651 | _ACEOF |
| 5652 | cat confdefs.h >>conftest.$ac_ext |
| 5653 | cat >>conftest.$ac_ext <<_ACEOF |
| 5654 | /* end confdefs.h. */ |
| 5655 | |
| 5656 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5657 | #ifdef __cplusplus |
| 5658 | extern "C" |
| 5659 | #endif |
| 5660 | /* We use char because int might match the return type of a gcc2 |
| 5661 | builtin and then its argument prototype would still apply. */ |
| 5662 | char tgetent (); |
| 5663 | int |
| 5664 | main () |
| 5665 | { |
| 5666 | tgetent (); |
| 5667 | ; |
| 5668 | return 0; |
| 5669 | } |
| 5670 | _ACEOF |
| 5671 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5673 | (eval $ac_link) 2>conftest.er1 |
| 5674 | ac_status=$? |
| 5675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5676 | rm -f conftest.er1 |
| 5677 | cat conftest.err >&5 |
| 5678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5679 | (exit $ac_status); } && |
| 5680 | { ac_try='test -z "$ac_c_werror_flag" |
| 5681 | || test ! -s conftest.err' |
| 5682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5683 | (eval $ac_try) 2>&5 |
| 5684 | ac_status=$? |
| 5685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5686 | (exit $ac_status); }; } && |
| 5687 | { ac_try='test -s conftest$ac_exeext' |
| 5688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5689 | (eval $ac_try) 2>&5 |
| 5690 | ac_status=$? |
| 5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5692 | (exit $ac_status); }; }; then |
| 5693 | ac_cv_search_tgetent="-l$ac_lib" |
| 5694 | break |
| 5695 | else |
| 5696 | echo "$as_me: failed program was:" >&5 |
| 5697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5698 | |
| 5699 | fi |
| 5700 | rm -f conftest.err conftest.$ac_objext \ |
| 5701 | conftest$ac_exeext conftest.$ac_ext |
| 5702 | done |
| 5703 | fi |
| 5704 | LIBS=$ac_func_search_save_LIBS |
| 5705 | fi |
| 5706 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
| 5707 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 |
| 5708 | if test "$ac_cv_search_tgetent" != no; then |
| 5709 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
| 5710 | |
| 5711 | fi |
| 5712 | |
| 5713 | |
| 5714 | if test "$ac_cv_search_tgetent" = no; then |
| 5715 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 |
| 5716 | echo "$as_me: error: no termcap library found" >&2;} |
| 5717 | { (exit 1); exit 1; }; } |
| 5718 | fi |
| 5719 | |
| 5720 | |
| 5721 | if test "X$prefix" = "XNONE"; then |
| 5722 | acl_final_prefix="$ac_default_prefix" |
| 5723 | else |
| 5724 | acl_final_prefix="$prefix" |
| 5725 | fi |
| 5726 | if test "X$exec_prefix" = "XNONE"; then |
| 5727 | acl_final_exec_prefix='${prefix}' |
| 5728 | else |
| 5729 | acl_final_exec_prefix="$exec_prefix" |
| 5730 | fi |
| 5731 | acl_save_prefix="$prefix" |
| 5732 | prefix="$acl_final_prefix" |
| 5733 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 5734 | prefix="$acl_save_prefix" |
| 5735 | |
| 5736 | |
| 5737 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 5738 | if test "${with_gnu_ld+set}" = set; then |
| 5739 | withval="$with_gnu_ld" |
| 5740 | test "$withval" = no || with_gnu_ld=yes |
| 5741 | else |
| 5742 | with_gnu_ld=no |
| 5743 | fi; |
| 5744 | # Prepare PATH_SEPARATOR. |
| 5745 | # The user is always right. |
| 5746 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5747 | echo "#! /bin/sh" >conf$$.sh |
| 5748 | echo "exit 0" >>conf$$.sh |
| 5749 | chmod +x conf$$.sh |
| 5750 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5751 | PATH_SEPARATOR=';' |
| 5752 | else |
| 5753 | PATH_SEPARATOR=: |
| 5754 | fi |
| 5755 | rm -f conf$$.sh |
| 5756 | fi |
| 5757 | ac_prog=ld |
| 5758 | if test "$GCC" = yes; then |
| 5759 | # Check if gcc -print-prog-name=ld gives a path. |
| 5760 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 5761 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 5762 | case $host in |
| 5763 | *-*-mingw*) |
| 5764 | # gcc leaves a trailing carriage return which upsets mingw |
| 5765 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 5766 | *) |
| 5767 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5768 | esac |
| 5769 | case $ac_prog in |
| 5770 | # Accept absolute paths. |
| 5771 | [\\/]* | [A-Za-z]:[\\/]*) |
| 5772 | re_direlt='/[^/][^/]*/\.\./' |
| 5773 | # Canonicalize the path of ld |
| 5774 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 5775 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 5776 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 5777 | done |
| 5778 | test -z "$LD" && LD="$ac_prog" |
| 5779 | ;; |
| 5780 | "") |
| 5781 | # If it fails, then pretend we aren't using GCC. |
| 5782 | ac_prog=ld |
| 5783 | ;; |
| 5784 | *) |
| 5785 | # If it is relative, then search for the first ld in PATH. |
| 5786 | with_gnu_ld=unknown |
| 5787 | ;; |
| 5788 | esac |
| 5789 | elif test "$with_gnu_ld" = yes; then |
| 5790 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 5791 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 5792 | else |
| 5793 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 5794 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 5795 | fi |
| 5796 | if test "${acl_cv_path_LD+set}" = set; then |
| 5797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5798 | else |
| 5799 | if test -z "$LD"; then |
| 5800 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 5801 | for ac_dir in $PATH; do |
| 5802 | test -z "$ac_dir" && ac_dir=. |
| 5803 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 5804 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 5805 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 5806 | # but apparently some GNU ld's only accept -v. |
| 5807 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 5808 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 5809 | test "$with_gnu_ld" != no && break |
| 5810 | else |
| 5811 | test "$with_gnu_ld" != yes && break |
| 5812 | fi |
| 5813 | fi |
| 5814 | done |
| 5815 | IFS="$ac_save_ifs" |
| 5816 | else |
| 5817 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5818 | fi |
| 5819 | fi |
| 5820 | |
| 5821 | LD="$acl_cv_path_LD" |
| 5822 | if test -n "$LD"; then |
| 5823 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 5824 | echo "${ECHO_T}$LD" >&6 |
| 5825 | else |
| 5826 | echo "$as_me:$LINENO: result: no" >&5 |
| 5827 | echo "${ECHO_T}no" >&6 |
| 5828 | fi |
| 5829 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 5830 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 5831 | { (exit 1); exit 1; }; } |
| 5832 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 5833 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 5834 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 5835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5836 | else |
| 5837 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 5838 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 5839 | acl_cv_prog_gnu_ld=yes |
| 5840 | else |
| 5841 | acl_cv_prog_gnu_ld=no |
| 5842 | fi |
| 5843 | fi |
| 5844 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 5845 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 |
| 5846 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 5847 | |
| 5848 | |
| 5849 | |
| 5850 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 5851 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 |
| 5852 | if test "${acl_cv_rpath+set}" = set; then |
| 5853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5854 | else |
| 5855 | |
| 5856 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 5857 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 5858 | . ./conftest.sh |
| 5859 | rm -f ./conftest.sh |
| 5860 | acl_cv_rpath=done |
| 5861 | |
| 5862 | fi |
| 5863 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 5864 | echo "${ECHO_T}$acl_cv_rpath" >&6 |
| 5865 | wl="$acl_cv_wl" |
| 5866 | libext="$acl_cv_libext" |
| 5867 | shlibext="$acl_cv_shlibext" |
| 5868 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 5869 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 5870 | hardcode_direct="$acl_cv_hardcode_direct" |
| 5871 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 5872 | # Check whether --enable-rpath or --disable-rpath was given. |
| 5873 | if test "${enable_rpath+set}" = set; then |
| 5874 | enableval="$enable_rpath" |
| 5875 | : |
| 5876 | else |
| 5877 | enable_rpath=yes |
| 5878 | fi; |
| 5879 | |
| 5880 | |
| 5881 | |
| 5882 | |
| 5883 | |
| 5884 | |
| 5885 | |
| 5886 | |
| 5887 | |
| 5888 | use_additional=yes |
| 5889 | |
| 5890 | acl_save_prefix="$prefix" |
| 5891 | prefix="$acl_final_prefix" |
| 5892 | acl_save_exec_prefix="$exec_prefix" |
| 5893 | exec_prefix="$acl_final_exec_prefix" |
| 5894 | |
| 5895 | eval additional_includedir=\"$includedir\" |
| 5896 | eval additional_libdir=\"$libdir\" |
| 5897 | |
| 5898 | exec_prefix="$acl_save_exec_prefix" |
| 5899 | prefix="$acl_save_prefix" |
| 5900 | |
| 5901 | |
| 5902 | # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given. |
| 5903 | if test "${with_libexpat_prefix+set}" = set; then |
| 5904 | withval="$with_libexpat_prefix" |
| 5905 | |
| 5906 | if test "X$withval" = "Xno"; then |
| 5907 | use_additional=no |
| 5908 | else |
| 5909 | if test "X$withval" = "X"; then |
| 5910 | |
| 5911 | acl_save_prefix="$prefix" |
| 5912 | prefix="$acl_final_prefix" |
| 5913 | acl_save_exec_prefix="$exec_prefix" |
| 5914 | exec_prefix="$acl_final_exec_prefix" |
| 5915 | |
| 5916 | eval additional_includedir=\"$includedir\" |
| 5917 | eval additional_libdir=\"$libdir\" |
| 5918 | |
| 5919 | exec_prefix="$acl_save_exec_prefix" |
| 5920 | prefix="$acl_save_prefix" |
| 5921 | |
| 5922 | else |
| 5923 | additional_includedir="$withval/include" |
| 5924 | additional_libdir="$withval/lib" |
| 5925 | fi |
| 5926 | fi |
| 5927 | |
| 5928 | fi; |
| 5929 | LIBEXPAT= |
| 5930 | LTLIBEXPAT= |
| 5931 | INCEXPAT= |
| 5932 | rpathdirs= |
| 5933 | ltrpathdirs= |
| 5934 | names_already_handled= |
| 5935 | names_next_round='expat ' |
| 5936 | while test -n "$names_next_round"; do |
| 5937 | names_this_round="$names_next_round" |
| 5938 | names_next_round= |
| 5939 | for name in $names_this_round; do |
| 5940 | already_handled= |
| 5941 | for n in $names_already_handled; do |
| 5942 | if test "$n" = "$name"; then |
| 5943 | already_handled=yes |
| 5944 | break |
| 5945 | fi |
| 5946 | done |
| 5947 | if test -z "$already_handled"; then |
| 5948 | names_already_handled="$names_already_handled $name" |
| 5949 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 5950 | eval value=\"\$HAVE_LIB$uppername\" |
| 5951 | if test -n "$value"; then |
| 5952 | if test "$value" = yes; then |
| 5953 | eval value=\"\$LIB$uppername\" |
| 5954 | test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" |
| 5955 | eval value=\"\$LTLIB$uppername\" |
| 5956 | test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" |
| 5957 | else |
| 5958 | : |
| 5959 | fi |
| 5960 | else |
| 5961 | found_dir= |
| 5962 | found_la= |
| 5963 | found_so= |
| 5964 | found_a= |
| 5965 | if test $use_additional = yes; then |
| 5966 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 5967 | found_dir="$additional_libdir" |
| 5968 | found_so="$additional_libdir/lib$name.$shlibext" |
| 5969 | if test -f "$additional_libdir/lib$name.la"; then |
| 5970 | found_la="$additional_libdir/lib$name.la" |
| 5971 | fi |
| 5972 | else |
| 5973 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 5974 | found_dir="$additional_libdir" |
| 5975 | found_a="$additional_libdir/lib$name.$libext" |
| 5976 | if test -f "$additional_libdir/lib$name.la"; then |
| 5977 | found_la="$additional_libdir/lib$name.la" |
| 5978 | fi |
| 5979 | fi |
| 5980 | fi |
| 5981 | fi |
| 5982 | if test "X$found_dir" = "X"; then |
| 5983 | for x in $LDFLAGS $LTLIBEXPAT; do |
| 5984 | |
| 5985 | acl_save_prefix="$prefix" |
| 5986 | prefix="$acl_final_prefix" |
| 5987 | acl_save_exec_prefix="$exec_prefix" |
| 5988 | exec_prefix="$acl_final_exec_prefix" |
| 5989 | eval x=\"$x\" |
| 5990 | exec_prefix="$acl_save_exec_prefix" |
| 5991 | prefix="$acl_save_prefix" |
| 5992 | |
| 5993 | case "$x" in |
| 5994 | -L*) |
| 5995 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 5996 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 5997 | found_dir="$dir" |
| 5998 | found_so="$dir/lib$name.$shlibext" |
| 5999 | if test -f "$dir/lib$name.la"; then |
| 6000 | found_la="$dir/lib$name.la" |
| 6001 | fi |
| 6002 | else |
| 6003 | if test -f "$dir/lib$name.$libext"; then |
| 6004 | found_dir="$dir" |
| 6005 | found_a="$dir/lib$name.$libext" |
| 6006 | if test -f "$dir/lib$name.la"; then |
| 6007 | found_la="$dir/lib$name.la" |
| 6008 | fi |
| 6009 | fi |
| 6010 | fi |
| 6011 | ;; |
| 6012 | esac |
| 6013 | if test "X$found_dir" != "X"; then |
| 6014 | break |
| 6015 | fi |
| 6016 | done |
| 6017 | fi |
| 6018 | if test "X$found_dir" != "X"; then |
| 6019 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" |
| 6020 | if test "X$found_so" != "X"; then |
| 6021 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 6022 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 6023 | else |
| 6024 | haveit= |
| 6025 | for x in $ltrpathdirs; do |
| 6026 | if test "X$x" = "X$found_dir"; then |
| 6027 | haveit=yes |
| 6028 | break |
| 6029 | fi |
| 6030 | done |
| 6031 | if test -z "$haveit"; then |
| 6032 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 6033 | fi |
| 6034 | if test "$hardcode_direct" = yes; then |
| 6035 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 6036 | else |
| 6037 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 6038 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 6039 | haveit= |
| 6040 | for x in $rpathdirs; do |
| 6041 | if test "X$x" = "X$found_dir"; then |
| 6042 | haveit=yes |
| 6043 | break |
| 6044 | fi |
| 6045 | done |
| 6046 | if test -z "$haveit"; then |
| 6047 | rpathdirs="$rpathdirs $found_dir" |
| 6048 | fi |
| 6049 | else |
| 6050 | haveit= |
| 6051 | for x in $LDFLAGS $LIBEXPAT; do |
| 6052 | |
| 6053 | acl_save_prefix="$prefix" |
| 6054 | prefix="$acl_final_prefix" |
| 6055 | acl_save_exec_prefix="$exec_prefix" |
| 6056 | exec_prefix="$acl_final_exec_prefix" |
| 6057 | eval x=\"$x\" |
| 6058 | exec_prefix="$acl_save_exec_prefix" |
| 6059 | prefix="$acl_save_prefix" |
| 6060 | |
| 6061 | if test "X$x" = "X-L$found_dir"; then |
| 6062 | haveit=yes |
| 6063 | break |
| 6064 | fi |
| 6065 | done |
| 6066 | if test -z "$haveit"; then |
| 6067 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" |
| 6068 | fi |
| 6069 | if test "$hardcode_minus_L" != no; then |
| 6070 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 6071 | else |
| 6072 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" |
| 6073 | fi |
| 6074 | fi |
| 6075 | fi |
| 6076 | fi |
| 6077 | else |
| 6078 | if test "X$found_a" != "X"; then |
| 6079 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" |
| 6080 | else |
| 6081 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" |
| 6082 | fi |
| 6083 | fi |
| 6084 | additional_includedir= |
| 6085 | case "$found_dir" in |
| 6086 | */lib | */lib/) |
| 6087 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 6088 | additional_includedir="$basedir/include" |
| 6089 | ;; |
| 6090 | esac |
| 6091 | if test "X$additional_includedir" != "X"; then |
| 6092 | if test "X$additional_includedir" != "X/usr/include"; then |
| 6093 | haveit= |
| 6094 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 6095 | if test -n "$GCC"; then |
| 6096 | case $host_os in |
| 6097 | linux*) haveit=yes;; |
| 6098 | esac |
| 6099 | fi |
| 6100 | fi |
| 6101 | if test -z "$haveit"; then |
| 6102 | for x in $CPPFLAGS $INCEXPAT; do |
| 6103 | |
| 6104 | acl_save_prefix="$prefix" |
| 6105 | prefix="$acl_final_prefix" |
| 6106 | acl_save_exec_prefix="$exec_prefix" |
| 6107 | exec_prefix="$acl_final_exec_prefix" |
| 6108 | eval x=\"$x\" |
| 6109 | exec_prefix="$acl_save_exec_prefix" |
| 6110 | prefix="$acl_save_prefix" |
| 6111 | |
| 6112 | if test "X$x" = "X-I$additional_includedir"; then |
| 6113 | haveit=yes |
| 6114 | break |
| 6115 | fi |
| 6116 | done |
| 6117 | if test -z "$haveit"; then |
| 6118 | if test -d "$additional_includedir"; then |
| 6119 | INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" |
| 6120 | fi |
| 6121 | fi |
| 6122 | fi |
| 6123 | fi |
| 6124 | fi |
| 6125 | if test -n "$found_la"; then |
| 6126 | save_libdir="$libdir" |
| 6127 | case "$found_la" in |
| 6128 | */* | *\\*) . "$found_la" ;; |
| 6129 | *) . "./$found_la" ;; |
| 6130 | esac |
| 6131 | libdir="$save_libdir" |
| 6132 | for dep in $dependency_libs; do |
| 6133 | case "$dep" in |
| 6134 | -L*) |
| 6135 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 6136 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 6137 | haveit= |
| 6138 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 6139 | if test -n "$GCC"; then |
| 6140 | case $host_os in |
| 6141 | linux*) haveit=yes;; |
| 6142 | esac |
| 6143 | fi |
| 6144 | fi |
| 6145 | if test -z "$haveit"; then |
| 6146 | haveit= |
| 6147 | for x in $LDFLAGS $LIBEXPAT; do |
| 6148 | |
| 6149 | acl_save_prefix="$prefix" |
| 6150 | prefix="$acl_final_prefix" |
| 6151 | acl_save_exec_prefix="$exec_prefix" |
| 6152 | exec_prefix="$acl_final_exec_prefix" |
| 6153 | eval x=\"$x\" |
| 6154 | exec_prefix="$acl_save_exec_prefix" |
| 6155 | prefix="$acl_save_prefix" |
| 6156 | |
| 6157 | if test "X$x" = "X-L$additional_libdir"; then |
| 6158 | haveit=yes |
| 6159 | break |
| 6160 | fi |
| 6161 | done |
| 6162 | if test -z "$haveit"; then |
| 6163 | if test -d "$additional_libdir"; then |
| 6164 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" |
| 6165 | fi |
| 6166 | fi |
| 6167 | haveit= |
| 6168 | for x in $LDFLAGS $LTLIBEXPAT; do |
| 6169 | |
| 6170 | acl_save_prefix="$prefix" |
| 6171 | prefix="$acl_final_prefix" |
| 6172 | acl_save_exec_prefix="$exec_prefix" |
| 6173 | exec_prefix="$acl_final_exec_prefix" |
| 6174 | eval x=\"$x\" |
| 6175 | exec_prefix="$acl_save_exec_prefix" |
| 6176 | prefix="$acl_save_prefix" |
| 6177 | |
| 6178 | if test "X$x" = "X-L$additional_libdir"; then |
| 6179 | haveit=yes |
| 6180 | break |
| 6181 | fi |
| 6182 | done |
| 6183 | if test -z "$haveit"; then |
| 6184 | if test -d "$additional_libdir"; then |
| 6185 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" |
| 6186 | fi |
| 6187 | fi |
| 6188 | fi |
| 6189 | fi |
| 6190 | ;; |
| 6191 | -R*) |
| 6192 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 6193 | if test "$enable_rpath" != no; then |
| 6194 | haveit= |
| 6195 | for x in $rpathdirs; do |
| 6196 | if test "X$x" = "X$dir"; then |
| 6197 | haveit=yes |
| 6198 | break |
| 6199 | fi |
| 6200 | done |
| 6201 | if test -z "$haveit"; then |
| 6202 | rpathdirs="$rpathdirs $dir" |
| 6203 | fi |
| 6204 | haveit= |
| 6205 | for x in $ltrpathdirs; do |
| 6206 | if test "X$x" = "X$dir"; then |
| 6207 | haveit=yes |
| 6208 | break |
| 6209 | fi |
| 6210 | done |
| 6211 | if test -z "$haveit"; then |
| 6212 | ltrpathdirs="$ltrpathdirs $dir" |
| 6213 | fi |
| 6214 | fi |
| 6215 | ;; |
| 6216 | -l*) |
| 6217 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 6218 | ;; |
| 6219 | *.la) |
| 6220 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 6221 | ;; |
| 6222 | *) |
| 6223 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" |
| 6224 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" |
| 6225 | ;; |
| 6226 | esac |
| 6227 | done |
| 6228 | fi |
| 6229 | else |
| 6230 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" |
| 6231 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" |
| 6232 | fi |
| 6233 | fi |
| 6234 | fi |
| 6235 | done |
| 6236 | done |
| 6237 | if test "X$rpathdirs" != "X"; then |
| 6238 | if test -n "$hardcode_libdir_separator"; then |
| 6239 | alldirs= |
| 6240 | for found_dir in $rpathdirs; do |
| 6241 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 6242 | done |
| 6243 | acl_save_libdir="$libdir" |
| 6244 | libdir="$alldirs" |
| 6245 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 6246 | libdir="$acl_save_libdir" |
| 6247 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" |
| 6248 | else |
| 6249 | for found_dir in $rpathdirs; do |
| 6250 | acl_save_libdir="$libdir" |
| 6251 | libdir="$found_dir" |
| 6252 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 6253 | libdir="$acl_save_libdir" |
| 6254 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" |
| 6255 | done |
| 6256 | fi |
| 6257 | fi |
| 6258 | if test "X$ltrpathdirs" != "X"; then |
| 6259 | for found_dir in $ltrpathdirs; do |
| 6260 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" |
| 6261 | done |
| 6262 | fi |
| 6263 | |
| 6264 | |
| 6265 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 6266 | |
| 6267 | for element in $INCEXPAT; do |
| 6268 | haveit= |
| 6269 | for x in $CPPFLAGS; do |
| 6270 | |
| 6271 | acl_save_prefix="$prefix" |
| 6272 | prefix="$acl_final_prefix" |
| 6273 | acl_save_exec_prefix="$exec_prefix" |
| 6274 | exec_prefix="$acl_final_exec_prefix" |
| 6275 | eval x=\"$x\" |
| 6276 | exec_prefix="$acl_save_exec_prefix" |
| 6277 | prefix="$acl_save_prefix" |
| 6278 | |
| 6279 | if test "X$x" = "X$element"; then |
| 6280 | haveit=yes |
| 6281 | break |
| 6282 | fi |
| 6283 | done |
| 6284 | if test -z "$haveit"; then |
| 6285 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 6286 | fi |
| 6287 | done |
| 6288 | |
| 6289 | |
| 6290 | echo "$as_me:$LINENO: checking for libexpat" >&5 |
| 6291 | echo $ECHO_N "checking for libexpat... $ECHO_C" >&6 |
| 6292 | if test "${ac_cv_libexpat+set}" = set; then |
| 6293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6294 | else |
| 6295 | |
| 6296 | ac_save_LIBS="$LIBS" |
| 6297 | LIBS="$LIBS $LIBEXPAT" |
| 6298 | cat >conftest.$ac_ext <<_ACEOF |
| 6299 | /* confdefs.h. */ |
| 6300 | _ACEOF |
| 6301 | cat confdefs.h >>conftest.$ac_ext |
| 6302 | cat >>conftest.$ac_ext <<_ACEOF |
| 6303 | /* end confdefs.h. */ |
| 6304 | #include "expat.h" |
| 6305 | int |
| 6306 | main () |
| 6307 | { |
| 6308 | XML_Parser p = XML_ParserCreate (0); |
| 6309 | ; |
| 6310 | return 0; |
| 6311 | } |
| 6312 | _ACEOF |
| 6313 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6315 | (eval $ac_link) 2>conftest.er1 |
| 6316 | ac_status=$? |
| 6317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6318 | rm -f conftest.er1 |
| 6319 | cat conftest.err >&5 |
| 6320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6321 | (exit $ac_status); } && |
| 6322 | { ac_try='test -z "$ac_c_werror_flag" |
| 6323 | || test ! -s conftest.err' |
| 6324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6325 | (eval $ac_try) 2>&5 |
| 6326 | ac_status=$? |
| 6327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6328 | (exit $ac_status); }; } && |
| 6329 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 6335 | ac_cv_libexpat=yes |
| 6336 | else |
| 6337 | echo "$as_me: failed program was:" >&5 |
| 6338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6339 | |
| 6340 | ac_cv_libexpat=no |
| 6341 | fi |
| 6342 | rm -f conftest.err conftest.$ac_objext \ |
| 6343 | conftest$ac_exeext conftest.$ac_ext |
| 6344 | LIBS="$ac_save_LIBS" |
| 6345 | |
| 6346 | fi |
| 6347 | echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5 |
| 6348 | echo "${ECHO_T}$ac_cv_libexpat" >&6 |
| 6349 | if test "$ac_cv_libexpat" = yes; then |
| 6350 | HAVE_LIBEXPAT=yes |
| 6351 | |
| 6352 | cat >>confdefs.h <<\_ACEOF |
| 6353 | #define HAVE_LIBEXPAT 1 |
| 6354 | _ACEOF |
| 6355 | |
| 6356 | echo "$as_me:$LINENO: checking how to link with libexpat" >&5 |
| 6357 | echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6 |
| 6358 | echo "$as_me:$LINENO: result: $LIBEXPAT" >&5 |
| 6359 | echo "${ECHO_T}$LIBEXPAT" >&6 |
| 6360 | else |
| 6361 | HAVE_LIBEXPAT=no |
| 6362 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 6363 | LIBEXPAT= |
| 6364 | LTLIBEXPAT= |
| 6365 | fi |
| 6366 | |
| 6367 | |
| 6368 | |
| 6369 | |
| 6370 | |
| 6371 | |
| 6372 | if test "$HAVE_LIBEXPAT" != yes; then |
| 6373 | { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be disabled." >&5 |
| 6374 | echo "$as_me: WARNING: expat is missing or unusable; some features may be disabled." >&2;} |
| 6375 | else |
| 6376 | save_LIBS=$LIBS |
| 6377 | LIBS="$LIBS $LIBEXPAT" |
| 6378 | |
| 6379 | for ac_func in XML_StopParser |
| 6380 | do |
| 6381 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6382 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6383 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6384 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6386 | else |
| 6387 | cat >conftest.$ac_ext <<_ACEOF |
| 6388 | /* confdefs.h. */ |
| 6389 | _ACEOF |
| 6390 | cat confdefs.h >>conftest.$ac_ext |
| 6391 | cat >>conftest.$ac_ext <<_ACEOF |
| 6392 | /* end confdefs.h. */ |
| 6393 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6394 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6395 | #define $ac_func innocuous_$ac_func |
| 6396 | |
| 6397 | /* System header to define __stub macros and hopefully few prototypes, |
| 6398 | which can conflict with char $ac_func (); below. |
| 6399 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6400 | <limits.h> exists even on freestanding compilers. */ |
| 6401 | |
| 6402 | #ifdef __STDC__ |
| 6403 | # include <limits.h> |
| 6404 | #else |
| 6405 | # include <assert.h> |
| 6406 | #endif |
| 6407 | |
| 6408 | #undef $ac_func |
| 6409 | |
| 6410 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6411 | #ifdef __cplusplus |
| 6412 | extern "C" |
| 6413 | { |
| 6414 | #endif |
| 6415 | /* We use char because int might match the return type of a gcc2 |
| 6416 | builtin and then its argument prototype would still apply. */ |
| 6417 | char $ac_func (); |
| 6418 | /* The GNU C library defines this for functions which it implements |
| 6419 | to always fail with ENOSYS. Some functions are actually named |
| 6420 | something starting with __ and the normal name is an alias. */ |
| 6421 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6422 | choke me |
| 6423 | #else |
| 6424 | char (*f) () = $ac_func; |
| 6425 | #endif |
| 6426 | #ifdef __cplusplus |
| 6427 | } |
| 6428 | #endif |
| 6429 | |
| 6430 | int |
| 6431 | main () |
| 6432 | { |
| 6433 | return f != $ac_func; |
| 6434 | ; |
| 6435 | return 0; |
| 6436 | } |
| 6437 | _ACEOF |
| 6438 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6440 | (eval $ac_link) 2>conftest.er1 |
| 6441 | ac_status=$? |
| 6442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6443 | rm -f conftest.er1 |
| 6444 | cat conftest.err >&5 |
| 6445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6446 | (exit $ac_status); } && |
| 6447 | { ac_try='test -z "$ac_c_werror_flag" |
| 6448 | || test ! -s conftest.err' |
| 6449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6450 | (eval $ac_try) 2>&5 |
| 6451 | ac_status=$? |
| 6452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6453 | (exit $ac_status); }; } && |
| 6454 | { ac_try='test -s conftest$ac_exeext' |
| 6455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6456 | (eval $ac_try) 2>&5 |
| 6457 | ac_status=$? |
| 6458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6459 | (exit $ac_status); }; }; then |
| 6460 | eval "$as_ac_var=yes" |
| 6461 | else |
| 6462 | echo "$as_me: failed program was:" >&5 |
| 6463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6464 | |
| 6465 | eval "$as_ac_var=no" |
| 6466 | fi |
| 6467 | rm -f conftest.err conftest.$ac_objext \ |
| 6468 | conftest$ac_exeext conftest.$ac_ext |
| 6469 | fi |
| 6470 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 6471 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6472 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6473 | cat >>confdefs.h <<_ACEOF |
| 6474 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6475 | _ACEOF |
| 6476 | |
| 6477 | fi |
| 6478 | done |
| 6479 | |
| 6480 | LIBS=$save_LIBS |
| 6481 | fi |
| 6482 | |
| 6483 | # ------------------------- # |
| 6484 | # Checks for header files. # |
| 6485 | # ------------------------- # |
| 6486 | |
| 6487 | |
| 6488 | |
| 6489 | |
| 6490 | |
| 6491 | |
| 6492 | ac_header_dirent=no |
| 6493 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 6494 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 6495 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 6496 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 6497 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6499 | else |
| 6500 | cat >conftest.$ac_ext <<_ACEOF |
| 6501 | /* confdefs.h. */ |
| 6502 | _ACEOF |
| 6503 | cat confdefs.h >>conftest.$ac_ext |
| 6504 | cat >>conftest.$ac_ext <<_ACEOF |
| 6505 | /* end confdefs.h. */ |
| 6506 | #include <sys/types.h> |
| 6507 | #include <$ac_hdr> |
| 6508 | |
| 6509 | int |
| 6510 | main () |
| 6511 | { |
| 6512 | if ((DIR *) 0) |
| 6513 | return 0; |
| 6514 | ; |
| 6515 | return 0; |
| 6516 | } |
| 6517 | _ACEOF |
| 6518 | rm -f conftest.$ac_objext |
| 6519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6520 | (eval $ac_compile) 2>conftest.er1 |
| 6521 | ac_status=$? |
| 6522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6523 | rm -f conftest.er1 |
| 6524 | cat conftest.err >&5 |
| 6525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6526 | (exit $ac_status); } && |
| 6527 | { ac_try='test -z "$ac_c_werror_flag" |
| 6528 | || test ! -s conftest.err' |
| 6529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6530 | (eval $ac_try) 2>&5 |
| 6531 | ac_status=$? |
| 6532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6533 | (exit $ac_status); }; } && |
| 6534 | { ac_try='test -s conftest.$ac_objext' |
| 6535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6536 | (eval $ac_try) 2>&5 |
| 6537 | ac_status=$? |
| 6538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6539 | (exit $ac_status); }; }; then |
| 6540 | eval "$as_ac_Header=yes" |
| 6541 | else |
| 6542 | echo "$as_me: failed program was:" >&5 |
| 6543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6544 | |
| 6545 | eval "$as_ac_Header=no" |
| 6546 | fi |
| 6547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6548 | fi |
| 6549 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6550 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6551 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6552 | cat >>confdefs.h <<_ACEOF |
| 6553 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 6554 | _ACEOF |
| 6555 | |
| 6556 | ac_header_dirent=$ac_hdr; break |
| 6557 | fi |
| 6558 | |
| 6559 | done |
| 6560 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 6561 | if test $ac_header_dirent = dirent.h; then |
| 6562 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6563 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 6564 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6566 | else |
| 6567 | ac_func_search_save_LIBS=$LIBS |
| 6568 | ac_cv_search_opendir=no |
| 6569 | cat >conftest.$ac_ext <<_ACEOF |
| 6570 | /* confdefs.h. */ |
| 6571 | _ACEOF |
| 6572 | cat confdefs.h >>conftest.$ac_ext |
| 6573 | cat >>conftest.$ac_ext <<_ACEOF |
| 6574 | /* end confdefs.h. */ |
| 6575 | |
| 6576 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6577 | #ifdef __cplusplus |
| 6578 | extern "C" |
| 6579 | #endif |
| 6580 | /* We use char because int might match the return type of a gcc2 |
| 6581 | builtin and then its argument prototype would still apply. */ |
| 6582 | char opendir (); |
| 6583 | int |
| 6584 | main () |
| 6585 | { |
| 6586 | opendir (); |
| 6587 | ; |
| 6588 | return 0; |
| 6589 | } |
| 6590 | _ACEOF |
| 6591 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6593 | (eval $ac_link) 2>conftest.er1 |
| 6594 | ac_status=$? |
| 6595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6596 | rm -f conftest.er1 |
| 6597 | cat conftest.err >&5 |
| 6598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6599 | (exit $ac_status); } && |
| 6600 | { ac_try='test -z "$ac_c_werror_flag" |
| 6601 | || test ! -s conftest.err' |
| 6602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6603 | (eval $ac_try) 2>&5 |
| 6604 | ac_status=$? |
| 6605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6606 | (exit $ac_status); }; } && |
| 6607 | { ac_try='test -s conftest$ac_exeext' |
| 6608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6609 | (eval $ac_try) 2>&5 |
| 6610 | ac_status=$? |
| 6611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6612 | (exit $ac_status); }; }; then |
| 6613 | ac_cv_search_opendir="none required" |
| 6614 | else |
| 6615 | echo "$as_me: failed program was:" >&5 |
| 6616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6617 | |
| 6618 | fi |
| 6619 | rm -f conftest.err conftest.$ac_objext \ |
| 6620 | conftest$ac_exeext conftest.$ac_ext |
| 6621 | if test "$ac_cv_search_opendir" = no; then |
| 6622 | for ac_lib in dir; do |
| 6623 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6624 | cat >conftest.$ac_ext <<_ACEOF |
| 6625 | /* confdefs.h. */ |
| 6626 | _ACEOF |
| 6627 | cat confdefs.h >>conftest.$ac_ext |
| 6628 | cat >>conftest.$ac_ext <<_ACEOF |
| 6629 | /* end confdefs.h. */ |
| 6630 | |
| 6631 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6632 | #ifdef __cplusplus |
| 6633 | extern "C" |
| 6634 | #endif |
| 6635 | /* We use char because int might match the return type of a gcc2 |
| 6636 | builtin and then its argument prototype would still apply. */ |
| 6637 | char opendir (); |
| 6638 | int |
| 6639 | main () |
| 6640 | { |
| 6641 | opendir (); |
| 6642 | ; |
| 6643 | return 0; |
| 6644 | } |
| 6645 | _ACEOF |
| 6646 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6648 | (eval $ac_link) 2>conftest.er1 |
| 6649 | ac_status=$? |
| 6650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6651 | rm -f conftest.er1 |
| 6652 | cat conftest.err >&5 |
| 6653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6654 | (exit $ac_status); } && |
| 6655 | { ac_try='test -z "$ac_c_werror_flag" |
| 6656 | || test ! -s conftest.err' |
| 6657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6658 | (eval $ac_try) 2>&5 |
| 6659 | ac_status=$? |
| 6660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6661 | (exit $ac_status); }; } && |
| 6662 | { ac_try='test -s conftest$ac_exeext' |
| 6663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6664 | (eval $ac_try) 2>&5 |
| 6665 | ac_status=$? |
| 6666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6667 | (exit $ac_status); }; }; then |
| 6668 | ac_cv_search_opendir="-l$ac_lib" |
| 6669 | break |
| 6670 | else |
| 6671 | echo "$as_me: failed program was:" >&5 |
| 6672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6673 | |
| 6674 | fi |
| 6675 | rm -f conftest.err conftest.$ac_objext \ |
| 6676 | conftest$ac_exeext conftest.$ac_ext |
| 6677 | done |
| 6678 | fi |
| 6679 | LIBS=$ac_func_search_save_LIBS |
| 6680 | fi |
| 6681 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6682 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 6683 | if test "$ac_cv_search_opendir" != no; then |
| 6684 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 6685 | |
| 6686 | fi |
| 6687 | |
| 6688 | else |
| 6689 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 6690 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 6691 | if test "${ac_cv_search_opendir+set}" = set; then |
| 6692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6693 | else |
| 6694 | ac_func_search_save_LIBS=$LIBS |
| 6695 | ac_cv_search_opendir=no |
| 6696 | cat >conftest.$ac_ext <<_ACEOF |
| 6697 | /* confdefs.h. */ |
| 6698 | _ACEOF |
| 6699 | cat confdefs.h >>conftest.$ac_ext |
| 6700 | cat >>conftest.$ac_ext <<_ACEOF |
| 6701 | /* end confdefs.h. */ |
| 6702 | |
| 6703 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6704 | #ifdef __cplusplus |
| 6705 | extern "C" |
| 6706 | #endif |
| 6707 | /* We use char because int might match the return type of a gcc2 |
| 6708 | builtin and then its argument prototype would still apply. */ |
| 6709 | char opendir (); |
| 6710 | int |
| 6711 | main () |
| 6712 | { |
| 6713 | opendir (); |
| 6714 | ; |
| 6715 | return 0; |
| 6716 | } |
| 6717 | _ACEOF |
| 6718 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6720 | (eval $ac_link) 2>conftest.er1 |
| 6721 | ac_status=$? |
| 6722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6723 | rm -f conftest.er1 |
| 6724 | cat conftest.err >&5 |
| 6725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6726 | (exit $ac_status); } && |
| 6727 | { ac_try='test -z "$ac_c_werror_flag" |
| 6728 | || test ! -s conftest.err' |
| 6729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6730 | (eval $ac_try) 2>&5 |
| 6731 | ac_status=$? |
| 6732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6733 | (exit $ac_status); }; } && |
| 6734 | { ac_try='test -s conftest$ac_exeext' |
| 6735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6736 | (eval $ac_try) 2>&5 |
| 6737 | ac_status=$? |
| 6738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6739 | (exit $ac_status); }; }; then |
| 6740 | ac_cv_search_opendir="none required" |
| 6741 | else |
| 6742 | echo "$as_me: failed program was:" >&5 |
| 6743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6744 | |
| 6745 | fi |
| 6746 | rm -f conftest.err conftest.$ac_objext \ |
| 6747 | conftest$ac_exeext conftest.$ac_ext |
| 6748 | if test "$ac_cv_search_opendir" = no; then |
| 6749 | for ac_lib in x; do |
| 6750 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 6751 | cat >conftest.$ac_ext <<_ACEOF |
| 6752 | /* confdefs.h. */ |
| 6753 | _ACEOF |
| 6754 | cat confdefs.h >>conftest.$ac_ext |
| 6755 | cat >>conftest.$ac_ext <<_ACEOF |
| 6756 | /* end confdefs.h. */ |
| 6757 | |
| 6758 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6759 | #ifdef __cplusplus |
| 6760 | extern "C" |
| 6761 | #endif |
| 6762 | /* We use char because int might match the return type of a gcc2 |
| 6763 | builtin and then its argument prototype would still apply. */ |
| 6764 | char opendir (); |
| 6765 | int |
| 6766 | main () |
| 6767 | { |
| 6768 | opendir (); |
| 6769 | ; |
| 6770 | return 0; |
| 6771 | } |
| 6772 | _ACEOF |
| 6773 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6775 | (eval $ac_link) 2>conftest.er1 |
| 6776 | ac_status=$? |
| 6777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6778 | rm -f conftest.er1 |
| 6779 | cat conftest.err >&5 |
| 6780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6781 | (exit $ac_status); } && |
| 6782 | { ac_try='test -z "$ac_c_werror_flag" |
| 6783 | || test ! -s conftest.err' |
| 6784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6785 | (eval $ac_try) 2>&5 |
| 6786 | ac_status=$? |
| 6787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6788 | (exit $ac_status); }; } && |
| 6789 | { ac_try='test -s conftest$ac_exeext' |
| 6790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6791 | (eval $ac_try) 2>&5 |
| 6792 | ac_status=$? |
| 6793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6794 | (exit $ac_status); }; }; then |
| 6795 | ac_cv_search_opendir="-l$ac_lib" |
| 6796 | break |
| 6797 | else |
| 6798 | echo "$as_me: failed program was:" >&5 |
| 6799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6800 | |
| 6801 | fi |
| 6802 | rm -f conftest.err conftest.$ac_objext \ |
| 6803 | conftest$ac_exeext conftest.$ac_ext |
| 6804 | done |
| 6805 | fi |
| 6806 | LIBS=$ac_func_search_save_LIBS |
| 6807 | fi |
| 6808 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 6809 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 6810 | if test "$ac_cv_search_opendir" != no; then |
| 6811 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 6812 | |
| 6813 | fi |
| 6814 | |
| 6815 | fi |
| 6816 | |
| 6817 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 6818 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 6819 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 6820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6821 | else |
| 6822 | cat >conftest.$ac_ext <<_ACEOF |
| 6823 | /* confdefs.h. */ |
| 6824 | _ACEOF |
| 6825 | cat confdefs.h >>conftest.$ac_ext |
| 6826 | cat >>conftest.$ac_ext <<_ACEOF |
| 6827 | /* end confdefs.h. */ |
| 6828 | #include <sys/types.h> |
| 6829 | #include <sys/stat.h> |
| 6830 | |
| 6831 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 6832 | # if S_ISBLK (S_IFDIR) |
| 6833 | You lose. |
| 6834 | # endif |
| 6835 | #endif |
| 6836 | |
| 6837 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 6838 | # if S_ISBLK (S_IFCHR) |
| 6839 | You lose. |
| 6840 | # endif |
| 6841 | #endif |
| 6842 | |
| 6843 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 6844 | # if S_ISLNK (S_IFREG) |
| 6845 | You lose. |
| 6846 | # endif |
| 6847 | #endif |
| 6848 | |
| 6849 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 6850 | # if S_ISSOCK (S_IFREG) |
| 6851 | You lose. |
| 6852 | # endif |
| 6853 | #endif |
| 6854 | |
| 6855 | _ACEOF |
| 6856 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6857 | $EGREP "You lose" >/dev/null 2>&1; then |
| 6858 | ac_cv_header_stat_broken=yes |
| 6859 | else |
| 6860 | ac_cv_header_stat_broken=no |
| 6861 | fi |
| 6862 | rm -f conftest* |
| 6863 | |
| 6864 | fi |
| 6865 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 6866 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
| 6867 | if test $ac_cv_header_stat_broken = yes; then |
| 6868 | |
| 6869 | cat >>confdefs.h <<\_ACEOF |
| 6870 | #define STAT_MACROS_BROKEN 1 |
| 6871 | _ACEOF |
| 6872 | |
| 6873 | fi |
| 6874 | |
| 6875 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 6876 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 6877 | if test "${ac_cv_header_stdc+set}" = set; then |
| 6878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6879 | else |
| 6880 | cat >conftest.$ac_ext <<_ACEOF |
| 6881 | /* confdefs.h. */ |
| 6882 | _ACEOF |
| 6883 | cat confdefs.h >>conftest.$ac_ext |
| 6884 | cat >>conftest.$ac_ext <<_ACEOF |
| 6885 | /* end confdefs.h. */ |
| 6886 | #include <stdlib.h> |
| 6887 | #include <stdarg.h> |
| 6888 | #include <string.h> |
| 6889 | #include <float.h> |
| 6890 | |
| 6891 | int |
| 6892 | main () |
| 6893 | { |
| 6894 | |
| 6895 | ; |
| 6896 | return 0; |
| 6897 | } |
| 6898 | _ACEOF |
| 6899 | rm -f conftest.$ac_objext |
| 6900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6901 | (eval $ac_compile) 2>conftest.er1 |
| 6902 | ac_status=$? |
| 6903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6904 | rm -f conftest.er1 |
| 6905 | cat conftest.err >&5 |
| 6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6907 | (exit $ac_status); } && |
| 6908 | { ac_try='test -z "$ac_c_werror_flag" |
| 6909 | || test ! -s conftest.err' |
| 6910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6911 | (eval $ac_try) 2>&5 |
| 6912 | ac_status=$? |
| 6913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6914 | (exit $ac_status); }; } && |
| 6915 | { ac_try='test -s conftest.$ac_objext' |
| 6916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6917 | (eval $ac_try) 2>&5 |
| 6918 | ac_status=$? |
| 6919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6920 | (exit $ac_status); }; }; then |
| 6921 | ac_cv_header_stdc=yes |
| 6922 | else |
| 6923 | echo "$as_me: failed program was:" >&5 |
| 6924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6925 | |
| 6926 | ac_cv_header_stdc=no |
| 6927 | fi |
| 6928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6929 | |
| 6930 | if test $ac_cv_header_stdc = yes; then |
| 6931 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6932 | cat >conftest.$ac_ext <<_ACEOF |
| 6933 | /* confdefs.h. */ |
| 6934 | _ACEOF |
| 6935 | cat confdefs.h >>conftest.$ac_ext |
| 6936 | cat >>conftest.$ac_ext <<_ACEOF |
| 6937 | /* end confdefs.h. */ |
| 6938 | #include <string.h> |
| 6939 | |
| 6940 | _ACEOF |
| 6941 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6942 | $EGREP "memchr" >/dev/null 2>&1; then |
| 6943 | : |
| 6944 | else |
| 6945 | ac_cv_header_stdc=no |
| 6946 | fi |
| 6947 | rm -f conftest* |
| 6948 | |
| 6949 | fi |
| 6950 | |
| 6951 | if test $ac_cv_header_stdc = yes; then |
| 6952 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6953 | cat >conftest.$ac_ext <<_ACEOF |
| 6954 | /* confdefs.h. */ |
| 6955 | _ACEOF |
| 6956 | cat confdefs.h >>conftest.$ac_ext |
| 6957 | cat >>conftest.$ac_ext <<_ACEOF |
| 6958 | /* end confdefs.h. */ |
| 6959 | #include <stdlib.h> |
| 6960 | |
| 6961 | _ACEOF |
| 6962 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6963 | $EGREP "free" >/dev/null 2>&1; then |
| 6964 | : |
| 6965 | else |
| 6966 | ac_cv_header_stdc=no |
| 6967 | fi |
| 6968 | rm -f conftest* |
| 6969 | |
| 6970 | fi |
| 6971 | |
| 6972 | if test $ac_cv_header_stdc = yes; then |
| 6973 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6974 | if test "$cross_compiling" = yes; then |
| 6975 | : |
| 6976 | else |
| 6977 | cat >conftest.$ac_ext <<_ACEOF |
| 6978 | /* confdefs.h. */ |
| 6979 | _ACEOF |
| 6980 | cat confdefs.h >>conftest.$ac_ext |
| 6981 | cat >>conftest.$ac_ext <<_ACEOF |
| 6982 | /* end confdefs.h. */ |
| 6983 | #include <ctype.h> |
| 6984 | #if ((' ' & 0x0FF) == 0x020) |
| 6985 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6986 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6987 | #else |
| 6988 | # define ISLOWER(c) \ |
| 6989 | (('a' <= (c) && (c) <= 'i') \ |
| 6990 | || ('j' <= (c) && (c) <= 'r') \ |
| 6991 | || ('s' <= (c) && (c) <= 'z')) |
| 6992 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6993 | #endif |
| 6994 | |
| 6995 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6996 | int |
| 6997 | main () |
| 6998 | { |
| 6999 | int i; |
| 7000 | for (i = 0; i < 256; i++) |
| 7001 | if (XOR (islower (i), ISLOWER (i)) |
| 7002 | || toupper (i) != TOUPPER (i)) |
| 7003 | exit(2); |
| 7004 | exit (0); |
| 7005 | } |
| 7006 | _ACEOF |
| 7007 | rm -f conftest$ac_exeext |
| 7008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7009 | (eval $ac_link) 2>&5 |
| 7010 | ac_status=$? |
| 7011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7012 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7014 | (eval $ac_try) 2>&5 |
| 7015 | ac_status=$? |
| 7016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7017 | (exit $ac_status); }; }; then |
| 7018 | : |
| 7019 | else |
| 7020 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7021 | echo "$as_me: failed program was:" >&5 |
| 7022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7023 | |
| 7024 | ( exit $ac_status ) |
| 7025 | ac_cv_header_stdc=no |
| 7026 | fi |
| 7027 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7028 | fi |
| 7029 | fi |
| 7030 | fi |
| 7031 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 7032 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 7033 | if test $ac_cv_header_stdc = yes; then |
| 7034 | |
| 7035 | cat >>confdefs.h <<\_ACEOF |
| 7036 | #define STDC_HEADERS 1 |
| 7037 | _ACEOF |
| 7038 | |
| 7039 | fi |
| 7040 | |
| 7041 | |
| 7042 | for ac_header in nlist.h |
| 7043 | do |
| 7044 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7045 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7046 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7047 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7048 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7050 | fi |
| 7051 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7052 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7053 | else |
| 7054 | # Is the header compilable? |
| 7055 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7056 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7057 | cat >conftest.$ac_ext <<_ACEOF |
| 7058 | /* confdefs.h. */ |
| 7059 | _ACEOF |
| 7060 | cat confdefs.h >>conftest.$ac_ext |
| 7061 | cat >>conftest.$ac_ext <<_ACEOF |
| 7062 | /* end confdefs.h. */ |
| 7063 | $ac_includes_default |
| 7064 | #include <$ac_header> |
| 7065 | _ACEOF |
| 7066 | rm -f conftest.$ac_objext |
| 7067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7068 | (eval $ac_compile) 2>conftest.er1 |
| 7069 | ac_status=$? |
| 7070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7071 | rm -f conftest.er1 |
| 7072 | cat conftest.err >&5 |
| 7073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7074 | (exit $ac_status); } && |
| 7075 | { ac_try='test -z "$ac_c_werror_flag" |
| 7076 | || test ! -s conftest.err' |
| 7077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7078 | (eval $ac_try) 2>&5 |
| 7079 | ac_status=$? |
| 7080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7081 | (exit $ac_status); }; } && |
| 7082 | { ac_try='test -s conftest.$ac_objext' |
| 7083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7084 | (eval $ac_try) 2>&5 |
| 7085 | ac_status=$? |
| 7086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7087 | (exit $ac_status); }; }; then |
| 7088 | ac_header_compiler=yes |
| 7089 | else |
| 7090 | echo "$as_me: failed program was:" >&5 |
| 7091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7092 | |
| 7093 | ac_header_compiler=no |
| 7094 | fi |
| 7095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7096 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7097 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7098 | |
| 7099 | # Is the header present? |
| 7100 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7101 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7102 | cat >conftest.$ac_ext <<_ACEOF |
| 7103 | /* confdefs.h. */ |
| 7104 | _ACEOF |
| 7105 | cat confdefs.h >>conftest.$ac_ext |
| 7106 | cat >>conftest.$ac_ext <<_ACEOF |
| 7107 | /* end confdefs.h. */ |
| 7108 | #include <$ac_header> |
| 7109 | _ACEOF |
| 7110 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7111 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7112 | ac_status=$? |
| 7113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7114 | rm -f conftest.er1 |
| 7115 | cat conftest.err >&5 |
| 7116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7117 | (exit $ac_status); } >/dev/null; then |
| 7118 | if test -s conftest.err; then |
| 7119 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7120 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7121 | else |
| 7122 | ac_cpp_err= |
| 7123 | fi |
| 7124 | else |
| 7125 | ac_cpp_err=yes |
| 7126 | fi |
| 7127 | if test -z "$ac_cpp_err"; then |
| 7128 | ac_header_preproc=yes |
| 7129 | else |
| 7130 | echo "$as_me: failed program was:" >&5 |
| 7131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7132 | |
| 7133 | ac_header_preproc=no |
| 7134 | fi |
| 7135 | rm -f conftest.err conftest.$ac_ext |
| 7136 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7137 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7138 | |
| 7139 | # So? What about this header? |
| 7140 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7141 | yes:no: ) |
| 7142 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7143 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7144 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7145 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7146 | ac_header_preproc=yes |
| 7147 | ;; |
| 7148 | no:yes:* ) |
| 7149 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7150 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7151 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7152 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7153 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7154 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7155 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7156 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7158 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7159 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7160 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7161 | ( |
| 7162 | cat <<\_ASBOX |
| 7163 | ## ------------------------------------------ ## |
| 7164 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 7165 | ## ------------------------------------------ ## |
| 7166 | _ASBOX |
| 7167 | ) | |
| 7168 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7169 | ;; |
| 7170 | esac |
| 7171 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7173 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7175 | else |
| 7176 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7177 | fi |
| 7178 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7179 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7180 | |
| 7181 | fi |
| 7182 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7183 | cat >>confdefs.h <<_ACEOF |
| 7184 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7185 | _ACEOF |
| 7186 | |
| 7187 | fi |
| 7188 | |
| 7189 | done |
| 7190 | |
| 7191 | |
| 7192 | for ac_header in link.h |
| 7193 | do |
| 7194 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7195 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7197 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7199 | else |
| 7200 | cat >conftest.$ac_ext <<_ACEOF |
| 7201 | /* confdefs.h. */ |
| 7202 | _ACEOF |
| 7203 | cat confdefs.h >>conftest.$ac_ext |
| 7204 | cat >>conftest.$ac_ext <<_ACEOF |
| 7205 | /* end confdefs.h. */ |
| 7206 | #if HAVE_SYS_TYPES_H |
| 7207 | # include <sys/types.h> |
| 7208 | #endif |
| 7209 | #if HAVE_NLIST_H |
| 7210 | # include <nlist.h> |
| 7211 | #endif |
| 7212 | |
| 7213 | |
| 7214 | #include <$ac_header> |
| 7215 | _ACEOF |
| 7216 | rm -f conftest.$ac_objext |
| 7217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7218 | (eval $ac_compile) 2>conftest.er1 |
| 7219 | ac_status=$? |
| 7220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7221 | rm -f conftest.er1 |
| 7222 | cat conftest.err >&5 |
| 7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7224 | (exit $ac_status); } && |
| 7225 | { ac_try='test -z "$ac_c_werror_flag" |
| 7226 | || test ! -s conftest.err' |
| 7227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7228 | (eval $ac_try) 2>&5 |
| 7229 | ac_status=$? |
| 7230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7231 | (exit $ac_status); }; } && |
| 7232 | { ac_try='test -s conftest.$ac_objext' |
| 7233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7234 | (eval $ac_try) 2>&5 |
| 7235 | ac_status=$? |
| 7236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7237 | (exit $ac_status); }; }; then |
| 7238 | eval "$as_ac_Header=yes" |
| 7239 | else |
| 7240 | echo "$as_me: failed program was:" >&5 |
| 7241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7242 | |
| 7243 | eval "$as_ac_Header=no" |
| 7244 | fi |
| 7245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7246 | fi |
| 7247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7248 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7249 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7250 | cat >>confdefs.h <<_ACEOF |
| 7251 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7252 | _ACEOF |
| 7253 | |
| 7254 | fi |
| 7255 | |
| 7256 | done |
| 7257 | |
| 7258 | |
| 7259 | for ac_header in machine/reg.h |
| 7260 | do |
| 7261 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7262 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7263 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7264 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7265 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7267 | fi |
| 7268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7269 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7270 | else |
| 7271 | # Is the header compilable? |
| 7272 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7273 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7274 | cat >conftest.$ac_ext <<_ACEOF |
| 7275 | /* confdefs.h. */ |
| 7276 | _ACEOF |
| 7277 | cat confdefs.h >>conftest.$ac_ext |
| 7278 | cat >>conftest.$ac_ext <<_ACEOF |
| 7279 | /* end confdefs.h. */ |
| 7280 | $ac_includes_default |
| 7281 | #include <$ac_header> |
| 7282 | _ACEOF |
| 7283 | rm -f conftest.$ac_objext |
| 7284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7285 | (eval $ac_compile) 2>conftest.er1 |
| 7286 | ac_status=$? |
| 7287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7288 | rm -f conftest.er1 |
| 7289 | cat conftest.err >&5 |
| 7290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7291 | (exit $ac_status); } && |
| 7292 | { ac_try='test -z "$ac_c_werror_flag" |
| 7293 | || test ! -s conftest.err' |
| 7294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7295 | (eval $ac_try) 2>&5 |
| 7296 | ac_status=$? |
| 7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7298 | (exit $ac_status); }; } && |
| 7299 | { ac_try='test -s conftest.$ac_objext' |
| 7300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7301 | (eval $ac_try) 2>&5 |
| 7302 | ac_status=$? |
| 7303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7304 | (exit $ac_status); }; }; then |
| 7305 | ac_header_compiler=yes |
| 7306 | else |
| 7307 | echo "$as_me: failed program was:" >&5 |
| 7308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7309 | |
| 7310 | ac_header_compiler=no |
| 7311 | fi |
| 7312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7313 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7314 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7315 | |
| 7316 | # Is the header present? |
| 7317 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7318 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7319 | cat >conftest.$ac_ext <<_ACEOF |
| 7320 | /* confdefs.h. */ |
| 7321 | _ACEOF |
| 7322 | cat confdefs.h >>conftest.$ac_ext |
| 7323 | cat >>conftest.$ac_ext <<_ACEOF |
| 7324 | /* end confdefs.h. */ |
| 7325 | #include <$ac_header> |
| 7326 | _ACEOF |
| 7327 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7328 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7329 | ac_status=$? |
| 7330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7331 | rm -f conftest.er1 |
| 7332 | cat conftest.err >&5 |
| 7333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7334 | (exit $ac_status); } >/dev/null; then |
| 7335 | if test -s conftest.err; then |
| 7336 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7337 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7338 | else |
| 7339 | ac_cpp_err= |
| 7340 | fi |
| 7341 | else |
| 7342 | ac_cpp_err=yes |
| 7343 | fi |
| 7344 | if test -z "$ac_cpp_err"; then |
| 7345 | ac_header_preproc=yes |
| 7346 | else |
| 7347 | echo "$as_me: failed program was:" >&5 |
| 7348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7349 | |
| 7350 | ac_header_preproc=no |
| 7351 | fi |
| 7352 | rm -f conftest.err conftest.$ac_ext |
| 7353 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7354 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7355 | |
| 7356 | # So? What about this header? |
| 7357 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7358 | yes:no: ) |
| 7359 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7360 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7361 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7362 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7363 | ac_header_preproc=yes |
| 7364 | ;; |
| 7365 | no:yes:* ) |
| 7366 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7367 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7368 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7369 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7370 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7371 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7372 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7373 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7374 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7375 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7376 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7377 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7378 | ( |
| 7379 | cat <<\_ASBOX |
| 7380 | ## ------------------------------------------ ## |
| 7381 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 7382 | ## ------------------------------------------ ## |
| 7383 | _ASBOX |
| 7384 | ) | |
| 7385 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7386 | ;; |
| 7387 | esac |
| 7388 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7389 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7390 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7392 | else |
| 7393 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7394 | fi |
| 7395 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7396 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7397 | |
| 7398 | fi |
| 7399 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7400 | cat >>confdefs.h <<_ACEOF |
| 7401 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7402 | _ACEOF |
| 7403 | |
| 7404 | fi |
| 7405 | |
| 7406 | done |
| 7407 | |
| 7408 | |
| 7409 | |
| 7410 | for ac_header in poll.h sys/poll.h |
| 7411 | do |
| 7412 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7414 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7418 | fi |
| 7419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7420 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7421 | else |
| 7422 | # Is the header compilable? |
| 7423 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7424 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7425 | cat >conftest.$ac_ext <<_ACEOF |
| 7426 | /* confdefs.h. */ |
| 7427 | _ACEOF |
| 7428 | cat confdefs.h >>conftest.$ac_ext |
| 7429 | cat >>conftest.$ac_ext <<_ACEOF |
| 7430 | /* end confdefs.h. */ |
| 7431 | $ac_includes_default |
| 7432 | #include <$ac_header> |
| 7433 | _ACEOF |
| 7434 | rm -f conftest.$ac_objext |
| 7435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7436 | (eval $ac_compile) 2>conftest.er1 |
| 7437 | ac_status=$? |
| 7438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7439 | rm -f conftest.er1 |
| 7440 | cat conftest.err >&5 |
| 7441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7442 | (exit $ac_status); } && |
| 7443 | { ac_try='test -z "$ac_c_werror_flag" |
| 7444 | || test ! -s conftest.err' |
| 7445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7446 | (eval $ac_try) 2>&5 |
| 7447 | ac_status=$? |
| 7448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7449 | (exit $ac_status); }; } && |
| 7450 | { ac_try='test -s conftest.$ac_objext' |
| 7451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7452 | (eval $ac_try) 2>&5 |
| 7453 | ac_status=$? |
| 7454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7455 | (exit $ac_status); }; }; then |
| 7456 | ac_header_compiler=yes |
| 7457 | else |
| 7458 | echo "$as_me: failed program was:" >&5 |
| 7459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7460 | |
| 7461 | ac_header_compiler=no |
| 7462 | fi |
| 7463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7464 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7465 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7466 | |
| 7467 | # Is the header present? |
| 7468 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7469 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7470 | cat >conftest.$ac_ext <<_ACEOF |
| 7471 | /* confdefs.h. */ |
| 7472 | _ACEOF |
| 7473 | cat confdefs.h >>conftest.$ac_ext |
| 7474 | cat >>conftest.$ac_ext <<_ACEOF |
| 7475 | /* end confdefs.h. */ |
| 7476 | #include <$ac_header> |
| 7477 | _ACEOF |
| 7478 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7479 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7480 | ac_status=$? |
| 7481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7482 | rm -f conftest.er1 |
| 7483 | cat conftest.err >&5 |
| 7484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7485 | (exit $ac_status); } >/dev/null; then |
| 7486 | if test -s conftest.err; then |
| 7487 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7488 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7489 | else |
| 7490 | ac_cpp_err= |
| 7491 | fi |
| 7492 | else |
| 7493 | ac_cpp_err=yes |
| 7494 | fi |
| 7495 | if test -z "$ac_cpp_err"; then |
| 7496 | ac_header_preproc=yes |
| 7497 | else |
| 7498 | echo "$as_me: failed program was:" >&5 |
| 7499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7500 | |
| 7501 | ac_header_preproc=no |
| 7502 | fi |
| 7503 | rm -f conftest.err conftest.$ac_ext |
| 7504 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7505 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7506 | |
| 7507 | # So? What about this header? |
| 7508 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7509 | yes:no: ) |
| 7510 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7511 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7512 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7513 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7514 | ac_header_preproc=yes |
| 7515 | ;; |
| 7516 | no:yes:* ) |
| 7517 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7518 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7519 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7520 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7521 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7522 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7523 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7524 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7525 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7526 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7527 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7528 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7529 | ( |
| 7530 | cat <<\_ASBOX |
| 7531 | ## ------------------------------------------ ## |
| 7532 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 7533 | ## ------------------------------------------ ## |
| 7534 | _ASBOX |
| 7535 | ) | |
| 7536 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7537 | ;; |
| 7538 | esac |
| 7539 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7540 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7541 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7543 | else |
| 7544 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7545 | fi |
| 7546 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7547 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7548 | |
| 7549 | fi |
| 7550 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7551 | cat >>confdefs.h <<_ACEOF |
| 7552 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7553 | _ACEOF |
| 7554 | |
| 7555 | fi |
| 7556 | |
| 7557 | done |
| 7558 | |
| 7559 | |
| 7560 | |
| 7561 | |
| 7562 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h |
| 7563 | do |
| 7564 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7565 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7566 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7567 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7568 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7570 | fi |
| 7571 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7572 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7573 | else |
| 7574 | # Is the header compilable? |
| 7575 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7576 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7577 | cat >conftest.$ac_ext <<_ACEOF |
| 7578 | /* confdefs.h. */ |
| 7579 | _ACEOF |
| 7580 | cat confdefs.h >>conftest.$ac_ext |
| 7581 | cat >>conftest.$ac_ext <<_ACEOF |
| 7582 | /* end confdefs.h. */ |
| 7583 | $ac_includes_default |
| 7584 | #include <$ac_header> |
| 7585 | _ACEOF |
| 7586 | rm -f conftest.$ac_objext |
| 7587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7588 | (eval $ac_compile) 2>conftest.er1 |
| 7589 | ac_status=$? |
| 7590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7591 | rm -f conftest.er1 |
| 7592 | cat conftest.err >&5 |
| 7593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7594 | (exit $ac_status); } && |
| 7595 | { ac_try='test -z "$ac_c_werror_flag" |
| 7596 | || test ! -s conftest.err' |
| 7597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7598 | (eval $ac_try) 2>&5 |
| 7599 | ac_status=$? |
| 7600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7601 | (exit $ac_status); }; } && |
| 7602 | { ac_try='test -s conftest.$ac_objext' |
| 7603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7604 | (eval $ac_try) 2>&5 |
| 7605 | ac_status=$? |
| 7606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7607 | (exit $ac_status); }; }; then |
| 7608 | ac_header_compiler=yes |
| 7609 | else |
| 7610 | echo "$as_me: failed program was:" >&5 |
| 7611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7612 | |
| 7613 | ac_header_compiler=no |
| 7614 | fi |
| 7615 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7616 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7617 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7618 | |
| 7619 | # Is the header present? |
| 7620 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7621 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7622 | cat >conftest.$ac_ext <<_ACEOF |
| 7623 | /* confdefs.h. */ |
| 7624 | _ACEOF |
| 7625 | cat confdefs.h >>conftest.$ac_ext |
| 7626 | cat >>conftest.$ac_ext <<_ACEOF |
| 7627 | /* end confdefs.h. */ |
| 7628 | #include <$ac_header> |
| 7629 | _ACEOF |
| 7630 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7631 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7632 | ac_status=$? |
| 7633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7634 | rm -f conftest.er1 |
| 7635 | cat conftest.err >&5 |
| 7636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7637 | (exit $ac_status); } >/dev/null; then |
| 7638 | if test -s conftest.err; then |
| 7639 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7640 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7641 | else |
| 7642 | ac_cpp_err= |
| 7643 | fi |
| 7644 | else |
| 7645 | ac_cpp_err=yes |
| 7646 | fi |
| 7647 | if test -z "$ac_cpp_err"; then |
| 7648 | ac_header_preproc=yes |
| 7649 | else |
| 7650 | echo "$as_me: failed program was:" >&5 |
| 7651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7652 | |
| 7653 | ac_header_preproc=no |
| 7654 | fi |
| 7655 | rm -f conftest.err conftest.$ac_ext |
| 7656 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7657 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7658 | |
| 7659 | # So? What about this header? |
| 7660 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7661 | yes:no: ) |
| 7662 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7663 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7664 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7665 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7666 | ac_header_preproc=yes |
| 7667 | ;; |
| 7668 | no:yes:* ) |
| 7669 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7670 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7671 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7672 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7673 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7674 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7675 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7676 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7677 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7678 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7679 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7680 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7681 | ( |
| 7682 | cat <<\_ASBOX |
| 7683 | ## ------------------------------------------ ## |
| 7684 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 7685 | ## ------------------------------------------ ## |
| 7686 | _ASBOX |
| 7687 | ) | |
| 7688 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7689 | ;; |
| 7690 | esac |
| 7691 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7692 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7693 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7695 | else |
| 7696 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7697 | fi |
| 7698 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7699 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7700 | |
| 7701 | fi |
| 7702 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7703 | cat >>confdefs.h <<_ACEOF |
| 7704 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7705 | _ACEOF |
| 7706 | |
| 7707 | fi |
| 7708 | |
| 7709 | done |
| 7710 | |
| 7711 | |
| 7712 | for ac_header in signal.h |
| 7713 | do |
| 7714 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7715 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7716 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7717 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7718 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7720 | fi |
| 7721 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7722 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7723 | else |
| 7724 | # Is the header compilable? |
| 7725 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7726 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7727 | cat >conftest.$ac_ext <<_ACEOF |
| 7728 | /* confdefs.h. */ |
| 7729 | _ACEOF |
| 7730 | cat confdefs.h >>conftest.$ac_ext |
| 7731 | cat >>conftest.$ac_ext <<_ACEOF |
| 7732 | /* end confdefs.h. */ |
| 7733 | $ac_includes_default |
| 7734 | #include <$ac_header> |
| 7735 | _ACEOF |
| 7736 | rm -f conftest.$ac_objext |
| 7737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7738 | (eval $ac_compile) 2>conftest.er1 |
| 7739 | ac_status=$? |
| 7740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7741 | rm -f conftest.er1 |
| 7742 | cat conftest.err >&5 |
| 7743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7744 | (exit $ac_status); } && |
| 7745 | { ac_try='test -z "$ac_c_werror_flag" |
| 7746 | || test ! -s conftest.err' |
| 7747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7748 | (eval $ac_try) 2>&5 |
| 7749 | ac_status=$? |
| 7750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7751 | (exit $ac_status); }; } && |
| 7752 | { ac_try='test -s conftest.$ac_objext' |
| 7753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7754 | (eval $ac_try) 2>&5 |
| 7755 | ac_status=$? |
| 7756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7757 | (exit $ac_status); }; }; then |
| 7758 | ac_header_compiler=yes |
| 7759 | else |
| 7760 | echo "$as_me: failed program was:" >&5 |
| 7761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7762 | |
| 7763 | ac_header_compiler=no |
| 7764 | fi |
| 7765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7766 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7767 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7768 | |
| 7769 | # Is the header present? |
| 7770 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7771 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7772 | cat >conftest.$ac_ext <<_ACEOF |
| 7773 | /* confdefs.h. */ |
| 7774 | _ACEOF |
| 7775 | cat confdefs.h >>conftest.$ac_ext |
| 7776 | cat >>conftest.$ac_ext <<_ACEOF |
| 7777 | /* end confdefs.h. */ |
| 7778 | #include <$ac_header> |
| 7779 | _ACEOF |
| 7780 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7781 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7782 | ac_status=$? |
| 7783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7784 | rm -f conftest.er1 |
| 7785 | cat conftest.err >&5 |
| 7786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7787 | (exit $ac_status); } >/dev/null; then |
| 7788 | if test -s conftest.err; then |
| 7789 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7790 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7791 | else |
| 7792 | ac_cpp_err= |
| 7793 | fi |
| 7794 | else |
| 7795 | ac_cpp_err=yes |
| 7796 | fi |
| 7797 | if test -z "$ac_cpp_err"; then |
| 7798 | ac_header_preproc=yes |
| 7799 | else |
| 7800 | echo "$as_me: failed program was:" >&5 |
| 7801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7802 | |
| 7803 | ac_header_preproc=no |
| 7804 | fi |
| 7805 | rm -f conftest.err conftest.$ac_ext |
| 7806 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7807 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7808 | |
| 7809 | # So? What about this header? |
| 7810 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7811 | yes:no: ) |
| 7812 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7813 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7814 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7815 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7816 | ac_header_preproc=yes |
| 7817 | ;; |
| 7818 | no:yes:* ) |
| 7819 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7820 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7821 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7822 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7823 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7824 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7825 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7826 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7827 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7828 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7829 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7830 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7831 | ( |
| 7832 | cat <<\_ASBOX |
| 7833 | ## ------------------------------------------ ## |
| 7834 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 7835 | ## ------------------------------------------ ## |
| 7836 | _ASBOX |
| 7837 | ) | |
| 7838 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7839 | ;; |
| 7840 | esac |
| 7841 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7842 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7843 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7845 | else |
| 7846 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7847 | fi |
| 7848 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7849 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7850 | |
| 7851 | fi |
| 7852 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7853 | cat >>confdefs.h <<_ACEOF |
| 7854 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7855 | _ACEOF |
| 7856 | |
| 7857 | fi |
| 7858 | |
| 7859 | done |
| 7860 | |
| 7861 | |
| 7862 | for ac_header in stddef.h |
| 7863 | do |
| 7864 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7865 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7866 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7867 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7870 | fi |
| 7871 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7872 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7873 | else |
| 7874 | # Is the header compilable? |
| 7875 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7876 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7877 | cat >conftest.$ac_ext <<_ACEOF |
| 7878 | /* confdefs.h. */ |
| 7879 | _ACEOF |
| 7880 | cat confdefs.h >>conftest.$ac_ext |
| 7881 | cat >>conftest.$ac_ext <<_ACEOF |
| 7882 | /* end confdefs.h. */ |
| 7883 | $ac_includes_default |
| 7884 | #include <$ac_header> |
| 7885 | _ACEOF |
| 7886 | rm -f conftest.$ac_objext |
| 7887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7888 | (eval $ac_compile) 2>conftest.er1 |
| 7889 | ac_status=$? |
| 7890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7891 | rm -f conftest.er1 |
| 7892 | cat conftest.err >&5 |
| 7893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7894 | (exit $ac_status); } && |
| 7895 | { ac_try='test -z "$ac_c_werror_flag" |
| 7896 | || test ! -s conftest.err' |
| 7897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7898 | (eval $ac_try) 2>&5 |
| 7899 | ac_status=$? |
| 7900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7901 | (exit $ac_status); }; } && |
| 7902 | { ac_try='test -s conftest.$ac_objext' |
| 7903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7904 | (eval $ac_try) 2>&5 |
| 7905 | ac_status=$? |
| 7906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7907 | (exit $ac_status); }; }; then |
| 7908 | ac_header_compiler=yes |
| 7909 | else |
| 7910 | echo "$as_me: failed program was:" >&5 |
| 7911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7912 | |
| 7913 | ac_header_compiler=no |
| 7914 | fi |
| 7915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7916 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7917 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7918 | |
| 7919 | # Is the header present? |
| 7920 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7921 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7922 | cat >conftest.$ac_ext <<_ACEOF |
| 7923 | /* confdefs.h. */ |
| 7924 | _ACEOF |
| 7925 | cat confdefs.h >>conftest.$ac_ext |
| 7926 | cat >>conftest.$ac_ext <<_ACEOF |
| 7927 | /* end confdefs.h. */ |
| 7928 | #include <$ac_header> |
| 7929 | _ACEOF |
| 7930 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7931 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7932 | ac_status=$? |
| 7933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7934 | rm -f conftest.er1 |
| 7935 | cat conftest.err >&5 |
| 7936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7937 | (exit $ac_status); } >/dev/null; then |
| 7938 | if test -s conftest.err; then |
| 7939 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7940 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7941 | else |
| 7942 | ac_cpp_err= |
| 7943 | fi |
| 7944 | else |
| 7945 | ac_cpp_err=yes |
| 7946 | fi |
| 7947 | if test -z "$ac_cpp_err"; then |
| 7948 | ac_header_preproc=yes |
| 7949 | else |
| 7950 | echo "$as_me: failed program was:" >&5 |
| 7951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7952 | |
| 7953 | ac_header_preproc=no |
| 7954 | fi |
| 7955 | rm -f conftest.err conftest.$ac_ext |
| 7956 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7957 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7958 | |
| 7959 | # So? What about this header? |
| 7960 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7961 | yes:no: ) |
| 7962 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7963 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7964 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7965 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7966 | ac_header_preproc=yes |
| 7967 | ;; |
| 7968 | no:yes:* ) |
| 7969 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7970 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7971 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7972 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7973 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7974 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7975 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7976 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7977 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7978 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7979 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7980 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7981 | ( |
| 7982 | cat <<\_ASBOX |
| 7983 | ## ------------------------------------------ ## |
| 7984 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 7985 | ## ------------------------------------------ ## |
| 7986 | _ASBOX |
| 7987 | ) | |
| 7988 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7989 | ;; |
| 7990 | esac |
| 7991 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7992 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7993 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7995 | else |
| 7996 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7997 | fi |
| 7998 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7999 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8000 | |
| 8001 | fi |
| 8002 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8003 | cat >>confdefs.h <<_ACEOF |
| 8004 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8005 | _ACEOF |
| 8006 | |
| 8007 | fi |
| 8008 | |
| 8009 | done |
| 8010 | |
| 8011 | |
| 8012 | for ac_header in stdlib.h |
| 8013 | do |
| 8014 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8015 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8016 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8018 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8020 | fi |
| 8021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8022 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8023 | else |
| 8024 | # Is the header compilable? |
| 8025 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8026 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8027 | cat >conftest.$ac_ext <<_ACEOF |
| 8028 | /* confdefs.h. */ |
| 8029 | _ACEOF |
| 8030 | cat confdefs.h >>conftest.$ac_ext |
| 8031 | cat >>conftest.$ac_ext <<_ACEOF |
| 8032 | /* end confdefs.h. */ |
| 8033 | $ac_includes_default |
| 8034 | #include <$ac_header> |
| 8035 | _ACEOF |
| 8036 | rm -f conftest.$ac_objext |
| 8037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8038 | (eval $ac_compile) 2>conftest.er1 |
| 8039 | ac_status=$? |
| 8040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8041 | rm -f conftest.er1 |
| 8042 | cat conftest.err >&5 |
| 8043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8044 | (exit $ac_status); } && |
| 8045 | { ac_try='test -z "$ac_c_werror_flag" |
| 8046 | || test ! -s conftest.err' |
| 8047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8048 | (eval $ac_try) 2>&5 |
| 8049 | ac_status=$? |
| 8050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8051 | (exit $ac_status); }; } && |
| 8052 | { ac_try='test -s conftest.$ac_objext' |
| 8053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8054 | (eval $ac_try) 2>&5 |
| 8055 | ac_status=$? |
| 8056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8057 | (exit $ac_status); }; }; then |
| 8058 | ac_header_compiler=yes |
| 8059 | else |
| 8060 | echo "$as_me: failed program was:" >&5 |
| 8061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8062 | |
| 8063 | ac_header_compiler=no |
| 8064 | fi |
| 8065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8066 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8067 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8068 | |
| 8069 | # Is the header present? |
| 8070 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8071 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8072 | cat >conftest.$ac_ext <<_ACEOF |
| 8073 | /* confdefs.h. */ |
| 8074 | _ACEOF |
| 8075 | cat confdefs.h >>conftest.$ac_ext |
| 8076 | cat >>conftest.$ac_ext <<_ACEOF |
| 8077 | /* end confdefs.h. */ |
| 8078 | #include <$ac_header> |
| 8079 | _ACEOF |
| 8080 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8081 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8082 | ac_status=$? |
| 8083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8084 | rm -f conftest.er1 |
| 8085 | cat conftest.err >&5 |
| 8086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8087 | (exit $ac_status); } >/dev/null; then |
| 8088 | if test -s conftest.err; then |
| 8089 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8090 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8091 | else |
| 8092 | ac_cpp_err= |
| 8093 | fi |
| 8094 | else |
| 8095 | ac_cpp_err=yes |
| 8096 | fi |
| 8097 | if test -z "$ac_cpp_err"; then |
| 8098 | ac_header_preproc=yes |
| 8099 | else |
| 8100 | echo "$as_me: failed program was:" >&5 |
| 8101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8102 | |
| 8103 | ac_header_preproc=no |
| 8104 | fi |
| 8105 | rm -f conftest.err conftest.$ac_ext |
| 8106 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8107 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8108 | |
| 8109 | # So? What about this header? |
| 8110 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8111 | yes:no: ) |
| 8112 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8113 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8114 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8115 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8116 | ac_header_preproc=yes |
| 8117 | ;; |
| 8118 | no:yes:* ) |
| 8119 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8120 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8121 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8122 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8123 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8124 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8125 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8126 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8127 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8128 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8129 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8130 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8131 | ( |
| 8132 | cat <<\_ASBOX |
| 8133 | ## ------------------------------------------ ## |
| 8134 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8135 | ## ------------------------------------------ ## |
| 8136 | _ASBOX |
| 8137 | ) | |
| 8138 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8139 | ;; |
| 8140 | esac |
| 8141 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8142 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8143 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8145 | else |
| 8146 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8147 | fi |
| 8148 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8149 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8150 | |
| 8151 | fi |
| 8152 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8153 | cat >>confdefs.h <<_ACEOF |
| 8154 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8155 | _ACEOF |
| 8156 | |
| 8157 | fi |
| 8158 | |
| 8159 | done |
| 8160 | |
| 8161 | |
| 8162 | for ac_header in stdint.h |
| 8163 | do |
| 8164 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8165 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8166 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8167 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8168 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8170 | fi |
| 8171 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8172 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8173 | else |
| 8174 | # Is the header compilable? |
| 8175 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8176 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8177 | cat >conftest.$ac_ext <<_ACEOF |
| 8178 | /* confdefs.h. */ |
| 8179 | _ACEOF |
| 8180 | cat confdefs.h >>conftest.$ac_ext |
| 8181 | cat >>conftest.$ac_ext <<_ACEOF |
| 8182 | /* end confdefs.h. */ |
| 8183 | $ac_includes_default |
| 8184 | #include <$ac_header> |
| 8185 | _ACEOF |
| 8186 | rm -f conftest.$ac_objext |
| 8187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8188 | (eval $ac_compile) 2>conftest.er1 |
| 8189 | ac_status=$? |
| 8190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8191 | rm -f conftest.er1 |
| 8192 | cat conftest.err >&5 |
| 8193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8194 | (exit $ac_status); } && |
| 8195 | { ac_try='test -z "$ac_c_werror_flag" |
| 8196 | || test ! -s conftest.err' |
| 8197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8198 | (eval $ac_try) 2>&5 |
| 8199 | ac_status=$? |
| 8200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8201 | (exit $ac_status); }; } && |
| 8202 | { ac_try='test -s conftest.$ac_objext' |
| 8203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8204 | (eval $ac_try) 2>&5 |
| 8205 | ac_status=$? |
| 8206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8207 | (exit $ac_status); }; }; then |
| 8208 | ac_header_compiler=yes |
| 8209 | else |
| 8210 | echo "$as_me: failed program was:" >&5 |
| 8211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8212 | |
| 8213 | ac_header_compiler=no |
| 8214 | fi |
| 8215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8216 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8217 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8218 | |
| 8219 | # Is the header present? |
| 8220 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8221 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8222 | cat >conftest.$ac_ext <<_ACEOF |
| 8223 | /* confdefs.h. */ |
| 8224 | _ACEOF |
| 8225 | cat confdefs.h >>conftest.$ac_ext |
| 8226 | cat >>conftest.$ac_ext <<_ACEOF |
| 8227 | /* end confdefs.h. */ |
| 8228 | #include <$ac_header> |
| 8229 | _ACEOF |
| 8230 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8231 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8232 | ac_status=$? |
| 8233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8234 | rm -f conftest.er1 |
| 8235 | cat conftest.err >&5 |
| 8236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8237 | (exit $ac_status); } >/dev/null; then |
| 8238 | if test -s conftest.err; then |
| 8239 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8240 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8241 | else |
| 8242 | ac_cpp_err= |
| 8243 | fi |
| 8244 | else |
| 8245 | ac_cpp_err=yes |
| 8246 | fi |
| 8247 | if test -z "$ac_cpp_err"; then |
| 8248 | ac_header_preproc=yes |
| 8249 | else |
| 8250 | echo "$as_me: failed program was:" >&5 |
| 8251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8252 | |
| 8253 | ac_header_preproc=no |
| 8254 | fi |
| 8255 | rm -f conftest.err conftest.$ac_ext |
| 8256 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8257 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8258 | |
| 8259 | # So? What about this header? |
| 8260 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8261 | yes:no: ) |
| 8262 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8263 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8264 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8265 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8266 | ac_header_preproc=yes |
| 8267 | ;; |
| 8268 | no:yes:* ) |
| 8269 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8270 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8271 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8272 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8273 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8274 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8275 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8276 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8277 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8278 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8279 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8280 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8281 | ( |
| 8282 | cat <<\_ASBOX |
| 8283 | ## ------------------------------------------ ## |
| 8284 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8285 | ## ------------------------------------------ ## |
| 8286 | _ASBOX |
| 8287 | ) | |
| 8288 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8289 | ;; |
| 8290 | esac |
| 8291 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8292 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8293 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8295 | else |
| 8296 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8297 | fi |
| 8298 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8299 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8300 | |
| 8301 | fi |
| 8302 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8303 | cat >>confdefs.h <<_ACEOF |
| 8304 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8305 | _ACEOF |
| 8306 | |
| 8307 | fi |
| 8308 | |
| 8309 | done |
| 8310 | |
| 8311 | |
| 8312 | |
| 8313 | |
| 8314 | for ac_header in string.h memory.h strings.h |
| 8315 | do |
| 8316 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8317 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8318 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8319 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8320 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8322 | fi |
| 8323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8324 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8325 | else |
| 8326 | # Is the header compilable? |
| 8327 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8328 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8329 | cat >conftest.$ac_ext <<_ACEOF |
| 8330 | /* confdefs.h. */ |
| 8331 | _ACEOF |
| 8332 | cat confdefs.h >>conftest.$ac_ext |
| 8333 | cat >>conftest.$ac_ext <<_ACEOF |
| 8334 | /* end confdefs.h. */ |
| 8335 | $ac_includes_default |
| 8336 | #include <$ac_header> |
| 8337 | _ACEOF |
| 8338 | rm -f conftest.$ac_objext |
| 8339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8340 | (eval $ac_compile) 2>conftest.er1 |
| 8341 | ac_status=$? |
| 8342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8343 | rm -f conftest.er1 |
| 8344 | cat conftest.err >&5 |
| 8345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8346 | (exit $ac_status); } && |
| 8347 | { ac_try='test -z "$ac_c_werror_flag" |
| 8348 | || test ! -s conftest.err' |
| 8349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8350 | (eval $ac_try) 2>&5 |
| 8351 | ac_status=$? |
| 8352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8353 | (exit $ac_status); }; } && |
| 8354 | { ac_try='test -s conftest.$ac_objext' |
| 8355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8356 | (eval $ac_try) 2>&5 |
| 8357 | ac_status=$? |
| 8358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8359 | (exit $ac_status); }; }; then |
| 8360 | ac_header_compiler=yes |
| 8361 | else |
| 8362 | echo "$as_me: failed program was:" >&5 |
| 8363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8364 | |
| 8365 | ac_header_compiler=no |
| 8366 | fi |
| 8367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8368 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8369 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8370 | |
| 8371 | # Is the header present? |
| 8372 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8373 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8374 | cat >conftest.$ac_ext <<_ACEOF |
| 8375 | /* confdefs.h. */ |
| 8376 | _ACEOF |
| 8377 | cat confdefs.h >>conftest.$ac_ext |
| 8378 | cat >>conftest.$ac_ext <<_ACEOF |
| 8379 | /* end confdefs.h. */ |
| 8380 | #include <$ac_header> |
| 8381 | _ACEOF |
| 8382 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8383 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8384 | ac_status=$? |
| 8385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8386 | rm -f conftest.er1 |
| 8387 | cat conftest.err >&5 |
| 8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8389 | (exit $ac_status); } >/dev/null; then |
| 8390 | if test -s conftest.err; then |
| 8391 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8392 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8393 | else |
| 8394 | ac_cpp_err= |
| 8395 | fi |
| 8396 | else |
| 8397 | ac_cpp_err=yes |
| 8398 | fi |
| 8399 | if test -z "$ac_cpp_err"; then |
| 8400 | ac_header_preproc=yes |
| 8401 | else |
| 8402 | echo "$as_me: failed program was:" >&5 |
| 8403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8404 | |
| 8405 | ac_header_preproc=no |
| 8406 | fi |
| 8407 | rm -f conftest.err conftest.$ac_ext |
| 8408 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8409 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8410 | |
| 8411 | # So? What about this header? |
| 8412 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8413 | yes:no: ) |
| 8414 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8415 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8416 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8417 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8418 | ac_header_preproc=yes |
| 8419 | ;; |
| 8420 | no:yes:* ) |
| 8421 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8422 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8423 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8424 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8425 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8426 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8427 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8428 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8429 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8430 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8431 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8432 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8433 | ( |
| 8434 | cat <<\_ASBOX |
| 8435 | ## ------------------------------------------ ## |
| 8436 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8437 | ## ------------------------------------------ ## |
| 8438 | _ASBOX |
| 8439 | ) | |
| 8440 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8441 | ;; |
| 8442 | esac |
| 8443 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8444 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8445 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8447 | else |
| 8448 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8449 | fi |
| 8450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8451 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8452 | |
| 8453 | fi |
| 8454 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8455 | cat >>confdefs.h <<_ACEOF |
| 8456 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8457 | _ACEOF |
| 8458 | |
| 8459 | fi |
| 8460 | |
| 8461 | done |
| 8462 | |
| 8463 | |
| 8464 | for ac_header in sys/fault.h |
| 8465 | do |
| 8466 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8467 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8468 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8469 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8470 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8472 | fi |
| 8473 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8474 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8475 | else |
| 8476 | # Is the header compilable? |
| 8477 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8478 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8479 | cat >conftest.$ac_ext <<_ACEOF |
| 8480 | /* confdefs.h. */ |
| 8481 | _ACEOF |
| 8482 | cat confdefs.h >>conftest.$ac_ext |
| 8483 | cat >>conftest.$ac_ext <<_ACEOF |
| 8484 | /* end confdefs.h. */ |
| 8485 | $ac_includes_default |
| 8486 | #include <$ac_header> |
| 8487 | _ACEOF |
| 8488 | rm -f conftest.$ac_objext |
| 8489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8490 | (eval $ac_compile) 2>conftest.er1 |
| 8491 | ac_status=$? |
| 8492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8493 | rm -f conftest.er1 |
| 8494 | cat conftest.err >&5 |
| 8495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8496 | (exit $ac_status); } && |
| 8497 | { ac_try='test -z "$ac_c_werror_flag" |
| 8498 | || test ! -s conftest.err' |
| 8499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8500 | (eval $ac_try) 2>&5 |
| 8501 | ac_status=$? |
| 8502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8503 | (exit $ac_status); }; } && |
| 8504 | { ac_try='test -s conftest.$ac_objext' |
| 8505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8506 | (eval $ac_try) 2>&5 |
| 8507 | ac_status=$? |
| 8508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8509 | (exit $ac_status); }; }; then |
| 8510 | ac_header_compiler=yes |
| 8511 | else |
| 8512 | echo "$as_me: failed program was:" >&5 |
| 8513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8514 | |
| 8515 | ac_header_compiler=no |
| 8516 | fi |
| 8517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8518 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8519 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8520 | |
| 8521 | # Is the header present? |
| 8522 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8523 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8524 | cat >conftest.$ac_ext <<_ACEOF |
| 8525 | /* confdefs.h. */ |
| 8526 | _ACEOF |
| 8527 | cat confdefs.h >>conftest.$ac_ext |
| 8528 | cat >>conftest.$ac_ext <<_ACEOF |
| 8529 | /* end confdefs.h. */ |
| 8530 | #include <$ac_header> |
| 8531 | _ACEOF |
| 8532 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8533 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8534 | ac_status=$? |
| 8535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8536 | rm -f conftest.er1 |
| 8537 | cat conftest.err >&5 |
| 8538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8539 | (exit $ac_status); } >/dev/null; then |
| 8540 | if test -s conftest.err; then |
| 8541 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8542 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8543 | else |
| 8544 | ac_cpp_err= |
| 8545 | fi |
| 8546 | else |
| 8547 | ac_cpp_err=yes |
| 8548 | fi |
| 8549 | if test -z "$ac_cpp_err"; then |
| 8550 | ac_header_preproc=yes |
| 8551 | else |
| 8552 | echo "$as_me: failed program was:" >&5 |
| 8553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8554 | |
| 8555 | ac_header_preproc=no |
| 8556 | fi |
| 8557 | rm -f conftest.err conftest.$ac_ext |
| 8558 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8559 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8560 | |
| 8561 | # So? What about this header? |
| 8562 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8563 | yes:no: ) |
| 8564 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8565 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8566 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8567 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8568 | ac_header_preproc=yes |
| 8569 | ;; |
| 8570 | no:yes:* ) |
| 8571 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8572 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8573 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8574 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8575 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8576 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8577 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8578 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8579 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8580 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8581 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8582 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8583 | ( |
| 8584 | cat <<\_ASBOX |
| 8585 | ## ------------------------------------------ ## |
| 8586 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8587 | ## ------------------------------------------ ## |
| 8588 | _ASBOX |
| 8589 | ) | |
| 8590 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8591 | ;; |
| 8592 | esac |
| 8593 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8594 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8595 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8597 | else |
| 8598 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8599 | fi |
| 8600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8602 | |
| 8603 | fi |
| 8604 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8605 | cat >>confdefs.h <<_ACEOF |
| 8606 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8607 | _ACEOF |
| 8608 | |
| 8609 | fi |
| 8610 | |
| 8611 | done |
| 8612 | |
| 8613 | |
| 8614 | for ac_header in sys/file.h |
| 8615 | do |
| 8616 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8617 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8618 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8619 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8620 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8622 | fi |
| 8623 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8624 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8625 | else |
| 8626 | # Is the header compilable? |
| 8627 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8628 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8629 | cat >conftest.$ac_ext <<_ACEOF |
| 8630 | /* confdefs.h. */ |
| 8631 | _ACEOF |
| 8632 | cat confdefs.h >>conftest.$ac_ext |
| 8633 | cat >>conftest.$ac_ext <<_ACEOF |
| 8634 | /* end confdefs.h. */ |
| 8635 | $ac_includes_default |
| 8636 | #include <$ac_header> |
| 8637 | _ACEOF |
| 8638 | rm -f conftest.$ac_objext |
| 8639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8640 | (eval $ac_compile) 2>conftest.er1 |
| 8641 | ac_status=$? |
| 8642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8643 | rm -f conftest.er1 |
| 8644 | cat conftest.err >&5 |
| 8645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8646 | (exit $ac_status); } && |
| 8647 | { ac_try='test -z "$ac_c_werror_flag" |
| 8648 | || test ! -s conftest.err' |
| 8649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8650 | (eval $ac_try) 2>&5 |
| 8651 | ac_status=$? |
| 8652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8653 | (exit $ac_status); }; } && |
| 8654 | { ac_try='test -s conftest.$ac_objext' |
| 8655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8656 | (eval $ac_try) 2>&5 |
| 8657 | ac_status=$? |
| 8658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8659 | (exit $ac_status); }; }; then |
| 8660 | ac_header_compiler=yes |
| 8661 | else |
| 8662 | echo "$as_me: failed program was:" >&5 |
| 8663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8664 | |
| 8665 | ac_header_compiler=no |
| 8666 | fi |
| 8667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8668 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8669 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8670 | |
| 8671 | # Is the header present? |
| 8672 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8673 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8674 | cat >conftest.$ac_ext <<_ACEOF |
| 8675 | /* confdefs.h. */ |
| 8676 | _ACEOF |
| 8677 | cat confdefs.h >>conftest.$ac_ext |
| 8678 | cat >>conftest.$ac_ext <<_ACEOF |
| 8679 | /* end confdefs.h. */ |
| 8680 | #include <$ac_header> |
| 8681 | _ACEOF |
| 8682 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8683 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8684 | ac_status=$? |
| 8685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8686 | rm -f conftest.er1 |
| 8687 | cat conftest.err >&5 |
| 8688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8689 | (exit $ac_status); } >/dev/null; then |
| 8690 | if test -s conftest.err; then |
| 8691 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8692 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8693 | else |
| 8694 | ac_cpp_err= |
| 8695 | fi |
| 8696 | else |
| 8697 | ac_cpp_err=yes |
| 8698 | fi |
| 8699 | if test -z "$ac_cpp_err"; then |
| 8700 | ac_header_preproc=yes |
| 8701 | else |
| 8702 | echo "$as_me: failed program was:" >&5 |
| 8703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8704 | |
| 8705 | ac_header_preproc=no |
| 8706 | fi |
| 8707 | rm -f conftest.err conftest.$ac_ext |
| 8708 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8709 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8710 | |
| 8711 | # So? What about this header? |
| 8712 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8713 | yes:no: ) |
| 8714 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8715 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8716 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8717 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8718 | ac_header_preproc=yes |
| 8719 | ;; |
| 8720 | no:yes:* ) |
| 8721 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8722 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8723 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8724 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8725 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8726 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8727 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8728 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8729 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8730 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8731 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8732 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8733 | ( |
| 8734 | cat <<\_ASBOX |
| 8735 | ## ------------------------------------------ ## |
| 8736 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8737 | ## ------------------------------------------ ## |
| 8738 | _ASBOX |
| 8739 | ) | |
| 8740 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8741 | ;; |
| 8742 | esac |
| 8743 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8744 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8745 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8747 | else |
| 8748 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8749 | fi |
| 8750 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8751 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8752 | |
| 8753 | fi |
| 8754 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8755 | cat >>confdefs.h <<_ACEOF |
| 8756 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8757 | _ACEOF |
| 8758 | |
| 8759 | fi |
| 8760 | |
| 8761 | done |
| 8762 | |
| 8763 | |
| 8764 | for ac_header in sys/filio.h |
| 8765 | do |
| 8766 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8767 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8768 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8769 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8770 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8772 | fi |
| 8773 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8774 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8775 | else |
| 8776 | # Is the header compilable? |
| 8777 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8778 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8779 | cat >conftest.$ac_ext <<_ACEOF |
| 8780 | /* confdefs.h. */ |
| 8781 | _ACEOF |
| 8782 | cat confdefs.h >>conftest.$ac_ext |
| 8783 | cat >>conftest.$ac_ext <<_ACEOF |
| 8784 | /* end confdefs.h. */ |
| 8785 | $ac_includes_default |
| 8786 | #include <$ac_header> |
| 8787 | _ACEOF |
| 8788 | rm -f conftest.$ac_objext |
| 8789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8790 | (eval $ac_compile) 2>conftest.er1 |
| 8791 | ac_status=$? |
| 8792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8793 | rm -f conftest.er1 |
| 8794 | cat conftest.err >&5 |
| 8795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8796 | (exit $ac_status); } && |
| 8797 | { ac_try='test -z "$ac_c_werror_flag" |
| 8798 | || test ! -s conftest.err' |
| 8799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8800 | (eval $ac_try) 2>&5 |
| 8801 | ac_status=$? |
| 8802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8803 | (exit $ac_status); }; } && |
| 8804 | { ac_try='test -s conftest.$ac_objext' |
| 8805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8806 | (eval $ac_try) 2>&5 |
| 8807 | ac_status=$? |
| 8808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8809 | (exit $ac_status); }; }; then |
| 8810 | ac_header_compiler=yes |
| 8811 | else |
| 8812 | echo "$as_me: failed program was:" >&5 |
| 8813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8814 | |
| 8815 | ac_header_compiler=no |
| 8816 | fi |
| 8817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8818 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8819 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8820 | |
| 8821 | # Is the header present? |
| 8822 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8823 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8824 | cat >conftest.$ac_ext <<_ACEOF |
| 8825 | /* confdefs.h. */ |
| 8826 | _ACEOF |
| 8827 | cat confdefs.h >>conftest.$ac_ext |
| 8828 | cat >>conftest.$ac_ext <<_ACEOF |
| 8829 | /* end confdefs.h. */ |
| 8830 | #include <$ac_header> |
| 8831 | _ACEOF |
| 8832 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8833 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8834 | ac_status=$? |
| 8835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8836 | rm -f conftest.er1 |
| 8837 | cat conftest.err >&5 |
| 8838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8839 | (exit $ac_status); } >/dev/null; then |
| 8840 | if test -s conftest.err; then |
| 8841 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8842 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8843 | else |
| 8844 | ac_cpp_err= |
| 8845 | fi |
| 8846 | else |
| 8847 | ac_cpp_err=yes |
| 8848 | fi |
| 8849 | if test -z "$ac_cpp_err"; then |
| 8850 | ac_header_preproc=yes |
| 8851 | else |
| 8852 | echo "$as_me: failed program was:" >&5 |
| 8853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8854 | |
| 8855 | ac_header_preproc=no |
| 8856 | fi |
| 8857 | rm -f conftest.err conftest.$ac_ext |
| 8858 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8859 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8860 | |
| 8861 | # So? What about this header? |
| 8862 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8863 | yes:no: ) |
| 8864 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8865 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8866 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8867 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8868 | ac_header_preproc=yes |
| 8869 | ;; |
| 8870 | no:yes:* ) |
| 8871 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8872 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8873 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8874 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8875 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8876 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8877 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8878 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8879 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8880 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8881 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8882 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8883 | ( |
| 8884 | cat <<\_ASBOX |
| 8885 | ## ------------------------------------------ ## |
| 8886 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8887 | ## ------------------------------------------ ## |
| 8888 | _ASBOX |
| 8889 | ) | |
| 8890 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8891 | ;; |
| 8892 | esac |
| 8893 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8894 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8895 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8897 | else |
| 8898 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8899 | fi |
| 8900 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8901 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8902 | |
| 8903 | fi |
| 8904 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8905 | cat >>confdefs.h <<_ACEOF |
| 8906 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8907 | _ACEOF |
| 8908 | |
| 8909 | fi |
| 8910 | |
| 8911 | done |
| 8912 | |
| 8913 | |
| 8914 | for ac_header in sys/ioctl.h |
| 8915 | do |
| 8916 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8917 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8918 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8919 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8920 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8922 | fi |
| 8923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8925 | else |
| 8926 | # Is the header compilable? |
| 8927 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8928 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8929 | cat >conftest.$ac_ext <<_ACEOF |
| 8930 | /* confdefs.h. */ |
| 8931 | _ACEOF |
| 8932 | cat confdefs.h >>conftest.$ac_ext |
| 8933 | cat >>conftest.$ac_ext <<_ACEOF |
| 8934 | /* end confdefs.h. */ |
| 8935 | $ac_includes_default |
| 8936 | #include <$ac_header> |
| 8937 | _ACEOF |
| 8938 | rm -f conftest.$ac_objext |
| 8939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8940 | (eval $ac_compile) 2>conftest.er1 |
| 8941 | ac_status=$? |
| 8942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8943 | rm -f conftest.er1 |
| 8944 | cat conftest.err >&5 |
| 8945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8946 | (exit $ac_status); } && |
| 8947 | { ac_try='test -z "$ac_c_werror_flag" |
| 8948 | || test ! -s conftest.err' |
| 8949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8950 | (eval $ac_try) 2>&5 |
| 8951 | ac_status=$? |
| 8952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8953 | (exit $ac_status); }; } && |
| 8954 | { ac_try='test -s conftest.$ac_objext' |
| 8955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8956 | (eval $ac_try) 2>&5 |
| 8957 | ac_status=$? |
| 8958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8959 | (exit $ac_status); }; }; then |
| 8960 | ac_header_compiler=yes |
| 8961 | else |
| 8962 | echo "$as_me: failed program was:" >&5 |
| 8963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8964 | |
| 8965 | ac_header_compiler=no |
| 8966 | fi |
| 8967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8968 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8969 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8970 | |
| 8971 | # Is the header present? |
| 8972 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8973 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8974 | cat >conftest.$ac_ext <<_ACEOF |
| 8975 | /* confdefs.h. */ |
| 8976 | _ACEOF |
| 8977 | cat confdefs.h >>conftest.$ac_ext |
| 8978 | cat >>conftest.$ac_ext <<_ACEOF |
| 8979 | /* end confdefs.h. */ |
| 8980 | #include <$ac_header> |
| 8981 | _ACEOF |
| 8982 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8983 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8984 | ac_status=$? |
| 8985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8986 | rm -f conftest.er1 |
| 8987 | cat conftest.err >&5 |
| 8988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8989 | (exit $ac_status); } >/dev/null; then |
| 8990 | if test -s conftest.err; then |
| 8991 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8992 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8993 | else |
| 8994 | ac_cpp_err= |
| 8995 | fi |
| 8996 | else |
| 8997 | ac_cpp_err=yes |
| 8998 | fi |
| 8999 | if test -z "$ac_cpp_err"; then |
| 9000 | ac_header_preproc=yes |
| 9001 | else |
| 9002 | echo "$as_me: failed program was:" >&5 |
| 9003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9004 | |
| 9005 | ac_header_preproc=no |
| 9006 | fi |
| 9007 | rm -f conftest.err conftest.$ac_ext |
| 9008 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9009 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9010 | |
| 9011 | # So? What about this header? |
| 9012 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9013 | yes:no: ) |
| 9014 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9015 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9016 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9017 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9018 | ac_header_preproc=yes |
| 9019 | ;; |
| 9020 | no:yes:* ) |
| 9021 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9022 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9023 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9024 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9025 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9026 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9027 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9028 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9030 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9031 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9032 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9033 | ( |
| 9034 | cat <<\_ASBOX |
| 9035 | ## ------------------------------------------ ## |
| 9036 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9037 | ## ------------------------------------------ ## |
| 9038 | _ASBOX |
| 9039 | ) | |
| 9040 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9041 | ;; |
| 9042 | esac |
| 9043 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9044 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9045 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9047 | else |
| 9048 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9049 | fi |
| 9050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9051 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9052 | |
| 9053 | fi |
| 9054 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9055 | cat >>confdefs.h <<_ACEOF |
| 9056 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9057 | _ACEOF |
| 9058 | |
| 9059 | fi |
| 9060 | |
| 9061 | done |
| 9062 | |
| 9063 | |
| 9064 | for ac_header in sys/param.h |
| 9065 | do |
| 9066 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9068 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9072 | fi |
| 9073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9074 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9075 | else |
| 9076 | # Is the header compilable? |
| 9077 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9078 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9079 | cat >conftest.$ac_ext <<_ACEOF |
| 9080 | /* confdefs.h. */ |
| 9081 | _ACEOF |
| 9082 | cat confdefs.h >>conftest.$ac_ext |
| 9083 | cat >>conftest.$ac_ext <<_ACEOF |
| 9084 | /* end confdefs.h. */ |
| 9085 | $ac_includes_default |
| 9086 | #include <$ac_header> |
| 9087 | _ACEOF |
| 9088 | rm -f conftest.$ac_objext |
| 9089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9090 | (eval $ac_compile) 2>conftest.er1 |
| 9091 | ac_status=$? |
| 9092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9093 | rm -f conftest.er1 |
| 9094 | cat conftest.err >&5 |
| 9095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9096 | (exit $ac_status); } && |
| 9097 | { ac_try='test -z "$ac_c_werror_flag" |
| 9098 | || test ! -s conftest.err' |
| 9099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9100 | (eval $ac_try) 2>&5 |
| 9101 | ac_status=$? |
| 9102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9103 | (exit $ac_status); }; } && |
| 9104 | { ac_try='test -s conftest.$ac_objext' |
| 9105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9106 | (eval $ac_try) 2>&5 |
| 9107 | ac_status=$? |
| 9108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9109 | (exit $ac_status); }; }; then |
| 9110 | ac_header_compiler=yes |
| 9111 | else |
| 9112 | echo "$as_me: failed program was:" >&5 |
| 9113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9114 | |
| 9115 | ac_header_compiler=no |
| 9116 | fi |
| 9117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9118 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9119 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9120 | |
| 9121 | # Is the header present? |
| 9122 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9124 | cat >conftest.$ac_ext <<_ACEOF |
| 9125 | /* confdefs.h. */ |
| 9126 | _ACEOF |
| 9127 | cat confdefs.h >>conftest.$ac_ext |
| 9128 | cat >>conftest.$ac_ext <<_ACEOF |
| 9129 | /* end confdefs.h. */ |
| 9130 | #include <$ac_header> |
| 9131 | _ACEOF |
| 9132 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9133 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9134 | ac_status=$? |
| 9135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9136 | rm -f conftest.er1 |
| 9137 | cat conftest.err >&5 |
| 9138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9139 | (exit $ac_status); } >/dev/null; then |
| 9140 | if test -s conftest.err; then |
| 9141 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9142 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9143 | else |
| 9144 | ac_cpp_err= |
| 9145 | fi |
| 9146 | else |
| 9147 | ac_cpp_err=yes |
| 9148 | fi |
| 9149 | if test -z "$ac_cpp_err"; then |
| 9150 | ac_header_preproc=yes |
| 9151 | else |
| 9152 | echo "$as_me: failed program was:" >&5 |
| 9153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9154 | |
| 9155 | ac_header_preproc=no |
| 9156 | fi |
| 9157 | rm -f conftest.err conftest.$ac_ext |
| 9158 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9159 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9160 | |
| 9161 | # So? What about this header? |
| 9162 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9163 | yes:no: ) |
| 9164 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9165 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9167 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9168 | ac_header_preproc=yes |
| 9169 | ;; |
| 9170 | no:yes:* ) |
| 9171 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9172 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9173 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9174 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9175 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9176 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9177 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9178 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9180 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9181 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9182 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9183 | ( |
| 9184 | cat <<\_ASBOX |
| 9185 | ## ------------------------------------------ ## |
| 9186 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9187 | ## ------------------------------------------ ## |
| 9188 | _ASBOX |
| 9189 | ) | |
| 9190 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9191 | ;; |
| 9192 | esac |
| 9193 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9195 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9197 | else |
| 9198 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9199 | fi |
| 9200 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9201 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9202 | |
| 9203 | fi |
| 9204 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9205 | cat >>confdefs.h <<_ACEOF |
| 9206 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9207 | _ACEOF |
| 9208 | |
| 9209 | fi |
| 9210 | |
| 9211 | done |
| 9212 | |
| 9213 | |
| 9214 | for ac_header in sys/resource.h |
| 9215 | do |
| 9216 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9217 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9218 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9220 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9222 | fi |
| 9223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9224 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9225 | else |
| 9226 | # Is the header compilable? |
| 9227 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9228 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9229 | cat >conftest.$ac_ext <<_ACEOF |
| 9230 | /* confdefs.h. */ |
| 9231 | _ACEOF |
| 9232 | cat confdefs.h >>conftest.$ac_ext |
| 9233 | cat >>conftest.$ac_ext <<_ACEOF |
| 9234 | /* end confdefs.h. */ |
| 9235 | $ac_includes_default |
| 9236 | #include <$ac_header> |
| 9237 | _ACEOF |
| 9238 | rm -f conftest.$ac_objext |
| 9239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9240 | (eval $ac_compile) 2>conftest.er1 |
| 9241 | ac_status=$? |
| 9242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9243 | rm -f conftest.er1 |
| 9244 | cat conftest.err >&5 |
| 9245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9246 | (exit $ac_status); } && |
| 9247 | { ac_try='test -z "$ac_c_werror_flag" |
| 9248 | || test ! -s conftest.err' |
| 9249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9250 | (eval $ac_try) 2>&5 |
| 9251 | ac_status=$? |
| 9252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9253 | (exit $ac_status); }; } && |
| 9254 | { ac_try='test -s conftest.$ac_objext' |
| 9255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9256 | (eval $ac_try) 2>&5 |
| 9257 | ac_status=$? |
| 9258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9259 | (exit $ac_status); }; }; then |
| 9260 | ac_header_compiler=yes |
| 9261 | else |
| 9262 | echo "$as_me: failed program was:" >&5 |
| 9263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9264 | |
| 9265 | ac_header_compiler=no |
| 9266 | fi |
| 9267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9268 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9269 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9270 | |
| 9271 | # Is the header present? |
| 9272 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9273 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9274 | cat >conftest.$ac_ext <<_ACEOF |
| 9275 | /* confdefs.h. */ |
| 9276 | _ACEOF |
| 9277 | cat confdefs.h >>conftest.$ac_ext |
| 9278 | cat >>conftest.$ac_ext <<_ACEOF |
| 9279 | /* end confdefs.h. */ |
| 9280 | #include <$ac_header> |
| 9281 | _ACEOF |
| 9282 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9283 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9284 | ac_status=$? |
| 9285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9286 | rm -f conftest.er1 |
| 9287 | cat conftest.err >&5 |
| 9288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9289 | (exit $ac_status); } >/dev/null; then |
| 9290 | if test -s conftest.err; then |
| 9291 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9292 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9293 | else |
| 9294 | ac_cpp_err= |
| 9295 | fi |
| 9296 | else |
| 9297 | ac_cpp_err=yes |
| 9298 | fi |
| 9299 | if test -z "$ac_cpp_err"; then |
| 9300 | ac_header_preproc=yes |
| 9301 | else |
| 9302 | echo "$as_me: failed program was:" >&5 |
| 9303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9304 | |
| 9305 | ac_header_preproc=no |
| 9306 | fi |
| 9307 | rm -f conftest.err conftest.$ac_ext |
| 9308 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9309 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9310 | |
| 9311 | # So? What about this header? |
| 9312 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9313 | yes:no: ) |
| 9314 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9315 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9316 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9317 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9318 | ac_header_preproc=yes |
| 9319 | ;; |
| 9320 | no:yes:* ) |
| 9321 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9322 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9323 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9324 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9325 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9326 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9327 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9328 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9329 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9330 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9331 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9332 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9333 | ( |
| 9334 | cat <<\_ASBOX |
| 9335 | ## ------------------------------------------ ## |
| 9336 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9337 | ## ------------------------------------------ ## |
| 9338 | _ASBOX |
| 9339 | ) | |
| 9340 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9341 | ;; |
| 9342 | esac |
| 9343 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9344 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9345 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9347 | else |
| 9348 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9349 | fi |
| 9350 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9351 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9352 | |
| 9353 | fi |
| 9354 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9355 | cat >>confdefs.h <<_ACEOF |
| 9356 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9357 | _ACEOF |
| 9358 | |
| 9359 | fi |
| 9360 | |
| 9361 | done |
| 9362 | |
| 9363 | |
| 9364 | for ac_header in sys/proc.h |
| 9365 | do |
| 9366 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9367 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9368 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9369 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9371 | else |
| 9372 | cat >conftest.$ac_ext <<_ACEOF |
| 9373 | /* confdefs.h. */ |
| 9374 | _ACEOF |
| 9375 | cat confdefs.h >>conftest.$ac_ext |
| 9376 | cat >>conftest.$ac_ext <<_ACEOF |
| 9377 | /* end confdefs.h. */ |
| 9378 | #if HAVE_SYS_PARAM_H |
| 9379 | # include <sys/param.h> |
| 9380 | #endif |
| 9381 | |
| 9382 | |
| 9383 | #include <$ac_header> |
| 9384 | _ACEOF |
| 9385 | rm -f conftest.$ac_objext |
| 9386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9387 | (eval $ac_compile) 2>conftest.er1 |
| 9388 | ac_status=$? |
| 9389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9390 | rm -f conftest.er1 |
| 9391 | cat conftest.err >&5 |
| 9392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9393 | (exit $ac_status); } && |
| 9394 | { ac_try='test -z "$ac_c_werror_flag" |
| 9395 | || test ! -s conftest.err' |
| 9396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9397 | (eval $ac_try) 2>&5 |
| 9398 | ac_status=$? |
| 9399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9400 | (exit $ac_status); }; } && |
| 9401 | { ac_try='test -s conftest.$ac_objext' |
| 9402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9403 | (eval $ac_try) 2>&5 |
| 9404 | ac_status=$? |
| 9405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9406 | (exit $ac_status); }; }; then |
| 9407 | eval "$as_ac_Header=yes" |
| 9408 | else |
| 9409 | echo "$as_me: failed program was:" >&5 |
| 9410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9411 | |
| 9412 | eval "$as_ac_Header=no" |
| 9413 | fi |
| 9414 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9415 | fi |
| 9416 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9417 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9418 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9419 | cat >>confdefs.h <<_ACEOF |
| 9420 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9421 | _ACEOF |
| 9422 | |
| 9423 | fi |
| 9424 | |
| 9425 | done |
| 9426 | |
| 9427 | |
| 9428 | for ac_header in sys/procfs.h |
| 9429 | do |
| 9430 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9432 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9433 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9434 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9436 | fi |
| 9437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9438 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9439 | else |
| 9440 | # Is the header compilable? |
| 9441 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9442 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9443 | cat >conftest.$ac_ext <<_ACEOF |
| 9444 | /* confdefs.h. */ |
| 9445 | _ACEOF |
| 9446 | cat confdefs.h >>conftest.$ac_ext |
| 9447 | cat >>conftest.$ac_ext <<_ACEOF |
| 9448 | /* end confdefs.h. */ |
| 9449 | $ac_includes_default |
| 9450 | #include <$ac_header> |
| 9451 | _ACEOF |
| 9452 | rm -f conftest.$ac_objext |
| 9453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9454 | (eval $ac_compile) 2>conftest.er1 |
| 9455 | ac_status=$? |
| 9456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9457 | rm -f conftest.er1 |
| 9458 | cat conftest.err >&5 |
| 9459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9460 | (exit $ac_status); } && |
| 9461 | { ac_try='test -z "$ac_c_werror_flag" |
| 9462 | || test ! -s conftest.err' |
| 9463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9464 | (eval $ac_try) 2>&5 |
| 9465 | ac_status=$? |
| 9466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9467 | (exit $ac_status); }; } && |
| 9468 | { ac_try='test -s conftest.$ac_objext' |
| 9469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9470 | (eval $ac_try) 2>&5 |
| 9471 | ac_status=$? |
| 9472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9473 | (exit $ac_status); }; }; then |
| 9474 | ac_header_compiler=yes |
| 9475 | else |
| 9476 | echo "$as_me: failed program was:" >&5 |
| 9477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9478 | |
| 9479 | ac_header_compiler=no |
| 9480 | fi |
| 9481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9482 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9483 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9484 | |
| 9485 | # Is the header present? |
| 9486 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9487 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9488 | cat >conftest.$ac_ext <<_ACEOF |
| 9489 | /* confdefs.h. */ |
| 9490 | _ACEOF |
| 9491 | cat confdefs.h >>conftest.$ac_ext |
| 9492 | cat >>conftest.$ac_ext <<_ACEOF |
| 9493 | /* end confdefs.h. */ |
| 9494 | #include <$ac_header> |
| 9495 | _ACEOF |
| 9496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9498 | ac_status=$? |
| 9499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9500 | rm -f conftest.er1 |
| 9501 | cat conftest.err >&5 |
| 9502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9503 | (exit $ac_status); } >/dev/null; then |
| 9504 | if test -s conftest.err; then |
| 9505 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9506 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9507 | else |
| 9508 | ac_cpp_err= |
| 9509 | fi |
| 9510 | else |
| 9511 | ac_cpp_err=yes |
| 9512 | fi |
| 9513 | if test -z "$ac_cpp_err"; then |
| 9514 | ac_header_preproc=yes |
| 9515 | else |
| 9516 | echo "$as_me: failed program was:" >&5 |
| 9517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9518 | |
| 9519 | ac_header_preproc=no |
| 9520 | fi |
| 9521 | rm -f conftest.err conftest.$ac_ext |
| 9522 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9523 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9524 | |
| 9525 | # So? What about this header? |
| 9526 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9527 | yes:no: ) |
| 9528 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9529 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9530 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9531 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9532 | ac_header_preproc=yes |
| 9533 | ;; |
| 9534 | no:yes:* ) |
| 9535 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9536 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9537 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9538 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9539 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9540 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9541 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9542 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9543 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9544 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9545 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9546 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9547 | ( |
| 9548 | cat <<\_ASBOX |
| 9549 | ## ------------------------------------------ ## |
| 9550 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9551 | ## ------------------------------------------ ## |
| 9552 | _ASBOX |
| 9553 | ) | |
| 9554 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9555 | ;; |
| 9556 | esac |
| 9557 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9558 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9559 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9561 | else |
| 9562 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9563 | fi |
| 9564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9565 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9566 | |
| 9567 | fi |
| 9568 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9569 | cat >>confdefs.h <<_ACEOF |
| 9570 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9571 | _ACEOF |
| 9572 | |
| 9573 | fi |
| 9574 | |
| 9575 | done |
| 9576 | |
| 9577 | |
| 9578 | |
| 9579 | for ac_header in sys/ptrace.h ptrace.h |
| 9580 | do |
| 9581 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9582 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9583 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9587 | fi |
| 9588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9589 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9590 | else |
| 9591 | # Is the header compilable? |
| 9592 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9593 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9594 | cat >conftest.$ac_ext <<_ACEOF |
| 9595 | /* confdefs.h. */ |
| 9596 | _ACEOF |
| 9597 | cat confdefs.h >>conftest.$ac_ext |
| 9598 | cat >>conftest.$ac_ext <<_ACEOF |
| 9599 | /* end confdefs.h. */ |
| 9600 | $ac_includes_default |
| 9601 | #include <$ac_header> |
| 9602 | _ACEOF |
| 9603 | rm -f conftest.$ac_objext |
| 9604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9605 | (eval $ac_compile) 2>conftest.er1 |
| 9606 | ac_status=$? |
| 9607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9608 | rm -f conftest.er1 |
| 9609 | cat conftest.err >&5 |
| 9610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9611 | (exit $ac_status); } && |
| 9612 | { ac_try='test -z "$ac_c_werror_flag" |
| 9613 | || test ! -s conftest.err' |
| 9614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9615 | (eval $ac_try) 2>&5 |
| 9616 | ac_status=$? |
| 9617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9618 | (exit $ac_status); }; } && |
| 9619 | { ac_try='test -s conftest.$ac_objext' |
| 9620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9621 | (eval $ac_try) 2>&5 |
| 9622 | ac_status=$? |
| 9623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9624 | (exit $ac_status); }; }; then |
| 9625 | ac_header_compiler=yes |
| 9626 | else |
| 9627 | echo "$as_me: failed program was:" >&5 |
| 9628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9629 | |
| 9630 | ac_header_compiler=no |
| 9631 | fi |
| 9632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9633 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9634 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9635 | |
| 9636 | # Is the header present? |
| 9637 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9638 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9639 | cat >conftest.$ac_ext <<_ACEOF |
| 9640 | /* confdefs.h. */ |
| 9641 | _ACEOF |
| 9642 | cat confdefs.h >>conftest.$ac_ext |
| 9643 | cat >>conftest.$ac_ext <<_ACEOF |
| 9644 | /* end confdefs.h. */ |
| 9645 | #include <$ac_header> |
| 9646 | _ACEOF |
| 9647 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9648 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9649 | ac_status=$? |
| 9650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9651 | rm -f conftest.er1 |
| 9652 | cat conftest.err >&5 |
| 9653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9654 | (exit $ac_status); } >/dev/null; then |
| 9655 | if test -s conftest.err; then |
| 9656 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9657 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9658 | else |
| 9659 | ac_cpp_err= |
| 9660 | fi |
| 9661 | else |
| 9662 | ac_cpp_err=yes |
| 9663 | fi |
| 9664 | if test -z "$ac_cpp_err"; then |
| 9665 | ac_header_preproc=yes |
| 9666 | else |
| 9667 | echo "$as_me: failed program was:" >&5 |
| 9668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9669 | |
| 9670 | ac_header_preproc=no |
| 9671 | fi |
| 9672 | rm -f conftest.err conftest.$ac_ext |
| 9673 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9674 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9675 | |
| 9676 | # So? What about this header? |
| 9677 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9678 | yes:no: ) |
| 9679 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9680 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9681 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9682 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9683 | ac_header_preproc=yes |
| 9684 | ;; |
| 9685 | no:yes:* ) |
| 9686 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9687 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9688 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9689 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9690 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9691 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9692 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9693 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9694 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9695 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9696 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9697 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9698 | ( |
| 9699 | cat <<\_ASBOX |
| 9700 | ## ------------------------------------------ ## |
| 9701 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9702 | ## ------------------------------------------ ## |
| 9703 | _ASBOX |
| 9704 | ) | |
| 9705 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9706 | ;; |
| 9707 | esac |
| 9708 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9710 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9712 | else |
| 9713 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9714 | fi |
| 9715 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9716 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9717 | |
| 9718 | fi |
| 9719 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9720 | cat >>confdefs.h <<_ACEOF |
| 9721 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9722 | _ACEOF |
| 9723 | |
| 9724 | fi |
| 9725 | |
| 9726 | done |
| 9727 | |
| 9728 | |
| 9729 | |
| 9730 | for ac_header in sys/reg.h sys/debugreg.h |
| 9731 | do |
| 9732 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9733 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9734 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9738 | fi |
| 9739 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9740 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9741 | else |
| 9742 | # Is the header compilable? |
| 9743 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9744 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9745 | cat >conftest.$ac_ext <<_ACEOF |
| 9746 | /* confdefs.h. */ |
| 9747 | _ACEOF |
| 9748 | cat confdefs.h >>conftest.$ac_ext |
| 9749 | cat >>conftest.$ac_ext <<_ACEOF |
| 9750 | /* end confdefs.h. */ |
| 9751 | $ac_includes_default |
| 9752 | #include <$ac_header> |
| 9753 | _ACEOF |
| 9754 | rm -f conftest.$ac_objext |
| 9755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9756 | (eval $ac_compile) 2>conftest.er1 |
| 9757 | ac_status=$? |
| 9758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9759 | rm -f conftest.er1 |
| 9760 | cat conftest.err >&5 |
| 9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9762 | (exit $ac_status); } && |
| 9763 | { ac_try='test -z "$ac_c_werror_flag" |
| 9764 | || test ! -s conftest.err' |
| 9765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9766 | (eval $ac_try) 2>&5 |
| 9767 | ac_status=$? |
| 9768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9769 | (exit $ac_status); }; } && |
| 9770 | { ac_try='test -s conftest.$ac_objext' |
| 9771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9772 | (eval $ac_try) 2>&5 |
| 9773 | ac_status=$? |
| 9774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9775 | (exit $ac_status); }; }; then |
| 9776 | ac_header_compiler=yes |
| 9777 | else |
| 9778 | echo "$as_me: failed program was:" >&5 |
| 9779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9780 | |
| 9781 | ac_header_compiler=no |
| 9782 | fi |
| 9783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9784 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9785 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9786 | |
| 9787 | # Is the header present? |
| 9788 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9789 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9790 | cat >conftest.$ac_ext <<_ACEOF |
| 9791 | /* confdefs.h. */ |
| 9792 | _ACEOF |
| 9793 | cat confdefs.h >>conftest.$ac_ext |
| 9794 | cat >>conftest.$ac_ext <<_ACEOF |
| 9795 | /* end confdefs.h. */ |
| 9796 | #include <$ac_header> |
| 9797 | _ACEOF |
| 9798 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9799 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9800 | ac_status=$? |
| 9801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9802 | rm -f conftest.er1 |
| 9803 | cat conftest.err >&5 |
| 9804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9805 | (exit $ac_status); } >/dev/null; then |
| 9806 | if test -s conftest.err; then |
| 9807 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9808 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9809 | else |
| 9810 | ac_cpp_err= |
| 9811 | fi |
| 9812 | else |
| 9813 | ac_cpp_err=yes |
| 9814 | fi |
| 9815 | if test -z "$ac_cpp_err"; then |
| 9816 | ac_header_preproc=yes |
| 9817 | else |
| 9818 | echo "$as_me: failed program was:" >&5 |
| 9819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9820 | |
| 9821 | ac_header_preproc=no |
| 9822 | fi |
| 9823 | rm -f conftest.err conftest.$ac_ext |
| 9824 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9825 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9826 | |
| 9827 | # So? What about this header? |
| 9828 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9829 | yes:no: ) |
| 9830 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9831 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9832 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9833 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9834 | ac_header_preproc=yes |
| 9835 | ;; |
| 9836 | no:yes:* ) |
| 9837 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9838 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9839 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9840 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9841 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9842 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9843 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9844 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9845 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9846 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9847 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9848 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9849 | ( |
| 9850 | cat <<\_ASBOX |
| 9851 | ## ------------------------------------------ ## |
| 9852 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9853 | ## ------------------------------------------ ## |
| 9854 | _ASBOX |
| 9855 | ) | |
| 9856 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9857 | ;; |
| 9858 | esac |
| 9859 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9861 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9863 | else |
| 9864 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9865 | fi |
| 9866 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9867 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9868 | |
| 9869 | fi |
| 9870 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9871 | cat >>confdefs.h <<_ACEOF |
| 9872 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9873 | _ACEOF |
| 9874 | |
| 9875 | fi |
| 9876 | |
| 9877 | done |
| 9878 | |
| 9879 | |
| 9880 | for ac_header in sys/select.h |
| 9881 | do |
| 9882 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9883 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9884 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9885 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9886 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9888 | fi |
| 9889 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9890 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9891 | else |
| 9892 | # Is the header compilable? |
| 9893 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9894 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9895 | cat >conftest.$ac_ext <<_ACEOF |
| 9896 | /* confdefs.h. */ |
| 9897 | _ACEOF |
| 9898 | cat confdefs.h >>conftest.$ac_ext |
| 9899 | cat >>conftest.$ac_ext <<_ACEOF |
| 9900 | /* end confdefs.h. */ |
| 9901 | $ac_includes_default |
| 9902 | #include <$ac_header> |
| 9903 | _ACEOF |
| 9904 | rm -f conftest.$ac_objext |
| 9905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9906 | (eval $ac_compile) 2>conftest.er1 |
| 9907 | ac_status=$? |
| 9908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9909 | rm -f conftest.er1 |
| 9910 | cat conftest.err >&5 |
| 9911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9912 | (exit $ac_status); } && |
| 9913 | { ac_try='test -z "$ac_c_werror_flag" |
| 9914 | || test ! -s conftest.err' |
| 9915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9916 | (eval $ac_try) 2>&5 |
| 9917 | ac_status=$? |
| 9918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9919 | (exit $ac_status); }; } && |
| 9920 | { ac_try='test -s conftest.$ac_objext' |
| 9921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9922 | (eval $ac_try) 2>&5 |
| 9923 | ac_status=$? |
| 9924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9925 | (exit $ac_status); }; }; then |
| 9926 | ac_header_compiler=yes |
| 9927 | else |
| 9928 | echo "$as_me: failed program was:" >&5 |
| 9929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9930 | |
| 9931 | ac_header_compiler=no |
| 9932 | fi |
| 9933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9934 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9935 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9936 | |
| 9937 | # Is the header present? |
| 9938 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9939 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9940 | cat >conftest.$ac_ext <<_ACEOF |
| 9941 | /* confdefs.h. */ |
| 9942 | _ACEOF |
| 9943 | cat confdefs.h >>conftest.$ac_ext |
| 9944 | cat >>conftest.$ac_ext <<_ACEOF |
| 9945 | /* end confdefs.h. */ |
| 9946 | #include <$ac_header> |
| 9947 | _ACEOF |
| 9948 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9949 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9950 | ac_status=$? |
| 9951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9952 | rm -f conftest.er1 |
| 9953 | cat conftest.err >&5 |
| 9954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9955 | (exit $ac_status); } >/dev/null; then |
| 9956 | if test -s conftest.err; then |
| 9957 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9958 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9959 | else |
| 9960 | ac_cpp_err= |
| 9961 | fi |
| 9962 | else |
| 9963 | ac_cpp_err=yes |
| 9964 | fi |
| 9965 | if test -z "$ac_cpp_err"; then |
| 9966 | ac_header_preproc=yes |
| 9967 | else |
| 9968 | echo "$as_me: failed program was:" >&5 |
| 9969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9970 | |
| 9971 | ac_header_preproc=no |
| 9972 | fi |
| 9973 | rm -f conftest.err conftest.$ac_ext |
| 9974 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9975 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9976 | |
| 9977 | # So? What about this header? |
| 9978 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9979 | yes:no: ) |
| 9980 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9981 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9982 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9983 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9984 | ac_header_preproc=yes |
| 9985 | ;; |
| 9986 | no:yes:* ) |
| 9987 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9988 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9989 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9990 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9991 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9992 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9993 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9994 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9995 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9996 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9997 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9998 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9999 | ( |
| 10000 | cat <<\_ASBOX |
| 10001 | ## ------------------------------------------ ## |
| 10002 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10003 | ## ------------------------------------------ ## |
| 10004 | _ASBOX |
| 10005 | ) | |
| 10006 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10007 | ;; |
| 10008 | esac |
| 10009 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10010 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10011 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10013 | else |
| 10014 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10015 | fi |
| 10016 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10017 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10018 | |
| 10019 | fi |
| 10020 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10021 | cat >>confdefs.h <<_ACEOF |
| 10022 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10023 | _ACEOF |
| 10024 | |
| 10025 | fi |
| 10026 | |
| 10027 | done |
| 10028 | |
| 10029 | |
| 10030 | for ac_header in sys/syscall.h |
| 10031 | do |
| 10032 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10033 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10034 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10035 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10036 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10038 | fi |
| 10039 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10040 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10041 | else |
| 10042 | # Is the header compilable? |
| 10043 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10044 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10045 | cat >conftest.$ac_ext <<_ACEOF |
| 10046 | /* confdefs.h. */ |
| 10047 | _ACEOF |
| 10048 | cat confdefs.h >>conftest.$ac_ext |
| 10049 | cat >>conftest.$ac_ext <<_ACEOF |
| 10050 | /* end confdefs.h. */ |
| 10051 | $ac_includes_default |
| 10052 | #include <$ac_header> |
| 10053 | _ACEOF |
| 10054 | rm -f conftest.$ac_objext |
| 10055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10056 | (eval $ac_compile) 2>conftest.er1 |
| 10057 | ac_status=$? |
| 10058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10059 | rm -f conftest.er1 |
| 10060 | cat conftest.err >&5 |
| 10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10062 | (exit $ac_status); } && |
| 10063 | { ac_try='test -z "$ac_c_werror_flag" |
| 10064 | || test ! -s conftest.err' |
| 10065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10066 | (eval $ac_try) 2>&5 |
| 10067 | ac_status=$? |
| 10068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10069 | (exit $ac_status); }; } && |
| 10070 | { ac_try='test -s conftest.$ac_objext' |
| 10071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10072 | (eval $ac_try) 2>&5 |
| 10073 | ac_status=$? |
| 10074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10075 | (exit $ac_status); }; }; then |
| 10076 | ac_header_compiler=yes |
| 10077 | else |
| 10078 | echo "$as_me: failed program was:" >&5 |
| 10079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10080 | |
| 10081 | ac_header_compiler=no |
| 10082 | fi |
| 10083 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10084 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10085 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10086 | |
| 10087 | # Is the header present? |
| 10088 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10089 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10090 | cat >conftest.$ac_ext <<_ACEOF |
| 10091 | /* confdefs.h. */ |
| 10092 | _ACEOF |
| 10093 | cat confdefs.h >>conftest.$ac_ext |
| 10094 | cat >>conftest.$ac_ext <<_ACEOF |
| 10095 | /* end confdefs.h. */ |
| 10096 | #include <$ac_header> |
| 10097 | _ACEOF |
| 10098 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10099 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10100 | ac_status=$? |
| 10101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10102 | rm -f conftest.er1 |
| 10103 | cat conftest.err >&5 |
| 10104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10105 | (exit $ac_status); } >/dev/null; then |
| 10106 | if test -s conftest.err; then |
| 10107 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10108 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10109 | else |
| 10110 | ac_cpp_err= |
| 10111 | fi |
| 10112 | else |
| 10113 | ac_cpp_err=yes |
| 10114 | fi |
| 10115 | if test -z "$ac_cpp_err"; then |
| 10116 | ac_header_preproc=yes |
| 10117 | else |
| 10118 | echo "$as_me: failed program was:" >&5 |
| 10119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10120 | |
| 10121 | ac_header_preproc=no |
| 10122 | fi |
| 10123 | rm -f conftest.err conftest.$ac_ext |
| 10124 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10125 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10126 | |
| 10127 | # So? What about this header? |
| 10128 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10129 | yes:no: ) |
| 10130 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10131 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10132 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10133 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10134 | ac_header_preproc=yes |
| 10135 | ;; |
| 10136 | no:yes:* ) |
| 10137 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10138 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10139 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10140 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10141 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10142 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10143 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10144 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10145 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10146 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10147 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10148 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10149 | ( |
| 10150 | cat <<\_ASBOX |
| 10151 | ## ------------------------------------------ ## |
| 10152 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10153 | ## ------------------------------------------ ## |
| 10154 | _ASBOX |
| 10155 | ) | |
| 10156 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10157 | ;; |
| 10158 | esac |
| 10159 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10160 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10161 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10163 | else |
| 10164 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10165 | fi |
| 10166 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10167 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10168 | |
| 10169 | fi |
| 10170 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10171 | cat >>confdefs.h <<_ACEOF |
| 10172 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10173 | _ACEOF |
| 10174 | |
| 10175 | fi |
| 10176 | |
| 10177 | done |
| 10178 | |
| 10179 | |
| 10180 | for ac_header in sys/types.h |
| 10181 | do |
| 10182 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10183 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10184 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10185 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10186 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10188 | fi |
| 10189 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10190 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10191 | else |
| 10192 | # Is the header compilable? |
| 10193 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10194 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10195 | cat >conftest.$ac_ext <<_ACEOF |
| 10196 | /* confdefs.h. */ |
| 10197 | _ACEOF |
| 10198 | cat confdefs.h >>conftest.$ac_ext |
| 10199 | cat >>conftest.$ac_ext <<_ACEOF |
| 10200 | /* end confdefs.h. */ |
| 10201 | $ac_includes_default |
| 10202 | #include <$ac_header> |
| 10203 | _ACEOF |
| 10204 | rm -f conftest.$ac_objext |
| 10205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10206 | (eval $ac_compile) 2>conftest.er1 |
| 10207 | ac_status=$? |
| 10208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10209 | rm -f conftest.er1 |
| 10210 | cat conftest.err >&5 |
| 10211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10212 | (exit $ac_status); } && |
| 10213 | { ac_try='test -z "$ac_c_werror_flag" |
| 10214 | || test ! -s conftest.err' |
| 10215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10216 | (eval $ac_try) 2>&5 |
| 10217 | ac_status=$? |
| 10218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10219 | (exit $ac_status); }; } && |
| 10220 | { ac_try='test -s conftest.$ac_objext' |
| 10221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10222 | (eval $ac_try) 2>&5 |
| 10223 | ac_status=$? |
| 10224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10225 | (exit $ac_status); }; }; then |
| 10226 | ac_header_compiler=yes |
| 10227 | else |
| 10228 | echo "$as_me: failed program was:" >&5 |
| 10229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10230 | |
| 10231 | ac_header_compiler=no |
| 10232 | fi |
| 10233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10234 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10235 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10236 | |
| 10237 | # Is the header present? |
| 10238 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10239 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10240 | cat >conftest.$ac_ext <<_ACEOF |
| 10241 | /* confdefs.h. */ |
| 10242 | _ACEOF |
| 10243 | cat confdefs.h >>conftest.$ac_ext |
| 10244 | cat >>conftest.$ac_ext <<_ACEOF |
| 10245 | /* end confdefs.h. */ |
| 10246 | #include <$ac_header> |
| 10247 | _ACEOF |
| 10248 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10249 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10250 | ac_status=$? |
| 10251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10252 | rm -f conftest.er1 |
| 10253 | cat conftest.err >&5 |
| 10254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10255 | (exit $ac_status); } >/dev/null; then |
| 10256 | if test -s conftest.err; then |
| 10257 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10258 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10259 | else |
| 10260 | ac_cpp_err= |
| 10261 | fi |
| 10262 | else |
| 10263 | ac_cpp_err=yes |
| 10264 | fi |
| 10265 | if test -z "$ac_cpp_err"; then |
| 10266 | ac_header_preproc=yes |
| 10267 | else |
| 10268 | echo "$as_me: failed program was:" >&5 |
| 10269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10270 | |
| 10271 | ac_header_preproc=no |
| 10272 | fi |
| 10273 | rm -f conftest.err conftest.$ac_ext |
| 10274 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10275 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10276 | |
| 10277 | # So? What about this header? |
| 10278 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10279 | yes:no: ) |
| 10280 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10281 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10282 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10283 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10284 | ac_header_preproc=yes |
| 10285 | ;; |
| 10286 | no:yes:* ) |
| 10287 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10288 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10289 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10290 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10291 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10292 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10293 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10294 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10295 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10296 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10297 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10298 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10299 | ( |
| 10300 | cat <<\_ASBOX |
| 10301 | ## ------------------------------------------ ## |
| 10302 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10303 | ## ------------------------------------------ ## |
| 10304 | _ASBOX |
| 10305 | ) | |
| 10306 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10307 | ;; |
| 10308 | esac |
| 10309 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10313 | else |
| 10314 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10315 | fi |
| 10316 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10317 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10318 | |
| 10319 | fi |
| 10320 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10321 | cat >>confdefs.h <<_ACEOF |
| 10322 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10323 | _ACEOF |
| 10324 | |
| 10325 | fi |
| 10326 | |
| 10327 | done |
| 10328 | |
| 10329 | |
| 10330 | for ac_header in sys/user.h |
| 10331 | do |
| 10332 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10333 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10334 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10335 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10337 | else |
| 10338 | cat >conftest.$ac_ext <<_ACEOF |
| 10339 | /* confdefs.h. */ |
| 10340 | _ACEOF |
| 10341 | cat confdefs.h >>conftest.$ac_ext |
| 10342 | cat >>conftest.$ac_ext <<_ACEOF |
| 10343 | /* end confdefs.h. */ |
| 10344 | #if HAVE_SYS_PARAM_H |
| 10345 | # include <sys/param.h> |
| 10346 | #endif |
| 10347 | |
| 10348 | |
| 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 | eval "$as_ac_Header=yes" |
| 10374 | else |
| 10375 | echo "$as_me: failed program was:" >&5 |
| 10376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10377 | |
| 10378 | eval "$as_ac_Header=no" |
| 10379 | fi |
| 10380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10381 | fi |
| 10382 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10383 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10384 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10385 | cat >>confdefs.h <<_ACEOF |
| 10386 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10387 | _ACEOF |
| 10388 | |
| 10389 | fi |
| 10390 | |
| 10391 | done |
| 10392 | |
| 10393 | |
| 10394 | |
| 10395 | for ac_header in sys/wait.h wait.h |
| 10396 | do |
| 10397 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10398 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10399 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10400 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10401 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10403 | fi |
| 10404 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10405 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10406 | else |
| 10407 | # Is the header compilable? |
| 10408 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10409 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10410 | cat >conftest.$ac_ext <<_ACEOF |
| 10411 | /* confdefs.h. */ |
| 10412 | _ACEOF |
| 10413 | cat confdefs.h >>conftest.$ac_ext |
| 10414 | cat >>conftest.$ac_ext <<_ACEOF |
| 10415 | /* end confdefs.h. */ |
| 10416 | $ac_includes_default |
| 10417 | #include <$ac_header> |
| 10418 | _ACEOF |
| 10419 | rm -f conftest.$ac_objext |
| 10420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10421 | (eval $ac_compile) 2>conftest.er1 |
| 10422 | ac_status=$? |
| 10423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10424 | rm -f conftest.er1 |
| 10425 | cat conftest.err >&5 |
| 10426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10427 | (exit $ac_status); } && |
| 10428 | { ac_try='test -z "$ac_c_werror_flag" |
| 10429 | || test ! -s conftest.err' |
| 10430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10431 | (eval $ac_try) 2>&5 |
| 10432 | ac_status=$? |
| 10433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10434 | (exit $ac_status); }; } && |
| 10435 | { ac_try='test -s conftest.$ac_objext' |
| 10436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10437 | (eval $ac_try) 2>&5 |
| 10438 | ac_status=$? |
| 10439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10440 | (exit $ac_status); }; }; then |
| 10441 | ac_header_compiler=yes |
| 10442 | else |
| 10443 | echo "$as_me: failed program was:" >&5 |
| 10444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10445 | |
| 10446 | ac_header_compiler=no |
| 10447 | fi |
| 10448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10449 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10450 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10451 | |
| 10452 | # Is the header present? |
| 10453 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10454 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10455 | cat >conftest.$ac_ext <<_ACEOF |
| 10456 | /* confdefs.h. */ |
| 10457 | _ACEOF |
| 10458 | cat confdefs.h >>conftest.$ac_ext |
| 10459 | cat >>conftest.$ac_ext <<_ACEOF |
| 10460 | /* end confdefs.h. */ |
| 10461 | #include <$ac_header> |
| 10462 | _ACEOF |
| 10463 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10464 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10465 | ac_status=$? |
| 10466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10467 | rm -f conftest.er1 |
| 10468 | cat conftest.err >&5 |
| 10469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10470 | (exit $ac_status); } >/dev/null; then |
| 10471 | if test -s conftest.err; then |
| 10472 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10473 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10474 | else |
| 10475 | ac_cpp_err= |
| 10476 | fi |
| 10477 | else |
| 10478 | ac_cpp_err=yes |
| 10479 | fi |
| 10480 | if test -z "$ac_cpp_err"; then |
| 10481 | ac_header_preproc=yes |
| 10482 | else |
| 10483 | echo "$as_me: failed program was:" >&5 |
| 10484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10485 | |
| 10486 | ac_header_preproc=no |
| 10487 | fi |
| 10488 | rm -f conftest.err conftest.$ac_ext |
| 10489 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10490 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10491 | |
| 10492 | # So? What about this header? |
| 10493 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10494 | yes:no: ) |
| 10495 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10496 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10498 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10499 | ac_header_preproc=yes |
| 10500 | ;; |
| 10501 | no:yes:* ) |
| 10502 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10503 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10504 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10505 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10506 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10507 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10508 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10509 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10510 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10511 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10512 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10513 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10514 | ( |
| 10515 | cat <<\_ASBOX |
| 10516 | ## ------------------------------------------ ## |
| 10517 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10518 | ## ------------------------------------------ ## |
| 10519 | _ASBOX |
| 10520 | ) | |
| 10521 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10522 | ;; |
| 10523 | esac |
| 10524 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10526 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10528 | else |
| 10529 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10530 | fi |
| 10531 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10532 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10533 | |
| 10534 | fi |
| 10535 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10536 | cat >>confdefs.h <<_ACEOF |
| 10537 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10538 | _ACEOF |
| 10539 | |
| 10540 | fi |
| 10541 | |
| 10542 | done |
| 10543 | |
| 10544 | |
| 10545 | |
| 10546 | |
| 10547 | for ac_header in termios.h termio.h sgtty.h |
| 10548 | do |
| 10549 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10550 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10551 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10552 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10553 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10555 | fi |
| 10556 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10557 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10558 | else |
| 10559 | # Is the header compilable? |
| 10560 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10561 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10562 | cat >conftest.$ac_ext <<_ACEOF |
| 10563 | /* confdefs.h. */ |
| 10564 | _ACEOF |
| 10565 | cat confdefs.h >>conftest.$ac_ext |
| 10566 | cat >>conftest.$ac_ext <<_ACEOF |
| 10567 | /* end confdefs.h. */ |
| 10568 | $ac_includes_default |
| 10569 | #include <$ac_header> |
| 10570 | _ACEOF |
| 10571 | rm -f conftest.$ac_objext |
| 10572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10573 | (eval $ac_compile) 2>conftest.er1 |
| 10574 | ac_status=$? |
| 10575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10576 | rm -f conftest.er1 |
| 10577 | cat conftest.err >&5 |
| 10578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10579 | (exit $ac_status); } && |
| 10580 | { ac_try='test -z "$ac_c_werror_flag" |
| 10581 | || test ! -s conftest.err' |
| 10582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10583 | (eval $ac_try) 2>&5 |
| 10584 | ac_status=$? |
| 10585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10586 | (exit $ac_status); }; } && |
| 10587 | { ac_try='test -s conftest.$ac_objext' |
| 10588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10589 | (eval $ac_try) 2>&5 |
| 10590 | ac_status=$? |
| 10591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10592 | (exit $ac_status); }; }; then |
| 10593 | ac_header_compiler=yes |
| 10594 | else |
| 10595 | echo "$as_me: failed program was:" >&5 |
| 10596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10597 | |
| 10598 | ac_header_compiler=no |
| 10599 | fi |
| 10600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10601 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10602 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10603 | |
| 10604 | # Is the header present? |
| 10605 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10606 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10607 | cat >conftest.$ac_ext <<_ACEOF |
| 10608 | /* confdefs.h. */ |
| 10609 | _ACEOF |
| 10610 | cat confdefs.h >>conftest.$ac_ext |
| 10611 | cat >>conftest.$ac_ext <<_ACEOF |
| 10612 | /* end confdefs.h. */ |
| 10613 | #include <$ac_header> |
| 10614 | _ACEOF |
| 10615 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10616 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10617 | ac_status=$? |
| 10618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10619 | rm -f conftest.er1 |
| 10620 | cat conftest.err >&5 |
| 10621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10622 | (exit $ac_status); } >/dev/null; then |
| 10623 | if test -s conftest.err; then |
| 10624 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10625 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10626 | else |
| 10627 | ac_cpp_err= |
| 10628 | fi |
| 10629 | else |
| 10630 | ac_cpp_err=yes |
| 10631 | fi |
| 10632 | if test -z "$ac_cpp_err"; then |
| 10633 | ac_header_preproc=yes |
| 10634 | else |
| 10635 | echo "$as_me: failed program was:" >&5 |
| 10636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10637 | |
| 10638 | ac_header_preproc=no |
| 10639 | fi |
| 10640 | rm -f conftest.err conftest.$ac_ext |
| 10641 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10642 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10643 | |
| 10644 | # So? What about this header? |
| 10645 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10646 | yes:no: ) |
| 10647 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10648 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10649 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10650 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10651 | ac_header_preproc=yes |
| 10652 | ;; |
| 10653 | no:yes:* ) |
| 10654 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10655 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10656 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10657 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10658 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10659 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10660 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10661 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10662 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10663 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10664 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10665 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10666 | ( |
| 10667 | cat <<\_ASBOX |
| 10668 | ## ------------------------------------------ ## |
| 10669 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10670 | ## ------------------------------------------ ## |
| 10671 | _ASBOX |
| 10672 | ) | |
| 10673 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10674 | ;; |
| 10675 | esac |
| 10676 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10677 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10678 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10680 | else |
| 10681 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10682 | fi |
| 10683 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10684 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10685 | |
| 10686 | fi |
| 10687 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10688 | cat >>confdefs.h <<_ACEOF |
| 10689 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10690 | _ACEOF |
| 10691 | |
| 10692 | fi |
| 10693 | |
| 10694 | done |
| 10695 | |
| 10696 | |
| 10697 | for ac_header in unistd.h |
| 10698 | do |
| 10699 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10701 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10702 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10703 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10705 | fi |
| 10706 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10707 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10708 | else |
| 10709 | # Is the header compilable? |
| 10710 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10711 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10712 | cat >conftest.$ac_ext <<_ACEOF |
| 10713 | /* confdefs.h. */ |
| 10714 | _ACEOF |
| 10715 | cat confdefs.h >>conftest.$ac_ext |
| 10716 | cat >>conftest.$ac_ext <<_ACEOF |
| 10717 | /* end confdefs.h. */ |
| 10718 | $ac_includes_default |
| 10719 | #include <$ac_header> |
| 10720 | _ACEOF |
| 10721 | rm -f conftest.$ac_objext |
| 10722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10723 | (eval $ac_compile) 2>conftest.er1 |
| 10724 | ac_status=$? |
| 10725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10726 | rm -f conftest.er1 |
| 10727 | cat conftest.err >&5 |
| 10728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10729 | (exit $ac_status); } && |
| 10730 | { ac_try='test -z "$ac_c_werror_flag" |
| 10731 | || test ! -s conftest.err' |
| 10732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10733 | (eval $ac_try) 2>&5 |
| 10734 | ac_status=$? |
| 10735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10736 | (exit $ac_status); }; } && |
| 10737 | { ac_try='test -s conftest.$ac_objext' |
| 10738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10739 | (eval $ac_try) 2>&5 |
| 10740 | ac_status=$? |
| 10741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10742 | (exit $ac_status); }; }; then |
| 10743 | ac_header_compiler=yes |
| 10744 | else |
| 10745 | echo "$as_me: failed program was:" >&5 |
| 10746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10747 | |
| 10748 | ac_header_compiler=no |
| 10749 | fi |
| 10750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10751 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10752 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10753 | |
| 10754 | # Is the header present? |
| 10755 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10756 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10757 | cat >conftest.$ac_ext <<_ACEOF |
| 10758 | /* confdefs.h. */ |
| 10759 | _ACEOF |
| 10760 | cat confdefs.h >>conftest.$ac_ext |
| 10761 | cat >>conftest.$ac_ext <<_ACEOF |
| 10762 | /* end confdefs.h. */ |
| 10763 | #include <$ac_header> |
| 10764 | _ACEOF |
| 10765 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10766 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10767 | ac_status=$? |
| 10768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10769 | rm -f conftest.er1 |
| 10770 | cat conftest.err >&5 |
| 10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10772 | (exit $ac_status); } >/dev/null; then |
| 10773 | if test -s conftest.err; then |
| 10774 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10775 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10776 | else |
| 10777 | ac_cpp_err= |
| 10778 | fi |
| 10779 | else |
| 10780 | ac_cpp_err=yes |
| 10781 | fi |
| 10782 | if test -z "$ac_cpp_err"; then |
| 10783 | ac_header_preproc=yes |
| 10784 | else |
| 10785 | echo "$as_me: failed program was:" >&5 |
| 10786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10787 | |
| 10788 | ac_header_preproc=no |
| 10789 | fi |
| 10790 | rm -f conftest.err conftest.$ac_ext |
| 10791 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10792 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10793 | |
| 10794 | # So? What about this header? |
| 10795 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10796 | yes:no: ) |
| 10797 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10798 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10799 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10800 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10801 | ac_header_preproc=yes |
| 10802 | ;; |
| 10803 | no:yes:* ) |
| 10804 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10805 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10806 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10807 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10808 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10809 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10810 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10811 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10812 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10813 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10814 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10815 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10816 | ( |
| 10817 | cat <<\_ASBOX |
| 10818 | ## ------------------------------------------ ## |
| 10819 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10820 | ## ------------------------------------------ ## |
| 10821 | _ASBOX |
| 10822 | ) | |
| 10823 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10824 | ;; |
| 10825 | esac |
| 10826 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10828 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10830 | else |
| 10831 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10832 | fi |
| 10833 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10834 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10835 | |
| 10836 | fi |
| 10837 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10838 | cat >>confdefs.h <<_ACEOF |
| 10839 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10840 | _ACEOF |
| 10841 | |
| 10842 | fi |
| 10843 | |
| 10844 | done |
| 10845 | |
| 10846 | |
| 10847 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
| 10848 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
| 10849 | # think that we don't have <curses.h> if we're using GCC. |
| 10850 | case $host_os in |
| 10851 | solaris2.[789]) |
| 10852 | if test "$GCC" = yes; then |
| 10853 | |
| 10854 | cat >>confdefs.h <<\_ACEOF |
| 10855 | #define _MSE_INT_H 1 |
| 10856 | _ACEOF |
| 10857 | |
| 10858 | fi ;; |
| 10859 | esac |
| 10860 | |
| 10861 | |
| 10862 | |
| 10863 | |
| 10864 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h |
| 10865 | do |
| 10866 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10867 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10868 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10869 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10870 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10872 | fi |
| 10873 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10874 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10875 | else |
| 10876 | # Is the header compilable? |
| 10877 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10878 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10879 | cat >conftest.$ac_ext <<_ACEOF |
| 10880 | /* confdefs.h. */ |
| 10881 | _ACEOF |
| 10882 | cat confdefs.h >>conftest.$ac_ext |
| 10883 | cat >>conftest.$ac_ext <<_ACEOF |
| 10884 | /* end confdefs.h. */ |
| 10885 | $ac_includes_default |
| 10886 | #include <$ac_header> |
| 10887 | _ACEOF |
| 10888 | rm -f conftest.$ac_objext |
| 10889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10890 | (eval $ac_compile) 2>conftest.er1 |
| 10891 | ac_status=$? |
| 10892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10893 | rm -f conftest.er1 |
| 10894 | cat conftest.err >&5 |
| 10895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10896 | (exit $ac_status); } && |
| 10897 | { ac_try='test -z "$ac_c_werror_flag" |
| 10898 | || test ! -s conftest.err' |
| 10899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10900 | (eval $ac_try) 2>&5 |
| 10901 | ac_status=$? |
| 10902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10903 | (exit $ac_status); }; } && |
| 10904 | { ac_try='test -s conftest.$ac_objext' |
| 10905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10906 | (eval $ac_try) 2>&5 |
| 10907 | ac_status=$? |
| 10908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10909 | (exit $ac_status); }; }; then |
| 10910 | ac_header_compiler=yes |
| 10911 | else |
| 10912 | echo "$as_me: failed program was:" >&5 |
| 10913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10914 | |
| 10915 | ac_header_compiler=no |
| 10916 | fi |
| 10917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10918 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10919 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10920 | |
| 10921 | # Is the header present? |
| 10922 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10923 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10924 | cat >conftest.$ac_ext <<_ACEOF |
| 10925 | /* confdefs.h. */ |
| 10926 | _ACEOF |
| 10927 | cat confdefs.h >>conftest.$ac_ext |
| 10928 | cat >>conftest.$ac_ext <<_ACEOF |
| 10929 | /* end confdefs.h. */ |
| 10930 | #include <$ac_header> |
| 10931 | _ACEOF |
| 10932 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10933 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10934 | ac_status=$? |
| 10935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10936 | rm -f conftest.er1 |
| 10937 | cat conftest.err >&5 |
| 10938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10939 | (exit $ac_status); } >/dev/null; then |
| 10940 | if test -s conftest.err; then |
| 10941 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10942 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10943 | else |
| 10944 | ac_cpp_err= |
| 10945 | fi |
| 10946 | else |
| 10947 | ac_cpp_err=yes |
| 10948 | fi |
| 10949 | if test -z "$ac_cpp_err"; then |
| 10950 | ac_header_preproc=yes |
| 10951 | else |
| 10952 | echo "$as_me: failed program was:" >&5 |
| 10953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10954 | |
| 10955 | ac_header_preproc=no |
| 10956 | fi |
| 10957 | rm -f conftest.err conftest.$ac_ext |
| 10958 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10959 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10960 | |
| 10961 | # So? What about this header? |
| 10962 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10963 | yes:no: ) |
| 10964 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10965 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10966 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10967 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10968 | ac_header_preproc=yes |
| 10969 | ;; |
| 10970 | no:yes:* ) |
| 10971 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10972 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10973 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10974 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10975 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10976 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10977 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10978 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10979 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10980 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10981 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10982 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10983 | ( |
| 10984 | cat <<\_ASBOX |
| 10985 | ## ------------------------------------------ ## |
| 10986 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10987 | ## ------------------------------------------ ## |
| 10988 | _ASBOX |
| 10989 | ) | |
| 10990 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10991 | ;; |
| 10992 | esac |
| 10993 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10994 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10995 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10997 | else |
| 10998 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10999 | fi |
| 11000 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11001 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11002 | |
| 11003 | fi |
| 11004 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11005 | cat >>confdefs.h <<_ACEOF |
| 11006 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11007 | _ACEOF |
| 11008 | |
| 11009 | fi |
| 11010 | |
| 11011 | done |
| 11012 | |
| 11013 | |
| 11014 | for ac_header in ncurses/term.h |
| 11015 | do |
| 11016 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11017 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11018 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11019 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11020 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11022 | fi |
| 11023 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11024 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11025 | else |
| 11026 | # Is the header compilable? |
| 11027 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11028 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11029 | cat >conftest.$ac_ext <<_ACEOF |
| 11030 | /* confdefs.h. */ |
| 11031 | _ACEOF |
| 11032 | cat confdefs.h >>conftest.$ac_ext |
| 11033 | cat >>conftest.$ac_ext <<_ACEOF |
| 11034 | /* end confdefs.h. */ |
| 11035 | $ac_includes_default |
| 11036 | #include <$ac_header> |
| 11037 | _ACEOF |
| 11038 | rm -f conftest.$ac_objext |
| 11039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11040 | (eval $ac_compile) 2>conftest.er1 |
| 11041 | ac_status=$? |
| 11042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11043 | rm -f conftest.er1 |
| 11044 | cat conftest.err >&5 |
| 11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11046 | (exit $ac_status); } && |
| 11047 | { ac_try='test -z "$ac_c_werror_flag" |
| 11048 | || test ! -s conftest.err' |
| 11049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11050 | (eval $ac_try) 2>&5 |
| 11051 | ac_status=$? |
| 11052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11053 | (exit $ac_status); }; } && |
| 11054 | { ac_try='test -s conftest.$ac_objext' |
| 11055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11056 | (eval $ac_try) 2>&5 |
| 11057 | ac_status=$? |
| 11058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11059 | (exit $ac_status); }; }; then |
| 11060 | ac_header_compiler=yes |
| 11061 | else |
| 11062 | echo "$as_me: failed program was:" >&5 |
| 11063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11064 | |
| 11065 | ac_header_compiler=no |
| 11066 | fi |
| 11067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11068 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11069 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11070 | |
| 11071 | # Is the header present? |
| 11072 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11073 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11074 | cat >conftest.$ac_ext <<_ACEOF |
| 11075 | /* confdefs.h. */ |
| 11076 | _ACEOF |
| 11077 | cat confdefs.h >>conftest.$ac_ext |
| 11078 | cat >>conftest.$ac_ext <<_ACEOF |
| 11079 | /* end confdefs.h. */ |
| 11080 | #include <$ac_header> |
| 11081 | _ACEOF |
| 11082 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11083 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11084 | ac_status=$? |
| 11085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11086 | rm -f conftest.er1 |
| 11087 | cat conftest.err >&5 |
| 11088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11089 | (exit $ac_status); } >/dev/null; then |
| 11090 | if test -s conftest.err; then |
| 11091 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11092 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11093 | else |
| 11094 | ac_cpp_err= |
| 11095 | fi |
| 11096 | else |
| 11097 | ac_cpp_err=yes |
| 11098 | fi |
| 11099 | if test -z "$ac_cpp_err"; then |
| 11100 | ac_header_preproc=yes |
| 11101 | else |
| 11102 | echo "$as_me: failed program was:" >&5 |
| 11103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11104 | |
| 11105 | ac_header_preproc=no |
| 11106 | fi |
| 11107 | rm -f conftest.err conftest.$ac_ext |
| 11108 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11109 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11110 | |
| 11111 | # So? What about this header? |
| 11112 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11113 | yes:no: ) |
| 11114 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11115 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11117 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11118 | ac_header_preproc=yes |
| 11119 | ;; |
| 11120 | no:yes:* ) |
| 11121 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11122 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11123 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11124 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11125 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11126 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11127 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11128 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11129 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11130 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11131 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11132 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11133 | ( |
| 11134 | cat <<\_ASBOX |
| 11135 | ## ------------------------------------------ ## |
| 11136 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 11137 | ## ------------------------------------------ ## |
| 11138 | _ASBOX |
| 11139 | ) | |
| 11140 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11141 | ;; |
| 11142 | esac |
| 11143 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11144 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11145 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11147 | else |
| 11148 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11149 | fi |
| 11150 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11151 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11152 | |
| 11153 | fi |
| 11154 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11155 | cat >>confdefs.h <<_ACEOF |
| 11156 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11157 | _ACEOF |
| 11158 | |
| 11159 | fi |
| 11160 | |
| 11161 | done |
| 11162 | |
| 11163 | |
| 11164 | for ac_header in term.h |
| 11165 | do |
| 11166 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11167 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11168 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11169 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11171 | else |
| 11172 | cat >conftest.$ac_ext <<_ACEOF |
| 11173 | /* confdefs.h. */ |
| 11174 | _ACEOF |
| 11175 | cat confdefs.h >>conftest.$ac_ext |
| 11176 | cat >>conftest.$ac_ext <<_ACEOF |
| 11177 | /* end confdefs.h. */ |
| 11178 | #if HAVE_CURSES_H |
| 11179 | # include <curses.h> |
| 11180 | #endif |
| 11181 | |
| 11182 | |
| 11183 | #include <$ac_header> |
| 11184 | _ACEOF |
| 11185 | rm -f conftest.$ac_objext |
| 11186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11187 | (eval $ac_compile) 2>conftest.er1 |
| 11188 | ac_status=$? |
| 11189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11190 | rm -f conftest.er1 |
| 11191 | cat conftest.err >&5 |
| 11192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11193 | (exit $ac_status); } && |
| 11194 | { ac_try='test -z "$ac_c_werror_flag" |
| 11195 | || test ! -s conftest.err' |
| 11196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11197 | (eval $ac_try) 2>&5 |
| 11198 | ac_status=$? |
| 11199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11200 | (exit $ac_status); }; } && |
| 11201 | { ac_try='test -s conftest.$ac_objext' |
| 11202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11203 | (eval $ac_try) 2>&5 |
| 11204 | ac_status=$? |
| 11205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11206 | (exit $ac_status); }; }; then |
| 11207 | eval "$as_ac_Header=yes" |
| 11208 | else |
| 11209 | echo "$as_me: failed program was:" >&5 |
| 11210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11211 | |
| 11212 | eval "$as_ac_Header=no" |
| 11213 | fi |
| 11214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11215 | fi |
| 11216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11217 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11218 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11219 | cat >>confdefs.h <<_ACEOF |
| 11220 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11221 | _ACEOF |
| 11222 | |
| 11223 | fi |
| 11224 | |
| 11225 | done |
| 11226 | |
| 11227 | |
| 11228 | # FIXME: kettenis/20030102: In most cases we include these |
| 11229 | # unconditionally, so what's the point in checking these? |
| 11230 | |
| 11231 | |
| 11232 | for ac_header in ctype.h time.h |
| 11233 | do |
| 11234 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11235 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11236 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11237 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11238 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11240 | fi |
| 11241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11242 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11243 | else |
| 11244 | # Is the header compilable? |
| 11245 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11246 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11247 | cat >conftest.$ac_ext <<_ACEOF |
| 11248 | /* confdefs.h. */ |
| 11249 | _ACEOF |
| 11250 | cat confdefs.h >>conftest.$ac_ext |
| 11251 | cat >>conftest.$ac_ext <<_ACEOF |
| 11252 | /* end confdefs.h. */ |
| 11253 | $ac_includes_default |
| 11254 | #include <$ac_header> |
| 11255 | _ACEOF |
| 11256 | rm -f conftest.$ac_objext |
| 11257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11258 | (eval $ac_compile) 2>conftest.er1 |
| 11259 | ac_status=$? |
| 11260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11261 | rm -f conftest.er1 |
| 11262 | cat conftest.err >&5 |
| 11263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11264 | (exit $ac_status); } && |
| 11265 | { ac_try='test -z "$ac_c_werror_flag" |
| 11266 | || test ! -s conftest.err' |
| 11267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11268 | (eval $ac_try) 2>&5 |
| 11269 | ac_status=$? |
| 11270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11271 | (exit $ac_status); }; } && |
| 11272 | { ac_try='test -s conftest.$ac_objext' |
| 11273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11274 | (eval $ac_try) 2>&5 |
| 11275 | ac_status=$? |
| 11276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11277 | (exit $ac_status); }; }; then |
| 11278 | ac_header_compiler=yes |
| 11279 | else |
| 11280 | echo "$as_me: failed program was:" >&5 |
| 11281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11282 | |
| 11283 | ac_header_compiler=no |
| 11284 | fi |
| 11285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11286 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11287 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11288 | |
| 11289 | # Is the header present? |
| 11290 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11291 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11292 | cat >conftest.$ac_ext <<_ACEOF |
| 11293 | /* confdefs.h. */ |
| 11294 | _ACEOF |
| 11295 | cat confdefs.h >>conftest.$ac_ext |
| 11296 | cat >>conftest.$ac_ext <<_ACEOF |
| 11297 | /* end confdefs.h. */ |
| 11298 | #include <$ac_header> |
| 11299 | _ACEOF |
| 11300 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11301 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11302 | ac_status=$? |
| 11303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11304 | rm -f conftest.er1 |
| 11305 | cat conftest.err >&5 |
| 11306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11307 | (exit $ac_status); } >/dev/null; then |
| 11308 | if test -s conftest.err; then |
| 11309 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11310 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11311 | else |
| 11312 | ac_cpp_err= |
| 11313 | fi |
| 11314 | else |
| 11315 | ac_cpp_err=yes |
| 11316 | fi |
| 11317 | if test -z "$ac_cpp_err"; then |
| 11318 | ac_header_preproc=yes |
| 11319 | else |
| 11320 | echo "$as_me: failed program was:" >&5 |
| 11321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11322 | |
| 11323 | ac_header_preproc=no |
| 11324 | fi |
| 11325 | rm -f conftest.err conftest.$ac_ext |
| 11326 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11327 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11328 | |
| 11329 | # So? What about this header? |
| 11330 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11331 | yes:no: ) |
| 11332 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11333 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11334 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11335 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11336 | ac_header_preproc=yes |
| 11337 | ;; |
| 11338 | no:yes:* ) |
| 11339 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11340 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11341 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11342 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11343 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11344 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11345 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11346 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11347 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11348 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11349 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11350 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11351 | ( |
| 11352 | cat <<\_ASBOX |
| 11353 | ## ------------------------------------------ ## |
| 11354 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 11355 | ## ------------------------------------------ ## |
| 11356 | _ASBOX |
| 11357 | ) | |
| 11358 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11359 | ;; |
| 11360 | esac |
| 11361 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11362 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11365 | else |
| 11366 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11367 | fi |
| 11368 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11369 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11370 | |
| 11371 | fi |
| 11372 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11373 | cat >>confdefs.h <<_ACEOF |
| 11374 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11375 | _ACEOF |
| 11376 | |
| 11377 | fi |
| 11378 | |
| 11379 | done |
| 11380 | |
| 11381 | |
| 11382 | # Create a header we can use portably to get the standard integer types. |
| 11383 | |
| 11384 | |
| 11385 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
| 11386 | |
| 11387 | acx_cv_header_stdint=stddef.h |
| 11388 | acx_cv_header_stdint_kind="(already complete)" |
| 11389 | for i in stdint.h $inttype_headers; do |
| 11390 | unset ac_cv_type_uintptr_t |
| 11391 | unset ac_cv_type_uintmax_t |
| 11392 | unset ac_cv_type_int_least32_t |
| 11393 | unset ac_cv_type_int_fast32_t |
| 11394 | unset ac_cv_type_uint64_t |
| 11395 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 |
| 11396 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
| 11397 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 |
| 11398 | if test "${ac_cv_type_uintmax_t+set}" = set; then |
| 11399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11400 | else |
| 11401 | cat >conftest.$ac_ext <<_ACEOF |
| 11402 | /* confdefs.h. */ |
| 11403 | _ACEOF |
| 11404 | cat confdefs.h >>conftest.$ac_ext |
| 11405 | cat >>conftest.$ac_ext <<_ACEOF |
| 11406 | /* end confdefs.h. */ |
| 11407 | #include <sys/types.h> |
| 11408 | #include <$i> |
| 11409 | |
| 11410 | int |
| 11411 | main () |
| 11412 | { |
| 11413 | if ((uintmax_t *) 0) |
| 11414 | return 0; |
| 11415 | if (sizeof (uintmax_t)) |
| 11416 | return 0; |
| 11417 | ; |
| 11418 | return 0; |
| 11419 | } |
| 11420 | _ACEOF |
| 11421 | rm -f conftest.$ac_objext |
| 11422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11423 | (eval $ac_compile) 2>conftest.er1 |
| 11424 | ac_status=$? |
| 11425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11426 | rm -f conftest.er1 |
| 11427 | cat conftest.err >&5 |
| 11428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11429 | (exit $ac_status); } && |
| 11430 | { ac_try='test -z "$ac_c_werror_flag" |
| 11431 | || test ! -s conftest.err' |
| 11432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11433 | (eval $ac_try) 2>&5 |
| 11434 | ac_status=$? |
| 11435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11436 | (exit $ac_status); }; } && |
| 11437 | { ac_try='test -s conftest.$ac_objext' |
| 11438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11439 | (eval $ac_try) 2>&5 |
| 11440 | ac_status=$? |
| 11441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11442 | (exit $ac_status); }; }; then |
| 11443 | ac_cv_type_uintmax_t=yes |
| 11444 | else |
| 11445 | echo "$as_me: failed program was:" >&5 |
| 11446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11447 | |
| 11448 | ac_cv_type_uintmax_t=no |
| 11449 | fi |
| 11450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11451 | fi |
| 11452 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 |
| 11453 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 |
| 11454 | if test $ac_cv_type_uintmax_t = yes; then |
| 11455 | acx_cv_header_stdint=$i |
| 11456 | else |
| 11457 | continue |
| 11458 | fi |
| 11459 | |
| 11460 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 11461 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 11462 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 11463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11464 | else |
| 11465 | cat >conftest.$ac_ext <<_ACEOF |
| 11466 | /* confdefs.h. */ |
| 11467 | _ACEOF |
| 11468 | cat confdefs.h >>conftest.$ac_ext |
| 11469 | cat >>conftest.$ac_ext <<_ACEOF |
| 11470 | /* end confdefs.h. */ |
| 11471 | #include <sys/types.h> |
| 11472 | #include <$i> |
| 11473 | |
| 11474 | int |
| 11475 | main () |
| 11476 | { |
| 11477 | if ((uintptr_t *) 0) |
| 11478 | return 0; |
| 11479 | if (sizeof (uintptr_t)) |
| 11480 | return 0; |
| 11481 | ; |
| 11482 | return 0; |
| 11483 | } |
| 11484 | _ACEOF |
| 11485 | rm -f conftest.$ac_objext |
| 11486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11487 | (eval $ac_compile) 2>conftest.er1 |
| 11488 | ac_status=$? |
| 11489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11490 | rm -f conftest.er1 |
| 11491 | cat conftest.err >&5 |
| 11492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11493 | (exit $ac_status); } && |
| 11494 | { ac_try='test -z "$ac_c_werror_flag" |
| 11495 | || test ! -s conftest.err' |
| 11496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11497 | (eval $ac_try) 2>&5 |
| 11498 | ac_status=$? |
| 11499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11500 | (exit $ac_status); }; } && |
| 11501 | { ac_try='test -s conftest.$ac_objext' |
| 11502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11503 | (eval $ac_try) 2>&5 |
| 11504 | ac_status=$? |
| 11505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11506 | (exit $ac_status); }; }; then |
| 11507 | ac_cv_type_uintptr_t=yes |
| 11508 | else |
| 11509 | echo "$as_me: failed program was:" >&5 |
| 11510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11511 | |
| 11512 | ac_cv_type_uintptr_t=no |
| 11513 | fi |
| 11514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11515 | fi |
| 11516 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 11517 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 11518 | if test $ac_cv_type_uintptr_t = yes; then |
| 11519 | : |
| 11520 | else |
| 11521 | acx_cv_header_stdint_kind="(mostly complete)" |
| 11522 | fi |
| 11523 | |
| 11524 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 |
| 11525 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 |
| 11526 | if test "${ac_cv_type_int_least32_t+set}" = set; then |
| 11527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11528 | else |
| 11529 | cat >conftest.$ac_ext <<_ACEOF |
| 11530 | /* confdefs.h. */ |
| 11531 | _ACEOF |
| 11532 | cat confdefs.h >>conftest.$ac_ext |
| 11533 | cat >>conftest.$ac_ext <<_ACEOF |
| 11534 | /* end confdefs.h. */ |
| 11535 | #include <sys/types.h> |
| 11536 | #include <$i> |
| 11537 | |
| 11538 | int |
| 11539 | main () |
| 11540 | { |
| 11541 | if ((int_least32_t *) 0) |
| 11542 | return 0; |
| 11543 | if (sizeof (int_least32_t)) |
| 11544 | return 0; |
| 11545 | ; |
| 11546 | return 0; |
| 11547 | } |
| 11548 | _ACEOF |
| 11549 | rm -f conftest.$ac_objext |
| 11550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11551 | (eval $ac_compile) 2>conftest.er1 |
| 11552 | ac_status=$? |
| 11553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11554 | rm -f conftest.er1 |
| 11555 | cat conftest.err >&5 |
| 11556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11557 | (exit $ac_status); } && |
| 11558 | { ac_try='test -z "$ac_c_werror_flag" |
| 11559 | || test ! -s conftest.err' |
| 11560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11561 | (eval $ac_try) 2>&5 |
| 11562 | ac_status=$? |
| 11563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11564 | (exit $ac_status); }; } && |
| 11565 | { ac_try='test -s conftest.$ac_objext' |
| 11566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11567 | (eval $ac_try) 2>&5 |
| 11568 | ac_status=$? |
| 11569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11570 | (exit $ac_status); }; }; then |
| 11571 | ac_cv_type_int_least32_t=yes |
| 11572 | else |
| 11573 | echo "$as_me: failed program was:" >&5 |
| 11574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11575 | |
| 11576 | ac_cv_type_int_least32_t=no |
| 11577 | fi |
| 11578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11579 | fi |
| 11580 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 |
| 11581 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 |
| 11582 | if test $ac_cv_type_int_least32_t = yes; then |
| 11583 | : |
| 11584 | else |
| 11585 | acx_cv_header_stdint_kind="(mostly complete)" |
| 11586 | fi |
| 11587 | |
| 11588 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 |
| 11589 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 |
| 11590 | if test "${ac_cv_type_int_fast32_t+set}" = set; then |
| 11591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11592 | else |
| 11593 | cat >conftest.$ac_ext <<_ACEOF |
| 11594 | /* confdefs.h. */ |
| 11595 | _ACEOF |
| 11596 | cat confdefs.h >>conftest.$ac_ext |
| 11597 | cat >>conftest.$ac_ext <<_ACEOF |
| 11598 | /* end confdefs.h. */ |
| 11599 | #include <sys/types.h> |
| 11600 | #include <$i> |
| 11601 | |
| 11602 | int |
| 11603 | main () |
| 11604 | { |
| 11605 | if ((int_fast32_t *) 0) |
| 11606 | return 0; |
| 11607 | if (sizeof (int_fast32_t)) |
| 11608 | return 0; |
| 11609 | ; |
| 11610 | return 0; |
| 11611 | } |
| 11612 | _ACEOF |
| 11613 | rm -f conftest.$ac_objext |
| 11614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11615 | (eval $ac_compile) 2>conftest.er1 |
| 11616 | ac_status=$? |
| 11617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11618 | rm -f conftest.er1 |
| 11619 | cat conftest.err >&5 |
| 11620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11621 | (exit $ac_status); } && |
| 11622 | { ac_try='test -z "$ac_c_werror_flag" |
| 11623 | || test ! -s conftest.err' |
| 11624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11625 | (eval $ac_try) 2>&5 |
| 11626 | ac_status=$? |
| 11627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11628 | (exit $ac_status); }; } && |
| 11629 | { ac_try='test -s conftest.$ac_objext' |
| 11630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11631 | (eval $ac_try) 2>&5 |
| 11632 | ac_status=$? |
| 11633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11634 | (exit $ac_status); }; }; then |
| 11635 | ac_cv_type_int_fast32_t=yes |
| 11636 | else |
| 11637 | echo "$as_me: failed program was:" >&5 |
| 11638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11639 | |
| 11640 | ac_cv_type_int_fast32_t=no |
| 11641 | fi |
| 11642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11643 | fi |
| 11644 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 |
| 11645 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 |
| 11646 | if test $ac_cv_type_int_fast32_t = yes; then |
| 11647 | : |
| 11648 | else |
| 11649 | acx_cv_header_stdint_kind="(mostly complete)" |
| 11650 | fi |
| 11651 | |
| 11652 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 11653 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 11654 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 11655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11656 | else |
| 11657 | cat >conftest.$ac_ext <<_ACEOF |
| 11658 | /* confdefs.h. */ |
| 11659 | _ACEOF |
| 11660 | cat confdefs.h >>conftest.$ac_ext |
| 11661 | cat >>conftest.$ac_ext <<_ACEOF |
| 11662 | /* end confdefs.h. */ |
| 11663 | #include <sys/types.h> |
| 11664 | #include <$i> |
| 11665 | |
| 11666 | int |
| 11667 | main () |
| 11668 | { |
| 11669 | if ((uint64_t *) 0) |
| 11670 | return 0; |
| 11671 | if (sizeof (uint64_t)) |
| 11672 | return 0; |
| 11673 | ; |
| 11674 | return 0; |
| 11675 | } |
| 11676 | _ACEOF |
| 11677 | rm -f conftest.$ac_objext |
| 11678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11679 | (eval $ac_compile) 2>conftest.er1 |
| 11680 | ac_status=$? |
| 11681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11682 | rm -f conftest.er1 |
| 11683 | cat conftest.err >&5 |
| 11684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11685 | (exit $ac_status); } && |
| 11686 | { ac_try='test -z "$ac_c_werror_flag" |
| 11687 | || test ! -s conftest.err' |
| 11688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11689 | (eval $ac_try) 2>&5 |
| 11690 | ac_status=$? |
| 11691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11692 | (exit $ac_status); }; } && |
| 11693 | { ac_try='test -s conftest.$ac_objext' |
| 11694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11695 | (eval $ac_try) 2>&5 |
| 11696 | ac_status=$? |
| 11697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11698 | (exit $ac_status); }; }; then |
| 11699 | ac_cv_type_uint64_t=yes |
| 11700 | else |
| 11701 | echo "$as_me: failed program was:" >&5 |
| 11702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11703 | |
| 11704 | ac_cv_type_uint64_t=no |
| 11705 | fi |
| 11706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11707 | fi |
| 11708 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 11709 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 11710 | if test $ac_cv_type_uint64_t = yes; then |
| 11711 | : |
| 11712 | else |
| 11713 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
| 11714 | fi |
| 11715 | |
| 11716 | break |
| 11717 | done |
| 11718 | if test "$acx_cv_header_stdint" = stddef.h; then |
| 11719 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
| 11720 | for i in stdint.h $inttype_headers; do |
| 11721 | unset ac_cv_type_uintptr_t |
| 11722 | unset ac_cv_type_uint32_t |
| 11723 | unset ac_cv_type_uint64_t |
| 11724 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 |
| 11725 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 11726 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 |
| 11727 | if test "${ac_cv_type_uint32_t+set}" = set; then |
| 11728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11729 | else |
| 11730 | cat >conftest.$ac_ext <<_ACEOF |
| 11731 | /* confdefs.h. */ |
| 11732 | _ACEOF |
| 11733 | cat confdefs.h >>conftest.$ac_ext |
| 11734 | cat >>conftest.$ac_ext <<_ACEOF |
| 11735 | /* end confdefs.h. */ |
| 11736 | #include <sys/types.h> |
| 11737 | #include <$i> |
| 11738 | |
| 11739 | int |
| 11740 | main () |
| 11741 | { |
| 11742 | if ((uint32_t *) 0) |
| 11743 | return 0; |
| 11744 | if (sizeof (uint32_t)) |
| 11745 | return 0; |
| 11746 | ; |
| 11747 | return 0; |
| 11748 | } |
| 11749 | _ACEOF |
| 11750 | rm -f conftest.$ac_objext |
| 11751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11752 | (eval $ac_compile) 2>conftest.er1 |
| 11753 | ac_status=$? |
| 11754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11755 | rm -f conftest.er1 |
| 11756 | cat conftest.err >&5 |
| 11757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11758 | (exit $ac_status); } && |
| 11759 | { ac_try='test -z "$ac_c_werror_flag" |
| 11760 | || test ! -s conftest.err' |
| 11761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11762 | (eval $ac_try) 2>&5 |
| 11763 | ac_status=$? |
| 11764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11765 | (exit $ac_status); }; } && |
| 11766 | { ac_try='test -s conftest.$ac_objext' |
| 11767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11768 | (eval $ac_try) 2>&5 |
| 11769 | ac_status=$? |
| 11770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11771 | (exit $ac_status); }; }; then |
| 11772 | ac_cv_type_uint32_t=yes |
| 11773 | else |
| 11774 | echo "$as_me: failed program was:" >&5 |
| 11775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11776 | |
| 11777 | ac_cv_type_uint32_t=no |
| 11778 | fi |
| 11779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11780 | fi |
| 11781 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
| 11782 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 |
| 11783 | if test $ac_cv_type_uint32_t = yes; then |
| 11784 | acx_cv_header_stdint=$i |
| 11785 | else |
| 11786 | continue |
| 11787 | fi |
| 11788 | |
| 11789 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 11790 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
| 11791 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 11792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11793 | else |
| 11794 | cat >conftest.$ac_ext <<_ACEOF |
| 11795 | /* confdefs.h. */ |
| 11796 | _ACEOF |
| 11797 | cat confdefs.h >>conftest.$ac_ext |
| 11798 | cat >>conftest.$ac_ext <<_ACEOF |
| 11799 | /* end confdefs.h. */ |
| 11800 | #include <sys/types.h> |
| 11801 | #include <$i> |
| 11802 | |
| 11803 | int |
| 11804 | main () |
| 11805 | { |
| 11806 | if ((uint64_t *) 0) |
| 11807 | return 0; |
| 11808 | if (sizeof (uint64_t)) |
| 11809 | return 0; |
| 11810 | ; |
| 11811 | return 0; |
| 11812 | } |
| 11813 | _ACEOF |
| 11814 | rm -f conftest.$ac_objext |
| 11815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11816 | (eval $ac_compile) 2>conftest.er1 |
| 11817 | ac_status=$? |
| 11818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11819 | rm -f conftest.er1 |
| 11820 | cat conftest.err >&5 |
| 11821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11822 | (exit $ac_status); } && |
| 11823 | { ac_try='test -z "$ac_c_werror_flag" |
| 11824 | || test ! -s conftest.err' |
| 11825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11826 | (eval $ac_try) 2>&5 |
| 11827 | ac_status=$? |
| 11828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11829 | (exit $ac_status); }; } && |
| 11830 | { ac_try='test -s conftest.$ac_objext' |
| 11831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11832 | (eval $ac_try) 2>&5 |
| 11833 | ac_status=$? |
| 11834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11835 | (exit $ac_status); }; }; then |
| 11836 | ac_cv_type_uint64_t=yes |
| 11837 | else |
| 11838 | echo "$as_me: failed program was:" >&5 |
| 11839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11840 | |
| 11841 | ac_cv_type_uint64_t=no |
| 11842 | fi |
| 11843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11844 | fi |
| 11845 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 11846 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
| 11847 | |
| 11848 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 11849 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 11850 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 11851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11852 | else |
| 11853 | cat >conftest.$ac_ext <<_ACEOF |
| 11854 | /* confdefs.h. */ |
| 11855 | _ACEOF |
| 11856 | cat confdefs.h >>conftest.$ac_ext |
| 11857 | cat >>conftest.$ac_ext <<_ACEOF |
| 11858 | /* end confdefs.h. */ |
| 11859 | #include <sys/types.h> |
| 11860 | #include <$i> |
| 11861 | |
| 11862 | int |
| 11863 | main () |
| 11864 | { |
| 11865 | if ((uintptr_t *) 0) |
| 11866 | return 0; |
| 11867 | if (sizeof (uintptr_t)) |
| 11868 | return 0; |
| 11869 | ; |
| 11870 | return 0; |
| 11871 | } |
| 11872 | _ACEOF |
| 11873 | rm -f conftest.$ac_objext |
| 11874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11875 | (eval $ac_compile) 2>conftest.er1 |
| 11876 | ac_status=$? |
| 11877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11878 | rm -f conftest.er1 |
| 11879 | cat conftest.err >&5 |
| 11880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11881 | (exit $ac_status); } && |
| 11882 | { ac_try='test -z "$ac_c_werror_flag" |
| 11883 | || test ! -s conftest.err' |
| 11884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11885 | (eval $ac_try) 2>&5 |
| 11886 | ac_status=$? |
| 11887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11888 | (exit $ac_status); }; } && |
| 11889 | { ac_try='test -s conftest.$ac_objext' |
| 11890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11891 | (eval $ac_try) 2>&5 |
| 11892 | ac_status=$? |
| 11893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11894 | (exit $ac_status); }; }; then |
| 11895 | ac_cv_type_uintptr_t=yes |
| 11896 | else |
| 11897 | echo "$as_me: failed program was:" >&5 |
| 11898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11899 | |
| 11900 | ac_cv_type_uintptr_t=no |
| 11901 | fi |
| 11902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11903 | fi |
| 11904 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 11905 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 11906 | |
| 11907 | break |
| 11908 | done |
| 11909 | fi |
| 11910 | if test "$acx_cv_header_stdint" = stddef.h; then |
| 11911 | acx_cv_header_stdint_kind="(u_intXX_t style)" |
| 11912 | for i in sys/types.h $inttype_headers; do |
| 11913 | unset ac_cv_type_u_int32_t |
| 11914 | unset ac_cv_type_u_int64_t |
| 11915 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 |
| 11916 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
| 11917 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 |
| 11918 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
| 11919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11920 | else |
| 11921 | cat >conftest.$ac_ext <<_ACEOF |
| 11922 | /* confdefs.h. */ |
| 11923 | _ACEOF |
| 11924 | cat confdefs.h >>conftest.$ac_ext |
| 11925 | cat >>conftest.$ac_ext <<_ACEOF |
| 11926 | /* end confdefs.h. */ |
| 11927 | #include <sys/types.h> |
| 11928 | #include <$i> |
| 11929 | |
| 11930 | int |
| 11931 | main () |
| 11932 | { |
| 11933 | if ((u_int32_t *) 0) |
| 11934 | return 0; |
| 11935 | if (sizeof (u_int32_t)) |
| 11936 | return 0; |
| 11937 | ; |
| 11938 | return 0; |
| 11939 | } |
| 11940 | _ACEOF |
| 11941 | rm -f conftest.$ac_objext |
| 11942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11943 | (eval $ac_compile) 2>conftest.er1 |
| 11944 | ac_status=$? |
| 11945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11946 | rm -f conftest.er1 |
| 11947 | cat conftest.err >&5 |
| 11948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11949 | (exit $ac_status); } && |
| 11950 | { ac_try='test -z "$ac_c_werror_flag" |
| 11951 | || test ! -s conftest.err' |
| 11952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11953 | (eval $ac_try) 2>&5 |
| 11954 | ac_status=$? |
| 11955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11956 | (exit $ac_status); }; } && |
| 11957 | { ac_try='test -s conftest.$ac_objext' |
| 11958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11959 | (eval $ac_try) 2>&5 |
| 11960 | ac_status=$? |
| 11961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11962 | (exit $ac_status); }; }; then |
| 11963 | ac_cv_type_u_int32_t=yes |
| 11964 | else |
| 11965 | echo "$as_me: failed program was:" >&5 |
| 11966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11967 | |
| 11968 | ac_cv_type_u_int32_t=no |
| 11969 | fi |
| 11970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11971 | fi |
| 11972 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
| 11973 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 |
| 11974 | if test $ac_cv_type_u_int32_t = yes; then |
| 11975 | acx_cv_header_stdint=$i |
| 11976 | else |
| 11977 | continue |
| 11978 | fi |
| 11979 | |
| 11980 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 11981 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 |
| 11982 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 11983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11984 | else |
| 11985 | cat >conftest.$ac_ext <<_ACEOF |
| 11986 | /* confdefs.h. */ |
| 11987 | _ACEOF |
| 11988 | cat confdefs.h >>conftest.$ac_ext |
| 11989 | cat >>conftest.$ac_ext <<_ACEOF |
| 11990 | /* end confdefs.h. */ |
| 11991 | #include <sys/types.h> |
| 11992 | #include <$i> |
| 11993 | |
| 11994 | int |
| 11995 | main () |
| 11996 | { |
| 11997 | if ((u_int64_t *) 0) |
| 11998 | return 0; |
| 11999 | if (sizeof (u_int64_t)) |
| 12000 | return 0; |
| 12001 | ; |
| 12002 | return 0; |
| 12003 | } |
| 12004 | _ACEOF |
| 12005 | rm -f conftest.$ac_objext |
| 12006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12007 | (eval $ac_compile) 2>conftest.er1 |
| 12008 | ac_status=$? |
| 12009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12010 | rm -f conftest.er1 |
| 12011 | cat conftest.err >&5 |
| 12012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12013 | (exit $ac_status); } && |
| 12014 | { ac_try='test -z "$ac_c_werror_flag" |
| 12015 | || test ! -s conftest.err' |
| 12016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12017 | (eval $ac_try) 2>&5 |
| 12018 | ac_status=$? |
| 12019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12020 | (exit $ac_status); }; } && |
| 12021 | { ac_try='test -s conftest.$ac_objext' |
| 12022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12023 | (eval $ac_try) 2>&5 |
| 12024 | ac_status=$? |
| 12025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12026 | (exit $ac_status); }; }; then |
| 12027 | ac_cv_type_u_int64_t=yes |
| 12028 | else |
| 12029 | echo "$as_me: failed program was:" >&5 |
| 12030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12031 | |
| 12032 | ac_cv_type_u_int64_t=no |
| 12033 | fi |
| 12034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12035 | fi |
| 12036 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 12037 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 |
| 12038 | |
| 12039 | break |
| 12040 | done |
| 12041 | fi |
| 12042 | if test "$acx_cv_header_stdint" = stddef.h; then |
| 12043 | acx_cv_header_stdint_kind="(using manual detection)" |
| 12044 | fi |
| 12045 | |
| 12046 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
| 12047 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no |
| 12048 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no |
| 12049 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no |
| 12050 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no |
| 12051 | |
| 12052 | # ----------------- Summarize what we found so far |
| 12053 | |
| 12054 | echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5 |
| 12055 | echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6 |
| 12056 | |
| 12057 | case `$as_basename gdb_stdint.h || |
| 12058 | $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ |
| 12059 | Xgdb_stdint.h : 'X\(//\)$' \| \ |
| 12060 | Xgdb_stdint.h : 'X\(/\)$' \| \ |
| 12061 | . : '\(.\)' 2>/dev/null || |
| 12062 | echo X/gdb_stdint.h | |
| 12063 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 12064 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 12065 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 12066 | s/.*/./; q'` in |
| 12067 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
| 12068 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; |
| 12069 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
| 12070 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; |
| 12071 | *) ;; |
| 12072 | esac |
| 12073 | |
| 12074 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
| 12075 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 |
| 12076 | |
| 12077 | # ----------------- done included file, check C basic types -------- |
| 12078 | |
| 12079 | # Lacking an uintptr_t? Test size of void * |
| 12080 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in |
| 12081 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 |
| 12082 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 12083 | if test "${ac_cv_type_void_p+set}" = set; then |
| 12084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12085 | else |
| 12086 | cat >conftest.$ac_ext <<_ACEOF |
| 12087 | /* confdefs.h. */ |
| 12088 | _ACEOF |
| 12089 | cat confdefs.h >>conftest.$ac_ext |
| 12090 | cat >>conftest.$ac_ext <<_ACEOF |
| 12091 | /* end confdefs.h. */ |
| 12092 | $ac_includes_default |
| 12093 | int |
| 12094 | main () |
| 12095 | { |
| 12096 | if ((void * *) 0) |
| 12097 | return 0; |
| 12098 | if (sizeof (void *)) |
| 12099 | return 0; |
| 12100 | ; |
| 12101 | return 0; |
| 12102 | } |
| 12103 | _ACEOF |
| 12104 | rm -f conftest.$ac_objext |
| 12105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12106 | (eval $ac_compile) 2>conftest.er1 |
| 12107 | ac_status=$? |
| 12108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12109 | rm -f conftest.er1 |
| 12110 | cat conftest.err >&5 |
| 12111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12112 | (exit $ac_status); } && |
| 12113 | { ac_try='test -z "$ac_c_werror_flag" |
| 12114 | || test ! -s conftest.err' |
| 12115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12116 | (eval $ac_try) 2>&5 |
| 12117 | ac_status=$? |
| 12118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12119 | (exit $ac_status); }; } && |
| 12120 | { ac_try='test -s conftest.$ac_objext' |
| 12121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12122 | (eval $ac_try) 2>&5 |
| 12123 | ac_status=$? |
| 12124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12125 | (exit $ac_status); }; }; then |
| 12126 | ac_cv_type_void_p=yes |
| 12127 | else |
| 12128 | echo "$as_me: failed program was:" >&5 |
| 12129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12130 | |
| 12131 | ac_cv_type_void_p=no |
| 12132 | fi |
| 12133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12134 | fi |
| 12135 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 12136 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 12137 | |
| 12138 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 12139 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 12140 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 12141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12142 | else |
| 12143 | if test "$ac_cv_type_void_p" = yes; then |
| 12144 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 12145 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12146 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12147 | # This bug is HP SR number 8606223364. |
| 12148 | if test "$cross_compiling" = yes; then |
| 12149 | # Depending upon the size, compute the lo and hi bounds. |
| 12150 | cat >conftest.$ac_ext <<_ACEOF |
| 12151 | /* confdefs.h. */ |
| 12152 | _ACEOF |
| 12153 | cat confdefs.h >>conftest.$ac_ext |
| 12154 | cat >>conftest.$ac_ext <<_ACEOF |
| 12155 | /* end confdefs.h. */ |
| 12156 | $ac_includes_default |
| 12157 | int |
| 12158 | main () |
| 12159 | { |
| 12160 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 12161 | test_array [0] = 0 |
| 12162 | |
| 12163 | ; |
| 12164 | return 0; |
| 12165 | } |
| 12166 | _ACEOF |
| 12167 | rm -f conftest.$ac_objext |
| 12168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12169 | (eval $ac_compile) 2>conftest.er1 |
| 12170 | ac_status=$? |
| 12171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12172 | rm -f conftest.er1 |
| 12173 | cat conftest.err >&5 |
| 12174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12175 | (exit $ac_status); } && |
| 12176 | { ac_try='test -z "$ac_c_werror_flag" |
| 12177 | || test ! -s conftest.err' |
| 12178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12179 | (eval $ac_try) 2>&5 |
| 12180 | ac_status=$? |
| 12181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12182 | (exit $ac_status); }; } && |
| 12183 | { ac_try='test -s conftest.$ac_objext' |
| 12184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12185 | (eval $ac_try) 2>&5 |
| 12186 | ac_status=$? |
| 12187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12188 | (exit $ac_status); }; }; then |
| 12189 | ac_lo=0 ac_mid=0 |
| 12190 | while :; do |
| 12191 | cat >conftest.$ac_ext <<_ACEOF |
| 12192 | /* confdefs.h. */ |
| 12193 | _ACEOF |
| 12194 | cat confdefs.h >>conftest.$ac_ext |
| 12195 | cat >>conftest.$ac_ext <<_ACEOF |
| 12196 | /* end confdefs.h. */ |
| 12197 | $ac_includes_default |
| 12198 | int |
| 12199 | main () |
| 12200 | { |
| 12201 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 12202 | test_array [0] = 0 |
| 12203 | |
| 12204 | ; |
| 12205 | return 0; |
| 12206 | } |
| 12207 | _ACEOF |
| 12208 | rm -f conftest.$ac_objext |
| 12209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12210 | (eval $ac_compile) 2>conftest.er1 |
| 12211 | ac_status=$? |
| 12212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12213 | rm -f conftest.er1 |
| 12214 | cat conftest.err >&5 |
| 12215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12216 | (exit $ac_status); } && |
| 12217 | { ac_try='test -z "$ac_c_werror_flag" |
| 12218 | || test ! -s conftest.err' |
| 12219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12220 | (eval $ac_try) 2>&5 |
| 12221 | ac_status=$? |
| 12222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12223 | (exit $ac_status); }; } && |
| 12224 | { ac_try='test -s conftest.$ac_objext' |
| 12225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12226 | (eval $ac_try) 2>&5 |
| 12227 | ac_status=$? |
| 12228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12229 | (exit $ac_status); }; }; then |
| 12230 | ac_hi=$ac_mid; break |
| 12231 | else |
| 12232 | echo "$as_me: failed program was:" >&5 |
| 12233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12234 | |
| 12235 | ac_lo=`expr $ac_mid + 1` |
| 12236 | if test $ac_lo -le $ac_mid; then |
| 12237 | ac_lo= ac_hi= |
| 12238 | break |
| 12239 | fi |
| 12240 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 12241 | fi |
| 12242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12243 | done |
| 12244 | else |
| 12245 | echo "$as_me: failed program was:" >&5 |
| 12246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12247 | |
| 12248 | cat >conftest.$ac_ext <<_ACEOF |
| 12249 | /* confdefs.h. */ |
| 12250 | _ACEOF |
| 12251 | cat confdefs.h >>conftest.$ac_ext |
| 12252 | cat >>conftest.$ac_ext <<_ACEOF |
| 12253 | /* end confdefs.h. */ |
| 12254 | $ac_includes_default |
| 12255 | int |
| 12256 | main () |
| 12257 | { |
| 12258 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 12259 | test_array [0] = 0 |
| 12260 | |
| 12261 | ; |
| 12262 | return 0; |
| 12263 | } |
| 12264 | _ACEOF |
| 12265 | rm -f conftest.$ac_objext |
| 12266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12267 | (eval $ac_compile) 2>conftest.er1 |
| 12268 | ac_status=$? |
| 12269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12270 | rm -f conftest.er1 |
| 12271 | cat conftest.err >&5 |
| 12272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12273 | (exit $ac_status); } && |
| 12274 | { ac_try='test -z "$ac_c_werror_flag" |
| 12275 | || test ! -s conftest.err' |
| 12276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12277 | (eval $ac_try) 2>&5 |
| 12278 | ac_status=$? |
| 12279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12280 | (exit $ac_status); }; } && |
| 12281 | { ac_try='test -s conftest.$ac_objext' |
| 12282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12283 | (eval $ac_try) 2>&5 |
| 12284 | ac_status=$? |
| 12285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12286 | (exit $ac_status); }; }; then |
| 12287 | ac_hi=-1 ac_mid=-1 |
| 12288 | while :; do |
| 12289 | cat >conftest.$ac_ext <<_ACEOF |
| 12290 | /* confdefs.h. */ |
| 12291 | _ACEOF |
| 12292 | cat confdefs.h >>conftest.$ac_ext |
| 12293 | cat >>conftest.$ac_ext <<_ACEOF |
| 12294 | /* end confdefs.h. */ |
| 12295 | $ac_includes_default |
| 12296 | int |
| 12297 | main () |
| 12298 | { |
| 12299 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 12300 | test_array [0] = 0 |
| 12301 | |
| 12302 | ; |
| 12303 | return 0; |
| 12304 | } |
| 12305 | _ACEOF |
| 12306 | rm -f conftest.$ac_objext |
| 12307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12308 | (eval $ac_compile) 2>conftest.er1 |
| 12309 | ac_status=$? |
| 12310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12311 | rm -f conftest.er1 |
| 12312 | cat conftest.err >&5 |
| 12313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12314 | (exit $ac_status); } && |
| 12315 | { ac_try='test -z "$ac_c_werror_flag" |
| 12316 | || test ! -s conftest.err' |
| 12317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12318 | (eval $ac_try) 2>&5 |
| 12319 | ac_status=$? |
| 12320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12321 | (exit $ac_status); }; } && |
| 12322 | { ac_try='test -s conftest.$ac_objext' |
| 12323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12324 | (eval $ac_try) 2>&5 |
| 12325 | ac_status=$? |
| 12326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12327 | (exit $ac_status); }; }; then |
| 12328 | ac_lo=$ac_mid; break |
| 12329 | else |
| 12330 | echo "$as_me: failed program was:" >&5 |
| 12331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12332 | |
| 12333 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12334 | if test $ac_mid -le $ac_hi; then |
| 12335 | ac_lo= ac_hi= |
| 12336 | break |
| 12337 | fi |
| 12338 | ac_mid=`expr 2 '*' $ac_mid` |
| 12339 | fi |
| 12340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12341 | done |
| 12342 | else |
| 12343 | echo "$as_me: failed program was:" >&5 |
| 12344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12345 | |
| 12346 | ac_lo= ac_hi= |
| 12347 | fi |
| 12348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12349 | fi |
| 12350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12351 | # Binary search between lo and hi bounds. |
| 12352 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12353 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12354 | cat >conftest.$ac_ext <<_ACEOF |
| 12355 | /* confdefs.h. */ |
| 12356 | _ACEOF |
| 12357 | cat confdefs.h >>conftest.$ac_ext |
| 12358 | cat >>conftest.$ac_ext <<_ACEOF |
| 12359 | /* end confdefs.h. */ |
| 12360 | $ac_includes_default |
| 12361 | int |
| 12362 | main () |
| 12363 | { |
| 12364 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 12365 | test_array [0] = 0 |
| 12366 | |
| 12367 | ; |
| 12368 | return 0; |
| 12369 | } |
| 12370 | _ACEOF |
| 12371 | rm -f conftest.$ac_objext |
| 12372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12373 | (eval $ac_compile) 2>conftest.er1 |
| 12374 | ac_status=$? |
| 12375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12376 | rm -f conftest.er1 |
| 12377 | cat conftest.err >&5 |
| 12378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12379 | (exit $ac_status); } && |
| 12380 | { ac_try='test -z "$ac_c_werror_flag" |
| 12381 | || test ! -s conftest.err' |
| 12382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12383 | (eval $ac_try) 2>&5 |
| 12384 | ac_status=$? |
| 12385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12386 | (exit $ac_status); }; } && |
| 12387 | { ac_try='test -s conftest.$ac_objext' |
| 12388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12389 | (eval $ac_try) 2>&5 |
| 12390 | ac_status=$? |
| 12391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12392 | (exit $ac_status); }; }; then |
| 12393 | ac_hi=$ac_mid |
| 12394 | else |
| 12395 | echo "$as_me: failed program was:" >&5 |
| 12396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12397 | |
| 12398 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 12399 | fi |
| 12400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12401 | done |
| 12402 | case $ac_lo in |
| 12403 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 12404 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 12405 | See \`config.log' for more details." >&5 |
| 12406 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 12407 | See \`config.log' for more details." >&2;} |
| 12408 | { (exit 1); exit 1; }; } ;; |
| 12409 | esac |
| 12410 | else |
| 12411 | if test "$cross_compiling" = yes; then |
| 12412 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 12413 | See \`config.log' for more details." >&5 |
| 12414 | echo "$as_me: error: cannot run test program while cross compiling |
| 12415 | See \`config.log' for more details." >&2;} |
| 12416 | { (exit 1); exit 1; }; } |
| 12417 | else |
| 12418 | cat >conftest.$ac_ext <<_ACEOF |
| 12419 | /* confdefs.h. */ |
| 12420 | _ACEOF |
| 12421 | cat confdefs.h >>conftest.$ac_ext |
| 12422 | cat >>conftest.$ac_ext <<_ACEOF |
| 12423 | /* end confdefs.h. */ |
| 12424 | $ac_includes_default |
| 12425 | long longval () { return (long) (sizeof (void *)); } |
| 12426 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
| 12427 | #include <stdio.h> |
| 12428 | #include <stdlib.h> |
| 12429 | int |
| 12430 | main () |
| 12431 | { |
| 12432 | |
| 12433 | FILE *f = fopen ("conftest.val", "w"); |
| 12434 | if (! f) |
| 12435 | exit (1); |
| 12436 | if (((long) (sizeof (void *))) < 0) |
| 12437 | { |
| 12438 | long i = longval (); |
| 12439 | if (i != ((long) (sizeof (void *)))) |
| 12440 | exit (1); |
| 12441 | fprintf (f, "%ld\n", i); |
| 12442 | } |
| 12443 | else |
| 12444 | { |
| 12445 | unsigned long i = ulongval (); |
| 12446 | if (i != ((long) (sizeof (void *)))) |
| 12447 | exit (1); |
| 12448 | fprintf (f, "%lu\n", i); |
| 12449 | } |
| 12450 | exit (ferror (f) || fclose (f) != 0); |
| 12451 | |
| 12452 | ; |
| 12453 | return 0; |
| 12454 | } |
| 12455 | _ACEOF |
| 12456 | rm -f conftest$ac_exeext |
| 12457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12458 | (eval $ac_link) 2>&5 |
| 12459 | ac_status=$? |
| 12460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12461 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12463 | (eval $ac_try) 2>&5 |
| 12464 | ac_status=$? |
| 12465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12466 | (exit $ac_status); }; }; then |
| 12467 | ac_cv_sizeof_void_p=`cat conftest.val` |
| 12468 | else |
| 12469 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12470 | echo "$as_me: failed program was:" >&5 |
| 12471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12472 | |
| 12473 | ( exit $ac_status ) |
| 12474 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 12475 | See \`config.log' for more details." >&5 |
| 12476 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 12477 | See \`config.log' for more details." >&2;} |
| 12478 | { (exit 1); exit 1; }; } |
| 12479 | fi |
| 12480 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12481 | fi |
| 12482 | fi |
| 12483 | rm -f conftest.val |
| 12484 | else |
| 12485 | ac_cv_sizeof_void_p=0 |
| 12486 | fi |
| 12487 | fi |
| 12488 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 12489 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 12490 | cat >>confdefs.h <<_ACEOF |
| 12491 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 12492 | _ACEOF |
| 12493 | |
| 12494 | ;; |
| 12495 | esac |
| 12496 | |
| 12497 | # Lacking an uint64_t? Test size of long |
| 12498 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in |
| 12499 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 |
| 12500 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 12501 | if test "${ac_cv_type_long+set}" = set; then |
| 12502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12503 | else |
| 12504 | cat >conftest.$ac_ext <<_ACEOF |
| 12505 | /* confdefs.h. */ |
| 12506 | _ACEOF |
| 12507 | cat confdefs.h >>conftest.$ac_ext |
| 12508 | cat >>conftest.$ac_ext <<_ACEOF |
| 12509 | /* end confdefs.h. */ |
| 12510 | $ac_includes_default |
| 12511 | int |
| 12512 | main () |
| 12513 | { |
| 12514 | if ((long *) 0) |
| 12515 | return 0; |
| 12516 | if (sizeof (long)) |
| 12517 | return 0; |
| 12518 | ; |
| 12519 | return 0; |
| 12520 | } |
| 12521 | _ACEOF |
| 12522 | rm -f conftest.$ac_objext |
| 12523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12524 | (eval $ac_compile) 2>conftest.er1 |
| 12525 | ac_status=$? |
| 12526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12527 | rm -f conftest.er1 |
| 12528 | cat conftest.err >&5 |
| 12529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12530 | (exit $ac_status); } && |
| 12531 | { ac_try='test -z "$ac_c_werror_flag" |
| 12532 | || test ! -s conftest.err' |
| 12533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12534 | (eval $ac_try) 2>&5 |
| 12535 | ac_status=$? |
| 12536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12537 | (exit $ac_status); }; } && |
| 12538 | { ac_try='test -s conftest.$ac_objext' |
| 12539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12540 | (eval $ac_try) 2>&5 |
| 12541 | ac_status=$? |
| 12542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12543 | (exit $ac_status); }; }; then |
| 12544 | ac_cv_type_long=yes |
| 12545 | else |
| 12546 | echo "$as_me: failed program was:" >&5 |
| 12547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12548 | |
| 12549 | ac_cv_type_long=no |
| 12550 | fi |
| 12551 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12552 | fi |
| 12553 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 12554 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 12555 | |
| 12556 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 12557 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 12558 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 12559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12560 | else |
| 12561 | if test "$ac_cv_type_long" = yes; then |
| 12562 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 12563 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12564 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12565 | # This bug is HP SR number 8606223364. |
| 12566 | if test "$cross_compiling" = yes; then |
| 12567 | # Depending upon the size, compute the lo and hi bounds. |
| 12568 | cat >conftest.$ac_ext <<_ACEOF |
| 12569 | /* confdefs.h. */ |
| 12570 | _ACEOF |
| 12571 | cat confdefs.h >>conftest.$ac_ext |
| 12572 | cat >>conftest.$ac_ext <<_ACEOF |
| 12573 | /* end confdefs.h. */ |
| 12574 | $ac_includes_default |
| 12575 | int |
| 12576 | main () |
| 12577 | { |
| 12578 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 12579 | test_array [0] = 0 |
| 12580 | |
| 12581 | ; |
| 12582 | return 0; |
| 12583 | } |
| 12584 | _ACEOF |
| 12585 | rm -f conftest.$ac_objext |
| 12586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12587 | (eval $ac_compile) 2>conftest.er1 |
| 12588 | ac_status=$? |
| 12589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12590 | rm -f conftest.er1 |
| 12591 | cat conftest.err >&5 |
| 12592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12593 | (exit $ac_status); } && |
| 12594 | { ac_try='test -z "$ac_c_werror_flag" |
| 12595 | || test ! -s conftest.err' |
| 12596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12597 | (eval $ac_try) 2>&5 |
| 12598 | ac_status=$? |
| 12599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12600 | (exit $ac_status); }; } && |
| 12601 | { ac_try='test -s conftest.$ac_objext' |
| 12602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12603 | (eval $ac_try) 2>&5 |
| 12604 | ac_status=$? |
| 12605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12606 | (exit $ac_status); }; }; then |
| 12607 | ac_lo=0 ac_mid=0 |
| 12608 | while :; do |
| 12609 | cat >conftest.$ac_ext <<_ACEOF |
| 12610 | /* confdefs.h. */ |
| 12611 | _ACEOF |
| 12612 | cat confdefs.h >>conftest.$ac_ext |
| 12613 | cat >>conftest.$ac_ext <<_ACEOF |
| 12614 | /* end confdefs.h. */ |
| 12615 | $ac_includes_default |
| 12616 | int |
| 12617 | main () |
| 12618 | { |
| 12619 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 12620 | test_array [0] = 0 |
| 12621 | |
| 12622 | ; |
| 12623 | return 0; |
| 12624 | } |
| 12625 | _ACEOF |
| 12626 | rm -f conftest.$ac_objext |
| 12627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12628 | (eval $ac_compile) 2>conftest.er1 |
| 12629 | ac_status=$? |
| 12630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12631 | rm -f conftest.er1 |
| 12632 | cat conftest.err >&5 |
| 12633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12634 | (exit $ac_status); } && |
| 12635 | { ac_try='test -z "$ac_c_werror_flag" |
| 12636 | || test ! -s conftest.err' |
| 12637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12638 | (eval $ac_try) 2>&5 |
| 12639 | ac_status=$? |
| 12640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12641 | (exit $ac_status); }; } && |
| 12642 | { ac_try='test -s conftest.$ac_objext' |
| 12643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12644 | (eval $ac_try) 2>&5 |
| 12645 | ac_status=$? |
| 12646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12647 | (exit $ac_status); }; }; then |
| 12648 | ac_hi=$ac_mid; break |
| 12649 | else |
| 12650 | echo "$as_me: failed program was:" >&5 |
| 12651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12652 | |
| 12653 | ac_lo=`expr $ac_mid + 1` |
| 12654 | if test $ac_lo -le $ac_mid; then |
| 12655 | ac_lo= ac_hi= |
| 12656 | break |
| 12657 | fi |
| 12658 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 12659 | fi |
| 12660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12661 | done |
| 12662 | else |
| 12663 | echo "$as_me: failed program was:" >&5 |
| 12664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12665 | |
| 12666 | cat >conftest.$ac_ext <<_ACEOF |
| 12667 | /* confdefs.h. */ |
| 12668 | _ACEOF |
| 12669 | cat confdefs.h >>conftest.$ac_ext |
| 12670 | cat >>conftest.$ac_ext <<_ACEOF |
| 12671 | /* end confdefs.h. */ |
| 12672 | $ac_includes_default |
| 12673 | int |
| 12674 | main () |
| 12675 | { |
| 12676 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 12677 | test_array [0] = 0 |
| 12678 | |
| 12679 | ; |
| 12680 | return 0; |
| 12681 | } |
| 12682 | _ACEOF |
| 12683 | rm -f conftest.$ac_objext |
| 12684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12685 | (eval $ac_compile) 2>conftest.er1 |
| 12686 | ac_status=$? |
| 12687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12688 | rm -f conftest.er1 |
| 12689 | cat conftest.err >&5 |
| 12690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12691 | (exit $ac_status); } && |
| 12692 | { ac_try='test -z "$ac_c_werror_flag" |
| 12693 | || test ! -s conftest.err' |
| 12694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12695 | (eval $ac_try) 2>&5 |
| 12696 | ac_status=$? |
| 12697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12698 | (exit $ac_status); }; } && |
| 12699 | { ac_try='test -s conftest.$ac_objext' |
| 12700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12701 | (eval $ac_try) 2>&5 |
| 12702 | ac_status=$? |
| 12703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12704 | (exit $ac_status); }; }; then |
| 12705 | ac_hi=-1 ac_mid=-1 |
| 12706 | while :; do |
| 12707 | cat >conftest.$ac_ext <<_ACEOF |
| 12708 | /* confdefs.h. */ |
| 12709 | _ACEOF |
| 12710 | cat confdefs.h >>conftest.$ac_ext |
| 12711 | cat >>conftest.$ac_ext <<_ACEOF |
| 12712 | /* end confdefs.h. */ |
| 12713 | $ac_includes_default |
| 12714 | int |
| 12715 | main () |
| 12716 | { |
| 12717 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 12718 | test_array [0] = 0 |
| 12719 | |
| 12720 | ; |
| 12721 | return 0; |
| 12722 | } |
| 12723 | _ACEOF |
| 12724 | rm -f conftest.$ac_objext |
| 12725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12726 | (eval $ac_compile) 2>conftest.er1 |
| 12727 | ac_status=$? |
| 12728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12729 | rm -f conftest.er1 |
| 12730 | cat conftest.err >&5 |
| 12731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12732 | (exit $ac_status); } && |
| 12733 | { ac_try='test -z "$ac_c_werror_flag" |
| 12734 | || test ! -s conftest.err' |
| 12735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12736 | (eval $ac_try) 2>&5 |
| 12737 | ac_status=$? |
| 12738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12739 | (exit $ac_status); }; } && |
| 12740 | { ac_try='test -s conftest.$ac_objext' |
| 12741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12742 | (eval $ac_try) 2>&5 |
| 12743 | ac_status=$? |
| 12744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12745 | (exit $ac_status); }; }; then |
| 12746 | ac_lo=$ac_mid; break |
| 12747 | else |
| 12748 | echo "$as_me: failed program was:" >&5 |
| 12749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12750 | |
| 12751 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12752 | if test $ac_mid -le $ac_hi; then |
| 12753 | ac_lo= ac_hi= |
| 12754 | break |
| 12755 | fi |
| 12756 | ac_mid=`expr 2 '*' $ac_mid` |
| 12757 | fi |
| 12758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12759 | done |
| 12760 | else |
| 12761 | echo "$as_me: failed program was:" >&5 |
| 12762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12763 | |
| 12764 | ac_lo= ac_hi= |
| 12765 | fi |
| 12766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12767 | fi |
| 12768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12769 | # Binary search between lo and hi bounds. |
| 12770 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12771 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12772 | cat >conftest.$ac_ext <<_ACEOF |
| 12773 | /* confdefs.h. */ |
| 12774 | _ACEOF |
| 12775 | cat confdefs.h >>conftest.$ac_ext |
| 12776 | cat >>conftest.$ac_ext <<_ACEOF |
| 12777 | /* end confdefs.h. */ |
| 12778 | $ac_includes_default |
| 12779 | int |
| 12780 | main () |
| 12781 | { |
| 12782 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 12783 | test_array [0] = 0 |
| 12784 | |
| 12785 | ; |
| 12786 | return 0; |
| 12787 | } |
| 12788 | _ACEOF |
| 12789 | rm -f conftest.$ac_objext |
| 12790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12791 | (eval $ac_compile) 2>conftest.er1 |
| 12792 | ac_status=$? |
| 12793 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12794 | rm -f conftest.er1 |
| 12795 | cat conftest.err >&5 |
| 12796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12797 | (exit $ac_status); } && |
| 12798 | { ac_try='test -z "$ac_c_werror_flag" |
| 12799 | || test ! -s conftest.err' |
| 12800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12801 | (eval $ac_try) 2>&5 |
| 12802 | ac_status=$? |
| 12803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12804 | (exit $ac_status); }; } && |
| 12805 | { ac_try='test -s conftest.$ac_objext' |
| 12806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12807 | (eval $ac_try) 2>&5 |
| 12808 | ac_status=$? |
| 12809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12810 | (exit $ac_status); }; }; then |
| 12811 | ac_hi=$ac_mid |
| 12812 | else |
| 12813 | echo "$as_me: failed program was:" >&5 |
| 12814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12815 | |
| 12816 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 12817 | fi |
| 12818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12819 | done |
| 12820 | case $ac_lo in |
| 12821 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 12822 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 12823 | See \`config.log' for more details." >&5 |
| 12824 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 12825 | See \`config.log' for more details." >&2;} |
| 12826 | { (exit 1); exit 1; }; } ;; |
| 12827 | esac |
| 12828 | else |
| 12829 | if test "$cross_compiling" = yes; then |
| 12830 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 12831 | See \`config.log' for more details." >&5 |
| 12832 | echo "$as_me: error: cannot run test program while cross compiling |
| 12833 | See \`config.log' for more details." >&2;} |
| 12834 | { (exit 1); exit 1; }; } |
| 12835 | else |
| 12836 | cat >conftest.$ac_ext <<_ACEOF |
| 12837 | /* confdefs.h. */ |
| 12838 | _ACEOF |
| 12839 | cat confdefs.h >>conftest.$ac_ext |
| 12840 | cat >>conftest.$ac_ext <<_ACEOF |
| 12841 | /* end confdefs.h. */ |
| 12842 | $ac_includes_default |
| 12843 | long longval () { return (long) (sizeof (long)); } |
| 12844 | unsigned long ulongval () { return (long) (sizeof (long)); } |
| 12845 | #include <stdio.h> |
| 12846 | #include <stdlib.h> |
| 12847 | int |
| 12848 | main () |
| 12849 | { |
| 12850 | |
| 12851 | FILE *f = fopen ("conftest.val", "w"); |
| 12852 | if (! f) |
| 12853 | exit (1); |
| 12854 | if (((long) (sizeof (long))) < 0) |
| 12855 | { |
| 12856 | long i = longval (); |
| 12857 | if (i != ((long) (sizeof (long)))) |
| 12858 | exit (1); |
| 12859 | fprintf (f, "%ld\n", i); |
| 12860 | } |
| 12861 | else |
| 12862 | { |
| 12863 | unsigned long i = ulongval (); |
| 12864 | if (i != ((long) (sizeof (long)))) |
| 12865 | exit (1); |
| 12866 | fprintf (f, "%lu\n", i); |
| 12867 | } |
| 12868 | exit (ferror (f) || fclose (f) != 0); |
| 12869 | |
| 12870 | ; |
| 12871 | return 0; |
| 12872 | } |
| 12873 | _ACEOF |
| 12874 | rm -f conftest$ac_exeext |
| 12875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12876 | (eval $ac_link) 2>&5 |
| 12877 | ac_status=$? |
| 12878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12879 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12881 | (eval $ac_try) 2>&5 |
| 12882 | ac_status=$? |
| 12883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12884 | (exit $ac_status); }; }; then |
| 12885 | ac_cv_sizeof_long=`cat conftest.val` |
| 12886 | else |
| 12887 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12888 | echo "$as_me: failed program was:" >&5 |
| 12889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12890 | |
| 12891 | ( exit $ac_status ) |
| 12892 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 12893 | See \`config.log' for more details." >&5 |
| 12894 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 12895 | See \`config.log' for more details." >&2;} |
| 12896 | { (exit 1); exit 1; }; } |
| 12897 | fi |
| 12898 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12899 | fi |
| 12900 | fi |
| 12901 | rm -f conftest.val |
| 12902 | else |
| 12903 | ac_cv_sizeof_long=0 |
| 12904 | fi |
| 12905 | fi |
| 12906 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 12907 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 12908 | cat >>confdefs.h <<_ACEOF |
| 12909 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 12910 | _ACEOF |
| 12911 | |
| 12912 | ;; |
| 12913 | esac |
| 12914 | |
| 12915 | if test $acx_cv_header_stdint = stddef.h; then |
| 12916 | # Lacking a good header? Test size of everything and deduce all types. |
| 12917 | echo "$as_me:$LINENO: checking for int" >&5 |
| 12918 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 12919 | if test "${ac_cv_type_int+set}" = set; then |
| 12920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12921 | else |
| 12922 | cat >conftest.$ac_ext <<_ACEOF |
| 12923 | /* confdefs.h. */ |
| 12924 | _ACEOF |
| 12925 | cat confdefs.h >>conftest.$ac_ext |
| 12926 | cat >>conftest.$ac_ext <<_ACEOF |
| 12927 | /* end confdefs.h. */ |
| 12928 | $ac_includes_default |
| 12929 | int |
| 12930 | main () |
| 12931 | { |
| 12932 | if ((int *) 0) |
| 12933 | return 0; |
| 12934 | if (sizeof (int)) |
| 12935 | return 0; |
| 12936 | ; |
| 12937 | return 0; |
| 12938 | } |
| 12939 | _ACEOF |
| 12940 | rm -f conftest.$ac_objext |
| 12941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12942 | (eval $ac_compile) 2>conftest.er1 |
| 12943 | ac_status=$? |
| 12944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12945 | rm -f conftest.er1 |
| 12946 | cat conftest.err >&5 |
| 12947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12948 | (exit $ac_status); } && |
| 12949 | { ac_try='test -z "$ac_c_werror_flag" |
| 12950 | || test ! -s conftest.err' |
| 12951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12952 | (eval $ac_try) 2>&5 |
| 12953 | ac_status=$? |
| 12954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12955 | (exit $ac_status); }; } && |
| 12956 | { ac_try='test -s conftest.$ac_objext' |
| 12957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12958 | (eval $ac_try) 2>&5 |
| 12959 | ac_status=$? |
| 12960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12961 | (exit $ac_status); }; }; then |
| 12962 | ac_cv_type_int=yes |
| 12963 | else |
| 12964 | echo "$as_me: failed program was:" >&5 |
| 12965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12966 | |
| 12967 | ac_cv_type_int=no |
| 12968 | fi |
| 12969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12970 | fi |
| 12971 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 12972 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 12973 | |
| 12974 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 12975 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 12976 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 12977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12978 | else |
| 12979 | if test "$ac_cv_type_int" = yes; then |
| 12980 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 12981 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12982 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12983 | # This bug is HP SR number 8606223364. |
| 12984 | if test "$cross_compiling" = yes; then |
| 12985 | # Depending upon the size, compute the lo and hi bounds. |
| 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 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 12997 | test_array [0] = 0 |
| 12998 | |
| 12999 | ; |
| 13000 | return 0; |
| 13001 | } |
| 13002 | _ACEOF |
| 13003 | rm -f conftest.$ac_objext |
| 13004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13005 | (eval $ac_compile) 2>conftest.er1 |
| 13006 | ac_status=$? |
| 13007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13008 | rm -f conftest.er1 |
| 13009 | cat conftest.err >&5 |
| 13010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13011 | (exit $ac_status); } && |
| 13012 | { ac_try='test -z "$ac_c_werror_flag" |
| 13013 | || test ! -s conftest.err' |
| 13014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13015 | (eval $ac_try) 2>&5 |
| 13016 | ac_status=$? |
| 13017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13018 | (exit $ac_status); }; } && |
| 13019 | { ac_try='test -s conftest.$ac_objext' |
| 13020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13021 | (eval $ac_try) 2>&5 |
| 13022 | ac_status=$? |
| 13023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13024 | (exit $ac_status); }; }; then |
| 13025 | ac_lo=0 ac_mid=0 |
| 13026 | while :; do |
| 13027 | cat >conftest.$ac_ext <<_ACEOF |
| 13028 | /* confdefs.h. */ |
| 13029 | _ACEOF |
| 13030 | cat confdefs.h >>conftest.$ac_ext |
| 13031 | cat >>conftest.$ac_ext <<_ACEOF |
| 13032 | /* end confdefs.h. */ |
| 13033 | $ac_includes_default |
| 13034 | int |
| 13035 | main () |
| 13036 | { |
| 13037 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 13038 | test_array [0] = 0 |
| 13039 | |
| 13040 | ; |
| 13041 | return 0; |
| 13042 | } |
| 13043 | _ACEOF |
| 13044 | rm -f conftest.$ac_objext |
| 13045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13046 | (eval $ac_compile) 2>conftest.er1 |
| 13047 | ac_status=$? |
| 13048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13049 | rm -f conftest.er1 |
| 13050 | cat conftest.err >&5 |
| 13051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13052 | (exit $ac_status); } && |
| 13053 | { ac_try='test -z "$ac_c_werror_flag" |
| 13054 | || test ! -s conftest.err' |
| 13055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13056 | (eval $ac_try) 2>&5 |
| 13057 | ac_status=$? |
| 13058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13059 | (exit $ac_status); }; } && |
| 13060 | { ac_try='test -s conftest.$ac_objext' |
| 13061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13062 | (eval $ac_try) 2>&5 |
| 13063 | ac_status=$? |
| 13064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13065 | (exit $ac_status); }; }; then |
| 13066 | ac_hi=$ac_mid; break |
| 13067 | else |
| 13068 | echo "$as_me: failed program was:" >&5 |
| 13069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13070 | |
| 13071 | ac_lo=`expr $ac_mid + 1` |
| 13072 | if test $ac_lo -le $ac_mid; then |
| 13073 | ac_lo= ac_hi= |
| 13074 | break |
| 13075 | fi |
| 13076 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13077 | fi |
| 13078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13079 | done |
| 13080 | else |
| 13081 | echo "$as_me: failed program was:" >&5 |
| 13082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13083 | |
| 13084 | cat >conftest.$ac_ext <<_ACEOF |
| 13085 | /* confdefs.h. */ |
| 13086 | _ACEOF |
| 13087 | cat confdefs.h >>conftest.$ac_ext |
| 13088 | cat >>conftest.$ac_ext <<_ACEOF |
| 13089 | /* end confdefs.h. */ |
| 13090 | $ac_includes_default |
| 13091 | int |
| 13092 | main () |
| 13093 | { |
| 13094 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 13095 | test_array [0] = 0 |
| 13096 | |
| 13097 | ; |
| 13098 | return 0; |
| 13099 | } |
| 13100 | _ACEOF |
| 13101 | rm -f conftest.$ac_objext |
| 13102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13103 | (eval $ac_compile) 2>conftest.er1 |
| 13104 | ac_status=$? |
| 13105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13106 | rm -f conftest.er1 |
| 13107 | cat conftest.err >&5 |
| 13108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13109 | (exit $ac_status); } && |
| 13110 | { ac_try='test -z "$ac_c_werror_flag" |
| 13111 | || test ! -s conftest.err' |
| 13112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13113 | (eval $ac_try) 2>&5 |
| 13114 | ac_status=$? |
| 13115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13116 | (exit $ac_status); }; } && |
| 13117 | { ac_try='test -s conftest.$ac_objext' |
| 13118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13119 | (eval $ac_try) 2>&5 |
| 13120 | ac_status=$? |
| 13121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13122 | (exit $ac_status); }; }; then |
| 13123 | ac_hi=-1 ac_mid=-1 |
| 13124 | while :; do |
| 13125 | cat >conftest.$ac_ext <<_ACEOF |
| 13126 | /* confdefs.h. */ |
| 13127 | _ACEOF |
| 13128 | cat confdefs.h >>conftest.$ac_ext |
| 13129 | cat >>conftest.$ac_ext <<_ACEOF |
| 13130 | /* end confdefs.h. */ |
| 13131 | $ac_includes_default |
| 13132 | int |
| 13133 | main () |
| 13134 | { |
| 13135 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 13136 | test_array [0] = 0 |
| 13137 | |
| 13138 | ; |
| 13139 | return 0; |
| 13140 | } |
| 13141 | _ACEOF |
| 13142 | rm -f conftest.$ac_objext |
| 13143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13144 | (eval $ac_compile) 2>conftest.er1 |
| 13145 | ac_status=$? |
| 13146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13147 | rm -f conftest.er1 |
| 13148 | cat conftest.err >&5 |
| 13149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13150 | (exit $ac_status); } && |
| 13151 | { ac_try='test -z "$ac_c_werror_flag" |
| 13152 | || test ! -s conftest.err' |
| 13153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13154 | (eval $ac_try) 2>&5 |
| 13155 | ac_status=$? |
| 13156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13157 | (exit $ac_status); }; } && |
| 13158 | { ac_try='test -s conftest.$ac_objext' |
| 13159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13160 | (eval $ac_try) 2>&5 |
| 13161 | ac_status=$? |
| 13162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13163 | (exit $ac_status); }; }; then |
| 13164 | ac_lo=$ac_mid; break |
| 13165 | else |
| 13166 | echo "$as_me: failed program was:" >&5 |
| 13167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13168 | |
| 13169 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13170 | if test $ac_mid -le $ac_hi; then |
| 13171 | ac_lo= ac_hi= |
| 13172 | break |
| 13173 | fi |
| 13174 | ac_mid=`expr 2 '*' $ac_mid` |
| 13175 | fi |
| 13176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13177 | done |
| 13178 | else |
| 13179 | echo "$as_me: failed program was:" >&5 |
| 13180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13181 | |
| 13182 | ac_lo= ac_hi= |
| 13183 | fi |
| 13184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13185 | fi |
| 13186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13187 | # Binary search between lo and hi bounds. |
| 13188 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13189 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13190 | cat >conftest.$ac_ext <<_ACEOF |
| 13191 | /* confdefs.h. */ |
| 13192 | _ACEOF |
| 13193 | cat confdefs.h >>conftest.$ac_ext |
| 13194 | cat >>conftest.$ac_ext <<_ACEOF |
| 13195 | /* end confdefs.h. */ |
| 13196 | $ac_includes_default |
| 13197 | int |
| 13198 | main () |
| 13199 | { |
| 13200 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 13201 | test_array [0] = 0 |
| 13202 | |
| 13203 | ; |
| 13204 | return 0; |
| 13205 | } |
| 13206 | _ACEOF |
| 13207 | rm -f conftest.$ac_objext |
| 13208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13209 | (eval $ac_compile) 2>conftest.er1 |
| 13210 | ac_status=$? |
| 13211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13212 | rm -f conftest.er1 |
| 13213 | cat conftest.err >&5 |
| 13214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13215 | (exit $ac_status); } && |
| 13216 | { ac_try='test -z "$ac_c_werror_flag" |
| 13217 | || test ! -s conftest.err' |
| 13218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13219 | (eval $ac_try) 2>&5 |
| 13220 | ac_status=$? |
| 13221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13222 | (exit $ac_status); }; } && |
| 13223 | { ac_try='test -s conftest.$ac_objext' |
| 13224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13225 | (eval $ac_try) 2>&5 |
| 13226 | ac_status=$? |
| 13227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13228 | (exit $ac_status); }; }; then |
| 13229 | ac_hi=$ac_mid |
| 13230 | else |
| 13231 | echo "$as_me: failed program was:" >&5 |
| 13232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13233 | |
| 13234 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13235 | fi |
| 13236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13237 | done |
| 13238 | case $ac_lo in |
| 13239 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 13240 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 13241 | See \`config.log' for more details." >&5 |
| 13242 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 13243 | See \`config.log' for more details." >&2;} |
| 13244 | { (exit 1); exit 1; }; } ;; |
| 13245 | esac |
| 13246 | else |
| 13247 | if test "$cross_compiling" = yes; then |
| 13248 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 13249 | See \`config.log' for more details." >&5 |
| 13250 | echo "$as_me: error: cannot run test program while cross compiling |
| 13251 | See \`config.log' for more details." >&2;} |
| 13252 | { (exit 1); exit 1; }; } |
| 13253 | else |
| 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 | long longval () { return (long) (sizeof (int)); } |
| 13262 | unsigned long ulongval () { return (long) (sizeof (int)); } |
| 13263 | #include <stdio.h> |
| 13264 | #include <stdlib.h> |
| 13265 | int |
| 13266 | main () |
| 13267 | { |
| 13268 | |
| 13269 | FILE *f = fopen ("conftest.val", "w"); |
| 13270 | if (! f) |
| 13271 | exit (1); |
| 13272 | if (((long) (sizeof (int))) < 0) |
| 13273 | { |
| 13274 | long i = longval (); |
| 13275 | if (i != ((long) (sizeof (int)))) |
| 13276 | exit (1); |
| 13277 | fprintf (f, "%ld\n", i); |
| 13278 | } |
| 13279 | else |
| 13280 | { |
| 13281 | unsigned long i = ulongval (); |
| 13282 | if (i != ((long) (sizeof (int)))) |
| 13283 | exit (1); |
| 13284 | fprintf (f, "%lu\n", i); |
| 13285 | } |
| 13286 | exit (ferror (f) || fclose (f) != 0); |
| 13287 | |
| 13288 | ; |
| 13289 | return 0; |
| 13290 | } |
| 13291 | _ACEOF |
| 13292 | rm -f conftest$ac_exeext |
| 13293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13294 | (eval $ac_link) 2>&5 |
| 13295 | ac_status=$? |
| 13296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13297 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13299 | (eval $ac_try) 2>&5 |
| 13300 | ac_status=$? |
| 13301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13302 | (exit $ac_status); }; }; then |
| 13303 | ac_cv_sizeof_int=`cat conftest.val` |
| 13304 | else |
| 13305 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13306 | echo "$as_me: failed program was:" >&5 |
| 13307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13308 | |
| 13309 | ( exit $ac_status ) |
| 13310 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 13311 | See \`config.log' for more details." >&5 |
| 13312 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 13313 | See \`config.log' for more details." >&2;} |
| 13314 | { (exit 1); exit 1; }; } |
| 13315 | fi |
| 13316 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13317 | fi |
| 13318 | fi |
| 13319 | rm -f conftest.val |
| 13320 | else |
| 13321 | ac_cv_sizeof_int=0 |
| 13322 | fi |
| 13323 | fi |
| 13324 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13325 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 13326 | cat >>confdefs.h <<_ACEOF |
| 13327 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 13328 | _ACEOF |
| 13329 | |
| 13330 | |
| 13331 | echo "$as_me:$LINENO: checking for short" >&5 |
| 13332 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 13333 | if test "${ac_cv_type_short+set}" = set; then |
| 13334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13335 | else |
| 13336 | cat >conftest.$ac_ext <<_ACEOF |
| 13337 | /* confdefs.h. */ |
| 13338 | _ACEOF |
| 13339 | cat confdefs.h >>conftest.$ac_ext |
| 13340 | cat >>conftest.$ac_ext <<_ACEOF |
| 13341 | /* end confdefs.h. */ |
| 13342 | $ac_includes_default |
| 13343 | int |
| 13344 | main () |
| 13345 | { |
| 13346 | if ((short *) 0) |
| 13347 | return 0; |
| 13348 | if (sizeof (short)) |
| 13349 | return 0; |
| 13350 | ; |
| 13351 | return 0; |
| 13352 | } |
| 13353 | _ACEOF |
| 13354 | rm -f conftest.$ac_objext |
| 13355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13356 | (eval $ac_compile) 2>conftest.er1 |
| 13357 | ac_status=$? |
| 13358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13359 | rm -f conftest.er1 |
| 13360 | cat conftest.err >&5 |
| 13361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13362 | (exit $ac_status); } && |
| 13363 | { ac_try='test -z "$ac_c_werror_flag" |
| 13364 | || test ! -s conftest.err' |
| 13365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13366 | (eval $ac_try) 2>&5 |
| 13367 | ac_status=$? |
| 13368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13369 | (exit $ac_status); }; } && |
| 13370 | { ac_try='test -s conftest.$ac_objext' |
| 13371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13372 | (eval $ac_try) 2>&5 |
| 13373 | ac_status=$? |
| 13374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13375 | (exit $ac_status); }; }; then |
| 13376 | ac_cv_type_short=yes |
| 13377 | else |
| 13378 | echo "$as_me: failed program was:" >&5 |
| 13379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13380 | |
| 13381 | ac_cv_type_short=no |
| 13382 | fi |
| 13383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13384 | fi |
| 13385 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 13386 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 13387 | |
| 13388 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 13389 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 13390 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 13391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13392 | else |
| 13393 | if test "$ac_cv_type_short" = yes; then |
| 13394 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 13395 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13396 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13397 | # This bug is HP SR number 8606223364. |
| 13398 | if test "$cross_compiling" = yes; then |
| 13399 | # Depending upon the size, compute the lo and hi bounds. |
| 13400 | cat >conftest.$ac_ext <<_ACEOF |
| 13401 | /* confdefs.h. */ |
| 13402 | _ACEOF |
| 13403 | cat confdefs.h >>conftest.$ac_ext |
| 13404 | cat >>conftest.$ac_ext <<_ACEOF |
| 13405 | /* end confdefs.h. */ |
| 13406 | $ac_includes_default |
| 13407 | int |
| 13408 | main () |
| 13409 | { |
| 13410 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 13411 | test_array [0] = 0 |
| 13412 | |
| 13413 | ; |
| 13414 | return 0; |
| 13415 | } |
| 13416 | _ACEOF |
| 13417 | rm -f conftest.$ac_objext |
| 13418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13419 | (eval $ac_compile) 2>conftest.er1 |
| 13420 | ac_status=$? |
| 13421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13422 | rm -f conftest.er1 |
| 13423 | cat conftest.err >&5 |
| 13424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13425 | (exit $ac_status); } && |
| 13426 | { ac_try='test -z "$ac_c_werror_flag" |
| 13427 | || test ! -s conftest.err' |
| 13428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13429 | (eval $ac_try) 2>&5 |
| 13430 | ac_status=$? |
| 13431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13432 | (exit $ac_status); }; } && |
| 13433 | { ac_try='test -s conftest.$ac_objext' |
| 13434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13435 | (eval $ac_try) 2>&5 |
| 13436 | ac_status=$? |
| 13437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13438 | (exit $ac_status); }; }; then |
| 13439 | ac_lo=0 ac_mid=0 |
| 13440 | while :; do |
| 13441 | cat >conftest.$ac_ext <<_ACEOF |
| 13442 | /* confdefs.h. */ |
| 13443 | _ACEOF |
| 13444 | cat confdefs.h >>conftest.$ac_ext |
| 13445 | cat >>conftest.$ac_ext <<_ACEOF |
| 13446 | /* end confdefs.h. */ |
| 13447 | $ac_includes_default |
| 13448 | int |
| 13449 | main () |
| 13450 | { |
| 13451 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 13452 | test_array [0] = 0 |
| 13453 | |
| 13454 | ; |
| 13455 | return 0; |
| 13456 | } |
| 13457 | _ACEOF |
| 13458 | rm -f conftest.$ac_objext |
| 13459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13460 | (eval $ac_compile) 2>conftest.er1 |
| 13461 | ac_status=$? |
| 13462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13463 | rm -f conftest.er1 |
| 13464 | cat conftest.err >&5 |
| 13465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13466 | (exit $ac_status); } && |
| 13467 | { ac_try='test -z "$ac_c_werror_flag" |
| 13468 | || test ! -s conftest.err' |
| 13469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13470 | (eval $ac_try) 2>&5 |
| 13471 | ac_status=$? |
| 13472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13473 | (exit $ac_status); }; } && |
| 13474 | { ac_try='test -s conftest.$ac_objext' |
| 13475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13476 | (eval $ac_try) 2>&5 |
| 13477 | ac_status=$? |
| 13478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13479 | (exit $ac_status); }; }; then |
| 13480 | ac_hi=$ac_mid; break |
| 13481 | else |
| 13482 | echo "$as_me: failed program was:" >&5 |
| 13483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13484 | |
| 13485 | ac_lo=`expr $ac_mid + 1` |
| 13486 | if test $ac_lo -le $ac_mid; then |
| 13487 | ac_lo= ac_hi= |
| 13488 | break |
| 13489 | fi |
| 13490 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13491 | fi |
| 13492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13493 | done |
| 13494 | else |
| 13495 | echo "$as_me: failed program was:" >&5 |
| 13496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13497 | |
| 13498 | cat >conftest.$ac_ext <<_ACEOF |
| 13499 | /* confdefs.h. */ |
| 13500 | _ACEOF |
| 13501 | cat confdefs.h >>conftest.$ac_ext |
| 13502 | cat >>conftest.$ac_ext <<_ACEOF |
| 13503 | /* end confdefs.h. */ |
| 13504 | $ac_includes_default |
| 13505 | int |
| 13506 | main () |
| 13507 | { |
| 13508 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 13509 | test_array [0] = 0 |
| 13510 | |
| 13511 | ; |
| 13512 | return 0; |
| 13513 | } |
| 13514 | _ACEOF |
| 13515 | rm -f conftest.$ac_objext |
| 13516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13517 | (eval $ac_compile) 2>conftest.er1 |
| 13518 | ac_status=$? |
| 13519 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13520 | rm -f conftest.er1 |
| 13521 | cat conftest.err >&5 |
| 13522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13523 | (exit $ac_status); } && |
| 13524 | { ac_try='test -z "$ac_c_werror_flag" |
| 13525 | || test ! -s conftest.err' |
| 13526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13527 | (eval $ac_try) 2>&5 |
| 13528 | ac_status=$? |
| 13529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13530 | (exit $ac_status); }; } && |
| 13531 | { ac_try='test -s conftest.$ac_objext' |
| 13532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13533 | (eval $ac_try) 2>&5 |
| 13534 | ac_status=$? |
| 13535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13536 | (exit $ac_status); }; }; then |
| 13537 | ac_hi=-1 ac_mid=-1 |
| 13538 | while :; do |
| 13539 | cat >conftest.$ac_ext <<_ACEOF |
| 13540 | /* confdefs.h. */ |
| 13541 | _ACEOF |
| 13542 | cat confdefs.h >>conftest.$ac_ext |
| 13543 | cat >>conftest.$ac_ext <<_ACEOF |
| 13544 | /* end confdefs.h. */ |
| 13545 | $ac_includes_default |
| 13546 | int |
| 13547 | main () |
| 13548 | { |
| 13549 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 13550 | test_array [0] = 0 |
| 13551 | |
| 13552 | ; |
| 13553 | return 0; |
| 13554 | } |
| 13555 | _ACEOF |
| 13556 | rm -f conftest.$ac_objext |
| 13557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13558 | (eval $ac_compile) 2>conftest.er1 |
| 13559 | ac_status=$? |
| 13560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13561 | rm -f conftest.er1 |
| 13562 | cat conftest.err >&5 |
| 13563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13564 | (exit $ac_status); } && |
| 13565 | { ac_try='test -z "$ac_c_werror_flag" |
| 13566 | || test ! -s conftest.err' |
| 13567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13568 | (eval $ac_try) 2>&5 |
| 13569 | ac_status=$? |
| 13570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13571 | (exit $ac_status); }; } && |
| 13572 | { ac_try='test -s conftest.$ac_objext' |
| 13573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13574 | (eval $ac_try) 2>&5 |
| 13575 | ac_status=$? |
| 13576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13577 | (exit $ac_status); }; }; then |
| 13578 | ac_lo=$ac_mid; break |
| 13579 | else |
| 13580 | echo "$as_me: failed program was:" >&5 |
| 13581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13582 | |
| 13583 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13584 | if test $ac_mid -le $ac_hi; then |
| 13585 | ac_lo= ac_hi= |
| 13586 | break |
| 13587 | fi |
| 13588 | ac_mid=`expr 2 '*' $ac_mid` |
| 13589 | fi |
| 13590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13591 | done |
| 13592 | else |
| 13593 | echo "$as_me: failed program was:" >&5 |
| 13594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13595 | |
| 13596 | ac_lo= ac_hi= |
| 13597 | fi |
| 13598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13599 | fi |
| 13600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13601 | # Binary search between lo and hi bounds. |
| 13602 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13603 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13604 | cat >conftest.$ac_ext <<_ACEOF |
| 13605 | /* confdefs.h. */ |
| 13606 | _ACEOF |
| 13607 | cat confdefs.h >>conftest.$ac_ext |
| 13608 | cat >>conftest.$ac_ext <<_ACEOF |
| 13609 | /* end confdefs.h. */ |
| 13610 | $ac_includes_default |
| 13611 | int |
| 13612 | main () |
| 13613 | { |
| 13614 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 13615 | test_array [0] = 0 |
| 13616 | |
| 13617 | ; |
| 13618 | return 0; |
| 13619 | } |
| 13620 | _ACEOF |
| 13621 | rm -f conftest.$ac_objext |
| 13622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13623 | (eval $ac_compile) 2>conftest.er1 |
| 13624 | ac_status=$? |
| 13625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13626 | rm -f conftest.er1 |
| 13627 | cat conftest.err >&5 |
| 13628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13629 | (exit $ac_status); } && |
| 13630 | { ac_try='test -z "$ac_c_werror_flag" |
| 13631 | || test ! -s conftest.err' |
| 13632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13633 | (eval $ac_try) 2>&5 |
| 13634 | ac_status=$? |
| 13635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13636 | (exit $ac_status); }; } && |
| 13637 | { ac_try='test -s conftest.$ac_objext' |
| 13638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13639 | (eval $ac_try) 2>&5 |
| 13640 | ac_status=$? |
| 13641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13642 | (exit $ac_status); }; }; then |
| 13643 | ac_hi=$ac_mid |
| 13644 | else |
| 13645 | echo "$as_me: failed program was:" >&5 |
| 13646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13647 | |
| 13648 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 13649 | fi |
| 13650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13651 | done |
| 13652 | case $ac_lo in |
| 13653 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 13654 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 13655 | See \`config.log' for more details." >&5 |
| 13656 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 13657 | See \`config.log' for more details." >&2;} |
| 13658 | { (exit 1); exit 1; }; } ;; |
| 13659 | esac |
| 13660 | else |
| 13661 | if test "$cross_compiling" = yes; then |
| 13662 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 13663 | See \`config.log' for more details." >&5 |
| 13664 | echo "$as_me: error: cannot run test program while cross compiling |
| 13665 | See \`config.log' for more details." >&2;} |
| 13666 | { (exit 1); exit 1; }; } |
| 13667 | else |
| 13668 | cat >conftest.$ac_ext <<_ACEOF |
| 13669 | /* confdefs.h. */ |
| 13670 | _ACEOF |
| 13671 | cat confdefs.h >>conftest.$ac_ext |
| 13672 | cat >>conftest.$ac_ext <<_ACEOF |
| 13673 | /* end confdefs.h. */ |
| 13674 | $ac_includes_default |
| 13675 | long longval () { return (long) (sizeof (short)); } |
| 13676 | unsigned long ulongval () { return (long) (sizeof (short)); } |
| 13677 | #include <stdio.h> |
| 13678 | #include <stdlib.h> |
| 13679 | int |
| 13680 | main () |
| 13681 | { |
| 13682 | |
| 13683 | FILE *f = fopen ("conftest.val", "w"); |
| 13684 | if (! f) |
| 13685 | exit (1); |
| 13686 | if (((long) (sizeof (short))) < 0) |
| 13687 | { |
| 13688 | long i = longval (); |
| 13689 | if (i != ((long) (sizeof (short)))) |
| 13690 | exit (1); |
| 13691 | fprintf (f, "%ld\n", i); |
| 13692 | } |
| 13693 | else |
| 13694 | { |
| 13695 | unsigned long i = ulongval (); |
| 13696 | if (i != ((long) (sizeof (short)))) |
| 13697 | exit (1); |
| 13698 | fprintf (f, "%lu\n", i); |
| 13699 | } |
| 13700 | exit (ferror (f) || fclose (f) != 0); |
| 13701 | |
| 13702 | ; |
| 13703 | return 0; |
| 13704 | } |
| 13705 | _ACEOF |
| 13706 | rm -f conftest$ac_exeext |
| 13707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13708 | (eval $ac_link) 2>&5 |
| 13709 | ac_status=$? |
| 13710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13711 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13713 | (eval $ac_try) 2>&5 |
| 13714 | ac_status=$? |
| 13715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13716 | (exit $ac_status); }; }; then |
| 13717 | ac_cv_sizeof_short=`cat conftest.val` |
| 13718 | else |
| 13719 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13720 | echo "$as_me: failed program was:" >&5 |
| 13721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13722 | |
| 13723 | ( exit $ac_status ) |
| 13724 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 13725 | See \`config.log' for more details." >&5 |
| 13726 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 13727 | See \`config.log' for more details." >&2;} |
| 13728 | { (exit 1); exit 1; }; } |
| 13729 | fi |
| 13730 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13731 | fi |
| 13732 | fi |
| 13733 | rm -f conftest.val |
| 13734 | else |
| 13735 | ac_cv_sizeof_short=0 |
| 13736 | fi |
| 13737 | fi |
| 13738 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 13739 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 13740 | cat >>confdefs.h <<_ACEOF |
| 13741 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 13742 | _ACEOF |
| 13743 | |
| 13744 | |
| 13745 | echo "$as_me:$LINENO: checking for char" >&5 |
| 13746 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 13747 | if test "${ac_cv_type_char+set}" = set; then |
| 13748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13749 | else |
| 13750 | cat >conftest.$ac_ext <<_ACEOF |
| 13751 | /* confdefs.h. */ |
| 13752 | _ACEOF |
| 13753 | cat confdefs.h >>conftest.$ac_ext |
| 13754 | cat >>conftest.$ac_ext <<_ACEOF |
| 13755 | /* end confdefs.h. */ |
| 13756 | $ac_includes_default |
| 13757 | int |
| 13758 | main () |
| 13759 | { |
| 13760 | if ((char *) 0) |
| 13761 | return 0; |
| 13762 | if (sizeof (char)) |
| 13763 | return 0; |
| 13764 | ; |
| 13765 | return 0; |
| 13766 | } |
| 13767 | _ACEOF |
| 13768 | rm -f conftest.$ac_objext |
| 13769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13770 | (eval $ac_compile) 2>conftest.er1 |
| 13771 | ac_status=$? |
| 13772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13773 | rm -f conftest.er1 |
| 13774 | cat conftest.err >&5 |
| 13775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13776 | (exit $ac_status); } && |
| 13777 | { ac_try='test -z "$ac_c_werror_flag" |
| 13778 | || test ! -s conftest.err' |
| 13779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13780 | (eval $ac_try) 2>&5 |
| 13781 | ac_status=$? |
| 13782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13783 | (exit $ac_status); }; } && |
| 13784 | { ac_try='test -s conftest.$ac_objext' |
| 13785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13786 | (eval $ac_try) 2>&5 |
| 13787 | ac_status=$? |
| 13788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13789 | (exit $ac_status); }; }; then |
| 13790 | ac_cv_type_char=yes |
| 13791 | else |
| 13792 | echo "$as_me: failed program was:" >&5 |
| 13793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13794 | |
| 13795 | ac_cv_type_char=no |
| 13796 | fi |
| 13797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13798 | fi |
| 13799 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 13800 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 13801 | |
| 13802 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 13803 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 13804 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 13805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13806 | else |
| 13807 | if test "$ac_cv_type_char" = yes; then |
| 13808 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 13809 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13810 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13811 | # This bug is HP SR number 8606223364. |
| 13812 | if test "$cross_compiling" = yes; then |
| 13813 | # Depending upon the size, compute the lo and hi bounds. |
| 13814 | cat >conftest.$ac_ext <<_ACEOF |
| 13815 | /* confdefs.h. */ |
| 13816 | _ACEOF |
| 13817 | cat confdefs.h >>conftest.$ac_ext |
| 13818 | cat >>conftest.$ac_ext <<_ACEOF |
| 13819 | /* end confdefs.h. */ |
| 13820 | $ac_includes_default |
| 13821 | int |
| 13822 | main () |
| 13823 | { |
| 13824 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 13825 | test_array [0] = 0 |
| 13826 | |
| 13827 | ; |
| 13828 | return 0; |
| 13829 | } |
| 13830 | _ACEOF |
| 13831 | rm -f conftest.$ac_objext |
| 13832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13833 | (eval $ac_compile) 2>conftest.er1 |
| 13834 | ac_status=$? |
| 13835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13836 | rm -f conftest.er1 |
| 13837 | cat conftest.err >&5 |
| 13838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13839 | (exit $ac_status); } && |
| 13840 | { ac_try='test -z "$ac_c_werror_flag" |
| 13841 | || test ! -s conftest.err' |
| 13842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13843 | (eval $ac_try) 2>&5 |
| 13844 | ac_status=$? |
| 13845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13846 | (exit $ac_status); }; } && |
| 13847 | { ac_try='test -s conftest.$ac_objext' |
| 13848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13849 | (eval $ac_try) 2>&5 |
| 13850 | ac_status=$? |
| 13851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13852 | (exit $ac_status); }; }; then |
| 13853 | ac_lo=0 ac_mid=0 |
| 13854 | while :; do |
| 13855 | cat >conftest.$ac_ext <<_ACEOF |
| 13856 | /* confdefs.h. */ |
| 13857 | _ACEOF |
| 13858 | cat confdefs.h >>conftest.$ac_ext |
| 13859 | cat >>conftest.$ac_ext <<_ACEOF |
| 13860 | /* end confdefs.h. */ |
| 13861 | $ac_includes_default |
| 13862 | int |
| 13863 | main () |
| 13864 | { |
| 13865 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 13866 | test_array [0] = 0 |
| 13867 | |
| 13868 | ; |
| 13869 | return 0; |
| 13870 | } |
| 13871 | _ACEOF |
| 13872 | rm -f conftest.$ac_objext |
| 13873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13874 | (eval $ac_compile) 2>conftest.er1 |
| 13875 | ac_status=$? |
| 13876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13877 | rm -f conftest.er1 |
| 13878 | cat conftest.err >&5 |
| 13879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13880 | (exit $ac_status); } && |
| 13881 | { ac_try='test -z "$ac_c_werror_flag" |
| 13882 | || test ! -s conftest.err' |
| 13883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13884 | (eval $ac_try) 2>&5 |
| 13885 | ac_status=$? |
| 13886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13887 | (exit $ac_status); }; } && |
| 13888 | { ac_try='test -s conftest.$ac_objext' |
| 13889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13890 | (eval $ac_try) 2>&5 |
| 13891 | ac_status=$? |
| 13892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13893 | (exit $ac_status); }; }; then |
| 13894 | ac_hi=$ac_mid; break |
| 13895 | else |
| 13896 | echo "$as_me: failed program was:" >&5 |
| 13897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13898 | |
| 13899 | ac_lo=`expr $ac_mid + 1` |
| 13900 | if test $ac_lo -le $ac_mid; then |
| 13901 | ac_lo= ac_hi= |
| 13902 | break |
| 13903 | fi |
| 13904 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 13905 | fi |
| 13906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13907 | done |
| 13908 | else |
| 13909 | echo "$as_me: failed program was:" >&5 |
| 13910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13911 | |
| 13912 | cat >conftest.$ac_ext <<_ACEOF |
| 13913 | /* confdefs.h. */ |
| 13914 | _ACEOF |
| 13915 | cat confdefs.h >>conftest.$ac_ext |
| 13916 | cat >>conftest.$ac_ext <<_ACEOF |
| 13917 | /* end confdefs.h. */ |
| 13918 | $ac_includes_default |
| 13919 | int |
| 13920 | main () |
| 13921 | { |
| 13922 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 13923 | test_array [0] = 0 |
| 13924 | |
| 13925 | ; |
| 13926 | return 0; |
| 13927 | } |
| 13928 | _ACEOF |
| 13929 | rm -f conftest.$ac_objext |
| 13930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13931 | (eval $ac_compile) 2>conftest.er1 |
| 13932 | ac_status=$? |
| 13933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13934 | rm -f conftest.er1 |
| 13935 | cat conftest.err >&5 |
| 13936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13937 | (exit $ac_status); } && |
| 13938 | { ac_try='test -z "$ac_c_werror_flag" |
| 13939 | || test ! -s conftest.err' |
| 13940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13941 | (eval $ac_try) 2>&5 |
| 13942 | ac_status=$? |
| 13943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13944 | (exit $ac_status); }; } && |
| 13945 | { ac_try='test -s conftest.$ac_objext' |
| 13946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13947 | (eval $ac_try) 2>&5 |
| 13948 | ac_status=$? |
| 13949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13950 | (exit $ac_status); }; }; then |
| 13951 | ac_hi=-1 ac_mid=-1 |
| 13952 | while :; do |
| 13953 | cat >conftest.$ac_ext <<_ACEOF |
| 13954 | /* confdefs.h. */ |
| 13955 | _ACEOF |
| 13956 | cat confdefs.h >>conftest.$ac_ext |
| 13957 | cat >>conftest.$ac_ext <<_ACEOF |
| 13958 | /* end confdefs.h. */ |
| 13959 | $ac_includes_default |
| 13960 | int |
| 13961 | main () |
| 13962 | { |
| 13963 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 13964 | test_array [0] = 0 |
| 13965 | |
| 13966 | ; |
| 13967 | return 0; |
| 13968 | } |
| 13969 | _ACEOF |
| 13970 | rm -f conftest.$ac_objext |
| 13971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13972 | (eval $ac_compile) 2>conftest.er1 |
| 13973 | ac_status=$? |
| 13974 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13975 | rm -f conftest.er1 |
| 13976 | cat conftest.err >&5 |
| 13977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13978 | (exit $ac_status); } && |
| 13979 | { ac_try='test -z "$ac_c_werror_flag" |
| 13980 | || test ! -s conftest.err' |
| 13981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13982 | (eval $ac_try) 2>&5 |
| 13983 | ac_status=$? |
| 13984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13985 | (exit $ac_status); }; } && |
| 13986 | { ac_try='test -s conftest.$ac_objext' |
| 13987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13988 | (eval $ac_try) 2>&5 |
| 13989 | ac_status=$? |
| 13990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13991 | (exit $ac_status); }; }; then |
| 13992 | ac_lo=$ac_mid; break |
| 13993 | else |
| 13994 | echo "$as_me: failed program was:" >&5 |
| 13995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13996 | |
| 13997 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13998 | if test $ac_mid -le $ac_hi; then |
| 13999 | ac_lo= ac_hi= |
| 14000 | break |
| 14001 | fi |
| 14002 | ac_mid=`expr 2 '*' $ac_mid` |
| 14003 | fi |
| 14004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14005 | done |
| 14006 | else |
| 14007 | echo "$as_me: failed program was:" >&5 |
| 14008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14009 | |
| 14010 | ac_lo= ac_hi= |
| 14011 | fi |
| 14012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14013 | fi |
| 14014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14015 | # Binary search between lo and hi bounds. |
| 14016 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14017 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14018 | cat >conftest.$ac_ext <<_ACEOF |
| 14019 | /* confdefs.h. */ |
| 14020 | _ACEOF |
| 14021 | cat confdefs.h >>conftest.$ac_ext |
| 14022 | cat >>conftest.$ac_ext <<_ACEOF |
| 14023 | /* end confdefs.h. */ |
| 14024 | $ac_includes_default |
| 14025 | int |
| 14026 | main () |
| 14027 | { |
| 14028 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 14029 | test_array [0] = 0 |
| 14030 | |
| 14031 | ; |
| 14032 | return 0; |
| 14033 | } |
| 14034 | _ACEOF |
| 14035 | rm -f conftest.$ac_objext |
| 14036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14037 | (eval $ac_compile) 2>conftest.er1 |
| 14038 | ac_status=$? |
| 14039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14040 | rm -f conftest.er1 |
| 14041 | cat conftest.err >&5 |
| 14042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14043 | (exit $ac_status); } && |
| 14044 | { ac_try='test -z "$ac_c_werror_flag" |
| 14045 | || test ! -s conftest.err' |
| 14046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14047 | (eval $ac_try) 2>&5 |
| 14048 | ac_status=$? |
| 14049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14050 | (exit $ac_status); }; } && |
| 14051 | { ac_try='test -s conftest.$ac_objext' |
| 14052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14053 | (eval $ac_try) 2>&5 |
| 14054 | ac_status=$? |
| 14055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14056 | (exit $ac_status); }; }; then |
| 14057 | ac_hi=$ac_mid |
| 14058 | else |
| 14059 | echo "$as_me: failed program was:" >&5 |
| 14060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14061 | |
| 14062 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14063 | fi |
| 14064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14065 | done |
| 14066 | case $ac_lo in |
| 14067 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 14068 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 14069 | See \`config.log' for more details." >&5 |
| 14070 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 14071 | See \`config.log' for more details." >&2;} |
| 14072 | { (exit 1); exit 1; }; } ;; |
| 14073 | esac |
| 14074 | else |
| 14075 | if test "$cross_compiling" = yes; then |
| 14076 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 14077 | See \`config.log' for more details." >&5 |
| 14078 | echo "$as_me: error: cannot run test program while cross compiling |
| 14079 | See \`config.log' for more details." >&2;} |
| 14080 | { (exit 1); exit 1; }; } |
| 14081 | else |
| 14082 | cat >conftest.$ac_ext <<_ACEOF |
| 14083 | /* confdefs.h. */ |
| 14084 | _ACEOF |
| 14085 | cat confdefs.h >>conftest.$ac_ext |
| 14086 | cat >>conftest.$ac_ext <<_ACEOF |
| 14087 | /* end confdefs.h. */ |
| 14088 | $ac_includes_default |
| 14089 | long longval () { return (long) (sizeof (char)); } |
| 14090 | unsigned long ulongval () { return (long) (sizeof (char)); } |
| 14091 | #include <stdio.h> |
| 14092 | #include <stdlib.h> |
| 14093 | int |
| 14094 | main () |
| 14095 | { |
| 14096 | |
| 14097 | FILE *f = fopen ("conftest.val", "w"); |
| 14098 | if (! f) |
| 14099 | exit (1); |
| 14100 | if (((long) (sizeof (char))) < 0) |
| 14101 | { |
| 14102 | long i = longval (); |
| 14103 | if (i != ((long) (sizeof (char)))) |
| 14104 | exit (1); |
| 14105 | fprintf (f, "%ld\n", i); |
| 14106 | } |
| 14107 | else |
| 14108 | { |
| 14109 | unsigned long i = ulongval (); |
| 14110 | if (i != ((long) (sizeof (char)))) |
| 14111 | exit (1); |
| 14112 | fprintf (f, "%lu\n", i); |
| 14113 | } |
| 14114 | exit (ferror (f) || fclose (f) != 0); |
| 14115 | |
| 14116 | ; |
| 14117 | return 0; |
| 14118 | } |
| 14119 | _ACEOF |
| 14120 | rm -f conftest$ac_exeext |
| 14121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14122 | (eval $ac_link) 2>&5 |
| 14123 | ac_status=$? |
| 14124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14125 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14127 | (eval $ac_try) 2>&5 |
| 14128 | ac_status=$? |
| 14129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14130 | (exit $ac_status); }; }; then |
| 14131 | ac_cv_sizeof_char=`cat conftest.val` |
| 14132 | else |
| 14133 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14134 | echo "$as_me: failed program was:" >&5 |
| 14135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14136 | |
| 14137 | ( exit $ac_status ) |
| 14138 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
| 14139 | See \`config.log' for more details." >&5 |
| 14140 | echo "$as_me: error: cannot compute sizeof (char), 77 |
| 14141 | See \`config.log' for more details." >&2;} |
| 14142 | { (exit 1); exit 1; }; } |
| 14143 | fi |
| 14144 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14145 | fi |
| 14146 | fi |
| 14147 | rm -f conftest.val |
| 14148 | else |
| 14149 | ac_cv_sizeof_char=0 |
| 14150 | fi |
| 14151 | fi |
| 14152 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 14153 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 14154 | cat >>confdefs.h <<_ACEOF |
| 14155 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 14156 | _ACEOF |
| 14157 | |
| 14158 | |
| 14159 | |
| 14160 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 |
| 14161 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 |
| 14162 | case "$ac_cv_sizeof_char" in |
| 14163 | 1) acx_cv_type_int8_t=char ;; |
| 14164 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 |
| 14165 | echo "$as_me: error: no 8-bit type" >&2;} |
| 14166 | { (exit please report a bug); exit please report a bug; }; } |
| 14167 | esac |
| 14168 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 |
| 14169 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 |
| 14170 | |
| 14171 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 |
| 14172 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 |
| 14173 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in |
| 14174 | 2:*) acx_cv_type_int16_t=int ;; |
| 14175 | *:2) acx_cv_type_int16_t=short ;; |
| 14176 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 |
| 14177 | echo "$as_me: error: no 16-bit type" >&2;} |
| 14178 | { (exit please report a bug); exit please report a bug; }; } |
| 14179 | esac |
| 14180 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 |
| 14181 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 |
| 14182 | |
| 14183 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 |
| 14184 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 |
| 14185 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in |
| 14186 | 4:*) acx_cv_type_int32_t=int ;; |
| 14187 | *:4) acx_cv_type_int32_t=long ;; |
| 14188 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 |
| 14189 | echo "$as_me: error: no 32-bit type" >&2;} |
| 14190 | { (exit please report a bug); exit please report a bug; }; } |
| 14191 | esac |
| 14192 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 |
| 14193 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 |
| 14194 | fi |
| 14195 | |
| 14196 | # These tests are here to make the output prettier |
| 14197 | |
| 14198 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then |
| 14199 | case "$ac_cv_sizeof_long" in |
| 14200 | 8) acx_cv_type_int64_t=long ;; |
| 14201 | esac |
| 14202 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 |
| 14203 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 |
| 14204 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 |
| 14205 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 |
| 14206 | fi |
| 14207 | |
| 14208 | # Now we can use the above types |
| 14209 | |
| 14210 | if test "$ac_cv_type_uintptr_t" != yes; then |
| 14211 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 |
| 14212 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 |
| 14213 | case $ac_cv_sizeof_void_p in |
| 14214 | 2) acx_cv_type_intptr_t=int16_t ;; |
| 14215 | 4) acx_cv_type_intptr_t=int32_t ;; |
| 14216 | 8) acx_cv_type_intptr_t=int64_t ;; |
| 14217 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 |
| 14218 | echo "$as_me: error: no equivalent for intptr_t" >&2;} |
| 14219 | { (exit please report a bug); exit please report a bug; }; } |
| 14220 | esac |
| 14221 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 |
| 14222 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 |
| 14223 | fi |
| 14224 | |
| 14225 | # ----------------- done all checks, emit header ------------- |
| 14226 | ac_config_commands="$ac_config_commands gdb_stdint.h" |
| 14227 | |
| 14228 | |
| 14229 | |
| 14230 | |
| 14231 | # ------------------------- # |
| 14232 | # Checks for declarations. # |
| 14233 | # ------------------------- # |
| 14234 | |
| 14235 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
| 14236 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 |
| 14237 | if test "${ac_cv_have_decl_free+set}" = set; then |
| 14238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14239 | else |
| 14240 | cat >conftest.$ac_ext <<_ACEOF |
| 14241 | /* confdefs.h. */ |
| 14242 | _ACEOF |
| 14243 | cat confdefs.h >>conftest.$ac_ext |
| 14244 | cat >>conftest.$ac_ext <<_ACEOF |
| 14245 | /* end confdefs.h. */ |
| 14246 | $ac_includes_default |
| 14247 | int |
| 14248 | main () |
| 14249 | { |
| 14250 | #ifndef free |
| 14251 | char *p = (char *) free; |
| 14252 | #endif |
| 14253 | |
| 14254 | ; |
| 14255 | return 0; |
| 14256 | } |
| 14257 | _ACEOF |
| 14258 | rm -f conftest.$ac_objext |
| 14259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14260 | (eval $ac_compile) 2>conftest.er1 |
| 14261 | ac_status=$? |
| 14262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14263 | rm -f conftest.er1 |
| 14264 | cat conftest.err >&5 |
| 14265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14266 | (exit $ac_status); } && |
| 14267 | { ac_try='test -z "$ac_c_werror_flag" |
| 14268 | || test ! -s conftest.err' |
| 14269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14270 | (eval $ac_try) 2>&5 |
| 14271 | ac_status=$? |
| 14272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14273 | (exit $ac_status); }; } && |
| 14274 | { ac_try='test -s conftest.$ac_objext' |
| 14275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14276 | (eval $ac_try) 2>&5 |
| 14277 | ac_status=$? |
| 14278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14279 | (exit $ac_status); }; }; then |
| 14280 | ac_cv_have_decl_free=yes |
| 14281 | else |
| 14282 | echo "$as_me: failed program was:" >&5 |
| 14283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14284 | |
| 14285 | ac_cv_have_decl_free=no |
| 14286 | fi |
| 14287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14288 | fi |
| 14289 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
| 14290 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 |
| 14291 | if test $ac_cv_have_decl_free = yes; then |
| 14292 | |
| 14293 | cat >>confdefs.h <<_ACEOF |
| 14294 | #define HAVE_DECL_FREE 1 |
| 14295 | _ACEOF |
| 14296 | |
| 14297 | |
| 14298 | else |
| 14299 | cat >>confdefs.h <<_ACEOF |
| 14300 | #define HAVE_DECL_FREE 0 |
| 14301 | _ACEOF |
| 14302 | |
| 14303 | |
| 14304 | fi |
| 14305 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
| 14306 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 |
| 14307 | if test "${ac_cv_have_decl_malloc+set}" = set; then |
| 14308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14309 | else |
| 14310 | cat >conftest.$ac_ext <<_ACEOF |
| 14311 | /* confdefs.h. */ |
| 14312 | _ACEOF |
| 14313 | cat confdefs.h >>conftest.$ac_ext |
| 14314 | cat >>conftest.$ac_ext <<_ACEOF |
| 14315 | /* end confdefs.h. */ |
| 14316 | $ac_includes_default |
| 14317 | int |
| 14318 | main () |
| 14319 | { |
| 14320 | #ifndef malloc |
| 14321 | char *p = (char *) malloc; |
| 14322 | #endif |
| 14323 | |
| 14324 | ; |
| 14325 | return 0; |
| 14326 | } |
| 14327 | _ACEOF |
| 14328 | rm -f conftest.$ac_objext |
| 14329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14330 | (eval $ac_compile) 2>conftest.er1 |
| 14331 | ac_status=$? |
| 14332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14333 | rm -f conftest.er1 |
| 14334 | cat conftest.err >&5 |
| 14335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14336 | (exit $ac_status); } && |
| 14337 | { ac_try='test -z "$ac_c_werror_flag" |
| 14338 | || test ! -s conftest.err' |
| 14339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14340 | (eval $ac_try) 2>&5 |
| 14341 | ac_status=$? |
| 14342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14343 | (exit $ac_status); }; } && |
| 14344 | { ac_try='test -s conftest.$ac_objext' |
| 14345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14346 | (eval $ac_try) 2>&5 |
| 14347 | ac_status=$? |
| 14348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14349 | (exit $ac_status); }; }; then |
| 14350 | ac_cv_have_decl_malloc=yes |
| 14351 | else |
| 14352 | echo "$as_me: failed program was:" >&5 |
| 14353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14354 | |
| 14355 | ac_cv_have_decl_malloc=no |
| 14356 | fi |
| 14357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14358 | fi |
| 14359 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
| 14360 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 |
| 14361 | if test $ac_cv_have_decl_malloc = yes; then |
| 14362 | |
| 14363 | cat >>confdefs.h <<_ACEOF |
| 14364 | #define HAVE_DECL_MALLOC 1 |
| 14365 | _ACEOF |
| 14366 | |
| 14367 | |
| 14368 | else |
| 14369 | cat >>confdefs.h <<_ACEOF |
| 14370 | #define HAVE_DECL_MALLOC 0 |
| 14371 | _ACEOF |
| 14372 | |
| 14373 | |
| 14374 | fi |
| 14375 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 |
| 14376 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 |
| 14377 | if test "${ac_cv_have_decl_realloc+set}" = set; then |
| 14378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14379 | else |
| 14380 | cat >conftest.$ac_ext <<_ACEOF |
| 14381 | /* confdefs.h. */ |
| 14382 | _ACEOF |
| 14383 | cat confdefs.h >>conftest.$ac_ext |
| 14384 | cat >>conftest.$ac_ext <<_ACEOF |
| 14385 | /* end confdefs.h. */ |
| 14386 | $ac_includes_default |
| 14387 | int |
| 14388 | main () |
| 14389 | { |
| 14390 | #ifndef realloc |
| 14391 | char *p = (char *) realloc; |
| 14392 | #endif |
| 14393 | |
| 14394 | ; |
| 14395 | return 0; |
| 14396 | } |
| 14397 | _ACEOF |
| 14398 | rm -f conftest.$ac_objext |
| 14399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14400 | (eval $ac_compile) 2>conftest.er1 |
| 14401 | ac_status=$? |
| 14402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14403 | rm -f conftest.er1 |
| 14404 | cat conftest.err >&5 |
| 14405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14406 | (exit $ac_status); } && |
| 14407 | { ac_try='test -z "$ac_c_werror_flag" |
| 14408 | || test ! -s conftest.err' |
| 14409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14410 | (eval $ac_try) 2>&5 |
| 14411 | ac_status=$? |
| 14412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14413 | (exit $ac_status); }; } && |
| 14414 | { ac_try='test -s conftest.$ac_objext' |
| 14415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14416 | (eval $ac_try) 2>&5 |
| 14417 | ac_status=$? |
| 14418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14419 | (exit $ac_status); }; }; then |
| 14420 | ac_cv_have_decl_realloc=yes |
| 14421 | else |
| 14422 | echo "$as_me: failed program was:" >&5 |
| 14423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14424 | |
| 14425 | ac_cv_have_decl_realloc=no |
| 14426 | fi |
| 14427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14428 | fi |
| 14429 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
| 14430 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 |
| 14431 | if test $ac_cv_have_decl_realloc = yes; then |
| 14432 | |
| 14433 | cat >>confdefs.h <<_ACEOF |
| 14434 | #define HAVE_DECL_REALLOC 1 |
| 14435 | _ACEOF |
| 14436 | |
| 14437 | |
| 14438 | else |
| 14439 | cat >>confdefs.h <<_ACEOF |
| 14440 | #define HAVE_DECL_REALLOC 0 |
| 14441 | _ACEOF |
| 14442 | |
| 14443 | |
| 14444 | fi |
| 14445 | |
| 14446 | |
| 14447 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
| 14448 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 |
| 14449 | if test "${ac_cv_have_decl_strerror+set}" = set; then |
| 14450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14451 | else |
| 14452 | cat >conftest.$ac_ext <<_ACEOF |
| 14453 | /* confdefs.h. */ |
| 14454 | _ACEOF |
| 14455 | cat confdefs.h >>conftest.$ac_ext |
| 14456 | cat >>conftest.$ac_ext <<_ACEOF |
| 14457 | /* end confdefs.h. */ |
| 14458 | $ac_includes_default |
| 14459 | int |
| 14460 | main () |
| 14461 | { |
| 14462 | #ifndef strerror |
| 14463 | char *p = (char *) strerror; |
| 14464 | #endif |
| 14465 | |
| 14466 | ; |
| 14467 | return 0; |
| 14468 | } |
| 14469 | _ACEOF |
| 14470 | rm -f conftest.$ac_objext |
| 14471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14472 | (eval $ac_compile) 2>conftest.er1 |
| 14473 | ac_status=$? |
| 14474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14475 | rm -f conftest.er1 |
| 14476 | cat conftest.err >&5 |
| 14477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14478 | (exit $ac_status); } && |
| 14479 | { ac_try='test -z "$ac_c_werror_flag" |
| 14480 | || test ! -s conftest.err' |
| 14481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14482 | (eval $ac_try) 2>&5 |
| 14483 | ac_status=$? |
| 14484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14485 | (exit $ac_status); }; } && |
| 14486 | { ac_try='test -s conftest.$ac_objext' |
| 14487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14488 | (eval $ac_try) 2>&5 |
| 14489 | ac_status=$? |
| 14490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14491 | (exit $ac_status); }; }; then |
| 14492 | ac_cv_have_decl_strerror=yes |
| 14493 | else |
| 14494 | echo "$as_me: failed program was:" >&5 |
| 14495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14496 | |
| 14497 | ac_cv_have_decl_strerror=no |
| 14498 | fi |
| 14499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14500 | fi |
| 14501 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
| 14502 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 |
| 14503 | if test $ac_cv_have_decl_strerror = yes; then |
| 14504 | |
| 14505 | cat >>confdefs.h <<_ACEOF |
| 14506 | #define HAVE_DECL_STRERROR 1 |
| 14507 | _ACEOF |
| 14508 | |
| 14509 | |
| 14510 | else |
| 14511 | cat >>confdefs.h <<_ACEOF |
| 14512 | #define HAVE_DECL_STRERROR 0 |
| 14513 | _ACEOF |
| 14514 | |
| 14515 | |
| 14516 | fi |
| 14517 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
| 14518 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 |
| 14519 | if test "${ac_cv_have_decl_strstr+set}" = set; then |
| 14520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14521 | else |
| 14522 | cat >conftest.$ac_ext <<_ACEOF |
| 14523 | /* confdefs.h. */ |
| 14524 | _ACEOF |
| 14525 | cat confdefs.h >>conftest.$ac_ext |
| 14526 | cat >>conftest.$ac_ext <<_ACEOF |
| 14527 | /* end confdefs.h. */ |
| 14528 | $ac_includes_default |
| 14529 | int |
| 14530 | main () |
| 14531 | { |
| 14532 | #ifndef strstr |
| 14533 | char *p = (char *) strstr; |
| 14534 | #endif |
| 14535 | |
| 14536 | ; |
| 14537 | return 0; |
| 14538 | } |
| 14539 | _ACEOF |
| 14540 | rm -f conftest.$ac_objext |
| 14541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14542 | (eval $ac_compile) 2>conftest.er1 |
| 14543 | ac_status=$? |
| 14544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14545 | rm -f conftest.er1 |
| 14546 | cat conftest.err >&5 |
| 14547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14548 | (exit $ac_status); } && |
| 14549 | { ac_try='test -z "$ac_c_werror_flag" |
| 14550 | || test ! -s conftest.err' |
| 14551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14552 | (eval $ac_try) 2>&5 |
| 14553 | ac_status=$? |
| 14554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14555 | (exit $ac_status); }; } && |
| 14556 | { ac_try='test -s conftest.$ac_objext' |
| 14557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14558 | (eval $ac_try) 2>&5 |
| 14559 | ac_status=$? |
| 14560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14561 | (exit $ac_status); }; }; then |
| 14562 | ac_cv_have_decl_strstr=yes |
| 14563 | else |
| 14564 | echo "$as_me: failed program was:" >&5 |
| 14565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14566 | |
| 14567 | ac_cv_have_decl_strstr=no |
| 14568 | fi |
| 14569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14570 | fi |
| 14571 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
| 14572 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 |
| 14573 | if test $ac_cv_have_decl_strstr = yes; then |
| 14574 | |
| 14575 | cat >>confdefs.h <<_ACEOF |
| 14576 | #define HAVE_DECL_STRSTR 1 |
| 14577 | _ACEOF |
| 14578 | |
| 14579 | |
| 14580 | else |
| 14581 | cat >>confdefs.h <<_ACEOF |
| 14582 | #define HAVE_DECL_STRSTR 0 |
| 14583 | _ACEOF |
| 14584 | |
| 14585 | |
| 14586 | fi |
| 14587 | |
| 14588 | |
| 14589 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 |
| 14590 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 |
| 14591 | if test "${ac_cv_have_decl_getopt+set}" = set; then |
| 14592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14593 | else |
| 14594 | cat >conftest.$ac_ext <<_ACEOF |
| 14595 | /* confdefs.h. */ |
| 14596 | _ACEOF |
| 14597 | cat confdefs.h >>conftest.$ac_ext |
| 14598 | cat >>conftest.$ac_ext <<_ACEOF |
| 14599 | /* end confdefs.h. */ |
| 14600 | $ac_includes_default |
| 14601 | int |
| 14602 | main () |
| 14603 | { |
| 14604 | #ifndef getopt |
| 14605 | char *p = (char *) getopt; |
| 14606 | #endif |
| 14607 | |
| 14608 | ; |
| 14609 | return 0; |
| 14610 | } |
| 14611 | _ACEOF |
| 14612 | rm -f conftest.$ac_objext |
| 14613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14614 | (eval $ac_compile) 2>conftest.er1 |
| 14615 | ac_status=$? |
| 14616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14617 | rm -f conftest.er1 |
| 14618 | cat conftest.err >&5 |
| 14619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14620 | (exit $ac_status); } && |
| 14621 | { ac_try='test -z "$ac_c_werror_flag" |
| 14622 | || test ! -s conftest.err' |
| 14623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14624 | (eval $ac_try) 2>&5 |
| 14625 | ac_status=$? |
| 14626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14627 | (exit $ac_status); }; } && |
| 14628 | { ac_try='test -s conftest.$ac_objext' |
| 14629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14630 | (eval $ac_try) 2>&5 |
| 14631 | ac_status=$? |
| 14632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14633 | (exit $ac_status); }; }; then |
| 14634 | ac_cv_have_decl_getopt=yes |
| 14635 | else |
| 14636 | echo "$as_me: failed program was:" >&5 |
| 14637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14638 | |
| 14639 | ac_cv_have_decl_getopt=no |
| 14640 | fi |
| 14641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14642 | fi |
| 14643 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 |
| 14644 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 |
| 14645 | if test $ac_cv_have_decl_getopt = yes; then |
| 14646 | |
| 14647 | cat >>confdefs.h <<_ACEOF |
| 14648 | #define HAVE_DECL_GETOPT 1 |
| 14649 | _ACEOF |
| 14650 | |
| 14651 | |
| 14652 | else |
| 14653 | cat >>confdefs.h <<_ACEOF |
| 14654 | #define HAVE_DECL_GETOPT 0 |
| 14655 | _ACEOF |
| 14656 | |
| 14657 | |
| 14658 | fi |
| 14659 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
| 14660 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 |
| 14661 | if test "${ac_cv_have_decl_snprintf+set}" = set; then |
| 14662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14663 | else |
| 14664 | cat >conftest.$ac_ext <<_ACEOF |
| 14665 | /* confdefs.h. */ |
| 14666 | _ACEOF |
| 14667 | cat confdefs.h >>conftest.$ac_ext |
| 14668 | cat >>conftest.$ac_ext <<_ACEOF |
| 14669 | /* end confdefs.h. */ |
| 14670 | $ac_includes_default |
| 14671 | int |
| 14672 | main () |
| 14673 | { |
| 14674 | #ifndef snprintf |
| 14675 | char *p = (char *) snprintf; |
| 14676 | #endif |
| 14677 | |
| 14678 | ; |
| 14679 | return 0; |
| 14680 | } |
| 14681 | _ACEOF |
| 14682 | rm -f conftest.$ac_objext |
| 14683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14684 | (eval $ac_compile) 2>conftest.er1 |
| 14685 | ac_status=$? |
| 14686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14687 | rm -f conftest.er1 |
| 14688 | cat conftest.err >&5 |
| 14689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14690 | (exit $ac_status); } && |
| 14691 | { ac_try='test -z "$ac_c_werror_flag" |
| 14692 | || test ! -s conftest.err' |
| 14693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14694 | (eval $ac_try) 2>&5 |
| 14695 | ac_status=$? |
| 14696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14697 | (exit $ac_status); }; } && |
| 14698 | { ac_try='test -s conftest.$ac_objext' |
| 14699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14700 | (eval $ac_try) 2>&5 |
| 14701 | ac_status=$? |
| 14702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14703 | (exit $ac_status); }; }; then |
| 14704 | ac_cv_have_decl_snprintf=yes |
| 14705 | else |
| 14706 | echo "$as_me: failed program was:" >&5 |
| 14707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14708 | |
| 14709 | ac_cv_have_decl_snprintf=no |
| 14710 | fi |
| 14711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14712 | fi |
| 14713 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 |
| 14714 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 |
| 14715 | if test $ac_cv_have_decl_snprintf = yes; then |
| 14716 | |
| 14717 | cat >>confdefs.h <<_ACEOF |
| 14718 | #define HAVE_DECL_SNPRINTF 1 |
| 14719 | _ACEOF |
| 14720 | |
| 14721 | |
| 14722 | else |
| 14723 | cat >>confdefs.h <<_ACEOF |
| 14724 | #define HAVE_DECL_SNPRINTF 0 |
| 14725 | _ACEOF |
| 14726 | |
| 14727 | |
| 14728 | fi |
| 14729 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
| 14730 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 |
| 14731 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
| 14732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14733 | else |
| 14734 | cat >conftest.$ac_ext <<_ACEOF |
| 14735 | /* confdefs.h. */ |
| 14736 | _ACEOF |
| 14737 | cat confdefs.h >>conftest.$ac_ext |
| 14738 | cat >>conftest.$ac_ext <<_ACEOF |
| 14739 | /* end confdefs.h. */ |
| 14740 | $ac_includes_default |
| 14741 | int |
| 14742 | main () |
| 14743 | { |
| 14744 | #ifndef vsnprintf |
| 14745 | char *p = (char *) vsnprintf; |
| 14746 | #endif |
| 14747 | |
| 14748 | ; |
| 14749 | return 0; |
| 14750 | } |
| 14751 | _ACEOF |
| 14752 | rm -f conftest.$ac_objext |
| 14753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14754 | (eval $ac_compile) 2>conftest.er1 |
| 14755 | ac_status=$? |
| 14756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14757 | rm -f conftest.er1 |
| 14758 | cat conftest.err >&5 |
| 14759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14760 | (exit $ac_status); } && |
| 14761 | { ac_try='test -z "$ac_c_werror_flag" |
| 14762 | || test ! -s conftest.err' |
| 14763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14764 | (eval $ac_try) 2>&5 |
| 14765 | ac_status=$? |
| 14766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14767 | (exit $ac_status); }; } && |
| 14768 | { ac_try='test -s conftest.$ac_objext' |
| 14769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14770 | (eval $ac_try) 2>&5 |
| 14771 | ac_status=$? |
| 14772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14773 | (exit $ac_status); }; }; then |
| 14774 | ac_cv_have_decl_vsnprintf=yes |
| 14775 | else |
| 14776 | echo "$as_me: failed program was:" >&5 |
| 14777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14778 | |
| 14779 | ac_cv_have_decl_vsnprintf=no |
| 14780 | fi |
| 14781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14782 | fi |
| 14783 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
| 14784 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 |
| 14785 | if test $ac_cv_have_decl_vsnprintf = yes; then |
| 14786 | |
| 14787 | cat >>confdefs.h <<_ACEOF |
| 14788 | #define HAVE_DECL_VSNPRINTF 1 |
| 14789 | _ACEOF |
| 14790 | |
| 14791 | |
| 14792 | else |
| 14793 | cat >>confdefs.h <<_ACEOF |
| 14794 | #define HAVE_DECL_VSNPRINTF 0 |
| 14795 | _ACEOF |
| 14796 | |
| 14797 | |
| 14798 | fi |
| 14799 | |
| 14800 | |
| 14801 | |
| 14802 | # ----------------------- # |
| 14803 | # Checks for structures. # |
| 14804 | # ----------------------- # |
| 14805 | |
| 14806 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 14807 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 14808 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 14809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14810 | else |
| 14811 | cat >conftest.$ac_ext <<_ACEOF |
| 14812 | /* confdefs.h. */ |
| 14813 | _ACEOF |
| 14814 | cat confdefs.h >>conftest.$ac_ext |
| 14815 | cat >>conftest.$ac_ext <<_ACEOF |
| 14816 | /* end confdefs.h. */ |
| 14817 | $ac_includes_default |
| 14818 | int |
| 14819 | main () |
| 14820 | { |
| 14821 | static struct stat ac_aggr; |
| 14822 | if (ac_aggr.st_blocks) |
| 14823 | return 0; |
| 14824 | ; |
| 14825 | return 0; |
| 14826 | } |
| 14827 | _ACEOF |
| 14828 | rm -f conftest.$ac_objext |
| 14829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14830 | (eval $ac_compile) 2>conftest.er1 |
| 14831 | ac_status=$? |
| 14832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14833 | rm -f conftest.er1 |
| 14834 | cat conftest.err >&5 |
| 14835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14836 | (exit $ac_status); } && |
| 14837 | { ac_try='test -z "$ac_c_werror_flag" |
| 14838 | || test ! -s conftest.err' |
| 14839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14840 | (eval $ac_try) 2>&5 |
| 14841 | ac_status=$? |
| 14842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14843 | (exit $ac_status); }; } && |
| 14844 | { ac_try='test -s conftest.$ac_objext' |
| 14845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14846 | (eval $ac_try) 2>&5 |
| 14847 | ac_status=$? |
| 14848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14849 | (exit $ac_status); }; }; then |
| 14850 | ac_cv_member_struct_stat_st_blocks=yes |
| 14851 | else |
| 14852 | echo "$as_me: failed program was:" >&5 |
| 14853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14854 | |
| 14855 | cat >conftest.$ac_ext <<_ACEOF |
| 14856 | /* confdefs.h. */ |
| 14857 | _ACEOF |
| 14858 | cat confdefs.h >>conftest.$ac_ext |
| 14859 | cat >>conftest.$ac_ext <<_ACEOF |
| 14860 | /* end confdefs.h. */ |
| 14861 | $ac_includes_default |
| 14862 | int |
| 14863 | main () |
| 14864 | { |
| 14865 | static struct stat ac_aggr; |
| 14866 | if (sizeof ac_aggr.st_blocks) |
| 14867 | return 0; |
| 14868 | ; |
| 14869 | return 0; |
| 14870 | } |
| 14871 | _ACEOF |
| 14872 | rm -f conftest.$ac_objext |
| 14873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14874 | (eval $ac_compile) 2>conftest.er1 |
| 14875 | ac_status=$? |
| 14876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14877 | rm -f conftest.er1 |
| 14878 | cat conftest.err >&5 |
| 14879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14880 | (exit $ac_status); } && |
| 14881 | { ac_try='test -z "$ac_c_werror_flag" |
| 14882 | || test ! -s conftest.err' |
| 14883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14884 | (eval $ac_try) 2>&5 |
| 14885 | ac_status=$? |
| 14886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14887 | (exit $ac_status); }; } && |
| 14888 | { ac_try='test -s conftest.$ac_objext' |
| 14889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14890 | (eval $ac_try) 2>&5 |
| 14891 | ac_status=$? |
| 14892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14893 | (exit $ac_status); }; }; then |
| 14894 | ac_cv_member_struct_stat_st_blocks=yes |
| 14895 | else |
| 14896 | echo "$as_me: failed program was:" >&5 |
| 14897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14898 | |
| 14899 | ac_cv_member_struct_stat_st_blocks=no |
| 14900 | fi |
| 14901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14902 | fi |
| 14903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14904 | fi |
| 14905 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 14906 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 14907 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
| 14908 | |
| 14909 | cat >>confdefs.h <<_ACEOF |
| 14910 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 14911 | _ACEOF |
| 14912 | |
| 14913 | |
| 14914 | fi |
| 14915 | |
| 14916 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 14917 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 14918 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 14919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14920 | else |
| 14921 | cat >conftest.$ac_ext <<_ACEOF |
| 14922 | /* confdefs.h. */ |
| 14923 | _ACEOF |
| 14924 | cat confdefs.h >>conftest.$ac_ext |
| 14925 | cat >>conftest.$ac_ext <<_ACEOF |
| 14926 | /* end confdefs.h. */ |
| 14927 | $ac_includes_default |
| 14928 | int |
| 14929 | main () |
| 14930 | { |
| 14931 | static struct stat ac_aggr; |
| 14932 | if (ac_aggr.st_blksize) |
| 14933 | return 0; |
| 14934 | ; |
| 14935 | return 0; |
| 14936 | } |
| 14937 | _ACEOF |
| 14938 | rm -f conftest.$ac_objext |
| 14939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14940 | (eval $ac_compile) 2>conftest.er1 |
| 14941 | ac_status=$? |
| 14942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14943 | rm -f conftest.er1 |
| 14944 | cat conftest.err >&5 |
| 14945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14946 | (exit $ac_status); } && |
| 14947 | { ac_try='test -z "$ac_c_werror_flag" |
| 14948 | || test ! -s conftest.err' |
| 14949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14950 | (eval $ac_try) 2>&5 |
| 14951 | ac_status=$? |
| 14952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14953 | (exit $ac_status); }; } && |
| 14954 | { ac_try='test -s conftest.$ac_objext' |
| 14955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14956 | (eval $ac_try) 2>&5 |
| 14957 | ac_status=$? |
| 14958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14959 | (exit $ac_status); }; }; then |
| 14960 | ac_cv_member_struct_stat_st_blksize=yes |
| 14961 | else |
| 14962 | echo "$as_me: failed program was:" >&5 |
| 14963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14964 | |
| 14965 | cat >conftest.$ac_ext <<_ACEOF |
| 14966 | /* confdefs.h. */ |
| 14967 | _ACEOF |
| 14968 | cat confdefs.h >>conftest.$ac_ext |
| 14969 | cat >>conftest.$ac_ext <<_ACEOF |
| 14970 | /* end confdefs.h. */ |
| 14971 | $ac_includes_default |
| 14972 | int |
| 14973 | main () |
| 14974 | { |
| 14975 | static struct stat ac_aggr; |
| 14976 | if (sizeof ac_aggr.st_blksize) |
| 14977 | return 0; |
| 14978 | ; |
| 14979 | return 0; |
| 14980 | } |
| 14981 | _ACEOF |
| 14982 | rm -f conftest.$ac_objext |
| 14983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14984 | (eval $ac_compile) 2>conftest.er1 |
| 14985 | ac_status=$? |
| 14986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14987 | rm -f conftest.er1 |
| 14988 | cat conftest.err >&5 |
| 14989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14990 | (exit $ac_status); } && |
| 14991 | { ac_try='test -z "$ac_c_werror_flag" |
| 14992 | || test ! -s conftest.err' |
| 14993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14994 | (eval $ac_try) 2>&5 |
| 14995 | ac_status=$? |
| 14996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14997 | (exit $ac_status); }; } && |
| 14998 | { ac_try='test -s conftest.$ac_objext' |
| 14999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15000 | (eval $ac_try) 2>&5 |
| 15001 | ac_status=$? |
| 15002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15003 | (exit $ac_status); }; }; then |
| 15004 | ac_cv_member_struct_stat_st_blksize=yes |
| 15005 | else |
| 15006 | echo "$as_me: failed program was:" >&5 |
| 15007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15008 | |
| 15009 | ac_cv_member_struct_stat_st_blksize=no |
| 15010 | fi |
| 15011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15012 | fi |
| 15013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15014 | fi |
| 15015 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 15016 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 15017 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
| 15018 | |
| 15019 | cat >>confdefs.h <<_ACEOF |
| 15020 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 15021 | _ACEOF |
| 15022 | |
| 15023 | |
| 15024 | fi |
| 15025 | |
| 15026 | |
| 15027 | # ------------------ # |
| 15028 | # Checks for types. # |
| 15029 | # ------------------ # |
| 15030 | |
| 15031 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 15032 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 15033 | if test "${ac_cv_type_signal+set}" = set; then |
| 15034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15035 | else |
| 15036 | cat >conftest.$ac_ext <<_ACEOF |
| 15037 | /* confdefs.h. */ |
| 15038 | _ACEOF |
| 15039 | cat confdefs.h >>conftest.$ac_ext |
| 15040 | cat >>conftest.$ac_ext <<_ACEOF |
| 15041 | /* end confdefs.h. */ |
| 15042 | #include <sys/types.h> |
| 15043 | #include <signal.h> |
| 15044 | #ifdef signal |
| 15045 | # undef signal |
| 15046 | #endif |
| 15047 | #ifdef __cplusplus |
| 15048 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 15049 | #else |
| 15050 | void (*signal ()) (); |
| 15051 | #endif |
| 15052 | |
| 15053 | int |
| 15054 | main () |
| 15055 | { |
| 15056 | int i; |
| 15057 | ; |
| 15058 | return 0; |
| 15059 | } |
| 15060 | _ACEOF |
| 15061 | rm -f conftest.$ac_objext |
| 15062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15063 | (eval $ac_compile) 2>conftest.er1 |
| 15064 | ac_status=$? |
| 15065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15066 | rm -f conftest.er1 |
| 15067 | cat conftest.err >&5 |
| 15068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15069 | (exit $ac_status); } && |
| 15070 | { ac_try='test -z "$ac_c_werror_flag" |
| 15071 | || test ! -s conftest.err' |
| 15072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15073 | (eval $ac_try) 2>&5 |
| 15074 | ac_status=$? |
| 15075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15076 | (exit $ac_status); }; } && |
| 15077 | { ac_try='test -s conftest.$ac_objext' |
| 15078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15079 | (eval $ac_try) 2>&5 |
| 15080 | ac_status=$? |
| 15081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15082 | (exit $ac_status); }; }; then |
| 15083 | ac_cv_type_signal=void |
| 15084 | else |
| 15085 | echo "$as_me: failed program was:" >&5 |
| 15086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15087 | |
| 15088 | ac_cv_type_signal=int |
| 15089 | fi |
| 15090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15091 | fi |
| 15092 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 15093 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 15094 | |
| 15095 | cat >>confdefs.h <<_ACEOF |
| 15096 | #define RETSIGTYPE $ac_cv_type_signal |
| 15097 | _ACEOF |
| 15098 | |
| 15099 | |
| 15100 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 15101 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 15102 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 15103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15104 | else |
| 15105 | cat >conftest.$ac_ext <<_ACEOF |
| 15106 | /* confdefs.h. */ |
| 15107 | _ACEOF |
| 15108 | cat confdefs.h >>conftest.$ac_ext |
| 15109 | cat >>conftest.$ac_ext <<_ACEOF |
| 15110 | /* end confdefs.h. */ |
| 15111 | #include <sys/types.h> |
| 15112 | #include <sys/socket.h> |
| 15113 | |
| 15114 | |
| 15115 | int |
| 15116 | main () |
| 15117 | { |
| 15118 | if ((socklen_t *) 0) |
| 15119 | return 0; |
| 15120 | if (sizeof (socklen_t)) |
| 15121 | return 0; |
| 15122 | ; |
| 15123 | return 0; |
| 15124 | } |
| 15125 | _ACEOF |
| 15126 | rm -f conftest.$ac_objext |
| 15127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15128 | (eval $ac_compile) 2>conftest.er1 |
| 15129 | ac_status=$? |
| 15130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15131 | rm -f conftest.er1 |
| 15132 | cat conftest.err >&5 |
| 15133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15134 | (exit $ac_status); } && |
| 15135 | { ac_try='test -z "$ac_c_werror_flag" |
| 15136 | || test ! -s conftest.err' |
| 15137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15138 | (eval $ac_try) 2>&5 |
| 15139 | ac_status=$? |
| 15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15141 | (exit $ac_status); }; } && |
| 15142 | { ac_try='test -s conftest.$ac_objext' |
| 15143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15144 | (eval $ac_try) 2>&5 |
| 15145 | ac_status=$? |
| 15146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15147 | (exit $ac_status); }; }; then |
| 15148 | ac_cv_type_socklen_t=yes |
| 15149 | else |
| 15150 | echo "$as_me: failed program was:" >&5 |
| 15151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15152 | |
| 15153 | ac_cv_type_socklen_t=no |
| 15154 | fi |
| 15155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15156 | fi |
| 15157 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 15158 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 15159 | if test $ac_cv_type_socklen_t = yes; then |
| 15160 | |
| 15161 | cat >>confdefs.h <<_ACEOF |
| 15162 | #define HAVE_SOCKLEN_T 1 |
| 15163 | _ACEOF |
| 15164 | |
| 15165 | |
| 15166 | fi |
| 15167 | |
| 15168 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 15169 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 15170 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 15171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15172 | else |
| 15173 | cat >conftest.$ac_ext <<_ACEOF |
| 15174 | /* confdefs.h. */ |
| 15175 | _ACEOF |
| 15176 | cat confdefs.h >>conftest.$ac_ext |
| 15177 | cat >>conftest.$ac_ext <<_ACEOF |
| 15178 | /* end confdefs.h. */ |
| 15179 | #include <stdint.h> |
| 15180 | |
| 15181 | int |
| 15182 | main () |
| 15183 | { |
| 15184 | if ((uintptr_t *) 0) |
| 15185 | return 0; |
| 15186 | if (sizeof (uintptr_t)) |
| 15187 | return 0; |
| 15188 | ; |
| 15189 | return 0; |
| 15190 | } |
| 15191 | _ACEOF |
| 15192 | rm -f conftest.$ac_objext |
| 15193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15194 | (eval $ac_compile) 2>conftest.er1 |
| 15195 | ac_status=$? |
| 15196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15197 | rm -f conftest.er1 |
| 15198 | cat conftest.err >&5 |
| 15199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15200 | (exit $ac_status); } && |
| 15201 | { ac_try='test -z "$ac_c_werror_flag" |
| 15202 | || test ! -s conftest.err' |
| 15203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15204 | (eval $ac_try) 2>&5 |
| 15205 | ac_status=$? |
| 15206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15207 | (exit $ac_status); }; } && |
| 15208 | { ac_try='test -s conftest.$ac_objext' |
| 15209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15210 | (eval $ac_try) 2>&5 |
| 15211 | ac_status=$? |
| 15212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15213 | (exit $ac_status); }; }; then |
| 15214 | ac_cv_type_uintptr_t=yes |
| 15215 | else |
| 15216 | echo "$as_me: failed program was:" >&5 |
| 15217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15218 | |
| 15219 | ac_cv_type_uintptr_t=no |
| 15220 | fi |
| 15221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15222 | fi |
| 15223 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 15224 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 15225 | if test $ac_cv_type_uintptr_t = yes; then |
| 15226 | |
| 15227 | cat >>confdefs.h <<_ACEOF |
| 15228 | #define HAVE_UINTPTR_T 1 |
| 15229 | _ACEOF |
| 15230 | |
| 15231 | |
| 15232 | fi |
| 15233 | |
| 15234 | |
| 15235 | # ------------------------------------- # |
| 15236 | # Checks for compiler characteristics. # |
| 15237 | # ------------------------------------- # |
| 15238 | |
| 15239 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 15240 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 15241 | if test "${ac_cv_c_const+set}" = set; then |
| 15242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15243 | else |
| 15244 | cat >conftest.$ac_ext <<_ACEOF |
| 15245 | /* confdefs.h. */ |
| 15246 | _ACEOF |
| 15247 | cat confdefs.h >>conftest.$ac_ext |
| 15248 | cat >>conftest.$ac_ext <<_ACEOF |
| 15249 | /* end confdefs.h. */ |
| 15250 | |
| 15251 | int |
| 15252 | main () |
| 15253 | { |
| 15254 | /* FIXME: Include the comments suggested by Paul. */ |
| 15255 | #ifndef __cplusplus |
| 15256 | /* Ultrix mips cc rejects this. */ |
| 15257 | typedef int charset[2]; |
| 15258 | const charset x; |
| 15259 | /* SunOS 4.1.1 cc rejects this. */ |
| 15260 | char const *const *ccp; |
| 15261 | char **p; |
| 15262 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 15263 | struct point {int x, y;}; |
| 15264 | static struct point const zero = {0,0}; |
| 15265 | /* AIX XL C 1.02.0.0 rejects this. |
| 15266 | It does not let you subtract one const X* pointer from another in |
| 15267 | an arm of an if-expression whose if-part is not a constant |
| 15268 | expression */ |
| 15269 | const char *g = "string"; |
| 15270 | ccp = &g + (g ? g-g : 0); |
| 15271 | /* HPUX 7.0 cc rejects these. */ |
| 15272 | ++ccp; |
| 15273 | p = (char**) ccp; |
| 15274 | ccp = (char const *const *) p; |
| 15275 | { /* SCO 3.2v4 cc rejects this. */ |
| 15276 | char *t; |
| 15277 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 15278 | |
| 15279 | *t++ = 0; |
| 15280 | } |
| 15281 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 15282 | int x[] = {25, 17}; |
| 15283 | const int *foo = &x[0]; |
| 15284 | ++foo; |
| 15285 | } |
| 15286 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 15287 | typedef const int *iptr; |
| 15288 | iptr p = 0; |
| 15289 | ++p; |
| 15290 | } |
| 15291 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 15292 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 15293 | struct s { int j; const int *ap[3]; }; |
| 15294 | struct s *b; b->j = 5; |
| 15295 | } |
| 15296 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 15297 | const int foo = 10; |
| 15298 | } |
| 15299 | #endif |
| 15300 | |
| 15301 | ; |
| 15302 | return 0; |
| 15303 | } |
| 15304 | _ACEOF |
| 15305 | rm -f conftest.$ac_objext |
| 15306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15307 | (eval $ac_compile) 2>conftest.er1 |
| 15308 | ac_status=$? |
| 15309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15310 | rm -f conftest.er1 |
| 15311 | cat conftest.err >&5 |
| 15312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15313 | (exit $ac_status); } && |
| 15314 | { ac_try='test -z "$ac_c_werror_flag" |
| 15315 | || test ! -s conftest.err' |
| 15316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15317 | (eval $ac_try) 2>&5 |
| 15318 | ac_status=$? |
| 15319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15320 | (exit $ac_status); }; } && |
| 15321 | { ac_try='test -s conftest.$ac_objext' |
| 15322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15323 | (eval $ac_try) 2>&5 |
| 15324 | ac_status=$? |
| 15325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15326 | (exit $ac_status); }; }; then |
| 15327 | ac_cv_c_const=yes |
| 15328 | else |
| 15329 | echo "$as_me: failed program was:" >&5 |
| 15330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15331 | |
| 15332 | ac_cv_c_const=no |
| 15333 | fi |
| 15334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15335 | fi |
| 15336 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 15337 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 15338 | if test $ac_cv_c_const = no; then |
| 15339 | |
| 15340 | cat >>confdefs.h <<\_ACEOF |
| 15341 | #define const |
| 15342 | _ACEOF |
| 15343 | |
| 15344 | fi |
| 15345 | |
| 15346 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 15347 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 15348 | if test "${ac_cv_c_inline+set}" = set; then |
| 15349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15350 | else |
| 15351 | ac_cv_c_inline=no |
| 15352 | for ac_kw in inline __inline__ __inline; do |
| 15353 | cat >conftest.$ac_ext <<_ACEOF |
| 15354 | /* confdefs.h. */ |
| 15355 | _ACEOF |
| 15356 | cat confdefs.h >>conftest.$ac_ext |
| 15357 | cat >>conftest.$ac_ext <<_ACEOF |
| 15358 | /* end confdefs.h. */ |
| 15359 | #ifndef __cplusplus |
| 15360 | typedef int foo_t; |
| 15361 | static $ac_kw foo_t static_foo () {return 0; } |
| 15362 | $ac_kw foo_t foo () {return 0; } |
| 15363 | #endif |
| 15364 | |
| 15365 | _ACEOF |
| 15366 | rm -f conftest.$ac_objext |
| 15367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15368 | (eval $ac_compile) 2>conftest.er1 |
| 15369 | ac_status=$? |
| 15370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15371 | rm -f conftest.er1 |
| 15372 | cat conftest.err >&5 |
| 15373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15374 | (exit $ac_status); } && |
| 15375 | { ac_try='test -z "$ac_c_werror_flag" |
| 15376 | || test ! -s conftest.err' |
| 15377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15378 | (eval $ac_try) 2>&5 |
| 15379 | ac_status=$? |
| 15380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15381 | (exit $ac_status); }; } && |
| 15382 | { ac_try='test -s conftest.$ac_objext' |
| 15383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15384 | (eval $ac_try) 2>&5 |
| 15385 | ac_status=$? |
| 15386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15387 | (exit $ac_status); }; }; then |
| 15388 | ac_cv_c_inline=$ac_kw; break |
| 15389 | else |
| 15390 | echo "$as_me: failed program was:" >&5 |
| 15391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15392 | |
| 15393 | fi |
| 15394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15395 | done |
| 15396 | |
| 15397 | fi |
| 15398 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 15399 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 15400 | |
| 15401 | |
| 15402 | case $ac_cv_c_inline in |
| 15403 | inline | yes) ;; |
| 15404 | *) |
| 15405 | case $ac_cv_c_inline in |
| 15406 | no) ac_val=;; |
| 15407 | *) ac_val=$ac_cv_c_inline;; |
| 15408 | esac |
| 15409 | cat >>confdefs.h <<_ACEOF |
| 15410 | #ifndef __cplusplus |
| 15411 | #define inline $ac_val |
| 15412 | #endif |
| 15413 | _ACEOF |
| 15414 | ;; |
| 15415 | esac |
| 15416 | |
| 15417 | |
| 15418 | # ------------------------------ # |
| 15419 | # Checks for library functions. # |
| 15420 | # ------------------------------ # |
| 15421 | |
| 15422 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 15423 | # for constant arguments. Useless! |
| 15424 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 15425 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 15426 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 15427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15428 | else |
| 15429 | cat >conftest.$ac_ext <<_ACEOF |
| 15430 | /* confdefs.h. */ |
| 15431 | _ACEOF |
| 15432 | cat confdefs.h >>conftest.$ac_ext |
| 15433 | cat >>conftest.$ac_ext <<_ACEOF |
| 15434 | /* end confdefs.h. */ |
| 15435 | #include <alloca.h> |
| 15436 | int |
| 15437 | main () |
| 15438 | { |
| 15439 | char *p = (char *) alloca (2 * sizeof (int)); |
| 15440 | ; |
| 15441 | return 0; |
| 15442 | } |
| 15443 | _ACEOF |
| 15444 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15446 | (eval $ac_link) 2>conftest.er1 |
| 15447 | ac_status=$? |
| 15448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15449 | rm -f conftest.er1 |
| 15450 | cat conftest.err >&5 |
| 15451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15452 | (exit $ac_status); } && |
| 15453 | { ac_try='test -z "$ac_c_werror_flag" |
| 15454 | || test ! -s conftest.err' |
| 15455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15456 | (eval $ac_try) 2>&5 |
| 15457 | ac_status=$? |
| 15458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15459 | (exit $ac_status); }; } && |
| 15460 | { ac_try='test -s conftest$ac_exeext' |
| 15461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15462 | (eval $ac_try) 2>&5 |
| 15463 | ac_status=$? |
| 15464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15465 | (exit $ac_status); }; }; then |
| 15466 | ac_cv_working_alloca_h=yes |
| 15467 | else |
| 15468 | echo "$as_me: failed program was:" >&5 |
| 15469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15470 | |
| 15471 | ac_cv_working_alloca_h=no |
| 15472 | fi |
| 15473 | rm -f conftest.err conftest.$ac_objext \ |
| 15474 | conftest$ac_exeext conftest.$ac_ext |
| 15475 | fi |
| 15476 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 15477 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 15478 | if test $ac_cv_working_alloca_h = yes; then |
| 15479 | |
| 15480 | cat >>confdefs.h <<\_ACEOF |
| 15481 | #define HAVE_ALLOCA_H 1 |
| 15482 | _ACEOF |
| 15483 | |
| 15484 | fi |
| 15485 | |
| 15486 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 15487 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 15488 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 15489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15490 | else |
| 15491 | cat >conftest.$ac_ext <<_ACEOF |
| 15492 | /* confdefs.h. */ |
| 15493 | _ACEOF |
| 15494 | cat confdefs.h >>conftest.$ac_ext |
| 15495 | cat >>conftest.$ac_ext <<_ACEOF |
| 15496 | /* end confdefs.h. */ |
| 15497 | #ifdef __GNUC__ |
| 15498 | # define alloca __builtin_alloca |
| 15499 | #else |
| 15500 | # ifdef _MSC_VER |
| 15501 | # include <malloc.h> |
| 15502 | # define alloca _alloca |
| 15503 | # else |
| 15504 | # if HAVE_ALLOCA_H |
| 15505 | # include <alloca.h> |
| 15506 | # else |
| 15507 | # ifdef _AIX |
| 15508 | #pragma alloca |
| 15509 | # else |
| 15510 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 15511 | char *alloca (); |
| 15512 | # endif |
| 15513 | # endif |
| 15514 | # endif |
| 15515 | # endif |
| 15516 | #endif |
| 15517 | |
| 15518 | int |
| 15519 | main () |
| 15520 | { |
| 15521 | char *p = (char *) alloca (1); |
| 15522 | ; |
| 15523 | return 0; |
| 15524 | } |
| 15525 | _ACEOF |
| 15526 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15528 | (eval $ac_link) 2>conftest.er1 |
| 15529 | ac_status=$? |
| 15530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15531 | rm -f conftest.er1 |
| 15532 | cat conftest.err >&5 |
| 15533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15534 | (exit $ac_status); } && |
| 15535 | { ac_try='test -z "$ac_c_werror_flag" |
| 15536 | || test ! -s conftest.err' |
| 15537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15538 | (eval $ac_try) 2>&5 |
| 15539 | ac_status=$? |
| 15540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15541 | (exit $ac_status); }; } && |
| 15542 | { ac_try='test -s conftest$ac_exeext' |
| 15543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15544 | (eval $ac_try) 2>&5 |
| 15545 | ac_status=$? |
| 15546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15547 | (exit $ac_status); }; }; then |
| 15548 | ac_cv_func_alloca_works=yes |
| 15549 | else |
| 15550 | echo "$as_me: failed program was:" >&5 |
| 15551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15552 | |
| 15553 | ac_cv_func_alloca_works=no |
| 15554 | fi |
| 15555 | rm -f conftest.err conftest.$ac_objext \ |
| 15556 | conftest$ac_exeext conftest.$ac_ext |
| 15557 | fi |
| 15558 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 15559 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 15560 | |
| 15561 | if test $ac_cv_func_alloca_works = yes; then |
| 15562 | |
| 15563 | cat >>confdefs.h <<\_ACEOF |
| 15564 | #define HAVE_ALLOCA 1 |
| 15565 | _ACEOF |
| 15566 | |
| 15567 | else |
| 15568 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 15569 | # that cause trouble. Some versions do not even contain alloca or |
| 15570 | # contain a buggy version. If you still want to use their alloca, |
| 15571 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 15572 | |
| 15573 | ALLOCA=alloca.$ac_objext |
| 15574 | |
| 15575 | cat >>confdefs.h <<\_ACEOF |
| 15576 | #define C_ALLOCA 1 |
| 15577 | _ACEOF |
| 15578 | |
| 15579 | |
| 15580 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 15581 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 15582 | if test "${ac_cv_os_cray+set}" = set; then |
| 15583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15584 | else |
| 15585 | cat >conftest.$ac_ext <<_ACEOF |
| 15586 | /* confdefs.h. */ |
| 15587 | _ACEOF |
| 15588 | cat confdefs.h >>conftest.$ac_ext |
| 15589 | cat >>conftest.$ac_ext <<_ACEOF |
| 15590 | /* end confdefs.h. */ |
| 15591 | #if defined(CRAY) && ! defined(CRAY2) |
| 15592 | webecray |
| 15593 | #else |
| 15594 | wenotbecray |
| 15595 | #endif |
| 15596 | |
| 15597 | _ACEOF |
| 15598 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15599 | $EGREP "webecray" >/dev/null 2>&1; then |
| 15600 | ac_cv_os_cray=yes |
| 15601 | else |
| 15602 | ac_cv_os_cray=no |
| 15603 | fi |
| 15604 | rm -f conftest* |
| 15605 | |
| 15606 | fi |
| 15607 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 15608 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 15609 | if test $ac_cv_os_cray = yes; then |
| 15610 | for ac_func in _getb67 GETB67 getb67; do |
| 15611 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15612 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15613 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15614 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15616 | else |
| 15617 | cat >conftest.$ac_ext <<_ACEOF |
| 15618 | /* confdefs.h. */ |
| 15619 | _ACEOF |
| 15620 | cat confdefs.h >>conftest.$ac_ext |
| 15621 | cat >>conftest.$ac_ext <<_ACEOF |
| 15622 | /* end confdefs.h. */ |
| 15623 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15624 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15625 | #define $ac_func innocuous_$ac_func |
| 15626 | |
| 15627 | /* System header to define __stub macros and hopefully few prototypes, |
| 15628 | which can conflict with char $ac_func (); below. |
| 15629 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15630 | <limits.h> exists even on freestanding compilers. */ |
| 15631 | |
| 15632 | #ifdef __STDC__ |
| 15633 | # include <limits.h> |
| 15634 | #else |
| 15635 | # include <assert.h> |
| 15636 | #endif |
| 15637 | |
| 15638 | #undef $ac_func |
| 15639 | |
| 15640 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15641 | #ifdef __cplusplus |
| 15642 | extern "C" |
| 15643 | { |
| 15644 | #endif |
| 15645 | /* We use char because int might match the return type of a gcc2 |
| 15646 | builtin and then its argument prototype would still apply. */ |
| 15647 | char $ac_func (); |
| 15648 | /* The GNU C library defines this for functions which it implements |
| 15649 | to always fail with ENOSYS. Some functions are actually named |
| 15650 | something starting with __ and the normal name is an alias. */ |
| 15651 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15652 | choke me |
| 15653 | #else |
| 15654 | char (*f) () = $ac_func; |
| 15655 | #endif |
| 15656 | #ifdef __cplusplus |
| 15657 | } |
| 15658 | #endif |
| 15659 | |
| 15660 | int |
| 15661 | main () |
| 15662 | { |
| 15663 | return f != $ac_func; |
| 15664 | ; |
| 15665 | return 0; |
| 15666 | } |
| 15667 | _ACEOF |
| 15668 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15670 | (eval $ac_link) 2>conftest.er1 |
| 15671 | ac_status=$? |
| 15672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15673 | rm -f conftest.er1 |
| 15674 | cat conftest.err >&5 |
| 15675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15676 | (exit $ac_status); } && |
| 15677 | { ac_try='test -z "$ac_c_werror_flag" |
| 15678 | || test ! -s conftest.err' |
| 15679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15680 | (eval $ac_try) 2>&5 |
| 15681 | ac_status=$? |
| 15682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15683 | (exit $ac_status); }; } && |
| 15684 | { ac_try='test -s conftest$ac_exeext' |
| 15685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15686 | (eval $ac_try) 2>&5 |
| 15687 | ac_status=$? |
| 15688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15689 | (exit $ac_status); }; }; then |
| 15690 | eval "$as_ac_var=yes" |
| 15691 | else |
| 15692 | echo "$as_me: failed program was:" >&5 |
| 15693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15694 | |
| 15695 | eval "$as_ac_var=no" |
| 15696 | fi |
| 15697 | rm -f conftest.err conftest.$ac_objext \ |
| 15698 | conftest$ac_exeext conftest.$ac_ext |
| 15699 | fi |
| 15700 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15701 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15702 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15703 | |
| 15704 | cat >>confdefs.h <<_ACEOF |
| 15705 | #define CRAY_STACKSEG_END $ac_func |
| 15706 | _ACEOF |
| 15707 | |
| 15708 | break |
| 15709 | fi |
| 15710 | |
| 15711 | done |
| 15712 | fi |
| 15713 | |
| 15714 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 15715 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 15716 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 15717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15718 | else |
| 15719 | if test "$cross_compiling" = yes; then |
| 15720 | ac_cv_c_stack_direction=0 |
| 15721 | else |
| 15722 | cat >conftest.$ac_ext <<_ACEOF |
| 15723 | /* confdefs.h. */ |
| 15724 | _ACEOF |
| 15725 | cat confdefs.h >>conftest.$ac_ext |
| 15726 | cat >>conftest.$ac_ext <<_ACEOF |
| 15727 | /* end confdefs.h. */ |
| 15728 | int |
| 15729 | find_stack_direction () |
| 15730 | { |
| 15731 | static char *addr = 0; |
| 15732 | auto char dummy; |
| 15733 | if (addr == 0) |
| 15734 | { |
| 15735 | addr = &dummy; |
| 15736 | return find_stack_direction (); |
| 15737 | } |
| 15738 | else |
| 15739 | return (&dummy > addr) ? 1 : -1; |
| 15740 | } |
| 15741 | |
| 15742 | int |
| 15743 | main () |
| 15744 | { |
| 15745 | exit (find_stack_direction () < 0); |
| 15746 | } |
| 15747 | _ACEOF |
| 15748 | rm -f conftest$ac_exeext |
| 15749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15750 | (eval $ac_link) 2>&5 |
| 15751 | ac_status=$? |
| 15752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15753 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15755 | (eval $ac_try) 2>&5 |
| 15756 | ac_status=$? |
| 15757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15758 | (exit $ac_status); }; }; then |
| 15759 | ac_cv_c_stack_direction=1 |
| 15760 | else |
| 15761 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15762 | echo "$as_me: failed program was:" >&5 |
| 15763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15764 | |
| 15765 | ( exit $ac_status ) |
| 15766 | ac_cv_c_stack_direction=-1 |
| 15767 | fi |
| 15768 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15769 | fi |
| 15770 | fi |
| 15771 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 15772 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 15773 | |
| 15774 | cat >>confdefs.h <<_ACEOF |
| 15775 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 15776 | _ACEOF |
| 15777 | |
| 15778 | |
| 15779 | fi |
| 15780 | |
| 15781 | |
| 15782 | |
| 15783 | for ac_header in stdlib.h unistd.h |
| 15784 | do |
| 15785 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15786 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15787 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15788 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15789 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15791 | fi |
| 15792 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15793 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15794 | else |
| 15795 | # Is the header compilable? |
| 15796 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15797 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15798 | cat >conftest.$ac_ext <<_ACEOF |
| 15799 | /* confdefs.h. */ |
| 15800 | _ACEOF |
| 15801 | cat confdefs.h >>conftest.$ac_ext |
| 15802 | cat >>conftest.$ac_ext <<_ACEOF |
| 15803 | /* end confdefs.h. */ |
| 15804 | $ac_includes_default |
| 15805 | #include <$ac_header> |
| 15806 | _ACEOF |
| 15807 | rm -f conftest.$ac_objext |
| 15808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15809 | (eval $ac_compile) 2>conftest.er1 |
| 15810 | ac_status=$? |
| 15811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15812 | rm -f conftest.er1 |
| 15813 | cat conftest.err >&5 |
| 15814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15815 | (exit $ac_status); } && |
| 15816 | { ac_try='test -z "$ac_c_werror_flag" |
| 15817 | || test ! -s conftest.err' |
| 15818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15819 | (eval $ac_try) 2>&5 |
| 15820 | ac_status=$? |
| 15821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15822 | (exit $ac_status); }; } && |
| 15823 | { ac_try='test -s conftest.$ac_objext' |
| 15824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15825 | (eval $ac_try) 2>&5 |
| 15826 | ac_status=$? |
| 15827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15828 | (exit $ac_status); }; }; then |
| 15829 | ac_header_compiler=yes |
| 15830 | else |
| 15831 | echo "$as_me: failed program was:" >&5 |
| 15832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15833 | |
| 15834 | ac_header_compiler=no |
| 15835 | fi |
| 15836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15837 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15838 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15839 | |
| 15840 | # Is the header present? |
| 15841 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15842 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15843 | cat >conftest.$ac_ext <<_ACEOF |
| 15844 | /* confdefs.h. */ |
| 15845 | _ACEOF |
| 15846 | cat confdefs.h >>conftest.$ac_ext |
| 15847 | cat >>conftest.$ac_ext <<_ACEOF |
| 15848 | /* end confdefs.h. */ |
| 15849 | #include <$ac_header> |
| 15850 | _ACEOF |
| 15851 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15852 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15853 | ac_status=$? |
| 15854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15855 | rm -f conftest.er1 |
| 15856 | cat conftest.err >&5 |
| 15857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15858 | (exit $ac_status); } >/dev/null; then |
| 15859 | if test -s conftest.err; then |
| 15860 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15861 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15862 | else |
| 15863 | ac_cpp_err= |
| 15864 | fi |
| 15865 | else |
| 15866 | ac_cpp_err=yes |
| 15867 | fi |
| 15868 | if test -z "$ac_cpp_err"; then |
| 15869 | ac_header_preproc=yes |
| 15870 | else |
| 15871 | echo "$as_me: failed program was:" >&5 |
| 15872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15873 | |
| 15874 | ac_header_preproc=no |
| 15875 | fi |
| 15876 | rm -f conftest.err conftest.$ac_ext |
| 15877 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15878 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15879 | |
| 15880 | # So? What about this header? |
| 15881 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15882 | yes:no: ) |
| 15883 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15884 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15885 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15886 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15887 | ac_header_preproc=yes |
| 15888 | ;; |
| 15889 | no:yes:* ) |
| 15890 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15891 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15892 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15893 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15894 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15895 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15896 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15897 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15898 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15899 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15900 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15901 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15902 | ( |
| 15903 | cat <<\_ASBOX |
| 15904 | ## ------------------------------------------ ## |
| 15905 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15906 | ## ------------------------------------------ ## |
| 15907 | _ASBOX |
| 15908 | ) | |
| 15909 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15910 | ;; |
| 15911 | esac |
| 15912 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15913 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15914 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15916 | else |
| 15917 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15918 | fi |
| 15919 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15920 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15921 | |
| 15922 | fi |
| 15923 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15924 | cat >>confdefs.h <<_ACEOF |
| 15925 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15926 | _ACEOF |
| 15927 | |
| 15928 | fi |
| 15929 | |
| 15930 | done |
| 15931 | |
| 15932 | |
| 15933 | for ac_func in getpagesize |
| 15934 | do |
| 15935 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15936 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15937 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15938 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15940 | else |
| 15941 | cat >conftest.$ac_ext <<_ACEOF |
| 15942 | /* confdefs.h. */ |
| 15943 | _ACEOF |
| 15944 | cat confdefs.h >>conftest.$ac_ext |
| 15945 | cat >>conftest.$ac_ext <<_ACEOF |
| 15946 | /* end confdefs.h. */ |
| 15947 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15948 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15949 | #define $ac_func innocuous_$ac_func |
| 15950 | |
| 15951 | /* System header to define __stub macros and hopefully few prototypes, |
| 15952 | which can conflict with char $ac_func (); below. |
| 15953 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15954 | <limits.h> exists even on freestanding compilers. */ |
| 15955 | |
| 15956 | #ifdef __STDC__ |
| 15957 | # include <limits.h> |
| 15958 | #else |
| 15959 | # include <assert.h> |
| 15960 | #endif |
| 15961 | |
| 15962 | #undef $ac_func |
| 15963 | |
| 15964 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15965 | #ifdef __cplusplus |
| 15966 | extern "C" |
| 15967 | { |
| 15968 | #endif |
| 15969 | /* We use char because int might match the return type of a gcc2 |
| 15970 | builtin and then its argument prototype would still apply. */ |
| 15971 | char $ac_func (); |
| 15972 | /* The GNU C library defines this for functions which it implements |
| 15973 | to always fail with ENOSYS. Some functions are actually named |
| 15974 | something starting with __ and the normal name is an alias. */ |
| 15975 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15976 | choke me |
| 15977 | #else |
| 15978 | char (*f) () = $ac_func; |
| 15979 | #endif |
| 15980 | #ifdef __cplusplus |
| 15981 | } |
| 15982 | #endif |
| 15983 | |
| 15984 | int |
| 15985 | main () |
| 15986 | { |
| 15987 | return f != $ac_func; |
| 15988 | ; |
| 15989 | return 0; |
| 15990 | } |
| 15991 | _ACEOF |
| 15992 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15994 | (eval $ac_link) 2>conftest.er1 |
| 15995 | ac_status=$? |
| 15996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15997 | rm -f conftest.er1 |
| 15998 | cat conftest.err >&5 |
| 15999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16000 | (exit $ac_status); } && |
| 16001 | { ac_try='test -z "$ac_c_werror_flag" |
| 16002 | || test ! -s conftest.err' |
| 16003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16004 | (eval $ac_try) 2>&5 |
| 16005 | ac_status=$? |
| 16006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16007 | (exit $ac_status); }; } && |
| 16008 | { ac_try='test -s conftest$ac_exeext' |
| 16009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16010 | (eval $ac_try) 2>&5 |
| 16011 | ac_status=$? |
| 16012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16013 | (exit $ac_status); }; }; then |
| 16014 | eval "$as_ac_var=yes" |
| 16015 | else |
| 16016 | echo "$as_me: failed program was:" >&5 |
| 16017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16018 | |
| 16019 | eval "$as_ac_var=no" |
| 16020 | fi |
| 16021 | rm -f conftest.err conftest.$ac_objext \ |
| 16022 | conftest$ac_exeext conftest.$ac_ext |
| 16023 | fi |
| 16024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16025 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16026 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16027 | cat >>confdefs.h <<_ACEOF |
| 16028 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16029 | _ACEOF |
| 16030 | |
| 16031 | fi |
| 16032 | done |
| 16033 | |
| 16034 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 16035 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 16036 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 16037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16038 | else |
| 16039 | if test "$cross_compiling" = yes; then |
| 16040 | ac_cv_func_mmap_fixed_mapped=no |
| 16041 | else |
| 16042 | cat >conftest.$ac_ext <<_ACEOF |
| 16043 | /* confdefs.h. */ |
| 16044 | _ACEOF |
| 16045 | cat confdefs.h >>conftest.$ac_ext |
| 16046 | cat >>conftest.$ac_ext <<_ACEOF |
| 16047 | /* end confdefs.h. */ |
| 16048 | $ac_includes_default |
| 16049 | /* malloc might have been renamed as rpl_malloc. */ |
| 16050 | #undef malloc |
| 16051 | |
| 16052 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 16053 | Here is a matrix of mmap possibilities: |
| 16054 | mmap private not fixed |
| 16055 | mmap private fixed at somewhere currently unmapped |
| 16056 | mmap private fixed at somewhere already mapped |
| 16057 | mmap shared not fixed |
| 16058 | mmap shared fixed at somewhere currently unmapped |
| 16059 | mmap shared fixed at somewhere already mapped |
| 16060 | For private mappings, we should verify that changes cannot be read() |
| 16061 | back from the file, nor mmap's back from the file at a different |
| 16062 | address. (There have been systems where private was not correctly |
| 16063 | implemented like the infamous i386 svr4.0, and systems where the |
| 16064 | VM page cache was not coherent with the file system buffer cache |
| 16065 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 16066 | For shared mappings, we should conversely verify that changes get |
| 16067 | propagated back to all the places they're supposed to be. |
| 16068 | |
| 16069 | Grep wants private fixed already mapped. |
| 16070 | The main things grep needs to know about mmap are: |
| 16071 | * does it exist and is it safe to write into the mmap'd area |
| 16072 | * how to use it (BSD variants) */ |
| 16073 | |
| 16074 | #include <fcntl.h> |
| 16075 | #include <sys/mman.h> |
| 16076 | |
| 16077 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 16078 | char *malloc (); |
| 16079 | #endif |
| 16080 | |
| 16081 | /* This mess was copied from the GNU getpagesize.h. */ |
| 16082 | #if !HAVE_GETPAGESIZE |
| 16083 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 16084 | # if !HAVE_SYS_PARAM_H |
| 16085 | # define HAVE_SYS_PARAM_H 1 |
| 16086 | # endif |
| 16087 | |
| 16088 | # ifdef _SC_PAGESIZE |
| 16089 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 16090 | # else /* no _SC_PAGESIZE */ |
| 16091 | # if HAVE_SYS_PARAM_H |
| 16092 | # include <sys/param.h> |
| 16093 | # ifdef EXEC_PAGESIZE |
| 16094 | # define getpagesize() EXEC_PAGESIZE |
| 16095 | # else /* no EXEC_PAGESIZE */ |
| 16096 | # ifdef NBPG |
| 16097 | # define getpagesize() NBPG * CLSIZE |
| 16098 | # ifndef CLSIZE |
| 16099 | # define CLSIZE 1 |
| 16100 | # endif /* no CLSIZE */ |
| 16101 | # else /* no NBPG */ |
| 16102 | # ifdef NBPC |
| 16103 | # define getpagesize() NBPC |
| 16104 | # else /* no NBPC */ |
| 16105 | # ifdef PAGESIZE |
| 16106 | # define getpagesize() PAGESIZE |
| 16107 | # endif /* PAGESIZE */ |
| 16108 | # endif /* no NBPC */ |
| 16109 | # endif /* no NBPG */ |
| 16110 | # endif /* no EXEC_PAGESIZE */ |
| 16111 | # else /* no HAVE_SYS_PARAM_H */ |
| 16112 | # define getpagesize() 8192 /* punt totally */ |
| 16113 | # endif /* no HAVE_SYS_PARAM_H */ |
| 16114 | # endif /* no _SC_PAGESIZE */ |
| 16115 | |
| 16116 | #endif /* no HAVE_GETPAGESIZE */ |
| 16117 | |
| 16118 | int |
| 16119 | main () |
| 16120 | { |
| 16121 | char *data, *data2, *data3; |
| 16122 | int i, pagesize; |
| 16123 | int fd; |
| 16124 | |
| 16125 | pagesize = getpagesize (); |
| 16126 | |
| 16127 | /* First, make a file with some known garbage in it. */ |
| 16128 | data = (char *) malloc (pagesize); |
| 16129 | if (!data) |
| 16130 | exit (1); |
| 16131 | for (i = 0; i < pagesize; ++i) |
| 16132 | *(data + i) = rand (); |
| 16133 | umask (0); |
| 16134 | fd = creat ("conftest.mmap", 0600); |
| 16135 | if (fd < 0) |
| 16136 | exit (1); |
| 16137 | if (write (fd, data, pagesize) != pagesize) |
| 16138 | exit (1); |
| 16139 | close (fd); |
| 16140 | |
| 16141 | /* Next, try to mmap the file at a fixed address which already has |
| 16142 | something else allocated at it. If we can, also make sure that |
| 16143 | we see the same garbage. */ |
| 16144 | fd = open ("conftest.mmap", O_RDWR); |
| 16145 | if (fd < 0) |
| 16146 | exit (1); |
| 16147 | data2 = (char *) malloc (2 * pagesize); |
| 16148 | if (!data2) |
| 16149 | exit (1); |
| 16150 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
| 16151 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 16152 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 16153 | exit (1); |
| 16154 | for (i = 0; i < pagesize; ++i) |
| 16155 | if (*(data + i) != *(data2 + i)) |
| 16156 | exit (1); |
| 16157 | |
| 16158 | /* Finally, make sure that changes to the mapped area do not |
| 16159 | percolate back to the file as seen by read(). (This is a bug on |
| 16160 | some variants of i386 svr4.0.) */ |
| 16161 | for (i = 0; i < pagesize; ++i) |
| 16162 | *(data2 + i) = *(data2 + i) + 1; |
| 16163 | data3 = (char *) malloc (pagesize); |
| 16164 | if (!data3) |
| 16165 | exit (1); |
| 16166 | if (read (fd, data3, pagesize) != pagesize) |
| 16167 | exit (1); |
| 16168 | for (i = 0; i < pagesize; ++i) |
| 16169 | if (*(data + i) != *(data3 + i)) |
| 16170 | exit (1); |
| 16171 | close (fd); |
| 16172 | exit (0); |
| 16173 | } |
| 16174 | _ACEOF |
| 16175 | rm -f conftest$ac_exeext |
| 16176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16177 | (eval $ac_link) 2>&5 |
| 16178 | ac_status=$? |
| 16179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16180 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16182 | (eval $ac_try) 2>&5 |
| 16183 | ac_status=$? |
| 16184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16185 | (exit $ac_status); }; }; then |
| 16186 | ac_cv_func_mmap_fixed_mapped=yes |
| 16187 | else |
| 16188 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16189 | echo "$as_me: failed program was:" >&5 |
| 16190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16191 | |
| 16192 | ( exit $ac_status ) |
| 16193 | ac_cv_func_mmap_fixed_mapped=no |
| 16194 | fi |
| 16195 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16196 | fi |
| 16197 | fi |
| 16198 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 16199 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 16200 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 16201 | |
| 16202 | cat >>confdefs.h <<\_ACEOF |
| 16203 | #define HAVE_MMAP 1 |
| 16204 | _ACEOF |
| 16205 | |
| 16206 | fi |
| 16207 | rm -f conftest.mmap |
| 16208 | |
| 16209 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16210 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 16211 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16213 | else |
| 16214 | cat >conftest.$ac_ext <<_ACEOF |
| 16215 | /* confdefs.h. */ |
| 16216 | _ACEOF |
| 16217 | cat confdefs.h >>conftest.$ac_ext |
| 16218 | cat >>conftest.$ac_ext <<_ACEOF |
| 16219 | /* end confdefs.h. */ |
| 16220 | $ac_includes_default |
| 16221 | int |
| 16222 | main () |
| 16223 | { |
| 16224 | if ((pid_t *) 0) |
| 16225 | return 0; |
| 16226 | if (sizeof (pid_t)) |
| 16227 | return 0; |
| 16228 | ; |
| 16229 | return 0; |
| 16230 | } |
| 16231 | _ACEOF |
| 16232 | rm -f conftest.$ac_objext |
| 16233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16234 | (eval $ac_compile) 2>conftest.er1 |
| 16235 | ac_status=$? |
| 16236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16237 | rm -f conftest.er1 |
| 16238 | cat conftest.err >&5 |
| 16239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16240 | (exit $ac_status); } && |
| 16241 | { ac_try='test -z "$ac_c_werror_flag" |
| 16242 | || test ! -s conftest.err' |
| 16243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16244 | (eval $ac_try) 2>&5 |
| 16245 | ac_status=$? |
| 16246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16247 | (exit $ac_status); }; } && |
| 16248 | { ac_try='test -s conftest.$ac_objext' |
| 16249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16250 | (eval $ac_try) 2>&5 |
| 16251 | ac_status=$? |
| 16252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16253 | (exit $ac_status); }; }; then |
| 16254 | ac_cv_type_pid_t=yes |
| 16255 | else |
| 16256 | echo "$as_me: failed program was:" >&5 |
| 16257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16258 | |
| 16259 | ac_cv_type_pid_t=no |
| 16260 | fi |
| 16261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16262 | fi |
| 16263 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16264 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 16265 | if test $ac_cv_type_pid_t = yes; then |
| 16266 | : |
| 16267 | else |
| 16268 | |
| 16269 | cat >>confdefs.h <<_ACEOF |
| 16270 | #define pid_t int |
| 16271 | _ACEOF |
| 16272 | |
| 16273 | fi |
| 16274 | |
| 16275 | |
| 16276 | |
| 16277 | for ac_header in unistd.h vfork.h |
| 16278 | do |
| 16279 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16280 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16281 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16282 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16283 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16285 | fi |
| 16286 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16287 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16288 | else |
| 16289 | # Is the header compilable? |
| 16290 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16291 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 16292 | cat >conftest.$ac_ext <<_ACEOF |
| 16293 | /* confdefs.h. */ |
| 16294 | _ACEOF |
| 16295 | cat confdefs.h >>conftest.$ac_ext |
| 16296 | cat >>conftest.$ac_ext <<_ACEOF |
| 16297 | /* end confdefs.h. */ |
| 16298 | $ac_includes_default |
| 16299 | #include <$ac_header> |
| 16300 | _ACEOF |
| 16301 | rm -f conftest.$ac_objext |
| 16302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16303 | (eval $ac_compile) 2>conftest.er1 |
| 16304 | ac_status=$? |
| 16305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16306 | rm -f conftest.er1 |
| 16307 | cat conftest.err >&5 |
| 16308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16309 | (exit $ac_status); } && |
| 16310 | { ac_try='test -z "$ac_c_werror_flag" |
| 16311 | || test ! -s conftest.err' |
| 16312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16313 | (eval $ac_try) 2>&5 |
| 16314 | ac_status=$? |
| 16315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16316 | (exit $ac_status); }; } && |
| 16317 | { ac_try='test -s conftest.$ac_objext' |
| 16318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16319 | (eval $ac_try) 2>&5 |
| 16320 | ac_status=$? |
| 16321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16322 | (exit $ac_status); }; }; then |
| 16323 | ac_header_compiler=yes |
| 16324 | else |
| 16325 | echo "$as_me: failed program was:" >&5 |
| 16326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16327 | |
| 16328 | ac_header_compiler=no |
| 16329 | fi |
| 16330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16331 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16332 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16333 | |
| 16334 | # Is the header present? |
| 16335 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16336 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 16337 | cat >conftest.$ac_ext <<_ACEOF |
| 16338 | /* confdefs.h. */ |
| 16339 | _ACEOF |
| 16340 | cat confdefs.h >>conftest.$ac_ext |
| 16341 | cat >>conftest.$ac_ext <<_ACEOF |
| 16342 | /* end confdefs.h. */ |
| 16343 | #include <$ac_header> |
| 16344 | _ACEOF |
| 16345 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16346 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16347 | ac_status=$? |
| 16348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16349 | rm -f conftest.er1 |
| 16350 | cat conftest.err >&5 |
| 16351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16352 | (exit $ac_status); } >/dev/null; then |
| 16353 | if test -s conftest.err; then |
| 16354 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16355 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16356 | else |
| 16357 | ac_cpp_err= |
| 16358 | fi |
| 16359 | else |
| 16360 | ac_cpp_err=yes |
| 16361 | fi |
| 16362 | if test -z "$ac_cpp_err"; then |
| 16363 | ac_header_preproc=yes |
| 16364 | else |
| 16365 | echo "$as_me: failed program was:" >&5 |
| 16366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16367 | |
| 16368 | ac_header_preproc=no |
| 16369 | fi |
| 16370 | rm -f conftest.err conftest.$ac_ext |
| 16371 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16372 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16373 | |
| 16374 | # So? What about this header? |
| 16375 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16376 | yes:no: ) |
| 16377 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16378 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16379 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16380 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16381 | ac_header_preproc=yes |
| 16382 | ;; |
| 16383 | no:yes:* ) |
| 16384 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16385 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16386 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16387 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16388 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16389 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16390 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16391 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16392 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16393 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16394 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16395 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16396 | ( |
| 16397 | cat <<\_ASBOX |
| 16398 | ## ------------------------------------------ ## |
| 16399 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 16400 | ## ------------------------------------------ ## |
| 16401 | _ASBOX |
| 16402 | ) | |
| 16403 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16404 | ;; |
| 16405 | esac |
| 16406 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16407 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16408 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16410 | else |
| 16411 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16412 | fi |
| 16413 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16414 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16415 | |
| 16416 | fi |
| 16417 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16418 | cat >>confdefs.h <<_ACEOF |
| 16419 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16420 | _ACEOF |
| 16421 | |
| 16422 | fi |
| 16423 | |
| 16424 | done |
| 16425 | |
| 16426 | |
| 16427 | |
| 16428 | for ac_func in fork vfork |
| 16429 | do |
| 16430 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16431 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16432 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16433 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16435 | else |
| 16436 | cat >conftest.$ac_ext <<_ACEOF |
| 16437 | /* confdefs.h. */ |
| 16438 | _ACEOF |
| 16439 | cat confdefs.h >>conftest.$ac_ext |
| 16440 | cat >>conftest.$ac_ext <<_ACEOF |
| 16441 | /* end confdefs.h. */ |
| 16442 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16443 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16444 | #define $ac_func innocuous_$ac_func |
| 16445 | |
| 16446 | /* System header to define __stub macros and hopefully few prototypes, |
| 16447 | which can conflict with char $ac_func (); below. |
| 16448 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16449 | <limits.h> exists even on freestanding compilers. */ |
| 16450 | |
| 16451 | #ifdef __STDC__ |
| 16452 | # include <limits.h> |
| 16453 | #else |
| 16454 | # include <assert.h> |
| 16455 | #endif |
| 16456 | |
| 16457 | #undef $ac_func |
| 16458 | |
| 16459 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16460 | #ifdef __cplusplus |
| 16461 | extern "C" |
| 16462 | { |
| 16463 | #endif |
| 16464 | /* We use char because int might match the return type of a gcc2 |
| 16465 | builtin and then its argument prototype would still apply. */ |
| 16466 | char $ac_func (); |
| 16467 | /* The GNU C library defines this for functions which it implements |
| 16468 | to always fail with ENOSYS. Some functions are actually named |
| 16469 | something starting with __ and the normal name is an alias. */ |
| 16470 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16471 | choke me |
| 16472 | #else |
| 16473 | char (*f) () = $ac_func; |
| 16474 | #endif |
| 16475 | #ifdef __cplusplus |
| 16476 | } |
| 16477 | #endif |
| 16478 | |
| 16479 | int |
| 16480 | main () |
| 16481 | { |
| 16482 | return f != $ac_func; |
| 16483 | ; |
| 16484 | return 0; |
| 16485 | } |
| 16486 | _ACEOF |
| 16487 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16489 | (eval $ac_link) 2>conftest.er1 |
| 16490 | ac_status=$? |
| 16491 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16492 | rm -f conftest.er1 |
| 16493 | cat conftest.err >&5 |
| 16494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16495 | (exit $ac_status); } && |
| 16496 | { ac_try='test -z "$ac_c_werror_flag" |
| 16497 | || test ! -s conftest.err' |
| 16498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16499 | (eval $ac_try) 2>&5 |
| 16500 | ac_status=$? |
| 16501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16502 | (exit $ac_status); }; } && |
| 16503 | { ac_try='test -s conftest$ac_exeext' |
| 16504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16505 | (eval $ac_try) 2>&5 |
| 16506 | ac_status=$? |
| 16507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16508 | (exit $ac_status); }; }; then |
| 16509 | eval "$as_ac_var=yes" |
| 16510 | else |
| 16511 | echo "$as_me: failed program was:" >&5 |
| 16512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16513 | |
| 16514 | eval "$as_ac_var=no" |
| 16515 | fi |
| 16516 | rm -f conftest.err conftest.$ac_objext \ |
| 16517 | conftest$ac_exeext conftest.$ac_ext |
| 16518 | fi |
| 16519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16520 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16521 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16522 | cat >>confdefs.h <<_ACEOF |
| 16523 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16524 | _ACEOF |
| 16525 | |
| 16526 | fi |
| 16527 | done |
| 16528 | |
| 16529 | if test "x$ac_cv_func_fork" = xyes; then |
| 16530 | echo "$as_me:$LINENO: checking for working fork" >&5 |
| 16531 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
| 16532 | if test "${ac_cv_func_fork_works+set}" = set; then |
| 16533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16534 | else |
| 16535 | if test "$cross_compiling" = yes; then |
| 16536 | ac_cv_func_fork_works=cross |
| 16537 | else |
| 16538 | cat >conftest.$ac_ext <<_ACEOF |
| 16539 | /* By Ruediger Kuhlmann. */ |
| 16540 | #include <sys/types.h> |
| 16541 | #if HAVE_UNISTD_H |
| 16542 | # include <unistd.h> |
| 16543 | #endif |
| 16544 | /* Some systems only have a dummy stub for fork() */ |
| 16545 | int main () |
| 16546 | { |
| 16547 | if (fork() < 0) |
| 16548 | exit (1); |
| 16549 | exit (0); |
| 16550 | } |
| 16551 | _ACEOF |
| 16552 | rm -f conftest$ac_exeext |
| 16553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16554 | (eval $ac_link) 2>&5 |
| 16555 | ac_status=$? |
| 16556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16557 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16559 | (eval $ac_try) 2>&5 |
| 16560 | ac_status=$? |
| 16561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16562 | (exit $ac_status); }; }; then |
| 16563 | ac_cv_func_fork_works=yes |
| 16564 | else |
| 16565 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16566 | echo "$as_me: failed program was:" >&5 |
| 16567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16568 | |
| 16569 | ( exit $ac_status ) |
| 16570 | ac_cv_func_fork_works=no |
| 16571 | fi |
| 16572 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16573 | fi |
| 16574 | fi |
| 16575 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
| 16576 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
| 16577 | |
| 16578 | else |
| 16579 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 16580 | fi |
| 16581 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 16582 | case $host in |
| 16583 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 16584 | # Override, as these systems have only a dummy fork() stub |
| 16585 | ac_cv_func_fork_works=no |
| 16586 | ;; |
| 16587 | *) |
| 16588 | ac_cv_func_fork_works=yes |
| 16589 | ;; |
| 16590 | esac |
| 16591 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| 16592 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 16593 | fi |
| 16594 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 16595 | if test "x$ac_cv_func_vfork" = xyes; then |
| 16596 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
| 16597 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
| 16598 | if test "${ac_cv_func_vfork_works+set}" = set; then |
| 16599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16600 | else |
| 16601 | if test "$cross_compiling" = yes; then |
| 16602 | ac_cv_func_vfork_works=cross |
| 16603 | else |
| 16604 | cat >conftest.$ac_ext <<_ACEOF |
| 16605 | /* confdefs.h. */ |
| 16606 | _ACEOF |
| 16607 | cat confdefs.h >>conftest.$ac_ext |
| 16608 | cat >>conftest.$ac_ext <<_ACEOF |
| 16609 | /* end confdefs.h. */ |
| 16610 | /* Thanks to Paul Eggert for this test. */ |
| 16611 | #include <stdio.h> |
| 16612 | #include <stdlib.h> |
| 16613 | #include <sys/types.h> |
| 16614 | #include <sys/stat.h> |
| 16615 | #include <sys/wait.h> |
| 16616 | #if HAVE_UNISTD_H |
| 16617 | # include <unistd.h> |
| 16618 | #endif |
| 16619 | #if HAVE_VFORK_H |
| 16620 | # include <vfork.h> |
| 16621 | #endif |
| 16622 | /* On some sparc systems, changes by the child to local and incoming |
| 16623 | argument registers are propagated back to the parent. The compiler |
| 16624 | is told about this with #include <vfork.h>, but some compilers |
| 16625 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 16626 | static variable whose address is put into a register that is |
| 16627 | clobbered by the vfork. */ |
| 16628 | static void |
| 16629 | #ifdef __cplusplus |
| 16630 | sparc_address_test (int arg) |
| 16631 | # else |
| 16632 | sparc_address_test (arg) int arg; |
| 16633 | #endif |
| 16634 | { |
| 16635 | static pid_t child; |
| 16636 | if (!child) { |
| 16637 | child = vfork (); |
| 16638 | if (child < 0) { |
| 16639 | perror ("vfork"); |
| 16640 | _exit(2); |
| 16641 | } |
| 16642 | if (!child) { |
| 16643 | arg = getpid(); |
| 16644 | write(-1, "", 0); |
| 16645 | _exit (arg); |
| 16646 | } |
| 16647 | } |
| 16648 | } |
| 16649 | |
| 16650 | int |
| 16651 | main () |
| 16652 | { |
| 16653 | pid_t parent = getpid (); |
| 16654 | pid_t child; |
| 16655 | |
| 16656 | sparc_address_test (0); |
| 16657 | |
| 16658 | child = vfork (); |
| 16659 | |
| 16660 | if (child == 0) { |
| 16661 | /* Here is another test for sparc vfork register problems. This |
| 16662 | test uses lots of local variables, at least as many local |
| 16663 | variables as main has allocated so far including compiler |
| 16664 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 16665 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 16666 | reuse the register of parent for one of the local variables, |
| 16667 | since it will think that parent can't possibly be used any more |
| 16668 | in this routine. Assigning to the local variable will thus |
| 16669 | munge parent in the parent process. */ |
| 16670 | pid_t |
| 16671 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 16672 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 16673 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 16674 | use the same hardware register for all 8 local variables. */ |
| 16675 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 16676 | || p != p5 || p != p6 || p != p7) |
| 16677 | _exit(1); |
| 16678 | |
| 16679 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 16680 | from child file descriptors. If the child closes a descriptor |
| 16681 | before it execs or exits, this munges the parent's descriptor |
| 16682 | as well. Test for this by closing stdout in the child. */ |
| 16683 | _exit(close(fileno(stdout)) != 0); |
| 16684 | } else { |
| 16685 | int status; |
| 16686 | struct stat st; |
| 16687 | |
| 16688 | while (wait(&status) != child) |
| 16689 | ; |
| 16690 | exit( |
| 16691 | /* Was there some problem with vforking? */ |
| 16692 | child < 0 |
| 16693 | |
| 16694 | /* Did the child fail? (This shouldn't happen.) */ |
| 16695 | || status |
| 16696 | |
| 16697 | /* Did the vfork/compiler bug occur? */ |
| 16698 | || parent != getpid() |
| 16699 | |
| 16700 | /* Did the file descriptor bug occur? */ |
| 16701 | || fstat(fileno(stdout), &st) != 0 |
| 16702 | ); |
| 16703 | } |
| 16704 | } |
| 16705 | _ACEOF |
| 16706 | rm -f conftest$ac_exeext |
| 16707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16708 | (eval $ac_link) 2>&5 |
| 16709 | ac_status=$? |
| 16710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16711 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16713 | (eval $ac_try) 2>&5 |
| 16714 | ac_status=$? |
| 16715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16716 | (exit $ac_status); }; }; then |
| 16717 | ac_cv_func_vfork_works=yes |
| 16718 | else |
| 16719 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16720 | echo "$as_me: failed program was:" >&5 |
| 16721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16722 | |
| 16723 | ( exit $ac_status ) |
| 16724 | ac_cv_func_vfork_works=no |
| 16725 | fi |
| 16726 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16727 | fi |
| 16728 | fi |
| 16729 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
| 16730 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
| 16731 | |
| 16732 | fi; |
| 16733 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 16734 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 16735 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| 16736 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 16737 | fi |
| 16738 | |
| 16739 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 16740 | |
| 16741 | cat >>confdefs.h <<\_ACEOF |
| 16742 | #define HAVE_WORKING_VFORK 1 |
| 16743 | _ACEOF |
| 16744 | |
| 16745 | else |
| 16746 | |
| 16747 | cat >>confdefs.h <<\_ACEOF |
| 16748 | #define vfork fork |
| 16749 | _ACEOF |
| 16750 | |
| 16751 | fi |
| 16752 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 16753 | |
| 16754 | cat >>confdefs.h <<\_ACEOF |
| 16755 | #define HAVE_WORKING_FORK 1 |
| 16756 | _ACEOF |
| 16757 | |
| 16758 | fi |
| 16759 | |
| 16760 | |
| 16761 | |
| 16762 | for ac_func in canonicalize_file_name realpath |
| 16763 | do |
| 16764 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16765 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16766 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16767 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16769 | else |
| 16770 | cat >conftest.$ac_ext <<_ACEOF |
| 16771 | /* confdefs.h. */ |
| 16772 | _ACEOF |
| 16773 | cat confdefs.h >>conftest.$ac_ext |
| 16774 | cat >>conftest.$ac_ext <<_ACEOF |
| 16775 | /* end confdefs.h. */ |
| 16776 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16777 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16778 | #define $ac_func innocuous_$ac_func |
| 16779 | |
| 16780 | /* System header to define __stub macros and hopefully few prototypes, |
| 16781 | which can conflict with char $ac_func (); below. |
| 16782 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16783 | <limits.h> exists even on freestanding compilers. */ |
| 16784 | |
| 16785 | #ifdef __STDC__ |
| 16786 | # include <limits.h> |
| 16787 | #else |
| 16788 | # include <assert.h> |
| 16789 | #endif |
| 16790 | |
| 16791 | #undef $ac_func |
| 16792 | |
| 16793 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16794 | #ifdef __cplusplus |
| 16795 | extern "C" |
| 16796 | { |
| 16797 | #endif |
| 16798 | /* We use char because int might match the return type of a gcc2 |
| 16799 | builtin and then its argument prototype would still apply. */ |
| 16800 | char $ac_func (); |
| 16801 | /* The GNU C library defines this for functions which it implements |
| 16802 | to always fail with ENOSYS. Some functions are actually named |
| 16803 | something starting with __ and the normal name is an alias. */ |
| 16804 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16805 | choke me |
| 16806 | #else |
| 16807 | char (*f) () = $ac_func; |
| 16808 | #endif |
| 16809 | #ifdef __cplusplus |
| 16810 | } |
| 16811 | #endif |
| 16812 | |
| 16813 | int |
| 16814 | main () |
| 16815 | { |
| 16816 | return f != $ac_func; |
| 16817 | ; |
| 16818 | return 0; |
| 16819 | } |
| 16820 | _ACEOF |
| 16821 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16823 | (eval $ac_link) 2>conftest.er1 |
| 16824 | ac_status=$? |
| 16825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16826 | rm -f conftest.er1 |
| 16827 | cat conftest.err >&5 |
| 16828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16829 | (exit $ac_status); } && |
| 16830 | { ac_try='test -z "$ac_c_werror_flag" |
| 16831 | || test ! -s conftest.err' |
| 16832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16833 | (eval $ac_try) 2>&5 |
| 16834 | ac_status=$? |
| 16835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16836 | (exit $ac_status); }; } && |
| 16837 | { ac_try='test -s conftest$ac_exeext' |
| 16838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16839 | (eval $ac_try) 2>&5 |
| 16840 | ac_status=$? |
| 16841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16842 | (exit $ac_status); }; }; then |
| 16843 | eval "$as_ac_var=yes" |
| 16844 | else |
| 16845 | echo "$as_me: failed program was:" >&5 |
| 16846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16847 | |
| 16848 | eval "$as_ac_var=no" |
| 16849 | fi |
| 16850 | rm -f conftest.err conftest.$ac_objext \ |
| 16851 | conftest$ac_exeext conftest.$ac_ext |
| 16852 | fi |
| 16853 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16854 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16855 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16856 | cat >>confdefs.h <<_ACEOF |
| 16857 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16858 | _ACEOF |
| 16859 | |
| 16860 | fi |
| 16861 | done |
| 16862 | |
| 16863 | |
| 16864 | for ac_func in getrusage |
| 16865 | do |
| 16866 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16867 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16868 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16869 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16871 | else |
| 16872 | cat >conftest.$ac_ext <<_ACEOF |
| 16873 | /* confdefs.h. */ |
| 16874 | _ACEOF |
| 16875 | cat confdefs.h >>conftest.$ac_ext |
| 16876 | cat >>conftest.$ac_ext <<_ACEOF |
| 16877 | /* end confdefs.h. */ |
| 16878 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16879 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16880 | #define $ac_func innocuous_$ac_func |
| 16881 | |
| 16882 | /* System header to define __stub macros and hopefully few prototypes, |
| 16883 | which can conflict with char $ac_func (); below. |
| 16884 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16885 | <limits.h> exists even on freestanding compilers. */ |
| 16886 | |
| 16887 | #ifdef __STDC__ |
| 16888 | # include <limits.h> |
| 16889 | #else |
| 16890 | # include <assert.h> |
| 16891 | #endif |
| 16892 | |
| 16893 | #undef $ac_func |
| 16894 | |
| 16895 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16896 | #ifdef __cplusplus |
| 16897 | extern "C" |
| 16898 | { |
| 16899 | #endif |
| 16900 | /* We use char because int might match the return type of a gcc2 |
| 16901 | builtin and then its argument prototype would still apply. */ |
| 16902 | char $ac_func (); |
| 16903 | /* The GNU C library defines this for functions which it implements |
| 16904 | to always fail with ENOSYS. Some functions are actually named |
| 16905 | something starting with __ and the normal name is an alias. */ |
| 16906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16907 | choke me |
| 16908 | #else |
| 16909 | char (*f) () = $ac_func; |
| 16910 | #endif |
| 16911 | #ifdef __cplusplus |
| 16912 | } |
| 16913 | #endif |
| 16914 | |
| 16915 | int |
| 16916 | main () |
| 16917 | { |
| 16918 | return f != $ac_func; |
| 16919 | ; |
| 16920 | return 0; |
| 16921 | } |
| 16922 | _ACEOF |
| 16923 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16925 | (eval $ac_link) 2>conftest.er1 |
| 16926 | ac_status=$? |
| 16927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16928 | rm -f conftest.er1 |
| 16929 | cat conftest.err >&5 |
| 16930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16931 | (exit $ac_status); } && |
| 16932 | { ac_try='test -z "$ac_c_werror_flag" |
| 16933 | || test ! -s conftest.err' |
| 16934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16935 | (eval $ac_try) 2>&5 |
| 16936 | ac_status=$? |
| 16937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16938 | (exit $ac_status); }; } && |
| 16939 | { ac_try='test -s conftest$ac_exeext' |
| 16940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16941 | (eval $ac_try) 2>&5 |
| 16942 | ac_status=$? |
| 16943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16944 | (exit $ac_status); }; }; then |
| 16945 | eval "$as_ac_var=yes" |
| 16946 | else |
| 16947 | echo "$as_me: failed program was:" >&5 |
| 16948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16949 | |
| 16950 | eval "$as_ac_var=no" |
| 16951 | fi |
| 16952 | rm -f conftest.err conftest.$ac_objext \ |
| 16953 | conftest$ac_exeext conftest.$ac_ext |
| 16954 | fi |
| 16955 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16956 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16957 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16958 | cat >>confdefs.h <<_ACEOF |
| 16959 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16960 | _ACEOF |
| 16961 | |
| 16962 | fi |
| 16963 | done |
| 16964 | |
| 16965 | |
| 16966 | |
| 16967 | for ac_func in getuid getgid |
| 16968 | do |
| 16969 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16970 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16971 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16972 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16974 | else |
| 16975 | cat >conftest.$ac_ext <<_ACEOF |
| 16976 | /* confdefs.h. */ |
| 16977 | _ACEOF |
| 16978 | cat confdefs.h >>conftest.$ac_ext |
| 16979 | cat >>conftest.$ac_ext <<_ACEOF |
| 16980 | /* end confdefs.h. */ |
| 16981 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16982 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16983 | #define $ac_func innocuous_$ac_func |
| 16984 | |
| 16985 | /* System header to define __stub macros and hopefully few prototypes, |
| 16986 | which can conflict with char $ac_func (); below. |
| 16987 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16988 | <limits.h> exists even on freestanding compilers. */ |
| 16989 | |
| 16990 | #ifdef __STDC__ |
| 16991 | # include <limits.h> |
| 16992 | #else |
| 16993 | # include <assert.h> |
| 16994 | #endif |
| 16995 | |
| 16996 | #undef $ac_func |
| 16997 | |
| 16998 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16999 | #ifdef __cplusplus |
| 17000 | extern "C" |
| 17001 | { |
| 17002 | #endif |
| 17003 | /* We use char because int might match the return type of a gcc2 |
| 17004 | builtin and then its argument prototype would still apply. */ |
| 17005 | char $ac_func (); |
| 17006 | /* The GNU C library defines this for functions which it implements |
| 17007 | to always fail with ENOSYS. Some functions are actually named |
| 17008 | something starting with __ and the normal name is an alias. */ |
| 17009 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17010 | choke me |
| 17011 | #else |
| 17012 | char (*f) () = $ac_func; |
| 17013 | #endif |
| 17014 | #ifdef __cplusplus |
| 17015 | } |
| 17016 | #endif |
| 17017 | |
| 17018 | int |
| 17019 | main () |
| 17020 | { |
| 17021 | return f != $ac_func; |
| 17022 | ; |
| 17023 | return 0; |
| 17024 | } |
| 17025 | _ACEOF |
| 17026 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17028 | (eval $ac_link) 2>conftest.er1 |
| 17029 | ac_status=$? |
| 17030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17031 | rm -f conftest.er1 |
| 17032 | cat conftest.err >&5 |
| 17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17034 | (exit $ac_status); } && |
| 17035 | { ac_try='test -z "$ac_c_werror_flag" |
| 17036 | || test ! -s conftest.err' |
| 17037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17038 | (eval $ac_try) 2>&5 |
| 17039 | ac_status=$? |
| 17040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17041 | (exit $ac_status); }; } && |
| 17042 | { ac_try='test -s conftest$ac_exeext' |
| 17043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17044 | (eval $ac_try) 2>&5 |
| 17045 | ac_status=$? |
| 17046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17047 | (exit $ac_status); }; }; then |
| 17048 | eval "$as_ac_var=yes" |
| 17049 | else |
| 17050 | echo "$as_me: failed program was:" >&5 |
| 17051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17052 | |
| 17053 | eval "$as_ac_var=no" |
| 17054 | fi |
| 17055 | rm -f conftest.err conftest.$ac_objext \ |
| 17056 | conftest$ac_exeext conftest.$ac_ext |
| 17057 | fi |
| 17058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17059 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17060 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17061 | cat >>confdefs.h <<_ACEOF |
| 17062 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17063 | _ACEOF |
| 17064 | |
| 17065 | fi |
| 17066 | done |
| 17067 | |
| 17068 | |
| 17069 | for ac_func in poll |
| 17070 | do |
| 17071 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17072 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17073 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17074 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17076 | else |
| 17077 | cat >conftest.$ac_ext <<_ACEOF |
| 17078 | /* confdefs.h. */ |
| 17079 | _ACEOF |
| 17080 | cat confdefs.h >>conftest.$ac_ext |
| 17081 | cat >>conftest.$ac_ext <<_ACEOF |
| 17082 | /* end confdefs.h. */ |
| 17083 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17084 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17085 | #define $ac_func innocuous_$ac_func |
| 17086 | |
| 17087 | /* System header to define __stub macros and hopefully few prototypes, |
| 17088 | which can conflict with char $ac_func (); below. |
| 17089 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17090 | <limits.h> exists even on freestanding compilers. */ |
| 17091 | |
| 17092 | #ifdef __STDC__ |
| 17093 | # include <limits.h> |
| 17094 | #else |
| 17095 | # include <assert.h> |
| 17096 | #endif |
| 17097 | |
| 17098 | #undef $ac_func |
| 17099 | |
| 17100 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17101 | #ifdef __cplusplus |
| 17102 | extern "C" |
| 17103 | { |
| 17104 | #endif |
| 17105 | /* We use char because int might match the return type of a gcc2 |
| 17106 | builtin and then its argument prototype would still apply. */ |
| 17107 | char $ac_func (); |
| 17108 | /* The GNU C library defines this for functions which it implements |
| 17109 | to always fail with ENOSYS. Some functions are actually named |
| 17110 | something starting with __ and the normal name is an alias. */ |
| 17111 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17112 | choke me |
| 17113 | #else |
| 17114 | char (*f) () = $ac_func; |
| 17115 | #endif |
| 17116 | #ifdef __cplusplus |
| 17117 | } |
| 17118 | #endif |
| 17119 | |
| 17120 | int |
| 17121 | main () |
| 17122 | { |
| 17123 | return f != $ac_func; |
| 17124 | ; |
| 17125 | return 0; |
| 17126 | } |
| 17127 | _ACEOF |
| 17128 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17130 | (eval $ac_link) 2>conftest.er1 |
| 17131 | ac_status=$? |
| 17132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17133 | rm -f conftest.er1 |
| 17134 | cat conftest.err >&5 |
| 17135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17136 | (exit $ac_status); } && |
| 17137 | { ac_try='test -z "$ac_c_werror_flag" |
| 17138 | || test ! -s conftest.err' |
| 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); }; } && |
| 17144 | { ac_try='test -s conftest$ac_exeext' |
| 17145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17146 | (eval $ac_try) 2>&5 |
| 17147 | ac_status=$? |
| 17148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17149 | (exit $ac_status); }; }; then |
| 17150 | eval "$as_ac_var=yes" |
| 17151 | else |
| 17152 | echo "$as_me: failed program was:" >&5 |
| 17153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17154 | |
| 17155 | eval "$as_ac_var=no" |
| 17156 | fi |
| 17157 | rm -f conftest.err conftest.$ac_objext \ |
| 17158 | conftest$ac_exeext conftest.$ac_ext |
| 17159 | fi |
| 17160 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17161 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17162 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17163 | cat >>confdefs.h <<_ACEOF |
| 17164 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17165 | _ACEOF |
| 17166 | |
| 17167 | fi |
| 17168 | done |
| 17169 | |
| 17170 | |
| 17171 | for ac_func in pread64 |
| 17172 | do |
| 17173 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17174 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17175 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17176 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17178 | else |
| 17179 | cat >conftest.$ac_ext <<_ACEOF |
| 17180 | /* confdefs.h. */ |
| 17181 | _ACEOF |
| 17182 | cat confdefs.h >>conftest.$ac_ext |
| 17183 | cat >>conftest.$ac_ext <<_ACEOF |
| 17184 | /* end confdefs.h. */ |
| 17185 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17186 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17187 | #define $ac_func innocuous_$ac_func |
| 17188 | |
| 17189 | /* System header to define __stub macros and hopefully few prototypes, |
| 17190 | which can conflict with char $ac_func (); below. |
| 17191 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17192 | <limits.h> exists even on freestanding compilers. */ |
| 17193 | |
| 17194 | #ifdef __STDC__ |
| 17195 | # include <limits.h> |
| 17196 | #else |
| 17197 | # include <assert.h> |
| 17198 | #endif |
| 17199 | |
| 17200 | #undef $ac_func |
| 17201 | |
| 17202 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17203 | #ifdef __cplusplus |
| 17204 | extern "C" |
| 17205 | { |
| 17206 | #endif |
| 17207 | /* We use char because int might match the return type of a gcc2 |
| 17208 | builtin and then its argument prototype would still apply. */ |
| 17209 | char $ac_func (); |
| 17210 | /* The GNU C library defines this for functions which it implements |
| 17211 | to always fail with ENOSYS. Some functions are actually named |
| 17212 | something starting with __ and the normal name is an alias. */ |
| 17213 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17214 | choke me |
| 17215 | #else |
| 17216 | char (*f) () = $ac_func; |
| 17217 | #endif |
| 17218 | #ifdef __cplusplus |
| 17219 | } |
| 17220 | #endif |
| 17221 | |
| 17222 | int |
| 17223 | main () |
| 17224 | { |
| 17225 | return f != $ac_func; |
| 17226 | ; |
| 17227 | return 0; |
| 17228 | } |
| 17229 | _ACEOF |
| 17230 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17232 | (eval $ac_link) 2>conftest.er1 |
| 17233 | ac_status=$? |
| 17234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17235 | rm -f conftest.er1 |
| 17236 | cat conftest.err >&5 |
| 17237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17238 | (exit $ac_status); } && |
| 17239 | { ac_try='test -z "$ac_c_werror_flag" |
| 17240 | || test ! -s conftest.err' |
| 17241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17242 | (eval $ac_try) 2>&5 |
| 17243 | ac_status=$? |
| 17244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17245 | (exit $ac_status); }; } && |
| 17246 | { ac_try='test -s conftest$ac_exeext' |
| 17247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17248 | (eval $ac_try) 2>&5 |
| 17249 | ac_status=$? |
| 17250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17251 | (exit $ac_status); }; }; then |
| 17252 | eval "$as_ac_var=yes" |
| 17253 | else |
| 17254 | echo "$as_me: failed program was:" >&5 |
| 17255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17256 | |
| 17257 | eval "$as_ac_var=no" |
| 17258 | fi |
| 17259 | rm -f conftest.err conftest.$ac_objext \ |
| 17260 | conftest$ac_exeext conftest.$ac_ext |
| 17261 | fi |
| 17262 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17263 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17264 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17265 | cat >>confdefs.h <<_ACEOF |
| 17266 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17267 | _ACEOF |
| 17268 | |
| 17269 | fi |
| 17270 | done |
| 17271 | |
| 17272 | |
| 17273 | for ac_func in sbrk |
| 17274 | do |
| 17275 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17276 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17277 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17278 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17280 | else |
| 17281 | cat >conftest.$ac_ext <<_ACEOF |
| 17282 | /* confdefs.h. */ |
| 17283 | _ACEOF |
| 17284 | cat confdefs.h >>conftest.$ac_ext |
| 17285 | cat >>conftest.$ac_ext <<_ACEOF |
| 17286 | /* end confdefs.h. */ |
| 17287 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17288 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17289 | #define $ac_func innocuous_$ac_func |
| 17290 | |
| 17291 | /* System header to define __stub macros and hopefully few prototypes, |
| 17292 | which can conflict with char $ac_func (); below. |
| 17293 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17294 | <limits.h> exists even on freestanding compilers. */ |
| 17295 | |
| 17296 | #ifdef __STDC__ |
| 17297 | # include <limits.h> |
| 17298 | #else |
| 17299 | # include <assert.h> |
| 17300 | #endif |
| 17301 | |
| 17302 | #undef $ac_func |
| 17303 | |
| 17304 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17305 | #ifdef __cplusplus |
| 17306 | extern "C" |
| 17307 | { |
| 17308 | #endif |
| 17309 | /* We use char because int might match the return type of a gcc2 |
| 17310 | builtin and then its argument prototype would still apply. */ |
| 17311 | char $ac_func (); |
| 17312 | /* The GNU C library defines this for functions which it implements |
| 17313 | to always fail with ENOSYS. Some functions are actually named |
| 17314 | something starting with __ and the normal name is an alias. */ |
| 17315 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17316 | choke me |
| 17317 | #else |
| 17318 | char (*f) () = $ac_func; |
| 17319 | #endif |
| 17320 | #ifdef __cplusplus |
| 17321 | } |
| 17322 | #endif |
| 17323 | |
| 17324 | int |
| 17325 | main () |
| 17326 | { |
| 17327 | return f != $ac_func; |
| 17328 | ; |
| 17329 | return 0; |
| 17330 | } |
| 17331 | _ACEOF |
| 17332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17334 | (eval $ac_link) 2>conftest.er1 |
| 17335 | ac_status=$? |
| 17336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17337 | rm -f conftest.er1 |
| 17338 | cat conftest.err >&5 |
| 17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17340 | (exit $ac_status); } && |
| 17341 | { ac_try='test -z "$ac_c_werror_flag" |
| 17342 | || test ! -s conftest.err' |
| 17343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17344 | (eval $ac_try) 2>&5 |
| 17345 | ac_status=$? |
| 17346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17347 | (exit $ac_status); }; } && |
| 17348 | { ac_try='test -s conftest$ac_exeext' |
| 17349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17350 | (eval $ac_try) 2>&5 |
| 17351 | ac_status=$? |
| 17352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17353 | (exit $ac_status); }; }; then |
| 17354 | eval "$as_ac_var=yes" |
| 17355 | else |
| 17356 | echo "$as_me: failed program was:" >&5 |
| 17357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17358 | |
| 17359 | eval "$as_ac_var=no" |
| 17360 | fi |
| 17361 | rm -f conftest.err conftest.$ac_objext \ |
| 17362 | conftest$ac_exeext conftest.$ac_ext |
| 17363 | fi |
| 17364 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17365 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17366 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17367 | cat >>confdefs.h <<_ACEOF |
| 17368 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17369 | _ACEOF |
| 17370 | |
| 17371 | fi |
| 17372 | done |
| 17373 | |
| 17374 | |
| 17375 | |
| 17376 | for ac_func in setpgid setpgrp |
| 17377 | do |
| 17378 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17379 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17380 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17381 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17383 | else |
| 17384 | cat >conftest.$ac_ext <<_ACEOF |
| 17385 | /* confdefs.h. */ |
| 17386 | _ACEOF |
| 17387 | cat confdefs.h >>conftest.$ac_ext |
| 17388 | cat >>conftest.$ac_ext <<_ACEOF |
| 17389 | /* end confdefs.h. */ |
| 17390 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17391 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17392 | #define $ac_func innocuous_$ac_func |
| 17393 | |
| 17394 | /* System header to define __stub macros and hopefully few prototypes, |
| 17395 | which can conflict with char $ac_func (); below. |
| 17396 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17397 | <limits.h> exists even on freestanding compilers. */ |
| 17398 | |
| 17399 | #ifdef __STDC__ |
| 17400 | # include <limits.h> |
| 17401 | #else |
| 17402 | # include <assert.h> |
| 17403 | #endif |
| 17404 | |
| 17405 | #undef $ac_func |
| 17406 | |
| 17407 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17408 | #ifdef __cplusplus |
| 17409 | extern "C" |
| 17410 | { |
| 17411 | #endif |
| 17412 | /* We use char because int might match the return type of a gcc2 |
| 17413 | builtin and then its argument prototype would still apply. */ |
| 17414 | char $ac_func (); |
| 17415 | /* The GNU C library defines this for functions which it implements |
| 17416 | to always fail with ENOSYS. Some functions are actually named |
| 17417 | something starting with __ and the normal name is an alias. */ |
| 17418 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17419 | choke me |
| 17420 | #else |
| 17421 | char (*f) () = $ac_func; |
| 17422 | #endif |
| 17423 | #ifdef __cplusplus |
| 17424 | } |
| 17425 | #endif |
| 17426 | |
| 17427 | int |
| 17428 | main () |
| 17429 | { |
| 17430 | return f != $ac_func; |
| 17431 | ; |
| 17432 | return 0; |
| 17433 | } |
| 17434 | _ACEOF |
| 17435 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17437 | (eval $ac_link) 2>conftest.er1 |
| 17438 | ac_status=$? |
| 17439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17440 | rm -f conftest.er1 |
| 17441 | cat conftest.err >&5 |
| 17442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17443 | (exit $ac_status); } && |
| 17444 | { ac_try='test -z "$ac_c_werror_flag" |
| 17445 | || test ! -s conftest.err' |
| 17446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17447 | (eval $ac_try) 2>&5 |
| 17448 | ac_status=$? |
| 17449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17450 | (exit $ac_status); }; } && |
| 17451 | { ac_try='test -s conftest$ac_exeext' |
| 17452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17453 | (eval $ac_try) 2>&5 |
| 17454 | ac_status=$? |
| 17455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17456 | (exit $ac_status); }; }; then |
| 17457 | eval "$as_ac_var=yes" |
| 17458 | else |
| 17459 | echo "$as_me: failed program was:" >&5 |
| 17460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17461 | |
| 17462 | eval "$as_ac_var=no" |
| 17463 | fi |
| 17464 | rm -f conftest.err conftest.$ac_objext \ |
| 17465 | conftest$ac_exeext conftest.$ac_ext |
| 17466 | fi |
| 17467 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17468 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17469 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17470 | cat >>confdefs.h <<_ACEOF |
| 17471 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17472 | _ACEOF |
| 17473 | |
| 17474 | fi |
| 17475 | done |
| 17476 | |
| 17477 | |
| 17478 | |
| 17479 | |
| 17480 | for ac_func in sigaction sigprocmask sigsetmask |
| 17481 | do |
| 17482 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17483 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17484 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17485 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17487 | else |
| 17488 | cat >conftest.$ac_ext <<_ACEOF |
| 17489 | /* confdefs.h. */ |
| 17490 | _ACEOF |
| 17491 | cat confdefs.h >>conftest.$ac_ext |
| 17492 | cat >>conftest.$ac_ext <<_ACEOF |
| 17493 | /* end confdefs.h. */ |
| 17494 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17495 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17496 | #define $ac_func innocuous_$ac_func |
| 17497 | |
| 17498 | /* System header to define __stub macros and hopefully few prototypes, |
| 17499 | which can conflict with char $ac_func (); below. |
| 17500 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17501 | <limits.h> exists even on freestanding compilers. */ |
| 17502 | |
| 17503 | #ifdef __STDC__ |
| 17504 | # include <limits.h> |
| 17505 | #else |
| 17506 | # include <assert.h> |
| 17507 | #endif |
| 17508 | |
| 17509 | #undef $ac_func |
| 17510 | |
| 17511 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17512 | #ifdef __cplusplus |
| 17513 | extern "C" |
| 17514 | { |
| 17515 | #endif |
| 17516 | /* We use char because int might match the return type of a gcc2 |
| 17517 | builtin and then its argument prototype would still apply. */ |
| 17518 | char $ac_func (); |
| 17519 | /* The GNU C library defines this for functions which it implements |
| 17520 | to always fail with ENOSYS. Some functions are actually named |
| 17521 | something starting with __ and the normal name is an alias. */ |
| 17522 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17523 | choke me |
| 17524 | #else |
| 17525 | char (*f) () = $ac_func; |
| 17526 | #endif |
| 17527 | #ifdef __cplusplus |
| 17528 | } |
| 17529 | #endif |
| 17530 | |
| 17531 | int |
| 17532 | main () |
| 17533 | { |
| 17534 | return f != $ac_func; |
| 17535 | ; |
| 17536 | return 0; |
| 17537 | } |
| 17538 | _ACEOF |
| 17539 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17541 | (eval $ac_link) 2>conftest.er1 |
| 17542 | ac_status=$? |
| 17543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17544 | rm -f conftest.er1 |
| 17545 | cat conftest.err >&5 |
| 17546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17547 | (exit $ac_status); } && |
| 17548 | { ac_try='test -z "$ac_c_werror_flag" |
| 17549 | || test ! -s conftest.err' |
| 17550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17551 | (eval $ac_try) 2>&5 |
| 17552 | ac_status=$? |
| 17553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17554 | (exit $ac_status); }; } && |
| 17555 | { ac_try='test -s conftest$ac_exeext' |
| 17556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17557 | (eval $ac_try) 2>&5 |
| 17558 | ac_status=$? |
| 17559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17560 | (exit $ac_status); }; }; then |
| 17561 | eval "$as_ac_var=yes" |
| 17562 | else |
| 17563 | echo "$as_me: failed program was:" >&5 |
| 17564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17565 | |
| 17566 | eval "$as_ac_var=no" |
| 17567 | fi |
| 17568 | rm -f conftest.err conftest.$ac_objext \ |
| 17569 | conftest$ac_exeext conftest.$ac_ext |
| 17570 | fi |
| 17571 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17572 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17573 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17574 | cat >>confdefs.h <<_ACEOF |
| 17575 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17576 | _ACEOF |
| 17577 | |
| 17578 | fi |
| 17579 | done |
| 17580 | |
| 17581 | |
| 17582 | for ac_func in socketpair |
| 17583 | do |
| 17584 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17585 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17586 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17587 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17589 | else |
| 17590 | cat >conftest.$ac_ext <<_ACEOF |
| 17591 | /* confdefs.h. */ |
| 17592 | _ACEOF |
| 17593 | cat confdefs.h >>conftest.$ac_ext |
| 17594 | cat >>conftest.$ac_ext <<_ACEOF |
| 17595 | /* end confdefs.h. */ |
| 17596 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17597 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17598 | #define $ac_func innocuous_$ac_func |
| 17599 | |
| 17600 | /* System header to define __stub macros and hopefully few prototypes, |
| 17601 | which can conflict with char $ac_func (); below. |
| 17602 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17603 | <limits.h> exists even on freestanding compilers. */ |
| 17604 | |
| 17605 | #ifdef __STDC__ |
| 17606 | # include <limits.h> |
| 17607 | #else |
| 17608 | # include <assert.h> |
| 17609 | #endif |
| 17610 | |
| 17611 | #undef $ac_func |
| 17612 | |
| 17613 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17614 | #ifdef __cplusplus |
| 17615 | extern "C" |
| 17616 | { |
| 17617 | #endif |
| 17618 | /* We use char because int might match the return type of a gcc2 |
| 17619 | builtin and then its argument prototype would still apply. */ |
| 17620 | char $ac_func (); |
| 17621 | /* The GNU C library defines this for functions which it implements |
| 17622 | to always fail with ENOSYS. Some functions are actually named |
| 17623 | something starting with __ and the normal name is an alias. */ |
| 17624 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17625 | choke me |
| 17626 | #else |
| 17627 | char (*f) () = $ac_func; |
| 17628 | #endif |
| 17629 | #ifdef __cplusplus |
| 17630 | } |
| 17631 | #endif |
| 17632 | |
| 17633 | int |
| 17634 | main () |
| 17635 | { |
| 17636 | return f != $ac_func; |
| 17637 | ; |
| 17638 | return 0; |
| 17639 | } |
| 17640 | _ACEOF |
| 17641 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17643 | (eval $ac_link) 2>conftest.er1 |
| 17644 | ac_status=$? |
| 17645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17646 | rm -f conftest.er1 |
| 17647 | cat conftest.err >&5 |
| 17648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17649 | (exit $ac_status); } && |
| 17650 | { ac_try='test -z "$ac_c_werror_flag" |
| 17651 | || test ! -s conftest.err' |
| 17652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17653 | (eval $ac_try) 2>&5 |
| 17654 | ac_status=$? |
| 17655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17656 | (exit $ac_status); }; } && |
| 17657 | { ac_try='test -s conftest$ac_exeext' |
| 17658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17659 | (eval $ac_try) 2>&5 |
| 17660 | ac_status=$? |
| 17661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17662 | (exit $ac_status); }; }; then |
| 17663 | eval "$as_ac_var=yes" |
| 17664 | else |
| 17665 | echo "$as_me: failed program was:" >&5 |
| 17666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17667 | |
| 17668 | eval "$as_ac_var=no" |
| 17669 | fi |
| 17670 | rm -f conftest.err conftest.$ac_objext \ |
| 17671 | conftest$ac_exeext conftest.$ac_ext |
| 17672 | fi |
| 17673 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17674 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17675 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17676 | cat >>confdefs.h <<_ACEOF |
| 17677 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17678 | _ACEOF |
| 17679 | |
| 17680 | fi |
| 17681 | done |
| 17682 | |
| 17683 | |
| 17684 | for ac_func in syscall |
| 17685 | do |
| 17686 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17687 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17688 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17689 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17691 | else |
| 17692 | cat >conftest.$ac_ext <<_ACEOF |
| 17693 | /* confdefs.h. */ |
| 17694 | _ACEOF |
| 17695 | cat confdefs.h >>conftest.$ac_ext |
| 17696 | cat >>conftest.$ac_ext <<_ACEOF |
| 17697 | /* end confdefs.h. */ |
| 17698 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17699 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17700 | #define $ac_func innocuous_$ac_func |
| 17701 | |
| 17702 | /* System header to define __stub macros and hopefully few prototypes, |
| 17703 | which can conflict with char $ac_func (); below. |
| 17704 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17705 | <limits.h> exists even on freestanding compilers. */ |
| 17706 | |
| 17707 | #ifdef __STDC__ |
| 17708 | # include <limits.h> |
| 17709 | #else |
| 17710 | # include <assert.h> |
| 17711 | #endif |
| 17712 | |
| 17713 | #undef $ac_func |
| 17714 | |
| 17715 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17716 | #ifdef __cplusplus |
| 17717 | extern "C" |
| 17718 | { |
| 17719 | #endif |
| 17720 | /* We use char because int might match the return type of a gcc2 |
| 17721 | builtin and then its argument prototype would still apply. */ |
| 17722 | char $ac_func (); |
| 17723 | /* The GNU C library defines this for functions which it implements |
| 17724 | to always fail with ENOSYS. Some functions are actually named |
| 17725 | something starting with __ and the normal name is an alias. */ |
| 17726 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17727 | choke me |
| 17728 | #else |
| 17729 | char (*f) () = $ac_func; |
| 17730 | #endif |
| 17731 | #ifdef __cplusplus |
| 17732 | } |
| 17733 | #endif |
| 17734 | |
| 17735 | int |
| 17736 | main () |
| 17737 | { |
| 17738 | return f != $ac_func; |
| 17739 | ; |
| 17740 | return 0; |
| 17741 | } |
| 17742 | _ACEOF |
| 17743 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17745 | (eval $ac_link) 2>conftest.er1 |
| 17746 | ac_status=$? |
| 17747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17748 | rm -f conftest.er1 |
| 17749 | cat conftest.err >&5 |
| 17750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17751 | (exit $ac_status); } && |
| 17752 | { ac_try='test -z "$ac_c_werror_flag" |
| 17753 | || test ! -s conftest.err' |
| 17754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17755 | (eval $ac_try) 2>&5 |
| 17756 | ac_status=$? |
| 17757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17758 | (exit $ac_status); }; } && |
| 17759 | { ac_try='test -s conftest$ac_exeext' |
| 17760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17761 | (eval $ac_try) 2>&5 |
| 17762 | ac_status=$? |
| 17763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17764 | (exit $ac_status); }; }; then |
| 17765 | eval "$as_ac_var=yes" |
| 17766 | else |
| 17767 | echo "$as_me: failed program was:" >&5 |
| 17768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17769 | |
| 17770 | eval "$as_ac_var=no" |
| 17771 | fi |
| 17772 | rm -f conftest.err conftest.$ac_objext \ |
| 17773 | conftest$ac_exeext conftest.$ac_ext |
| 17774 | fi |
| 17775 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17776 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17777 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17778 | cat >>confdefs.h <<_ACEOF |
| 17779 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17780 | _ACEOF |
| 17781 | |
| 17782 | fi |
| 17783 | done |
| 17784 | |
| 17785 | |
| 17786 | for ac_func in ttrace |
| 17787 | do |
| 17788 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17789 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17790 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17791 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17793 | else |
| 17794 | cat >conftest.$ac_ext <<_ACEOF |
| 17795 | /* confdefs.h. */ |
| 17796 | _ACEOF |
| 17797 | cat confdefs.h >>conftest.$ac_ext |
| 17798 | cat >>conftest.$ac_ext <<_ACEOF |
| 17799 | /* end confdefs.h. */ |
| 17800 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17801 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17802 | #define $ac_func innocuous_$ac_func |
| 17803 | |
| 17804 | /* System header to define __stub macros and hopefully few prototypes, |
| 17805 | which can conflict with char $ac_func (); below. |
| 17806 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17807 | <limits.h> exists even on freestanding compilers. */ |
| 17808 | |
| 17809 | #ifdef __STDC__ |
| 17810 | # include <limits.h> |
| 17811 | #else |
| 17812 | # include <assert.h> |
| 17813 | #endif |
| 17814 | |
| 17815 | #undef $ac_func |
| 17816 | |
| 17817 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17818 | #ifdef __cplusplus |
| 17819 | extern "C" |
| 17820 | { |
| 17821 | #endif |
| 17822 | /* We use char because int might match the return type of a gcc2 |
| 17823 | builtin and then its argument prototype would still apply. */ |
| 17824 | char $ac_func (); |
| 17825 | /* The GNU C library defines this for functions which it implements |
| 17826 | to always fail with ENOSYS. Some functions are actually named |
| 17827 | something starting with __ and the normal name is an alias. */ |
| 17828 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17829 | choke me |
| 17830 | #else |
| 17831 | char (*f) () = $ac_func; |
| 17832 | #endif |
| 17833 | #ifdef __cplusplus |
| 17834 | } |
| 17835 | #endif |
| 17836 | |
| 17837 | int |
| 17838 | main () |
| 17839 | { |
| 17840 | return f != $ac_func; |
| 17841 | ; |
| 17842 | return 0; |
| 17843 | } |
| 17844 | _ACEOF |
| 17845 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17847 | (eval $ac_link) 2>conftest.er1 |
| 17848 | ac_status=$? |
| 17849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17850 | rm -f conftest.er1 |
| 17851 | cat conftest.err >&5 |
| 17852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17853 | (exit $ac_status); } && |
| 17854 | { ac_try='test -z "$ac_c_werror_flag" |
| 17855 | || test ! -s conftest.err' |
| 17856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17857 | (eval $ac_try) 2>&5 |
| 17858 | ac_status=$? |
| 17859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17860 | (exit $ac_status); }; } && |
| 17861 | { ac_try='test -s conftest$ac_exeext' |
| 17862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17863 | (eval $ac_try) 2>&5 |
| 17864 | ac_status=$? |
| 17865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17866 | (exit $ac_status); }; }; then |
| 17867 | eval "$as_ac_var=yes" |
| 17868 | else |
| 17869 | echo "$as_me: failed program was:" >&5 |
| 17870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17871 | |
| 17872 | eval "$as_ac_var=no" |
| 17873 | fi |
| 17874 | rm -f conftest.err conftest.$ac_objext \ |
| 17875 | conftest$ac_exeext conftest.$ac_ext |
| 17876 | fi |
| 17877 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17878 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17879 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17880 | cat >>confdefs.h <<_ACEOF |
| 17881 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17882 | _ACEOF |
| 17883 | |
| 17884 | fi |
| 17885 | done |
| 17886 | |
| 17887 | |
| 17888 | for ac_func in wborder |
| 17889 | do |
| 17890 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17891 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17892 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17893 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17895 | else |
| 17896 | cat >conftest.$ac_ext <<_ACEOF |
| 17897 | /* confdefs.h. */ |
| 17898 | _ACEOF |
| 17899 | cat confdefs.h >>conftest.$ac_ext |
| 17900 | cat >>conftest.$ac_ext <<_ACEOF |
| 17901 | /* end confdefs.h. */ |
| 17902 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17903 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17904 | #define $ac_func innocuous_$ac_func |
| 17905 | |
| 17906 | /* System header to define __stub macros and hopefully few prototypes, |
| 17907 | which can conflict with char $ac_func (); below. |
| 17908 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17909 | <limits.h> exists even on freestanding compilers. */ |
| 17910 | |
| 17911 | #ifdef __STDC__ |
| 17912 | # include <limits.h> |
| 17913 | #else |
| 17914 | # include <assert.h> |
| 17915 | #endif |
| 17916 | |
| 17917 | #undef $ac_func |
| 17918 | |
| 17919 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17920 | #ifdef __cplusplus |
| 17921 | extern "C" |
| 17922 | { |
| 17923 | #endif |
| 17924 | /* We use char because int might match the return type of a gcc2 |
| 17925 | builtin and then its argument prototype would still apply. */ |
| 17926 | char $ac_func (); |
| 17927 | /* The GNU C library defines this for functions which it implements |
| 17928 | to always fail with ENOSYS. Some functions are actually named |
| 17929 | something starting with __ and the normal name is an alias. */ |
| 17930 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 17931 | choke me |
| 17932 | #else |
| 17933 | char (*f) () = $ac_func; |
| 17934 | #endif |
| 17935 | #ifdef __cplusplus |
| 17936 | } |
| 17937 | #endif |
| 17938 | |
| 17939 | int |
| 17940 | main () |
| 17941 | { |
| 17942 | return f != $ac_func; |
| 17943 | ; |
| 17944 | return 0; |
| 17945 | } |
| 17946 | _ACEOF |
| 17947 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17949 | (eval $ac_link) 2>conftest.er1 |
| 17950 | ac_status=$? |
| 17951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17952 | rm -f conftest.er1 |
| 17953 | cat conftest.err >&5 |
| 17954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17955 | (exit $ac_status); } && |
| 17956 | { ac_try='test -z "$ac_c_werror_flag" |
| 17957 | || test ! -s conftest.err' |
| 17958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17959 | (eval $ac_try) 2>&5 |
| 17960 | ac_status=$? |
| 17961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17962 | (exit $ac_status); }; } && |
| 17963 | { ac_try='test -s conftest$ac_exeext' |
| 17964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17965 | (eval $ac_try) 2>&5 |
| 17966 | ac_status=$? |
| 17967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17968 | (exit $ac_status); }; }; then |
| 17969 | eval "$as_ac_var=yes" |
| 17970 | else |
| 17971 | echo "$as_me: failed program was:" >&5 |
| 17972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17973 | |
| 17974 | eval "$as_ac_var=no" |
| 17975 | fi |
| 17976 | rm -f conftest.err conftest.$ac_objext \ |
| 17977 | conftest$ac_exeext conftest.$ac_ext |
| 17978 | fi |
| 17979 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17980 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17981 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17982 | cat >>confdefs.h <<_ACEOF |
| 17983 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17984 | _ACEOF |
| 17985 | |
| 17986 | fi |
| 17987 | done |
| 17988 | |
| 17989 | |
| 17990 | # Check the return and argument types of ptrace. No canned test for |
| 17991 | # this, so roll our own. |
| 17992 | gdb_ptrace_headers=' |
| 17993 | #if HAVE_SYS_TYPES_H |
| 17994 | # include <sys/types.h> |
| 17995 | #endif |
| 17996 | #if HAVE_SYS_PTRACE_H |
| 17997 | # include <sys/ptrace.h> |
| 17998 | #endif |
| 17999 | #if HAVE_UNISTD_H |
| 18000 | # include <unistd.h> |
| 18001 | #endif |
| 18002 | ' |
| 18003 | # There is no point in checking if we don't have a prototype. |
| 18004 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
| 18005 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 |
| 18006 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
| 18007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18008 | else |
| 18009 | cat >conftest.$ac_ext <<_ACEOF |
| 18010 | /* confdefs.h. */ |
| 18011 | _ACEOF |
| 18012 | cat confdefs.h >>conftest.$ac_ext |
| 18013 | cat >>conftest.$ac_ext <<_ACEOF |
| 18014 | /* end confdefs.h. */ |
| 18015 | $gdb_ptrace_headers |
| 18016 | |
| 18017 | int |
| 18018 | main () |
| 18019 | { |
| 18020 | #ifndef ptrace |
| 18021 | char *p = (char *) ptrace; |
| 18022 | #endif |
| 18023 | |
| 18024 | ; |
| 18025 | return 0; |
| 18026 | } |
| 18027 | _ACEOF |
| 18028 | rm -f conftest.$ac_objext |
| 18029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18030 | (eval $ac_compile) 2>conftest.er1 |
| 18031 | ac_status=$? |
| 18032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18033 | rm -f conftest.er1 |
| 18034 | cat conftest.err >&5 |
| 18035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18036 | (exit $ac_status); } && |
| 18037 | { ac_try='test -z "$ac_c_werror_flag" |
| 18038 | || test ! -s conftest.err' |
| 18039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18040 | (eval $ac_try) 2>&5 |
| 18041 | ac_status=$? |
| 18042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18043 | (exit $ac_status); }; } && |
| 18044 | { ac_try='test -s conftest.$ac_objext' |
| 18045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18046 | (eval $ac_try) 2>&5 |
| 18047 | ac_status=$? |
| 18048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18049 | (exit $ac_status); }; }; then |
| 18050 | ac_cv_have_decl_ptrace=yes |
| 18051 | else |
| 18052 | echo "$as_me: failed program was:" >&5 |
| 18053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18054 | |
| 18055 | ac_cv_have_decl_ptrace=no |
| 18056 | fi |
| 18057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18058 | fi |
| 18059 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
| 18060 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 |
| 18061 | if test $ac_cv_have_decl_ptrace = yes; then |
| 18062 | |
| 18063 | cat >>confdefs.h <<_ACEOF |
| 18064 | #define HAVE_DECL_PTRACE 1 |
| 18065 | _ACEOF |
| 18066 | |
| 18067 | |
| 18068 | else |
| 18069 | cat >>confdefs.h <<_ACEOF |
| 18070 | #define HAVE_DECL_PTRACE 0 |
| 18071 | _ACEOF |
| 18072 | |
| 18073 | |
| 18074 | : ${gdb_cv_func_ptrace_ret='int'} |
| 18075 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} |
| 18076 | |
| 18077 | fi |
| 18078 | |
| 18079 | |
| 18080 | # Check return type. |
| 18081 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
| 18082 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 |
| 18083 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
| 18084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18085 | else |
| 18086 | cat >conftest.$ac_ext <<_ACEOF |
| 18087 | /* confdefs.h. */ |
| 18088 | _ACEOF |
| 18089 | cat confdefs.h >>conftest.$ac_ext |
| 18090 | cat >>conftest.$ac_ext <<_ACEOF |
| 18091 | /* end confdefs.h. */ |
| 18092 | $gdb_ptrace_headers |
| 18093 | int |
| 18094 | main () |
| 18095 | { |
| 18096 | extern int ptrace (); |
| 18097 | ; |
| 18098 | return 0; |
| 18099 | } |
| 18100 | _ACEOF |
| 18101 | rm -f conftest.$ac_objext |
| 18102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18103 | (eval $ac_compile) 2>conftest.er1 |
| 18104 | ac_status=$? |
| 18105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18106 | rm -f conftest.er1 |
| 18107 | cat conftest.err >&5 |
| 18108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18109 | (exit $ac_status); } && |
| 18110 | { ac_try='test -z "$ac_c_werror_flag" |
| 18111 | || test ! -s conftest.err' |
| 18112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18113 | (eval $ac_try) 2>&5 |
| 18114 | ac_status=$? |
| 18115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18116 | (exit $ac_status); }; } && |
| 18117 | { ac_try='test -s conftest.$ac_objext' |
| 18118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18119 | (eval $ac_try) 2>&5 |
| 18120 | ac_status=$? |
| 18121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18122 | (exit $ac_status); }; }; then |
| 18123 | gdb_cv_func_ptrace_ret='int' |
| 18124 | else |
| 18125 | echo "$as_me: failed program was:" >&5 |
| 18126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18127 | |
| 18128 | gdb_cv_func_ptrace_ret='long' |
| 18129 | fi |
| 18130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18131 | fi |
| 18132 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
| 18133 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 |
| 18134 | |
| 18135 | cat >>confdefs.h <<_ACEOF |
| 18136 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret |
| 18137 | _ACEOF |
| 18138 | |
| 18139 | # Check argument types. |
| 18140 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
| 18141 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 |
| 18142 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
| 18143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18144 | else |
| 18145 | |
| 18146 | for gdb_arg1 in 'int' 'long'; do |
| 18147 | for gdb_arg2 in 'pid_t' 'int' 'long'; do |
| 18148 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do |
| 18149 | for gdb_arg4 in 'int' 'long'; do |
| 18150 | cat >conftest.$ac_ext <<_ACEOF |
| 18151 | /* confdefs.h. */ |
| 18152 | _ACEOF |
| 18153 | cat confdefs.h >>conftest.$ac_ext |
| 18154 | cat >>conftest.$ac_ext <<_ACEOF |
| 18155 | /* end confdefs.h. */ |
| 18156 | $gdb_ptrace_headers |
| 18157 | int |
| 18158 | main () |
| 18159 | { |
| 18160 | |
| 18161 | extern $gdb_cv_func_ptrace_ret |
| 18162 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); |
| 18163 | |
| 18164 | ; |
| 18165 | return 0; |
| 18166 | } |
| 18167 | _ACEOF |
| 18168 | rm -f conftest.$ac_objext |
| 18169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18170 | (eval $ac_compile) 2>conftest.er1 |
| 18171 | ac_status=$? |
| 18172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18173 | rm -f conftest.er1 |
| 18174 | cat conftest.err >&5 |
| 18175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18176 | (exit $ac_status); } && |
| 18177 | { ac_try='test -z "$ac_c_werror_flag" |
| 18178 | || test ! -s conftest.err' |
| 18179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18180 | (eval $ac_try) 2>&5 |
| 18181 | ac_status=$? |
| 18182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18183 | (exit $ac_status); }; } && |
| 18184 | { ac_try='test -s conftest.$ac_objext' |
| 18185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18186 | (eval $ac_try) 2>&5 |
| 18187 | ac_status=$? |
| 18188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18189 | (exit $ac_status); }; }; then |
| 18190 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
| 18191 | break 4; |
| 18192 | else |
| 18193 | echo "$as_me: failed program was:" >&5 |
| 18194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18195 | |
| 18196 | fi |
| 18197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18198 | for gdb_arg5 in 'int *' 'int' 'long'; do |
| 18199 | cat >conftest.$ac_ext <<_ACEOF |
| 18200 | /* confdefs.h. */ |
| 18201 | _ACEOF |
| 18202 | cat confdefs.h >>conftest.$ac_ext |
| 18203 | cat >>conftest.$ac_ext <<_ACEOF |
| 18204 | /* end confdefs.h. */ |
| 18205 | $gdb_ptrace_headers |
| 18206 | int |
| 18207 | main () |
| 18208 | { |
| 18209 | |
| 18210 | extern $gdb_cv_func_ptrace_ret |
| 18211 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); |
| 18212 | |
| 18213 | ; |
| 18214 | return 0; |
| 18215 | } |
| 18216 | _ACEOF |
| 18217 | rm -f conftest.$ac_objext |
| 18218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18219 | (eval $ac_compile) 2>conftest.er1 |
| 18220 | ac_status=$? |
| 18221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18222 | rm -f conftest.er1 |
| 18223 | cat conftest.err >&5 |
| 18224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18225 | (exit $ac_status); } && |
| 18226 | { ac_try='test -z "$ac_c_werror_flag" |
| 18227 | || test ! -s conftest.err' |
| 18228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18229 | (eval $ac_try) 2>&5 |
| 18230 | ac_status=$? |
| 18231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18232 | (exit $ac_status); }; } && |
| 18233 | { ac_try='test -s conftest.$ac_objext' |
| 18234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18235 | (eval $ac_try) 2>&5 |
| 18236 | ac_status=$? |
| 18237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18238 | (exit $ac_status); }; }; then |
| 18239 | |
| 18240 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; |
| 18241 | break 5; |
| 18242 | else |
| 18243 | echo "$as_me: failed program was:" >&5 |
| 18244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18245 | |
| 18246 | fi |
| 18247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18248 | done |
| 18249 | done |
| 18250 | done |
| 18251 | done |
| 18252 | done |
| 18253 | # Provide a safe default value. |
| 18254 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} |
| 18255 | |
| 18256 | fi |
| 18257 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
| 18258 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 |
| 18259 | ac_save_IFS=$IFS; IFS=',' |
| 18260 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` |
| 18261 | IFS=$ac_save_IFS |
| 18262 | shift |
| 18263 | |
| 18264 | cat >>confdefs.h <<_ACEOF |
| 18265 | #define PTRACE_TYPE_ARG3 $3 |
| 18266 | _ACEOF |
| 18267 | |
| 18268 | if test -n "$5"; then |
| 18269 | |
| 18270 | cat >>confdefs.h <<_ACEOF |
| 18271 | #define PTRACE_TYPE_ARG5 $5 |
| 18272 | _ACEOF |
| 18273 | |
| 18274 | fi |
| 18275 | |
| 18276 | if test "$cross_compiling" = no; then |
| 18277 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 18278 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 18279 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
| 18280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18281 | else |
| 18282 | if test "$cross_compiling" = yes; then |
| 18283 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 18284 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 18285 | { (exit 1); exit 1; }; } |
| 18286 | else |
| 18287 | cat >conftest.$ac_ext <<_ACEOF |
| 18288 | /* confdefs.h. */ |
| 18289 | _ACEOF |
| 18290 | cat confdefs.h >>conftest.$ac_ext |
| 18291 | cat >>conftest.$ac_ext <<_ACEOF |
| 18292 | /* end confdefs.h. */ |
| 18293 | #if HAVE_UNISTD_H |
| 18294 | # include <unistd.h> |
| 18295 | #endif |
| 18296 | |
| 18297 | int |
| 18298 | main () |
| 18299 | { |
| 18300 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 18301 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 18302 | exit successfully. */ |
| 18303 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
| 18304 | ; |
| 18305 | return 0; |
| 18306 | } |
| 18307 | _ACEOF |
| 18308 | rm -f conftest$ac_exeext |
| 18309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18310 | (eval $ac_link) 2>&5 |
| 18311 | ac_status=$? |
| 18312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18313 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18315 | (eval $ac_try) 2>&5 |
| 18316 | ac_status=$? |
| 18317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18318 | (exit $ac_status); }; }; then |
| 18319 | ac_cv_func_setpgrp_void=no |
| 18320 | else |
| 18321 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18322 | echo "$as_me: failed program was:" >&5 |
| 18323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18324 | |
| 18325 | ( exit $ac_status ) |
| 18326 | ac_cv_func_setpgrp_void=yes |
| 18327 | fi |
| 18328 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 18329 | fi |
| 18330 | fi |
| 18331 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 18332 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 18333 | if test $ac_cv_func_setpgrp_void = yes; then |
| 18334 | |
| 18335 | cat >>confdefs.h <<\_ACEOF |
| 18336 | #define SETPGRP_VOID 1 |
| 18337 | _ACEOF |
| 18338 | |
| 18339 | fi |
| 18340 | |
| 18341 | else |
| 18342 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 18343 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 18344 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
| 18345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18346 | else |
| 18347 | cat >conftest.$ac_ext <<_ACEOF |
| 18348 | /* confdefs.h. */ |
| 18349 | _ACEOF |
| 18350 | cat confdefs.h >>conftest.$ac_ext |
| 18351 | cat >>conftest.$ac_ext <<_ACEOF |
| 18352 | /* end confdefs.h. */ |
| 18353 | |
| 18354 | #include <unistd.h> |
| 18355 | |
| 18356 | int |
| 18357 | main () |
| 18358 | { |
| 18359 | |
| 18360 | if (setpgrp(1,1) == -1) |
| 18361 | exit (0); |
| 18362 | else |
| 18363 | exit (1); |
| 18364 | |
| 18365 | ; |
| 18366 | return 0; |
| 18367 | } |
| 18368 | _ACEOF |
| 18369 | rm -f conftest.$ac_objext |
| 18370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18371 | (eval $ac_compile) 2>conftest.er1 |
| 18372 | ac_status=$? |
| 18373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18374 | rm -f conftest.er1 |
| 18375 | cat conftest.err >&5 |
| 18376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18377 | (exit $ac_status); } && |
| 18378 | { ac_try='test -z "$ac_c_werror_flag" |
| 18379 | || test ! -s conftest.err' |
| 18380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18381 | (eval $ac_try) 2>&5 |
| 18382 | ac_status=$? |
| 18383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18384 | (exit $ac_status); }; } && |
| 18385 | { ac_try='test -s conftest.$ac_objext' |
| 18386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18387 | (eval $ac_try) 2>&5 |
| 18388 | ac_status=$? |
| 18389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18390 | (exit $ac_status); }; }; then |
| 18391 | ac_cv_func_setpgrp_void=no |
| 18392 | else |
| 18393 | echo "$as_me: failed program was:" >&5 |
| 18394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18395 | |
| 18396 | ac_cv_func_setpgrp_void=yes |
| 18397 | fi |
| 18398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18399 | fi |
| 18400 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 18401 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 18402 | if test $ac_cv_func_setpgrp_void = yes; then |
| 18403 | cat >>confdefs.h <<\_ACEOF |
| 18404 | #define SETPGRP_VOID 1 |
| 18405 | _ACEOF |
| 18406 | |
| 18407 | fi |
| 18408 | fi |
| 18409 | |
| 18410 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
| 18411 | # since sigsetjmp might only be defined as a macro. |
| 18412 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
| 18413 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 |
| 18414 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
| 18415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18416 | else |
| 18417 | cat >conftest.$ac_ext <<_ACEOF |
| 18418 | /* confdefs.h. */ |
| 18419 | _ACEOF |
| 18420 | cat confdefs.h >>conftest.$ac_ext |
| 18421 | cat >>conftest.$ac_ext <<_ACEOF |
| 18422 | /* end confdefs.h. */ |
| 18423 | |
| 18424 | #include <setjmp.h> |
| 18425 | |
| 18426 | int |
| 18427 | main () |
| 18428 | { |
| 18429 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
| 18430 | ; |
| 18431 | return 0; |
| 18432 | } |
| 18433 | _ACEOF |
| 18434 | rm -f conftest.$ac_objext |
| 18435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18436 | (eval $ac_compile) 2>conftest.er1 |
| 18437 | ac_status=$? |
| 18438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18439 | rm -f conftest.er1 |
| 18440 | cat conftest.err >&5 |
| 18441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18442 | (exit $ac_status); } && |
| 18443 | { ac_try='test -z "$ac_c_werror_flag" |
| 18444 | || test ! -s conftest.err' |
| 18445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18446 | (eval $ac_try) 2>&5 |
| 18447 | ac_status=$? |
| 18448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18449 | (exit $ac_status); }; } && |
| 18450 | { ac_try='test -s conftest.$ac_objext' |
| 18451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18452 | (eval $ac_try) 2>&5 |
| 18453 | ac_status=$? |
| 18454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18455 | (exit $ac_status); }; }; then |
| 18456 | gdb_cv_func_sigsetjmp=yes |
| 18457 | else |
| 18458 | echo "$as_me: failed program was:" >&5 |
| 18459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18460 | |
| 18461 | gdb_cv_func_sigsetjmp=no |
| 18462 | fi |
| 18463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18464 | fi |
| 18465 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
| 18466 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 |
| 18467 | if test $gdb_cv_func_sigsetjmp = yes; then |
| 18468 | |
| 18469 | cat >>confdefs.h <<\_ACEOF |
| 18470 | #define HAVE_SIGSETJMP 1 |
| 18471 | _ACEOF |
| 18472 | |
| 18473 | fi |
| 18474 | |
| 18475 | # Assume we'll default to using the included libiberty regex. |
| 18476 | gdb_use_included_regex=yes |
| 18477 | |
| 18478 | # However, if the system regex is GNU regex, then default to *not* |
| 18479 | # using the included regex. |
| 18480 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
| 18481 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 |
| 18482 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
| 18483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18484 | else |
| 18485 | cat >conftest.$ac_ext <<_ACEOF |
| 18486 | /* confdefs.h. */ |
| 18487 | _ACEOF |
| 18488 | cat confdefs.h >>conftest.$ac_ext |
| 18489 | cat >>conftest.$ac_ext <<_ACEOF |
| 18490 | /* end confdefs.h. */ |
| 18491 | #include <gnu-versions.h> |
| 18492 | int |
| 18493 | main () |
| 18494 | { |
| 18495 | #define REGEX_INTERFACE_VERSION 1 |
| 18496 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION |
| 18497 | # error "Version mismatch" |
| 18498 | #endif |
| 18499 | ; |
| 18500 | return 0; |
| 18501 | } |
| 18502 | _ACEOF |
| 18503 | rm -f conftest.$ac_objext |
| 18504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18505 | (eval $ac_compile) 2>conftest.er1 |
| 18506 | ac_status=$? |
| 18507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18508 | rm -f conftest.er1 |
| 18509 | cat conftest.err >&5 |
| 18510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18511 | (exit $ac_status); } && |
| 18512 | { ac_try='test -z "$ac_c_werror_flag" |
| 18513 | || test ! -s conftest.err' |
| 18514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18515 | (eval $ac_try) 2>&5 |
| 18516 | ac_status=$? |
| 18517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18518 | (exit $ac_status); }; } && |
| 18519 | { ac_try='test -s conftest.$ac_objext' |
| 18520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18521 | (eval $ac_try) 2>&5 |
| 18522 | ac_status=$? |
| 18523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18524 | (exit $ac_status); }; }; then |
| 18525 | gdb_cv_have_gnu_regex=yes |
| 18526 | else |
| 18527 | echo "$as_me: failed program was:" >&5 |
| 18528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18529 | |
| 18530 | gdb_cv_have_gnu_regex=no |
| 18531 | fi |
| 18532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18533 | fi |
| 18534 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
| 18535 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 |
| 18536 | if test $gdb_cv_have_gnu_regex = yes; then |
| 18537 | gdb_use_included_regex=no |
| 18538 | fi |
| 18539 | |
| 18540 | |
| 18541 | # Check whether --with-included-regex or --without-included-regex was given. |
| 18542 | if test "${with_included_regex+set}" = set; then |
| 18543 | withval="$with_included_regex" |
| 18544 | gdb_with_regex=$withval |
| 18545 | else |
| 18546 | gdb_with_regex=$gdb_use_included_regex |
| 18547 | fi; |
| 18548 | if test "$gdb_with_regex" = yes; then |
| 18549 | |
| 18550 | cat >>confdefs.h <<\_ACEOF |
| 18551 | #define USE_INCLUDED_REGEX 1 |
| 18552 | _ACEOF |
| 18553 | |
| 18554 | fi |
| 18555 | |
| 18556 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
| 18557 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
| 18558 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 |
| 18559 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
| 18560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18561 | else |
| 18562 | cat >conftest.$ac_ext <<_ACEOF |
| 18563 | /* confdefs.h. */ |
| 18564 | _ACEOF |
| 18565 | cat confdefs.h >>conftest.$ac_ext |
| 18566 | cat >>conftest.$ac_ext <<_ACEOF |
| 18567 | /* end confdefs.h. */ |
| 18568 | #include <sys/param.h> |
| 18569 | #include <sys/proc.h> |
| 18570 | |
| 18571 | |
| 18572 | int |
| 18573 | main () |
| 18574 | { |
| 18575 | static struct thread ac_aggr; |
| 18576 | if (ac_aggr.td_pcb) |
| 18577 | return 0; |
| 18578 | ; |
| 18579 | return 0; |
| 18580 | } |
| 18581 | _ACEOF |
| 18582 | rm -f conftest.$ac_objext |
| 18583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18584 | (eval $ac_compile) 2>conftest.er1 |
| 18585 | ac_status=$? |
| 18586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18587 | rm -f conftest.er1 |
| 18588 | cat conftest.err >&5 |
| 18589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18590 | (exit $ac_status); } && |
| 18591 | { ac_try='test -z "$ac_c_werror_flag" |
| 18592 | || test ! -s conftest.err' |
| 18593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18594 | (eval $ac_try) 2>&5 |
| 18595 | ac_status=$? |
| 18596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18597 | (exit $ac_status); }; } && |
| 18598 | { ac_try='test -s conftest.$ac_objext' |
| 18599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18600 | (eval $ac_try) 2>&5 |
| 18601 | ac_status=$? |
| 18602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18603 | (exit $ac_status); }; }; then |
| 18604 | ac_cv_member_struct_thread_td_pcb=yes |
| 18605 | else |
| 18606 | echo "$as_me: failed program was:" >&5 |
| 18607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18608 | |
| 18609 | cat >conftest.$ac_ext <<_ACEOF |
| 18610 | /* confdefs.h. */ |
| 18611 | _ACEOF |
| 18612 | cat confdefs.h >>conftest.$ac_ext |
| 18613 | cat >>conftest.$ac_ext <<_ACEOF |
| 18614 | /* end confdefs.h. */ |
| 18615 | #include <sys/param.h> |
| 18616 | #include <sys/proc.h> |
| 18617 | |
| 18618 | |
| 18619 | int |
| 18620 | main () |
| 18621 | { |
| 18622 | static struct thread ac_aggr; |
| 18623 | if (sizeof ac_aggr.td_pcb) |
| 18624 | return 0; |
| 18625 | ; |
| 18626 | return 0; |
| 18627 | } |
| 18628 | _ACEOF |
| 18629 | rm -f conftest.$ac_objext |
| 18630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18631 | (eval $ac_compile) 2>conftest.er1 |
| 18632 | ac_status=$? |
| 18633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18634 | rm -f conftest.er1 |
| 18635 | cat conftest.err >&5 |
| 18636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18637 | (exit $ac_status); } && |
| 18638 | { ac_try='test -z "$ac_c_werror_flag" |
| 18639 | || test ! -s conftest.err' |
| 18640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18641 | (eval $ac_try) 2>&5 |
| 18642 | ac_status=$? |
| 18643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18644 | (exit $ac_status); }; } && |
| 18645 | { ac_try='test -s conftest.$ac_objext' |
| 18646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18647 | (eval $ac_try) 2>&5 |
| 18648 | ac_status=$? |
| 18649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18650 | (exit $ac_status); }; }; then |
| 18651 | ac_cv_member_struct_thread_td_pcb=yes |
| 18652 | else |
| 18653 | echo "$as_me: failed program was:" >&5 |
| 18654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18655 | |
| 18656 | ac_cv_member_struct_thread_td_pcb=no |
| 18657 | fi |
| 18658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18659 | fi |
| 18660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18661 | fi |
| 18662 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
| 18663 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 |
| 18664 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
| 18665 | |
| 18666 | cat >>confdefs.h <<_ACEOF |
| 18667 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
| 18668 | _ACEOF |
| 18669 | |
| 18670 | |
| 18671 | fi |
| 18672 | |
| 18673 | |
| 18674 | # See if <sys/lwp.h> defines `struct lwp`. |
| 18675 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
| 18676 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 |
| 18677 | if test "${gdb_cv_struct_lwp+set}" = set; then |
| 18678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18679 | else |
| 18680 | cat >conftest.$ac_ext <<_ACEOF |
| 18681 | /* confdefs.h. */ |
| 18682 | _ACEOF |
| 18683 | cat confdefs.h >>conftest.$ac_ext |
| 18684 | cat >>conftest.$ac_ext <<_ACEOF |
| 18685 | /* end confdefs.h. */ |
| 18686 | #include <sys/param.h> |
| 18687 | #include <sys/lwp.h> |
| 18688 | int |
| 18689 | main () |
| 18690 | { |
| 18691 | struct lwp l; |
| 18692 | ; |
| 18693 | return 0; |
| 18694 | } |
| 18695 | _ACEOF |
| 18696 | rm -f conftest.$ac_objext |
| 18697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18698 | (eval $ac_compile) 2>conftest.er1 |
| 18699 | ac_status=$? |
| 18700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18701 | rm -f conftest.er1 |
| 18702 | cat conftest.err >&5 |
| 18703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18704 | (exit $ac_status); } && |
| 18705 | { ac_try='test -z "$ac_c_werror_flag" |
| 18706 | || test ! -s conftest.err' |
| 18707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18708 | (eval $ac_try) 2>&5 |
| 18709 | ac_status=$? |
| 18710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18711 | (exit $ac_status); }; } && |
| 18712 | { ac_try='test -s conftest.$ac_objext' |
| 18713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18714 | (eval $ac_try) 2>&5 |
| 18715 | ac_status=$? |
| 18716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18717 | (exit $ac_status); }; }; then |
| 18718 | gdb_cv_struct_lwp=yes |
| 18719 | else |
| 18720 | echo "$as_me: failed program was:" >&5 |
| 18721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18722 | |
| 18723 | gdb_cv_struct_lwp=no |
| 18724 | fi |
| 18725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18726 | fi |
| 18727 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
| 18728 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 |
| 18729 | if test $gdb_cv_struct_lwp = yes; then |
| 18730 | |
| 18731 | cat >>confdefs.h <<\_ACEOF |
| 18732 | #define HAVE_STRUCT_LWP 1 |
| 18733 | _ACEOF |
| 18734 | |
| 18735 | fi |
| 18736 | |
| 18737 | # See if <machine/reg.h> degines `struct reg'. |
| 18738 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
| 18739 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 |
| 18740 | if test "${gdb_cv_struct_reg+set}" = set; then |
| 18741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18742 | else |
| 18743 | cat >conftest.$ac_ext <<_ACEOF |
| 18744 | /* confdefs.h. */ |
| 18745 | _ACEOF |
| 18746 | cat confdefs.h >>conftest.$ac_ext |
| 18747 | cat >>conftest.$ac_ext <<_ACEOF |
| 18748 | /* end confdefs.h. */ |
| 18749 | #include <sys/types.h> |
| 18750 | #include <machine/reg.h> |
| 18751 | int |
| 18752 | main () |
| 18753 | { |
| 18754 | struct reg r; |
| 18755 | ; |
| 18756 | return 0; |
| 18757 | } |
| 18758 | _ACEOF |
| 18759 | rm -f conftest.$ac_objext |
| 18760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18761 | (eval $ac_compile) 2>conftest.er1 |
| 18762 | ac_status=$? |
| 18763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18764 | rm -f conftest.er1 |
| 18765 | cat conftest.err >&5 |
| 18766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18767 | (exit $ac_status); } && |
| 18768 | { ac_try='test -z "$ac_c_werror_flag" |
| 18769 | || test ! -s conftest.err' |
| 18770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18771 | (eval $ac_try) 2>&5 |
| 18772 | ac_status=$? |
| 18773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18774 | (exit $ac_status); }; } && |
| 18775 | { ac_try='test -s conftest.$ac_objext' |
| 18776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18777 | (eval $ac_try) 2>&5 |
| 18778 | ac_status=$? |
| 18779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18780 | (exit $ac_status); }; }; then |
| 18781 | gdb_cv_struct_reg=yes |
| 18782 | else |
| 18783 | echo "$as_me: failed program was:" >&5 |
| 18784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18785 | |
| 18786 | gdb_cv_struct_reg=no |
| 18787 | fi |
| 18788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18789 | fi |
| 18790 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
| 18791 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 |
| 18792 | if test $gdb_cv_struct_reg = yes; then |
| 18793 | |
| 18794 | cat >>confdefs.h <<\_ACEOF |
| 18795 | #define HAVE_STRUCT_REG 1 |
| 18796 | _ACEOF |
| 18797 | |
| 18798 | fi |
| 18799 | |
| 18800 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
| 18801 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. |
| 18802 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
| 18803 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 |
| 18804 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
| 18805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18806 | else |
| 18807 | cat >conftest.$ac_ext <<_ACEOF |
| 18808 | /* confdefs.h. */ |
| 18809 | _ACEOF |
| 18810 | cat confdefs.h >>conftest.$ac_ext |
| 18811 | cat >>conftest.$ac_ext <<_ACEOF |
| 18812 | /* end confdefs.h. */ |
| 18813 | #include <machine/reg.h> |
| 18814 | |
| 18815 | int |
| 18816 | main () |
| 18817 | { |
| 18818 | static struct reg ac_aggr; |
| 18819 | if (ac_aggr.r_fs) |
| 18820 | return 0; |
| 18821 | ; |
| 18822 | return 0; |
| 18823 | } |
| 18824 | _ACEOF |
| 18825 | rm -f conftest.$ac_objext |
| 18826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18827 | (eval $ac_compile) 2>conftest.er1 |
| 18828 | ac_status=$? |
| 18829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18830 | rm -f conftest.er1 |
| 18831 | cat conftest.err >&5 |
| 18832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18833 | (exit $ac_status); } && |
| 18834 | { ac_try='test -z "$ac_c_werror_flag" |
| 18835 | || test ! -s conftest.err' |
| 18836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18837 | (eval $ac_try) 2>&5 |
| 18838 | ac_status=$? |
| 18839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18840 | (exit $ac_status); }; } && |
| 18841 | { ac_try='test -s conftest.$ac_objext' |
| 18842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18843 | (eval $ac_try) 2>&5 |
| 18844 | ac_status=$? |
| 18845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18846 | (exit $ac_status); }; }; then |
| 18847 | ac_cv_member_struct_reg_r_fs=yes |
| 18848 | else |
| 18849 | echo "$as_me: failed program was:" >&5 |
| 18850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18851 | |
| 18852 | cat >conftest.$ac_ext <<_ACEOF |
| 18853 | /* confdefs.h. */ |
| 18854 | _ACEOF |
| 18855 | cat confdefs.h >>conftest.$ac_ext |
| 18856 | cat >>conftest.$ac_ext <<_ACEOF |
| 18857 | /* end confdefs.h. */ |
| 18858 | #include <machine/reg.h> |
| 18859 | |
| 18860 | int |
| 18861 | main () |
| 18862 | { |
| 18863 | static struct reg ac_aggr; |
| 18864 | if (sizeof ac_aggr.r_fs) |
| 18865 | return 0; |
| 18866 | ; |
| 18867 | return 0; |
| 18868 | } |
| 18869 | _ACEOF |
| 18870 | rm -f conftest.$ac_objext |
| 18871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18872 | (eval $ac_compile) 2>conftest.er1 |
| 18873 | ac_status=$? |
| 18874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18875 | rm -f conftest.er1 |
| 18876 | cat conftest.err >&5 |
| 18877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18878 | (exit $ac_status); } && |
| 18879 | { ac_try='test -z "$ac_c_werror_flag" |
| 18880 | || test ! -s conftest.err' |
| 18881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18882 | (eval $ac_try) 2>&5 |
| 18883 | ac_status=$? |
| 18884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18885 | (exit $ac_status); }; } && |
| 18886 | { ac_try='test -s conftest.$ac_objext' |
| 18887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18888 | (eval $ac_try) 2>&5 |
| 18889 | ac_status=$? |
| 18890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18891 | (exit $ac_status); }; }; then |
| 18892 | ac_cv_member_struct_reg_r_fs=yes |
| 18893 | else |
| 18894 | echo "$as_me: failed program was:" >&5 |
| 18895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18896 | |
| 18897 | ac_cv_member_struct_reg_r_fs=no |
| 18898 | fi |
| 18899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18900 | fi |
| 18901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18902 | fi |
| 18903 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
| 18904 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 |
| 18905 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
| 18906 | |
| 18907 | cat >>confdefs.h <<_ACEOF |
| 18908 | #define HAVE_STRUCT_REG_R_FS 1 |
| 18909 | _ACEOF |
| 18910 | |
| 18911 | |
| 18912 | fi |
| 18913 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
| 18914 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 |
| 18915 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
| 18916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18917 | else |
| 18918 | cat >conftest.$ac_ext <<_ACEOF |
| 18919 | /* confdefs.h. */ |
| 18920 | _ACEOF |
| 18921 | cat confdefs.h >>conftest.$ac_ext |
| 18922 | cat >>conftest.$ac_ext <<_ACEOF |
| 18923 | /* end confdefs.h. */ |
| 18924 | #include <machine/reg.h> |
| 18925 | |
| 18926 | int |
| 18927 | main () |
| 18928 | { |
| 18929 | static struct reg ac_aggr; |
| 18930 | if (ac_aggr.r_gs) |
| 18931 | return 0; |
| 18932 | ; |
| 18933 | return 0; |
| 18934 | } |
| 18935 | _ACEOF |
| 18936 | rm -f conftest.$ac_objext |
| 18937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18938 | (eval $ac_compile) 2>conftest.er1 |
| 18939 | ac_status=$? |
| 18940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18941 | rm -f conftest.er1 |
| 18942 | cat conftest.err >&5 |
| 18943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18944 | (exit $ac_status); } && |
| 18945 | { ac_try='test -z "$ac_c_werror_flag" |
| 18946 | || test ! -s conftest.err' |
| 18947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18948 | (eval $ac_try) 2>&5 |
| 18949 | ac_status=$? |
| 18950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18951 | (exit $ac_status); }; } && |
| 18952 | { ac_try='test -s conftest.$ac_objext' |
| 18953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18954 | (eval $ac_try) 2>&5 |
| 18955 | ac_status=$? |
| 18956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18957 | (exit $ac_status); }; }; then |
| 18958 | ac_cv_member_struct_reg_r_gs=yes |
| 18959 | else |
| 18960 | echo "$as_me: failed program was:" >&5 |
| 18961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18962 | |
| 18963 | cat >conftest.$ac_ext <<_ACEOF |
| 18964 | /* confdefs.h. */ |
| 18965 | _ACEOF |
| 18966 | cat confdefs.h >>conftest.$ac_ext |
| 18967 | cat >>conftest.$ac_ext <<_ACEOF |
| 18968 | /* end confdefs.h. */ |
| 18969 | #include <machine/reg.h> |
| 18970 | |
| 18971 | int |
| 18972 | main () |
| 18973 | { |
| 18974 | static struct reg ac_aggr; |
| 18975 | if (sizeof ac_aggr.r_gs) |
| 18976 | return 0; |
| 18977 | ; |
| 18978 | return 0; |
| 18979 | } |
| 18980 | _ACEOF |
| 18981 | rm -f conftest.$ac_objext |
| 18982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18983 | (eval $ac_compile) 2>conftest.er1 |
| 18984 | ac_status=$? |
| 18985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18986 | rm -f conftest.er1 |
| 18987 | cat conftest.err >&5 |
| 18988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18989 | (exit $ac_status); } && |
| 18990 | { ac_try='test -z "$ac_c_werror_flag" |
| 18991 | || test ! -s conftest.err' |
| 18992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18993 | (eval $ac_try) 2>&5 |
| 18994 | ac_status=$? |
| 18995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18996 | (exit $ac_status); }; } && |
| 18997 | { ac_try='test -s conftest.$ac_objext' |
| 18998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18999 | (eval $ac_try) 2>&5 |
| 19000 | ac_status=$? |
| 19001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19002 | (exit $ac_status); }; }; then |
| 19003 | ac_cv_member_struct_reg_r_gs=yes |
| 19004 | else |
| 19005 | echo "$as_me: failed program was:" >&5 |
| 19006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19007 | |
| 19008 | ac_cv_member_struct_reg_r_gs=no |
| 19009 | fi |
| 19010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19011 | fi |
| 19012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19013 | fi |
| 19014 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
| 19015 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 |
| 19016 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
| 19017 | |
| 19018 | cat >>confdefs.h <<_ACEOF |
| 19019 | #define HAVE_STRUCT_REG_R_GS 1 |
| 19020 | _ACEOF |
| 19021 | |
| 19022 | |
| 19023 | fi |
| 19024 | |
| 19025 | |
| 19026 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
| 19027 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
| 19028 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 |
| 19029 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
| 19030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19031 | else |
| 19032 | cat >conftest.$ac_ext <<_ACEOF |
| 19033 | /* confdefs.h. */ |
| 19034 | _ACEOF |
| 19035 | cat confdefs.h >>conftest.$ac_ext |
| 19036 | cat >>conftest.$ac_ext <<_ACEOF |
| 19037 | /* end confdefs.h. */ |
| 19038 | #include <sys/ptrace.h> |
| 19039 | int |
| 19040 | main () |
| 19041 | { |
| 19042 | PTRACE_GETREGS; |
| 19043 | ; |
| 19044 | return 0; |
| 19045 | } |
| 19046 | _ACEOF |
| 19047 | rm -f conftest.$ac_objext |
| 19048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19049 | (eval $ac_compile) 2>conftest.er1 |
| 19050 | ac_status=$? |
| 19051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19052 | rm -f conftest.er1 |
| 19053 | cat conftest.err >&5 |
| 19054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19055 | (exit $ac_status); } && |
| 19056 | { ac_try='test -z "$ac_c_werror_flag" |
| 19057 | || test ! -s conftest.err' |
| 19058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19059 | (eval $ac_try) 2>&5 |
| 19060 | ac_status=$? |
| 19061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19062 | (exit $ac_status); }; } && |
| 19063 | { ac_try='test -s conftest.$ac_objext' |
| 19064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19065 | (eval $ac_try) 2>&5 |
| 19066 | ac_status=$? |
| 19067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19068 | (exit $ac_status); }; }; then |
| 19069 | gdb_cv_have_ptrace_getregs=yes |
| 19070 | else |
| 19071 | echo "$as_me: failed program was:" >&5 |
| 19072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19073 | |
| 19074 | gdb_cv_have_ptrace_getregs=no |
| 19075 | fi |
| 19076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19077 | fi |
| 19078 | |
| 19079 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
| 19080 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 |
| 19081 | if test $gdb_cv_have_ptrace_getregs = yes; then |
| 19082 | |
| 19083 | cat >>confdefs.h <<\_ACEOF |
| 19084 | #define HAVE_PTRACE_GETREGS 1 |
| 19085 | _ACEOF |
| 19086 | |
| 19087 | fi |
| 19088 | |
| 19089 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
| 19090 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
| 19091 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 |
| 19092 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
| 19093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19094 | else |
| 19095 | cat >conftest.$ac_ext <<_ACEOF |
| 19096 | /* confdefs.h. */ |
| 19097 | _ACEOF |
| 19098 | cat confdefs.h >>conftest.$ac_ext |
| 19099 | cat >>conftest.$ac_ext <<_ACEOF |
| 19100 | /* end confdefs.h. */ |
| 19101 | #include <sys/ptrace.h> |
| 19102 | int |
| 19103 | main () |
| 19104 | { |
| 19105 | PTRACE_GETFPXREGS; |
| 19106 | ; |
| 19107 | return 0; |
| 19108 | } |
| 19109 | _ACEOF |
| 19110 | rm -f conftest.$ac_objext |
| 19111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19112 | (eval $ac_compile) 2>conftest.er1 |
| 19113 | ac_status=$? |
| 19114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19115 | rm -f conftest.er1 |
| 19116 | cat conftest.err >&5 |
| 19117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19118 | (exit $ac_status); } && |
| 19119 | { ac_try='test -z "$ac_c_werror_flag" |
| 19120 | || test ! -s conftest.err' |
| 19121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19122 | (eval $ac_try) 2>&5 |
| 19123 | ac_status=$? |
| 19124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19125 | (exit $ac_status); }; } && |
| 19126 | { ac_try='test -s conftest.$ac_objext' |
| 19127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19128 | (eval $ac_try) 2>&5 |
| 19129 | ac_status=$? |
| 19130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19131 | (exit $ac_status); }; }; then |
| 19132 | gdb_cv_have_ptrace_getfpxregs=yes |
| 19133 | else |
| 19134 | echo "$as_me: failed program was:" >&5 |
| 19135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19136 | |
| 19137 | gdb_cv_have_ptrace_getfpxregs=no |
| 19138 | fi |
| 19139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19140 | fi |
| 19141 | |
| 19142 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
| 19143 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 |
| 19144 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
| 19145 | |
| 19146 | cat >>confdefs.h <<\_ACEOF |
| 19147 | #define HAVE_PTRACE_GETFPXREGS 1 |
| 19148 | _ACEOF |
| 19149 | |
| 19150 | fi |
| 19151 | |
| 19152 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
| 19153 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
| 19154 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 |
| 19155 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
| 19156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19157 | else |
| 19158 | cat >conftest.$ac_ext <<_ACEOF |
| 19159 | /* confdefs.h. */ |
| 19160 | _ACEOF |
| 19161 | cat confdefs.h >>conftest.$ac_ext |
| 19162 | cat >>conftest.$ac_ext <<_ACEOF |
| 19163 | /* end confdefs.h. */ |
| 19164 | #include <sys/types.h> |
| 19165 | #include <sys/ptrace.h> |
| 19166 | int |
| 19167 | main () |
| 19168 | { |
| 19169 | PT_GETDBREGS; |
| 19170 | ; |
| 19171 | return 0; |
| 19172 | } |
| 19173 | _ACEOF |
| 19174 | rm -f conftest.$ac_objext |
| 19175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19176 | (eval $ac_compile) 2>conftest.er1 |
| 19177 | ac_status=$? |
| 19178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19179 | rm -f conftest.er1 |
| 19180 | cat conftest.err >&5 |
| 19181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19182 | (exit $ac_status); } && |
| 19183 | { ac_try='test -z "$ac_c_werror_flag" |
| 19184 | || test ! -s conftest.err' |
| 19185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19186 | (eval $ac_try) 2>&5 |
| 19187 | ac_status=$? |
| 19188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19189 | (exit $ac_status); }; } && |
| 19190 | { ac_try='test -s conftest.$ac_objext' |
| 19191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19192 | (eval $ac_try) 2>&5 |
| 19193 | ac_status=$? |
| 19194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19195 | (exit $ac_status); }; }; then |
| 19196 | gdb_cv_have_pt_getdbregs=yes |
| 19197 | else |
| 19198 | echo "$as_me: failed program was:" >&5 |
| 19199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19200 | |
| 19201 | gdb_cv_have_pt_getdbregs=no |
| 19202 | fi |
| 19203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19204 | fi |
| 19205 | |
| 19206 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
| 19207 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 |
| 19208 | if test $gdb_cv_have_pt_getdbregs = yes; then |
| 19209 | |
| 19210 | cat >>confdefs.h <<\_ACEOF |
| 19211 | #define HAVE_PT_GETDBREGS 1 |
| 19212 | _ACEOF |
| 19213 | |
| 19214 | fi |
| 19215 | |
| 19216 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
| 19217 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
| 19218 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 |
| 19219 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
| 19220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19221 | else |
| 19222 | cat >conftest.$ac_ext <<_ACEOF |
| 19223 | /* confdefs.h. */ |
| 19224 | _ACEOF |
| 19225 | cat confdefs.h >>conftest.$ac_ext |
| 19226 | cat >>conftest.$ac_ext <<_ACEOF |
| 19227 | /* end confdefs.h. */ |
| 19228 | #include <sys/types.h> |
| 19229 | #include <sys/ptrace.h> |
| 19230 | int |
| 19231 | main () |
| 19232 | { |
| 19233 | PT_GETXMMREGS; |
| 19234 | ; |
| 19235 | return 0; |
| 19236 | } |
| 19237 | _ACEOF |
| 19238 | rm -f conftest.$ac_objext |
| 19239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19240 | (eval $ac_compile) 2>conftest.er1 |
| 19241 | ac_status=$? |
| 19242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19243 | rm -f conftest.er1 |
| 19244 | cat conftest.err >&5 |
| 19245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19246 | (exit $ac_status); } && |
| 19247 | { ac_try='test -z "$ac_c_werror_flag" |
| 19248 | || test ! -s conftest.err' |
| 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); }; } && |
| 19254 | { ac_try='test -s conftest.$ac_objext' |
| 19255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19256 | (eval $ac_try) 2>&5 |
| 19257 | ac_status=$? |
| 19258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19259 | (exit $ac_status); }; }; then |
| 19260 | gdb_cv_have_pt_getxmmregs=yes |
| 19261 | else |
| 19262 | echo "$as_me: failed program was:" >&5 |
| 19263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19264 | |
| 19265 | gdb_cv_have_pt_getxmmregs=no |
| 19266 | fi |
| 19267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19268 | fi |
| 19269 | |
| 19270 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
| 19271 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 |
| 19272 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
| 19273 | |
| 19274 | cat >>confdefs.h <<\_ACEOF |
| 19275 | #define HAVE_PT_GETXMMREGS 1 |
| 19276 | _ACEOF |
| 19277 | |
| 19278 | fi |
| 19279 | |
| 19280 | # Detect which type of /proc is in use, such as for Unixware or Solaris. |
| 19281 | |
| 19282 | if test "${target}" = "${host}"; then |
| 19283 | case "${host}" in |
| 19284 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
| 19285 | |
| 19286 | cat >>confdefs.h <<\_ACEOF |
| 19287 | #define NEW_PROC_API 1 |
| 19288 | _ACEOF |
| 19289 | |
| 19290 | ;; |
| 19291 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]) |
| 19292 | |
| 19293 | cat >>confdefs.h <<\_ACEOF |
| 19294 | #define NEW_PROC_API 1 |
| 19295 | _ACEOF |
| 19296 | |
| 19297 | ;; |
| 19298 | mips-sgi-irix5*) |
| 19299 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. |
| 19300 | |
| 19301 | cat >>confdefs.h <<\_ACEOF |
| 19302 | #define _KMEMUSER 1 |
| 19303 | _ACEOF |
| 19304 | |
| 19305 | ;; |
| 19306 | esac |
| 19307 | fi |
| 19308 | |
| 19309 | if test "$ac_cv_header_sys_procfs_h" = yes; then |
| 19310 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
| 19311 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 |
| 19312 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
| 19313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19314 | else |
| 19315 | cat >conftest.$ac_ext <<_ACEOF |
| 19316 | /* confdefs.h. */ |
| 19317 | _ACEOF |
| 19318 | cat confdefs.h >>conftest.$ac_ext |
| 19319 | cat >>conftest.$ac_ext <<_ACEOF |
| 19320 | /* end confdefs.h. */ |
| 19321 | |
| 19322 | #define _SYSCALL32 |
| 19323 | #include <sys/procfs.h> |
| 19324 | int |
| 19325 | main () |
| 19326 | { |
| 19327 | pstatus_t avar |
| 19328 | ; |
| 19329 | return 0; |
| 19330 | } |
| 19331 | _ACEOF |
| 19332 | rm -f conftest.$ac_objext |
| 19333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19334 | (eval $ac_compile) 2>conftest.er1 |
| 19335 | ac_status=$? |
| 19336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19337 | rm -f conftest.er1 |
| 19338 | cat conftest.err >&5 |
| 19339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19340 | (exit $ac_status); } && |
| 19341 | { ac_try='test -z "$ac_c_werror_flag" |
| 19342 | || test ! -s conftest.err' |
| 19343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19344 | (eval $ac_try) 2>&5 |
| 19345 | ac_status=$? |
| 19346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19347 | (exit $ac_status); }; } && |
| 19348 | { ac_try='test -s conftest.$ac_objext' |
| 19349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19350 | (eval $ac_try) 2>&5 |
| 19351 | ac_status=$? |
| 19352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19353 | (exit $ac_status); }; }; then |
| 19354 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
| 19355 | else |
| 19356 | echo "$as_me: failed program was:" >&5 |
| 19357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19358 | |
| 19359 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
| 19360 | |
| 19361 | fi |
| 19362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19363 | fi |
| 19364 | |
| 19365 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
| 19366 | |
| 19367 | cat >>confdefs.h <<\_ACEOF |
| 19368 | #define HAVE_PSTATUS_T 1 |
| 19369 | _ACEOF |
| 19370 | |
| 19371 | fi |
| 19372 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
| 19373 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 |
| 19374 | |
| 19375 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
| 19376 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 |
| 19377 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
| 19378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19379 | else |
| 19380 | cat >conftest.$ac_ext <<_ACEOF |
| 19381 | /* confdefs.h. */ |
| 19382 | _ACEOF |
| 19383 | cat confdefs.h >>conftest.$ac_ext |
| 19384 | cat >>conftest.$ac_ext <<_ACEOF |
| 19385 | /* end confdefs.h. */ |
| 19386 | |
| 19387 | #define _SYSCALL32 |
| 19388 | #include <sys/procfs.h> |
| 19389 | int |
| 19390 | main () |
| 19391 | { |
| 19392 | prrun_t avar |
| 19393 | ; |
| 19394 | return 0; |
| 19395 | } |
| 19396 | _ACEOF |
| 19397 | rm -f conftest.$ac_objext |
| 19398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19399 | (eval $ac_compile) 2>conftest.er1 |
| 19400 | ac_status=$? |
| 19401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19402 | rm -f conftest.er1 |
| 19403 | cat conftest.err >&5 |
| 19404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19405 | (exit $ac_status); } && |
| 19406 | { ac_try='test -z "$ac_c_werror_flag" |
| 19407 | || test ! -s conftest.err' |
| 19408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19409 | (eval $ac_try) 2>&5 |
| 19410 | ac_status=$? |
| 19411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19412 | (exit $ac_status); }; } && |
| 19413 | { ac_try='test -s conftest.$ac_objext' |
| 19414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19415 | (eval $ac_try) 2>&5 |
| 19416 | ac_status=$? |
| 19417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19418 | (exit $ac_status); }; }; then |
| 19419 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
| 19420 | else |
| 19421 | echo "$as_me: failed program was:" >&5 |
| 19422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19423 | |
| 19424 | bfd_cv_have_sys_procfs_type_prrun_t=no |
| 19425 | |
| 19426 | fi |
| 19427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19428 | fi |
| 19429 | |
| 19430 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
| 19431 | |
| 19432 | cat >>confdefs.h <<\_ACEOF |
| 19433 | #define HAVE_PRRUN_T 1 |
| 19434 | _ACEOF |
| 19435 | |
| 19436 | fi |
| 19437 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
| 19438 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 |
| 19439 | |
| 19440 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
| 19441 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 19442 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
| 19443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19444 | else |
| 19445 | cat >conftest.$ac_ext <<_ACEOF |
| 19446 | /* confdefs.h. */ |
| 19447 | _ACEOF |
| 19448 | cat confdefs.h >>conftest.$ac_ext |
| 19449 | cat >>conftest.$ac_ext <<_ACEOF |
| 19450 | /* end confdefs.h. */ |
| 19451 | |
| 19452 | #define _SYSCALL32 |
| 19453 | #include <sys/procfs.h> |
| 19454 | int |
| 19455 | main () |
| 19456 | { |
| 19457 | gregset_t avar |
| 19458 | ; |
| 19459 | return 0; |
| 19460 | } |
| 19461 | _ACEOF |
| 19462 | rm -f conftest.$ac_objext |
| 19463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19464 | (eval $ac_compile) 2>conftest.er1 |
| 19465 | ac_status=$? |
| 19466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19467 | rm -f conftest.er1 |
| 19468 | cat conftest.err >&5 |
| 19469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19470 | (exit $ac_status); } && |
| 19471 | { ac_try='test -z "$ac_c_werror_flag" |
| 19472 | || test ! -s conftest.err' |
| 19473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19474 | (eval $ac_try) 2>&5 |
| 19475 | ac_status=$? |
| 19476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19477 | (exit $ac_status); }; } && |
| 19478 | { ac_try='test -s conftest.$ac_objext' |
| 19479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19480 | (eval $ac_try) 2>&5 |
| 19481 | ac_status=$? |
| 19482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19483 | (exit $ac_status); }; }; then |
| 19484 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
| 19485 | else |
| 19486 | echo "$as_me: failed program was:" >&5 |
| 19487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19488 | |
| 19489 | bfd_cv_have_sys_procfs_type_gregset_t=no |
| 19490 | |
| 19491 | fi |
| 19492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19493 | fi |
| 19494 | |
| 19495 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
| 19496 | |
| 19497 | cat >>confdefs.h <<\_ACEOF |
| 19498 | #define HAVE_GREGSET_T 1 |
| 19499 | _ACEOF |
| 19500 | |
| 19501 | fi |
| 19502 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
| 19503 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 |
| 19504 | |
| 19505 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
| 19506 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 19507 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
| 19508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19509 | else |
| 19510 | cat >conftest.$ac_ext <<_ACEOF |
| 19511 | /* confdefs.h. */ |
| 19512 | _ACEOF |
| 19513 | cat confdefs.h >>conftest.$ac_ext |
| 19514 | cat >>conftest.$ac_ext <<_ACEOF |
| 19515 | /* end confdefs.h. */ |
| 19516 | |
| 19517 | #define _SYSCALL32 |
| 19518 | #include <sys/procfs.h> |
| 19519 | int |
| 19520 | main () |
| 19521 | { |
| 19522 | fpregset_t avar |
| 19523 | ; |
| 19524 | return 0; |
| 19525 | } |
| 19526 | _ACEOF |
| 19527 | rm -f conftest.$ac_objext |
| 19528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19529 | (eval $ac_compile) 2>conftest.er1 |
| 19530 | ac_status=$? |
| 19531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19532 | rm -f conftest.er1 |
| 19533 | cat conftest.err >&5 |
| 19534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19535 | (exit $ac_status); } && |
| 19536 | { ac_try='test -z "$ac_c_werror_flag" |
| 19537 | || test ! -s conftest.err' |
| 19538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19539 | (eval $ac_try) 2>&5 |
| 19540 | ac_status=$? |
| 19541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19542 | (exit $ac_status); }; } && |
| 19543 | { ac_try='test -s conftest.$ac_objext' |
| 19544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19545 | (eval $ac_try) 2>&5 |
| 19546 | ac_status=$? |
| 19547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19548 | (exit $ac_status); }; }; then |
| 19549 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
| 19550 | else |
| 19551 | echo "$as_me: failed program was:" >&5 |
| 19552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19553 | |
| 19554 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
| 19555 | |
| 19556 | fi |
| 19557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19558 | fi |
| 19559 | |
| 19560 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
| 19561 | |
| 19562 | cat >>confdefs.h <<\_ACEOF |
| 19563 | #define HAVE_FPREGSET_T 1 |
| 19564 | _ACEOF |
| 19565 | |
| 19566 | fi |
| 19567 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
| 19568 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 |
| 19569 | |
| 19570 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
| 19571 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 19572 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
| 19573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19574 | else |
| 19575 | cat >conftest.$ac_ext <<_ACEOF |
| 19576 | /* confdefs.h. */ |
| 19577 | _ACEOF |
| 19578 | cat confdefs.h >>conftest.$ac_ext |
| 19579 | cat >>conftest.$ac_ext <<_ACEOF |
| 19580 | /* end confdefs.h. */ |
| 19581 | |
| 19582 | #define _SYSCALL32 |
| 19583 | #include <sys/procfs.h> |
| 19584 | int |
| 19585 | main () |
| 19586 | { |
| 19587 | prgregset_t avar |
| 19588 | ; |
| 19589 | return 0; |
| 19590 | } |
| 19591 | _ACEOF |
| 19592 | rm -f conftest.$ac_objext |
| 19593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19594 | (eval $ac_compile) 2>conftest.er1 |
| 19595 | ac_status=$? |
| 19596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19597 | rm -f conftest.er1 |
| 19598 | cat conftest.err >&5 |
| 19599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19600 | (exit $ac_status); } && |
| 19601 | { ac_try='test -z "$ac_c_werror_flag" |
| 19602 | || test ! -s conftest.err' |
| 19603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19604 | (eval $ac_try) 2>&5 |
| 19605 | ac_status=$? |
| 19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19607 | (exit $ac_status); }; } && |
| 19608 | { ac_try='test -s conftest.$ac_objext' |
| 19609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19610 | (eval $ac_try) 2>&5 |
| 19611 | ac_status=$? |
| 19612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19613 | (exit $ac_status); }; }; then |
| 19614 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
| 19615 | else |
| 19616 | echo "$as_me: failed program was:" >&5 |
| 19617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19618 | |
| 19619 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
| 19620 | |
| 19621 | fi |
| 19622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19623 | fi |
| 19624 | |
| 19625 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
| 19626 | |
| 19627 | cat >>confdefs.h <<\_ACEOF |
| 19628 | #define HAVE_PRGREGSET_T 1 |
| 19629 | _ACEOF |
| 19630 | |
| 19631 | fi |
| 19632 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
| 19633 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 |
| 19634 | |
| 19635 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
| 19636 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 19637 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
| 19638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19639 | else |
| 19640 | cat >conftest.$ac_ext <<_ACEOF |
| 19641 | /* confdefs.h. */ |
| 19642 | _ACEOF |
| 19643 | cat confdefs.h >>conftest.$ac_ext |
| 19644 | cat >>conftest.$ac_ext <<_ACEOF |
| 19645 | /* end confdefs.h. */ |
| 19646 | |
| 19647 | #define _SYSCALL32 |
| 19648 | #include <sys/procfs.h> |
| 19649 | int |
| 19650 | main () |
| 19651 | { |
| 19652 | prfpregset_t avar |
| 19653 | ; |
| 19654 | return 0; |
| 19655 | } |
| 19656 | _ACEOF |
| 19657 | rm -f conftest.$ac_objext |
| 19658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19659 | (eval $ac_compile) 2>conftest.er1 |
| 19660 | ac_status=$? |
| 19661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19662 | rm -f conftest.er1 |
| 19663 | cat conftest.err >&5 |
| 19664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19665 | (exit $ac_status); } && |
| 19666 | { ac_try='test -z "$ac_c_werror_flag" |
| 19667 | || test ! -s conftest.err' |
| 19668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19669 | (eval $ac_try) 2>&5 |
| 19670 | ac_status=$? |
| 19671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19672 | (exit $ac_status); }; } && |
| 19673 | { ac_try='test -s conftest.$ac_objext' |
| 19674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19675 | (eval $ac_try) 2>&5 |
| 19676 | ac_status=$? |
| 19677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19678 | (exit $ac_status); }; }; then |
| 19679 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
| 19680 | else |
| 19681 | echo "$as_me: failed program was:" >&5 |
| 19682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19683 | |
| 19684 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
| 19685 | |
| 19686 | fi |
| 19687 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19688 | fi |
| 19689 | |
| 19690 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
| 19691 | |
| 19692 | cat >>confdefs.h <<\_ACEOF |
| 19693 | #define HAVE_PRFPREGSET_T 1 |
| 19694 | _ACEOF |
| 19695 | |
| 19696 | fi |
| 19697 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
| 19698 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 |
| 19699 | |
| 19700 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
| 19701 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 |
| 19702 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
| 19703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19704 | else |
| 19705 | cat >conftest.$ac_ext <<_ACEOF |
| 19706 | /* confdefs.h. */ |
| 19707 | _ACEOF |
| 19708 | cat confdefs.h >>conftest.$ac_ext |
| 19709 | cat >>conftest.$ac_ext <<_ACEOF |
| 19710 | /* end confdefs.h. */ |
| 19711 | |
| 19712 | #define _SYSCALL32 |
| 19713 | #include <sys/procfs.h> |
| 19714 | int |
| 19715 | main () |
| 19716 | { |
| 19717 | prgregset32_t avar |
| 19718 | ; |
| 19719 | return 0; |
| 19720 | } |
| 19721 | _ACEOF |
| 19722 | rm -f conftest.$ac_objext |
| 19723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19724 | (eval $ac_compile) 2>conftest.er1 |
| 19725 | ac_status=$? |
| 19726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19727 | rm -f conftest.er1 |
| 19728 | cat conftest.err >&5 |
| 19729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19730 | (exit $ac_status); } && |
| 19731 | { ac_try='test -z "$ac_c_werror_flag" |
| 19732 | || test ! -s conftest.err' |
| 19733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19734 | (eval $ac_try) 2>&5 |
| 19735 | ac_status=$? |
| 19736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19737 | (exit $ac_status); }; } && |
| 19738 | { ac_try='test -s conftest.$ac_objext' |
| 19739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19740 | (eval $ac_try) 2>&5 |
| 19741 | ac_status=$? |
| 19742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19743 | (exit $ac_status); }; }; then |
| 19744 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
| 19745 | else |
| 19746 | echo "$as_me: failed program was:" >&5 |
| 19747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19748 | |
| 19749 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
| 19750 | |
| 19751 | fi |
| 19752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19753 | fi |
| 19754 | |
| 19755 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
| 19756 | |
| 19757 | cat >>confdefs.h <<\_ACEOF |
| 19758 | #define HAVE_PRGREGSET32_T 1 |
| 19759 | _ACEOF |
| 19760 | |
| 19761 | fi |
| 19762 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
| 19763 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 |
| 19764 | |
| 19765 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
| 19766 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 |
| 19767 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
| 19768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19769 | else |
| 19770 | cat >conftest.$ac_ext <<_ACEOF |
| 19771 | /* confdefs.h. */ |
| 19772 | _ACEOF |
| 19773 | cat confdefs.h >>conftest.$ac_ext |
| 19774 | cat >>conftest.$ac_ext <<_ACEOF |
| 19775 | /* end confdefs.h. */ |
| 19776 | |
| 19777 | #define _SYSCALL32 |
| 19778 | #include <sys/procfs.h> |
| 19779 | int |
| 19780 | main () |
| 19781 | { |
| 19782 | prfpregset32_t avar |
| 19783 | ; |
| 19784 | return 0; |
| 19785 | } |
| 19786 | _ACEOF |
| 19787 | rm -f conftest.$ac_objext |
| 19788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19789 | (eval $ac_compile) 2>conftest.er1 |
| 19790 | ac_status=$? |
| 19791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19792 | rm -f conftest.er1 |
| 19793 | cat conftest.err >&5 |
| 19794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19795 | (exit $ac_status); } && |
| 19796 | { ac_try='test -z "$ac_c_werror_flag" |
| 19797 | || test ! -s conftest.err' |
| 19798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19799 | (eval $ac_try) 2>&5 |
| 19800 | ac_status=$? |
| 19801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19802 | (exit $ac_status); }; } && |
| 19803 | { ac_try='test -s conftest.$ac_objext' |
| 19804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19805 | (eval $ac_try) 2>&5 |
| 19806 | ac_status=$? |
| 19807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19808 | (exit $ac_status); }; }; then |
| 19809 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
| 19810 | else |
| 19811 | echo "$as_me: failed program was:" >&5 |
| 19812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19813 | |
| 19814 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
| 19815 | |
| 19816 | fi |
| 19817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19818 | fi |
| 19819 | |
| 19820 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
| 19821 | |
| 19822 | cat >>confdefs.h <<\_ACEOF |
| 19823 | #define HAVE_PRFPREGSET32_T 1 |
| 19824 | _ACEOF |
| 19825 | |
| 19826 | fi |
| 19827 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
| 19828 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 |
| 19829 | |
| 19830 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
| 19831 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 |
| 19832 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
| 19833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19834 | else |
| 19835 | cat >conftest.$ac_ext <<_ACEOF |
| 19836 | /* confdefs.h. */ |
| 19837 | _ACEOF |
| 19838 | cat confdefs.h >>conftest.$ac_ext |
| 19839 | cat >>conftest.$ac_ext <<_ACEOF |
| 19840 | /* end confdefs.h. */ |
| 19841 | |
| 19842 | #define _SYSCALL32 |
| 19843 | #include <sys/procfs.h> |
| 19844 | int |
| 19845 | main () |
| 19846 | { |
| 19847 | lwpid_t avar |
| 19848 | ; |
| 19849 | return 0; |
| 19850 | } |
| 19851 | _ACEOF |
| 19852 | rm -f conftest.$ac_objext |
| 19853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19854 | (eval $ac_compile) 2>conftest.er1 |
| 19855 | ac_status=$? |
| 19856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19857 | rm -f conftest.er1 |
| 19858 | cat conftest.err >&5 |
| 19859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19860 | (exit $ac_status); } && |
| 19861 | { ac_try='test -z "$ac_c_werror_flag" |
| 19862 | || test ! -s conftest.err' |
| 19863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19864 | (eval $ac_try) 2>&5 |
| 19865 | ac_status=$? |
| 19866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19867 | (exit $ac_status); }; } && |
| 19868 | { ac_try='test -s conftest.$ac_objext' |
| 19869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19870 | (eval $ac_try) 2>&5 |
| 19871 | ac_status=$? |
| 19872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19873 | (exit $ac_status); }; }; then |
| 19874 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
| 19875 | else |
| 19876 | echo "$as_me: failed program was:" >&5 |
| 19877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19878 | |
| 19879 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
| 19880 | |
| 19881 | fi |
| 19882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19883 | fi |
| 19884 | |
| 19885 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
| 19886 | |
| 19887 | cat >>confdefs.h <<\_ACEOF |
| 19888 | #define HAVE_LWPID_T 1 |
| 19889 | _ACEOF |
| 19890 | |
| 19891 | fi |
| 19892 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
| 19893 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 |
| 19894 | |
| 19895 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
| 19896 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 |
| 19897 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
| 19898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19899 | else |
| 19900 | cat >conftest.$ac_ext <<_ACEOF |
| 19901 | /* confdefs.h. */ |
| 19902 | _ACEOF |
| 19903 | cat confdefs.h >>conftest.$ac_ext |
| 19904 | cat >>conftest.$ac_ext <<_ACEOF |
| 19905 | /* end confdefs.h. */ |
| 19906 | |
| 19907 | #define _SYSCALL32 |
| 19908 | #include <sys/procfs.h> |
| 19909 | int |
| 19910 | main () |
| 19911 | { |
| 19912 | psaddr_t avar |
| 19913 | ; |
| 19914 | return 0; |
| 19915 | } |
| 19916 | _ACEOF |
| 19917 | rm -f conftest.$ac_objext |
| 19918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19919 | (eval $ac_compile) 2>conftest.er1 |
| 19920 | ac_status=$? |
| 19921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19922 | rm -f conftest.er1 |
| 19923 | cat conftest.err >&5 |
| 19924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19925 | (exit $ac_status); } && |
| 19926 | { ac_try='test -z "$ac_c_werror_flag" |
| 19927 | || test ! -s conftest.err' |
| 19928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19929 | (eval $ac_try) 2>&5 |
| 19930 | ac_status=$? |
| 19931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19932 | (exit $ac_status); }; } && |
| 19933 | { ac_try='test -s conftest.$ac_objext' |
| 19934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19935 | (eval $ac_try) 2>&5 |
| 19936 | ac_status=$? |
| 19937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19938 | (exit $ac_status); }; }; then |
| 19939 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
| 19940 | else |
| 19941 | echo "$as_me: failed program was:" >&5 |
| 19942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19943 | |
| 19944 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
| 19945 | |
| 19946 | fi |
| 19947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19948 | fi |
| 19949 | |
| 19950 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
| 19951 | |
| 19952 | cat >>confdefs.h <<\_ACEOF |
| 19953 | #define HAVE_PSADDR_T 1 |
| 19954 | _ACEOF |
| 19955 | |
| 19956 | fi |
| 19957 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
| 19958 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 |
| 19959 | |
| 19960 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
| 19961 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 |
| 19962 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
| 19963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19964 | else |
| 19965 | cat >conftest.$ac_ext <<_ACEOF |
| 19966 | /* confdefs.h. */ |
| 19967 | _ACEOF |
| 19968 | cat confdefs.h >>conftest.$ac_ext |
| 19969 | cat >>conftest.$ac_ext <<_ACEOF |
| 19970 | /* end confdefs.h. */ |
| 19971 | |
| 19972 | #define _SYSCALL32 |
| 19973 | #include <sys/procfs.h> |
| 19974 | int |
| 19975 | main () |
| 19976 | { |
| 19977 | prsysent_t avar |
| 19978 | ; |
| 19979 | return 0; |
| 19980 | } |
| 19981 | _ACEOF |
| 19982 | rm -f conftest.$ac_objext |
| 19983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19984 | (eval $ac_compile) 2>conftest.er1 |
| 19985 | ac_status=$? |
| 19986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19987 | rm -f conftest.er1 |
| 19988 | cat conftest.err >&5 |
| 19989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19990 | (exit $ac_status); } && |
| 19991 | { ac_try='test -z "$ac_c_werror_flag" |
| 19992 | || test ! -s conftest.err' |
| 19993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19994 | (eval $ac_try) 2>&5 |
| 19995 | ac_status=$? |
| 19996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19997 | (exit $ac_status); }; } && |
| 19998 | { ac_try='test -s conftest.$ac_objext' |
| 19999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20000 | (eval $ac_try) 2>&5 |
| 20001 | ac_status=$? |
| 20002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20003 | (exit $ac_status); }; }; then |
| 20004 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
| 20005 | else |
| 20006 | echo "$as_me: failed program was:" >&5 |
| 20007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20008 | |
| 20009 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
| 20010 | |
| 20011 | fi |
| 20012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20013 | fi |
| 20014 | |
| 20015 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
| 20016 | |
| 20017 | cat >>confdefs.h <<\_ACEOF |
| 20018 | #define HAVE_PRSYSENT_T 1 |
| 20019 | _ACEOF |
| 20020 | |
| 20021 | fi |
| 20022 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
| 20023 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 |
| 20024 | |
| 20025 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
| 20026 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 |
| 20027 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
| 20028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20029 | else |
| 20030 | cat >conftest.$ac_ext <<_ACEOF |
| 20031 | /* confdefs.h. */ |
| 20032 | _ACEOF |
| 20033 | cat confdefs.h >>conftest.$ac_ext |
| 20034 | cat >>conftest.$ac_ext <<_ACEOF |
| 20035 | /* end confdefs.h. */ |
| 20036 | |
| 20037 | #define _SYSCALL32 |
| 20038 | #include <sys/procfs.h> |
| 20039 | int |
| 20040 | main () |
| 20041 | { |
| 20042 | pr_sigset_t avar |
| 20043 | ; |
| 20044 | return 0; |
| 20045 | } |
| 20046 | _ACEOF |
| 20047 | rm -f conftest.$ac_objext |
| 20048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20049 | (eval $ac_compile) 2>conftest.er1 |
| 20050 | ac_status=$? |
| 20051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20052 | rm -f conftest.er1 |
| 20053 | cat conftest.err >&5 |
| 20054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20055 | (exit $ac_status); } && |
| 20056 | { ac_try='test -z "$ac_c_werror_flag" |
| 20057 | || test ! -s conftest.err' |
| 20058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20059 | (eval $ac_try) 2>&5 |
| 20060 | ac_status=$? |
| 20061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20062 | (exit $ac_status); }; } && |
| 20063 | { ac_try='test -s conftest.$ac_objext' |
| 20064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20065 | (eval $ac_try) 2>&5 |
| 20066 | ac_status=$? |
| 20067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20068 | (exit $ac_status); }; }; then |
| 20069 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
| 20070 | else |
| 20071 | echo "$as_me: failed program was:" >&5 |
| 20072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20073 | |
| 20074 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
| 20075 | |
| 20076 | fi |
| 20077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20078 | fi |
| 20079 | |
| 20080 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
| 20081 | |
| 20082 | cat >>confdefs.h <<\_ACEOF |
| 20083 | #define HAVE_PR_SIGSET_T 1 |
| 20084 | _ACEOF |
| 20085 | |
| 20086 | fi |
| 20087 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
| 20088 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 |
| 20089 | |
| 20090 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
| 20091 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 |
| 20092 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
| 20093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20094 | else |
| 20095 | cat >conftest.$ac_ext <<_ACEOF |
| 20096 | /* confdefs.h. */ |
| 20097 | _ACEOF |
| 20098 | cat confdefs.h >>conftest.$ac_ext |
| 20099 | cat >>conftest.$ac_ext <<_ACEOF |
| 20100 | /* end confdefs.h. */ |
| 20101 | |
| 20102 | #define _SYSCALL32 |
| 20103 | #include <sys/procfs.h> |
| 20104 | int |
| 20105 | main () |
| 20106 | { |
| 20107 | pr_sigaction64_t avar |
| 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 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
| 20135 | else |
| 20136 | echo "$as_me: failed program was:" >&5 |
| 20137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20138 | |
| 20139 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
| 20140 | |
| 20141 | fi |
| 20142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20143 | fi |
| 20144 | |
| 20145 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
| 20146 | |
| 20147 | cat >>confdefs.h <<\_ACEOF |
| 20148 | #define HAVE_PR_SIGACTION64_T 1 |
| 20149 | _ACEOF |
| 20150 | |
| 20151 | fi |
| 20152 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
| 20153 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 |
| 20154 | |
| 20155 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
| 20156 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 |
| 20157 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
| 20158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20159 | else |
| 20160 | cat >conftest.$ac_ext <<_ACEOF |
| 20161 | /* confdefs.h. */ |
| 20162 | _ACEOF |
| 20163 | cat confdefs.h >>conftest.$ac_ext |
| 20164 | cat >>conftest.$ac_ext <<_ACEOF |
| 20165 | /* end confdefs.h. */ |
| 20166 | |
| 20167 | #define _SYSCALL32 |
| 20168 | #include <sys/procfs.h> |
| 20169 | int |
| 20170 | main () |
| 20171 | { |
| 20172 | pr_siginfo64_t avar |
| 20173 | ; |
| 20174 | return 0; |
| 20175 | } |
| 20176 | _ACEOF |
| 20177 | rm -f conftest.$ac_objext |
| 20178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20179 | (eval $ac_compile) 2>conftest.er1 |
| 20180 | ac_status=$? |
| 20181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20182 | rm -f conftest.er1 |
| 20183 | cat conftest.err >&5 |
| 20184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20185 | (exit $ac_status); } && |
| 20186 | { ac_try='test -z "$ac_c_werror_flag" |
| 20187 | || test ! -s conftest.err' |
| 20188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20189 | (eval $ac_try) 2>&5 |
| 20190 | ac_status=$? |
| 20191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20192 | (exit $ac_status); }; } && |
| 20193 | { ac_try='test -s conftest.$ac_objext' |
| 20194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20195 | (eval $ac_try) 2>&5 |
| 20196 | ac_status=$? |
| 20197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20198 | (exit $ac_status); }; }; then |
| 20199 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
| 20200 | else |
| 20201 | echo "$as_me: failed program was:" >&5 |
| 20202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20203 | |
| 20204 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
| 20205 | |
| 20206 | fi |
| 20207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20208 | fi |
| 20209 | |
| 20210 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
| 20211 | |
| 20212 | cat >>confdefs.h <<\_ACEOF |
| 20213 | #define HAVE_PR_SIGINFO64_T 1 |
| 20214 | _ACEOF |
| 20215 | |
| 20216 | fi |
| 20217 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
| 20218 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 |
| 20219 | |
| 20220 | |
| 20221 | |
| 20222 | |
| 20223 | |
| 20224 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
| 20225 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
| 20226 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 |
| 20227 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
| 20228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20229 | else |
| 20230 | if test "$cross_compiling" = yes; then |
| 20231 | gdb_cv_prfpregset_t_broken=yes |
| 20232 | else |
| 20233 | cat >conftest.$ac_ext <<_ACEOF |
| 20234 | /* confdefs.h. */ |
| 20235 | _ACEOF |
| 20236 | cat confdefs.h >>conftest.$ac_ext |
| 20237 | cat >>conftest.$ac_ext <<_ACEOF |
| 20238 | /* end confdefs.h. */ |
| 20239 | #include <sys/procfs.h> |
| 20240 | int main () |
| 20241 | { |
| 20242 | if (sizeof (prfpregset_t) == sizeof (void *)) |
| 20243 | return 1; |
| 20244 | return 0; |
| 20245 | } |
| 20246 | _ACEOF |
| 20247 | rm -f conftest$ac_exeext |
| 20248 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20249 | (eval $ac_link) 2>&5 |
| 20250 | ac_status=$? |
| 20251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20252 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20254 | (eval $ac_try) 2>&5 |
| 20255 | ac_status=$? |
| 20256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20257 | (exit $ac_status); }; }; then |
| 20258 | gdb_cv_prfpregset_t_broken=no |
| 20259 | else |
| 20260 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20261 | echo "$as_me: failed program was:" >&5 |
| 20262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20263 | |
| 20264 | ( exit $ac_status ) |
| 20265 | gdb_cv_prfpregset_t_broken=yes |
| 20266 | fi |
| 20267 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 20268 | fi |
| 20269 | fi |
| 20270 | |
| 20271 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
| 20272 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 |
| 20273 | if test $gdb_cv_prfpregset_t_broken = yes; then |
| 20274 | |
| 20275 | cat >>confdefs.h <<\_ACEOF |
| 20276 | #define PRFPREGSET_T_BROKEN 1 |
| 20277 | _ACEOF |
| 20278 | |
| 20279 | fi |
| 20280 | fi |
| 20281 | |
| 20282 | |
| 20283 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
| 20284 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 |
| 20285 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
| 20286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20287 | else |
| 20288 | cat >conftest.$ac_ext <<_ACEOF |
| 20289 | /* confdefs.h. */ |
| 20290 | _ACEOF |
| 20291 | cat confdefs.h >>conftest.$ac_ext |
| 20292 | cat >>conftest.$ac_ext <<_ACEOF |
| 20293 | /* end confdefs.h. */ |
| 20294 | #include <unistd.h> |
| 20295 | #include <sys/types.h> |
| 20296 | #include <sys/procfs.h> |
| 20297 | |
| 20298 | int |
| 20299 | main () |
| 20300 | { |
| 20301 | |
| 20302 | int dummy;; |
| 20303 | dummy = ioctl(0, PIOCSET, &dummy); |
| 20304 | |
| 20305 | ; |
| 20306 | return 0; |
| 20307 | } |
| 20308 | _ACEOF |
| 20309 | rm -f conftest.$ac_objext |
| 20310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20311 | (eval $ac_compile) 2>conftest.er1 |
| 20312 | ac_status=$? |
| 20313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20314 | rm -f conftest.er1 |
| 20315 | cat conftest.err >&5 |
| 20316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20317 | (exit $ac_status); } && |
| 20318 | { ac_try='test -z "$ac_c_werror_flag" |
| 20319 | || test ! -s conftest.err' |
| 20320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20321 | (eval $ac_try) 2>&5 |
| 20322 | ac_status=$? |
| 20323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20324 | (exit $ac_status); }; } && |
| 20325 | { ac_try='test -s conftest.$ac_objext' |
| 20326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20327 | (eval $ac_try) 2>&5 |
| 20328 | ac_status=$? |
| 20329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20330 | (exit $ac_status); }; }; then |
| 20331 | gdb_cv_have_procfs_piocset=yes |
| 20332 | else |
| 20333 | echo "$as_me: failed program was:" >&5 |
| 20334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20335 | |
| 20336 | gdb_cv_have_procfs_piocset=no |
| 20337 | fi |
| 20338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20339 | fi |
| 20340 | |
| 20341 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
| 20342 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 |
| 20343 | if test $gdb_cv_have_procfs_piocset = yes; then |
| 20344 | |
| 20345 | cat >>confdefs.h <<\_ACEOF |
| 20346 | #define HAVE_PROCFS_PIOCSET 1 |
| 20347 | _ACEOF |
| 20348 | |
| 20349 | fi |
| 20350 | fi |
| 20351 | |
| 20352 | if test ${host} = ${target} ; then |
| 20353 | |
| 20354 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
| 20355 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 |
| 20356 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
| 20357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20358 | else |
| 20359 | cat >conftest.$ac_ext <<_ACEOF |
| 20360 | /* confdefs.h. */ |
| 20361 | _ACEOF |
| 20362 | cat confdefs.h >>conftest.$ac_ext |
| 20363 | cat >>conftest.$ac_ext <<_ACEOF |
| 20364 | /* end confdefs.h. */ |
| 20365 | #include <link.h> |
| 20366 | int |
| 20367 | main () |
| 20368 | { |
| 20369 | struct link_map lm; (void) lm.l_addr; |
| 20370 | ; |
| 20371 | return 0; |
| 20372 | } |
| 20373 | _ACEOF |
| 20374 | rm -f conftest.$ac_objext |
| 20375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20376 | (eval $ac_compile) 2>conftest.er1 |
| 20377 | ac_status=$? |
| 20378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20379 | rm -f conftest.er1 |
| 20380 | cat conftest.err >&5 |
| 20381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20382 | (exit $ac_status); } && |
| 20383 | { ac_try='test -z "$ac_c_werror_flag" |
| 20384 | || test ! -s conftest.err' |
| 20385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20386 | (eval $ac_try) 2>&5 |
| 20387 | ac_status=$? |
| 20388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20389 | (exit $ac_status); }; } && |
| 20390 | { ac_try='test -s conftest.$ac_objext' |
| 20391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20392 | (eval $ac_try) 2>&5 |
| 20393 | ac_status=$? |
| 20394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20395 | (exit $ac_status); }; }; then |
| 20396 | gdb_cv_have_struct_link_map_with_l_members=yes |
| 20397 | else |
| 20398 | echo "$as_me: failed program was:" >&5 |
| 20399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20400 | |
| 20401 | gdb_cv_have_struct_link_map_with_l_members=no |
| 20402 | fi |
| 20403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20404 | fi |
| 20405 | |
| 20406 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
| 20407 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 |
| 20408 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
| 20409 | |
| 20410 | cat >>confdefs.h <<\_ACEOF |
| 20411 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
| 20412 | _ACEOF |
| 20413 | |
| 20414 | fi |
| 20415 | |
| 20416 | |
| 20417 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
| 20418 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 |
| 20419 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
| 20420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20421 | else |
| 20422 | cat >conftest.$ac_ext <<_ACEOF |
| 20423 | /* confdefs.h. */ |
| 20424 | _ACEOF |
| 20425 | cat confdefs.h >>conftest.$ac_ext |
| 20426 | cat >>conftest.$ac_ext <<_ACEOF |
| 20427 | /* end confdefs.h. */ |
| 20428 | #include <sys/types.h> |
| 20429 | #include <link.h> |
| 20430 | int |
| 20431 | main () |
| 20432 | { |
| 20433 | struct link_map lm; (void) lm.lm_addr; |
| 20434 | ; |
| 20435 | return 0; |
| 20436 | } |
| 20437 | _ACEOF |
| 20438 | rm -f conftest.$ac_objext |
| 20439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20440 | (eval $ac_compile) 2>conftest.er1 |
| 20441 | ac_status=$? |
| 20442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20443 | rm -f conftest.er1 |
| 20444 | cat conftest.err >&5 |
| 20445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20446 | (exit $ac_status); } && |
| 20447 | { ac_try='test -z "$ac_c_werror_flag" |
| 20448 | || test ! -s conftest.err' |
| 20449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20450 | (eval $ac_try) 2>&5 |
| 20451 | ac_status=$? |
| 20452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20453 | (exit $ac_status); }; } && |
| 20454 | { ac_try='test -s conftest.$ac_objext' |
| 20455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20456 | (eval $ac_try) 2>&5 |
| 20457 | ac_status=$? |
| 20458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20459 | (exit $ac_status); }; }; then |
| 20460 | gdb_cv_have_struct_link_map_with_lm_members=yes |
| 20461 | else |
| 20462 | echo "$as_me: failed program was:" >&5 |
| 20463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20464 | |
| 20465 | gdb_cv_have_struct_link_map_with_lm_members=no |
| 20466 | fi |
| 20467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20468 | fi |
| 20469 | |
| 20470 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
| 20471 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 |
| 20472 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
| 20473 | |
| 20474 | cat >>confdefs.h <<\_ACEOF |
| 20475 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
| 20476 | _ACEOF |
| 20477 | |
| 20478 | fi |
| 20479 | |
| 20480 | |
| 20481 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
| 20482 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 |
| 20483 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
| 20484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20485 | else |
| 20486 | cat >conftest.$ac_ext <<_ACEOF |
| 20487 | /* confdefs.h. */ |
| 20488 | _ACEOF |
| 20489 | cat confdefs.h >>conftest.$ac_ext |
| 20490 | cat >>conftest.$ac_ext <<_ACEOF |
| 20491 | /* end confdefs.h. */ |
| 20492 | #include <sys/types.h> |
| 20493 | #ifdef HAVE_NLIST_H |
| 20494 | #include <nlist.h> |
| 20495 | #endif |
| 20496 | #include <link.h> |
| 20497 | int |
| 20498 | main () |
| 20499 | { |
| 20500 | struct so_map lm; (void) lm.som_addr; |
| 20501 | ; |
| 20502 | return 0; |
| 20503 | } |
| 20504 | _ACEOF |
| 20505 | rm -f conftest.$ac_objext |
| 20506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20507 | (eval $ac_compile) 2>conftest.er1 |
| 20508 | ac_status=$? |
| 20509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20510 | rm -f conftest.er1 |
| 20511 | cat conftest.err >&5 |
| 20512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20513 | (exit $ac_status); } && |
| 20514 | { ac_try='test -z "$ac_c_werror_flag" |
| 20515 | || test ! -s conftest.err' |
| 20516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20517 | (eval $ac_try) 2>&5 |
| 20518 | ac_status=$? |
| 20519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20520 | (exit $ac_status); }; } && |
| 20521 | { ac_try='test -s conftest.$ac_objext' |
| 20522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20523 | (eval $ac_try) 2>&5 |
| 20524 | ac_status=$? |
| 20525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20526 | (exit $ac_status); }; }; then |
| 20527 | gdb_cv_have_struct_so_map_with_som_members=yes |
| 20528 | else |
| 20529 | echo "$as_me: failed program was:" >&5 |
| 20530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20531 | |
| 20532 | gdb_cv_have_struct_so_map_with_som_members=no |
| 20533 | fi |
| 20534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20535 | fi |
| 20536 | |
| 20537 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
| 20538 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 |
| 20539 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
| 20540 | |
| 20541 | cat >>confdefs.h <<\_ACEOF |
| 20542 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
| 20543 | _ACEOF |
| 20544 | |
| 20545 | fi |
| 20546 | |
| 20547 | |
| 20548 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
| 20549 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 |
| 20550 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
| 20551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20552 | else |
| 20553 | cat >conftest.$ac_ext <<_ACEOF |
| 20554 | /* confdefs.h. */ |
| 20555 | _ACEOF |
| 20556 | cat confdefs.h >>conftest.$ac_ext |
| 20557 | cat >>conftest.$ac_ext <<_ACEOF |
| 20558 | /* end confdefs.h. */ |
| 20559 | #define _SYSCALL32 |
| 20560 | #include <sys/link.h> |
| 20561 | int |
| 20562 | main () |
| 20563 | { |
| 20564 | struct link_map32 l; |
| 20565 | ; |
| 20566 | return 0; |
| 20567 | } |
| 20568 | _ACEOF |
| 20569 | rm -f conftest.$ac_objext |
| 20570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20571 | (eval $ac_compile) 2>conftest.er1 |
| 20572 | ac_status=$? |
| 20573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20574 | rm -f conftest.er1 |
| 20575 | cat conftest.err >&5 |
| 20576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20577 | (exit $ac_status); } && |
| 20578 | { ac_try='test -z "$ac_c_werror_flag" |
| 20579 | || test ! -s conftest.err' |
| 20580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20581 | (eval $ac_try) 2>&5 |
| 20582 | ac_status=$? |
| 20583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20584 | (exit $ac_status); }; } && |
| 20585 | { ac_try='test -s conftest.$ac_objext' |
| 20586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20587 | (eval $ac_try) 2>&5 |
| 20588 | ac_status=$? |
| 20589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20590 | (exit $ac_status); }; }; then |
| 20591 | gdb_cv_have_struct_link_map32=yes |
| 20592 | else |
| 20593 | echo "$as_me: failed program was:" >&5 |
| 20594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20595 | |
| 20596 | gdb_cv_have_struct_link_map32=no |
| 20597 | fi |
| 20598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20599 | fi |
| 20600 | |
| 20601 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
| 20602 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 |
| 20603 | if test $gdb_cv_have_struct_link_map32 = yes; then |
| 20604 | |
| 20605 | cat >>confdefs.h <<\_ACEOF |
| 20606 | #define HAVE_STRUCT_LINK_MAP32 1 |
| 20607 | _ACEOF |
| 20608 | |
| 20609 | |
| 20610 | cat >>confdefs.h <<\_ACEOF |
| 20611 | #define _SYSCALL32 1 |
| 20612 | _ACEOF |
| 20613 | |
| 20614 | fi |
| 20615 | fi |
| 20616 | |
| 20617 | # Check if the compiler supports the `long long' type. |
| 20618 | |
| 20619 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
| 20620 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 |
| 20621 | if test "${gdb_cv_c_long_long+set}" = set; then |
| 20622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20623 | else |
| 20624 | cat >conftest.$ac_ext <<_ACEOF |
| 20625 | /* confdefs.h. */ |
| 20626 | _ACEOF |
| 20627 | cat confdefs.h >>conftest.$ac_ext |
| 20628 | cat >>conftest.$ac_ext <<_ACEOF |
| 20629 | /* end confdefs.h. */ |
| 20630 | extern long long foo; |
| 20631 | int |
| 20632 | main () |
| 20633 | { |
| 20634 | switch (foo & 2) { case 0: return 1; } |
| 20635 | ; |
| 20636 | return 0; |
| 20637 | } |
| 20638 | _ACEOF |
| 20639 | rm -f conftest.$ac_objext |
| 20640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20641 | (eval $ac_compile) 2>conftest.er1 |
| 20642 | ac_status=$? |
| 20643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20644 | rm -f conftest.er1 |
| 20645 | cat conftest.err >&5 |
| 20646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20647 | (exit $ac_status); } && |
| 20648 | { ac_try='test -z "$ac_c_werror_flag" |
| 20649 | || test ! -s conftest.err' |
| 20650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20651 | (eval $ac_try) 2>&5 |
| 20652 | ac_status=$? |
| 20653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20654 | (exit $ac_status); }; } && |
| 20655 | { ac_try='test -s conftest.$ac_objext' |
| 20656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20657 | (eval $ac_try) 2>&5 |
| 20658 | ac_status=$? |
| 20659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20660 | (exit $ac_status); }; }; then |
| 20661 | gdb_cv_c_long_long=yes |
| 20662 | else |
| 20663 | echo "$as_me: failed program was:" >&5 |
| 20664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20665 | |
| 20666 | gdb_cv_c_long_long=no |
| 20667 | fi |
| 20668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20669 | fi |
| 20670 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
| 20671 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 |
| 20672 | if test $gdb_cv_c_long_long = yes; then |
| 20673 | |
| 20674 | cat >>confdefs.h <<\_ACEOF |
| 20675 | #define CC_HAS_LONG_LONG 1 |
| 20676 | _ACEOF |
| 20677 | |
| 20678 | fi |
| 20679 | |
| 20680 | # Check if the compiler and runtime support printing long longs. |
| 20681 | |
| 20682 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
| 20683 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 |
| 20684 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
| 20685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20686 | else |
| 20687 | if test "$cross_compiling" = yes; then |
| 20688 | gdb_cv_printf_has_long_long=no |
| 20689 | else |
| 20690 | cat >conftest.$ac_ext <<_ACEOF |
| 20691 | /* confdefs.h. */ |
| 20692 | _ACEOF |
| 20693 | cat confdefs.h >>conftest.$ac_ext |
| 20694 | cat >>conftest.$ac_ext <<_ACEOF |
| 20695 | /* end confdefs.h. */ |
| 20696 | $ac_includes_default |
| 20697 | int |
| 20698 | main () |
| 20699 | { |
| 20700 | char buf[32]; |
| 20701 | long long l = 0; |
| 20702 | l = (l << 16) + 0x0123; |
| 20703 | l = (l << 16) + 0x4567; |
| 20704 | l = (l << 16) + 0x89ab; |
| 20705 | l = (l << 16) + 0xcdef; |
| 20706 | sprintf (buf, "0x%016llx", l); |
| 20707 | return (strcmp ("0x0123456789abcdef", buf)); |
| 20708 | ; |
| 20709 | return 0; |
| 20710 | } |
| 20711 | _ACEOF |
| 20712 | rm -f conftest$ac_exeext |
| 20713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20714 | (eval $ac_link) 2>&5 |
| 20715 | ac_status=$? |
| 20716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20717 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20719 | (eval $ac_try) 2>&5 |
| 20720 | ac_status=$? |
| 20721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20722 | (exit $ac_status); }; }; then |
| 20723 | gdb_cv_printf_has_long_long=yes |
| 20724 | else |
| 20725 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20726 | echo "$as_me: failed program was:" >&5 |
| 20727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20728 | |
| 20729 | ( exit $ac_status ) |
| 20730 | gdb_cv_printf_has_long_long=no |
| 20731 | fi |
| 20732 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 20733 | fi |
| 20734 | fi |
| 20735 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
| 20736 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 |
| 20737 | if test $gdb_cv_printf_has_long_long = yes; then |
| 20738 | |
| 20739 | cat >>confdefs.h <<\_ACEOF |
| 20740 | #define PRINTF_HAS_LONG_LONG 1 |
| 20741 | _ACEOF |
| 20742 | |
| 20743 | fi |
| 20744 | |
| 20745 | # Check if the compiler supports the `long double' type. We can't use |
| 20746 | # AC_C_LONG_DOUBLE because that one does additional checks on the |
| 20747 | # constants defined in <float.h> that fail on some systems, |
| 20748 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. |
| 20749 | |
| 20750 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
| 20751 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 |
| 20752 | if test "${gdb_cv_c_long_double+set}" = set; then |
| 20753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20754 | else |
| 20755 | cat >conftest.$ac_ext <<_ACEOF |
| 20756 | /* confdefs.h. */ |
| 20757 | _ACEOF |
| 20758 | cat confdefs.h >>conftest.$ac_ext |
| 20759 | cat >>conftest.$ac_ext <<_ACEOF |
| 20760 | /* end confdefs.h. */ |
| 20761 | long double foo; |
| 20762 | _ACEOF |
| 20763 | rm -f conftest.$ac_objext |
| 20764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20765 | (eval $ac_compile) 2>conftest.er1 |
| 20766 | ac_status=$? |
| 20767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20768 | rm -f conftest.er1 |
| 20769 | cat conftest.err >&5 |
| 20770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20771 | (exit $ac_status); } && |
| 20772 | { ac_try='test -z "$ac_c_werror_flag" |
| 20773 | || test ! -s conftest.err' |
| 20774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20775 | (eval $ac_try) 2>&5 |
| 20776 | ac_status=$? |
| 20777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20778 | (exit $ac_status); }; } && |
| 20779 | { ac_try='test -s conftest.$ac_objext' |
| 20780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20781 | (eval $ac_try) 2>&5 |
| 20782 | ac_status=$? |
| 20783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20784 | (exit $ac_status); }; }; then |
| 20785 | gdb_cv_c_long_double=yes |
| 20786 | else |
| 20787 | echo "$as_me: failed program was:" >&5 |
| 20788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20789 | |
| 20790 | gdb_cv_c_long_double=no |
| 20791 | fi |
| 20792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20793 | fi |
| 20794 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
| 20795 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 |
| 20796 | if test $gdb_cv_c_long_double = yes; then |
| 20797 | |
| 20798 | cat >>confdefs.h <<\_ACEOF |
| 20799 | #define HAVE_LONG_DOUBLE 1 |
| 20800 | _ACEOF |
| 20801 | |
| 20802 | fi |
| 20803 | |
| 20804 | # Check if the compiler and runtime support printing long doubles. |
| 20805 | |
| 20806 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
| 20807 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 |
| 20808 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
| 20809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20810 | else |
| 20811 | if test "$cross_compiling" = yes; then |
| 20812 | gdb_cv_printf_has_long_double=no |
| 20813 | else |
| 20814 | cat >conftest.$ac_ext <<_ACEOF |
| 20815 | /* confdefs.h. */ |
| 20816 | _ACEOF |
| 20817 | cat confdefs.h >>conftest.$ac_ext |
| 20818 | cat >>conftest.$ac_ext <<_ACEOF |
| 20819 | /* end confdefs.h. */ |
| 20820 | $ac_includes_default |
| 20821 | int |
| 20822 | main () |
| 20823 | { |
| 20824 | char buf[16]; |
| 20825 | long double f = 3.141592653; |
| 20826 | sprintf (buf, "%Lg", f); |
| 20827 | return (strncmp ("3.14159", buf, 7)); |
| 20828 | ; |
| 20829 | return 0; |
| 20830 | } |
| 20831 | _ACEOF |
| 20832 | rm -f conftest$ac_exeext |
| 20833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20834 | (eval $ac_link) 2>&5 |
| 20835 | ac_status=$? |
| 20836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20837 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20839 | (eval $ac_try) 2>&5 |
| 20840 | ac_status=$? |
| 20841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20842 | (exit $ac_status); }; }; then |
| 20843 | gdb_cv_printf_has_long_double=yes |
| 20844 | else |
| 20845 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20846 | echo "$as_me: failed program was:" >&5 |
| 20847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20848 | |
| 20849 | ( exit $ac_status ) |
| 20850 | gdb_cv_printf_has_long_double=no |
| 20851 | fi |
| 20852 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 20853 | fi |
| 20854 | fi |
| 20855 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
| 20856 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 |
| 20857 | if test $gdb_cv_printf_has_long_double = yes; then |
| 20858 | |
| 20859 | cat >>confdefs.h <<\_ACEOF |
| 20860 | #define PRINTF_HAS_LONG_DOUBLE 1 |
| 20861 | _ACEOF |
| 20862 | |
| 20863 | fi |
| 20864 | |
| 20865 | # Check if the compiler and runtime support scanning long doubles. |
| 20866 | |
| 20867 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
| 20868 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 |
| 20869 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
| 20870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20871 | else |
| 20872 | if test "$cross_compiling" = yes; then |
| 20873 | gdb_cv_scanf_has_long_double=no |
| 20874 | else |
| 20875 | cat >conftest.$ac_ext <<_ACEOF |
| 20876 | /* confdefs.h. */ |
| 20877 | _ACEOF |
| 20878 | cat confdefs.h >>conftest.$ac_ext |
| 20879 | cat >>conftest.$ac_ext <<_ACEOF |
| 20880 | /* end confdefs.h. */ |
| 20881 | #include <stdio.h> |
| 20882 | int |
| 20883 | main () |
| 20884 | { |
| 20885 | char *buf = "3.141592653"; |
| 20886 | long double f = 0; |
| 20887 | sscanf (buf, "%Lg", &f); |
| 20888 | return !(f > 3.14159 && f < 3.14160); |
| 20889 | ; |
| 20890 | return 0; |
| 20891 | } |
| 20892 | _ACEOF |
| 20893 | rm -f conftest$ac_exeext |
| 20894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20895 | (eval $ac_link) 2>&5 |
| 20896 | ac_status=$? |
| 20897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20898 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20900 | (eval $ac_try) 2>&5 |
| 20901 | ac_status=$? |
| 20902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20903 | (exit $ac_status); }; }; then |
| 20904 | gdb_cv_scanf_has_long_double=yes |
| 20905 | else |
| 20906 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20907 | echo "$as_me: failed program was:" >&5 |
| 20908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20909 | |
| 20910 | ( exit $ac_status ) |
| 20911 | gdb_cv_scanf_has_long_double=no |
| 20912 | fi |
| 20913 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 20914 | fi |
| 20915 | fi |
| 20916 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
| 20917 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 |
| 20918 | if test $gdb_cv_scanf_has_long_double = yes; then |
| 20919 | |
| 20920 | cat >>confdefs.h <<\_ACEOF |
| 20921 | #define SCANF_HAS_LONG_DOUBLE 1 |
| 20922 | _ACEOF |
| 20923 | |
| 20924 | fi |
| 20925 | |
| 20926 | case ${host_os} in |
| 20927 | aix*) |
| 20928 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
| 20929 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 |
| 20930 | if test "${gdb_cv_bigtoc+set}" = set; then |
| 20931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20932 | else |
| 20933 | |
| 20934 | SAVE_LDFLAGS=$LDFLAGS |
| 20935 | |
| 20936 | case $GCC in |
| 20937 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; |
| 20938 | *) gdb_cv_bigtoc=-bbigtoc ;; |
| 20939 | esac |
| 20940 | |
| 20941 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc |
| 20942 | cat >conftest.$ac_ext <<_ACEOF |
| 20943 | /* confdefs.h. */ |
| 20944 | _ACEOF |
| 20945 | cat confdefs.h >>conftest.$ac_ext |
| 20946 | cat >>conftest.$ac_ext <<_ACEOF |
| 20947 | /* end confdefs.h. */ |
| 20948 | |
| 20949 | int |
| 20950 | main () |
| 20951 | { |
| 20952 | int i; |
| 20953 | ; |
| 20954 | return 0; |
| 20955 | } |
| 20956 | _ACEOF |
| 20957 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20959 | (eval $ac_link) 2>conftest.er1 |
| 20960 | ac_status=$? |
| 20961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20962 | rm -f conftest.er1 |
| 20963 | cat conftest.err >&5 |
| 20964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20965 | (exit $ac_status); } && |
| 20966 | { ac_try='test -z "$ac_c_werror_flag" |
| 20967 | || test ! -s conftest.err' |
| 20968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20969 | (eval $ac_try) 2>&5 |
| 20970 | ac_status=$? |
| 20971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20972 | (exit $ac_status); }; } && |
| 20973 | { ac_try='test -s conftest$ac_exeext' |
| 20974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20975 | (eval $ac_try) 2>&5 |
| 20976 | ac_status=$? |
| 20977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20978 | (exit $ac_status); }; }; then |
| 20979 | : |
| 20980 | else |
| 20981 | echo "$as_me: failed program was:" >&5 |
| 20982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20983 | |
| 20984 | gdb_cv_bigtoc= |
| 20985 | fi |
| 20986 | rm -f conftest.err conftest.$ac_objext \ |
| 20987 | conftest$ac_exeext conftest.$ac_ext |
| 20988 | LDFLAGS="${SAVE_LDFLAGS}" |
| 20989 | |
| 20990 | fi |
| 20991 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
| 20992 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 |
| 20993 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
| 20994 | ;; |
| 20995 | esac |
| 20996 | |
| 20997 | |
| 20998 | |
| 20999 | if test ${build} = ${host} -a ${host} = ${target} ; then |
| 21000 | case ${host_os} in |
| 21001 | hpux*) |
| 21002 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
| 21003 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 |
| 21004 | if test -f /usr/include/dce/cma_config.h ; then |
| 21005 | if test "$GCC" = "yes" ; then |
| 21006 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21007 | echo "${ECHO_T}yes" >&6 |
| 21008 | |
| 21009 | cat >>confdefs.h <<\_ACEOF |
| 21010 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
| 21011 | _ACEOF |
| 21012 | |
| 21013 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
| 21014 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
| 21015 | else |
| 21016 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
| 21017 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 |
| 21018 | fi |
| 21019 | else |
| 21020 | echo "$as_me:$LINENO: result: no" >&5 |
| 21021 | echo "${ECHO_T}no" >&6 |
| 21022 | fi |
| 21023 | ;; |
| 21024 | solaris*) |
| 21025 | # See if thread_db library is around for Solaris thread debugging. |
| 21026 | # Note that we must explicitly test for version 1 of the library |
| 21027 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have |
| 21028 | # the same API. |
| 21029 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
| 21030 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 |
| 21031 | if test -f /usr/lib/libthread_db.so.1 ; then |
| 21032 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21033 | echo "${ECHO_T}yes" >&6 |
| 21034 | |
| 21035 | cat >>confdefs.h <<\_ACEOF |
| 21036 | #define HAVE_THREAD_DB_LIB 1 |
| 21037 | _ACEOF |
| 21038 | |
| 21039 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
| 21040 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
| 21041 | |
| 21042 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 21043 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 21044 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 21045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21046 | else |
| 21047 | ac_check_lib_save_LIBS=$LIBS |
| 21048 | LIBS="-ldl $LIBS" |
| 21049 | cat >conftest.$ac_ext <<_ACEOF |
| 21050 | /* confdefs.h. */ |
| 21051 | _ACEOF |
| 21052 | cat confdefs.h >>conftest.$ac_ext |
| 21053 | cat >>conftest.$ac_ext <<_ACEOF |
| 21054 | /* end confdefs.h. */ |
| 21055 | |
| 21056 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21057 | #ifdef __cplusplus |
| 21058 | extern "C" |
| 21059 | #endif |
| 21060 | /* We use char because int might match the return type of a gcc2 |
| 21061 | builtin and then its argument prototype would still apply. */ |
| 21062 | char dlopen (); |
| 21063 | int |
| 21064 | main () |
| 21065 | { |
| 21066 | dlopen (); |
| 21067 | ; |
| 21068 | return 0; |
| 21069 | } |
| 21070 | _ACEOF |
| 21071 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21073 | (eval $ac_link) 2>conftest.er1 |
| 21074 | ac_status=$? |
| 21075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21076 | rm -f conftest.er1 |
| 21077 | cat conftest.err >&5 |
| 21078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21079 | (exit $ac_status); } && |
| 21080 | { ac_try='test -z "$ac_c_werror_flag" |
| 21081 | || test ! -s conftest.err' |
| 21082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21083 | (eval $ac_try) 2>&5 |
| 21084 | ac_status=$? |
| 21085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21086 | (exit $ac_status); }; } && |
| 21087 | { ac_try='test -s conftest$ac_exeext' |
| 21088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21089 | (eval $ac_try) 2>&5 |
| 21090 | ac_status=$? |
| 21091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21092 | (exit $ac_status); }; }; then |
| 21093 | ac_cv_lib_dl_dlopen=yes |
| 21094 | else |
| 21095 | echo "$as_me: failed program was:" >&5 |
| 21096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21097 | |
| 21098 | ac_cv_lib_dl_dlopen=no |
| 21099 | fi |
| 21100 | rm -f conftest.err conftest.$ac_objext \ |
| 21101 | conftest$ac_exeext conftest.$ac_ext |
| 21102 | LIBS=$ac_check_lib_save_LIBS |
| 21103 | fi |
| 21104 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 21105 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 21106 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 21107 | cat >>confdefs.h <<_ACEOF |
| 21108 | #define HAVE_LIBDL 1 |
| 21109 | _ACEOF |
| 21110 | |
| 21111 | LIBS="-ldl $LIBS" |
| 21112 | |
| 21113 | fi |
| 21114 | |
| 21115 | if test "$GCC" = "yes" ; then |
| 21116 | # The GNU linker requires the -export-dynamic option to make |
| 21117 | # all symbols visible in the dynamic symbol table. |
| 21118 | hold_ldflags=$LDFLAGS |
| 21119 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
| 21120 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 |
| 21121 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
| 21122 | cat >conftest.$ac_ext <<_ACEOF |
| 21123 | /* confdefs.h. */ |
| 21124 | _ACEOF |
| 21125 | cat confdefs.h >>conftest.$ac_ext |
| 21126 | cat >>conftest.$ac_ext <<_ACEOF |
| 21127 | /* end confdefs.h. */ |
| 21128 | |
| 21129 | int |
| 21130 | main () |
| 21131 | { |
| 21132 | int i; |
| 21133 | ; |
| 21134 | return 0; |
| 21135 | } |
| 21136 | _ACEOF |
| 21137 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21139 | (eval $ac_link) 2>conftest.er1 |
| 21140 | ac_status=$? |
| 21141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21142 | rm -f conftest.er1 |
| 21143 | cat conftest.err >&5 |
| 21144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21145 | (exit $ac_status); } && |
| 21146 | { ac_try='test -z "$ac_c_werror_flag" |
| 21147 | || test ! -s conftest.err' |
| 21148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21149 | (eval $ac_try) 2>&5 |
| 21150 | ac_status=$? |
| 21151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21152 | (exit $ac_status); }; } && |
| 21153 | { ac_try='test -s conftest$ac_exeext' |
| 21154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21155 | (eval $ac_try) 2>&5 |
| 21156 | ac_status=$? |
| 21157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21158 | (exit $ac_status); }; }; then |
| 21159 | found=yes |
| 21160 | else |
| 21161 | echo "$as_me: failed program was:" >&5 |
| 21162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21163 | |
| 21164 | found=no |
| 21165 | fi |
| 21166 | rm -f conftest.err conftest.$ac_objext \ |
| 21167 | conftest$ac_exeext conftest.$ac_ext |
| 21168 | LDFLAGS=$hold_ldflags |
| 21169 | echo "$as_me:$LINENO: result: $found" >&5 |
| 21170 | echo "${ECHO_T}$found" >&6 |
| 21171 | if test $found = yes; then |
| 21172 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" |
| 21173 | fi |
| 21174 | fi |
| 21175 | # Sun randomly tweaked the prototypes in <proc_service.h> |
| 21176 | # at one point. |
| 21177 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
| 21178 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 |
| 21179 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
| 21180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21181 | else |
| 21182 | |
| 21183 | cat >conftest.$ac_ext <<_ACEOF |
| 21184 | /* confdefs.h. */ |
| 21185 | _ACEOF |
| 21186 | cat confdefs.h >>conftest.$ac_ext |
| 21187 | cat >>conftest.$ac_ext <<_ACEOF |
| 21188 | /* end confdefs.h. */ |
| 21189 | |
| 21190 | #include <proc_service.h> |
| 21191 | ps_err_e ps_pdwrite |
| 21192 | (struct ps_prochandle*, psaddr_t, const void*, size_t); |
| 21193 | |
| 21194 | int |
| 21195 | main () |
| 21196 | { |
| 21197 | |
| 21198 | ; |
| 21199 | return 0; |
| 21200 | } |
| 21201 | _ACEOF |
| 21202 | rm -f conftest.$ac_objext |
| 21203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21204 | (eval $ac_compile) 2>conftest.er1 |
| 21205 | ac_status=$? |
| 21206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21207 | rm -f conftest.er1 |
| 21208 | cat conftest.err >&5 |
| 21209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21210 | (exit $ac_status); } && |
| 21211 | { ac_try='test -z "$ac_c_werror_flag" |
| 21212 | || test ! -s conftest.err' |
| 21213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21214 | (eval $ac_try) 2>&5 |
| 21215 | ac_status=$? |
| 21216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21217 | (exit $ac_status); }; } && |
| 21218 | { ac_try='test -s conftest.$ac_objext' |
| 21219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21220 | (eval $ac_try) 2>&5 |
| 21221 | ac_status=$? |
| 21222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21223 | (exit $ac_status); }; }; then |
| 21224 | gdb_cv_proc_service_is_old=no |
| 21225 | else |
| 21226 | echo "$as_me: failed program was:" >&5 |
| 21227 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21228 | |
| 21229 | gdb_cv_proc_service_is_old=yes |
| 21230 | fi |
| 21231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21232 | |
| 21233 | fi |
| 21234 | |
| 21235 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
| 21236 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 |
| 21237 | if test $gdb_cv_proc_service_is_old = yes; then |
| 21238 | |
| 21239 | cat >>confdefs.h <<\_ACEOF |
| 21240 | #define PROC_SERVICE_IS_OLD 1 |
| 21241 | _ACEOF |
| 21242 | |
| 21243 | fi |
| 21244 | else |
| 21245 | echo "$as_me:$LINENO: result: no" >&5 |
| 21246 | echo "${ECHO_T}no" >&6 |
| 21247 | fi |
| 21248 | ;; |
| 21249 | aix*) |
| 21250 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
| 21251 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 |
| 21252 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
| 21253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21254 | else |
| 21255 | cat >conftest.$ac_ext <<_ACEOF |
| 21256 | /* confdefs.h. */ |
| 21257 | _ACEOF |
| 21258 | cat confdefs.h >>conftest.$ac_ext |
| 21259 | cat >>conftest.$ac_ext <<_ACEOF |
| 21260 | /* end confdefs.h. */ |
| 21261 | #include <sys/pthdebug.h> |
| 21262 | int |
| 21263 | main () |
| 21264 | { |
| 21265 | #ifndef PTHDB_VERSION_3 |
| 21266 | #error |
| 21267 | #endif |
| 21268 | ; |
| 21269 | return 0; |
| 21270 | } |
| 21271 | _ACEOF |
| 21272 | rm -f conftest.$ac_objext |
| 21273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21274 | (eval $ac_compile) 2>conftest.er1 |
| 21275 | ac_status=$? |
| 21276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21277 | rm -f conftest.er1 |
| 21278 | cat conftest.err >&5 |
| 21279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21280 | (exit $ac_status); } && |
| 21281 | { ac_try='test -z "$ac_c_werror_flag" |
| 21282 | || test ! -s conftest.err' |
| 21283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21284 | (eval $ac_try) 2>&5 |
| 21285 | ac_status=$? |
| 21286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21287 | (exit $ac_status); }; } && |
| 21288 | { ac_try='test -s conftest.$ac_objext' |
| 21289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21290 | (eval $ac_try) 2>&5 |
| 21291 | ac_status=$? |
| 21292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21293 | (exit $ac_status); }; }; then |
| 21294 | gdb_cv_have_aix_thread_debug=yes |
| 21295 | else |
| 21296 | echo "$as_me: failed program was:" >&5 |
| 21297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21298 | |
| 21299 | gdb_cv_have_aix_thread_debug=no |
| 21300 | fi |
| 21301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21302 | fi |
| 21303 | |
| 21304 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
| 21305 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 |
| 21306 | if test $gdb_cv_have_aix_thread_debug = yes; then |
| 21307 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" |
| 21308 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
| 21309 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
| 21310 | fi |
| 21311 | ;; |
| 21312 | esac |
| 21313 | |
| 21314 | fi |
| 21315 | |
| 21316 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
| 21317 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
| 21318 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 |
| 21319 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
| 21320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21321 | else |
| 21322 | cat >conftest.$ac_ext <<_ACEOF |
| 21323 | /* confdefs.h. */ |
| 21324 | _ACEOF |
| 21325 | cat confdefs.h >>conftest.$ac_ext |
| 21326 | cat >>conftest.$ac_ext <<_ACEOF |
| 21327 | /* end confdefs.h. */ |
| 21328 | #include <thread_db.h> |
| 21329 | int |
| 21330 | main () |
| 21331 | { |
| 21332 | int i = TD_NOTALLOC; |
| 21333 | ; |
| 21334 | return 0; |
| 21335 | } |
| 21336 | _ACEOF |
| 21337 | rm -f conftest.$ac_objext |
| 21338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21339 | (eval $ac_compile) 2>conftest.er1 |
| 21340 | ac_status=$? |
| 21341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21342 | rm -f conftest.er1 |
| 21343 | cat conftest.err >&5 |
| 21344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21345 | (exit $ac_status); } && |
| 21346 | { ac_try='test -z "$ac_c_werror_flag" |
| 21347 | || test ! -s conftest.err' |
| 21348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21349 | (eval $ac_try) 2>&5 |
| 21350 | ac_status=$? |
| 21351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21352 | (exit $ac_status); }; } && |
| 21353 | { ac_try='test -s conftest.$ac_objext' |
| 21354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21355 | (eval $ac_try) 2>&5 |
| 21356 | ac_status=$? |
| 21357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21358 | (exit $ac_status); }; }; then |
| 21359 | gdb_cv_thread_db_h_has_td_notalloc=yes |
| 21360 | else |
| 21361 | echo "$as_me: failed program was:" >&5 |
| 21362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21363 | |
| 21364 | gdb_cv_thread_db_h_has_td_notalloc=no |
| 21365 | |
| 21366 | fi |
| 21367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21368 | |
| 21369 | fi |
| 21370 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
| 21371 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 |
| 21372 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5 |
| 21373 | echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6 |
| 21374 | if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then |
| 21375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21376 | else |
| 21377 | cat >conftest.$ac_ext <<_ACEOF |
| 21378 | /* confdefs.h. */ |
| 21379 | _ACEOF |
| 21380 | cat confdefs.h >>conftest.$ac_ext |
| 21381 | cat >>conftest.$ac_ext <<_ACEOF |
| 21382 | /* end confdefs.h. */ |
| 21383 | #include <thread_db.h> |
| 21384 | int |
| 21385 | main () |
| 21386 | { |
| 21387 | int i = TD_VERSION; |
| 21388 | ; |
| 21389 | return 0; |
| 21390 | } |
| 21391 | _ACEOF |
| 21392 | rm -f conftest.$ac_objext |
| 21393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21394 | (eval $ac_compile) 2>conftest.er1 |
| 21395 | ac_status=$? |
| 21396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21397 | rm -f conftest.er1 |
| 21398 | cat conftest.err >&5 |
| 21399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21400 | (exit $ac_status); } && |
| 21401 | { ac_try='test -z "$ac_c_werror_flag" |
| 21402 | || test ! -s conftest.err' |
| 21403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21404 | (eval $ac_try) 2>&5 |
| 21405 | ac_status=$? |
| 21406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21407 | (exit $ac_status); }; } && |
| 21408 | { ac_try='test -s conftest.$ac_objext' |
| 21409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21410 | (eval $ac_try) 2>&5 |
| 21411 | ac_status=$? |
| 21412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21413 | (exit $ac_status); }; }; then |
| 21414 | gdb_cv_thread_db_h_has_td_version=yes |
| 21415 | else |
| 21416 | echo "$as_me: failed program was:" >&5 |
| 21417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21418 | |
| 21419 | gdb_cv_thread_db_h_has_td_version=no |
| 21420 | |
| 21421 | fi |
| 21422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21423 | |
| 21424 | fi |
| 21425 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5 |
| 21426 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6 |
| 21427 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5 |
| 21428 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6 |
| 21429 | if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then |
| 21430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21431 | else |
| 21432 | cat >conftest.$ac_ext <<_ACEOF |
| 21433 | /* confdefs.h. */ |
| 21434 | _ACEOF |
| 21435 | cat confdefs.h >>conftest.$ac_ext |
| 21436 | cat >>conftest.$ac_ext <<_ACEOF |
| 21437 | /* end confdefs.h. */ |
| 21438 | #include <thread_db.h> |
| 21439 | int |
| 21440 | main () |
| 21441 | { |
| 21442 | int i = TD_NOTLS; |
| 21443 | ; |
| 21444 | return 0; |
| 21445 | } |
| 21446 | _ACEOF |
| 21447 | rm -f conftest.$ac_objext |
| 21448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21449 | (eval $ac_compile) 2>conftest.er1 |
| 21450 | ac_status=$? |
| 21451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21452 | rm -f conftest.er1 |
| 21453 | cat conftest.err >&5 |
| 21454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21455 | (exit $ac_status); } && |
| 21456 | { ac_try='test -z "$ac_c_werror_flag" |
| 21457 | || test ! -s conftest.err' |
| 21458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21459 | (eval $ac_try) 2>&5 |
| 21460 | ac_status=$? |
| 21461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21462 | (exit $ac_status); }; } && |
| 21463 | { ac_try='test -s conftest.$ac_objext' |
| 21464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21465 | (eval $ac_try) 2>&5 |
| 21466 | ac_status=$? |
| 21467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21468 | (exit $ac_status); }; }; then |
| 21469 | gdb_cv_thread_db_h_has_td_notls=yes |
| 21470 | else |
| 21471 | echo "$as_me: failed program was:" >&5 |
| 21472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21473 | |
| 21474 | gdb_cv_thread_db_h_has_td_notls=no |
| 21475 | |
| 21476 | fi |
| 21477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21478 | |
| 21479 | fi |
| 21480 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5 |
| 21481 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6 |
| 21482 | fi |
| 21483 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then |
| 21484 | |
| 21485 | cat >>confdefs.h <<\_ACEOF |
| 21486 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
| 21487 | _ACEOF |
| 21488 | |
| 21489 | fi |
| 21490 | if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then |
| 21491 | |
| 21492 | cat >>confdefs.h <<\_ACEOF |
| 21493 | #define THREAD_DB_HAS_TD_VERSION 1 |
| 21494 | _ACEOF |
| 21495 | |
| 21496 | fi |
| 21497 | if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then |
| 21498 | |
| 21499 | cat >>confdefs.h <<\_ACEOF |
| 21500 | #define THREAD_DB_HAS_TD_NOTLS 1 |
| 21501 | _ACEOF |
| 21502 | |
| 21503 | fi |
| 21504 | |
| 21505 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
| 21506 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
| 21507 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 |
| 21508 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
| 21509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21510 | else |
| 21511 | cat >conftest.$ac_ext <<_ACEOF |
| 21512 | /* confdefs.h. */ |
| 21513 | _ACEOF |
| 21514 | cat confdefs.h >>conftest.$ac_ext |
| 21515 | cat >>conftest.$ac_ext <<_ACEOF |
| 21516 | /* end confdefs.h. */ |
| 21517 | #include <sys/syscall.h> |
| 21518 | int |
| 21519 | main () |
| 21520 | { |
| 21521 | int i = __NR_tkill; |
| 21522 | ; |
| 21523 | return 0; |
| 21524 | } |
| 21525 | _ACEOF |
| 21526 | rm -f conftest.$ac_objext |
| 21527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21528 | (eval $ac_compile) 2>conftest.er1 |
| 21529 | ac_status=$? |
| 21530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21531 | rm -f conftest.er1 |
| 21532 | cat conftest.err >&5 |
| 21533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21534 | (exit $ac_status); } && |
| 21535 | { ac_try='test -z "$ac_c_werror_flag" |
| 21536 | || test ! -s conftest.err' |
| 21537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21538 | (eval $ac_try) 2>&5 |
| 21539 | ac_status=$? |
| 21540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21541 | (exit $ac_status); }; } && |
| 21542 | { ac_try='test -s conftest.$ac_objext' |
| 21543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21544 | (eval $ac_try) 2>&5 |
| 21545 | ac_status=$? |
| 21546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21547 | (exit $ac_status); }; }; then |
| 21548 | gdb_cv_sys_syscall_h_has_tkill=yes |
| 21549 | else |
| 21550 | echo "$as_me: failed program was:" >&5 |
| 21551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21552 | |
| 21553 | gdb_cv_sys_syscall_h_has_tkill=no |
| 21554 | |
| 21555 | fi |
| 21556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21557 | |
| 21558 | fi |
| 21559 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
| 21560 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 |
| 21561 | fi |
| 21562 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then |
| 21563 | |
| 21564 | cat >>confdefs.h <<\_ACEOF |
| 21565 | #define HAVE_TKILL_SYSCALL 1 |
| 21566 | _ACEOF |
| 21567 | |
| 21568 | fi |
| 21569 | |
| 21570 | |
| 21571 | |
| 21572 | # Check whether --with-sysroot or --without-sysroot was given. |
| 21573 | if test "${with_sysroot+set}" = set; then |
| 21574 | withval="$with_sysroot" |
| 21575 | |
| 21576 | case ${with_sysroot} in |
| 21577 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
| 21578 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
| 21579 | esac |
| 21580 | |
| 21581 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' |
| 21582 | |
| 21583 | if test "x$prefix" = xNONE; then |
| 21584 | test_prefix=/usr/local |
| 21585 | else |
| 21586 | test_prefix=$prefix |
| 21587 | fi |
| 21588 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
| 21589 | test_exec_prefix=$test_prefix |
| 21590 | else |
| 21591 | test_exec_prefix=$exec_prefix |
| 21592 | fi |
| 21593 | case ${TARGET_SYSTEM_ROOT} in |
| 21594 | "${test_prefix}"|"${test_prefix}/"*|\ |
| 21595 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ |
| 21596 | '${prefix}'|'${prefix}/'*|\ |
| 21597 | '${exec_prefix}'|'${exec_prefix}/'*) |
| 21598 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
| 21599 | TARGET_SYSTEM_ROOT_DEFINE="$t" |
| 21600 | ;; |
| 21601 | esac |
| 21602 | |
| 21603 | else |
| 21604 | |
| 21605 | TARGET_SYSTEM_ROOT= |
| 21606 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' |
| 21607 | |
| 21608 | fi; |
| 21609 | |
| 21610 | |
| 21611 | |
| 21612 | # Check whether --enable-werror or --disable-werror was given. |
| 21613 | if test "${enable_werror+set}" = set; then |
| 21614 | enableval="$enable_werror" |
| 21615 | case "${enableval}" in |
| 21616 | yes | y) ERROR_ON_WARNING="yes" ;; |
| 21617 | no | n) ERROR_ON_WARNING="no" ;; |
| 21618 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
| 21619 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} |
| 21620 | { (exit 1); exit 1; }; } ;; |
| 21621 | esac |
| 21622 | fi; |
| 21623 | |
| 21624 | # Enable -Werror by default when using gcc |
| 21625 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then |
| 21626 | ERROR_ON_WARNING=yes |
| 21627 | fi |
| 21628 | |
| 21629 | WERROR_CFLAGS="" |
| 21630 | if test "${ERROR_ON_WARNING}" = yes ; then |
| 21631 | WERROR_CFLAGS="-Werror" |
| 21632 | fi |
| 21633 | |
| 21634 | # The entries after -Wno-pointer-sign are disabled warnings which may |
| 21635 | # be enabled in the future, which can not currently be used to build |
| 21636 | # GDB. |
| 21637 | # NOTE: If you change this list, remember to update |
| 21638 | # gdb/doc/gdbint.texinfo. |
| 21639 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
| 21640 | -Wformat-nonliteral -Wno-pointer-sign \ |
| 21641 | -Wno-unused -Wno-switch -Wno-char-subscripts" |
| 21642 | |
| 21643 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
| 21644 | if test "${enable_build_warnings+set}" = set; then |
| 21645 | enableval="$enable_build_warnings" |
| 21646 | case "${enableval}" in |
| 21647 | yes) ;; |
| 21648 | no) build_warnings="-w";; |
| 21649 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 21650 | build_warnings="${build_warnings} ${t}";; |
| 21651 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 21652 | build_warnings="${t} ${build_warnings}";; |
| 21653 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 21654 | esac |
| 21655 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
| 21656 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
| 21657 | fi |
| 21658 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
| 21659 | if test "${enable_gdb_build_warnings+set}" = set; then |
| 21660 | enableval="$enable_gdb_build_warnings" |
| 21661 | case "${enableval}" in |
| 21662 | yes) ;; |
| 21663 | no) build_warnings="-w";; |
| 21664 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 21665 | build_warnings="${build_warnings} ${t}";; |
| 21666 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 21667 | build_warnings="${t} ${build_warnings}";; |
| 21668 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 21669 | esac |
| 21670 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
| 21671 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 |
| 21672 | fi |
| 21673 | fi; WARN_CFLAGS="" |
| 21674 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
| 21675 | then |
| 21676 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
| 21677 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 |
| 21678 | # Separate out the -Werror flag as some files just cannot be |
| 21679 | # compiled with it enabled. |
| 21680 | for w in ${build_warnings}; do |
| 21681 | case $w in |
| 21682 | -Werr*) WERROR_CFLAGS=-Werror ;; |
| 21683 | *) # Check that GCC accepts it |
| 21684 | saved_CFLAGS="$CFLAGS" |
| 21685 | CFLAGS="$CFLAGS $w" |
| 21686 | cat >conftest.$ac_ext <<_ACEOF |
| 21687 | /* confdefs.h. */ |
| 21688 | _ACEOF |
| 21689 | cat confdefs.h >>conftest.$ac_ext |
| 21690 | cat >>conftest.$ac_ext <<_ACEOF |
| 21691 | /* end confdefs.h. */ |
| 21692 | |
| 21693 | int |
| 21694 | main () |
| 21695 | { |
| 21696 | |
| 21697 | ; |
| 21698 | return 0; |
| 21699 | } |
| 21700 | _ACEOF |
| 21701 | rm -f conftest.$ac_objext |
| 21702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21703 | (eval $ac_compile) 2>conftest.er1 |
| 21704 | ac_status=$? |
| 21705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21706 | rm -f conftest.er1 |
| 21707 | cat conftest.err >&5 |
| 21708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21709 | (exit $ac_status); } && |
| 21710 | { ac_try='test -z "$ac_c_werror_flag" |
| 21711 | || test ! -s conftest.err' |
| 21712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21713 | (eval $ac_try) 2>&5 |
| 21714 | ac_status=$? |
| 21715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21716 | (exit $ac_status); }; } && |
| 21717 | { ac_try='test -s conftest.$ac_objext' |
| 21718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21719 | (eval $ac_try) 2>&5 |
| 21720 | ac_status=$? |
| 21721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21722 | (exit $ac_status); }; }; then |
| 21723 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
| 21724 | else |
| 21725 | echo "$as_me: failed program was:" >&5 |
| 21726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21727 | |
| 21728 | fi |
| 21729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21730 | CFLAGS="$saved_CFLAGS" |
| 21731 | esac |
| 21732 | done |
| 21733 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
| 21734 | echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6 |
| 21735 | fi |
| 21736 | |
| 21737 | |
| 21738 | |
| 21739 | # In the Cygwin environment, we need some additional flags. |
| 21740 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
| 21741 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 |
| 21742 | if test "${gdb_cv_os_cygwin+set}" = set; then |
| 21743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21744 | else |
| 21745 | cat >conftest.$ac_ext <<_ACEOF |
| 21746 | /* confdefs.h. */ |
| 21747 | _ACEOF |
| 21748 | cat confdefs.h >>conftest.$ac_ext |
| 21749 | cat >>conftest.$ac_ext <<_ACEOF |
| 21750 | /* end confdefs.h. */ |
| 21751 | |
| 21752 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) |
| 21753 | lose |
| 21754 | #endif |
| 21755 | _ACEOF |
| 21756 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21757 | $EGREP "lose" >/dev/null 2>&1; then |
| 21758 | gdb_cv_os_cygwin=yes |
| 21759 | else |
| 21760 | gdb_cv_os_cygwin=no |
| 21761 | fi |
| 21762 | rm -f conftest* |
| 21763 | |
| 21764 | fi |
| 21765 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
| 21766 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 |
| 21767 | |
| 21768 | |
| 21769 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
| 21770 | case ${host} in |
| 21771 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
| 21772 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; |
| 21773 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
| 21774 | esac |
| 21775 | |
| 21776 | |
| 21777 | # libreadline needs libuser32.a in a cygwin environment |
| 21778 | WIN32LIBS= |
| 21779 | if test x$gdb_cv_os_cygwin = xyes; then |
| 21780 | WIN32LIBS="-luser32" |
| 21781 | case "${target}" in |
| 21782 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" |
| 21783 | ;; |
| 21784 | esac |
| 21785 | fi |
| 21786 | |
| 21787 | # The ser-tcp.c module requires sockets. |
| 21788 | case ${host} in |
| 21789 | *mingw32*) |
| 21790 | |
| 21791 | cat >>confdefs.h <<\_ACEOF |
| 21792 | #define USE_WIN32API 1 |
| 21793 | _ACEOF |
| 21794 | |
| 21795 | WIN32LIBS="$WIN32LIBS -lws2_32" |
| 21796 | ;; |
| 21797 | esac |
| 21798 | |
| 21799 | |
| 21800 | # Add ELF support to GDB, but only if BFD includes ELF support. |
| 21801 | OLD_CFLAGS=$CFLAGS |
| 21802 | OLD_LDFLAGS=$LDFLAGS |
| 21803 | OLD_LIBS=$LIBS |
| 21804 | CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" |
| 21805 | LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" |
| 21806 | LIBS="$LIBS -lbfd -liberty" |
| 21807 | echo "$as_me:$LINENO: checking for ELF support in BFD" >&5 |
| 21808 | echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6 |
| 21809 | if test "${gdb_cv_var_elf+set}" = set; then |
| 21810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21811 | else |
| 21812 | cat >conftest.$ac_ext <<_ACEOF |
| 21813 | /* confdefs.h. */ |
| 21814 | _ACEOF |
| 21815 | cat confdefs.h >>conftest.$ac_ext |
| 21816 | cat >>conftest.$ac_ext <<_ACEOF |
| 21817 | /* end confdefs.h. */ |
| 21818 | #include <stdlib.h> |
| 21819 | #include "bfd.h" |
| 21820 | #include "elf-bfd.h" |
| 21821 | |
| 21822 | int |
| 21823 | main () |
| 21824 | { |
| 21825 | bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); |
| 21826 | ; |
| 21827 | return 0; |
| 21828 | } |
| 21829 | _ACEOF |
| 21830 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21832 | (eval $ac_link) 2>conftest.er1 |
| 21833 | ac_status=$? |
| 21834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21835 | rm -f conftest.er1 |
| 21836 | cat conftest.err >&5 |
| 21837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21838 | (exit $ac_status); } && |
| 21839 | { ac_try='test -z "$ac_c_werror_flag" |
| 21840 | || test ! -s conftest.err' |
| 21841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21842 | (eval $ac_try) 2>&5 |
| 21843 | ac_status=$? |
| 21844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21845 | (exit $ac_status); }; } && |
| 21846 | { ac_try='test -s conftest$ac_exeext' |
| 21847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21848 | (eval $ac_try) 2>&5 |
| 21849 | ac_status=$? |
| 21850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21851 | (exit $ac_status); }; }; then |
| 21852 | gdb_cv_var_elf=yes |
| 21853 | else |
| 21854 | echo "$as_me: failed program was:" >&5 |
| 21855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21856 | |
| 21857 | gdb_cv_var_elf=no |
| 21858 | fi |
| 21859 | rm -f conftest.err conftest.$ac_objext \ |
| 21860 | conftest$ac_exeext conftest.$ac_ext |
| 21861 | fi |
| 21862 | echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5 |
| 21863 | echo "${ECHO_T}$gdb_cv_var_elf" >&6 |
| 21864 | if test $gdb_cv_var_elf = yes; then |
| 21865 | CONFIG_OBS="$CONFIG_OBS elfread.o" |
| 21866 | |
| 21867 | cat >>confdefs.h <<\_ACEOF |
| 21868 | #define HAVE_ELF 1 |
| 21869 | _ACEOF |
| 21870 | |
| 21871 | fi |
| 21872 | CFLAGS=$OLD_CFLAGS |
| 21873 | LDFLAGS=$OLD_LDFLAGS |
| 21874 | LIBS=$OLD_LIBS |
| 21875 | |
| 21876 | # Add any host-specific objects to GDB. |
| 21877 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" |
| 21878 | |
| 21879 | LIBGUI="../libgui/src/libgui.a" |
| 21880 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" |
| 21881 | |
| 21882 | |
| 21883 | |
| 21884 | WIN32LDAPP= |
| 21885 | |
| 21886 | |
| 21887 | |
| 21888 | case "${host}" in |
| 21889 | *-*-cygwin*) |
| 21890 | configdir="win" |
| 21891 | ;; |
| 21892 | *) |
| 21893 | configdir="unix" |
| 21894 | ;; |
| 21895 | esac |
| 21896 | |
| 21897 | GDBTKLIBS= |
| 21898 | if test "${enable_gdbtk}" = "yes"; then |
| 21899 | |
| 21900 | # Gdbtk must have an absolute path to srcdir in order to run |
| 21901 | # properly when not installed. |
| 21902 | here=`pwd` |
| 21903 | cd ${srcdir} |
| 21904 | GDBTK_SRC_DIR=`pwd` |
| 21905 | cd $here |
| 21906 | |
| 21907 | |
| 21908 | # |
| 21909 | # Ok, lets find the tcl configuration |
| 21910 | # First, look for one uninstalled. |
| 21911 | # the alternative search directory is invoked by --with-tclconfig |
| 21912 | # |
| 21913 | |
| 21914 | if test x"${no_tcl}" = x ; then |
| 21915 | # we reset no_tcl in case something fails here |
| 21916 | no_tcl=true |
| 21917 | |
| 21918 | # Check whether --with-tclconfig or --without-tclconfig was given. |
| 21919 | if test "${with_tclconfig+set}" = set; then |
| 21920 | withval="$with_tclconfig" |
| 21921 | with_tclconfig=${withval} |
| 21922 | fi; |
| 21923 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 |
| 21924 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 |
| 21925 | if test "${ac_cv_c_tclconfig+set}" = set; then |
| 21926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21927 | else |
| 21928 | |
| 21929 | |
| 21930 | # First check to see if --with-tclconfig was specified. |
| 21931 | if test x"${with_tclconfig}" != x ; then |
| 21932 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
| 21933 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
| 21934 | else |
| 21935 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
| 21936 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} |
| 21937 | { (exit 1); exit 1; }; } |
| 21938 | fi |
| 21939 | fi |
| 21940 | |
| 21941 | # then check for a private Tcl installation |
| 21942 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 21943 | for i in \ |
| 21944 | ../tcl \ |
| 21945 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ |
| 21946 | ../../tcl \ |
| 21947 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ |
| 21948 | ../../../tcl \ |
| 21949 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do |
| 21950 | if test -f "$i/${configdir}/tclConfig.sh" ; then |
| 21951 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` |
| 21952 | break |
| 21953 | fi |
| 21954 | done |
| 21955 | fi |
| 21956 | # check in a few common install locations |
| 21957 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 21958 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 21959 | if test -f "$i/tclConfig.sh" ; then |
| 21960 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
| 21961 | break |
| 21962 | fi |
| 21963 | done |
| 21964 | fi |
| 21965 | # check in a few other private locations |
| 21966 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 21967 | for i in \ |
| 21968 | ${srcdir}/../tcl \ |
| 21969 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do |
| 21970 | if test -f "$i/${configdir}/tclConfig.sh" ; then |
| 21971 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` |
| 21972 | break |
| 21973 | fi |
| 21974 | done |
| 21975 | fi |
| 21976 | |
| 21977 | fi |
| 21978 | |
| 21979 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 21980 | TCLCONFIG="# no Tcl configs found" |
| 21981 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
| 21982 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
| 21983 | else |
| 21984 | no_tcl= |
| 21985 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh |
| 21986 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
| 21987 | echo "${ECHO_T}found $TCLCONFIG" >&6 |
| 21988 | fi |
| 21989 | fi |
| 21990 | |
| 21991 | if test -z "${no_tcl}"; then |
| 21992 | |
| 21993 | . $TCLCONFIG |
| 21994 | |
| 21995 | |
| 21996 | |
| 21997 | |
| 21998 | |
| 21999 | |
| 22000 | |
| 22001 | |
| 22002 | |
| 22003 | |
| 22004 | |
| 22005 | |
| 22006 | |
| 22007 | |
| 22008 | |
| 22009 | |
| 22010 | |
| 22011 | |
| 22012 | |
| 22013 | |
| 22014 | |
| 22015 | |
| 22016 | |
| 22017 | |
| 22018 | |
| 22019 | |
| 22020 | |
| 22021 | # |
| 22022 | # Ok, lets find the tk configuration |
| 22023 | # First, look for one uninstalled. |
| 22024 | # the alternative search directory is invoked by --with-tkconfig |
| 22025 | # |
| 22026 | |
| 22027 | if test x"${no_tk}" = x ; then |
| 22028 | # we reset no_tk in case something fails here |
| 22029 | no_tk=true |
| 22030 | |
| 22031 | # Check whether --with-tkconfig or --without-tkconfig was given. |
| 22032 | if test "${with_tkconfig+set}" = set; then |
| 22033 | withval="$with_tkconfig" |
| 22034 | with_tkconfig=${withval} |
| 22035 | fi; |
| 22036 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 |
| 22037 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 |
| 22038 | if test "${ac_cv_c_tkconfig+set}" = set; then |
| 22039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22040 | else |
| 22041 | |
| 22042 | |
| 22043 | # First check to see if --with-tkconfig was specified. |
| 22044 | if test x"${with_tkconfig}" != x ; then |
| 22045 | if test -f "${with_tkconfig}/tkConfig.sh" ; then |
| 22046 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` |
| 22047 | else |
| 22048 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
| 22049 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} |
| 22050 | { (exit 1); exit 1; }; } |
| 22051 | fi |
| 22052 | fi |
| 22053 | |
| 22054 | # then check for a private Tk library |
| 22055 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 22056 | for i in \ |
| 22057 | ../tk \ |
| 22058 | `ls -dr ../tk[4-9]* 2>/dev/null` \ |
| 22059 | ../../tk \ |
| 22060 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ |
| 22061 | ../../../tk \ |
| 22062 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do |
| 22063 | if test -f "$i/${configdir}/tkConfig.sh" ; then |
| 22064 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` |
| 22065 | break |
| 22066 | fi |
| 22067 | done |
| 22068 | fi |
| 22069 | # check in a few common install locations |
| 22070 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 22071 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 22072 | if test -f "$i/tkConfig.sh" ; then |
| 22073 | ac_cv_c_tkconfig=`(cd $i; pwd)` |
| 22074 | break |
| 22075 | fi |
| 22076 | done |
| 22077 | fi |
| 22078 | # check in a few other private locations |
| 22079 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 22080 | for i in \ |
| 22081 | ${srcdir}/../tk \ |
| 22082 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do |
| 22083 | if test -f "$i/${configdir}/tkConfig.sh" ; then |
| 22084 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` |
| 22085 | break |
| 22086 | fi |
| 22087 | done |
| 22088 | fi |
| 22089 | |
| 22090 | fi |
| 22091 | |
| 22092 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 22093 | TKCONFIG="# no Tk configs found" |
| 22094 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
| 22095 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} |
| 22096 | else |
| 22097 | no_tk= |
| 22098 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh |
| 22099 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
| 22100 | echo "${ECHO_T}found $TKCONFIG" >&6 |
| 22101 | fi |
| 22102 | fi |
| 22103 | |
| 22104 | |
| 22105 | |
| 22106 | # now look for Tcl library stuff |
| 22107 | |
| 22108 | tcldir="../tcl/${configdir}/" |
| 22109 | |
| 22110 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" |
| 22111 | |
| 22112 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
| 22113 | # point to doing Tcl. |
| 22114 | if test -z "${no_tk}"; then |
| 22115 | |
| 22116 | if test -f "$TKCONFIG" ; then |
| 22117 | . $TKCONFIG |
| 22118 | fi |
| 22119 | |
| 22120 | |
| 22121 | |
| 22122 | |
| 22123 | |
| 22124 | |
| 22125 | |
| 22126 | |
| 22127 | |
| 22128 | |
| 22129 | |
| 22130 | |
| 22131 | |
| 22132 | |
| 22133 | # |
| 22134 | # Ok, lets find the tcl source trees so we can use the headers |
| 22135 | # Warning: transition of version 9 to 10 will break this algorithm |
| 22136 | # because 10 sorts before 9. We also look for just tcl. We have to |
| 22137 | # be careful that we don't match stuff like tclX by accident. |
| 22138 | # the alternative search directory is involked by --with-tclinclude |
| 22139 | # |
| 22140 | |
| 22141 | no_tcl=true |
| 22142 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
| 22143 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 |
| 22144 | |
| 22145 | # Check whether --with-tclinclude or --without-tclinclude was given. |
| 22146 | if test "${with_tclinclude+set}" = set; then |
| 22147 | withval="$with_tclinclude" |
| 22148 | with_tclinclude=${withval} |
| 22149 | fi; |
| 22150 | if test "${ac_cv_c_tclh+set}" = set; then |
| 22151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22152 | else |
| 22153 | |
| 22154 | # first check to see if --with-tclinclude was specified |
| 22155 | if test x"${with_tclinclude}" != x ; then |
| 22156 | if test -f ${with_tclinclude}/tclInt.h ; then |
| 22157 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` |
| 22158 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then |
| 22159 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` |
| 22160 | else |
| 22161 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
| 22162 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} |
| 22163 | { (exit 1); exit 1; }; } |
| 22164 | fi |
| 22165 | fi |
| 22166 | |
| 22167 | # next check if it came with Tcl configuration file |
| 22168 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 22169 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then |
| 22170 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` |
| 22171 | fi |
| 22172 | fi |
| 22173 | |
| 22174 | # next check in private source directory |
| 22175 | # |
| 22176 | # since ls returns lowest version numbers first, reverse its output |
| 22177 | if test x"${ac_cv_c_tclh}" = x ; then |
| 22178 | for i in \ |
| 22179 | ${srcdir}/../tcl \ |
| 22180 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ |
| 22181 | ${srcdir}/../../tcl \ |
| 22182 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ |
| 22183 | ${srcdir}/../../../tcl \ |
| 22184 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do |
| 22185 | if test -f $i/generic/tclInt.h ; then |
| 22186 | ac_cv_c_tclh=`(cd $i/generic; pwd)` |
| 22187 | break |
| 22188 | fi |
| 22189 | done |
| 22190 | fi |
| 22191 | # finally check in a few common install locations |
| 22192 | # |
| 22193 | # since ls returns lowest version numbers first, reverse its output |
| 22194 | if test x"${ac_cv_c_tclh}" = x ; then |
| 22195 | for i in \ |
| 22196 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ |
| 22197 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ |
| 22198 | /usr/local/src/tcl \ |
| 22199 | /usr/local/lib/tcl \ |
| 22200 | ${prefix}/include ; do |
| 22201 | if test -f $i/generic/tclInt.h ; then |
| 22202 | ac_cv_c_tclh=`(cd $i/generic; pwd)` |
| 22203 | break |
| 22204 | fi |
| 22205 | done |
| 22206 | fi |
| 22207 | # see if one is installed |
| 22208 | if test x"${ac_cv_c_tclh}" = x ; then |
| 22209 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
| 22210 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
| 22211 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 |
| 22212 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
| 22213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22214 | fi |
| 22215 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
| 22216 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 |
| 22217 | else |
| 22218 | # Is the header compilable? |
| 22219 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 |
| 22220 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 |
| 22221 | cat >conftest.$ac_ext <<_ACEOF |
| 22222 | /* confdefs.h. */ |
| 22223 | _ACEOF |
| 22224 | cat confdefs.h >>conftest.$ac_ext |
| 22225 | cat >>conftest.$ac_ext <<_ACEOF |
| 22226 | /* end confdefs.h. */ |
| 22227 | $ac_includes_default |
| 22228 | #include <tclInt.h> |
| 22229 | _ACEOF |
| 22230 | rm -f conftest.$ac_objext |
| 22231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22232 | (eval $ac_compile) 2>conftest.er1 |
| 22233 | ac_status=$? |
| 22234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22235 | rm -f conftest.er1 |
| 22236 | cat conftest.err >&5 |
| 22237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22238 | (exit $ac_status); } && |
| 22239 | { ac_try='test -z "$ac_c_werror_flag" |
| 22240 | || test ! -s conftest.err' |
| 22241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22242 | (eval $ac_try) 2>&5 |
| 22243 | ac_status=$? |
| 22244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22245 | (exit $ac_status); }; } && |
| 22246 | { ac_try='test -s conftest.$ac_objext' |
| 22247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22248 | (eval $ac_try) 2>&5 |
| 22249 | ac_status=$? |
| 22250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22251 | (exit $ac_status); }; }; then |
| 22252 | ac_header_compiler=yes |
| 22253 | else |
| 22254 | echo "$as_me: failed program was:" >&5 |
| 22255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22256 | |
| 22257 | ac_header_compiler=no |
| 22258 | fi |
| 22259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22260 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 22261 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 22262 | |
| 22263 | # Is the header present? |
| 22264 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 |
| 22265 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 |
| 22266 | cat >conftest.$ac_ext <<_ACEOF |
| 22267 | /* confdefs.h. */ |
| 22268 | _ACEOF |
| 22269 | cat confdefs.h >>conftest.$ac_ext |
| 22270 | cat >>conftest.$ac_ext <<_ACEOF |
| 22271 | /* end confdefs.h. */ |
| 22272 | #include <tclInt.h> |
| 22273 | _ACEOF |
| 22274 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 22275 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 22276 | ac_status=$? |
| 22277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22278 | rm -f conftest.er1 |
| 22279 | cat conftest.err >&5 |
| 22280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22281 | (exit $ac_status); } >/dev/null; then |
| 22282 | if test -s conftest.err; then |
| 22283 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 22284 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 22285 | else |
| 22286 | ac_cpp_err= |
| 22287 | fi |
| 22288 | else |
| 22289 | ac_cpp_err=yes |
| 22290 | fi |
| 22291 | if test -z "$ac_cpp_err"; then |
| 22292 | ac_header_preproc=yes |
| 22293 | else |
| 22294 | echo "$as_me: failed program was:" >&5 |
| 22295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22296 | |
| 22297 | ac_header_preproc=no |
| 22298 | fi |
| 22299 | rm -f conftest.err conftest.$ac_ext |
| 22300 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 22301 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 22302 | |
| 22303 | # So? What about this header? |
| 22304 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 22305 | yes:no: ) |
| 22306 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 22307 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 22308 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 |
| 22309 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} |
| 22310 | ac_header_preproc=yes |
| 22311 | ;; |
| 22312 | no:yes:* ) |
| 22313 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 |
| 22314 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} |
| 22315 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 |
| 22316 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} |
| 22317 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 |
| 22318 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} |
| 22319 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 22320 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 22321 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 |
| 22322 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} |
| 22323 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 |
| 22324 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} |
| 22325 | ( |
| 22326 | cat <<\_ASBOX |
| 22327 | ## ------------------------------------------ ## |
| 22328 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 22329 | ## ------------------------------------------ ## |
| 22330 | _ASBOX |
| 22331 | ) | |
| 22332 | sed "s/^/$as_me: WARNING: /" >&2 |
| 22333 | ;; |
| 22334 | esac |
| 22335 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
| 22336 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 |
| 22337 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
| 22338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22339 | else |
| 22340 | ac_cv_header_tclInt_h=$ac_header_preproc |
| 22341 | fi |
| 22342 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
| 22343 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 |
| 22344 | |
| 22345 | fi |
| 22346 | if test $ac_cv_header_tclInt_h = yes; then |
| 22347 | ac_cv_c_tclh=installed |
| 22348 | else |
| 22349 | ac_cv_c_tclh="" |
| 22350 | fi |
| 22351 | |
| 22352 | |
| 22353 | fi |
| 22354 | |
| 22355 | fi |
| 22356 | |
| 22357 | if test x"${ac_cv_c_tclh}" = x ; then |
| 22358 | TCLHDIR="# no Tcl private headers found" |
| 22359 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
| 22360 | echo "$as_me: error: Can't find Tcl private headers" >&2;} |
| 22361 | { (exit 1); exit 1; }; } |
| 22362 | fi |
| 22363 | if test x"${ac_cv_c_tclh}" != x ; then |
| 22364 | no_tcl="" |
| 22365 | if test x"${ac_cv_c_tclh}" = x"installed" ; then |
| 22366 | echo "$as_me:$LINENO: result: is installed" >&5 |
| 22367 | echo "${ECHO_T}is installed" >&6 |
| 22368 | TCLHDIR="" |
| 22369 | else |
| 22370 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
| 22371 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 |
| 22372 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
| 22373 | TCLHDIR="-I${ac_cv_c_tclh}" |
| 22374 | fi |
| 22375 | fi |
| 22376 | |
| 22377 | |
| 22378 | |
| 22379 | |
| 22380 | # |
| 22381 | # Ok, lets find the tk source trees so we can use the headers |
| 22382 | # If the directory (presumably symlink) named "tk" exists, use that one |
| 22383 | # in preference to any others. Same logic is used when choosing library |
| 22384 | # and again with Tcl. The search order is the best place to look first, then in |
| 22385 | # decreasing significance. The loop breaks if the trigger file is found. |
| 22386 | # Note the gross little conversion here of srcdir by cd'ing to the found |
| 22387 | # directory. This converts the path from a relative to an absolute, so |
| 22388 | # recursive cache variables for the path will work right. We check all |
| 22389 | # the possible paths in one loop rather than many seperate loops to speed |
| 22390 | # things up. |
| 22391 | # the alternative search directory is involked by --with-tkinclude |
| 22392 | # |
| 22393 | no_tk=true |
| 22394 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
| 22395 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 |
| 22396 | |
| 22397 | # Check whether --with-tkinclude or --without-tkinclude was given. |
| 22398 | if test "${with_tkinclude+set}" = set; then |
| 22399 | withval="$with_tkinclude" |
| 22400 | with_tkinclude=${withval} |
| 22401 | fi; |
| 22402 | if test "${ac_cv_c_tkh+set}" = set; then |
| 22403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22404 | else |
| 22405 | |
| 22406 | # first check to see if --with-tkinclude was specified |
| 22407 | if test x"${with_tkinclude}" != x ; then |
| 22408 | if test -f ${with_tkinclude}/tk.h ; then |
| 22409 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` |
| 22410 | elif test -f ${with_tkinclude}/generic/tk.h ; then |
| 22411 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` |
| 22412 | else |
| 22413 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
| 22414 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} |
| 22415 | { (exit 1); exit 1; }; } |
| 22416 | fi |
| 22417 | fi |
| 22418 | |
| 22419 | # next check if it came with Tk configuration file |
| 22420 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 22421 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then |
| 22422 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` |
| 22423 | fi |
| 22424 | fi |
| 22425 | |
| 22426 | # next check in private source directory |
| 22427 | # |
| 22428 | # since ls returns lowest version numbers first, reverse its output |
| 22429 | if test x"${ac_cv_c_tkh}" = x ; then |
| 22430 | for i in \ |
| 22431 | ${srcdir}/../tk \ |
| 22432 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ |
| 22433 | ${srcdir}/../../tk \ |
| 22434 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ |
| 22435 | ${srcdir}/../../../tk \ |
| 22436 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do |
| 22437 | if test -f $i/generic/tk.h ; then |
| 22438 | ac_cv_c_tkh=`(cd $i/generic; pwd)` |
| 22439 | break |
| 22440 | fi |
| 22441 | done |
| 22442 | fi |
| 22443 | # finally check in a few common install locations |
| 22444 | # |
| 22445 | # since ls returns lowest version numbers first, reverse its output |
| 22446 | if test x"${ac_cv_c_tkh}" = x ; then |
| 22447 | for i in \ |
| 22448 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ |
| 22449 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ |
| 22450 | /usr/local/src/tk \ |
| 22451 | /usr/local/lib/tk \ |
| 22452 | ${prefix}/include ; do |
| 22453 | if test -f $i/generic/tk.h ; then |
| 22454 | ac_cv_c_tkh=`(cd $i/generic; pwd)` |
| 22455 | break |
| 22456 | fi |
| 22457 | done |
| 22458 | fi |
| 22459 | # see if one is installed |
| 22460 | if test x"${ac_cv_c_tkh}" = x ; then |
| 22461 | if test "${ac_cv_header_tk_h+set}" = set; then |
| 22462 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
| 22463 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 |
| 22464 | if test "${ac_cv_header_tk_h+set}" = set; then |
| 22465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22466 | fi |
| 22467 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
| 22468 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 |
| 22469 | else |
| 22470 | # Is the header compilable? |
| 22471 | echo "$as_me:$LINENO: checking tk.h usability" >&5 |
| 22472 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 |
| 22473 | cat >conftest.$ac_ext <<_ACEOF |
| 22474 | /* confdefs.h. */ |
| 22475 | _ACEOF |
| 22476 | cat confdefs.h >>conftest.$ac_ext |
| 22477 | cat >>conftest.$ac_ext <<_ACEOF |
| 22478 | /* end confdefs.h. */ |
| 22479 | $ac_includes_default |
| 22480 | #include <tk.h> |
| 22481 | _ACEOF |
| 22482 | rm -f conftest.$ac_objext |
| 22483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22484 | (eval $ac_compile) 2>conftest.er1 |
| 22485 | ac_status=$? |
| 22486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22487 | rm -f conftest.er1 |
| 22488 | cat conftest.err >&5 |
| 22489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22490 | (exit $ac_status); } && |
| 22491 | { ac_try='test -z "$ac_c_werror_flag" |
| 22492 | || test ! -s conftest.err' |
| 22493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22494 | (eval $ac_try) 2>&5 |
| 22495 | ac_status=$? |
| 22496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22497 | (exit $ac_status); }; } && |
| 22498 | { ac_try='test -s conftest.$ac_objext' |
| 22499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22500 | (eval $ac_try) 2>&5 |
| 22501 | ac_status=$? |
| 22502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22503 | (exit $ac_status); }; }; then |
| 22504 | ac_header_compiler=yes |
| 22505 | else |
| 22506 | echo "$as_me: failed program was:" >&5 |
| 22507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22508 | |
| 22509 | ac_header_compiler=no |
| 22510 | fi |
| 22511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22512 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 22513 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 22514 | |
| 22515 | # Is the header present? |
| 22516 | echo "$as_me:$LINENO: checking tk.h presence" >&5 |
| 22517 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 |
| 22518 | cat >conftest.$ac_ext <<_ACEOF |
| 22519 | /* confdefs.h. */ |
| 22520 | _ACEOF |
| 22521 | cat confdefs.h >>conftest.$ac_ext |
| 22522 | cat >>conftest.$ac_ext <<_ACEOF |
| 22523 | /* end confdefs.h. */ |
| 22524 | #include <tk.h> |
| 22525 | _ACEOF |
| 22526 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 22527 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 22528 | ac_status=$? |
| 22529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22530 | rm -f conftest.er1 |
| 22531 | cat conftest.err >&5 |
| 22532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22533 | (exit $ac_status); } >/dev/null; then |
| 22534 | if test -s conftest.err; then |
| 22535 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 22536 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 22537 | else |
| 22538 | ac_cpp_err= |
| 22539 | fi |
| 22540 | else |
| 22541 | ac_cpp_err=yes |
| 22542 | fi |
| 22543 | if test -z "$ac_cpp_err"; then |
| 22544 | ac_header_preproc=yes |
| 22545 | else |
| 22546 | echo "$as_me: failed program was:" >&5 |
| 22547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22548 | |
| 22549 | ac_header_preproc=no |
| 22550 | fi |
| 22551 | rm -f conftest.err conftest.$ac_ext |
| 22552 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 22553 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 22554 | |
| 22555 | # So? What about this header? |
| 22556 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 22557 | yes:no: ) |
| 22558 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 22559 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 22560 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 |
| 22561 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} |
| 22562 | ac_header_preproc=yes |
| 22563 | ;; |
| 22564 | no:yes:* ) |
| 22565 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 |
| 22566 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} |
| 22567 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 |
| 22568 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} |
| 22569 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 |
| 22570 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} |
| 22571 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 22572 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 22573 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 |
| 22574 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} |
| 22575 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 |
| 22576 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} |
| 22577 | ( |
| 22578 | cat <<\_ASBOX |
| 22579 | ## ------------------------------------------ ## |
| 22580 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 22581 | ## ------------------------------------------ ## |
| 22582 | _ASBOX |
| 22583 | ) | |
| 22584 | sed "s/^/$as_me: WARNING: /" >&2 |
| 22585 | ;; |
| 22586 | esac |
| 22587 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
| 22588 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 |
| 22589 | if test "${ac_cv_header_tk_h+set}" = set; then |
| 22590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22591 | else |
| 22592 | ac_cv_header_tk_h=$ac_header_preproc |
| 22593 | fi |
| 22594 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
| 22595 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 |
| 22596 | |
| 22597 | fi |
| 22598 | if test $ac_cv_header_tk_h = yes; then |
| 22599 | ac_cv_c_tkh=installed |
| 22600 | else |
| 22601 | ac_cv_c_tkh="" |
| 22602 | fi |
| 22603 | |
| 22604 | |
| 22605 | fi |
| 22606 | |
| 22607 | fi |
| 22608 | |
| 22609 | if test x"${ac_cv_c_tkh}" != x ; then |
| 22610 | no_tk="" |
| 22611 | if test x"${ac_cv_c_tkh}" = x"installed" ; then |
| 22612 | echo "$as_me:$LINENO: result: is installed" >&5 |
| 22613 | echo "${ECHO_T}is installed" >&6 |
| 22614 | TKHDIR="" |
| 22615 | else |
| 22616 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
| 22617 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 |
| 22618 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
| 22619 | TKHDIR="-I${ac_cv_c_tkh}" |
| 22620 | fi |
| 22621 | else |
| 22622 | TKHDIR="# no Tk directory found" |
| 22623 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
| 22624 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} |
| 22625 | no_tk=true |
| 22626 | fi |
| 22627 | |
| 22628 | |
| 22629 | |
| 22630 | |
| 22631 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 |
| 22632 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 |
| 22633 | if test x"${ac_cv_c_itclh}" = x ; then |
| 22634 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do |
| 22635 | if test -f $i/generic/itcl.h ; then |
| 22636 | ac_cv_c_itclh=`(cd $i/generic; pwd)` |
| 22637 | break |
| 22638 | fi |
| 22639 | done |
| 22640 | fi |
| 22641 | if test x"${ac_cv_c_itclh}" = x ; then |
| 22642 | ITCLHDIR="# no Itcl private headers found" |
| 22643 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
| 22644 | echo "$as_me: error: Can't find Itcl private headers" >&2;} |
| 22645 | { (exit 1); exit 1; }; } |
| 22646 | fi |
| 22647 | if test x"${ac_cv_c_itclh}" != x ; then |
| 22648 | ITCLHDIR="-I${ac_cv_c_itclh}" |
| 22649 | fi |
| 22650 | # should always be here |
| 22651 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" |
| 22652 | |
| 22653 | #AC_SUBST(ITCLLIB) |
| 22654 | |
| 22655 | |
| 22656 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 |
| 22657 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 |
| 22658 | if test x"${ac_cv_c_itkh}" = x ; then |
| 22659 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do |
| 22660 | if test -f $i/generic/itk.h ; then |
| 22661 | ac_cv_c_itkh=`(cd $i/generic; pwd)` |
| 22662 | break |
| 22663 | fi |
| 22664 | done |
| 22665 | fi |
| 22666 | if test x"${ac_cv_c_itkh}" = x ; then |
| 22667 | ITKHDIR="# no Itk private headers found" |
| 22668 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
| 22669 | echo "$as_me: error: Can't find Itk private headers" >&2;} |
| 22670 | { (exit 1); exit 1; }; } |
| 22671 | fi |
| 22672 | if test x"${ac_cv_c_itkh}" != x ; then |
| 22673 | ITKHDIR="-I${ac_cv_c_itkh}" |
| 22674 | fi |
| 22675 | # should always be here |
| 22676 | # ITKLIB="../itcl/itk/unix/libitk.a" |
| 22677 | |
| 22678 | #AC_SUBST(ITKLIB) |
| 22679 | |
| 22680 | |
| 22681 | |
| 22682 | # now look for Tk library stuff |
| 22683 | |
| 22684 | tkdir="../tk/${configdir}/" |
| 22685 | |
| 22686 | TK_DEPS="${tkdir}${TK_LIB_FILE}" |
| 22687 | |
| 22688 | # now look for Itcl library stuff |
| 22689 | |
| 22690 | |
| 22691 | # |
| 22692 | # Ok, lets find the itcl configuration |
| 22693 | # First, look for one uninstalled. |
| 22694 | # the alternative search directory is invoked by --with-itclconfig |
| 22695 | # |
| 22696 | |
| 22697 | if test x"${no_itcl}" = x ; then |
| 22698 | # we reset no_itcl in case something fails here |
| 22699 | no_itcl=true |
| 22700 | |
| 22701 | # Check whether --with-itclconfig or --without-itclconfig was given. |
| 22702 | if test "${with_itclconfig+set}" = set; then |
| 22703 | withval="$with_itclconfig" |
| 22704 | with_itclconfig=${withval} |
| 22705 | fi; |
| 22706 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 |
| 22707 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 |
| 22708 | if test "${ac_cv_c_itclconfig+set}" = set; then |
| 22709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22710 | else |
| 22711 | |
| 22712 | |
| 22713 | # First check to see if --with-itclconfig was specified. |
| 22714 | if test x"${with_itclconfig}" != x ; then |
| 22715 | if test -f "${with_itclconfig}/itclConfig.sh" ; then |
| 22716 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` |
| 22717 | else |
| 22718 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
| 22719 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} |
| 22720 | { (exit 1); exit 1; }; } |
| 22721 | fi |
| 22722 | fi |
| 22723 | |
| 22724 | # then check for a private Itcl library |
| 22725 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 22726 | for i in \ |
| 22727 | ../itcl/itcl \ |
| 22728 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ |
| 22729 | ../../itcl \ |
| 22730 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ |
| 22731 | ../../../itcl \ |
| 22732 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do |
| 22733 | if test -f "$i/itclConfig.sh" ; then |
| 22734 | ac_cv_c_itclconfig=`(cd $i; pwd)` |
| 22735 | break |
| 22736 | fi |
| 22737 | done |
| 22738 | fi |
| 22739 | # check in a few common install locations |
| 22740 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 22741 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 22742 | if test -f "$i/itclConfig.sh" ; then |
| 22743 | ac_cv_c_itclconfig=`(cd $i; pwd)` |
| 22744 | break |
| 22745 | fi |
| 22746 | done |
| 22747 | fi |
| 22748 | # check in a few other private locations |
| 22749 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 22750 | for i in \ |
| 22751 | ${srcdir}/../itcl/itcl \ |
| 22752 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do |
| 22753 | if test -f "$i/itclConfig.sh" ; then |
| 22754 | ac_cv_c_itclconfig=`(cd $i; pwd)` |
| 22755 | break |
| 22756 | fi |
| 22757 | done |
| 22758 | fi |
| 22759 | |
| 22760 | fi |
| 22761 | |
| 22762 | if test x"${ac_cv_c_itclconfig}" = x ; then |
| 22763 | ITCLCONFIG="# no Itcl configs found" |
| 22764 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
| 22765 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} |
| 22766 | else |
| 22767 | no_itcl= |
| 22768 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh |
| 22769 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
| 22770 | echo "${ECHO_T}found $ITCLCONFIG" >&6 |
| 22771 | fi |
| 22772 | fi |
| 22773 | |
| 22774 | if test -z "${no_itcl}"; then |
| 22775 | |
| 22776 | if test -f "$ITCLCONFIG" ; then |
| 22777 | . $ITCLCONFIG |
| 22778 | fi |
| 22779 | |
| 22780 | |
| 22781 | |
| 22782 | |
| 22783 | |
| 22784 | |
| 22785 | |
| 22786 | |
| 22787 | |
| 22788 | |
| 22789 | |
| 22790 | |
| 22791 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" |
| 22792 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
| 22793 | fi |
| 22794 | |
| 22795 | |
| 22796 | # now look for Itk library stuff |
| 22797 | |
| 22798 | # |
| 22799 | # Ok, lets find the itk configuration |
| 22800 | # First, look for one uninstalled. |
| 22801 | # the alternative search directory is invoked by --with-itkconfig |
| 22802 | # |
| 22803 | |
| 22804 | if test x"${no_itk}" = x ; then |
| 22805 | # we reset no_itk in case something fails here |
| 22806 | no_itk=true |
| 22807 | |
| 22808 | # Check whether --with-itkconfig or --without-itkconfig was given. |
| 22809 | if test "${with_itkconfig+set}" = set; then |
| 22810 | withval="$with_itkconfig" |
| 22811 | with_itkconfig=${withval} |
| 22812 | fi; |
| 22813 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 |
| 22814 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 |
| 22815 | if test "${ac_cv_c_itkconfig+set}" = set; then |
| 22816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22817 | else |
| 22818 | |
| 22819 | |
| 22820 | # First check to see if --with-itkconfig was specified. |
| 22821 | if test x"${with_itkconfig}" != x ; then |
| 22822 | if test -f "${with_itkconfig}/itkConfig.sh" ; then |
| 22823 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` |
| 22824 | else |
| 22825 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
| 22826 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} |
| 22827 | { (exit 1); exit 1; }; } |
| 22828 | fi |
| 22829 | fi |
| 22830 | |
| 22831 | # then check for a private Itk library |
| 22832 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 22833 | for i in \ |
| 22834 | ../itcl/itk \ |
| 22835 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ |
| 22836 | ../../itk \ |
| 22837 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ |
| 22838 | ../../../itk \ |
| 22839 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do |
| 22840 | if test -f "$i/itkConfig.sh" ; then |
| 22841 | ac_cv_c_itkconfig=`(cd $i; pwd)` |
| 22842 | break |
| 22843 | fi |
| 22844 | done |
| 22845 | fi |
| 22846 | # check in a few common install locations |
| 22847 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 22848 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do |
| 22849 | if test -f "$i/itkConfig.sh" ; then |
| 22850 | ac_cv_c_itkconfig=`(cd $i; pwd)` |
| 22851 | break |
| 22852 | fi |
| 22853 | done |
| 22854 | fi |
| 22855 | # check in a few other private locations |
| 22856 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 22857 | for i in \ |
| 22858 | ${srcdir}/../itcl/itk \ |
| 22859 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do |
| 22860 | if test -f "$i/itkConfig.sh" ; then |
| 22861 | ac_cv_c_itkconfig=`(cd $i; pwd)` |
| 22862 | break |
| 22863 | fi |
| 22864 | done |
| 22865 | fi |
| 22866 | |
| 22867 | fi |
| 22868 | |
| 22869 | if test x"${ac_cv_c_itkconfig}" = x ; then |
| 22870 | ITKCONFIG="# no Itk configs found" |
| 22871 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
| 22872 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} |
| 22873 | else |
| 22874 | no_itk= |
| 22875 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh |
| 22876 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
| 22877 | echo "${ECHO_T}found $ITKCONFIG" >&6 |
| 22878 | fi |
| 22879 | fi |
| 22880 | |
| 22881 | |
| 22882 | if test -z "${no_itcl}"; then |
| 22883 | |
| 22884 | if test -f "$ITKCONFIG" ; then |
| 22885 | . $ITKCONFIG |
| 22886 | fi |
| 22887 | |
| 22888 | |
| 22889 | |
| 22890 | |
| 22891 | |
| 22892 | |
| 22893 | |
| 22894 | |
| 22895 | |
| 22896 | |
| 22897 | |
| 22898 | |
| 22899 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
| 22900 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
| 22901 | fi |
| 22902 | |
| 22903 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
| 22904 | |
| 22905 | # Include some libraries that Tcl and Tk want. |
| 22906 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
| 22907 | # Yes, the ordering seems wrong here. But it isn't. |
| 22908 | # TK_LIBS is the list of libraries that need to be linked |
| 22909 | # after Tcl/Tk. Note that this isn't put into LIBS. If it |
| 22910 | # were in LIBS then any link tests after this point would |
| 22911 | # try to include things like `$(LIBGUI)', which wouldn't work. |
| 22912 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" |
| 22913 | |
| 22914 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" |
| 22915 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" |
| 22916 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" |
| 22917 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
| 22918 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" |
| 22919 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" |
| 22920 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" |
| 22921 | |
| 22922 | if test x$gdb_cv_os_cygwin = xyes; then |
| 22923 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" |
| 22924 | WIN32LDAPP="-Wl,--subsystem,console" |
| 22925 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" |
| 22926 | fi |
| 22927 | fi |
| 22928 | fi |
| 22929 | |
| 22930 | |
| 22931 | |
| 22932 | subdirs="$subdirs gdbtk" |
| 22933 | |
| 22934 | fi |
| 22935 | |
| 22936 | |
| 22937 | |
| 22938 | |
| 22939 | |
| 22940 | |
| 22941 | |
| 22942 | |
| 22943 | |
| 22944 | |
| 22945 | |
| 22946 | |
| 22947 | |
| 22948 | |
| 22949 | echo "$as_me:$LINENO: checking for X" >&5 |
| 22950 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 22951 | |
| 22952 | |
| 22953 | # Check whether --with-x or --without-x was given. |
| 22954 | if test "${with_x+set}" = set; then |
| 22955 | withval="$with_x" |
| 22956 | |
| 22957 | fi; |
| 22958 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 22959 | if test "x$with_x" = xno; then |
| 22960 | # The user explicitly disabled X. |
| 22961 | have_x=disabled |
| 22962 | else |
| 22963 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 22964 | # Both variables are already set. |
| 22965 | have_x=yes |
| 22966 | else |
| 22967 | if test "${ac_cv_have_x+set}" = set; then |
| 22968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22969 | else |
| 22970 | # One or both of the vars are not set, and there is no cached value. |
| 22971 | ac_x_includes=no ac_x_libraries=no |
| 22972 | rm -fr conftest.dir |
| 22973 | if mkdir conftest.dir; then |
| 22974 | cd conftest.dir |
| 22975 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 22976 | cat >Imakefile <<'_ACEOF' |
| 22977 | acfindx: |
| 22978 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 22979 | _ACEOF |
| 22980 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 22981 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 22982 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 22983 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 22984 | for ac_extension in a so sl; do |
| 22985 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 22986 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 22987 | ac_im_usrlibdir=$ac_im_libdir; break |
| 22988 | fi |
| 22989 | done |
| 22990 | # Screen out bogus values from the imake configuration. They are |
| 22991 | # bogus both because they are the default anyway, and because |
| 22992 | # using them would break gcc on systems where it needs fixed includes. |
| 22993 | case $ac_im_incroot in |
| 22994 | /usr/include) ;; |
| 22995 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 22996 | esac |
| 22997 | case $ac_im_usrlibdir in |
| 22998 | /usr/lib | /lib) ;; |
| 22999 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 23000 | esac |
| 23001 | fi |
| 23002 | cd .. |
| 23003 | rm -fr conftest.dir |
| 23004 | fi |
| 23005 | |
| 23006 | # Standard set of common directories for X headers. |
| 23007 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 23008 | ac_x_header_dirs=' |
| 23009 | /usr/X11/include |
| 23010 | /usr/X11R6/include |
| 23011 | /usr/X11R5/include |
| 23012 | /usr/X11R4/include |
| 23013 | |
| 23014 | /usr/include/X11 |
| 23015 | /usr/include/X11R6 |
| 23016 | /usr/include/X11R5 |
| 23017 | /usr/include/X11R4 |
| 23018 | |
| 23019 | /usr/local/X11/include |
| 23020 | /usr/local/X11R6/include |
| 23021 | /usr/local/X11R5/include |
| 23022 | /usr/local/X11R4/include |
| 23023 | |
| 23024 | /usr/local/include/X11 |
| 23025 | /usr/local/include/X11R6 |
| 23026 | /usr/local/include/X11R5 |
| 23027 | /usr/local/include/X11R4 |
| 23028 | |
| 23029 | /usr/X386/include |
| 23030 | /usr/x386/include |
| 23031 | /usr/XFree86/include/X11 |
| 23032 | |
| 23033 | /usr/include |
| 23034 | /usr/local/include |
| 23035 | /usr/unsupported/include |
| 23036 | /usr/athena/include |
| 23037 | /usr/local/x11r5/include |
| 23038 | /usr/lpp/Xamples/include |
| 23039 | |
| 23040 | /usr/openwin/include |
| 23041 | /usr/openwin/share/include' |
| 23042 | |
| 23043 | if test "$ac_x_includes" = no; then |
| 23044 | # Guess where to find include files, by looking for Intrinsic.h. |
| 23045 | # First, try using that file with no special directory specified. |
| 23046 | cat >conftest.$ac_ext <<_ACEOF |
| 23047 | /* confdefs.h. */ |
| 23048 | _ACEOF |
| 23049 | cat confdefs.h >>conftest.$ac_ext |
| 23050 | cat >>conftest.$ac_ext <<_ACEOF |
| 23051 | /* end confdefs.h. */ |
| 23052 | #include <X11/Intrinsic.h> |
| 23053 | _ACEOF |
| 23054 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 23055 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 23056 | ac_status=$? |
| 23057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23058 | rm -f conftest.er1 |
| 23059 | cat conftest.err >&5 |
| 23060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23061 | (exit $ac_status); } >/dev/null; then |
| 23062 | if test -s conftest.err; then |
| 23063 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 23064 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 23065 | else |
| 23066 | ac_cpp_err= |
| 23067 | fi |
| 23068 | else |
| 23069 | ac_cpp_err=yes |
| 23070 | fi |
| 23071 | if test -z "$ac_cpp_err"; then |
| 23072 | # We can compile using X headers with no special include directory. |
| 23073 | ac_x_includes= |
| 23074 | else |
| 23075 | echo "$as_me: failed program was:" >&5 |
| 23076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23077 | |
| 23078 | for ac_dir in $ac_x_header_dirs; do |
| 23079 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 23080 | ac_x_includes=$ac_dir |
| 23081 | break |
| 23082 | fi |
| 23083 | done |
| 23084 | fi |
| 23085 | rm -f conftest.err conftest.$ac_ext |
| 23086 | fi # $ac_x_includes = no |
| 23087 | |
| 23088 | if test "$ac_x_libraries" = no; then |
| 23089 | # Check for the libraries. |
| 23090 | # See if we find them without any special options. |
| 23091 | # Don't add to $LIBS permanently. |
| 23092 | ac_save_LIBS=$LIBS |
| 23093 | LIBS="-lXt $LIBS" |
| 23094 | cat >conftest.$ac_ext <<_ACEOF |
| 23095 | /* confdefs.h. */ |
| 23096 | _ACEOF |
| 23097 | cat confdefs.h >>conftest.$ac_ext |
| 23098 | cat >>conftest.$ac_ext <<_ACEOF |
| 23099 | /* end confdefs.h. */ |
| 23100 | #include <X11/Intrinsic.h> |
| 23101 | int |
| 23102 | main () |
| 23103 | { |
| 23104 | XtMalloc (0) |
| 23105 | ; |
| 23106 | return 0; |
| 23107 | } |
| 23108 | _ACEOF |
| 23109 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23111 | (eval $ac_link) 2>conftest.er1 |
| 23112 | ac_status=$? |
| 23113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23114 | rm -f conftest.er1 |
| 23115 | cat conftest.err >&5 |
| 23116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23117 | (exit $ac_status); } && |
| 23118 | { ac_try='test -z "$ac_c_werror_flag" |
| 23119 | || test ! -s conftest.err' |
| 23120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23121 | (eval $ac_try) 2>&5 |
| 23122 | ac_status=$? |
| 23123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23124 | (exit $ac_status); }; } && |
| 23125 | { ac_try='test -s conftest$ac_exeext' |
| 23126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23127 | (eval $ac_try) 2>&5 |
| 23128 | ac_status=$? |
| 23129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23130 | (exit $ac_status); }; }; then |
| 23131 | LIBS=$ac_save_LIBS |
| 23132 | # We can link X programs with no special library path. |
| 23133 | ac_x_libraries= |
| 23134 | else |
| 23135 | echo "$as_me: failed program was:" >&5 |
| 23136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23137 | |
| 23138 | LIBS=$ac_save_LIBS |
| 23139 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 23140 | do |
| 23141 | # Don't even attempt the hair of trying to link an X program! |
| 23142 | for ac_extension in a so sl; do |
| 23143 | if test -r $ac_dir/libXt.$ac_extension; then |
| 23144 | ac_x_libraries=$ac_dir |
| 23145 | break 2 |
| 23146 | fi |
| 23147 | done |
| 23148 | done |
| 23149 | fi |
| 23150 | rm -f conftest.err conftest.$ac_objext \ |
| 23151 | conftest$ac_exeext conftest.$ac_ext |
| 23152 | fi # $ac_x_libraries = no |
| 23153 | |
| 23154 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
| 23155 | # Didn't find X anywhere. Cache the known absence of X. |
| 23156 | ac_cv_have_x="have_x=no" |
| 23157 | else |
| 23158 | # Record where we found X for the cache. |
| 23159 | ac_cv_have_x="have_x=yes \ |
| 23160 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 23161 | fi |
| 23162 | fi |
| 23163 | |
| 23164 | fi |
| 23165 | eval "$ac_cv_have_x" |
| 23166 | fi # $with_x != no |
| 23167 | |
| 23168 | if test "$have_x" != yes; then |
| 23169 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 23170 | echo "${ECHO_T}$have_x" >&6 |
| 23171 | no_x=yes |
| 23172 | else |
| 23173 | # If each of the values was on the command line, it overrides each guess. |
| 23174 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 23175 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 23176 | # Update the cache value to reflect the command line values. |
| 23177 | ac_cv_have_x="have_x=yes \ |
| 23178 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 23179 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 23180 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
| 23181 | fi |
| 23182 | |
| 23183 | |
| 23184 | # Check whether we should enable the TUI, but only do so if we really |
| 23185 | # can. |
| 23186 | if test x"$enable_tui" = xyes; then |
| 23187 | if test -d $srcdir/tui; then |
| 23188 | if test "$ac_cv_search_waddstr" != no; then |
| 23189 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" |
| 23190 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" |
| 23191 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" |
| 23192 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" |
| 23193 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" |
| 23194 | CONFIG_ALL="${CONFIG_ALL} all-tui" |
| 23195 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" |
| 23196 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" |
| 23197 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" |
| 23198 | else |
| 23199 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
| 23200 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} |
| 23201 | fi |
| 23202 | fi |
| 23203 | fi |
| 23204 | |
| 23205 | # Unlike the sim directory, whether a simulator is linked is controlled by |
| 23206 | # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file. |
| 23207 | # This code just checks for a few cases where we'd like to ignore those |
| 23208 | # definitions, even when they're present in the '.mt' file. These cases |
| 23209 | # are when --disable-sim is specified, or if the simulator directory is |
| 23210 | # not part of the source tree. |
| 23211 | # |
| 23212 | # Check whether --enable-sim or --disable-sim was given. |
| 23213 | if test "${enable_sim+set}" = set; then |
| 23214 | enableval="$enable_sim" |
| 23215 | echo "enable_sim = $enable_sim"; |
| 23216 | echo "enableval = ${enableval}"; |
| 23217 | case "${enableval}" in |
| 23218 | yes) ignore_sim=false ;; |
| 23219 | no) ignore_sim=true ;; |
| 23220 | *) ignore_sim=false ;; |
| 23221 | esac |
| 23222 | else |
| 23223 | ignore_sim=false |
| 23224 | fi; |
| 23225 | |
| 23226 | if test ! -d "${srcdir}/../sim"; then |
| 23227 | ignore_sim=true |
| 23228 | fi |
| 23229 | |
| 23230 | if test "${ignore_sim}" = "true"; then |
| 23231 | IGNORE_SIM="SIM=" |
| 23232 | IGNORE_SIM_OBS="SIM_OBS=" |
| 23233 | else |
| 23234 | IGNORE_SIM="" |
| 23235 | IGNORE_SIM_OBS="" |
| 23236 | |
| 23237 | cat >>confdefs.h <<\_ACEOF |
| 23238 | #define WITH_SIM 1 |
| 23239 | _ACEOF |
| 23240 | |
| 23241 | fi |
| 23242 | |
| 23243 | |
| 23244 | |
| 23245 | |
| 23246 | |
| 23247 | |
| 23248 | |
| 23249 | |
| 23250 | |
| 23251 | |
| 23252 | |
| 23253 | |
| 23254 | |
| 23255 | |
| 23256 | # List of host floatformats. |
| 23257 | |
| 23258 | cat >>confdefs.h <<_ACEOF |
| 23259 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
| 23260 | _ACEOF |
| 23261 | |
| 23262 | |
| 23263 | cat >>confdefs.h <<_ACEOF |
| 23264 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
| 23265 | _ACEOF |
| 23266 | |
| 23267 | |
| 23268 | cat >>confdefs.h <<_ACEOF |
| 23269 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
| 23270 | _ACEOF |
| 23271 | |
| 23272 | |
| 23273 | # target_subdir is used by the testsuite to find the target libraries. |
| 23274 | target_subdir= |
| 23275 | if test "${host}" != "${target}"; then |
| 23276 | target_subdir="${target_alias}/" |
| 23277 | fi |
| 23278 | |
| 23279 | |
| 23280 | frags= |
| 23281 | if test "${gdb_native}" = "yes"; then |
| 23282 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
| 23283 | if test ! -f ${host_makefile_frag}; then |
| 23284 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
| 23285 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} |
| 23286 | { (exit 1); exit 1; }; } |
| 23287 | fi |
| 23288 | frags="$frags $host_makefile_frag" |
| 23289 | else |
| 23290 | host_makefile_frag=/dev/null |
| 23291 | fi |
| 23292 | |
| 23293 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt |
| 23294 | if test ! -f ${target_makefile_frag}; then |
| 23295 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5 |
| 23296 | echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;} |
| 23297 | { (exit 1); exit 1; }; } |
| 23298 | fi |
| 23299 | frags="$frags $target_makefile_frag" |
| 23300 | |
| 23301 | |
| 23302 | |
| 23303 | |
| 23304 | |
| 23305 | hostfile=`sed -n ' |
| 23306 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
| 23307 | ' ${host_makefile_frag}` |
| 23308 | |
| 23309 | targetfile=`sed -n ' |
| 23310 | s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
| 23311 | ' ${target_makefile_frag}` |
| 23312 | |
| 23313 | if test "${gdb_native}" = "yes"; then |
| 23314 | # We pick this up from the host configuration file (.mh) because we |
| 23315 | # do not have a native configuration Makefile fragment. |
| 23316 | nativefile=`sed -n ' |
| 23317 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
| 23318 | ' ${host_makefile_frag}` |
| 23319 | fi |
| 23320 | |
| 23321 | |
| 23322 | if test x"${gdb_osabi}" != x ; then |
| 23323 | |
| 23324 | cat >>confdefs.h <<_ACEOF |
| 23325 | #define GDB_OSABI_DEFAULT $gdb_osabi |
| 23326 | _ACEOF |
| 23327 | |
| 23328 | fi |
| 23329 | |
| 23330 | # Enable multi-ice-gdb-server. |
| 23331 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
| 23332 | if test "${enable_multi_ice+set}" = set; then |
| 23333 | enableval="$enable_multi_ice" |
| 23334 | case $enableval in |
| 23335 | yes | no) |
| 23336 | ;; |
| 23337 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
| 23338 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} |
| 23339 | { (exit 1); exit 1; }; } ;; |
| 23340 | esac |
| 23341 | fi; |
| 23342 | if test "x$enable_multi_ice" = xyes; then |
| 23343 | |
| 23344 | |
| 23345 | subdirs="$subdirs multi-ice" |
| 23346 | |
| 23347 | fi |
| 23348 | |
| 23349 | # We only build gdbserver automatically in a native configuration. |
| 23350 | if test "$gdb_native" = "yes"; then |
| 23351 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
| 23352 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 |
| 23353 | if test "x$build_gdbserver" = xyes; then |
| 23354 | echo "$as_me:$LINENO: result: yes" >&5 |
| 23355 | echo "${ECHO_T}yes" >&6 |
| 23356 | |
| 23357 | |
| 23358 | subdirs="$subdirs gdbserver" |
| 23359 | |
| 23360 | else |
| 23361 | echo "$as_me:$LINENO: result: no" >&5 |
| 23362 | echo "${ECHO_T}no" >&6 |
| 23363 | fi |
| 23364 | fi |
| 23365 | |
| 23366 | # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or |
| 23367 | # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link |
| 23368 | # to an empty version. |
| 23369 | |
| 23370 | files= |
| 23371 | links= |
| 23372 | |
| 23373 | rm -f xm.h |
| 23374 | xm_h="" |
| 23375 | if test "${hostfile}" != ""; then |
| 23376 | xm_h=xm.h |
| 23377 | case "${hostfile}" in |
| 23378 | xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;; |
| 23379 | * ) GDB_XM_FILE="${hostfile}" |
| 23380 | esac |
| 23381 | files="${files} ${GDB_XM_FILE}" |
| 23382 | links="${links} xm.h" |
| 23383 | |
| 23384 | cat >>confdefs.h <<_ACEOF |
| 23385 | #define GDB_XM_FILE "${GDB_XM_FILE}" |
| 23386 | _ACEOF |
| 23387 | |
| 23388 | fi |
| 23389 | |
| 23390 | |
| 23391 | rm -f tm.h |
| 23392 | tm_h="" |
| 23393 | if test "${targetfile}" != ""; then |
| 23394 | tm_h=tm.h |
| 23395 | case "${targetfile}" in |
| 23396 | tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;; |
| 23397 | * ) GDB_TM_FILE="${targetfile}" |
| 23398 | esac |
| 23399 | files="${files} ${GDB_TM_FILE}" |
| 23400 | links="${links} tm.h" |
| 23401 | |
| 23402 | cat >>confdefs.h <<_ACEOF |
| 23403 | #define GDB_TM_FILE "${GDB_TM_FILE}" |
| 23404 | _ACEOF |
| 23405 | |
| 23406 | fi |
| 23407 | |
| 23408 | |
| 23409 | rm -f nm.h |
| 23410 | nm_h="" |
| 23411 | if test "${nativefile}" != ""; then |
| 23412 | nm_h=nm.h |
| 23413 | case "${nativefile}" in |
| 23414 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; |
| 23415 | * ) GDB_NM_FILE="${nativefile}" |
| 23416 | esac |
| 23417 | files="${files} ${GDB_NM_FILE}" |
| 23418 | links="${links} nm.h" |
| 23419 | |
| 23420 | cat >>confdefs.h <<_ACEOF |
| 23421 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
| 23422 | _ACEOF |
| 23423 | |
| 23424 | fi |
| 23425 | |
| 23426 | |
| 23427 | ac_sources="$files" |
| 23428 | ac_dests="$links" |
| 23429 | while test -n "$ac_sources"; do |
| 23430 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* |
| 23431 | set $ac_sources; ac_source=$1; shift; ac_sources=$* |
| 23432 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" |
| 23433 | done |
| 23434 | ac_config_links="$ac_config_links $ac_config_links_1" |
| 23435 | |
| 23436 | |
| 23437 | |
| 23438 | |
| 23439 | |
| 23440 | |
| 23441 | cat >>confdefs.h <<\_ACEOF |
| 23442 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" |
| 23443 | _ACEOF |
| 23444 | |
| 23445 | |
| 23446 | |
| 23447 | |
| 23448 | |
| 23449 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
| 23450 | if test "${with_libiconv_prefix+set}" = set; then |
| 23451 | withval="$with_libiconv_prefix" |
| 23452 | |
| 23453 | for dir in `echo "$withval" | tr : ' '`; do |
| 23454 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi |
| 23455 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi |
| 23456 | done |
| 23457 | |
| 23458 | fi; |
| 23459 | |
| 23460 | echo "$as_me:$LINENO: checking for iconv" >&5 |
| 23461 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
| 23462 | if test "${am_cv_func_iconv+set}" = set; then |
| 23463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23464 | else |
| 23465 | |
| 23466 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 23467 | am_cv_lib_iconv=no |
| 23468 | cat >conftest.$ac_ext <<_ACEOF |
| 23469 | /* confdefs.h. */ |
| 23470 | _ACEOF |
| 23471 | cat confdefs.h >>conftest.$ac_ext |
| 23472 | cat >>conftest.$ac_ext <<_ACEOF |
| 23473 | /* end confdefs.h. */ |
| 23474 | #include <stdlib.h> |
| 23475 | #include <iconv.h> |
| 23476 | int |
| 23477 | main () |
| 23478 | { |
| 23479 | iconv_t cd = iconv_open("",""); |
| 23480 | iconv(cd,NULL,NULL,NULL,NULL); |
| 23481 | iconv_close(cd); |
| 23482 | ; |
| 23483 | return 0; |
| 23484 | } |
| 23485 | _ACEOF |
| 23486 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23488 | (eval $ac_link) 2>conftest.er1 |
| 23489 | ac_status=$? |
| 23490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23491 | rm -f conftest.er1 |
| 23492 | cat conftest.err >&5 |
| 23493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23494 | (exit $ac_status); } && |
| 23495 | { ac_try='test -z "$ac_c_werror_flag" |
| 23496 | || test ! -s conftest.err' |
| 23497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23498 | (eval $ac_try) 2>&5 |
| 23499 | ac_status=$? |
| 23500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23501 | (exit $ac_status); }; } && |
| 23502 | { ac_try='test -s conftest$ac_exeext' |
| 23503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23504 | (eval $ac_try) 2>&5 |
| 23505 | ac_status=$? |
| 23506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23507 | (exit $ac_status); }; }; then |
| 23508 | am_cv_func_iconv=yes |
| 23509 | else |
| 23510 | echo "$as_me: failed program was:" >&5 |
| 23511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23512 | |
| 23513 | fi |
| 23514 | rm -f conftest.err conftest.$ac_objext \ |
| 23515 | conftest$ac_exeext conftest.$ac_ext |
| 23516 | if test "$am_cv_func_iconv" != yes; then |
| 23517 | am_save_LIBS="$LIBS" |
| 23518 | LIBS="$LIBS -liconv" |
| 23519 | cat >conftest.$ac_ext <<_ACEOF |
| 23520 | /* confdefs.h. */ |
| 23521 | _ACEOF |
| 23522 | cat confdefs.h >>conftest.$ac_ext |
| 23523 | cat >>conftest.$ac_ext <<_ACEOF |
| 23524 | /* end confdefs.h. */ |
| 23525 | #include <stdlib.h> |
| 23526 | #include <iconv.h> |
| 23527 | int |
| 23528 | main () |
| 23529 | { |
| 23530 | iconv_t cd = iconv_open("",""); |
| 23531 | iconv(cd,NULL,NULL,NULL,NULL); |
| 23532 | iconv_close(cd); |
| 23533 | ; |
| 23534 | return 0; |
| 23535 | } |
| 23536 | _ACEOF |
| 23537 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 23539 | (eval $ac_link) 2>conftest.er1 |
| 23540 | ac_status=$? |
| 23541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23542 | rm -f conftest.er1 |
| 23543 | cat conftest.err >&5 |
| 23544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23545 | (exit $ac_status); } && |
| 23546 | { ac_try='test -z "$ac_c_werror_flag" |
| 23547 | || test ! -s conftest.err' |
| 23548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23549 | (eval $ac_try) 2>&5 |
| 23550 | ac_status=$? |
| 23551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23552 | (exit $ac_status); }; } && |
| 23553 | { ac_try='test -s conftest$ac_exeext' |
| 23554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23555 | (eval $ac_try) 2>&5 |
| 23556 | ac_status=$? |
| 23557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23558 | (exit $ac_status); }; }; then |
| 23559 | am_cv_lib_iconv=yes |
| 23560 | am_cv_func_iconv=yes |
| 23561 | else |
| 23562 | echo "$as_me: failed program was:" >&5 |
| 23563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23564 | |
| 23565 | fi |
| 23566 | rm -f conftest.err conftest.$ac_objext \ |
| 23567 | conftest$ac_exeext conftest.$ac_ext |
| 23568 | LIBS="$am_save_LIBS" |
| 23569 | fi |
| 23570 | |
| 23571 | fi |
| 23572 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 23573 | echo "${ECHO_T}$am_cv_func_iconv" >&6 |
| 23574 | if test "$am_cv_func_iconv" = yes; then |
| 23575 | |
| 23576 | cat >>confdefs.h <<\_ACEOF |
| 23577 | #define HAVE_ICONV 1 |
| 23578 | _ACEOF |
| 23579 | |
| 23580 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 23581 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 |
| 23582 | if test "${am_cv_proto_iconv+set}" = set; then |
| 23583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23584 | else |
| 23585 | |
| 23586 | cat >conftest.$ac_ext <<_ACEOF |
| 23587 | /* confdefs.h. */ |
| 23588 | _ACEOF |
| 23589 | cat confdefs.h >>conftest.$ac_ext |
| 23590 | cat >>conftest.$ac_ext <<_ACEOF |
| 23591 | /* end confdefs.h. */ |
| 23592 | |
| 23593 | #include <stdlib.h> |
| 23594 | #include <iconv.h> |
| 23595 | extern |
| 23596 | #ifdef __cplusplus |
| 23597 | "C" |
| 23598 | #endif |
| 23599 | #if defined(__STDC__) || defined(__cplusplus) |
| 23600 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 23601 | #else |
| 23602 | size_t iconv(); |
| 23603 | #endif |
| 23604 | |
| 23605 | int |
| 23606 | main () |
| 23607 | { |
| 23608 | |
| 23609 | ; |
| 23610 | return 0; |
| 23611 | } |
| 23612 | _ACEOF |
| 23613 | rm -f conftest.$ac_objext |
| 23614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23615 | (eval $ac_compile) 2>conftest.er1 |
| 23616 | ac_status=$? |
| 23617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23618 | rm -f conftest.er1 |
| 23619 | cat conftest.err >&5 |
| 23620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23621 | (exit $ac_status); } && |
| 23622 | { ac_try='test -z "$ac_c_werror_flag" |
| 23623 | || test ! -s conftest.err' |
| 23624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23625 | (eval $ac_try) 2>&5 |
| 23626 | ac_status=$? |
| 23627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23628 | (exit $ac_status); }; } && |
| 23629 | { ac_try='test -s conftest.$ac_objext' |
| 23630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 23631 | (eval $ac_try) 2>&5 |
| 23632 | ac_status=$? |
| 23633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23634 | (exit $ac_status); }; }; then |
| 23635 | am_cv_proto_iconv_arg1="" |
| 23636 | else |
| 23637 | echo "$as_me: failed program was:" >&5 |
| 23638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23639 | |
| 23640 | am_cv_proto_iconv_arg1="const" |
| 23641 | fi |
| 23642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23643 | 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);" |
| 23644 | fi |
| 23645 | |
| 23646 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
| 23647 | echo "$as_me:$LINENO: result: ${ac_t:- |
| 23648 | }$am_cv_proto_iconv" >&5 |
| 23649 | echo "${ECHO_T}${ac_t:- |
| 23650 | }$am_cv_proto_iconv" >&6 |
| 23651 | |
| 23652 | cat >>confdefs.h <<_ACEOF |
| 23653 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
| 23654 | _ACEOF |
| 23655 | |
| 23656 | fi |
| 23657 | LIBICONV= |
| 23658 | if test "$am_cv_lib_iconv" = yes; then |
| 23659 | LIBICONV="-liconv" |
| 23660 | fi |
| 23661 | |
| 23662 | |
| 23663 | |
| 23664 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" |
| 23665 | ac_config_commands="$ac_config_commands default" |
| 23666 | cat >confcache <<\_ACEOF |
| 23667 | # This file is a shell script that caches the results of configure |
| 23668 | # tests run on this system so they can be shared between configure |
| 23669 | # scripts and configure runs, see configure's option --config-cache. |
| 23670 | # It is not useful on other systems. If it contains results you don't |
| 23671 | # want to keep, you may remove or edit it. |
| 23672 | # |
| 23673 | # config.status only pays attention to the cache file if you give it |
| 23674 | # the --recheck option to rerun configure. |
| 23675 | # |
| 23676 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 23677 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 23678 | # following values. |
| 23679 | |
| 23680 | _ACEOF |
| 23681 | |
| 23682 | # The following way of writing the cache mishandles newlines in values, |
| 23683 | # but we know of no workaround that is simple, portable, and efficient. |
| 23684 | # So, don't put newlines in cache variables' values. |
| 23685 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 23686 | # and sets the high bit in the cache file unless we assign to the vars. |
| 23687 | { |
| 23688 | (set) 2>&1 | |
| 23689 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 23690 | *ac_space=\ *) |
| 23691 | # `set' does not quote correctly, so add quotes (double-quote |
| 23692 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 23693 | sed -n \ |
| 23694 | "s/'/'\\\\''/g; |
| 23695 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 23696 | ;; |
| 23697 | *) |
| 23698 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 23699 | sed -n \ |
| 23700 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 23701 | ;; |
| 23702 | esac; |
| 23703 | } | |
| 23704 | sed ' |
| 23705 | t clear |
| 23706 | : clear |
| 23707 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 23708 | t end |
| 23709 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 23710 | : end' >>confcache |
| 23711 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 23712 | if test -w $cache_file; then |
| 23713 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 23714 | cat confcache >$cache_file |
| 23715 | else |
| 23716 | echo "not updating unwritable cache $cache_file" |
| 23717 | fi |
| 23718 | fi |
| 23719 | rm -f confcache |
| 23720 | |
| 23721 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 23722 | # Let make expand exec_prefix. |
| 23723 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 23724 | |
| 23725 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 23726 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 23727 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 23728 | # (actually we leave an empty line to preserve line numbers). |
| 23729 | if test "x$srcdir" = x.; then |
| 23730 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 23731 | s/:*\$(srcdir):*/:/; |
| 23732 | s/:*\${srcdir}:*/:/; |
| 23733 | s/:*@srcdir@:*/:/; |
| 23734 | s/^\([^=]*=[ ]*\):*/\1/; |
| 23735 | s/:*$//; |
| 23736 | s/^[^=]*=[ ]*$//; |
| 23737 | }' |
| 23738 | fi |
| 23739 | |
| 23740 | DEFS=-DHAVE_CONFIG_H |
| 23741 | |
| 23742 | ac_libobjs= |
| 23743 | ac_ltlibobjs= |
| 23744 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 23745 | # 1. Remove the extension, and $U if already installed. |
| 23746 | ac_i=`echo "$ac_i" | |
| 23747 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 23748 | # 2. Add them. |
| 23749 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 23750 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 23751 | done |
| 23752 | LIBOBJS=$ac_libobjs |
| 23753 | |
| 23754 | LTLIBOBJS=$ac_ltlibobjs |
| 23755 | |
| 23756 | |
| 23757 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 23758 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 23759 | Usually this means the macro was only invoked conditionally." >&5 |
| 23760 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 23761 | Usually this means the macro was only invoked conditionally." >&2;} |
| 23762 | { (exit 1); exit 1; }; } |
| 23763 | fi |
| 23764 | |
| 23765 | : ${CONFIG_STATUS=./config.status} |
| 23766 | ac_clean_files_save=$ac_clean_files |
| 23767 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 23768 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 23769 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 23770 | cat >$CONFIG_STATUS <<_ACEOF |
| 23771 | #! $SHELL |
| 23772 | # Generated by $as_me. |
| 23773 | # Run this file to recreate the current configuration. |
| 23774 | # Compiler output produced by configure, useful for debugging |
| 23775 | # configure, is in config.log if it exists. |
| 23776 | |
| 23777 | debug=false |
| 23778 | ac_cs_recheck=false |
| 23779 | ac_cs_silent=false |
| 23780 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 23781 | _ACEOF |
| 23782 | |
| 23783 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23784 | ## --------------------- ## |
| 23785 | ## M4sh Initialization. ## |
| 23786 | ## --------------------- ## |
| 23787 | |
| 23788 | # Be Bourne compatible |
| 23789 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 23790 | emulate sh |
| 23791 | NULLCMD=: |
| 23792 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 23793 | # is contrary to our usage. Disable this feature. |
| 23794 | alias -g '${1+"$@"}'='"$@"' |
| 23795 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 23796 | set -o posix |
| 23797 | fi |
| 23798 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23799 | |
| 23800 | # Support unset when possible. |
| 23801 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 23802 | as_unset=unset |
| 23803 | else |
| 23804 | as_unset=false |
| 23805 | fi |
| 23806 | |
| 23807 | |
| 23808 | # Work around bugs in pre-3.0 UWIN ksh. |
| 23809 | $as_unset ENV MAIL MAILPATH |
| 23810 | PS1='$ ' |
| 23811 | PS2='> ' |
| 23812 | PS4='+ ' |
| 23813 | |
| 23814 | # NLS nuisances. |
| 23815 | for as_var in \ |
| 23816 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 23817 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 23818 | LC_TELEPHONE LC_TIME |
| 23819 | do |
| 23820 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 23821 | eval $as_var=C; export $as_var |
| 23822 | else |
| 23823 | $as_unset $as_var |
| 23824 | fi |
| 23825 | done |
| 23826 | |
| 23827 | # Required to use basename. |
| 23828 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 23829 | as_expr=expr |
| 23830 | else |
| 23831 | as_expr=false |
| 23832 | fi |
| 23833 | |
| 23834 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 23835 | as_basename=basename |
| 23836 | else |
| 23837 | as_basename=false |
| 23838 | fi |
| 23839 | |
| 23840 | |
| 23841 | # Name of the executable. |
| 23842 | as_me=`$as_basename "$0" || |
| 23843 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 23844 | X"$0" : 'X\(//\)$' \| \ |
| 23845 | X"$0" : 'X\(/\)$' \| \ |
| 23846 | . : '\(.\)' 2>/dev/null || |
| 23847 | echo X/"$0" | |
| 23848 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 23849 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 23850 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 23851 | s/.*/./; q'` |
| 23852 | |
| 23853 | |
| 23854 | # PATH needs CR, and LINENO needs CR and PATH. |
| 23855 | # Avoid depending upon Character Ranges. |
| 23856 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 23857 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 23858 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 23859 | as_cr_digits='0123456789' |
| 23860 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 23861 | |
| 23862 | # The user is always right. |
| 23863 | if test "${PATH_SEPARATOR+set}" != set; then |
| 23864 | echo "#! /bin/sh" >conf$$.sh |
| 23865 | echo "exit 0" >>conf$$.sh |
| 23866 | chmod +x conf$$.sh |
| 23867 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 23868 | PATH_SEPARATOR=';' |
| 23869 | else |
| 23870 | PATH_SEPARATOR=: |
| 23871 | fi |
| 23872 | rm -f conf$$.sh |
| 23873 | fi |
| 23874 | |
| 23875 | |
| 23876 | as_lineno_1=$LINENO |
| 23877 | as_lineno_2=$LINENO |
| 23878 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 23879 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 23880 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 23881 | # Find who we are. Look in the path if we contain no path at all |
| 23882 | # relative or not. |
| 23883 | case $0 in |
| 23884 | *[\\/]* ) as_myself=$0 ;; |
| 23885 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23886 | for as_dir in $PATH |
| 23887 | do |
| 23888 | IFS=$as_save_IFS |
| 23889 | test -z "$as_dir" && as_dir=. |
| 23890 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 23891 | done |
| 23892 | |
| 23893 | ;; |
| 23894 | esac |
| 23895 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 23896 | # in which case we are not to be found in the path. |
| 23897 | if test "x$as_myself" = x; then |
| 23898 | as_myself=$0 |
| 23899 | fi |
| 23900 | if test ! -f "$as_myself"; then |
| 23901 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 23902 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 23903 | { (exit 1); exit 1; }; } |
| 23904 | fi |
| 23905 | case $CONFIG_SHELL in |
| 23906 | '') |
| 23907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23908 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 23909 | do |
| 23910 | IFS=$as_save_IFS |
| 23911 | test -z "$as_dir" && as_dir=. |
| 23912 | for as_base in sh bash ksh sh5; do |
| 23913 | case $as_dir in |
| 23914 | /*) |
| 23915 | if ("$as_dir/$as_base" -c ' |
| 23916 | as_lineno_1=$LINENO |
| 23917 | as_lineno_2=$LINENO |
| 23918 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 23919 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 23920 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 23921 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 23922 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 23923 | CONFIG_SHELL=$as_dir/$as_base |
| 23924 | export CONFIG_SHELL |
| 23925 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 23926 | fi;; |
| 23927 | esac |
| 23928 | done |
| 23929 | done |
| 23930 | ;; |
| 23931 | esac |
| 23932 | |
| 23933 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 23934 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 23935 | # line-number line before each line; the second 'sed' does the real |
| 23936 | # work. The second script uses 'N' to pair each line-number line |
| 23937 | # with the numbered line, and appends trailing '-' during |
| 23938 | # substitution so that $LINENO is not a special case at line end. |
| 23939 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 23940 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 23941 | sed '=' <$as_myself | |
| 23942 | sed ' |
| 23943 | N |
| 23944 | s,$,-, |
| 23945 | : loop |
| 23946 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 23947 | t loop |
| 23948 | s,-$,, |
| 23949 | s,^['$as_cr_digits']*\n,, |
| 23950 | ' >$as_me.lineno && |
| 23951 | chmod +x $as_me.lineno || |
| 23952 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 23953 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 23954 | { (exit 1); exit 1; }; } |
| 23955 | |
| 23956 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 23957 | # (the dirname of $[0] is not the place where we might find the |
| 23958 | # original and so on. Autoconf is especially sensible to this). |
| 23959 | . ./$as_me.lineno |
| 23960 | # Exit status is that of the last command. |
| 23961 | exit |
| 23962 | } |
| 23963 | |
| 23964 | |
| 23965 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 23966 | *c*,-n*) ECHO_N= ECHO_C=' |
| 23967 | ' ECHO_T=' ' ;; |
| 23968 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 23969 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 23970 | esac |
| 23971 | |
| 23972 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 23973 | as_expr=expr |
| 23974 | else |
| 23975 | as_expr=false |
| 23976 | fi |
| 23977 | |
| 23978 | rm -f conf$$ conf$$.exe conf$$.file |
| 23979 | echo >conf$$.file |
| 23980 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 23981 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 23982 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 23983 | if test -f conf$$.exe; then |
| 23984 | # Don't use ln at all; we don't have any links |
| 23985 | as_ln_s='cp -p' |
| 23986 | else |
| 23987 | as_ln_s='ln -s' |
| 23988 | fi |
| 23989 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 23990 | as_ln_s=ln |
| 23991 | else |
| 23992 | as_ln_s='cp -p' |
| 23993 | fi |
| 23994 | rm -f conf$$ conf$$.exe conf$$.file |
| 23995 | |
| 23996 | if mkdir -p . 2>/dev/null; then |
| 23997 | as_mkdir_p=: |
| 23998 | else |
| 23999 | test -d ./-p && rmdir ./-p |
| 24000 | as_mkdir_p=false |
| 24001 | fi |
| 24002 | |
| 24003 | as_executable_p="test -f" |
| 24004 | |
| 24005 | # Sed expression to map a string onto a valid CPP name. |
| 24006 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 24007 | |
| 24008 | # Sed expression to map a string onto a valid variable name. |
| 24009 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 24010 | |
| 24011 | |
| 24012 | # IFS |
| 24013 | # We need space, tab and new line, in precisely that order. |
| 24014 | as_nl=' |
| 24015 | ' |
| 24016 | IFS=" $as_nl" |
| 24017 | |
| 24018 | # CDPATH. |
| 24019 | $as_unset CDPATH |
| 24020 | |
| 24021 | exec 6>&1 |
| 24022 | |
| 24023 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 24024 | # report actual input values of CONFIG_FILES etc. instead of their |
| 24025 | # values after options handling. Logging --version etc. is OK. |
| 24026 | exec 5>>config.log |
| 24027 | { |
| 24028 | echo |
| 24029 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 24030 | ## Running $as_me. ## |
| 24031 | _ASBOX |
| 24032 | } >&5 |
| 24033 | cat >&5 <<_CSEOF |
| 24034 | |
| 24035 | This file was extended by $as_me, which was |
| 24036 | generated by GNU Autoconf 2.59. Invocation command line was |
| 24037 | |
| 24038 | CONFIG_FILES = $CONFIG_FILES |
| 24039 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 24040 | CONFIG_LINKS = $CONFIG_LINKS |
| 24041 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 24042 | $ $0 $@ |
| 24043 | |
| 24044 | _CSEOF |
| 24045 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 24046 | echo >&5 |
| 24047 | _ACEOF |
| 24048 | |
| 24049 | # Files that config.status was made for. |
| 24050 | if test -n "$ac_config_files"; then |
| 24051 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 24052 | fi |
| 24053 | |
| 24054 | if test -n "$ac_config_headers"; then |
| 24055 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 24056 | fi |
| 24057 | |
| 24058 | if test -n "$ac_config_links"; then |
| 24059 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 24060 | fi |
| 24061 | |
| 24062 | if test -n "$ac_config_commands"; then |
| 24063 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 24064 | fi |
| 24065 | |
| 24066 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24067 | |
| 24068 | ac_cs_usage="\ |
| 24069 | \`$as_me' instantiates files from templates according to the |
| 24070 | current configuration. |
| 24071 | |
| 24072 | Usage: $0 [OPTIONS] [FILE]... |
| 24073 | |
| 24074 | -h, --help print this help, then exit |
| 24075 | -V, --version print version number, then exit |
| 24076 | -q, --quiet do not print progress messages |
| 24077 | -d, --debug don't remove temporary files |
| 24078 | --recheck update $as_me by reconfiguring in the same conditions |
| 24079 | --file=FILE[:TEMPLATE] |
| 24080 | instantiate the configuration file FILE |
| 24081 | --header=FILE[:TEMPLATE] |
| 24082 | instantiate the configuration header FILE |
| 24083 | |
| 24084 | Configuration files: |
| 24085 | $config_files |
| 24086 | |
| 24087 | Configuration headers: |
| 24088 | $config_headers |
| 24089 | |
| 24090 | Configuration links: |
| 24091 | $config_links |
| 24092 | |
| 24093 | Configuration commands: |
| 24094 | $config_commands |
| 24095 | |
| 24096 | Report bugs to <bug-autoconf@gnu.org>." |
| 24097 | _ACEOF |
| 24098 | |
| 24099 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24100 | ac_cs_version="\\ |
| 24101 | config.status |
| 24102 | configured by $0, generated by GNU Autoconf 2.59, |
| 24103 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 24104 | |
| 24105 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 24106 | This config.status script is free software; the Free Software Foundation |
| 24107 | gives unlimited permission to copy, distribute and modify it." |
| 24108 | srcdir=$srcdir |
| 24109 | INSTALL="$INSTALL" |
| 24110 | _ACEOF |
| 24111 | |
| 24112 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24113 | # If no file are specified by the user, then we need to provide default |
| 24114 | # value. By we need to know if files were specified by the user. |
| 24115 | ac_need_defaults=: |
| 24116 | while test $# != 0 |
| 24117 | do |
| 24118 | case $1 in |
| 24119 | --*=*) |
| 24120 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 24121 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 24122 | ac_shift=: |
| 24123 | ;; |
| 24124 | -*) |
| 24125 | ac_option=$1 |
| 24126 | ac_optarg=$2 |
| 24127 | ac_shift=shift |
| 24128 | ;; |
| 24129 | *) # This is not an option, so the user has probably given explicit |
| 24130 | # arguments. |
| 24131 | ac_option=$1 |
| 24132 | ac_need_defaults=false;; |
| 24133 | esac |
| 24134 | |
| 24135 | case $ac_option in |
| 24136 | # Handling of the options. |
| 24137 | _ACEOF |
| 24138 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24139 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 24140 | ac_cs_recheck=: ;; |
| 24141 | --version | --vers* | -V ) |
| 24142 | echo "$ac_cs_version"; exit 0 ;; |
| 24143 | --he | --h) |
| 24144 | # Conflict between --help and --header |
| 24145 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 24146 | Try \`$0 --help' for more information." >&5 |
| 24147 | echo "$as_me: error: ambiguous option: $1 |
| 24148 | Try \`$0 --help' for more information." >&2;} |
| 24149 | { (exit 1); exit 1; }; };; |
| 24150 | --help | --hel | -h ) |
| 24151 | echo "$ac_cs_usage"; exit 0 ;; |
| 24152 | --debug | --d* | -d ) |
| 24153 | debug=: ;; |
| 24154 | --file | --fil | --fi | --f ) |
| 24155 | $ac_shift |
| 24156 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 24157 | ac_need_defaults=false;; |
| 24158 | --header | --heade | --head | --hea ) |
| 24159 | $ac_shift |
| 24160 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 24161 | ac_need_defaults=false;; |
| 24162 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 24163 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 24164 | ac_cs_silent=: ;; |
| 24165 | |
| 24166 | # This is an error. |
| 24167 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 24168 | Try \`$0 --help' for more information." >&5 |
| 24169 | echo "$as_me: error: unrecognized option: $1 |
| 24170 | Try \`$0 --help' for more information." >&2;} |
| 24171 | { (exit 1); exit 1; }; } ;; |
| 24172 | |
| 24173 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 24174 | |
| 24175 | esac |
| 24176 | shift |
| 24177 | done |
| 24178 | |
| 24179 | ac_configure_extra_args= |
| 24180 | |
| 24181 | if $ac_cs_silent; then |
| 24182 | exec 6>/dev/null |
| 24183 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 24184 | fi |
| 24185 | |
| 24186 | _ACEOF |
| 24187 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24188 | if \$ac_cs_recheck; then |
| 24189 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 24190 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 24191 | fi |
| 24192 | |
| 24193 | _ACEOF |
| 24194 | |
| 24195 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24196 | # |
| 24197 | # INIT-COMMANDS section. |
| 24198 | # |
| 24199 | |
| 24200 | |
| 24201 | GCC="$GCC" |
| 24202 | CC="$CC" |
| 24203 | acx_cv_header_stdint="$acx_cv_header_stdint" |
| 24204 | acx_cv_type_int8_t="$acx_cv_type_int8_t" |
| 24205 | acx_cv_type_int16_t="$acx_cv_type_int16_t" |
| 24206 | acx_cv_type_int32_t="$acx_cv_type_int32_t" |
| 24207 | acx_cv_type_int64_t="$acx_cv_type_int64_t" |
| 24208 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" |
| 24209 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" |
| 24210 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" |
| 24211 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" |
| 24212 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" |
| 24213 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" |
| 24214 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" |
| 24215 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" |
| 24216 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" |
| 24217 | |
| 24218 | |
| 24219 | gdb_host_cpu=$gdb_host_cpu |
| 24220 | gdb_target_cpu=$gdb_target_cpu |
| 24221 | nativefile=$nativefile |
| 24222 | |
| 24223 | |
| 24224 | _ACEOF |
| 24225 | |
| 24226 | |
| 24227 | |
| 24228 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24229 | for ac_config_target in $ac_config_targets |
| 24230 | do |
| 24231 | case "$ac_config_target" in |
| 24232 | # Handling of arguments. |
| 24233 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 24234 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; |
| 24235 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; |
| 24236 | "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;; |
| 24237 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 24238 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
| 24239 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 24240 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 24241 | { (exit 1); exit 1; }; };; |
| 24242 | esac |
| 24243 | done |
| 24244 | |
| 24245 | # If the user did not use the arguments to specify the items to instantiate, |
| 24246 | # then the envvar interface is used. Set only those that are not. |
| 24247 | # We use the long form for the default assignment because of an extremely |
| 24248 | # bizarre bug on SunOS 4.1.3. |
| 24249 | if $ac_need_defaults; then |
| 24250 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 24251 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 24252 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
| 24253 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 24254 | fi |
| 24255 | |
| 24256 | # Have a temporary directory for convenience. Make it in the build tree |
| 24257 | # simply because there is no reason to put it here, and in addition, |
| 24258 | # creating and moving files from /tmp can sometimes cause problems. |
| 24259 | # Create a temporary directory, and hook for its removal unless debugging. |
| 24260 | $debug || |
| 24261 | { |
| 24262 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 24263 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 24264 | } |
| 24265 | |
| 24266 | # Create a (secure) tmp directory for tmp files. |
| 24267 | |
| 24268 | { |
| 24269 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 24270 | test -n "$tmp" && test -d "$tmp" |
| 24271 | } || |
| 24272 | { |
| 24273 | tmp=./confstat$$-$RANDOM |
| 24274 | (umask 077 && mkdir $tmp) |
| 24275 | } || |
| 24276 | { |
| 24277 | echo "$me: cannot create a temporary directory in ." >&2 |
| 24278 | { (exit 1); exit 1; } |
| 24279 | } |
| 24280 | |
| 24281 | _ACEOF |
| 24282 | |
| 24283 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24284 | |
| 24285 | # |
| 24286 | # CONFIG_FILES section. |
| 24287 | # |
| 24288 | |
| 24289 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 24290 | # This happens for instance when ./config.status config.h |
| 24291 | if test -n "\$CONFIG_FILES"; then |
| 24292 | # Protect against being on the right side of a sed subst in config.status. |
| 24293 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 24294 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 24295 | s,@SHELL@,$SHELL,;t t |
| 24296 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 24297 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 24298 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 24299 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 24300 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 24301 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 24302 | s,@exec_prefix@,$exec_prefix,;t t |
| 24303 | s,@prefix@,$prefix,;t t |
| 24304 | s,@program_transform_name@,$program_transform_name,;t t |
| 24305 | s,@bindir@,$bindir,;t t |
| 24306 | s,@sbindir@,$sbindir,;t t |
| 24307 | s,@libexecdir@,$libexecdir,;t t |
| 24308 | s,@datadir@,$datadir,;t t |
| 24309 | s,@sysconfdir@,$sysconfdir,;t t |
| 24310 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 24311 | s,@localstatedir@,$localstatedir,;t t |
| 24312 | s,@libdir@,$libdir,;t t |
| 24313 | s,@includedir@,$includedir,;t t |
| 24314 | s,@oldincludedir@,$oldincludedir,;t t |
| 24315 | s,@infodir@,$infodir,;t t |
| 24316 | s,@mandir@,$mandir,;t t |
| 24317 | s,@build_alias@,$build_alias,;t t |
| 24318 | s,@host_alias@,$host_alias,;t t |
| 24319 | s,@target_alias@,$target_alias,;t t |
| 24320 | s,@DEFS@,$DEFS,;t t |
| 24321 | s,@ECHO_C@,$ECHO_C,;t t |
| 24322 | s,@ECHO_N@,$ECHO_N,;t t |
| 24323 | s,@ECHO_T@,$ECHO_T,;t t |
| 24324 | s,@LIBS@,$LIBS,;t t |
| 24325 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| 24326 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| 24327 | s,@MAINT@,$MAINT,;t t |
| 24328 | s,@CC@,$CC,;t t |
| 24329 | s,@CFLAGS@,$CFLAGS,;t t |
| 24330 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 24331 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 24332 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 24333 | s,@EXEEXT@,$EXEEXT,;t t |
| 24334 | s,@OBJEXT@,$OBJEXT,;t t |
| 24335 | s,@CPP@,$CPP,;t t |
| 24336 | s,@EGREP@,$EGREP,;t t |
| 24337 | s,@build@,$build,;t t |
| 24338 | s,@build_cpu@,$build_cpu,;t t |
| 24339 | s,@build_vendor@,$build_vendor,;t t |
| 24340 | s,@build_os@,$build_os,;t t |
| 24341 | s,@host@,$host,;t t |
| 24342 | s,@host_cpu@,$host_cpu,;t t |
| 24343 | s,@host_vendor@,$host_vendor,;t t |
| 24344 | s,@host_os@,$host_os,;t t |
| 24345 | s,@target@,$target,;t t |
| 24346 | s,@target_cpu@,$target_cpu,;t t |
| 24347 | s,@target_vendor@,$target_vendor,;t t |
| 24348 | s,@target_os@,$target_os,;t t |
| 24349 | s,@USE_NLS@,$USE_NLS,;t t |
| 24350 | s,@LIBINTL@,$LIBINTL,;t t |
| 24351 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t |
| 24352 | s,@INCINTL@,$INCINTL,;t t |
| 24353 | s,@XGETTEXT@,$XGETTEXT,;t t |
| 24354 | s,@GMSGFMT@,$GMSGFMT,;t t |
| 24355 | s,@POSUB@,$POSUB,;t t |
| 24356 | s,@CATALOGS@,$CATALOGS,;t t |
| 24357 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
| 24358 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
| 24359 | s,@GENCAT@,$GENCAT,;t t |
| 24360 | s,@CATOBJEXT@,$CATOBJEXT,;t t |
| 24361 | s,@localedir@,$localedir,;t t |
| 24362 | s,@PACKAGE@,$PACKAGE,;t t |
| 24363 | s,@subdirs@,$subdirs,;t t |
| 24364 | s,@AWK@,$AWK,;t t |
| 24365 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 24366 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 24367 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 24368 | s,@LN_S@,$LN_S,;t t |
| 24369 | s,@RANLIB@,$RANLIB,;t t |
| 24370 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 24371 | s,@YACC@,$YACC,;t t |
| 24372 | s,@AR@,$AR,;t t |
| 24373 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 24374 | s,@DLLTOOL@,$DLLTOOL,;t t |
| 24375 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t |
| 24376 | s,@WINDRES@,$WINDRES,;t t |
| 24377 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t |
| 24378 | s,@MIG@,$MIG,;t t |
| 24379 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t |
| 24380 | s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t |
| 24381 | s,@LIBEXPAT@,$LIBEXPAT,;t t |
| 24382 | s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t |
| 24383 | s,@ALLOCA@,$ALLOCA,;t t |
| 24384 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t |
| 24385 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t |
| 24386 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t |
| 24387 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
| 24388 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t |
| 24389 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t |
| 24390 | s,@WIN32LIBS@,$WIN32LIBS,;t t |
| 24391 | s,@LIBGUI@,$LIBGUI,;t t |
| 24392 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t |
| 24393 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t |
| 24394 | s,@TCL_VERSION@,$TCL_VERSION,;t t |
| 24395 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t |
| 24396 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t |
| 24397 | s,@TCL_CC@,$TCL_CC,;t t |
| 24398 | s,@TCL_DEFS@,$TCL_DEFS,;t t |
| 24399 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t |
| 24400 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t |
| 24401 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t |
| 24402 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t |
| 24403 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t |
| 24404 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t |
| 24405 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t |
| 24406 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t |
| 24407 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t |
| 24408 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t |
| 24409 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t |
| 24410 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t |
| 24411 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t |
| 24412 | s,@TK_VERSION@,$TK_VERSION,;t t |
| 24413 | s,@TK_DEFS@,$TK_DEFS,;t t |
| 24414 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t |
| 24415 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t |
| 24416 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t |
| 24417 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t |
| 24418 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t |
| 24419 | s,@TCLHDIR@,$TCLHDIR,;t t |
| 24420 | s,@TKHDIR@,$TKHDIR,;t t |
| 24421 | s,@ITCLHDIR@,$ITCLHDIR,;t t |
| 24422 | s,@ITKHDIR@,$ITKHDIR,;t t |
| 24423 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t |
| 24424 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t |
| 24425 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t |
| 24426 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t |
| 24427 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t |
| 24428 | s,@ITK_VERSION@,$ITK_VERSION,;t t |
| 24429 | s,@ITK_DEFS@,$ITK_DEFS,;t t |
| 24430 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t |
| 24431 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t |
| 24432 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t |
| 24433 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 24434 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t |
| 24435 | s,@X_LIBS@,$X_LIBS,;t t |
| 24436 | s,@TCL_DEPS@,$TCL_DEPS,;t t |
| 24437 | s,@TK_DEPS@,$TK_DEPS,;t t |
| 24438 | s,@ITCLLIB@,$ITCLLIB,;t t |
| 24439 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t |
| 24440 | s,@ITKLIB@,$ITKLIB,;t t |
| 24441 | s,@ITK_DEPS@,$ITK_DEPS,;t t |
| 24442 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t |
| 24443 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t |
| 24444 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t |
| 24445 | s,@IGNORE_SIM@,$IGNORE_SIM,;t t |
| 24446 | s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t |
| 24447 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t |
| 24448 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t |
| 24449 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t |
| 24450 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t |
| 24451 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t |
| 24452 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t |
| 24453 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t |
| 24454 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t |
| 24455 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t |
| 24456 | s,@target_subdir@,$target_subdir,;t t |
| 24457 | s,@frags@,$frags,;t t |
| 24458 | s,@xm_h@,$xm_h,;t t |
| 24459 | s,@tm_h@,$tm_h,;t t |
| 24460 | s,@nm_h@,$nm_h,;t t |
| 24461 | s,@LIBICONV@,$LIBICONV,;t t |
| 24462 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 24463 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 24464 | /@host_makefile_frag@/r $host_makefile_frag |
| 24465 | s,@host_makefile_frag@,,;t t |
| 24466 | /@target_makefile_frag@/r $target_makefile_frag |
| 24467 | s,@target_makefile_frag@,,;t t |
| 24468 | CEOF |
| 24469 | |
| 24470 | _ACEOF |
| 24471 | |
| 24472 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24473 | # Split the substitutions into bite-sized pieces for seds with |
| 24474 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 24475 | ac_max_sed_lines=48 |
| 24476 | ac_sed_frag=1 # Number of current file. |
| 24477 | ac_beg=1 # First line for current file. |
| 24478 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 24479 | ac_more_lines=: |
| 24480 | ac_sed_cmds= |
| 24481 | while $ac_more_lines; do |
| 24482 | if test $ac_beg -gt 1; then |
| 24483 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 24484 | else |
| 24485 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 24486 | fi |
| 24487 | if test ! -s $tmp/subs.frag; then |
| 24488 | ac_more_lines=false |
| 24489 | else |
| 24490 | # The purpose of the label and of the branching condition is to |
| 24491 | # speed up the sed processing (if there are no `@' at all, there |
| 24492 | # is no need to browse any of the substitutions). |
| 24493 | # These are the two extra sed commands mentioned above. |
| 24494 | (echo ':t |
| 24495 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 24496 | if test -z "$ac_sed_cmds"; then |
| 24497 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 24498 | else |
| 24499 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 24500 | fi |
| 24501 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 24502 | ac_beg=$ac_end |
| 24503 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 24504 | fi |
| 24505 | done |
| 24506 | if test -z "$ac_sed_cmds"; then |
| 24507 | ac_sed_cmds=cat |
| 24508 | fi |
| 24509 | fi # test -n "$CONFIG_FILES" |
| 24510 | |
| 24511 | _ACEOF |
| 24512 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24513 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 24514 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 24515 | case $ac_file in |
| 24516 | - | *:- | *:-:* ) # input from stdin |
| 24517 | cat >$tmp/stdin |
| 24518 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 24519 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 24520 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 24521 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 24522 | * ) ac_file_in=$ac_file.in ;; |
| 24523 | esac |
| 24524 | |
| 24525 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 24526 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 24527 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24528 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 24529 | X"$ac_file" : 'X\(//\)$' \| \ |
| 24530 | X"$ac_file" : 'X\(/\)' \| \ |
| 24531 | . : '\(.\)' 2>/dev/null || |
| 24532 | echo X"$ac_file" | |
| 24533 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24534 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24535 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24536 | /^X\(\/\).*/{ s//\1/; q; } |
| 24537 | s/.*/./; q'` |
| 24538 | { if $as_mkdir_p; then |
| 24539 | mkdir -p "$ac_dir" |
| 24540 | else |
| 24541 | as_dir="$ac_dir" |
| 24542 | as_dirs= |
| 24543 | while test ! -d "$as_dir"; do |
| 24544 | as_dirs="$as_dir $as_dirs" |
| 24545 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 24546 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24547 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24548 | X"$as_dir" : 'X\(//\)$' \| \ |
| 24549 | X"$as_dir" : 'X\(/\)' \| \ |
| 24550 | . : '\(.\)' 2>/dev/null || |
| 24551 | echo X"$as_dir" | |
| 24552 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24553 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24554 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24555 | /^X\(\/\).*/{ s//\1/; q; } |
| 24556 | s/.*/./; q'` |
| 24557 | done |
| 24558 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 24559 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 24560 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 24561 | { (exit 1); exit 1; }; }; } |
| 24562 | |
| 24563 | ac_builddir=. |
| 24564 | |
| 24565 | if test "$ac_dir" != .; then |
| 24566 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 24567 | # A "../" for each directory in $ac_dir_suffix. |
| 24568 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 24569 | else |
| 24570 | ac_dir_suffix= ac_top_builddir= |
| 24571 | fi |
| 24572 | |
| 24573 | case $srcdir in |
| 24574 | .) # No --srcdir option. We are building in place. |
| 24575 | ac_srcdir=. |
| 24576 | if test -z "$ac_top_builddir"; then |
| 24577 | ac_top_srcdir=. |
| 24578 | else |
| 24579 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 24580 | fi ;; |
| 24581 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 24582 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 24583 | ac_top_srcdir=$srcdir ;; |
| 24584 | *) # Relative path. |
| 24585 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 24586 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 24587 | esac |
| 24588 | |
| 24589 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 24590 | # the directories may not exist. |
| 24591 | case `pwd` in |
| 24592 | .) ac_abs_builddir="$ac_dir";; |
| 24593 | *) |
| 24594 | case "$ac_dir" in |
| 24595 | .) ac_abs_builddir=`pwd`;; |
| 24596 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 24597 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 24598 | esac;; |
| 24599 | esac |
| 24600 | case $ac_abs_builddir in |
| 24601 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 24602 | *) |
| 24603 | case ${ac_top_builddir}. in |
| 24604 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 24605 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 24606 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 24607 | esac;; |
| 24608 | esac |
| 24609 | case $ac_abs_builddir in |
| 24610 | .) ac_abs_srcdir=$ac_srcdir;; |
| 24611 | *) |
| 24612 | case $ac_srcdir in |
| 24613 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 24614 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 24615 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 24616 | esac;; |
| 24617 | esac |
| 24618 | case $ac_abs_builddir in |
| 24619 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 24620 | *) |
| 24621 | case $ac_top_srcdir in |
| 24622 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 24623 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 24624 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 24625 | esac;; |
| 24626 | esac |
| 24627 | |
| 24628 | |
| 24629 | case $INSTALL in |
| 24630 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 24631 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 24632 | esac |
| 24633 | |
| 24634 | if test x"$ac_file" != x-; then |
| 24635 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 24636 | echo "$as_me: creating $ac_file" >&6;} |
| 24637 | rm -f "$ac_file" |
| 24638 | fi |
| 24639 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 24640 | # use $as_me), people would be surprised to read: |
| 24641 | # /* config.h. Generated by config.status. */ |
| 24642 | if test x"$ac_file" = x-; then |
| 24643 | configure_input= |
| 24644 | else |
| 24645 | configure_input="$ac_file. " |
| 24646 | fi |
| 24647 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 24648 | sed 's,.*/,,'` by configure." |
| 24649 | |
| 24650 | # First look for the input files in the build tree, otherwise in the |
| 24651 | # src tree. |
| 24652 | ac_file_inputs=`IFS=: |
| 24653 | for f in $ac_file_in; do |
| 24654 | case $f in |
| 24655 | -) echo $tmp/stdin ;; |
| 24656 | [\\/$]*) |
| 24657 | # Absolute (can't be DOS-style, as IFS=:) |
| 24658 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 24659 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 24660 | { (exit 1); exit 1; }; } |
| 24661 | echo "$f";; |
| 24662 | *) # Relative |
| 24663 | if test -f "$f"; then |
| 24664 | # Build tree |
| 24665 | echo "$f" |
| 24666 | elif test -f "$srcdir/$f"; then |
| 24667 | # Source tree |
| 24668 | echo "$srcdir/$f" |
| 24669 | else |
| 24670 | # /dev/null tree |
| 24671 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 24672 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 24673 | { (exit 1); exit 1; }; } |
| 24674 | fi;; |
| 24675 | esac |
| 24676 | done` || { (exit 1); exit 1; } |
| 24677 | _ACEOF |
| 24678 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24679 | sed "$ac_vpsub |
| 24680 | $extrasub |
| 24681 | _ACEOF |
| 24682 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24683 | :t |
| 24684 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 24685 | s,@configure_input@,$configure_input,;t t |
| 24686 | s,@srcdir@,$ac_srcdir,;t t |
| 24687 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 24688 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 24689 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 24690 | s,@builddir@,$ac_builddir,;t t |
| 24691 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 24692 | s,@top_builddir@,$ac_top_builddir,;t t |
| 24693 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 24694 | s,@INSTALL@,$ac_INSTALL,;t t |
| 24695 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 24696 | rm -f $tmp/stdin |
| 24697 | if test x"$ac_file" != x-; then |
| 24698 | mv $tmp/out $ac_file |
| 24699 | else |
| 24700 | cat $tmp/out |
| 24701 | rm -f $tmp/out |
| 24702 | fi |
| 24703 | |
| 24704 | done |
| 24705 | _ACEOF |
| 24706 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24707 | |
| 24708 | # |
| 24709 | # CONFIG_HEADER section. |
| 24710 | # |
| 24711 | |
| 24712 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 24713 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 24714 | # |
| 24715 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 24716 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 24717 | ac_dB='[ ].*$,\1#\2' |
| 24718 | ac_dC=' ' |
| 24719 | ac_dD=',;t' |
| 24720 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 24721 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 24722 | ac_uB='$,\1#\2define\3' |
| 24723 | ac_uC=' ' |
| 24724 | ac_uD=',;t' |
| 24725 | |
| 24726 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 24727 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 24728 | case $ac_file in |
| 24729 | - | *:- | *:-:* ) # input from stdin |
| 24730 | cat >$tmp/stdin |
| 24731 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 24732 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 24733 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 24734 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 24735 | * ) ac_file_in=$ac_file.in ;; |
| 24736 | esac |
| 24737 | |
| 24738 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 24739 | echo "$as_me: creating $ac_file" >&6;} |
| 24740 | |
| 24741 | # First look for the input files in the build tree, otherwise in the |
| 24742 | # src tree. |
| 24743 | ac_file_inputs=`IFS=: |
| 24744 | for f in $ac_file_in; do |
| 24745 | case $f in |
| 24746 | -) echo $tmp/stdin ;; |
| 24747 | [\\/$]*) |
| 24748 | # Absolute (can't be DOS-style, as IFS=:) |
| 24749 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 24750 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 24751 | { (exit 1); exit 1; }; } |
| 24752 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 24753 | echo "$f";; |
| 24754 | *) # Relative |
| 24755 | if test -f "$f"; then |
| 24756 | # Build tree |
| 24757 | echo "$f" |
| 24758 | elif test -f "$srcdir/$f"; then |
| 24759 | # Source tree |
| 24760 | echo "$srcdir/$f" |
| 24761 | else |
| 24762 | # /dev/null tree |
| 24763 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 24764 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 24765 | { (exit 1); exit 1; }; } |
| 24766 | fi;; |
| 24767 | esac |
| 24768 | done` || { (exit 1); exit 1; } |
| 24769 | # Remove the trailing spaces. |
| 24770 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 24771 | |
| 24772 | _ACEOF |
| 24773 | |
| 24774 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 24775 | # `conftest.undefs', that substitutes the proper values into |
| 24776 | # config.h.in to produce config.h. The first handles `#define' |
| 24777 | # templates, and the second `#undef' templates. |
| 24778 | # And first: Protect against being on the right side of a sed subst in |
| 24779 | # config.status. Protect against being in an unquoted here document |
| 24780 | # in config.status. |
| 24781 | rm -f conftest.defines conftest.undefs |
| 24782 | # Using a here document instead of a string reduces the quoting nightmare. |
| 24783 | # Putting comments in sed scripts is not portable. |
| 24784 | # |
| 24785 | # `end' is used to avoid that the second main sed command (meant for |
| 24786 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 24787 | # See the Autoconf documentation for `clear'. |
| 24788 | cat >confdef2sed.sed <<\_ACEOF |
| 24789 | s/[\\&,]/\\&/g |
| 24790 | s,[\\$`],\\&,g |
| 24791 | t clear |
| 24792 | : clear |
| 24793 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 24794 | t end |
| 24795 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 24796 | : end |
| 24797 | _ACEOF |
| 24798 | # If some macros were called several times there might be several times |
| 24799 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 24800 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 24801 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 24802 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 24803 | rm -f confdef2sed.sed |
| 24804 | |
| 24805 | # This sed command replaces #undef with comments. This is necessary, for |
| 24806 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 24807 | # on some systems where configure will not decide to define it. |
| 24808 | cat >>conftest.undefs <<\_ACEOF |
| 24809 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 24810 | _ACEOF |
| 24811 | |
| 24812 | # Break up conftest.defines because some shells have a limit on the size |
| 24813 | # of here documents, and old seds have small limits too (100 cmds). |
| 24814 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 24815 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 24816 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 24817 | echo ' :' >>$CONFIG_STATUS |
| 24818 | rm -f conftest.tail |
| 24819 | while grep . conftest.defines >/dev/null |
| 24820 | do |
| 24821 | # Write a limited-size here document to $tmp/defines.sed. |
| 24822 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 24823 | # Speed up: don't consider the non `#define' lines. |
| 24824 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 24825 | # Work around the forget-to-reset-the-flag bug. |
| 24826 | echo 't clr' >>$CONFIG_STATUS |
| 24827 | echo ': clr' >>$CONFIG_STATUS |
| 24828 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 24829 | echo 'CEOF |
| 24830 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 24831 | rm -f $tmp/in |
| 24832 | mv $tmp/out $tmp/in |
| 24833 | ' >>$CONFIG_STATUS |
| 24834 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 24835 | rm -f conftest.defines |
| 24836 | mv conftest.tail conftest.defines |
| 24837 | done |
| 24838 | rm -f conftest.defines |
| 24839 | echo ' fi # grep' >>$CONFIG_STATUS |
| 24840 | echo >>$CONFIG_STATUS |
| 24841 | |
| 24842 | # Break up conftest.undefs because some shells have a limit on the size |
| 24843 | # of here documents, and old seds have small limits too (100 cmds). |
| 24844 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 24845 | rm -f conftest.tail |
| 24846 | while grep . conftest.undefs >/dev/null |
| 24847 | do |
| 24848 | # Write a limited-size here document to $tmp/undefs.sed. |
| 24849 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 24850 | # Speed up: don't consider the non `#undef' |
| 24851 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 24852 | # Work around the forget-to-reset-the-flag bug. |
| 24853 | echo 't clr' >>$CONFIG_STATUS |
| 24854 | echo ': clr' >>$CONFIG_STATUS |
| 24855 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 24856 | echo 'CEOF |
| 24857 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 24858 | rm -f $tmp/in |
| 24859 | mv $tmp/out $tmp/in |
| 24860 | ' >>$CONFIG_STATUS |
| 24861 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 24862 | rm -f conftest.undefs |
| 24863 | mv conftest.tail conftest.undefs |
| 24864 | done |
| 24865 | rm -f conftest.undefs |
| 24866 | |
| 24867 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24868 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 24869 | # use $as_me), people would be surprised to read: |
| 24870 | # /* config.h. Generated by config.status. */ |
| 24871 | if test x"$ac_file" = x-; then |
| 24872 | echo "/* Generated by configure. */" >$tmp/config.h |
| 24873 | else |
| 24874 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 24875 | fi |
| 24876 | cat $tmp/in >>$tmp/config.h |
| 24877 | rm -f $tmp/in |
| 24878 | if test x"$ac_file" != x-; then |
| 24879 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 24880 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 24881 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 24882 | else |
| 24883 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 24884 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24885 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 24886 | X"$ac_file" : 'X\(//\)$' \| \ |
| 24887 | X"$ac_file" : 'X\(/\)' \| \ |
| 24888 | . : '\(.\)' 2>/dev/null || |
| 24889 | echo X"$ac_file" | |
| 24890 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24891 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24892 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24893 | /^X\(\/\).*/{ s//\1/; q; } |
| 24894 | s/.*/./; q'` |
| 24895 | { if $as_mkdir_p; then |
| 24896 | mkdir -p "$ac_dir" |
| 24897 | else |
| 24898 | as_dir="$ac_dir" |
| 24899 | as_dirs= |
| 24900 | while test ! -d "$as_dir"; do |
| 24901 | as_dirs="$as_dir $as_dirs" |
| 24902 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 24903 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24904 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24905 | X"$as_dir" : 'X\(//\)$' \| \ |
| 24906 | X"$as_dir" : 'X\(/\)' \| \ |
| 24907 | . : '\(.\)' 2>/dev/null || |
| 24908 | echo X"$as_dir" | |
| 24909 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24910 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24911 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24912 | /^X\(\/\).*/{ s//\1/; q; } |
| 24913 | s/.*/./; q'` |
| 24914 | done |
| 24915 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 24916 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 24917 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 24918 | { (exit 1); exit 1; }; }; } |
| 24919 | |
| 24920 | rm -f $ac_file |
| 24921 | mv $tmp/config.h $ac_file |
| 24922 | fi |
| 24923 | else |
| 24924 | cat $tmp/config.h |
| 24925 | rm -f $tmp/config.h |
| 24926 | fi |
| 24927 | done |
| 24928 | _ACEOF |
| 24929 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24930 | |
| 24931 | # |
| 24932 | # CONFIG_LINKS section. |
| 24933 | # |
| 24934 | |
| 24935 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
| 24936 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 24937 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 24938 | |
| 24939 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
| 24940 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
| 24941 | |
| 24942 | if test ! -r $srcdir/$ac_source; then |
| 24943 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
| 24944 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
| 24945 | { (exit 1); exit 1; }; } |
| 24946 | fi |
| 24947 | rm -f $ac_dest |
| 24948 | |
| 24949 | # Make relative symlinks. |
| 24950 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 24951 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24952 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 24953 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 24954 | X"$ac_dest" : 'X\(/\)' \| \ |
| 24955 | . : '\(.\)' 2>/dev/null || |
| 24956 | echo X"$ac_dest" | |
| 24957 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24958 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24959 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24960 | /^X\(\/\).*/{ s//\1/; q; } |
| 24961 | s/.*/./; q'` |
| 24962 | { if $as_mkdir_p; then |
| 24963 | mkdir -p "$ac_dest_dir" |
| 24964 | else |
| 24965 | as_dir="$ac_dest_dir" |
| 24966 | as_dirs= |
| 24967 | while test ! -d "$as_dir"; do |
| 24968 | as_dirs="$as_dir $as_dirs" |
| 24969 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 24970 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24971 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24972 | X"$as_dir" : 'X\(//\)$' \| \ |
| 24973 | X"$as_dir" : 'X\(/\)' \| \ |
| 24974 | . : '\(.\)' 2>/dev/null || |
| 24975 | echo X"$as_dir" | |
| 24976 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 24977 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 24978 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 24979 | /^X\(\/\).*/{ s//\1/; q; } |
| 24980 | s/.*/./; q'` |
| 24981 | done |
| 24982 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 24983 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 |
| 24984 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} |
| 24985 | { (exit 1); exit 1; }; }; } |
| 24986 | |
| 24987 | ac_builddir=. |
| 24988 | |
| 24989 | if test "$ac_dest_dir" != .; then |
| 24990 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` |
| 24991 | # A "../" for each directory in $ac_dir_suffix. |
| 24992 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 24993 | else |
| 24994 | ac_dir_suffix= ac_top_builddir= |
| 24995 | fi |
| 24996 | |
| 24997 | case $srcdir in |
| 24998 | .) # No --srcdir option. We are building in place. |
| 24999 | ac_srcdir=. |
| 25000 | if test -z "$ac_top_builddir"; then |
| 25001 | ac_top_srcdir=. |
| 25002 | else |
| 25003 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 25004 | fi ;; |
| 25005 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 25006 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 25007 | ac_top_srcdir=$srcdir ;; |
| 25008 | *) # Relative path. |
| 25009 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 25010 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 25011 | esac |
| 25012 | |
| 25013 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 25014 | # the directories may not exist. |
| 25015 | case `pwd` in |
| 25016 | .) ac_abs_builddir="$ac_dest_dir";; |
| 25017 | *) |
| 25018 | case "$ac_dest_dir" in |
| 25019 | .) ac_abs_builddir=`pwd`;; |
| 25020 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; |
| 25021 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; |
| 25022 | esac;; |
| 25023 | esac |
| 25024 | case $ac_abs_builddir in |
| 25025 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25026 | *) |
| 25027 | case ${ac_top_builddir}. in |
| 25028 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 25029 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25030 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 25031 | esac;; |
| 25032 | esac |
| 25033 | case $ac_abs_builddir in |
| 25034 | .) ac_abs_srcdir=$ac_srcdir;; |
| 25035 | *) |
| 25036 | case $ac_srcdir in |
| 25037 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 25038 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 25039 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 25040 | esac;; |
| 25041 | esac |
| 25042 | case $ac_abs_builddir in |
| 25043 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25044 | *) |
| 25045 | case $ac_top_srcdir in |
| 25046 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 25047 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25048 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 25049 | esac;; |
| 25050 | esac |
| 25051 | |
| 25052 | |
| 25053 | case $srcdir in |
| 25054 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
| 25055 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
| 25056 | esac |
| 25057 | |
| 25058 | # Try a symlink, then a hard link, then a copy. |
| 25059 | ln -s $ac_rel_source $ac_dest 2>/dev/null || |
| 25060 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
| 25061 | cp -p $srcdir/$ac_source $ac_dest || |
| 25062 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 |
| 25063 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} |
| 25064 | { (exit 1); exit 1; }; } |
| 25065 | done |
| 25066 | _ACEOF |
| 25067 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25068 | |
| 25069 | # |
| 25070 | # CONFIG_COMMANDS section. |
| 25071 | # |
| 25072 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 25073 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 25074 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 25075 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 25076 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 25077 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 25078 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 25079 | X"$ac_dest" : 'X\(/\)' \| \ |
| 25080 | . : '\(.\)' 2>/dev/null || |
| 25081 | echo X"$ac_dest" | |
| 25082 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 25083 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 25084 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 25085 | /^X\(\/\).*/{ s//\1/; q; } |
| 25086 | s/.*/./; q'` |
| 25087 | { if $as_mkdir_p; then |
| 25088 | mkdir -p "$ac_dir" |
| 25089 | else |
| 25090 | as_dir="$ac_dir" |
| 25091 | as_dirs= |
| 25092 | while test ! -d "$as_dir"; do |
| 25093 | as_dirs="$as_dir $as_dirs" |
| 25094 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 25095 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 25096 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25097 | X"$as_dir" : 'X\(//\)$' \| \ |
| 25098 | X"$as_dir" : 'X\(/\)' \| \ |
| 25099 | . : '\(.\)' 2>/dev/null || |
| 25100 | echo X"$as_dir" | |
| 25101 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 25102 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 25103 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 25104 | /^X\(\/\).*/{ s//\1/; q; } |
| 25105 | s/.*/./; q'` |
| 25106 | done |
| 25107 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 25108 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 25109 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 25110 | { (exit 1); exit 1; }; }; } |
| 25111 | |
| 25112 | ac_builddir=. |
| 25113 | |
| 25114 | if test "$ac_dir" != .; then |
| 25115 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 25116 | # A "../" for each directory in $ac_dir_suffix. |
| 25117 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 25118 | else |
| 25119 | ac_dir_suffix= ac_top_builddir= |
| 25120 | fi |
| 25121 | |
| 25122 | case $srcdir in |
| 25123 | .) # No --srcdir option. We are building in place. |
| 25124 | ac_srcdir=. |
| 25125 | if test -z "$ac_top_builddir"; then |
| 25126 | ac_top_srcdir=. |
| 25127 | else |
| 25128 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 25129 | fi ;; |
| 25130 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 25131 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 25132 | ac_top_srcdir=$srcdir ;; |
| 25133 | *) # Relative path. |
| 25134 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 25135 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 25136 | esac |
| 25137 | |
| 25138 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 25139 | # the directories may not exist. |
| 25140 | case `pwd` in |
| 25141 | .) ac_abs_builddir="$ac_dir";; |
| 25142 | *) |
| 25143 | case "$ac_dir" in |
| 25144 | .) ac_abs_builddir=`pwd`;; |
| 25145 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 25146 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 25147 | esac;; |
| 25148 | esac |
| 25149 | case $ac_abs_builddir in |
| 25150 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25151 | *) |
| 25152 | case ${ac_top_builddir}. in |
| 25153 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 25154 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25155 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 25156 | esac;; |
| 25157 | esac |
| 25158 | case $ac_abs_builddir in |
| 25159 | .) ac_abs_srcdir=$ac_srcdir;; |
| 25160 | *) |
| 25161 | case $ac_srcdir in |
| 25162 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 25163 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 25164 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 25165 | esac;; |
| 25166 | esac |
| 25167 | case $ac_abs_builddir in |
| 25168 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25169 | *) |
| 25170 | case $ac_top_srcdir in |
| 25171 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 25172 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25173 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 25174 | esac;; |
| 25175 | esac |
| 25176 | |
| 25177 | |
| 25178 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 25179 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 25180 | case $ac_dest in |
| 25181 | gdb_stdint.h ) |
| 25182 | if test "$GCC" = yes; then |
| 25183 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h |
| 25184 | else |
| 25185 | echo "/* generated for $CC */" > tmp-stdint.h |
| 25186 | fi |
| 25187 | |
| 25188 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25189 | |
| 25190 | #ifndef GCC_GENERATED_STDINT_H |
| 25191 | #define GCC_GENERATED_STDINT_H 1 |
| 25192 | |
| 25193 | #include <sys/types.h> |
| 25194 | EOF |
| 25195 | |
| 25196 | if test "$acx_cv_header_stdint" != stdint.h; then |
| 25197 | echo "#include <stddef.h>" >> tmp-stdint.h |
| 25198 | fi |
| 25199 | if test "$acx_cv_header_stdint" != stddef.h; then |
| 25200 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h |
| 25201 | fi |
| 25202 | |
| 25203 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25204 | /* glibc uses these symbols as guards to prevent redefinitions. */ |
| 25205 | #ifdef __int8_t_defined |
| 25206 | #define _INT8_T |
| 25207 | #define _INT16_T |
| 25208 | #define _INT32_T |
| 25209 | #endif |
| 25210 | #ifdef __uint32_t_defined |
| 25211 | #define _UINT32_T |
| 25212 | #endif |
| 25213 | |
| 25214 | EOF |
| 25215 | |
| 25216 | # ----------------- done header, emit basic int types ------------- |
| 25217 | if test "$acx_cv_header_stdint" = stddef.h; then |
| 25218 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25219 | |
| 25220 | #ifndef _UINT8_T |
| 25221 | #define _UINT8_T |
| 25222 | #ifndef __uint8_t_defined |
| 25223 | #define __uint8_t_defined |
| 25224 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
| 25225 | #endif |
| 25226 | #endif |
| 25227 | |
| 25228 | #ifndef _UINT16_T |
| 25229 | #define _UINT16_T |
| 25230 | #ifndef __uint16_t_defined |
| 25231 | #define __uint16_t_defined |
| 25232 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
| 25233 | #endif |
| 25234 | #endif |
| 25235 | |
| 25236 | #ifndef _UINT32_T |
| 25237 | #define _UINT32_T |
| 25238 | #ifndef __uint32_t_defined |
| 25239 | #define __uint32_t_defined |
| 25240 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
| 25241 | #endif |
| 25242 | #endif |
| 25243 | |
| 25244 | #ifndef _INT8_T |
| 25245 | #define _INT8_T |
| 25246 | #ifndef __int8_t_defined |
| 25247 | #define __int8_t_defined |
| 25248 | typedef $acx_cv_type_int8_t int8_t; |
| 25249 | #endif |
| 25250 | #endif |
| 25251 | |
| 25252 | #ifndef _INT16_T |
| 25253 | #define _INT16_T |
| 25254 | #ifndef __int16_t_defined |
| 25255 | #define __int16_t_defined |
| 25256 | typedef $acx_cv_type_int16_t int16_t; |
| 25257 | #endif |
| 25258 | #endif |
| 25259 | |
| 25260 | #ifndef _INT32_T |
| 25261 | #define _INT32_T |
| 25262 | #ifndef __int32_t_defined |
| 25263 | #define __int32_t_defined |
| 25264 | typedef $acx_cv_type_int32_t int32_t; |
| 25265 | #endif |
| 25266 | #endif |
| 25267 | EOF |
| 25268 | elif test "$ac_cv_type_u_int32_t" = yes; then |
| 25269 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25270 | |
| 25271 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ |
| 25272 | #ifndef _INT8_T |
| 25273 | #define _INT8_T |
| 25274 | #endif |
| 25275 | #ifndef _INT16_T |
| 25276 | #define _INT16_T |
| 25277 | #endif |
| 25278 | #ifndef _INT32_T |
| 25279 | #define _INT32_T |
| 25280 | #endif |
| 25281 | |
| 25282 | #ifndef _UINT8_T |
| 25283 | #define _UINT8_T |
| 25284 | #ifndef __uint8_t_defined |
| 25285 | #define __uint8_t_defined |
| 25286 | typedef u_int8_t uint8_t; |
| 25287 | #endif |
| 25288 | #endif |
| 25289 | |
| 25290 | #ifndef _UINT16_T |
| 25291 | #define _UINT16_T |
| 25292 | #ifndef __uint16_t_defined |
| 25293 | #define __uint16_t_defined |
| 25294 | typedef u_int16_t uint16_t; |
| 25295 | #endif |
| 25296 | #endif |
| 25297 | |
| 25298 | #ifndef _UINT32_T |
| 25299 | #define _UINT32_T |
| 25300 | #ifndef __uint32_t_defined |
| 25301 | #define __uint32_t_defined |
| 25302 | typedef u_int32_t uint32_t; |
| 25303 | #endif |
| 25304 | #endif |
| 25305 | EOF |
| 25306 | else |
| 25307 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25308 | |
| 25309 | /* Some systems have guard macros to prevent redefinitions, define them. */ |
| 25310 | #ifndef _INT8_T |
| 25311 | #define _INT8_T |
| 25312 | #endif |
| 25313 | #ifndef _INT16_T |
| 25314 | #define _INT16_T |
| 25315 | #endif |
| 25316 | #ifndef _INT32_T |
| 25317 | #define _INT32_T |
| 25318 | #endif |
| 25319 | #ifndef _UINT8_T |
| 25320 | #define _UINT8_T |
| 25321 | #endif |
| 25322 | #ifndef _UINT16_T |
| 25323 | #define _UINT16_T |
| 25324 | #endif |
| 25325 | #ifndef _UINT32_T |
| 25326 | #define _UINT32_T |
| 25327 | #endif |
| 25328 | EOF |
| 25329 | fi |
| 25330 | |
| 25331 | # ------------- done basic int types, emit int64_t types ------------ |
| 25332 | if test "$ac_cv_type_uint64_t" = yes; then |
| 25333 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25334 | |
| 25335 | /* system headers have good uint64_t and int64_t */ |
| 25336 | #ifndef _INT64_T |
| 25337 | #define _INT64_T |
| 25338 | #endif |
| 25339 | #ifndef _UINT64_T |
| 25340 | #define _UINT64_T |
| 25341 | #endif |
| 25342 | EOF |
| 25343 | elif test "$ac_cv_type_u_int64_t" = yes; then |
| 25344 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25345 | |
| 25346 | /* system headers have an u_int64_t (and int64_t) */ |
| 25347 | #ifndef _INT64_T |
| 25348 | #define _INT64_T |
| 25349 | #endif |
| 25350 | #ifndef _UINT64_T |
| 25351 | #define _UINT64_T |
| 25352 | #ifndef __uint64_t_defined |
| 25353 | #define __uint64_t_defined |
| 25354 | typedef u_int64_t uint64_t; |
| 25355 | #endif |
| 25356 | #endif |
| 25357 | EOF |
| 25358 | elif test -n "$acx_cv_type_int64_t"; then |
| 25359 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25360 | |
| 25361 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ |
| 25362 | #ifndef _INT64_T |
| 25363 | #define _INT64_T |
| 25364 | typedef $acx_cv_type_int64_t int64_t; |
| 25365 | #endif |
| 25366 | #ifndef _UINT64_T |
| 25367 | #define _UINT64_T |
| 25368 | #ifndef __uint64_t_defined |
| 25369 | #define __uint64_t_defined |
| 25370 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
| 25371 | #endif |
| 25372 | #endif |
| 25373 | EOF |
| 25374 | else |
| 25375 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25376 | |
| 25377 | /* some common heuristics for int64_t, using compiler-specific tests */ |
| 25378 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L |
| 25379 | #ifndef _INT64_T |
| 25380 | #define _INT64_T |
| 25381 | #ifndef __int64_t_defined |
| 25382 | typedef long long int64_t; |
| 25383 | #endif |
| 25384 | #endif |
| 25385 | #ifndef _UINT64_T |
| 25386 | #define _UINT64_T |
| 25387 | typedef unsigned long long uint64_t; |
| 25388 | #endif |
| 25389 | |
| 25390 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 |
| 25391 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and |
| 25392 | does not implement __extension__. But that compiler doesn't define |
| 25393 | __GNUC_MINOR__. */ |
| 25394 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) |
| 25395 | # define __extension__ |
| 25396 | # endif |
| 25397 | |
| 25398 | # ifndef _INT64_T |
| 25399 | # define _INT64_T |
| 25400 | __extension__ typedef long long int64_t; |
| 25401 | # endif |
| 25402 | # ifndef _UINT64_T |
| 25403 | # define _UINT64_T |
| 25404 | __extension__ typedef unsigned long long uint64_t; |
| 25405 | # endif |
| 25406 | |
| 25407 | #elif !defined __STRICT_ANSI__ |
| 25408 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ |
| 25409 | |
| 25410 | # ifndef _INT64_T |
| 25411 | # define _INT64_T |
| 25412 | typedef __int64 int64_t; |
| 25413 | # endif |
| 25414 | # ifndef _UINT64_T |
| 25415 | # define _UINT64_T |
| 25416 | typedef unsigned __int64 uint64_t; |
| 25417 | # endif |
| 25418 | # endif /* compiler */ |
| 25419 | |
| 25420 | #endif /* ANSI version */ |
| 25421 | EOF |
| 25422 | fi |
| 25423 | |
| 25424 | # ------------- done int64_t types, emit intptr types ------------ |
| 25425 | if test "$ac_cv_type_uintptr_t" != yes; then |
| 25426 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25427 | |
| 25428 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ |
| 25429 | #ifndef __uintptr_t_defined |
| 25430 | typedef u$acx_cv_type_intptr_t uintptr_t; |
| 25431 | #endif |
| 25432 | #ifndef __intptr_t_defined |
| 25433 | typedef $acx_cv_type_intptr_t intptr_t; |
| 25434 | #endif |
| 25435 | EOF |
| 25436 | fi |
| 25437 | |
| 25438 | # ------------- done intptr types, emit int_least types ------------ |
| 25439 | if test "$ac_cv_type_int_least32_t" != yes; then |
| 25440 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25441 | |
| 25442 | /* Define int_least types */ |
| 25443 | typedef int8_t int_least8_t; |
| 25444 | typedef int16_t int_least16_t; |
| 25445 | typedef int32_t int_least32_t; |
| 25446 | #ifdef _INT64_T |
| 25447 | typedef int64_t int_least64_t; |
| 25448 | #endif |
| 25449 | |
| 25450 | typedef uint8_t uint_least8_t; |
| 25451 | typedef uint16_t uint_least16_t; |
| 25452 | typedef uint32_t uint_least32_t; |
| 25453 | #ifdef _UINT64_T |
| 25454 | typedef uint64_t uint_least64_t; |
| 25455 | #endif |
| 25456 | EOF |
| 25457 | fi |
| 25458 | |
| 25459 | # ------------- done intptr types, emit int_fast types ------------ |
| 25460 | if test "$ac_cv_type_int_fast32_t" != yes; then |
| 25461 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25462 | |
| 25463 | /* Define int_fast types. short is often slow */ |
| 25464 | typedef int8_t int_fast8_t; |
| 25465 | typedef int int_fast16_t; |
| 25466 | typedef int32_t int_fast32_t; |
| 25467 | #ifdef _INT64_T |
| 25468 | typedef int64_t int_fast64_t; |
| 25469 | #endif |
| 25470 | |
| 25471 | typedef uint8_t uint_fast8_t; |
| 25472 | typedef unsigned int uint_fast16_t; |
| 25473 | typedef uint32_t uint_fast32_t; |
| 25474 | #ifdef _UINT64_T |
| 25475 | typedef uint64_t uint_fast64_t; |
| 25476 | #endif |
| 25477 | EOF |
| 25478 | fi |
| 25479 | |
| 25480 | if test "$ac_cv_type_uintmax_t" != yes; then |
| 25481 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25482 | |
| 25483 | /* Define intmax based on what we found */ |
| 25484 | #ifdef _INT64_T |
| 25485 | typedef int64_t intmax_t; |
| 25486 | #else |
| 25487 | typedef long intmax_t; |
| 25488 | #endif |
| 25489 | #ifdef _UINT64_T |
| 25490 | typedef uint64_t uintmax_t; |
| 25491 | #else |
| 25492 | typedef unsigned long uintmax_t; |
| 25493 | #endif |
| 25494 | EOF |
| 25495 | fi |
| 25496 | |
| 25497 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
| 25498 | |
| 25499 | #endif /* GCC_GENERATED_STDINT_H */ |
| 25500 | EOF |
| 25501 | |
| 25502 | if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then |
| 25503 | rm -f tmp-stdint.h |
| 25504 | else |
| 25505 | mv -f tmp-stdint.h gdb_stdint.h |
| 25506 | fi |
| 25507 | |
| 25508 | ;; |
| 25509 | default ) |
| 25510 | |
| 25511 | sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, |
| 25512 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, |
| 25513 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp |
| 25514 | mv -f Makefile.tmp Makefile |
| 25515 | |
| 25516 | |
| 25517 | case x$CONFIG_HEADERS in |
| 25518 | xconfig.h:config.in) |
| 25519 | echo > stamp-h ;; |
| 25520 | esac |
| 25521 | ;; |
| 25522 | esac |
| 25523 | done |
| 25524 | _ACEOF |
| 25525 | |
| 25526 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 25527 | |
| 25528 | { (exit 0); exit 0; } |
| 25529 | _ACEOF |
| 25530 | chmod +x $CONFIG_STATUS |
| 25531 | ac_clean_files=$ac_clean_files_save |
| 25532 | |
| 25533 | |
| 25534 | # configure is writing to config.log, and then calls config.status. |
| 25535 | # config.status does its own redirection, appending to config.log. |
| 25536 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 25537 | # by configure, so config.status won't be able to write to it; its |
| 25538 | # output is simply discarded. So we exec the FD to /dev/null, |
| 25539 | # effectively closing config.log, so it can be properly (re)opened and |
| 25540 | # appended to by config.status. When coming back to configure, we |
| 25541 | # need to make the FD available again. |
| 25542 | if test "$no_create" != yes; then |
| 25543 | ac_cs_success=: |
| 25544 | ac_config_status_args= |
| 25545 | test "$silent" = yes && |
| 25546 | ac_config_status_args="$ac_config_status_args --quiet" |
| 25547 | exec 5>/dev/null |
| 25548 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 25549 | exec 5>>config.log |
| 25550 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 25551 | # would make configure fail if this is the last instruction. |
| 25552 | $ac_cs_success || { (exit 1); exit 1; } |
| 25553 | fi |
| 25554 | |
| 25555 | # |
| 25556 | # CONFIG_SUBDIRS section. |
| 25557 | # |
| 25558 | if test "$no_recursion" != yes; then |
| 25559 | |
| 25560 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 25561 | ac_sub_configure_args= |
| 25562 | ac_prev= |
| 25563 | for ac_arg in $ac_configure_args; do |
| 25564 | if test -n "$ac_prev"; then |
| 25565 | ac_prev= |
| 25566 | continue |
| 25567 | fi |
| 25568 | case $ac_arg in |
| 25569 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 25570 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 25571 | ac_prev=cache_file ;; |
| 25572 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 25573 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 25574 | | --c=*) |
| 25575 | ;; |
| 25576 | --config-cache | -C) |
| 25577 | ;; |
| 25578 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 25579 | ac_prev=srcdir ;; |
| 25580 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 25581 | ;; |
| 25582 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 25583 | ac_prev=prefix ;; |
| 25584 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 25585 | ;; |
| 25586 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
| 25587 | esac |
| 25588 | done |
| 25589 | |
| 25590 | # Always prepend --prefix to ensure using the same prefix |
| 25591 | # in subdir configurations. |
| 25592 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" |
| 25593 | |
| 25594 | ac_popdir=`pwd` |
| 25595 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 25596 | |
| 25597 | # Do not complain, so a configure script can configure whichever |
| 25598 | # parts of a large source tree are present. |
| 25599 | test -d $srcdir/$ac_dir || continue |
| 25600 | |
| 25601 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
| 25602 | echo "$as_me: configuring in $ac_dir" >&6;} |
| 25603 | { if $as_mkdir_p; then |
| 25604 | mkdir -p "$ac_dir" |
| 25605 | else |
| 25606 | as_dir="$ac_dir" |
| 25607 | as_dirs= |
| 25608 | while test ! -d "$as_dir"; do |
| 25609 | as_dirs="$as_dir $as_dirs" |
| 25610 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 25611 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 25612 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 25613 | X"$as_dir" : 'X\(//\)$' \| \ |
| 25614 | X"$as_dir" : 'X\(/\)' \| \ |
| 25615 | . : '\(.\)' 2>/dev/null || |
| 25616 | echo X"$as_dir" | |
| 25617 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 25618 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 25619 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 25620 | /^X\(\/\).*/{ s//\1/; q; } |
| 25621 | s/.*/./; q'` |
| 25622 | done |
| 25623 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 25624 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 25625 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 25626 | { (exit 1); exit 1; }; }; } |
| 25627 | |
| 25628 | ac_builddir=. |
| 25629 | |
| 25630 | if test "$ac_dir" != .; then |
| 25631 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 25632 | # A "../" for each directory in $ac_dir_suffix. |
| 25633 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 25634 | else |
| 25635 | ac_dir_suffix= ac_top_builddir= |
| 25636 | fi |
| 25637 | |
| 25638 | case $srcdir in |
| 25639 | .) # No --srcdir option. We are building in place. |
| 25640 | ac_srcdir=. |
| 25641 | if test -z "$ac_top_builddir"; then |
| 25642 | ac_top_srcdir=. |
| 25643 | else |
| 25644 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 25645 | fi ;; |
| 25646 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 25647 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 25648 | ac_top_srcdir=$srcdir ;; |
| 25649 | *) # Relative path. |
| 25650 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 25651 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 25652 | esac |
| 25653 | |
| 25654 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 25655 | # the directories may not exist. |
| 25656 | case `pwd` in |
| 25657 | .) ac_abs_builddir="$ac_dir";; |
| 25658 | *) |
| 25659 | case "$ac_dir" in |
| 25660 | .) ac_abs_builddir=`pwd`;; |
| 25661 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 25662 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 25663 | esac;; |
| 25664 | esac |
| 25665 | case $ac_abs_builddir in |
| 25666 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25667 | *) |
| 25668 | case ${ac_top_builddir}. in |
| 25669 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 25670 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 25671 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 25672 | esac;; |
| 25673 | esac |
| 25674 | case $ac_abs_builddir in |
| 25675 | .) ac_abs_srcdir=$ac_srcdir;; |
| 25676 | *) |
| 25677 | case $ac_srcdir in |
| 25678 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 25679 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 25680 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 25681 | esac;; |
| 25682 | esac |
| 25683 | case $ac_abs_builddir in |
| 25684 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25685 | *) |
| 25686 | case $ac_top_srcdir in |
| 25687 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 25688 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 25689 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 25690 | esac;; |
| 25691 | esac |
| 25692 | |
| 25693 | |
| 25694 | cd $ac_dir |
| 25695 | |
| 25696 | # Check for guested configure; otherwise get Cygnus style configure. |
| 25697 | if test -f $ac_srcdir/configure.gnu; then |
| 25698 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" |
| 25699 | elif test -f $ac_srcdir/configure; then |
| 25700 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" |
| 25701 | elif test -f $ac_srcdir/configure.in; then |
| 25702 | ac_sub_configure=$ac_configure |
| 25703 | else |
| 25704 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 25705 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 25706 | ac_sub_configure= |
| 25707 | fi |
| 25708 | |
| 25709 | # The recursion is here. |
| 25710 | if test -n "$ac_sub_configure"; then |
| 25711 | # Make the cache file name correct relative to the subdirectory. |
| 25712 | case $cache_file in |
| 25713 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 25714 | *) # Relative path. |
| 25715 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
| 25716 | esac |
| 25717 | |
| 25718 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 25719 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 25720 | # The eval makes quoting arguments work. |
| 25721 | eval $ac_sub_configure $ac_sub_configure_args \ |
| 25722 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
| 25723 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 25724 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 25725 | { (exit 1); exit 1; }; } |
| 25726 | fi |
| 25727 | |
| 25728 | cd $ac_popdir |
| 25729 | done |
| 25730 | fi |
| 25731 | |
| 25732 | |
| 25733 | exit 0 |