| 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 | # Factoring default headers for most tests. |
| 276 | ac_includes_default="\ |
| 277 | #include <stdio.h> |
| 278 | #if HAVE_SYS_TYPES_H |
| 279 | # include <sys/types.h> |
| 280 | #endif |
| 281 | #if HAVE_SYS_STAT_H |
| 282 | # include <sys/stat.h> |
| 283 | #endif |
| 284 | #if STDC_HEADERS |
| 285 | # include <stdlib.h> |
| 286 | # include <stddef.h> |
| 287 | #else |
| 288 | # if HAVE_STDLIB_H |
| 289 | # include <stdlib.h> |
| 290 | # endif |
| 291 | #endif |
| 292 | #if HAVE_STRING_H |
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 294 | # include <memory.h> |
| 295 | # endif |
| 296 | # include <string.h> |
| 297 | #endif |
| 298 | #if HAVE_STRINGS_H |
| 299 | # include <strings.h> |
| 300 | #endif |
| 301 | #if HAVE_INTTYPES_H |
| 302 | # include <inttypes.h> |
| 303 | #else |
| 304 | # if HAVE_STDINT_H |
| 305 | # include <stdint.h> |
| 306 | # endif |
| 307 | #endif |
| 308 | #if HAVE_UNISTD_H |
| 309 | # include <unistd.h> |
| 310 | #endif" |
| 311 | |
| 312 | gl_header_list= |
| 313 | ac_subdirs_all="$ac_subdirs_all doc testsuite" |
| 314 | ac_subdirs_all="$ac_subdirs_all gdbtk" |
| 315 | ac_subdirs_all="$ac_subdirs_all multi-ice" |
| 316 | ac_subdirs_all="$ac_subdirs_all gdbserver" |
| 317 | 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 RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os am__leading_dot DEPDIR CCDEPMODE MAKE GMAKE_TRUE GMAKE_FALSE SET_MAKE USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS GNULIB_STDINT_H PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK AMTAR am__tar am__untar am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT PYTHON_CFLAGS 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_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS' |
| 318 | ac_subst_files='host_makefile_frag' |
| 319 | ac_pwd=`pwd` |
| 320 | |
| 321 | # Initialize some variables set by options. |
| 322 | ac_init_help= |
| 323 | ac_init_version=false |
| 324 | # The variables have the same names as the options, with |
| 325 | # dashes changed to underlines. |
| 326 | cache_file=/dev/null |
| 327 | exec_prefix=NONE |
| 328 | no_create= |
| 329 | no_recursion= |
| 330 | prefix=NONE |
| 331 | program_prefix=NONE |
| 332 | program_suffix=NONE |
| 333 | program_transform_name=s,x,x, |
| 334 | silent= |
| 335 | site= |
| 336 | srcdir= |
| 337 | verbose= |
| 338 | x_includes=NONE |
| 339 | x_libraries=NONE |
| 340 | |
| 341 | # Installation directory options. |
| 342 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 343 | # and all the variables that are supposed to be based on exec_prefix |
| 344 | # by default will actually change. |
| 345 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 346 | bindir='${exec_prefix}/bin' |
| 347 | sbindir='${exec_prefix}/sbin' |
| 348 | libexecdir='${exec_prefix}/libexec' |
| 349 | datadir='${prefix}/share' |
| 350 | sysconfdir='${prefix}/etc' |
| 351 | sharedstatedir='${prefix}/com' |
| 352 | localstatedir='${prefix}/var' |
| 353 | libdir='${exec_prefix}/lib' |
| 354 | includedir='${prefix}/include' |
| 355 | oldincludedir='/usr/include' |
| 356 | infodir='${prefix}/info' |
| 357 | mandir='${prefix}/man' |
| 358 | |
| 359 | ac_prev= |
| 360 | for ac_option |
| 361 | do |
| 362 | # If the previous option needs an argument, assign it. |
| 363 | if test -n "$ac_prev"; then |
| 364 | eval "$ac_prev=\$ac_option" |
| 365 | ac_prev= |
| 366 | continue |
| 367 | fi |
| 368 | |
| 369 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 370 | |
| 371 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 372 | |
| 373 | case $ac_option in |
| 374 | |
| 375 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 376 | ac_prev=bindir ;; |
| 377 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 378 | bindir=$ac_optarg ;; |
| 379 | |
| 380 | -build | --build | --buil | --bui | --bu) |
| 381 | ac_prev=build_alias ;; |
| 382 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 383 | build_alias=$ac_optarg ;; |
| 384 | |
| 385 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 386 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 387 | ac_prev=cache_file ;; |
| 388 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 389 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 390 | cache_file=$ac_optarg ;; |
| 391 | |
| 392 | --config-cache | -C) |
| 393 | cache_file=config.cache ;; |
| 394 | |
| 395 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 396 | ac_prev=datadir ;; |
| 397 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 398 | | --da=*) |
| 399 | datadir=$ac_optarg ;; |
| 400 | |
| 401 | -disable-* | --disable-*) |
| 402 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 403 | # Reject names that are not valid shell variable names. |
| 404 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 405 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 406 | { (exit 1); exit 1; }; } |
| 407 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 408 | eval "enable_$ac_feature=no" ;; |
| 409 | |
| 410 | -enable-* | --enable-*) |
| 411 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 412 | # Reject names that are not valid shell variable names. |
| 413 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 414 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 415 | { (exit 1); exit 1; }; } |
| 416 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 417 | case $ac_option in |
| 418 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 419 | *) ac_optarg=yes ;; |
| 420 | esac |
| 421 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 422 | |
| 423 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 424 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 425 | | --exec | --exe | --ex) |
| 426 | ac_prev=exec_prefix ;; |
| 427 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 428 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 429 | | --exec=* | --exe=* | --ex=*) |
| 430 | exec_prefix=$ac_optarg ;; |
| 431 | |
| 432 | -gas | --gas | --ga | --g) |
| 433 | # Obsolete; use --with-gas. |
| 434 | with_gas=yes ;; |
| 435 | |
| 436 | -help | --help | --hel | --he | -h) |
| 437 | ac_init_help=long ;; |
| 438 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 439 | ac_init_help=recursive ;; |
| 440 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 441 | ac_init_help=short ;; |
| 442 | |
| 443 | -host | --host | --hos | --ho) |
| 444 | ac_prev=host_alias ;; |
| 445 | -host=* | --host=* | --hos=* | --ho=*) |
| 446 | host_alias=$ac_optarg ;; |
| 447 | |
| 448 | -includedir | --includedir | --includedi | --included | --include \ |
| 449 | | --includ | --inclu | --incl | --inc) |
| 450 | ac_prev=includedir ;; |
| 451 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 452 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 453 | includedir=$ac_optarg ;; |
| 454 | |
| 455 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 456 | ac_prev=infodir ;; |
| 457 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 458 | infodir=$ac_optarg ;; |
| 459 | |
| 460 | -libdir | --libdir | --libdi | --libd) |
| 461 | ac_prev=libdir ;; |
| 462 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 463 | libdir=$ac_optarg ;; |
| 464 | |
| 465 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 466 | | --libexe | --libex | --libe) |
| 467 | ac_prev=libexecdir ;; |
| 468 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 469 | | --libexe=* | --libex=* | --libe=*) |
| 470 | libexecdir=$ac_optarg ;; |
| 471 | |
| 472 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 473 | | --localstate | --localstat | --localsta | --localst \ |
| 474 | | --locals | --local | --loca | --loc | --lo) |
| 475 | ac_prev=localstatedir ;; |
| 476 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 477 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 478 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 479 | localstatedir=$ac_optarg ;; |
| 480 | |
| 481 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 482 | ac_prev=mandir ;; |
| 483 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 484 | mandir=$ac_optarg ;; |
| 485 | |
| 486 | -nfp | --nfp | --nf) |
| 487 | # Obsolete; use --without-fp. |
| 488 | with_fp=no ;; |
| 489 | |
| 490 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 491 | | --no-cr | --no-c | -n) |
| 492 | no_create=yes ;; |
| 493 | |
| 494 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 495 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 496 | no_recursion=yes ;; |
| 497 | |
| 498 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 499 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 500 | | --oldin | --oldi | --old | --ol | --o) |
| 501 | ac_prev=oldincludedir ;; |
| 502 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 503 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 504 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 505 | oldincludedir=$ac_optarg ;; |
| 506 | |
| 507 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 508 | ac_prev=prefix ;; |
| 509 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 510 | prefix=$ac_optarg ;; |
| 511 | |
| 512 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 513 | | --program-pre | --program-pr | --program-p) |
| 514 | ac_prev=program_prefix ;; |
| 515 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 516 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 517 | program_prefix=$ac_optarg ;; |
| 518 | |
| 519 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 520 | | --program-suf | --program-su | --program-s) |
| 521 | ac_prev=program_suffix ;; |
| 522 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 523 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 524 | program_suffix=$ac_optarg ;; |
| 525 | |
| 526 | -program-transform-name | --program-transform-name \ |
| 527 | | --program-transform-nam | --program-transform-na \ |
| 528 | | --program-transform-n | --program-transform- \ |
| 529 | | --program-transform | --program-transfor \ |
| 530 | | --program-transfo | --program-transf \ |
| 531 | | --program-trans | --program-tran \ |
| 532 | | --progr-tra | --program-tr | --program-t) |
| 533 | ac_prev=program_transform_name ;; |
| 534 | -program-transform-name=* | --program-transform-name=* \ |
| 535 | | --program-transform-nam=* | --program-transform-na=* \ |
| 536 | | --program-transform-n=* | --program-transform-=* \ |
| 537 | | --program-transform=* | --program-transfor=* \ |
| 538 | | --program-transfo=* | --program-transf=* \ |
| 539 | | --program-trans=* | --program-tran=* \ |
| 540 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 541 | program_transform_name=$ac_optarg ;; |
| 542 | |
| 543 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 544 | | -silent | --silent | --silen | --sile | --sil) |
| 545 | silent=yes ;; |
| 546 | |
| 547 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 548 | ac_prev=sbindir ;; |
| 549 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 550 | | --sbi=* | --sb=*) |
| 551 | sbindir=$ac_optarg ;; |
| 552 | |
| 553 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 554 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 555 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 556 | | --sha | --sh) |
| 557 | ac_prev=sharedstatedir ;; |
| 558 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 559 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 560 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 561 | | --sha=* | --sh=*) |
| 562 | sharedstatedir=$ac_optarg ;; |
| 563 | |
| 564 | -site | --site | --sit) |
| 565 | ac_prev=site ;; |
| 566 | -site=* | --site=* | --sit=*) |
| 567 | site=$ac_optarg ;; |
| 568 | |
| 569 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 570 | ac_prev=srcdir ;; |
| 571 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 572 | srcdir=$ac_optarg ;; |
| 573 | |
| 574 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 575 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 576 | ac_prev=sysconfdir ;; |
| 577 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 578 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 579 | sysconfdir=$ac_optarg ;; |
| 580 | |
| 581 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 582 | ac_prev=target_alias ;; |
| 583 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 584 | target_alias=$ac_optarg ;; |
| 585 | |
| 586 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 587 | verbose=yes ;; |
| 588 | |
| 589 | -version | --version | --versio | --versi | --vers | -V) |
| 590 | ac_init_version=: ;; |
| 591 | |
| 592 | -with-* | --with-*) |
| 593 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 594 | # Reject names that are not valid shell variable names. |
| 595 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 596 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 597 | { (exit 1); exit 1; }; } |
| 598 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 599 | case $ac_option in |
| 600 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 601 | *) ac_optarg=yes ;; |
| 602 | esac |
| 603 | eval "with_$ac_package='$ac_optarg'" ;; |
| 604 | |
| 605 | -without-* | --without-*) |
| 606 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 607 | # Reject names that are not valid shell variable names. |
| 608 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 609 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 610 | { (exit 1); exit 1; }; } |
| 611 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 612 | eval "with_$ac_package=no" ;; |
| 613 | |
| 614 | --x) |
| 615 | # Obsolete; use --with-x. |
| 616 | with_x=yes ;; |
| 617 | |
| 618 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 619 | | --x-incl | --x-inc | --x-in | --x-i) |
| 620 | ac_prev=x_includes ;; |
| 621 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 622 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 623 | x_includes=$ac_optarg ;; |
| 624 | |
| 625 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 626 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 627 | ac_prev=x_libraries ;; |
| 628 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 629 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 630 | x_libraries=$ac_optarg ;; |
| 631 | |
| 632 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 633 | Try \`$0 --help' for more information." >&2 |
| 634 | { (exit 1); exit 1; }; } |
| 635 | ;; |
| 636 | |
| 637 | *=*) |
| 638 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 639 | # Reject names that are not valid shell variable names. |
| 640 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 641 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 642 | { (exit 1); exit 1; }; } |
| 643 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 644 | eval "$ac_envvar='$ac_optarg'" |
| 645 | export $ac_envvar ;; |
| 646 | |
| 647 | *) |
| 648 | # FIXME: should be removed in autoconf 3.0. |
| 649 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 650 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 651 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 652 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 653 | ;; |
| 654 | |
| 655 | esac |
| 656 | done |
| 657 | |
| 658 | if test -n "$ac_prev"; then |
| 659 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 660 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 661 | { (exit 1); exit 1; }; } |
| 662 | fi |
| 663 | |
| 664 | # Be sure to have absolute paths. |
| 665 | for ac_var in exec_prefix prefix |
| 666 | do |
| 667 | eval ac_val=$`echo $ac_var` |
| 668 | case $ac_val in |
| 669 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 670 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 671 | { (exit 1); exit 1; }; };; |
| 672 | esac |
| 673 | done |
| 674 | |
| 675 | # Be sure to have absolute paths. |
| 676 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 677 | localstatedir libdir includedir oldincludedir infodir mandir |
| 678 | do |
| 679 | eval ac_val=$`echo $ac_var` |
| 680 | case $ac_val in |
| 681 | [\\/$]* | ?:[\\/]* ) ;; |
| 682 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 683 | { (exit 1); exit 1; }; };; |
| 684 | esac |
| 685 | done |
| 686 | |
| 687 | # There might be people who depend on the old broken behavior: `$host' |
| 688 | # used to hold the argument of --host etc. |
| 689 | # FIXME: To remove some day. |
| 690 | build=$build_alias |
| 691 | host=$host_alias |
| 692 | target=$target_alias |
| 693 | |
| 694 | # FIXME: To remove some day. |
| 695 | if test "x$host_alias" != x; then |
| 696 | if test "x$build_alias" = x; then |
| 697 | cross_compiling=maybe |
| 698 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 699 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 700 | elif test "x$build_alias" != "x$host_alias"; then |
| 701 | cross_compiling=yes |
| 702 | fi |
| 703 | fi |
| 704 | |
| 705 | ac_tool_prefix= |
| 706 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 707 | |
| 708 | test "$silent" = yes && exec 6>/dev/null |
| 709 | |
| 710 | |
| 711 | # Find the source files, if location was not specified. |
| 712 | if test -z "$srcdir"; then |
| 713 | ac_srcdir_defaulted=yes |
| 714 | # Try the directory containing this script, then its parent. |
| 715 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 716 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 717 | X"$0" : 'X\(//\)[^/]' \| \ |
| 718 | X"$0" : 'X\(//\)$' \| \ |
| 719 | X"$0" : 'X\(/\)' \| \ |
| 720 | . : '\(.\)' 2>/dev/null || |
| 721 | echo X"$0" | |
| 722 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 723 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 724 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 725 | /^X\(\/\).*/{ s//\1/; q; } |
| 726 | s/.*/./; q'` |
| 727 | srcdir=$ac_confdir |
| 728 | if test ! -r $srcdir/$ac_unique_file; then |
| 729 | srcdir=.. |
| 730 | fi |
| 731 | else |
| 732 | ac_srcdir_defaulted=no |
| 733 | fi |
| 734 | if test ! -r $srcdir/$ac_unique_file; then |
| 735 | if test "$ac_srcdir_defaulted" = yes; then |
| 736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 737 | { (exit 1); exit 1; }; } |
| 738 | else |
| 739 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 740 | { (exit 1); exit 1; }; } |
| 741 | fi |
| 742 | fi |
| 743 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 744 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 745 | { (exit 1); exit 1; }; } |
| 746 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 747 | ac_env_build_alias_set=${build_alias+set} |
| 748 | ac_env_build_alias_value=$build_alias |
| 749 | ac_cv_env_build_alias_set=${build_alias+set} |
| 750 | ac_cv_env_build_alias_value=$build_alias |
| 751 | ac_env_host_alias_set=${host_alias+set} |
| 752 | ac_env_host_alias_value=$host_alias |
| 753 | ac_cv_env_host_alias_set=${host_alias+set} |
| 754 | ac_cv_env_host_alias_value=$host_alias |
| 755 | ac_env_target_alias_set=${target_alias+set} |
| 756 | ac_env_target_alias_value=$target_alias |
| 757 | ac_cv_env_target_alias_set=${target_alias+set} |
| 758 | ac_cv_env_target_alias_value=$target_alias |
| 759 | ac_env_CC_set=${CC+set} |
| 760 | ac_env_CC_value=$CC |
| 761 | ac_cv_env_CC_set=${CC+set} |
| 762 | ac_cv_env_CC_value=$CC |
| 763 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 764 | ac_env_CFLAGS_value=$CFLAGS |
| 765 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 766 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 767 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 768 | ac_env_LDFLAGS_value=$LDFLAGS |
| 769 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 770 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 771 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 772 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 773 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 774 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 775 | ac_env_CPP_set=${CPP+set} |
| 776 | ac_env_CPP_value=$CPP |
| 777 | ac_cv_env_CPP_set=${CPP+set} |
| 778 | ac_cv_env_CPP_value=$CPP |
| 779 | |
| 780 | # |
| 781 | # Report the --help message. |
| 782 | # |
| 783 | if test "$ac_init_help" = "long"; then |
| 784 | # Omit some internal or obsolete options to make the list less imposing. |
| 785 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 786 | cat <<_ACEOF |
| 787 | \`configure' configures this package to adapt to many kinds of systems. |
| 788 | |
| 789 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 790 | |
| 791 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 792 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 793 | |
| 794 | Defaults for the options are specified in brackets. |
| 795 | |
| 796 | Configuration: |
| 797 | -h, --help display this help and exit |
| 798 | --help=short display options specific to this package |
| 799 | --help=recursive display the short help of all the included packages |
| 800 | -V, --version display version information and exit |
| 801 | -q, --quiet, --silent do not print \`checking...' messages |
| 802 | --cache-file=FILE cache test results in FILE [disabled] |
| 803 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 804 | -n, --no-create do not create output files |
| 805 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 806 | |
| 807 | _ACEOF |
| 808 | |
| 809 | cat <<_ACEOF |
| 810 | Installation directories: |
| 811 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 812 | [$ac_default_prefix] |
| 813 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 814 | [PREFIX] |
| 815 | |
| 816 | By default, \`make install' will install all the files in |
| 817 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 818 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 819 | for instance \`--prefix=\$HOME'. |
| 820 | |
| 821 | For better control, use the options below. |
| 822 | |
| 823 | Fine tuning of the installation directories: |
| 824 | --bindir=DIR user executables [EPREFIX/bin] |
| 825 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 826 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 827 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 828 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 829 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 830 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 831 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 832 | --includedir=DIR C header files [PREFIX/include] |
| 833 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 834 | --infodir=DIR info documentation [PREFIX/info] |
| 835 | --mandir=DIR man documentation [PREFIX/man] |
| 836 | _ACEOF |
| 837 | |
| 838 | cat <<\_ACEOF |
| 839 | |
| 840 | Program names: |
| 841 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 842 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 843 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 844 | |
| 845 | X features: |
| 846 | --x-includes=DIR X include files are in DIR |
| 847 | --x-libraries=DIR X library files are in DIR |
| 848 | |
| 849 | System types: |
| 850 | --build=BUILD configure for building on BUILD [guessed] |
| 851 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 852 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 853 | _ACEOF |
| 854 | fi |
| 855 | |
| 856 | if test -n "$ac_init_help"; then |
| 857 | |
| 858 | cat <<\_ACEOF |
| 859 | |
| 860 | Optional Features: |
| 861 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 862 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 863 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 864 | (and sometimes confusing) to the casual installer |
| 865 | --disable-dependency-tracking speeds up one-time build |
| 866 | --enable-dependency-tracking do not reject slow dependency extractors |
| 867 | --enable-targets=TARGETS |
| 868 | alternative target configurations |
| 869 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) |
| 870 | --disable-gdbcli disable command-line interface (CLI) |
| 871 | --disable-gdbmi disable machine-interface (MI) |
| 872 | --enable-tui enable full-screen terminal user interface (TUI) |
| 873 | --enable-gdbtk enable gdbtk graphical user interface (GUI) |
| 874 | --enable-profiling enable profiling of GDB |
| 875 | --disable-rpath do not hardcode runtime library paths |
| 876 | --enable-werror treat compile warnings as errors |
| 877 | --enable-build-warnings Enable build-time compiler warnings if gcc is used |
| 878 | --enable-gdb-build-warnings |
| 879 | Enable GDB specific build-time compiler warnings if |
| 880 | gcc is used |
| 881 | --enable-sim Link gdb with simulator |
| 882 | --enable-multi-ice build the multi-ice-gdb-server |
| 883 | |
| 884 | Optional Packages: |
| 885 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 886 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 887 | --with-separate-debug-dir=PATH |
| 888 | Look for global separate debug info in this path |
| 889 | LIBDIR/debug |
| 890 | --with-relocated-sources=PATH |
| 891 | Automatically relocate this path for source files |
| 892 | --with-libunwind Use libunwind frame unwinding support |
| 893 | --with-curses use the curses library instead of the termcap |
| 894 | library |
| 895 | --with-pkgversion=PKG Use PKG in the version string in place of "GDB" |
| 896 | --with-bugurl=URL Direct users to URL to report a bug |
| 897 | --with-libiconv-prefix=DIR |
| 898 | search for libiconv in DIR/include and DIR/lib |
| 899 | --with-system-readline use installed readline library |
| 900 | --with-expat include expat support (auto/yes/no) |
| 901 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 902 | --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib |
| 903 | --without-libexpat-prefix don't search for libexpat in includedir and libdir |
| 904 | --with-python include python support (auto/yes/no/<path>) |
| 905 | --without-included-regex |
| 906 | don't use included regex; this is the default on |
| 907 | systems with version 2 of the GNU C library (use |
| 908 | with caution on other system) |
| 909 | --with-sysroot=DIR Search for usr/lib et al within DIR. |
| 910 | --with-system-gdbinit=FILE |
| 911 | Automatically load a system-wide gdbinit file |
| 912 | --with-tcl directory containing tcl configuration (tclConfig.sh) |
| 913 | --with-tk directory containing tk configuration (tkConfig.sh) |
| 914 | --with-x use the X Window System |
| 915 | |
| 916 | Some influential environment variables: |
| 917 | CC C compiler command |
| 918 | CFLAGS C compiler flags |
| 919 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 920 | nonstandard directory <lib dir> |
| 921 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 922 | headers in a nonstandard directory <include dir> |
| 923 | CPP C preprocessor |
| 924 | |
| 925 | Use these variables to override the choices made by `configure' or to help |
| 926 | it to find libraries and programs with nonstandard names/locations. |
| 927 | |
| 928 | _ACEOF |
| 929 | fi |
| 930 | |
| 931 | if test "$ac_init_help" = "recursive"; then |
| 932 | # If there are subdirs, report their specific --help. |
| 933 | ac_popdir=`pwd` |
| 934 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 935 | test -d $ac_dir || continue |
| 936 | ac_builddir=. |
| 937 | |
| 938 | if test "$ac_dir" != .; then |
| 939 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 940 | # A "../" for each directory in $ac_dir_suffix. |
| 941 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 942 | else |
| 943 | ac_dir_suffix= ac_top_builddir= |
| 944 | fi |
| 945 | |
| 946 | case $srcdir in |
| 947 | .) # No --srcdir option. We are building in place. |
| 948 | ac_srcdir=. |
| 949 | if test -z "$ac_top_builddir"; then |
| 950 | ac_top_srcdir=. |
| 951 | else |
| 952 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 953 | fi ;; |
| 954 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 955 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 956 | ac_top_srcdir=$srcdir ;; |
| 957 | *) # Relative path. |
| 958 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 959 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 960 | esac |
| 961 | |
| 962 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 963 | # the directories may not exist. |
| 964 | case `pwd` in |
| 965 | .) ac_abs_builddir="$ac_dir";; |
| 966 | *) |
| 967 | case "$ac_dir" in |
| 968 | .) ac_abs_builddir=`pwd`;; |
| 969 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 970 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 971 | esac;; |
| 972 | esac |
| 973 | case $ac_abs_builddir in |
| 974 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 975 | *) |
| 976 | case ${ac_top_builddir}. in |
| 977 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 978 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 979 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 980 | esac;; |
| 981 | esac |
| 982 | case $ac_abs_builddir in |
| 983 | .) ac_abs_srcdir=$ac_srcdir;; |
| 984 | *) |
| 985 | case $ac_srcdir in |
| 986 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 987 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 988 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 989 | esac;; |
| 990 | esac |
| 991 | case $ac_abs_builddir in |
| 992 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 993 | *) |
| 994 | case $ac_top_srcdir in |
| 995 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 996 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 997 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 998 | esac;; |
| 999 | esac |
| 1000 | |
| 1001 | cd $ac_dir |
| 1002 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1003 | if test -f $ac_srcdir/configure.gnu; then |
| 1004 | echo |
| 1005 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1006 | elif test -f $ac_srcdir/configure; then |
| 1007 | echo |
| 1008 | $SHELL $ac_srcdir/configure --help=recursive |
| 1009 | elif test -f $ac_srcdir/configure.ac || |
| 1010 | test -f $ac_srcdir/configure.in; then |
| 1011 | echo |
| 1012 | $ac_configure --help |
| 1013 | else |
| 1014 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1015 | fi |
| 1016 | cd $ac_popdir |
| 1017 | done |
| 1018 | fi |
| 1019 | |
| 1020 | test -n "$ac_init_help" && exit 0 |
| 1021 | if $ac_init_version; then |
| 1022 | cat <<\_ACEOF |
| 1023 | |
| 1024 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1025 | This configure script is free software; the Free Software Foundation |
| 1026 | gives unlimited permission to copy, distribute and modify it. |
| 1027 | _ACEOF |
| 1028 | exit 0 |
| 1029 | fi |
| 1030 | exec 5>config.log |
| 1031 | cat >&5 <<_ACEOF |
| 1032 | This file contains any messages produced by compilers while |
| 1033 | running configure, to aid debugging if configure makes a mistake. |
| 1034 | |
| 1035 | It was created by $as_me, which was |
| 1036 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1037 | |
| 1038 | $ $0 $@ |
| 1039 | |
| 1040 | _ACEOF |
| 1041 | { |
| 1042 | cat <<_ASUNAME |
| 1043 | ## --------- ## |
| 1044 | ## Platform. ## |
| 1045 | ## --------- ## |
| 1046 | |
| 1047 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1048 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1049 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1050 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1051 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1052 | |
| 1053 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1054 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1055 | |
| 1056 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1057 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1058 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1059 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1060 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1061 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1062 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1063 | |
| 1064 | _ASUNAME |
| 1065 | |
| 1066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1067 | for as_dir in $PATH |
| 1068 | do |
| 1069 | IFS=$as_save_IFS |
| 1070 | test -z "$as_dir" && as_dir=. |
| 1071 | echo "PATH: $as_dir" |
| 1072 | done |
| 1073 | |
| 1074 | } >&5 |
| 1075 | |
| 1076 | cat >&5 <<_ACEOF |
| 1077 | |
| 1078 | |
| 1079 | ## ----------- ## |
| 1080 | ## Core tests. ## |
| 1081 | ## ----------- ## |
| 1082 | |
| 1083 | _ACEOF |
| 1084 | |
| 1085 | |
| 1086 | # Keep a trace of the command line. |
| 1087 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1088 | # Strip out --silent because we don't want to record it for future runs. |
| 1089 | # Also quote any args containing shell meta-characters. |
| 1090 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1091 | ac_configure_args= |
| 1092 | ac_configure_args0= |
| 1093 | ac_configure_args1= |
| 1094 | ac_sep= |
| 1095 | ac_must_keep_next=false |
| 1096 | for ac_pass in 1 2 |
| 1097 | do |
| 1098 | for ac_arg |
| 1099 | do |
| 1100 | case $ac_arg in |
| 1101 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1102 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1103 | | -silent | --silent | --silen | --sile | --sil) |
| 1104 | continue ;; |
| 1105 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1106 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1107 | esac |
| 1108 | case $ac_pass in |
| 1109 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1110 | 2) |
| 1111 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1112 | if test $ac_must_keep_next = true; then |
| 1113 | ac_must_keep_next=false # Got value, back to normal. |
| 1114 | else |
| 1115 | case $ac_arg in |
| 1116 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1117 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1118 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1119 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1120 | case "$ac_configure_args0 " in |
| 1121 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1122 | esac |
| 1123 | ;; |
| 1124 | -* ) ac_must_keep_next=true ;; |
| 1125 | esac |
| 1126 | fi |
| 1127 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1128 | # Get rid of the leading space. |
| 1129 | ac_sep=" " |
| 1130 | ;; |
| 1131 | esac |
| 1132 | done |
| 1133 | done |
| 1134 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1135 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1136 | |
| 1137 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1138 | # config.log. We remove comments because anyway the quotes in there |
| 1139 | # would cause problems or look ugly. |
| 1140 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1141 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1142 | trap 'exit_status=$? |
| 1143 | # Save into config.log some information that might help in debugging. |
| 1144 | { |
| 1145 | echo |
| 1146 | |
| 1147 | cat <<\_ASBOX |
| 1148 | ## ---------------- ## |
| 1149 | ## Cache variables. ## |
| 1150 | ## ---------------- ## |
| 1151 | _ASBOX |
| 1152 | echo |
| 1153 | # The following way of writing the cache mishandles newlines in values, |
| 1154 | { |
| 1155 | (set) 2>&1 | |
| 1156 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1157 | *ac_space=\ *) |
| 1158 | sed -n \ |
| 1159 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1160 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1161 | ;; |
| 1162 | *) |
| 1163 | sed -n \ |
| 1164 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1165 | ;; |
| 1166 | esac; |
| 1167 | } |
| 1168 | echo |
| 1169 | |
| 1170 | cat <<\_ASBOX |
| 1171 | ## ----------------- ## |
| 1172 | ## Output variables. ## |
| 1173 | ## ----------------- ## |
| 1174 | _ASBOX |
| 1175 | echo |
| 1176 | for ac_var in $ac_subst_vars |
| 1177 | do |
| 1178 | eval ac_val=$`echo $ac_var` |
| 1179 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1180 | done | sort |
| 1181 | echo |
| 1182 | |
| 1183 | if test -n "$ac_subst_files"; then |
| 1184 | cat <<\_ASBOX |
| 1185 | ## ------------- ## |
| 1186 | ## Output files. ## |
| 1187 | ## ------------- ## |
| 1188 | _ASBOX |
| 1189 | echo |
| 1190 | for ac_var in $ac_subst_files |
| 1191 | do |
| 1192 | eval ac_val=$`echo $ac_var` |
| 1193 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1194 | done | sort |
| 1195 | echo |
| 1196 | fi |
| 1197 | |
| 1198 | if test -s confdefs.h; then |
| 1199 | cat <<\_ASBOX |
| 1200 | ## ----------- ## |
| 1201 | ## confdefs.h. ## |
| 1202 | ## ----------- ## |
| 1203 | _ASBOX |
| 1204 | echo |
| 1205 | sed "/^$/d" confdefs.h | sort |
| 1206 | echo |
| 1207 | fi |
| 1208 | test "$ac_signal" != 0 && |
| 1209 | echo "$as_me: caught signal $ac_signal" |
| 1210 | echo "$as_me: exit $exit_status" |
| 1211 | } >&5 |
| 1212 | rm -f core *.core && |
| 1213 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1214 | exit $exit_status |
| 1215 | ' 0 |
| 1216 | for ac_signal in 1 2 13 15; do |
| 1217 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1218 | done |
| 1219 | ac_signal=0 |
| 1220 | |
| 1221 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1222 | rm -rf conftest* confdefs.h |
| 1223 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1224 | echo >confdefs.h |
| 1225 | |
| 1226 | # Predefined preprocessor variables. |
| 1227 | |
| 1228 | cat >>confdefs.h <<_ACEOF |
| 1229 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1230 | _ACEOF |
| 1231 | |
| 1232 | |
| 1233 | cat >>confdefs.h <<_ACEOF |
| 1234 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1235 | _ACEOF |
| 1236 | |
| 1237 | |
| 1238 | cat >>confdefs.h <<_ACEOF |
| 1239 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1240 | _ACEOF |
| 1241 | |
| 1242 | |
| 1243 | cat >>confdefs.h <<_ACEOF |
| 1244 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1245 | _ACEOF |
| 1246 | |
| 1247 | |
| 1248 | cat >>confdefs.h <<_ACEOF |
| 1249 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1250 | _ACEOF |
| 1251 | |
| 1252 | |
| 1253 | # Let the site file select an alternate cache file if it wants to. |
| 1254 | # Prefer explicitly selected file to automatically selected ones. |
| 1255 | if test -z "$CONFIG_SITE"; then |
| 1256 | if test "x$prefix" != xNONE; then |
| 1257 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1258 | else |
| 1259 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1260 | fi |
| 1261 | fi |
| 1262 | for ac_site_file in $CONFIG_SITE; do |
| 1263 | if test -r "$ac_site_file"; then |
| 1264 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1265 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1266 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1267 | . "$ac_site_file" |
| 1268 | fi |
| 1269 | done |
| 1270 | |
| 1271 | if test -r "$cache_file"; then |
| 1272 | # Some versions of bash will fail to source /dev/null (special |
| 1273 | # files actually), so we avoid doing that. |
| 1274 | if test -f "$cache_file"; then |
| 1275 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1276 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1277 | case $cache_file in |
| 1278 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1279 | *) . ./$cache_file;; |
| 1280 | esac |
| 1281 | fi |
| 1282 | else |
| 1283 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1284 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1285 | >$cache_file |
| 1286 | fi |
| 1287 | |
| 1288 | # Check that the precious variables saved in the cache have kept the same |
| 1289 | # value. |
| 1290 | ac_cache_corrupted=false |
| 1291 | for ac_var in `(set) 2>&1 | |
| 1292 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1293 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1294 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1295 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1296 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1297 | case $ac_old_set,$ac_new_set in |
| 1298 | set,) |
| 1299 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1300 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1301 | ac_cache_corrupted=: ;; |
| 1302 | ,set) |
| 1303 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1304 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1305 | ac_cache_corrupted=: ;; |
| 1306 | ,);; |
| 1307 | *) |
| 1308 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1309 | # differences in whitespace do not lead to failure. |
| 1310 | ac_old_val_w=`echo x $ac_old_val` |
| 1311 | ac_new_val_w=`echo x $ac_new_val` |
| 1312 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1313 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1314 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1315 | ac_cache_corrupted=: |
| 1316 | else |
| 1317 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1318 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1319 | eval $ac_var=\$ac_old_val |
| 1320 | fi |
| 1321 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 1322 | echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1323 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 1324 | echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 1325 | fi;; |
| 1326 | esac |
| 1327 | # Pass precious variables to config.status. |
| 1328 | if test "$ac_new_set" = set; then |
| 1329 | case $ac_new_val in |
| 1330 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1331 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1332 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1333 | esac |
| 1334 | case " $ac_configure_args " in |
| 1335 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1336 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1337 | esac |
| 1338 | fi |
| 1339 | done |
| 1340 | if $ac_cache_corrupted; then |
| 1341 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1342 | echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1343 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1344 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1345 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1346 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1347 | { (exit 1); exit 1; }; } |
| 1348 | fi |
| 1349 | |
| 1350 | ac_ext=c |
| 1351 | ac_cpp='$CPP $CPPFLAGS' |
| 1352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1355 | |
| 1356 | |
| 1357 | gl_header_list="$gl_header_list stdint.h" |
| 1358 | gl_header_list="$gl_header_list wchar.h" |
| 1359 | gl_header_list="$gl_header_list string.h" |
| 1360 | |
| 1361 | |
| 1362 | |
| 1363 | |
| 1364 | |
| 1365 | |
| 1366 | |
| 1367 | |
| 1368 | |
| 1369 | |
| 1370 | |
| 1371 | |
| 1372 | |
| 1373 | |
| 1374 | |
| 1375 | |
| 1376 | |
| 1377 | |
| 1378 | |
| 1379 | |
| 1380 | ac_config_headers="$ac_config_headers config.h:config.in" |
| 1381 | |
| 1382 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 1383 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 1384 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 1385 | if test "${enable_maintainer_mode+set}" = set; then |
| 1386 | enableval="$enable_maintainer_mode" |
| 1387 | USE_MAINTAINER_MODE=$enableval |
| 1388 | else |
| 1389 | USE_MAINTAINER_MODE=no |
| 1390 | fi; |
| 1391 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 1392 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 1393 | |
| 1394 | |
| 1395 | if test $USE_MAINTAINER_MODE = yes; then |
| 1396 | MAINTAINER_MODE_TRUE= |
| 1397 | MAINTAINER_MODE_FALSE='#' |
| 1398 | else |
| 1399 | MAINTAINER_MODE_TRUE='#' |
| 1400 | MAINTAINER_MODE_FALSE= |
| 1401 | fi |
| 1402 | |
| 1403 | MAINT=$MAINTAINER_MODE_TRUE |
| 1404 | |
| 1405 | |
| 1406 | |
| 1407 | ac_ext=c |
| 1408 | ac_cpp='$CPP $CPPFLAGS' |
| 1409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1412 | if test -n "$ac_tool_prefix"; then |
| 1413 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1414 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1415 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1417 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1419 | else |
| 1420 | if test -n "$CC"; then |
| 1421 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1422 | else |
| 1423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1424 | for as_dir in $PATH |
| 1425 | do |
| 1426 | IFS=$as_save_IFS |
| 1427 | test -z "$as_dir" && as_dir=. |
| 1428 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1429 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1430 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1431 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1432 | break 2 |
| 1433 | fi |
| 1434 | done |
| 1435 | done |
| 1436 | |
| 1437 | fi |
| 1438 | fi |
| 1439 | CC=$ac_cv_prog_CC |
| 1440 | if test -n "$CC"; then |
| 1441 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1442 | echo "${ECHO_T}$CC" >&6 |
| 1443 | else |
| 1444 | echo "$as_me:$LINENO: result: no" >&5 |
| 1445 | echo "${ECHO_T}no" >&6 |
| 1446 | fi |
| 1447 | |
| 1448 | fi |
| 1449 | if test -z "$ac_cv_prog_CC"; then |
| 1450 | ac_ct_CC=$CC |
| 1451 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1452 | set dummy gcc; ac_word=$2 |
| 1453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1455 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1457 | else |
| 1458 | if test -n "$ac_ct_CC"; then |
| 1459 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1460 | else |
| 1461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1462 | for as_dir in $PATH |
| 1463 | do |
| 1464 | IFS=$as_save_IFS |
| 1465 | test -z "$as_dir" && as_dir=. |
| 1466 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1467 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1468 | ac_cv_prog_ac_ct_CC="gcc" |
| 1469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1470 | break 2 |
| 1471 | fi |
| 1472 | done |
| 1473 | done |
| 1474 | |
| 1475 | fi |
| 1476 | fi |
| 1477 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1478 | if test -n "$ac_ct_CC"; then |
| 1479 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1480 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1481 | else |
| 1482 | echo "$as_me:$LINENO: result: no" >&5 |
| 1483 | echo "${ECHO_T}no" >&6 |
| 1484 | fi |
| 1485 | |
| 1486 | CC=$ac_ct_CC |
| 1487 | else |
| 1488 | CC="$ac_cv_prog_CC" |
| 1489 | fi |
| 1490 | |
| 1491 | if test -z "$CC"; then |
| 1492 | if test -n "$ac_tool_prefix"; then |
| 1493 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1494 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1495 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1497 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1499 | else |
| 1500 | if test -n "$CC"; then |
| 1501 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1502 | else |
| 1503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1504 | for as_dir in $PATH |
| 1505 | do |
| 1506 | IFS=$as_save_IFS |
| 1507 | test -z "$as_dir" && as_dir=. |
| 1508 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1509 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1510 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1511 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1512 | break 2 |
| 1513 | fi |
| 1514 | done |
| 1515 | done |
| 1516 | |
| 1517 | fi |
| 1518 | fi |
| 1519 | CC=$ac_cv_prog_CC |
| 1520 | if test -n "$CC"; then |
| 1521 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1522 | echo "${ECHO_T}$CC" >&6 |
| 1523 | else |
| 1524 | echo "$as_me:$LINENO: result: no" >&5 |
| 1525 | echo "${ECHO_T}no" >&6 |
| 1526 | fi |
| 1527 | |
| 1528 | fi |
| 1529 | if test -z "$ac_cv_prog_CC"; then |
| 1530 | ac_ct_CC=$CC |
| 1531 | # Extract the first word of "cc", so it can be a program name with args. |
| 1532 | set dummy cc; ac_word=$2 |
| 1533 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1535 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1537 | else |
| 1538 | if test -n "$ac_ct_CC"; then |
| 1539 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1540 | else |
| 1541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1542 | for as_dir in $PATH |
| 1543 | do |
| 1544 | IFS=$as_save_IFS |
| 1545 | test -z "$as_dir" && as_dir=. |
| 1546 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1547 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1548 | ac_cv_prog_ac_ct_CC="cc" |
| 1549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1550 | break 2 |
| 1551 | fi |
| 1552 | done |
| 1553 | done |
| 1554 | |
| 1555 | fi |
| 1556 | fi |
| 1557 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1558 | if test -n "$ac_ct_CC"; then |
| 1559 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1560 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1561 | else |
| 1562 | echo "$as_me:$LINENO: result: no" >&5 |
| 1563 | echo "${ECHO_T}no" >&6 |
| 1564 | fi |
| 1565 | |
| 1566 | CC=$ac_ct_CC |
| 1567 | else |
| 1568 | CC="$ac_cv_prog_CC" |
| 1569 | fi |
| 1570 | |
| 1571 | fi |
| 1572 | if test -z "$CC"; then |
| 1573 | # Extract the first word of "cc", so it can be a program name with args. |
| 1574 | set dummy cc; ac_word=$2 |
| 1575 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1577 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1579 | else |
| 1580 | if test -n "$CC"; then |
| 1581 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1582 | else |
| 1583 | ac_prog_rejected=no |
| 1584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1585 | for as_dir in $PATH |
| 1586 | do |
| 1587 | IFS=$as_save_IFS |
| 1588 | test -z "$as_dir" && as_dir=. |
| 1589 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1590 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1591 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1592 | ac_prog_rejected=yes |
| 1593 | continue |
| 1594 | fi |
| 1595 | ac_cv_prog_CC="cc" |
| 1596 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1597 | break 2 |
| 1598 | fi |
| 1599 | done |
| 1600 | done |
| 1601 | |
| 1602 | if test $ac_prog_rejected = yes; then |
| 1603 | # We found a bogon in the path, so make sure we never use it. |
| 1604 | set dummy $ac_cv_prog_CC |
| 1605 | shift |
| 1606 | if test $# != 0; then |
| 1607 | # We chose a different compiler from the bogus one. |
| 1608 | # However, it has the same basename, so the bogon will be chosen |
| 1609 | # first if we set CC to just the basename; use the full file name. |
| 1610 | shift |
| 1611 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1612 | fi |
| 1613 | fi |
| 1614 | fi |
| 1615 | fi |
| 1616 | CC=$ac_cv_prog_CC |
| 1617 | if test -n "$CC"; then |
| 1618 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1619 | echo "${ECHO_T}$CC" >&6 |
| 1620 | else |
| 1621 | echo "$as_me:$LINENO: result: no" >&5 |
| 1622 | echo "${ECHO_T}no" >&6 |
| 1623 | fi |
| 1624 | |
| 1625 | fi |
| 1626 | if test -z "$CC"; then |
| 1627 | if test -n "$ac_tool_prefix"; then |
| 1628 | for ac_prog in cl |
| 1629 | do |
| 1630 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1631 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1634 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1636 | else |
| 1637 | if test -n "$CC"; then |
| 1638 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1639 | else |
| 1640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1641 | for as_dir in $PATH |
| 1642 | do |
| 1643 | IFS=$as_save_IFS |
| 1644 | test -z "$as_dir" && as_dir=. |
| 1645 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1646 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1647 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1649 | break 2 |
| 1650 | fi |
| 1651 | done |
| 1652 | done |
| 1653 | |
| 1654 | fi |
| 1655 | fi |
| 1656 | CC=$ac_cv_prog_CC |
| 1657 | if test -n "$CC"; then |
| 1658 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1659 | echo "${ECHO_T}$CC" >&6 |
| 1660 | else |
| 1661 | echo "$as_me:$LINENO: result: no" >&5 |
| 1662 | echo "${ECHO_T}no" >&6 |
| 1663 | fi |
| 1664 | |
| 1665 | test -n "$CC" && break |
| 1666 | done |
| 1667 | fi |
| 1668 | if test -z "$CC"; then |
| 1669 | ac_ct_CC=$CC |
| 1670 | for ac_prog in cl |
| 1671 | do |
| 1672 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1673 | set dummy $ac_prog; ac_word=$2 |
| 1674 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1675 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1676 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1678 | else |
| 1679 | if test -n "$ac_ct_CC"; then |
| 1680 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1681 | else |
| 1682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1683 | for as_dir in $PATH |
| 1684 | do |
| 1685 | IFS=$as_save_IFS |
| 1686 | test -z "$as_dir" && as_dir=. |
| 1687 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1688 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1689 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1690 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1691 | break 2 |
| 1692 | fi |
| 1693 | done |
| 1694 | done |
| 1695 | |
| 1696 | fi |
| 1697 | fi |
| 1698 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1699 | if test -n "$ac_ct_CC"; then |
| 1700 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1701 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1702 | else |
| 1703 | echo "$as_me:$LINENO: result: no" >&5 |
| 1704 | echo "${ECHO_T}no" >&6 |
| 1705 | fi |
| 1706 | |
| 1707 | test -n "$ac_ct_CC" && break |
| 1708 | done |
| 1709 | |
| 1710 | CC=$ac_ct_CC |
| 1711 | fi |
| 1712 | |
| 1713 | fi |
| 1714 | |
| 1715 | |
| 1716 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1717 | echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1718 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1719 | See \`config.log' for more details." >&5 |
| 1720 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1721 | See \`config.log' for more details." >&2;} |
| 1722 | { (exit 1); exit 1; }; }; } |
| 1723 | |
| 1724 | # Provide some information about the compiler. |
| 1725 | echo "$as_me:$LINENO:" \ |
| 1726 | "checking for C compiler version" >&5 |
| 1727 | ac_compiler=`set X $ac_compile; echo $2` |
| 1728 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1729 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1730 | ac_status=$? |
| 1731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1732 | (exit $ac_status); } |
| 1733 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1734 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1735 | ac_status=$? |
| 1736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1737 | (exit $ac_status); } |
| 1738 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1739 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1740 | ac_status=$? |
| 1741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1742 | (exit $ac_status); } |
| 1743 | |
| 1744 | cat >conftest.$ac_ext <<_ACEOF |
| 1745 | /* confdefs.h. */ |
| 1746 | _ACEOF |
| 1747 | cat confdefs.h >>conftest.$ac_ext |
| 1748 | cat >>conftest.$ac_ext <<_ACEOF |
| 1749 | /* end confdefs.h. */ |
| 1750 | |
| 1751 | int |
| 1752 | main () |
| 1753 | { |
| 1754 | |
| 1755 | ; |
| 1756 | return 0; |
| 1757 | } |
| 1758 | _ACEOF |
| 1759 | ac_clean_files_save=$ac_clean_files |
| 1760 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1761 | # Try to create an executable without -o first, disregard a.out. |
| 1762 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1763 | # of exeext. |
| 1764 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1765 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1766 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1767 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1768 | (eval $ac_link_default) 2>&5 |
| 1769 | ac_status=$? |
| 1770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1771 | (exit $ac_status); }; then |
| 1772 | # Find the output, starting from the most likely. This scheme is |
| 1773 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1774 | # resort. |
| 1775 | |
| 1776 | # Be careful to initialize this variable, since it used to be cached. |
| 1777 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1778 | ac_cv_exeext= |
| 1779 | # b.out is created by i960 compilers. |
| 1780 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1781 | do |
| 1782 | test -f "$ac_file" || continue |
| 1783 | case $ac_file in |
| 1784 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1785 | ;; |
| 1786 | conftest.$ac_ext ) |
| 1787 | # This is the source file. |
| 1788 | ;; |
| 1789 | [ab].out ) |
| 1790 | # We found the default executable, but exeext='' is most |
| 1791 | # certainly right. |
| 1792 | break;; |
| 1793 | *.* ) |
| 1794 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1795 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1796 | # but it would be cool to find out if it's true. Does anybody |
| 1797 | # maintain Libtool? --akim. |
| 1798 | export ac_cv_exeext |
| 1799 | break;; |
| 1800 | * ) |
| 1801 | break;; |
| 1802 | esac |
| 1803 | done |
| 1804 | else |
| 1805 | echo "$as_me: failed program was:" >&5 |
| 1806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1807 | |
| 1808 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1809 | echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1810 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1811 | See \`config.log' for more details." >&5 |
| 1812 | echo "$as_me: error: C compiler cannot create executables |
| 1813 | See \`config.log' for more details." >&2;} |
| 1814 | { (exit 77); exit 77; }; }; } |
| 1815 | fi |
| 1816 | |
| 1817 | ac_exeext=$ac_cv_exeext |
| 1818 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1819 | echo "${ECHO_T}$ac_file" >&6 |
| 1820 | |
| 1821 | # Check the compiler produces executables we can run. If not, either |
| 1822 | # the compiler is broken, or we cross compile. |
| 1823 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1824 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1825 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1826 | # If not cross compiling, check that we can run a simple program. |
| 1827 | if test "$cross_compiling" != yes; then |
| 1828 | if { ac_try='./$ac_file' |
| 1829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1830 | (eval $ac_try) 2>&5 |
| 1831 | ac_status=$? |
| 1832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1833 | (exit $ac_status); }; }; then |
| 1834 | cross_compiling=no |
| 1835 | else |
| 1836 | if test "$cross_compiling" = maybe; then |
| 1837 | cross_compiling=yes |
| 1838 | else |
| 1839 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1840 | echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1841 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1842 | If you meant to cross compile, use \`--host'. |
| 1843 | See \`config.log' for more details." >&5 |
| 1844 | echo "$as_me: error: cannot run C compiled programs. |
| 1845 | If you meant to cross compile, use \`--host'. |
| 1846 | See \`config.log' for more details." >&2;} |
| 1847 | { (exit 1); exit 1; }; }; } |
| 1848 | fi |
| 1849 | fi |
| 1850 | fi |
| 1851 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1852 | echo "${ECHO_T}yes" >&6 |
| 1853 | |
| 1854 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1855 | ac_clean_files=$ac_clean_files_save |
| 1856 | # Check the compiler produces executables we can run. If not, either |
| 1857 | # the compiler is broken, or we cross compile. |
| 1858 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1859 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1860 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1861 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1862 | |
| 1863 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1864 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1866 | (eval $ac_link) 2>&5 |
| 1867 | ac_status=$? |
| 1868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1869 | (exit $ac_status); }; then |
| 1870 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1871 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1872 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1873 | # `rm'. |
| 1874 | for ac_file in conftest.exe conftest conftest.*; do |
| 1875 | test -f "$ac_file" || continue |
| 1876 | case $ac_file in |
| 1877 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1878 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1879 | export ac_cv_exeext |
| 1880 | break;; |
| 1881 | * ) break;; |
| 1882 | esac |
| 1883 | done |
| 1884 | else |
| 1885 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1886 | echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1887 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1888 | See \`config.log' for more details." >&5 |
| 1889 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1890 | See \`config.log' for more details." >&2;} |
| 1891 | { (exit 1); exit 1; }; }; } |
| 1892 | fi |
| 1893 | |
| 1894 | rm -f conftest$ac_cv_exeext |
| 1895 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1896 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1897 | |
| 1898 | rm -f conftest.$ac_ext |
| 1899 | EXEEXT=$ac_cv_exeext |
| 1900 | ac_exeext=$EXEEXT |
| 1901 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1902 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1903 | if test "${ac_cv_objext+set}" = set; then |
| 1904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1905 | else |
| 1906 | cat >conftest.$ac_ext <<_ACEOF |
| 1907 | /* confdefs.h. */ |
| 1908 | _ACEOF |
| 1909 | cat confdefs.h >>conftest.$ac_ext |
| 1910 | cat >>conftest.$ac_ext <<_ACEOF |
| 1911 | /* end confdefs.h. */ |
| 1912 | |
| 1913 | int |
| 1914 | main () |
| 1915 | { |
| 1916 | |
| 1917 | ; |
| 1918 | return 0; |
| 1919 | } |
| 1920 | _ACEOF |
| 1921 | rm -f conftest.o conftest.obj |
| 1922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1923 | (eval $ac_compile) 2>&5 |
| 1924 | ac_status=$? |
| 1925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1926 | (exit $ac_status); }; then |
| 1927 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1928 | case $ac_file in |
| 1929 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1930 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1931 | break;; |
| 1932 | esac |
| 1933 | done |
| 1934 | else |
| 1935 | echo "$as_me: failed program was:" >&5 |
| 1936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1937 | |
| 1938 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 1939 | echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1940 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1941 | See \`config.log' for more details." >&5 |
| 1942 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1943 | See \`config.log' for more details." >&2;} |
| 1944 | { (exit 1); exit 1; }; }; } |
| 1945 | fi |
| 1946 | |
| 1947 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1948 | fi |
| 1949 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1950 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1951 | OBJEXT=$ac_cv_objext |
| 1952 | ac_objext=$OBJEXT |
| 1953 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1954 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1955 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1957 | else |
| 1958 | cat >conftest.$ac_ext <<_ACEOF |
| 1959 | /* confdefs.h. */ |
| 1960 | _ACEOF |
| 1961 | cat confdefs.h >>conftest.$ac_ext |
| 1962 | cat >>conftest.$ac_ext <<_ACEOF |
| 1963 | /* end confdefs.h. */ |
| 1964 | |
| 1965 | int |
| 1966 | main () |
| 1967 | { |
| 1968 | #ifndef __GNUC__ |
| 1969 | choke me |
| 1970 | #endif |
| 1971 | |
| 1972 | ; |
| 1973 | return 0; |
| 1974 | } |
| 1975 | _ACEOF |
| 1976 | rm -f conftest.$ac_objext |
| 1977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1978 | (eval $ac_compile) 2>conftest.er1 |
| 1979 | ac_status=$? |
| 1980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1981 | rm -f conftest.er1 |
| 1982 | cat conftest.err >&5 |
| 1983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1984 | (exit $ac_status); } && |
| 1985 | { ac_try='test -z "$ac_c_werror_flag" |
| 1986 | || test ! -s conftest.err' |
| 1987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1988 | (eval $ac_try) 2>&5 |
| 1989 | ac_status=$? |
| 1990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1991 | (exit $ac_status); }; } && |
| 1992 | { ac_try='test -s conftest.$ac_objext' |
| 1993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1994 | (eval $ac_try) 2>&5 |
| 1995 | ac_status=$? |
| 1996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1997 | (exit $ac_status); }; }; then |
| 1998 | ac_compiler_gnu=yes |
| 1999 | else |
| 2000 | echo "$as_me: failed program was:" >&5 |
| 2001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2002 | |
| 2003 | ac_compiler_gnu=no |
| 2004 | fi |
| 2005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2006 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2007 | |
| 2008 | fi |
| 2009 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2010 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2011 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2012 | ac_test_CFLAGS=${CFLAGS+set} |
| 2013 | ac_save_CFLAGS=$CFLAGS |
| 2014 | CFLAGS="-g" |
| 2015 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2016 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2017 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2019 | else |
| 2020 | cat >conftest.$ac_ext <<_ACEOF |
| 2021 | /* confdefs.h. */ |
| 2022 | _ACEOF |
| 2023 | cat confdefs.h >>conftest.$ac_ext |
| 2024 | cat >>conftest.$ac_ext <<_ACEOF |
| 2025 | /* end confdefs.h. */ |
| 2026 | |
| 2027 | int |
| 2028 | main () |
| 2029 | { |
| 2030 | |
| 2031 | ; |
| 2032 | return 0; |
| 2033 | } |
| 2034 | _ACEOF |
| 2035 | rm -f conftest.$ac_objext |
| 2036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2037 | (eval $ac_compile) 2>conftest.er1 |
| 2038 | ac_status=$? |
| 2039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2040 | rm -f conftest.er1 |
| 2041 | cat conftest.err >&5 |
| 2042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2043 | (exit $ac_status); } && |
| 2044 | { ac_try='test -z "$ac_c_werror_flag" |
| 2045 | || test ! -s conftest.err' |
| 2046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2047 | (eval $ac_try) 2>&5 |
| 2048 | ac_status=$? |
| 2049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2050 | (exit $ac_status); }; } && |
| 2051 | { ac_try='test -s conftest.$ac_objext' |
| 2052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2053 | (eval $ac_try) 2>&5 |
| 2054 | ac_status=$? |
| 2055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2056 | (exit $ac_status); }; }; then |
| 2057 | ac_cv_prog_cc_g=yes |
| 2058 | else |
| 2059 | echo "$as_me: failed program was:" >&5 |
| 2060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2061 | |
| 2062 | ac_cv_prog_cc_g=no |
| 2063 | fi |
| 2064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2065 | fi |
| 2066 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2067 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2068 | if test "$ac_test_CFLAGS" = set; then |
| 2069 | CFLAGS=$ac_save_CFLAGS |
| 2070 | elif test $ac_cv_prog_cc_g = yes; then |
| 2071 | if test "$GCC" = yes; then |
| 2072 | CFLAGS="-g -O2" |
| 2073 | else |
| 2074 | CFLAGS="-g" |
| 2075 | fi |
| 2076 | else |
| 2077 | if test "$GCC" = yes; then |
| 2078 | CFLAGS="-O2" |
| 2079 | else |
| 2080 | CFLAGS= |
| 2081 | fi |
| 2082 | fi |
| 2083 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2084 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2085 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2087 | else |
| 2088 | ac_cv_prog_cc_stdc=no |
| 2089 | ac_save_CC=$CC |
| 2090 | cat >conftest.$ac_ext <<_ACEOF |
| 2091 | /* confdefs.h. */ |
| 2092 | _ACEOF |
| 2093 | cat confdefs.h >>conftest.$ac_ext |
| 2094 | cat >>conftest.$ac_ext <<_ACEOF |
| 2095 | /* end confdefs.h. */ |
| 2096 | #include <stdarg.h> |
| 2097 | #include <stdio.h> |
| 2098 | #include <sys/types.h> |
| 2099 | #include <sys/stat.h> |
| 2100 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2101 | struct buf { int x; }; |
| 2102 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2103 | static char *e (p, i) |
| 2104 | char **p; |
| 2105 | int i; |
| 2106 | { |
| 2107 | return p[i]; |
| 2108 | } |
| 2109 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2110 | { |
| 2111 | char *s; |
| 2112 | va_list v; |
| 2113 | va_start (v,p); |
| 2114 | s = g (p, va_arg (v,int)); |
| 2115 | va_end (v); |
| 2116 | return s; |
| 2117 | } |
| 2118 | |
| 2119 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2120 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2121 | These don't provoke an error unfortunately, instead are silently treated |
| 2122 | as 'x'. The following induces an error, until -std1 is added to get |
| 2123 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2124 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2125 | that's true only with -std1. */ |
| 2126 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2127 | |
| 2128 | int test (int i, double x); |
| 2129 | struct s1 {int (*f) (int a);}; |
| 2130 | struct s2 {int (*f) (double a);}; |
| 2131 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2132 | int argc; |
| 2133 | char **argv; |
| 2134 | int |
| 2135 | main () |
| 2136 | { |
| 2137 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2138 | ; |
| 2139 | return 0; |
| 2140 | } |
| 2141 | _ACEOF |
| 2142 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2143 | # breaks some systems' header files. |
| 2144 | # AIX -qlanglvl=ansi |
| 2145 | # Ultrix and OSF/1 -std1 |
| 2146 | # HP-UX 10.20 and later -Ae |
| 2147 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2148 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2149 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2150 | do |
| 2151 | CC="$ac_save_CC $ac_arg" |
| 2152 | rm -f conftest.$ac_objext |
| 2153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2154 | (eval $ac_compile) 2>conftest.er1 |
| 2155 | ac_status=$? |
| 2156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2157 | rm -f conftest.er1 |
| 2158 | cat conftest.err >&5 |
| 2159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2160 | (exit $ac_status); } && |
| 2161 | { ac_try='test -z "$ac_c_werror_flag" |
| 2162 | || test ! -s conftest.err' |
| 2163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2164 | (eval $ac_try) 2>&5 |
| 2165 | ac_status=$? |
| 2166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2167 | (exit $ac_status); }; } && |
| 2168 | { ac_try='test -s conftest.$ac_objext' |
| 2169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2170 | (eval $ac_try) 2>&5 |
| 2171 | ac_status=$? |
| 2172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2173 | (exit $ac_status); }; }; then |
| 2174 | ac_cv_prog_cc_stdc=$ac_arg |
| 2175 | break |
| 2176 | else |
| 2177 | echo "$as_me: failed program was:" >&5 |
| 2178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2179 | |
| 2180 | fi |
| 2181 | rm -f conftest.err conftest.$ac_objext |
| 2182 | done |
| 2183 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2184 | CC=$ac_save_CC |
| 2185 | |
| 2186 | fi |
| 2187 | |
| 2188 | case "x$ac_cv_prog_cc_stdc" in |
| 2189 | x|xno) |
| 2190 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2191 | echo "${ECHO_T}none needed" >&6 ;; |
| 2192 | *) |
| 2193 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2194 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2195 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2196 | esac |
| 2197 | |
| 2198 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2199 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2200 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2201 | # the declaration of exit, since it's the most demanding environment. |
| 2202 | cat >conftest.$ac_ext <<_ACEOF |
| 2203 | #ifndef __cplusplus |
| 2204 | choke me |
| 2205 | #endif |
| 2206 | _ACEOF |
| 2207 | rm -f conftest.$ac_objext |
| 2208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2209 | (eval $ac_compile) 2>conftest.er1 |
| 2210 | ac_status=$? |
| 2211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2212 | rm -f conftest.er1 |
| 2213 | cat conftest.err >&5 |
| 2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2215 | (exit $ac_status); } && |
| 2216 | { ac_try='test -z "$ac_c_werror_flag" |
| 2217 | || test ! -s conftest.err' |
| 2218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2219 | (eval $ac_try) 2>&5 |
| 2220 | ac_status=$? |
| 2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2222 | (exit $ac_status); }; } && |
| 2223 | { ac_try='test -s conftest.$ac_objext' |
| 2224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2225 | (eval $ac_try) 2>&5 |
| 2226 | ac_status=$? |
| 2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2228 | (exit $ac_status); }; }; then |
| 2229 | for ac_declaration in \ |
| 2230 | '' \ |
| 2231 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2232 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2233 | 'extern "C" void exit (int) throw ();' \ |
| 2234 | 'extern "C" void exit (int);' \ |
| 2235 | 'void exit (int);' |
| 2236 | do |
| 2237 | cat >conftest.$ac_ext <<_ACEOF |
| 2238 | /* confdefs.h. */ |
| 2239 | _ACEOF |
| 2240 | cat confdefs.h >>conftest.$ac_ext |
| 2241 | cat >>conftest.$ac_ext <<_ACEOF |
| 2242 | /* end confdefs.h. */ |
| 2243 | $ac_declaration |
| 2244 | #include <stdlib.h> |
| 2245 | int |
| 2246 | main () |
| 2247 | { |
| 2248 | exit (42); |
| 2249 | ; |
| 2250 | return 0; |
| 2251 | } |
| 2252 | _ACEOF |
| 2253 | rm -f conftest.$ac_objext |
| 2254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2255 | (eval $ac_compile) 2>conftest.er1 |
| 2256 | ac_status=$? |
| 2257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2258 | rm -f conftest.er1 |
| 2259 | cat conftest.err >&5 |
| 2260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2261 | (exit $ac_status); } && |
| 2262 | { ac_try='test -z "$ac_c_werror_flag" |
| 2263 | || test ! -s conftest.err' |
| 2264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2265 | (eval $ac_try) 2>&5 |
| 2266 | ac_status=$? |
| 2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2268 | (exit $ac_status); }; } && |
| 2269 | { ac_try='test -s conftest.$ac_objext' |
| 2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2271 | (eval $ac_try) 2>&5 |
| 2272 | ac_status=$? |
| 2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2274 | (exit $ac_status); }; }; then |
| 2275 | : |
| 2276 | else |
| 2277 | echo "$as_me: failed program was:" >&5 |
| 2278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2279 | |
| 2280 | continue |
| 2281 | fi |
| 2282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2283 | cat >conftest.$ac_ext <<_ACEOF |
| 2284 | /* confdefs.h. */ |
| 2285 | _ACEOF |
| 2286 | cat confdefs.h >>conftest.$ac_ext |
| 2287 | cat >>conftest.$ac_ext <<_ACEOF |
| 2288 | /* end confdefs.h. */ |
| 2289 | $ac_declaration |
| 2290 | int |
| 2291 | main () |
| 2292 | { |
| 2293 | exit (42); |
| 2294 | ; |
| 2295 | return 0; |
| 2296 | } |
| 2297 | _ACEOF |
| 2298 | rm -f conftest.$ac_objext |
| 2299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2300 | (eval $ac_compile) 2>conftest.er1 |
| 2301 | ac_status=$? |
| 2302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2303 | rm -f conftest.er1 |
| 2304 | cat conftest.err >&5 |
| 2305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2306 | (exit $ac_status); } && |
| 2307 | { ac_try='test -z "$ac_c_werror_flag" |
| 2308 | || test ! -s conftest.err' |
| 2309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2310 | (eval $ac_try) 2>&5 |
| 2311 | ac_status=$? |
| 2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2313 | (exit $ac_status); }; } && |
| 2314 | { ac_try='test -s conftest.$ac_objext' |
| 2315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2316 | (eval $ac_try) 2>&5 |
| 2317 | ac_status=$? |
| 2318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2319 | (exit $ac_status); }; }; then |
| 2320 | break |
| 2321 | else |
| 2322 | echo "$as_me: failed program was:" >&5 |
| 2323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2324 | |
| 2325 | fi |
| 2326 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2327 | done |
| 2328 | rm -f conftest* |
| 2329 | if test -n "$ac_declaration"; then |
| 2330 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2331 | echo $ac_declaration >>confdefs.h |
| 2332 | echo '#endif' >>confdefs.h |
| 2333 | fi |
| 2334 | |
| 2335 | else |
| 2336 | echo "$as_me: failed program was:" >&5 |
| 2337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2338 | |
| 2339 | fi |
| 2340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2341 | ac_ext=c |
| 2342 | ac_cpp='$CPP $CPPFLAGS' |
| 2343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2346 | |
| 2347 | |
| 2348 | cat >>confdefs.h <<\_ACEOF |
| 2349 | #define _GNU_SOURCE 1 |
| 2350 | _ACEOF |
| 2351 | |
| 2352 | |
| 2353 | |
| 2354 | ac_ext=c |
| 2355 | ac_cpp='$CPP $CPPFLAGS' |
| 2356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2359 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2360 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2361 | # On Suns, sometimes $CPP names a directory. |
| 2362 | if test -n "$CPP" && test -d "$CPP"; then |
| 2363 | CPP= |
| 2364 | fi |
| 2365 | if test -z "$CPP"; then |
| 2366 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2368 | else |
| 2369 | # Double quotes because CPP needs to be expanded |
| 2370 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2371 | do |
| 2372 | ac_preproc_ok=false |
| 2373 | for ac_c_preproc_warn_flag in '' yes |
| 2374 | do |
| 2375 | # Use a header file that comes with gcc, so configuring glibc |
| 2376 | # with a fresh cross-compiler works. |
| 2377 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2378 | # <limits.h> exists even on freestanding compilers. |
| 2379 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2380 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2381 | cat >conftest.$ac_ext <<_ACEOF |
| 2382 | /* confdefs.h. */ |
| 2383 | _ACEOF |
| 2384 | cat confdefs.h >>conftest.$ac_ext |
| 2385 | cat >>conftest.$ac_ext <<_ACEOF |
| 2386 | /* end confdefs.h. */ |
| 2387 | #ifdef __STDC__ |
| 2388 | # include <limits.h> |
| 2389 | #else |
| 2390 | # include <assert.h> |
| 2391 | #endif |
| 2392 | Syntax error |
| 2393 | _ACEOF |
| 2394 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2395 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2396 | ac_status=$? |
| 2397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2398 | rm -f conftest.er1 |
| 2399 | cat conftest.err >&5 |
| 2400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2401 | (exit $ac_status); } >/dev/null; then |
| 2402 | if test -s conftest.err; then |
| 2403 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2404 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2405 | else |
| 2406 | ac_cpp_err= |
| 2407 | fi |
| 2408 | else |
| 2409 | ac_cpp_err=yes |
| 2410 | fi |
| 2411 | if test -z "$ac_cpp_err"; then |
| 2412 | : |
| 2413 | else |
| 2414 | echo "$as_me: failed program was:" >&5 |
| 2415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2416 | |
| 2417 | # Broken: fails on valid input. |
| 2418 | continue |
| 2419 | fi |
| 2420 | rm -f conftest.err conftest.$ac_ext |
| 2421 | |
| 2422 | # OK, works on sane cases. Now check whether non-existent headers |
| 2423 | # can be detected and how. |
| 2424 | cat >conftest.$ac_ext <<_ACEOF |
| 2425 | /* confdefs.h. */ |
| 2426 | _ACEOF |
| 2427 | cat confdefs.h >>conftest.$ac_ext |
| 2428 | cat >>conftest.$ac_ext <<_ACEOF |
| 2429 | /* end confdefs.h. */ |
| 2430 | #include <ac_nonexistent.h> |
| 2431 | _ACEOF |
| 2432 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2433 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2434 | ac_status=$? |
| 2435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2436 | rm -f conftest.er1 |
| 2437 | cat conftest.err >&5 |
| 2438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2439 | (exit $ac_status); } >/dev/null; then |
| 2440 | if test -s conftest.err; then |
| 2441 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2442 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2443 | else |
| 2444 | ac_cpp_err= |
| 2445 | fi |
| 2446 | else |
| 2447 | ac_cpp_err=yes |
| 2448 | fi |
| 2449 | if test -z "$ac_cpp_err"; then |
| 2450 | # Broken: success on invalid input. |
| 2451 | continue |
| 2452 | else |
| 2453 | echo "$as_me: failed program was:" >&5 |
| 2454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2455 | |
| 2456 | # Passes both tests. |
| 2457 | ac_preproc_ok=: |
| 2458 | break |
| 2459 | fi |
| 2460 | rm -f conftest.err conftest.$ac_ext |
| 2461 | |
| 2462 | done |
| 2463 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2464 | rm -f conftest.err conftest.$ac_ext |
| 2465 | if $ac_preproc_ok; then |
| 2466 | break |
| 2467 | fi |
| 2468 | |
| 2469 | done |
| 2470 | ac_cv_prog_CPP=$CPP |
| 2471 | |
| 2472 | fi |
| 2473 | CPP=$ac_cv_prog_CPP |
| 2474 | else |
| 2475 | ac_cv_prog_CPP=$CPP |
| 2476 | fi |
| 2477 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2478 | echo "${ECHO_T}$CPP" >&6 |
| 2479 | ac_preproc_ok=false |
| 2480 | for ac_c_preproc_warn_flag in '' yes |
| 2481 | do |
| 2482 | # Use a header file that comes with gcc, so configuring glibc |
| 2483 | # with a fresh cross-compiler works. |
| 2484 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2485 | # <limits.h> exists even on freestanding compilers. |
| 2486 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2487 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2488 | cat >conftest.$ac_ext <<_ACEOF |
| 2489 | /* confdefs.h. */ |
| 2490 | _ACEOF |
| 2491 | cat confdefs.h >>conftest.$ac_ext |
| 2492 | cat >>conftest.$ac_ext <<_ACEOF |
| 2493 | /* end confdefs.h. */ |
| 2494 | #ifdef __STDC__ |
| 2495 | # include <limits.h> |
| 2496 | #else |
| 2497 | # include <assert.h> |
| 2498 | #endif |
| 2499 | Syntax error |
| 2500 | _ACEOF |
| 2501 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2502 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2503 | ac_status=$? |
| 2504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2505 | rm -f conftest.er1 |
| 2506 | cat conftest.err >&5 |
| 2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2508 | (exit $ac_status); } >/dev/null; then |
| 2509 | if test -s conftest.err; then |
| 2510 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2511 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2512 | else |
| 2513 | ac_cpp_err= |
| 2514 | fi |
| 2515 | else |
| 2516 | ac_cpp_err=yes |
| 2517 | fi |
| 2518 | if test -z "$ac_cpp_err"; then |
| 2519 | : |
| 2520 | else |
| 2521 | echo "$as_me: failed program was:" >&5 |
| 2522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2523 | |
| 2524 | # Broken: fails on valid input. |
| 2525 | continue |
| 2526 | fi |
| 2527 | rm -f conftest.err conftest.$ac_ext |
| 2528 | |
| 2529 | # OK, works on sane cases. Now check whether non-existent headers |
| 2530 | # can be detected and how. |
| 2531 | cat >conftest.$ac_ext <<_ACEOF |
| 2532 | /* confdefs.h. */ |
| 2533 | _ACEOF |
| 2534 | cat confdefs.h >>conftest.$ac_ext |
| 2535 | cat >>conftest.$ac_ext <<_ACEOF |
| 2536 | /* end confdefs.h. */ |
| 2537 | #include <ac_nonexistent.h> |
| 2538 | _ACEOF |
| 2539 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2540 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2541 | ac_status=$? |
| 2542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2543 | rm -f conftest.er1 |
| 2544 | cat conftest.err >&5 |
| 2545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2546 | (exit $ac_status); } >/dev/null; then |
| 2547 | if test -s conftest.err; then |
| 2548 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2549 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2550 | else |
| 2551 | ac_cpp_err= |
| 2552 | fi |
| 2553 | else |
| 2554 | ac_cpp_err=yes |
| 2555 | fi |
| 2556 | if test -z "$ac_cpp_err"; then |
| 2557 | # Broken: success on invalid input. |
| 2558 | continue |
| 2559 | else |
| 2560 | echo "$as_me: failed program was:" >&5 |
| 2561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2562 | |
| 2563 | # Passes both tests. |
| 2564 | ac_preproc_ok=: |
| 2565 | break |
| 2566 | fi |
| 2567 | rm -f conftest.err conftest.$ac_ext |
| 2568 | |
| 2569 | done |
| 2570 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2571 | rm -f conftest.err conftest.$ac_ext |
| 2572 | if $ac_preproc_ok; then |
| 2573 | : |
| 2574 | else |
| 2575 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2576 | echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2577 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2578 | See \`config.log' for more details." >&5 |
| 2579 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2580 | See \`config.log' for more details." >&2;} |
| 2581 | { (exit 1); exit 1; }; }; } |
| 2582 | fi |
| 2583 | |
| 2584 | ac_ext=c |
| 2585 | ac_cpp='$CPP $CPPFLAGS' |
| 2586 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2587 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2588 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2589 | |
| 2590 | |
| 2591 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2592 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2593 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2595 | else |
| 2596 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2597 | then ac_cv_prog_egrep='grep -E' |
| 2598 | else ac_cv_prog_egrep='egrep' |
| 2599 | fi |
| 2600 | fi |
| 2601 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2602 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2603 | EGREP=$ac_cv_prog_egrep |
| 2604 | |
| 2605 | |
| 2606 | |
| 2607 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2608 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2609 | cat >conftest.$ac_ext <<_ACEOF |
| 2610 | /* confdefs.h. */ |
| 2611 | _ACEOF |
| 2612 | cat confdefs.h >>conftest.$ac_ext |
| 2613 | cat >>conftest.$ac_ext <<_ACEOF |
| 2614 | /* end confdefs.h. */ |
| 2615 | #ifdef _AIX |
| 2616 | yes |
| 2617 | #endif |
| 2618 | |
| 2619 | _ACEOF |
| 2620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2621 | $EGREP "yes" >/dev/null 2>&1; then |
| 2622 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2623 | echo "${ECHO_T}yes" >&6 |
| 2624 | cat >>confdefs.h <<\_ACEOF |
| 2625 | #define _ALL_SOURCE 1 |
| 2626 | _ACEOF |
| 2627 | |
| 2628 | else |
| 2629 | echo "$as_me:$LINENO: result: no" >&5 |
| 2630 | echo "${ECHO_T}no" >&6 |
| 2631 | fi |
| 2632 | rm -f conftest* |
| 2633 | |
| 2634 | |
| 2635 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 2636 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
| 2637 | if test "${ac_cv_search_strerror+set}" = set; then |
| 2638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2639 | else |
| 2640 | ac_func_search_save_LIBS=$LIBS |
| 2641 | ac_cv_search_strerror=no |
| 2642 | cat >conftest.$ac_ext <<_ACEOF |
| 2643 | /* confdefs.h. */ |
| 2644 | _ACEOF |
| 2645 | cat confdefs.h >>conftest.$ac_ext |
| 2646 | cat >>conftest.$ac_ext <<_ACEOF |
| 2647 | /* end confdefs.h. */ |
| 2648 | |
| 2649 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2650 | #ifdef __cplusplus |
| 2651 | extern "C" |
| 2652 | #endif |
| 2653 | /* We use char because int might match the return type of a gcc2 |
| 2654 | builtin and then its argument prototype would still apply. */ |
| 2655 | char strerror (); |
| 2656 | int |
| 2657 | main () |
| 2658 | { |
| 2659 | strerror (); |
| 2660 | ; |
| 2661 | return 0; |
| 2662 | } |
| 2663 | _ACEOF |
| 2664 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2666 | (eval $ac_link) 2>conftest.er1 |
| 2667 | ac_status=$? |
| 2668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2669 | rm -f conftest.er1 |
| 2670 | cat conftest.err >&5 |
| 2671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2672 | (exit $ac_status); } && |
| 2673 | { ac_try='test -z "$ac_c_werror_flag" |
| 2674 | || test ! -s conftest.err' |
| 2675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2676 | (eval $ac_try) 2>&5 |
| 2677 | ac_status=$? |
| 2678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2679 | (exit $ac_status); }; } && |
| 2680 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 2686 | ac_cv_search_strerror="none required" |
| 2687 | else |
| 2688 | echo "$as_me: failed program was:" >&5 |
| 2689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2690 | |
| 2691 | fi |
| 2692 | rm -f conftest.err conftest.$ac_objext \ |
| 2693 | conftest$ac_exeext conftest.$ac_ext |
| 2694 | if test "$ac_cv_search_strerror" = no; then |
| 2695 | for ac_lib in cposix; do |
| 2696 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 2697 | cat >conftest.$ac_ext <<_ACEOF |
| 2698 | /* confdefs.h. */ |
| 2699 | _ACEOF |
| 2700 | cat confdefs.h >>conftest.$ac_ext |
| 2701 | cat >>conftest.$ac_ext <<_ACEOF |
| 2702 | /* end confdefs.h. */ |
| 2703 | |
| 2704 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2705 | #ifdef __cplusplus |
| 2706 | extern "C" |
| 2707 | #endif |
| 2708 | /* We use char because int might match the return type of a gcc2 |
| 2709 | builtin and then its argument prototype would still apply. */ |
| 2710 | char strerror (); |
| 2711 | int |
| 2712 | main () |
| 2713 | { |
| 2714 | strerror (); |
| 2715 | ; |
| 2716 | return 0; |
| 2717 | } |
| 2718 | _ACEOF |
| 2719 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2721 | (eval $ac_link) 2>conftest.er1 |
| 2722 | ac_status=$? |
| 2723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2724 | rm -f conftest.er1 |
| 2725 | cat conftest.err >&5 |
| 2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2727 | (exit $ac_status); } && |
| 2728 | { ac_try='test -z "$ac_c_werror_flag" |
| 2729 | || test ! -s conftest.err' |
| 2730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2731 | (eval $ac_try) 2>&5 |
| 2732 | ac_status=$? |
| 2733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2734 | (exit $ac_status); }; } && |
| 2735 | { ac_try='test -s conftest$ac_exeext' |
| 2736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2737 | (eval $ac_try) 2>&5 |
| 2738 | ac_status=$? |
| 2739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2740 | (exit $ac_status); }; }; then |
| 2741 | ac_cv_search_strerror="-l$ac_lib" |
| 2742 | break |
| 2743 | else |
| 2744 | echo "$as_me: failed program was:" >&5 |
| 2745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2746 | |
| 2747 | fi |
| 2748 | rm -f conftest.err conftest.$ac_objext \ |
| 2749 | conftest$ac_exeext conftest.$ac_ext |
| 2750 | done |
| 2751 | fi |
| 2752 | LIBS=$ac_func_search_save_LIBS |
| 2753 | fi |
| 2754 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 2755 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
| 2756 | if test "$ac_cv_search_strerror" != no; then |
| 2757 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
| 2758 | |
| 2759 | fi |
| 2760 | |
| 2761 | if test -n "$ac_tool_prefix"; then |
| 2762 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2763 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 2764 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2766 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 2767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2768 | else |
| 2769 | if test -n "$RANLIB"; then |
| 2770 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2771 | else |
| 2772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2773 | for as_dir in $PATH |
| 2774 | do |
| 2775 | IFS=$as_save_IFS |
| 2776 | test -z "$as_dir" && as_dir=. |
| 2777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2778 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2779 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2780 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2781 | break 2 |
| 2782 | fi |
| 2783 | done |
| 2784 | done |
| 2785 | |
| 2786 | fi |
| 2787 | fi |
| 2788 | RANLIB=$ac_cv_prog_RANLIB |
| 2789 | if test -n "$RANLIB"; then |
| 2790 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 2791 | echo "${ECHO_T}$RANLIB" >&6 |
| 2792 | else |
| 2793 | echo "$as_me:$LINENO: result: no" >&5 |
| 2794 | echo "${ECHO_T}no" >&6 |
| 2795 | fi |
| 2796 | |
| 2797 | fi |
| 2798 | if test -z "$ac_cv_prog_RANLIB"; then |
| 2799 | ac_ct_RANLIB=$RANLIB |
| 2800 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 2801 | set dummy ranlib; ac_word=$2 |
| 2802 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2804 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 2805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2806 | else |
| 2807 | if test -n "$ac_ct_RANLIB"; then |
| 2808 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 2809 | else |
| 2810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2811 | for as_dir in $PATH |
| 2812 | do |
| 2813 | IFS=$as_save_IFS |
| 2814 | test -z "$as_dir" && as_dir=. |
| 2815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2816 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2817 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 2818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2819 | break 2 |
| 2820 | fi |
| 2821 | done |
| 2822 | done |
| 2823 | |
| 2824 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 2825 | fi |
| 2826 | fi |
| 2827 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 2828 | if test -n "$ac_ct_RANLIB"; then |
| 2829 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 2830 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 2831 | else |
| 2832 | echo "$as_me:$LINENO: result: no" >&5 |
| 2833 | echo "${ECHO_T}no" >&6 |
| 2834 | fi |
| 2835 | |
| 2836 | RANLIB=$ac_ct_RANLIB |
| 2837 | else |
| 2838 | RANLIB="$ac_cv_prog_RANLIB" |
| 2839 | fi |
| 2840 | |
| 2841 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2842 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2843 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2845 | else |
| 2846 | cat >conftest.$ac_ext <<_ACEOF |
| 2847 | /* confdefs.h. */ |
| 2848 | _ACEOF |
| 2849 | cat confdefs.h >>conftest.$ac_ext |
| 2850 | cat >>conftest.$ac_ext <<_ACEOF |
| 2851 | /* end confdefs.h. */ |
| 2852 | #include <stdlib.h> |
| 2853 | #include <stdarg.h> |
| 2854 | #include <string.h> |
| 2855 | #include <float.h> |
| 2856 | |
| 2857 | int |
| 2858 | main () |
| 2859 | { |
| 2860 | |
| 2861 | ; |
| 2862 | return 0; |
| 2863 | } |
| 2864 | _ACEOF |
| 2865 | rm -f conftest.$ac_objext |
| 2866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2867 | (eval $ac_compile) 2>conftest.er1 |
| 2868 | ac_status=$? |
| 2869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2870 | rm -f conftest.er1 |
| 2871 | cat conftest.err >&5 |
| 2872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2873 | (exit $ac_status); } && |
| 2874 | { ac_try='test -z "$ac_c_werror_flag" |
| 2875 | || test ! -s conftest.err' |
| 2876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2877 | (eval $ac_try) 2>&5 |
| 2878 | ac_status=$? |
| 2879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2880 | (exit $ac_status); }; } && |
| 2881 | { ac_try='test -s conftest.$ac_objext' |
| 2882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2883 | (eval $ac_try) 2>&5 |
| 2884 | ac_status=$? |
| 2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2886 | (exit $ac_status); }; }; then |
| 2887 | ac_cv_header_stdc=yes |
| 2888 | else |
| 2889 | echo "$as_me: failed program was:" >&5 |
| 2890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2891 | |
| 2892 | ac_cv_header_stdc=no |
| 2893 | fi |
| 2894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2895 | |
| 2896 | if test $ac_cv_header_stdc = yes; then |
| 2897 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2898 | cat >conftest.$ac_ext <<_ACEOF |
| 2899 | /* confdefs.h. */ |
| 2900 | _ACEOF |
| 2901 | cat confdefs.h >>conftest.$ac_ext |
| 2902 | cat >>conftest.$ac_ext <<_ACEOF |
| 2903 | /* end confdefs.h. */ |
| 2904 | #include <string.h> |
| 2905 | |
| 2906 | _ACEOF |
| 2907 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2908 | $EGREP "memchr" >/dev/null 2>&1; then |
| 2909 | : |
| 2910 | else |
| 2911 | ac_cv_header_stdc=no |
| 2912 | fi |
| 2913 | rm -f conftest* |
| 2914 | |
| 2915 | fi |
| 2916 | |
| 2917 | if test $ac_cv_header_stdc = yes; then |
| 2918 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2919 | cat >conftest.$ac_ext <<_ACEOF |
| 2920 | /* confdefs.h. */ |
| 2921 | _ACEOF |
| 2922 | cat confdefs.h >>conftest.$ac_ext |
| 2923 | cat >>conftest.$ac_ext <<_ACEOF |
| 2924 | /* end confdefs.h. */ |
| 2925 | #include <stdlib.h> |
| 2926 | |
| 2927 | _ACEOF |
| 2928 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2929 | $EGREP "free" >/dev/null 2>&1; then |
| 2930 | : |
| 2931 | else |
| 2932 | ac_cv_header_stdc=no |
| 2933 | fi |
| 2934 | rm -f conftest* |
| 2935 | |
| 2936 | fi |
| 2937 | |
| 2938 | if test $ac_cv_header_stdc = yes; then |
| 2939 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2940 | if test "$cross_compiling" = yes; then |
| 2941 | : |
| 2942 | else |
| 2943 | cat >conftest.$ac_ext <<_ACEOF |
| 2944 | /* confdefs.h. */ |
| 2945 | _ACEOF |
| 2946 | cat confdefs.h >>conftest.$ac_ext |
| 2947 | cat >>conftest.$ac_ext <<_ACEOF |
| 2948 | /* end confdefs.h. */ |
| 2949 | #include <ctype.h> |
| 2950 | #if ((' ' & 0x0FF) == 0x020) |
| 2951 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2952 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2953 | #else |
| 2954 | # define ISLOWER(c) \ |
| 2955 | (('a' <= (c) && (c) <= 'i') \ |
| 2956 | || ('j' <= (c) && (c) <= 'r') \ |
| 2957 | || ('s' <= (c) && (c) <= 'z')) |
| 2958 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2959 | #endif |
| 2960 | |
| 2961 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2962 | int |
| 2963 | main () |
| 2964 | { |
| 2965 | int i; |
| 2966 | for (i = 0; i < 256; i++) |
| 2967 | if (XOR (islower (i), ISLOWER (i)) |
| 2968 | || toupper (i) != TOUPPER (i)) |
| 2969 | exit(2); |
| 2970 | exit (0); |
| 2971 | } |
| 2972 | _ACEOF |
| 2973 | rm -f conftest$ac_exeext |
| 2974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2975 | (eval $ac_link) 2>&5 |
| 2976 | ac_status=$? |
| 2977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2978 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2980 | (eval $ac_try) 2>&5 |
| 2981 | ac_status=$? |
| 2982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2983 | (exit $ac_status); }; }; then |
| 2984 | : |
| 2985 | else |
| 2986 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2987 | echo "$as_me: failed program was:" >&5 |
| 2988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2989 | |
| 2990 | ( exit $ac_status ) |
| 2991 | ac_cv_header_stdc=no |
| 2992 | fi |
| 2993 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2994 | fi |
| 2995 | fi |
| 2996 | fi |
| 2997 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2998 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2999 | if test $ac_cv_header_stdc = yes; then |
| 3000 | |
| 3001 | cat >>confdefs.h <<\_ACEOF |
| 3002 | #define STDC_HEADERS 1 |
| 3003 | _ACEOF |
| 3004 | |
| 3005 | fi |
| 3006 | |
| 3007 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3008 | |
| 3009 | |
| 3010 | |
| 3011 | |
| 3012 | |
| 3013 | |
| 3014 | |
| 3015 | |
| 3016 | |
| 3017 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3018 | inttypes.h stdint.h unistd.h |
| 3019 | do |
| 3020 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3021 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3022 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3023 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3025 | else |
| 3026 | cat >conftest.$ac_ext <<_ACEOF |
| 3027 | /* confdefs.h. */ |
| 3028 | _ACEOF |
| 3029 | cat confdefs.h >>conftest.$ac_ext |
| 3030 | cat >>conftest.$ac_ext <<_ACEOF |
| 3031 | /* end confdefs.h. */ |
| 3032 | $ac_includes_default |
| 3033 | |
| 3034 | #include <$ac_header> |
| 3035 | _ACEOF |
| 3036 | rm -f conftest.$ac_objext |
| 3037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3038 | (eval $ac_compile) 2>conftest.er1 |
| 3039 | ac_status=$? |
| 3040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3041 | rm -f conftest.er1 |
| 3042 | cat conftest.err >&5 |
| 3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3044 | (exit $ac_status); } && |
| 3045 | { ac_try='test -z "$ac_c_werror_flag" |
| 3046 | || test ! -s conftest.err' |
| 3047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3048 | (eval $ac_try) 2>&5 |
| 3049 | ac_status=$? |
| 3050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3051 | (exit $ac_status); }; } && |
| 3052 | { ac_try='test -s conftest.$ac_objext' |
| 3053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3054 | (eval $ac_try) 2>&5 |
| 3055 | ac_status=$? |
| 3056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3057 | (exit $ac_status); }; }; then |
| 3058 | eval "$as_ac_Header=yes" |
| 3059 | else |
| 3060 | echo "$as_me: failed program was:" >&5 |
| 3061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3062 | |
| 3063 | eval "$as_ac_Header=no" |
| 3064 | fi |
| 3065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3066 | fi |
| 3067 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3068 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3069 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3070 | cat >>confdefs.h <<_ACEOF |
| 3071 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3072 | _ACEOF |
| 3073 | |
| 3074 | fi |
| 3075 | |
| 3076 | done |
| 3077 | |
| 3078 | |
| 3079 | |
| 3080 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3081 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3082 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3083 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3085 | fi |
| 3086 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3087 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3088 | else |
| 3089 | # Is the header compilable? |
| 3090 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 3091 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 3092 | cat >conftest.$ac_ext <<_ACEOF |
| 3093 | /* confdefs.h. */ |
| 3094 | _ACEOF |
| 3095 | cat confdefs.h >>conftest.$ac_ext |
| 3096 | cat >>conftest.$ac_ext <<_ACEOF |
| 3097 | /* end confdefs.h. */ |
| 3098 | $ac_includes_default |
| 3099 | #include <minix/config.h> |
| 3100 | _ACEOF |
| 3101 | rm -f conftest.$ac_objext |
| 3102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3103 | (eval $ac_compile) 2>conftest.er1 |
| 3104 | ac_status=$? |
| 3105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3106 | rm -f conftest.er1 |
| 3107 | cat conftest.err >&5 |
| 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3109 | (exit $ac_status); } && |
| 3110 | { ac_try='test -z "$ac_c_werror_flag" |
| 3111 | || test ! -s conftest.err' |
| 3112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3113 | (eval $ac_try) 2>&5 |
| 3114 | ac_status=$? |
| 3115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3116 | (exit $ac_status); }; } && |
| 3117 | { ac_try='test -s conftest.$ac_objext' |
| 3118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3119 | (eval $ac_try) 2>&5 |
| 3120 | ac_status=$? |
| 3121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3122 | (exit $ac_status); }; }; then |
| 3123 | ac_header_compiler=yes |
| 3124 | else |
| 3125 | echo "$as_me: failed program was:" >&5 |
| 3126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3127 | |
| 3128 | ac_header_compiler=no |
| 3129 | fi |
| 3130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3131 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3132 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3133 | |
| 3134 | # Is the header present? |
| 3135 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 3136 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 3137 | cat >conftest.$ac_ext <<_ACEOF |
| 3138 | /* confdefs.h. */ |
| 3139 | _ACEOF |
| 3140 | cat confdefs.h >>conftest.$ac_ext |
| 3141 | cat >>conftest.$ac_ext <<_ACEOF |
| 3142 | /* end confdefs.h. */ |
| 3143 | #include <minix/config.h> |
| 3144 | _ACEOF |
| 3145 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3146 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3147 | ac_status=$? |
| 3148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3149 | rm -f conftest.er1 |
| 3150 | cat conftest.err >&5 |
| 3151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3152 | (exit $ac_status); } >/dev/null; then |
| 3153 | if test -s conftest.err; then |
| 3154 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3155 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3156 | else |
| 3157 | ac_cpp_err= |
| 3158 | fi |
| 3159 | else |
| 3160 | ac_cpp_err=yes |
| 3161 | fi |
| 3162 | if test -z "$ac_cpp_err"; then |
| 3163 | ac_header_preproc=yes |
| 3164 | else |
| 3165 | echo "$as_me: failed program was:" >&5 |
| 3166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3167 | |
| 3168 | ac_header_preproc=no |
| 3169 | fi |
| 3170 | rm -f conftest.err conftest.$ac_ext |
| 3171 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3172 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3173 | |
| 3174 | # So? What about this header? |
| 3175 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3176 | yes:no: ) |
| 3177 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3178 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3179 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 |
| 3180 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} |
| 3181 | ac_header_preproc=yes |
| 3182 | ;; |
| 3183 | no:yes:* ) |
| 3184 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 3185 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 3186 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 3187 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 3188 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 |
| 3189 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} |
| 3190 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3191 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3192 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 3193 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 3194 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 |
| 3195 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} |
| 3196 | ( |
| 3197 | cat <<\_ASBOX |
| 3198 | ## ------------------------------------------ ## |
| 3199 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3200 | ## ------------------------------------------ ## |
| 3201 | _ASBOX |
| 3202 | ) | |
| 3203 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3204 | ;; |
| 3205 | esac |
| 3206 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3207 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3208 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3210 | else |
| 3211 | ac_cv_header_minix_config_h=$ac_header_preproc |
| 3212 | fi |
| 3213 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3214 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3215 | |
| 3216 | fi |
| 3217 | if test $ac_cv_header_minix_config_h = yes; then |
| 3218 | MINIX=yes |
| 3219 | else |
| 3220 | MINIX= |
| 3221 | fi |
| 3222 | |
| 3223 | |
| 3224 | if test "$MINIX" = yes; then |
| 3225 | |
| 3226 | cat >>confdefs.h <<\_ACEOF |
| 3227 | #define _POSIX_SOURCE 1 |
| 3228 | _ACEOF |
| 3229 | |
| 3230 | |
| 3231 | cat >>confdefs.h <<\_ACEOF |
| 3232 | #define _POSIX_1_SOURCE 2 |
| 3233 | _ACEOF |
| 3234 | |
| 3235 | |
| 3236 | cat >>confdefs.h <<\_ACEOF |
| 3237 | #define _MINIX 1 |
| 3238 | _ACEOF |
| 3239 | |
| 3240 | fi |
| 3241 | |
| 3242 | |
| 3243 | |
| 3244 | echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 3245 | echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6 |
| 3246 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then |
| 3247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3248 | else |
| 3249 | cat >conftest.$ac_ext <<_ACEOF |
| 3250 | /* confdefs.h. */ |
| 3251 | _ACEOF |
| 3252 | cat confdefs.h >>conftest.$ac_ext |
| 3253 | cat >>conftest.$ac_ext <<_ACEOF |
| 3254 | /* end confdefs.h. */ |
| 3255 | |
| 3256 | # define __EXTENSIONS__ 1 |
| 3257 | $ac_includes_default |
| 3258 | int |
| 3259 | main () |
| 3260 | { |
| 3261 | |
| 3262 | ; |
| 3263 | return 0; |
| 3264 | } |
| 3265 | _ACEOF |
| 3266 | rm -f conftest.$ac_objext |
| 3267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3268 | (eval $ac_compile) 2>conftest.er1 |
| 3269 | ac_status=$? |
| 3270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3271 | rm -f conftest.er1 |
| 3272 | cat conftest.err >&5 |
| 3273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3274 | (exit $ac_status); } && |
| 3275 | { ac_try='test -z "$ac_c_werror_flag" |
| 3276 | || test ! -s conftest.err' |
| 3277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3278 | (eval $ac_try) 2>&5 |
| 3279 | ac_status=$? |
| 3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3281 | (exit $ac_status); }; } && |
| 3282 | { ac_try='test -s conftest.$ac_objext' |
| 3283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3284 | (eval $ac_try) 2>&5 |
| 3285 | ac_status=$? |
| 3286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3287 | (exit $ac_status); }; }; then |
| 3288 | ac_cv_safe_to_define___extensions__=yes |
| 3289 | else |
| 3290 | echo "$as_me: failed program was:" >&5 |
| 3291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3292 | |
| 3293 | ac_cv_safe_to_define___extensions__=no |
| 3294 | fi |
| 3295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3296 | fi |
| 3297 | echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 3298 | echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6 |
| 3299 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 3300 | cat >>confdefs.h <<\_ACEOF |
| 3301 | #define __EXTENSIONS__ 1 |
| 3302 | _ACEOF |
| 3303 | |
| 3304 | cat >>confdefs.h <<\_ACEOF |
| 3305 | #define _ALL_SOURCE 1 |
| 3306 | _ACEOF |
| 3307 | |
| 3308 | cat >>confdefs.h <<\_ACEOF |
| 3309 | #define _GNU_SOURCE 1 |
| 3310 | _ACEOF |
| 3311 | |
| 3312 | cat >>confdefs.h <<\_ACEOF |
| 3313 | #define _POSIX_PTHREAD_SEMANTICS 1 |
| 3314 | _ACEOF |
| 3315 | |
| 3316 | cat >>confdefs.h <<\_ACEOF |
| 3317 | #define _TANDEM_SOURCE 1 |
| 3318 | _ACEOF |
| 3319 | |
| 3320 | |
| 3321 | |
| 3322 | |
| 3323 | |
| 3324 | |
| 3325 | |
| 3326 | |
| 3327 | |
| 3328 | |
| 3329 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 |
| 3330 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 |
| 3331 | if test "${am_cv_prog_cc_stdc+set}" = set; then |
| 3332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3333 | else |
| 3334 | am_cv_prog_cc_stdc=no |
| 3335 | ac_save_CC="$CC" |
| 3336 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3337 | # breaks some systems' header files. |
| 3338 | # AIX -qlanglvl=ansi |
| 3339 | # Ultrix and OSF/1 -std1 |
| 3340 | # HP-UX 10.20 and later -Ae |
| 3341 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3342 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3343 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3344 | do |
| 3345 | CC="$ac_save_CC $ac_arg" |
| 3346 | cat >conftest.$ac_ext <<_ACEOF |
| 3347 | /* confdefs.h. */ |
| 3348 | _ACEOF |
| 3349 | cat confdefs.h >>conftest.$ac_ext |
| 3350 | cat >>conftest.$ac_ext <<_ACEOF |
| 3351 | /* end confdefs.h. */ |
| 3352 | #include <stdarg.h> |
| 3353 | #include <stdio.h> |
| 3354 | #include <sys/types.h> |
| 3355 | #include <sys/stat.h> |
| 3356 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3357 | struct buf { int x; }; |
| 3358 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3359 | static char *e (p, i) |
| 3360 | char **p; |
| 3361 | int i; |
| 3362 | { |
| 3363 | return p[i]; |
| 3364 | } |
| 3365 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3366 | { |
| 3367 | char *s; |
| 3368 | va_list v; |
| 3369 | va_start (v,p); |
| 3370 | s = g (p, va_arg (v,int)); |
| 3371 | va_end (v); |
| 3372 | return s; |
| 3373 | } |
| 3374 | int test (int i, double x); |
| 3375 | struct s1 {int (*f) (int a);}; |
| 3376 | struct s2 {int (*f) (double a);}; |
| 3377 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3378 | int argc; |
| 3379 | char **argv; |
| 3380 | |
| 3381 | int |
| 3382 | main () |
| 3383 | { |
| 3384 | |
| 3385 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3386 | |
| 3387 | ; |
| 3388 | return 0; |
| 3389 | } |
| 3390 | _ACEOF |
| 3391 | rm -f conftest.$ac_objext |
| 3392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3393 | (eval $ac_compile) 2>conftest.er1 |
| 3394 | ac_status=$? |
| 3395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3396 | rm -f conftest.er1 |
| 3397 | cat conftest.err >&5 |
| 3398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3399 | (exit $ac_status); } && |
| 3400 | { ac_try='test -z "$ac_c_werror_flag" |
| 3401 | || test ! -s conftest.err' |
| 3402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3403 | (eval $ac_try) 2>&5 |
| 3404 | ac_status=$? |
| 3405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3406 | (exit $ac_status); }; } && |
| 3407 | { ac_try='test -s conftest.$ac_objext' |
| 3408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3409 | (eval $ac_try) 2>&5 |
| 3410 | ac_status=$? |
| 3411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3412 | (exit $ac_status); }; }; then |
| 3413 | am_cv_prog_cc_stdc="$ac_arg"; break |
| 3414 | else |
| 3415 | echo "$as_me: failed program was:" >&5 |
| 3416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3417 | |
| 3418 | fi |
| 3419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3420 | done |
| 3421 | CC="$ac_save_CC" |
| 3422 | |
| 3423 | fi |
| 3424 | |
| 3425 | if test -z "$am_cv_prog_cc_stdc"; then |
| 3426 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3427 | echo "${ECHO_T}none needed" >&6 |
| 3428 | else |
| 3429 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
| 3430 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 |
| 3431 | fi |
| 3432 | case "x$am_cv_prog_cc_stdc" in |
| 3433 | x|xno) ;; |
| 3434 | *) CC="$CC $am_cv_prog_cc_stdc" ;; |
| 3435 | esac |
| 3436 | |
| 3437 | |
| 3438 | ac_aux_dir= |
| 3439 | for ac_dir in .. $srcdir/..; do |
| 3440 | if test -f $ac_dir/install-sh; then |
| 3441 | ac_aux_dir=$ac_dir |
| 3442 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3443 | break |
| 3444 | elif test -f $ac_dir/install.sh; then |
| 3445 | ac_aux_dir=$ac_dir |
| 3446 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3447 | break |
| 3448 | elif test -f $ac_dir/shtool; then |
| 3449 | ac_aux_dir=$ac_dir |
| 3450 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3451 | break |
| 3452 | fi |
| 3453 | done |
| 3454 | if test -z "$ac_aux_dir"; then |
| 3455 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5 |
| 3456 | echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;} |
| 3457 | { (exit 1); exit 1; }; } |
| 3458 | fi |
| 3459 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3460 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3461 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 3462 | |
| 3463 | # Make sure we can run config.sub. |
| 3464 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 3465 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 3466 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 3467 | { (exit 1); exit 1; }; } |
| 3468 | |
| 3469 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 3470 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 3471 | if test "${ac_cv_build+set}" = set; then |
| 3472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3473 | else |
| 3474 | ac_cv_build_alias=$build_alias |
| 3475 | test -z "$ac_cv_build_alias" && |
| 3476 | ac_cv_build_alias=`$ac_config_guess` |
| 3477 | test -z "$ac_cv_build_alias" && |
| 3478 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3479 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3480 | { (exit 1); exit 1; }; } |
| 3481 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 3482 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 3483 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 3484 | { (exit 1); exit 1; }; } |
| 3485 | |
| 3486 | fi |
| 3487 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3488 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 3489 | build=$ac_cv_build |
| 3490 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3491 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3492 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3493 | |
| 3494 | |
| 3495 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 3496 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 3497 | if test "${ac_cv_host+set}" = set; then |
| 3498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3499 | else |
| 3500 | ac_cv_host_alias=$host_alias |
| 3501 | test -z "$ac_cv_host_alias" && |
| 3502 | ac_cv_host_alias=$ac_cv_build_alias |
| 3503 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 3504 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 3505 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 3506 | { (exit 1); exit 1; }; } |
| 3507 | |
| 3508 | fi |
| 3509 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3510 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 3511 | host=$ac_cv_host |
| 3512 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3513 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3514 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3515 | |
| 3516 | |
| 3517 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 3518 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 3519 | if test "${ac_cv_target+set}" = set; then |
| 3520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3521 | else |
| 3522 | ac_cv_target_alias=$target_alias |
| 3523 | test "x$ac_cv_target_alias" = "x" && |
| 3524 | ac_cv_target_alias=$ac_cv_host_alias |
| 3525 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 3526 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 3527 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 3528 | { (exit 1); exit 1; }; } |
| 3529 | |
| 3530 | fi |
| 3531 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 3532 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 3533 | target=$ac_cv_target |
| 3534 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 3535 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 3536 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 3537 | |
| 3538 | |
| 3539 | # The aliases save the names the user supplied, while $host etc. |
| 3540 | # will get canonicalized. |
| 3541 | test -n "$target_alias" && |
| 3542 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3543 | NONENONEs,x,x, && |
| 3544 | program_prefix=${target_alias}- |
| 3545 | |
| 3546 | # Dependency checking. |
| 3547 | rm -rf .tst 2>/dev/null |
| 3548 | mkdir .tst 2>/dev/null |
| 3549 | if test -d .tst; then |
| 3550 | am__leading_dot=. |
| 3551 | else |
| 3552 | am__leading_dot=_ |
| 3553 | fi |
| 3554 | rmdir .tst 2>/dev/null |
| 3555 | |
| 3556 | DEPDIR="${am__leading_dot}deps" |
| 3557 | |
| 3558 | ac_config_commands="$ac_config_commands depdir" |
| 3559 | |
| 3560 | |
| 3561 | depcc="$CC" am_compiler_list= |
| 3562 | |
| 3563 | am_depcomp=$ac_aux_dir/depcomp |
| 3564 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3565 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 3566 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 3567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3568 | else |
| 3569 | if test -f "$am_depcomp"; then |
| 3570 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3571 | # making bogus files that we don't know about and never remove. For |
| 3572 | # instance it was reported that on HP-UX the gcc test will end up |
| 3573 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3574 | # in D'. |
| 3575 | mkdir conftest.dir |
| 3576 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3577 | # using a relative directory. |
| 3578 | cp "$am_depcomp" conftest.dir |
| 3579 | cd conftest.dir |
| 3580 | # We will build objects and dependencies in a subdirectory because |
| 3581 | # it helps to detect inapplicable dependency modes. For instance |
| 3582 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3583 | # side effect of compilation, but ICC will put the dependencies in |
| 3584 | # the current directory while Tru64 will put them in the object |
| 3585 | # directory. |
| 3586 | mkdir sub |
| 3587 | |
| 3588 | am_cv_CC_dependencies_compiler_type=none |
| 3589 | if test "$am_compiler_list" = ""; then |
| 3590 | am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3591 | fi |
| 3592 | for depmode in $am_compiler_list; do |
| 3593 | if test $depmode = none; then break; fi |
| 3594 | |
| 3595 | echo "$as_me:$LINENO: trying $depmode" >&5 |
| 3596 | # Setup a source with many dependencies, because some compilers |
| 3597 | # like to wrap large dependency lists on column 80 (with \), and |
| 3598 | # we should not choose a depcomp mode which is confused by this. |
| 3599 | # |
| 3600 | # We need to recreate these files for each test, as the compiler may |
| 3601 | # overwrite some of them when testing with obscure command lines. |
| 3602 | # This happens at least with the AIX C compiler. |
| 3603 | : > sub/conftest.c |
| 3604 | for i in 1 2 3 4 5 6; do |
| 3605 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3606 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3607 | # Solaris 8's {/usr,}/bin/sh. |
| 3608 | touch sub/conftst$i.h |
| 3609 | done |
| 3610 | echo "include sub/conftest.Po" > confmf |
| 3611 | |
| 3612 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3613 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3614 | # handle `-M -o', and we need to detect this. |
| 3615 | depcmd="depmode=$depmode \ |
| 3616 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3617 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3618 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" |
| 3619 | echo "| $depcmd" | sed -e 's/ */ /g' >&5 |
| 3620 | if env $depcmd > conftest.err 2>&1 && |
| 3621 | grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && |
| 3622 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && |
| 3623 | ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then |
| 3624 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3625 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3626 | # that says an option was ignored or not supported. |
| 3627 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3628 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3629 | # The diagnosis changed in icc 8.0: |
| 3630 | # icc: Command line remark: option '-MP' not supported |
| 3631 | if (grep 'ignoring option' conftest.err || |
| 3632 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3633 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3634 | echo "$as_me:$LINENO: success" >&5 |
| 3635 | break |
| 3636 | fi |
| 3637 | fi |
| 3638 | echo "$as_me:$LINENO: failure, diagnostics are:" >&5 |
| 3639 | sed -e 's/^/| /' < conftest.err >&5 |
| 3640 | done |
| 3641 | |
| 3642 | cd .. |
| 3643 | rm -rf conftest.dir |
| 3644 | else |
| 3645 | am_cv_CC_dependencies_compiler_type=none |
| 3646 | fi |
| 3647 | |
| 3648 | fi |
| 3649 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3650 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 3651 | if test x${am_cv_CC_dependencies_compiler_type-none} = xnone |
| 3652 | then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5 |
| 3653 | echo "$as_me: error: no usable dependency style found" >&2;} |
| 3654 | { (exit 1); exit 1; }; } |
| 3655 | else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3656 | |
| 3657 | fi |
| 3658 | |
| 3659 | |
| 3660 | # Check for the 'make' the user wants to use. |
| 3661 | for ac_prog in make |
| 3662 | do |
| 3663 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3664 | set dummy $ac_prog; ac_word=$2 |
| 3665 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3667 | if test "${ac_cv_prog_MAKE+set}" = set; then |
| 3668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3669 | else |
| 3670 | if test -n "$MAKE"; then |
| 3671 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. |
| 3672 | else |
| 3673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3674 | for as_dir in $PATH |
| 3675 | do |
| 3676 | IFS=$as_save_IFS |
| 3677 | test -z "$as_dir" && as_dir=. |
| 3678 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3679 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3680 | ac_cv_prog_MAKE="$ac_prog" |
| 3681 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3682 | break 2 |
| 3683 | fi |
| 3684 | done |
| 3685 | done |
| 3686 | |
| 3687 | fi |
| 3688 | fi |
| 3689 | MAKE=$ac_cv_prog_MAKE |
| 3690 | if test -n "$MAKE"; then |
| 3691 | echo "$as_me:$LINENO: result: $MAKE" >&5 |
| 3692 | echo "${ECHO_T}$MAKE" >&6 |
| 3693 | else |
| 3694 | echo "$as_me:$LINENO: result: no" >&5 |
| 3695 | echo "${ECHO_T}no" >&6 |
| 3696 | fi |
| 3697 | |
| 3698 | test -n "$MAKE" && break |
| 3699 | done |
| 3700 | |
| 3701 | MAKE_IS_GNU= |
| 3702 | case "`$MAKE --version 2>&1 | sed 1q`" in |
| 3703 | *GNU*) |
| 3704 | MAKE_IS_GNU=yes |
| 3705 | ;; |
| 3706 | esac |
| 3707 | |
| 3708 | |
| 3709 | if test "$MAKE_IS_GNU" = yes; then |
| 3710 | GMAKE_TRUE= |
| 3711 | GMAKE_FALSE='#' |
| 3712 | else |
| 3713 | GMAKE_TRUE='#' |
| 3714 | GMAKE_FALSE= |
| 3715 | fi |
| 3716 | |
| 3717 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3718 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 3719 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 3720 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 3721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3722 | else |
| 3723 | cat >conftest.make <<\_ACEOF |
| 3724 | all: |
| 3725 | @echo 'ac_maketemp="$(MAKE)"' |
| 3726 | _ACEOF |
| 3727 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3728 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 3729 | if test -n "$ac_maketemp"; then |
| 3730 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 3731 | else |
| 3732 | eval ac_cv_prog_make_${ac_make}_set=no |
| 3733 | fi |
| 3734 | rm -f conftest.make |
| 3735 | fi |
| 3736 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 3737 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3738 | echo "${ECHO_T}yes" >&6 |
| 3739 | SET_MAKE= |
| 3740 | else |
| 3741 | echo "$as_me:$LINENO: result: no" >&5 |
| 3742 | echo "${ECHO_T}no" >&6 |
| 3743 | SET_MAKE="MAKE=${MAKE-make}" |
| 3744 | fi |
| 3745 | |
| 3746 | |
| 3747 | |
| 3748 | CONFIG_OBS= |
| 3749 | CONFIG_DEPS= |
| 3750 | CONFIG_SRCS= |
| 3751 | ENABLE_CFLAGS= |
| 3752 | |
| 3753 | CONFIG_ALL= |
| 3754 | CONFIG_CLEAN= |
| 3755 | CONFIG_INSTALL= |
| 3756 | CONFIG_UNINSTALL= |
| 3757 | |
| 3758 | # If we haven't got the data from the intl directory, |
| 3759 | # assume NLS is disabled. |
| 3760 | USE_NLS=no |
| 3761 | LIBINTL= |
| 3762 | LIBINTL_DEP= |
| 3763 | INCINTL= |
| 3764 | XGETTEXT= |
| 3765 | GMSGFMT= |
| 3766 | POSUB= |
| 3767 | |
| 3768 | if test -f ../intl/config.intl; then |
| 3769 | . ../intl/config.intl |
| 3770 | fi |
| 3771 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 3772 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
| 3773 | if test x"$USE_NLS" != xyes; then |
| 3774 | echo "$as_me:$LINENO: result: no" >&5 |
| 3775 | echo "${ECHO_T}no" >&6 |
| 3776 | else |
| 3777 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3778 | echo "${ECHO_T}yes" >&6 |
| 3779 | |
| 3780 | cat >>confdefs.h <<\_ACEOF |
| 3781 | #define ENABLE_NLS 1 |
| 3782 | _ACEOF |
| 3783 | |
| 3784 | |
| 3785 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
| 3786 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 |
| 3787 | # Look for .po and .gmo files in the source directory. |
| 3788 | CATALOGS= |
| 3789 | XLINGUAS= |
| 3790 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do |
| 3791 | # If there aren't any .gmo files the shell will give us the |
| 3792 | # literal string "../path/to/srcdir/po/*.gmo" which has to be |
| 3793 | # weeded out. |
| 3794 | case "$cat" in *\**) |
| 3795 | continue;; |
| 3796 | esac |
| 3797 | # The quadruple backslash is collapsed to a double backslash |
| 3798 | # by the backticks, then collapsed again by the double quotes, |
| 3799 | # leaving us with one backslash in the sed expression (right |
| 3800 | # before the dot that mustn't act as a wildcard). |
| 3801 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` |
| 3802 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` |
| 3803 | # The user is allowed to set LINGUAS to a list of languages to |
| 3804 | # install catalogs for. If it's empty that means "all of them." |
| 3805 | if test "x$LINGUAS" = x; then |
| 3806 | CATALOGS="$CATALOGS $cat" |
| 3807 | XLINGUAS="$XLINGUAS $lang" |
| 3808 | else |
| 3809 | case "$LINGUAS" in *$lang*) |
| 3810 | CATALOGS="$CATALOGS $cat" |
| 3811 | XLINGUAS="$XLINGUAS $lang" |
| 3812 | ;; |
| 3813 | esac |
| 3814 | fi |
| 3815 | done |
| 3816 | LINGUAS="$XLINGUAS" |
| 3817 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
| 3818 | echo "${ECHO_T}$LINGUAS" >&6 |
| 3819 | |
| 3820 | |
| 3821 | DATADIRNAME=share |
| 3822 | |
| 3823 | INSTOBJEXT=.mo |
| 3824 | |
| 3825 | GENCAT=gencat |
| 3826 | |
| 3827 | CATOBJEXT=.gmo |
| 3828 | |
| 3829 | fi |
| 3830 | |
| 3831 | localedir='${datadir}/locale' |
| 3832 | |
| 3833 | |
| 3834 | if test x"$USE_NLS" = xyes; then |
| 3835 | CONFIG_ALL="$CONFIG_ALL all-po" |
| 3836 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" |
| 3837 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" |
| 3838 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" |
| 3839 | fi |
| 3840 | |
| 3841 | |
| 3842 | GNULIB_MEMMEM=0; |
| 3843 | GNULIB_MEMPCPY=0; |
| 3844 | GNULIB_MEMRCHR=0; |
| 3845 | GNULIB_STPCPY=0; |
| 3846 | GNULIB_STPNCPY=0; |
| 3847 | GNULIB_STRCHRNUL=0; |
| 3848 | GNULIB_STRDUP=0; |
| 3849 | GNULIB_STRNDUP=0; |
| 3850 | GNULIB_STRNLEN=0; |
| 3851 | GNULIB_STRPBRK=0; |
| 3852 | GNULIB_STRSEP=0; |
| 3853 | GNULIB_STRSTR=0; |
| 3854 | GNULIB_STRCASESTR=0; |
| 3855 | GNULIB_STRTOK_R=0; |
| 3856 | GNULIB_MBSLEN=0; |
| 3857 | GNULIB_MBSNLEN=0; |
| 3858 | GNULIB_MBSCHR=0; |
| 3859 | GNULIB_MBSRCHR=0; |
| 3860 | GNULIB_MBSSTR=0; |
| 3861 | GNULIB_MBSCASECMP=0; |
| 3862 | GNULIB_MBSNCASECMP=0; |
| 3863 | GNULIB_MBSPCASECMP=0; |
| 3864 | GNULIB_MBSCASESTR=0; |
| 3865 | GNULIB_MBSCSPN=0; |
| 3866 | GNULIB_MBSPBRK=0; |
| 3867 | GNULIB_MBSSPN=0; |
| 3868 | GNULIB_MBSSEP=0; |
| 3869 | GNULIB_MBSTOK_R=0; |
| 3870 | GNULIB_STRERROR=0; |
| 3871 | GNULIB_STRSIGNAL=0; |
| 3872 | HAVE_DECL_MEMMEM=1; |
| 3873 | HAVE_MEMPCPY=1; |
| 3874 | HAVE_DECL_MEMRCHR=1; |
| 3875 | HAVE_STPCPY=1; |
| 3876 | HAVE_STPNCPY=1; |
| 3877 | HAVE_STRCHRNUL=1; |
| 3878 | HAVE_DECL_STRDUP=1; |
| 3879 | HAVE_STRNDUP=1; |
| 3880 | HAVE_DECL_STRNDUP=1; |
| 3881 | HAVE_DECL_STRNLEN=1; |
| 3882 | HAVE_STRPBRK=1; |
| 3883 | HAVE_STRSEP=1; |
| 3884 | HAVE_STRCASESTR=1; |
| 3885 | HAVE_DECL_STRTOK_R=1; |
| 3886 | HAVE_DECL_STRERROR=1; |
| 3887 | HAVE_DECL_STRSIGNAL=1; |
| 3888 | REPLACE_STRERROR=0; |
| 3889 | REPLACE_STRSIGNAL=0; |
| 3890 | REPLACE_MEMMEM=0; |
| 3891 | REPLACE_STRCASESTR=0; |
| 3892 | REPLACE_STRSTR=0; |
| 3893 | |
| 3894 | |
| 3895 | echo "$as_me:$LINENO: checking whether memmem is declared" >&5 |
| 3896 | echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6 |
| 3897 | if test "${ac_cv_have_decl_memmem+set}" = set; then |
| 3898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3899 | else |
| 3900 | cat >conftest.$ac_ext <<_ACEOF |
| 3901 | /* confdefs.h. */ |
| 3902 | _ACEOF |
| 3903 | cat confdefs.h >>conftest.$ac_ext |
| 3904 | cat >>conftest.$ac_ext <<_ACEOF |
| 3905 | /* end confdefs.h. */ |
| 3906 | $ac_includes_default |
| 3907 | int |
| 3908 | main () |
| 3909 | { |
| 3910 | #ifndef memmem |
| 3911 | char *p = (char *) memmem; |
| 3912 | #endif |
| 3913 | |
| 3914 | ; |
| 3915 | return 0; |
| 3916 | } |
| 3917 | _ACEOF |
| 3918 | rm -f conftest.$ac_objext |
| 3919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3920 | (eval $ac_compile) 2>conftest.er1 |
| 3921 | ac_status=$? |
| 3922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3923 | rm -f conftest.er1 |
| 3924 | cat conftest.err >&5 |
| 3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3926 | (exit $ac_status); } && |
| 3927 | { ac_try='test -z "$ac_c_werror_flag" |
| 3928 | || test ! -s conftest.err' |
| 3929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3930 | (eval $ac_try) 2>&5 |
| 3931 | ac_status=$? |
| 3932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3933 | (exit $ac_status); }; } && |
| 3934 | { ac_try='test -s conftest.$ac_objext' |
| 3935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3936 | (eval $ac_try) 2>&5 |
| 3937 | ac_status=$? |
| 3938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3939 | (exit $ac_status); }; }; then |
| 3940 | ac_cv_have_decl_memmem=yes |
| 3941 | else |
| 3942 | echo "$as_me: failed program was:" >&5 |
| 3943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3944 | |
| 3945 | ac_cv_have_decl_memmem=no |
| 3946 | fi |
| 3947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3948 | fi |
| 3949 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5 |
| 3950 | echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6 |
| 3951 | if test $ac_cv_have_decl_memmem = yes; then |
| 3952 | |
| 3953 | cat >>confdefs.h <<_ACEOF |
| 3954 | #define HAVE_DECL_MEMMEM 1 |
| 3955 | _ACEOF |
| 3956 | |
| 3957 | |
| 3958 | else |
| 3959 | cat >>confdefs.h <<_ACEOF |
| 3960 | #define HAVE_DECL_MEMMEM 0 |
| 3961 | _ACEOF |
| 3962 | |
| 3963 | |
| 3964 | fi |
| 3965 | |
| 3966 | |
| 3967 | |
| 3968 | |
| 3969 | |
| 3970 | |
| 3971 | |
| 3972 | |
| 3973 | |
| 3974 | |
| 3975 | |
| 3976 | |
| 3977 | |
| 3978 | |
| 3979 | |
| 3980 | for ac_func in memmem |
| 3981 | do |
| 3982 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 3983 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 3984 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 3985 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 3986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3987 | else |
| 3988 | cat >conftest.$ac_ext <<_ACEOF |
| 3989 | /* confdefs.h. */ |
| 3990 | _ACEOF |
| 3991 | cat confdefs.h >>conftest.$ac_ext |
| 3992 | cat >>conftest.$ac_ext <<_ACEOF |
| 3993 | /* end confdefs.h. */ |
| 3994 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 3995 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3996 | #define $ac_func innocuous_$ac_func |
| 3997 | |
| 3998 | /* System header to define __stub macros and hopefully few prototypes, |
| 3999 | which can conflict with char $ac_func (); below. |
| 4000 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4001 | <limits.h> exists even on freestanding compilers. */ |
| 4002 | |
| 4003 | #ifdef __STDC__ |
| 4004 | # include <limits.h> |
| 4005 | #else |
| 4006 | # include <assert.h> |
| 4007 | #endif |
| 4008 | |
| 4009 | #undef $ac_func |
| 4010 | |
| 4011 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4012 | #ifdef __cplusplus |
| 4013 | extern "C" |
| 4014 | { |
| 4015 | #endif |
| 4016 | /* We use char because int might match the return type of a gcc2 |
| 4017 | builtin and then its argument prototype would still apply. */ |
| 4018 | char $ac_func (); |
| 4019 | /* The GNU C library defines this for functions which it implements |
| 4020 | to always fail with ENOSYS. Some functions are actually named |
| 4021 | something starting with __ and the normal name is an alias. */ |
| 4022 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4023 | choke me |
| 4024 | #else |
| 4025 | char (*f) () = $ac_func; |
| 4026 | #endif |
| 4027 | #ifdef __cplusplus |
| 4028 | } |
| 4029 | #endif |
| 4030 | |
| 4031 | int |
| 4032 | main () |
| 4033 | { |
| 4034 | return f != $ac_func; |
| 4035 | ; |
| 4036 | return 0; |
| 4037 | } |
| 4038 | _ACEOF |
| 4039 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4041 | (eval $ac_link) 2>conftest.er1 |
| 4042 | ac_status=$? |
| 4043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4044 | rm -f conftest.er1 |
| 4045 | cat conftest.err >&5 |
| 4046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4047 | (exit $ac_status); } && |
| 4048 | { ac_try='test -z "$ac_c_werror_flag" |
| 4049 | || test ! -s conftest.err' |
| 4050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4051 | (eval $ac_try) 2>&5 |
| 4052 | ac_status=$? |
| 4053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4054 | (exit $ac_status); }; } && |
| 4055 | { ac_try='test -s conftest$ac_exeext' |
| 4056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4057 | (eval $ac_try) 2>&5 |
| 4058 | ac_status=$? |
| 4059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4060 | (exit $ac_status); }; }; then |
| 4061 | eval "$as_ac_var=yes" |
| 4062 | else |
| 4063 | echo "$as_me: failed program was:" >&5 |
| 4064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4065 | |
| 4066 | eval "$as_ac_var=no" |
| 4067 | fi |
| 4068 | rm -f conftest.err conftest.$ac_objext \ |
| 4069 | conftest$ac_exeext conftest.$ac_ext |
| 4070 | fi |
| 4071 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4072 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4073 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4074 | cat >>confdefs.h <<_ACEOF |
| 4075 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4076 | _ACEOF |
| 4077 | |
| 4078 | else |
| 4079 | |
| 4080 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" |
| 4081 | |
| 4082 | fi |
| 4083 | done |
| 4084 | |
| 4085 | |
| 4086 | |
| 4087 | : |
| 4088 | |
| 4089 | |
| 4090 | |
| 4091 | |
| 4092 | |
| 4093 | if test $ac_cv_have_decl_memmem = no; then |
| 4094 | HAVE_DECL_MEMMEM=0 |
| 4095 | fi |
| 4096 | : |
| 4097 | |
| 4098 | |
| 4099 | echo "$as_me:$LINENO: checking for long long int" >&5 |
| 4100 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 |
| 4101 | if test "${ac_cv_type_long_long_int+set}" = set; then |
| 4102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4103 | else |
| 4104 | cat >conftest.$ac_ext <<_ACEOF |
| 4105 | |
| 4106 | /* confdefs.h. */ |
| 4107 | _ACEOF |
| 4108 | cat confdefs.h >>conftest.$ac_ext |
| 4109 | cat >>conftest.$ac_ext <<_ACEOF |
| 4110 | /* end confdefs.h. */ |
| 4111 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 4112 | implementations with broken preprocessors. Perhaps this can |
| 4113 | be revisited in 2012. In the meantime, code should not expect |
| 4114 | #if to work with literals wider than 32 bits. */ |
| 4115 | /* Test literals. */ |
| 4116 | long long int ll = 9223372036854775807ll; |
| 4117 | long long int nll = -9223372036854775807LL; |
| 4118 | unsigned long long int ull = 18446744073709551615ULL; |
| 4119 | /* Test constant expressions. */ |
| 4120 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 4121 | ? 1 : -1)]; |
| 4122 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 4123 | ? 1 : -1)]; |
| 4124 | int i = 63; |
| 4125 | int |
| 4126 | main () |
| 4127 | { |
| 4128 | /* Test availability of runtime routines for shift and division. */ |
| 4129 | long long int llmax = 9223372036854775807ll; |
| 4130 | unsigned long long int ullmax = 18446744073709551615ull; |
| 4131 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 4132 | | (llmax / ll) | (llmax % ll) |
| 4133 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 4134 | | (ullmax / ull) | (ullmax % ull)); |
| 4135 | ; |
| 4136 | return 0; |
| 4137 | } |
| 4138 | |
| 4139 | _ACEOF |
| 4140 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4142 | (eval $ac_link) 2>conftest.er1 |
| 4143 | ac_status=$? |
| 4144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4145 | rm -f conftest.er1 |
| 4146 | cat conftest.err >&5 |
| 4147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4148 | (exit $ac_status); } && |
| 4149 | { ac_try='test -z "$ac_c_werror_flag" |
| 4150 | || test ! -s conftest.err' |
| 4151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4152 | (eval $ac_try) 2>&5 |
| 4153 | ac_status=$? |
| 4154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4155 | (exit $ac_status); }; } && |
| 4156 | { ac_try='test -s conftest$ac_exeext' |
| 4157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4158 | (eval $ac_try) 2>&5 |
| 4159 | ac_status=$? |
| 4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4161 | (exit $ac_status); }; }; then |
| 4162 | if test "$cross_compiling" = yes; then |
| 4163 | ac_cv_type_long_long_int=yes |
| 4164 | else |
| 4165 | cat >conftest.$ac_ext <<_ACEOF |
| 4166 | /* confdefs.h. */ |
| 4167 | _ACEOF |
| 4168 | cat confdefs.h >>conftest.$ac_ext |
| 4169 | cat >>conftest.$ac_ext <<_ACEOF |
| 4170 | /* end confdefs.h. */ |
| 4171 | #include <limits.h> |
| 4172 | #ifndef LLONG_MAX |
| 4173 | # define HALF \ |
| 4174 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 4175 | # define LLONG_MAX (HALF - 1 + HALF) |
| 4176 | #endif |
| 4177 | int |
| 4178 | main () |
| 4179 | { |
| 4180 | long long int n = 1; |
| 4181 | int i; |
| 4182 | for (i = 0; ; i++) |
| 4183 | { |
| 4184 | long long int m = n << i; |
| 4185 | if (m >> i != n) |
| 4186 | return 1; |
| 4187 | if (LLONG_MAX / 2 < m) |
| 4188 | break; |
| 4189 | } |
| 4190 | return 0; |
| 4191 | ; |
| 4192 | return 0; |
| 4193 | } |
| 4194 | _ACEOF |
| 4195 | rm -f conftest$ac_exeext |
| 4196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4197 | (eval $ac_link) 2>&5 |
| 4198 | ac_status=$? |
| 4199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4200 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4202 | (eval $ac_try) 2>&5 |
| 4203 | ac_status=$? |
| 4204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4205 | (exit $ac_status); }; }; then |
| 4206 | ac_cv_type_long_long_int=yes |
| 4207 | else |
| 4208 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4209 | echo "$as_me: failed program was:" >&5 |
| 4210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4211 | |
| 4212 | ( exit $ac_status ) |
| 4213 | ac_cv_type_long_long_int=no |
| 4214 | fi |
| 4215 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4216 | fi |
| 4217 | else |
| 4218 | echo "$as_me: failed program was:" >&5 |
| 4219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4220 | |
| 4221 | ac_cv_type_long_long_int=no |
| 4222 | fi |
| 4223 | rm -f conftest.err conftest.$ac_objext \ |
| 4224 | conftest$ac_exeext conftest.$ac_ext |
| 4225 | fi |
| 4226 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 |
| 4227 | echo "${ECHO_T}$ac_cv_type_long_long_int" >&6 |
| 4228 | if test $ac_cv_type_long_long_int = yes; then |
| 4229 | |
| 4230 | cat >>confdefs.h <<\_ACEOF |
| 4231 | #define HAVE_LONG_LONG_INT 1 |
| 4232 | _ACEOF |
| 4233 | |
| 4234 | fi |
| 4235 | |
| 4236 | |
| 4237 | echo "$as_me:$LINENO: checking for unsigned long long int" >&5 |
| 4238 | echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6 |
| 4239 | if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then |
| 4240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4241 | else |
| 4242 | cat >conftest.$ac_ext <<_ACEOF |
| 4243 | |
| 4244 | /* confdefs.h. */ |
| 4245 | _ACEOF |
| 4246 | cat confdefs.h >>conftest.$ac_ext |
| 4247 | cat >>conftest.$ac_ext <<_ACEOF |
| 4248 | /* end confdefs.h. */ |
| 4249 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 4250 | implementations with broken preprocessors. Perhaps this can |
| 4251 | be revisited in 2012. In the meantime, code should not expect |
| 4252 | #if to work with literals wider than 32 bits. */ |
| 4253 | /* Test literals. */ |
| 4254 | long long int ll = 9223372036854775807ll; |
| 4255 | long long int nll = -9223372036854775807LL; |
| 4256 | unsigned long long int ull = 18446744073709551615ULL; |
| 4257 | /* Test constant expressions. */ |
| 4258 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 4259 | ? 1 : -1)]; |
| 4260 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 4261 | ? 1 : -1)]; |
| 4262 | int i = 63; |
| 4263 | int |
| 4264 | main () |
| 4265 | { |
| 4266 | /* Test availability of runtime routines for shift and division. */ |
| 4267 | long long int llmax = 9223372036854775807ll; |
| 4268 | unsigned long long int ullmax = 18446744073709551615ull; |
| 4269 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 4270 | | (llmax / ll) | (llmax % ll) |
| 4271 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 4272 | | (ullmax / ull) | (ullmax % ull)); |
| 4273 | ; |
| 4274 | return 0; |
| 4275 | } |
| 4276 | |
| 4277 | _ACEOF |
| 4278 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4280 | (eval $ac_link) 2>conftest.er1 |
| 4281 | ac_status=$? |
| 4282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4283 | rm -f conftest.er1 |
| 4284 | cat conftest.err >&5 |
| 4285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4286 | (exit $ac_status); } && |
| 4287 | { ac_try='test -z "$ac_c_werror_flag" |
| 4288 | || test ! -s conftest.err' |
| 4289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4290 | (eval $ac_try) 2>&5 |
| 4291 | ac_status=$? |
| 4292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4293 | (exit $ac_status); }; } && |
| 4294 | { ac_try='test -s conftest$ac_exeext' |
| 4295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4296 | (eval $ac_try) 2>&5 |
| 4297 | ac_status=$? |
| 4298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4299 | (exit $ac_status); }; }; then |
| 4300 | ac_cv_type_unsigned_long_long_int=yes |
| 4301 | else |
| 4302 | echo "$as_me: failed program was:" >&5 |
| 4303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4304 | |
| 4305 | ac_cv_type_unsigned_long_long_int=no |
| 4306 | fi |
| 4307 | rm -f conftest.err conftest.$ac_objext \ |
| 4308 | conftest$ac_exeext conftest.$ac_ext |
| 4309 | fi |
| 4310 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 4311 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6 |
| 4312 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 4313 | |
| 4314 | cat >>confdefs.h <<\_ACEOF |
| 4315 | #define HAVE_UNSIGNED_LONG_LONG_INT 1 |
| 4316 | _ACEOF |
| 4317 | |
| 4318 | fi |
| 4319 | |
| 4320 | |
| 4321 | |
| 4322 | echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5 |
| 4323 | echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6 |
| 4324 | if test "${gl_cv_have_include_next+set}" = set; then |
| 4325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4326 | else |
| 4327 | rm -rf conftestd1 conftestd2 |
| 4328 | mkdir conftestd1 conftestd2 |
| 4329 | cat <<EOF > conftestd1/conftest.h |
| 4330 | #define DEFINED_IN_CONFTESTD1 |
| 4331 | #include_next <conftest.h> |
| 4332 | #ifdef DEFINED_IN_CONFTESTD2 |
| 4333 | int foo; |
| 4334 | #else |
| 4335 | #error "include_next doesn't work" |
| 4336 | #endif |
| 4337 | EOF |
| 4338 | cat <<EOF > conftestd2/conftest.h |
| 4339 | #ifndef DEFINED_IN_CONFTESTD1 |
| 4340 | #error "include_next test doesn't work" |
| 4341 | #endif |
| 4342 | #define DEFINED_IN_CONFTESTD2 |
| 4343 | EOF |
| 4344 | save_CPPFLAGS="$CPPFLAGS" |
| 4345 | CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2" |
| 4346 | cat >conftest.$ac_ext <<_ACEOF |
| 4347 | #include <conftest.h> |
| 4348 | _ACEOF |
| 4349 | rm -f conftest.$ac_objext |
| 4350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4351 | (eval $ac_compile) 2>conftest.er1 |
| 4352 | ac_status=$? |
| 4353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4354 | rm -f conftest.er1 |
| 4355 | cat conftest.err >&5 |
| 4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4357 | (exit $ac_status); } && |
| 4358 | { ac_try='test -z "$ac_c_werror_flag" |
| 4359 | || test ! -s conftest.err' |
| 4360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4361 | (eval $ac_try) 2>&5 |
| 4362 | ac_status=$? |
| 4363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4364 | (exit $ac_status); }; } && |
| 4365 | { ac_try='test -s conftest.$ac_objext' |
| 4366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4367 | (eval $ac_try) 2>&5 |
| 4368 | ac_status=$? |
| 4369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4370 | (exit $ac_status); }; }; then |
| 4371 | gl_cv_have_include_next=yes |
| 4372 | else |
| 4373 | echo "$as_me: failed program was:" >&5 |
| 4374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4375 | |
| 4376 | gl_cv_have_include_next=no |
| 4377 | fi |
| 4378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4379 | CPPFLAGS="$save_CPPFLAGS" |
| 4380 | rm -rf conftestd1 conftestd2 |
| 4381 | |
| 4382 | fi |
| 4383 | echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5 |
| 4384 | echo "${ECHO_T}$gl_cv_have_include_next" >&6 |
| 4385 | if test $gl_cv_have_include_next = yes; then |
| 4386 | |
| 4387 | |
| 4388 | cat >>confdefs.h <<\_ACEOF |
| 4389 | #define HAVE_INCLUDE_NEXT 1 |
| 4390 | _ACEOF |
| 4391 | |
| 4392 | |
| 4393 | INCLUDE_NEXT=include_next |
| 4394 | else |
| 4395 | INCLUDE_NEXT=include |
| 4396 | fi |
| 4397 | |
| 4398 | |
| 4399 | |
| 4400 | |
| 4401 | |
| 4402 | |
| 4403 | |
| 4404 | for ac_header in $gl_header_list |
| 4405 | do |
| 4406 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4407 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4412 | fi |
| 4413 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4414 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4415 | else |
| 4416 | # Is the header compilable? |
| 4417 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4418 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4419 | cat >conftest.$ac_ext <<_ACEOF |
| 4420 | /* confdefs.h. */ |
| 4421 | _ACEOF |
| 4422 | cat confdefs.h >>conftest.$ac_ext |
| 4423 | cat >>conftest.$ac_ext <<_ACEOF |
| 4424 | /* end confdefs.h. */ |
| 4425 | $ac_includes_default |
| 4426 | #include <$ac_header> |
| 4427 | _ACEOF |
| 4428 | rm -f conftest.$ac_objext |
| 4429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4430 | (eval $ac_compile) 2>conftest.er1 |
| 4431 | ac_status=$? |
| 4432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4433 | rm -f conftest.er1 |
| 4434 | cat conftest.err >&5 |
| 4435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4436 | (exit $ac_status); } && |
| 4437 | { ac_try='test -z "$ac_c_werror_flag" |
| 4438 | || test ! -s conftest.err' |
| 4439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4440 | (eval $ac_try) 2>&5 |
| 4441 | ac_status=$? |
| 4442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4443 | (exit $ac_status); }; } && |
| 4444 | { ac_try='test -s conftest.$ac_objext' |
| 4445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4446 | (eval $ac_try) 2>&5 |
| 4447 | ac_status=$? |
| 4448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4449 | (exit $ac_status); }; }; then |
| 4450 | ac_header_compiler=yes |
| 4451 | else |
| 4452 | echo "$as_me: failed program was:" >&5 |
| 4453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4454 | |
| 4455 | ac_header_compiler=no |
| 4456 | fi |
| 4457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4458 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4459 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4460 | |
| 4461 | # Is the header present? |
| 4462 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4463 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4464 | cat >conftest.$ac_ext <<_ACEOF |
| 4465 | /* confdefs.h. */ |
| 4466 | _ACEOF |
| 4467 | cat confdefs.h >>conftest.$ac_ext |
| 4468 | cat >>conftest.$ac_ext <<_ACEOF |
| 4469 | /* end confdefs.h. */ |
| 4470 | #include <$ac_header> |
| 4471 | _ACEOF |
| 4472 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4473 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4474 | ac_status=$? |
| 4475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4476 | rm -f conftest.er1 |
| 4477 | cat conftest.err >&5 |
| 4478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4479 | (exit $ac_status); } >/dev/null; then |
| 4480 | if test -s conftest.err; then |
| 4481 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4482 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4483 | else |
| 4484 | ac_cpp_err= |
| 4485 | fi |
| 4486 | else |
| 4487 | ac_cpp_err=yes |
| 4488 | fi |
| 4489 | if test -z "$ac_cpp_err"; then |
| 4490 | ac_header_preproc=yes |
| 4491 | else |
| 4492 | echo "$as_me: failed program was:" >&5 |
| 4493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4494 | |
| 4495 | ac_header_preproc=no |
| 4496 | fi |
| 4497 | rm -f conftest.err conftest.$ac_ext |
| 4498 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4499 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4500 | |
| 4501 | # So? What about this header? |
| 4502 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4503 | yes:no: ) |
| 4504 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4505 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4506 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4507 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4508 | ac_header_preproc=yes |
| 4509 | ;; |
| 4510 | no:yes:* ) |
| 4511 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4512 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4513 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4514 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4515 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4516 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4517 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4518 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4519 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4520 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4521 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4522 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 4523 | ( |
| 4524 | cat <<\_ASBOX |
| 4525 | ## ------------------------------------------ ## |
| 4526 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 4527 | ## ------------------------------------------ ## |
| 4528 | _ASBOX |
| 4529 | ) | |
| 4530 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4531 | ;; |
| 4532 | esac |
| 4533 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4534 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4537 | else |
| 4538 | eval "$as_ac_Header=\$ac_header_preproc" |
| 4539 | fi |
| 4540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4541 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4542 | |
| 4543 | fi |
| 4544 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4545 | cat >>confdefs.h <<_ACEOF |
| 4546 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4547 | _ACEOF |
| 4548 | |
| 4549 | fi |
| 4550 | |
| 4551 | done |
| 4552 | |
| 4553 | |
| 4554 | |
| 4555 | |
| 4556 | |
| 4557 | |
| 4558 | |
| 4559 | |
| 4560 | |
| 4561 | |
| 4562 | |
| 4563 | |
| 4564 | echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 |
| 4565 | echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6 |
| 4566 | if test "${ac_cv_c_restrict+set}" = set; then |
| 4567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4568 | else |
| 4569 | ac_cv_c_restrict=no |
| 4570 | # The order here caters to the fact that C++ does not require restrict. |
| 4571 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| 4572 | cat >conftest.$ac_ext <<_ACEOF |
| 4573 | /* confdefs.h. */ |
| 4574 | _ACEOF |
| 4575 | cat confdefs.h >>conftest.$ac_ext |
| 4576 | cat >>conftest.$ac_ext <<_ACEOF |
| 4577 | /* end confdefs.h. */ |
| 4578 | typedef int * int_ptr; |
| 4579 | int foo (int_ptr $ac_kw ip) { |
| 4580 | return ip[0]; |
| 4581 | } |
| 4582 | int |
| 4583 | main () |
| 4584 | { |
| 4585 | int s[1]; |
| 4586 | int * $ac_kw t = s; |
| 4587 | t[0] = 0; |
| 4588 | return foo(t) |
| 4589 | ; |
| 4590 | return 0; |
| 4591 | } |
| 4592 | _ACEOF |
| 4593 | rm -f conftest.$ac_objext |
| 4594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4595 | (eval $ac_compile) 2>conftest.er1 |
| 4596 | ac_status=$? |
| 4597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4598 | rm -f conftest.er1 |
| 4599 | cat conftest.err >&5 |
| 4600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4601 | (exit $ac_status); } && |
| 4602 | { ac_try='test -z "$ac_c_werror_flag" |
| 4603 | || test ! -s conftest.err' |
| 4604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4605 | (eval $ac_try) 2>&5 |
| 4606 | ac_status=$? |
| 4607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4608 | (exit $ac_status); }; } && |
| 4609 | { ac_try='test -s conftest.$ac_objext' |
| 4610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4611 | (eval $ac_try) 2>&5 |
| 4612 | ac_status=$? |
| 4613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4614 | (exit $ac_status); }; }; then |
| 4615 | ac_cv_c_restrict=$ac_kw |
| 4616 | else |
| 4617 | echo "$as_me: failed program was:" >&5 |
| 4618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4619 | |
| 4620 | fi |
| 4621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4622 | test "$ac_cv_c_restrict" != no && break |
| 4623 | done |
| 4624 | |
| 4625 | fi |
| 4626 | echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 |
| 4627 | echo "${ECHO_T}$ac_cv_c_restrict" >&6 |
| 4628 | |
| 4629 | |
| 4630 | case $ac_cv_c_restrict in |
| 4631 | restrict) ;; |
| 4632 | no) cat >>confdefs.h <<\_ACEOF |
| 4633 | #define restrict |
| 4634 | _ACEOF |
| 4635 | ;; |
| 4636 | *) cat >>confdefs.h <<_ACEOF |
| 4637 | #define restrict $ac_cv_c_restrict |
| 4638 | _ACEOF |
| 4639 | ;; |
| 4640 | esac |
| 4641 | |
| 4642 | |
| 4643 | |
| 4644 | |
| 4645 | |
| 4646 | |
| 4647 | |
| 4648 | |
| 4649 | |
| 4650 | |
| 4651 | |
| 4652 | |
| 4653 | |
| 4654 | : |
| 4655 | |
| 4656 | |
| 4657 | |
| 4658 | |
| 4659 | |
| 4660 | |
| 4661 | |
| 4662 | if test $gl_cv_have_include_next = yes; then |
| 4663 | gl_cv_next_string_h='<'string.h'>' |
| 4664 | else |
| 4665 | echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5 |
| 4666 | echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6 |
| 4667 | if test "${gl_cv_next_string_h+set}" = set; then |
| 4668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4669 | else |
| 4670 | |
| 4671 | if test $ac_cv_header_string_h = yes; then |
| 4672 | cat >conftest.$ac_ext <<_ACEOF |
| 4673 | /* confdefs.h. */ |
| 4674 | _ACEOF |
| 4675 | cat confdefs.h >>conftest.$ac_ext |
| 4676 | cat >>conftest.$ac_ext <<_ACEOF |
| 4677 | /* end confdefs.h. */ |
| 4678 | #include <string.h> |
| 4679 | |
| 4680 | _ACEOF |
| 4681 | gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4682 | sed -n '\#/string.h#{ |
| 4683 | s#.*"\(.*/string.h\)".*#\1# |
| 4684 | s#^/[^/]#//&# |
| 4685 | p |
| 4686 | q |
| 4687 | }'`'"' |
| 4688 | else |
| 4689 | gl_cv_next_string_h='<'string.h'>' |
| 4690 | fi |
| 4691 | |
| 4692 | fi |
| 4693 | echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5 |
| 4694 | echo "${ECHO_T}$gl_cv_next_string_h" >&6 |
| 4695 | fi |
| 4696 | NEXT_STRING_H=$gl_cv_next_string_h |
| 4697 | |
| 4698 | |
| 4699 | |
| 4700 | |
| 4701 | |
| 4702 | GNULIB_WCWIDTH=0; |
| 4703 | HAVE_DECL_WCWIDTH=1; |
| 4704 | REPLACE_WCWIDTH=0; |
| 4705 | WCHAR_H= |
| 4706 | |
| 4707 | |
| 4708 | |
| 4709 | |
| 4710 | |
| 4711 | if false; then |
| 4712 | GL_COND_LIBTOOL_TRUE= |
| 4713 | GL_COND_LIBTOOL_FALSE='#' |
| 4714 | else |
| 4715 | GL_COND_LIBTOOL_TRUE='#' |
| 4716 | GL_COND_LIBTOOL_FALSE= |
| 4717 | fi |
| 4718 | |
| 4719 | gl_cond_libtool=false |
| 4720 | gl_libdeps= |
| 4721 | gl_ltlibdeps= |
| 4722 | |
| 4723 | |
| 4724 | |
| 4725 | gl_source_base='gnulib' |
| 4726 | |
| 4727 | |
| 4728 | |
| 4729 | |
| 4730 | |
| 4731 | |
| 4732 | |
| 4733 | |
| 4734 | |
| 4735 | for ac_func in memchr |
| 4736 | do |
| 4737 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4738 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 4739 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4740 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4742 | else |
| 4743 | cat >conftest.$ac_ext <<_ACEOF |
| 4744 | /* confdefs.h. */ |
| 4745 | _ACEOF |
| 4746 | cat confdefs.h >>conftest.$ac_ext |
| 4747 | cat >>conftest.$ac_ext <<_ACEOF |
| 4748 | /* end confdefs.h. */ |
| 4749 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 4750 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4751 | #define $ac_func innocuous_$ac_func |
| 4752 | |
| 4753 | /* System header to define __stub macros and hopefully few prototypes, |
| 4754 | which can conflict with char $ac_func (); below. |
| 4755 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4756 | <limits.h> exists even on freestanding compilers. */ |
| 4757 | |
| 4758 | #ifdef __STDC__ |
| 4759 | # include <limits.h> |
| 4760 | #else |
| 4761 | # include <assert.h> |
| 4762 | #endif |
| 4763 | |
| 4764 | #undef $ac_func |
| 4765 | |
| 4766 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4767 | #ifdef __cplusplus |
| 4768 | extern "C" |
| 4769 | { |
| 4770 | #endif |
| 4771 | /* We use char because int might match the return type of a gcc2 |
| 4772 | builtin and then its argument prototype would still apply. */ |
| 4773 | char $ac_func (); |
| 4774 | /* The GNU C library defines this for functions which it implements |
| 4775 | to always fail with ENOSYS. Some functions are actually named |
| 4776 | something starting with __ and the normal name is an alias. */ |
| 4777 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4778 | choke me |
| 4779 | #else |
| 4780 | char (*f) () = $ac_func; |
| 4781 | #endif |
| 4782 | #ifdef __cplusplus |
| 4783 | } |
| 4784 | #endif |
| 4785 | |
| 4786 | int |
| 4787 | main () |
| 4788 | { |
| 4789 | return f != $ac_func; |
| 4790 | ; |
| 4791 | return 0; |
| 4792 | } |
| 4793 | _ACEOF |
| 4794 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4796 | (eval $ac_link) 2>conftest.er1 |
| 4797 | ac_status=$? |
| 4798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4799 | rm -f conftest.er1 |
| 4800 | cat conftest.err >&5 |
| 4801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4802 | (exit $ac_status); } && |
| 4803 | { ac_try='test -z "$ac_c_werror_flag" |
| 4804 | || test ! -s conftest.err' |
| 4805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4806 | (eval $ac_try) 2>&5 |
| 4807 | ac_status=$? |
| 4808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4809 | (exit $ac_status); }; } && |
| 4810 | { ac_try='test -s conftest$ac_exeext' |
| 4811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4812 | (eval $ac_try) 2>&5 |
| 4813 | ac_status=$? |
| 4814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4815 | (exit $ac_status); }; }; then |
| 4816 | eval "$as_ac_var=yes" |
| 4817 | else |
| 4818 | echo "$as_me: failed program was:" >&5 |
| 4819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4820 | |
| 4821 | eval "$as_ac_var=no" |
| 4822 | fi |
| 4823 | rm -f conftest.err conftest.$ac_objext \ |
| 4824 | conftest$ac_exeext conftest.$ac_ext |
| 4825 | fi |
| 4826 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4827 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4828 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4829 | cat >>confdefs.h <<_ACEOF |
| 4830 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4831 | _ACEOF |
| 4832 | |
| 4833 | else |
| 4834 | |
| 4835 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" |
| 4836 | |
| 4837 | fi |
| 4838 | done |
| 4839 | |
| 4840 | |
| 4841 | if test $ac_cv_func_memchr = no; then |
| 4842 | |
| 4843 | |
| 4844 | for ac_header in bp-sym.h |
| 4845 | do |
| 4846 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4847 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4848 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4849 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4850 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4852 | fi |
| 4853 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4854 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4855 | else |
| 4856 | # Is the header compilable? |
| 4857 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4858 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4859 | cat >conftest.$ac_ext <<_ACEOF |
| 4860 | /* confdefs.h. */ |
| 4861 | _ACEOF |
| 4862 | cat confdefs.h >>conftest.$ac_ext |
| 4863 | cat >>conftest.$ac_ext <<_ACEOF |
| 4864 | /* end confdefs.h. */ |
| 4865 | $ac_includes_default |
| 4866 | #include <$ac_header> |
| 4867 | _ACEOF |
| 4868 | rm -f conftest.$ac_objext |
| 4869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4870 | (eval $ac_compile) 2>conftest.er1 |
| 4871 | ac_status=$? |
| 4872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4873 | rm -f conftest.er1 |
| 4874 | cat conftest.err >&5 |
| 4875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4876 | (exit $ac_status); } && |
| 4877 | { ac_try='test -z "$ac_c_werror_flag" |
| 4878 | || test ! -s conftest.err' |
| 4879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4880 | (eval $ac_try) 2>&5 |
| 4881 | ac_status=$? |
| 4882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4883 | (exit $ac_status); }; } && |
| 4884 | { ac_try='test -s conftest.$ac_objext' |
| 4885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4886 | (eval $ac_try) 2>&5 |
| 4887 | ac_status=$? |
| 4888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4889 | (exit $ac_status); }; }; then |
| 4890 | ac_header_compiler=yes |
| 4891 | else |
| 4892 | echo "$as_me: failed program was:" >&5 |
| 4893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4894 | |
| 4895 | ac_header_compiler=no |
| 4896 | fi |
| 4897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4898 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4899 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4900 | |
| 4901 | # Is the header present? |
| 4902 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4903 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4904 | cat >conftest.$ac_ext <<_ACEOF |
| 4905 | /* confdefs.h. */ |
| 4906 | _ACEOF |
| 4907 | cat confdefs.h >>conftest.$ac_ext |
| 4908 | cat >>conftest.$ac_ext <<_ACEOF |
| 4909 | /* end confdefs.h. */ |
| 4910 | #include <$ac_header> |
| 4911 | _ACEOF |
| 4912 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4913 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4914 | ac_status=$? |
| 4915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4916 | rm -f conftest.er1 |
| 4917 | cat conftest.err >&5 |
| 4918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4919 | (exit $ac_status); } >/dev/null; then |
| 4920 | if test -s conftest.err; then |
| 4921 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4922 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4923 | else |
| 4924 | ac_cpp_err= |
| 4925 | fi |
| 4926 | else |
| 4927 | ac_cpp_err=yes |
| 4928 | fi |
| 4929 | if test -z "$ac_cpp_err"; then |
| 4930 | ac_header_preproc=yes |
| 4931 | else |
| 4932 | echo "$as_me: failed program was:" >&5 |
| 4933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4934 | |
| 4935 | ac_header_preproc=no |
| 4936 | fi |
| 4937 | rm -f conftest.err conftest.$ac_ext |
| 4938 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4939 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4940 | |
| 4941 | # So? What about this header? |
| 4942 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4943 | yes:no: ) |
| 4944 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4945 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4946 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4947 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4948 | ac_header_preproc=yes |
| 4949 | ;; |
| 4950 | no:yes:* ) |
| 4951 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4952 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4953 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4954 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4955 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4956 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4957 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4958 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4959 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4960 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4961 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4962 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 4963 | ( |
| 4964 | cat <<\_ASBOX |
| 4965 | ## ------------------------------------------ ## |
| 4966 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 4967 | ## ------------------------------------------ ## |
| 4968 | _ASBOX |
| 4969 | ) | |
| 4970 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4971 | ;; |
| 4972 | esac |
| 4973 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4974 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4975 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4977 | else |
| 4978 | eval "$as_ac_Header=\$ac_header_preproc" |
| 4979 | fi |
| 4980 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4981 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4982 | |
| 4983 | fi |
| 4984 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4985 | cat >>confdefs.h <<_ACEOF |
| 4986 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4987 | _ACEOF |
| 4988 | |
| 4989 | fi |
| 4990 | |
| 4991 | done |
| 4992 | |
| 4993 | |
| 4994 | fi |
| 4995 | |
| 4996 | |
| 4997 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
| 4998 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
| 4999 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
| 5000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5001 | else |
| 5002 | if test "$cross_compiling" = yes; then |
| 5003 | ac_cv_func_memcmp_working=no |
| 5004 | else |
| 5005 | cat >conftest.$ac_ext <<_ACEOF |
| 5006 | /* confdefs.h. */ |
| 5007 | _ACEOF |
| 5008 | cat confdefs.h >>conftest.$ac_ext |
| 5009 | cat >>conftest.$ac_ext <<_ACEOF |
| 5010 | /* end confdefs.h. */ |
| 5011 | $ac_includes_default |
| 5012 | int |
| 5013 | main () |
| 5014 | { |
| 5015 | |
| 5016 | /* Some versions of memcmp are not 8-bit clean. */ |
| 5017 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
| 5018 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 5019 | exit (1); |
| 5020 | |
| 5021 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 5022 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 5023 | William Lewis provided this test program. */ |
| 5024 | { |
| 5025 | char foo[21]; |
| 5026 | char bar[21]; |
| 5027 | int i; |
| 5028 | for (i = 0; i < 4; i++) |
| 5029 | { |
| 5030 | char *a = foo + i; |
| 5031 | char *b = bar + i; |
| 5032 | strcpy (a, "--------01111111"); |
| 5033 | strcpy (b, "--------10000000"); |
| 5034 | if (memcmp (a, b, 16) >= 0) |
| 5035 | exit (1); |
| 5036 | } |
| 5037 | exit (0); |
| 5038 | } |
| 5039 | |
| 5040 | ; |
| 5041 | return 0; |
| 5042 | } |
| 5043 | _ACEOF |
| 5044 | rm -f conftest$ac_exeext |
| 5045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5046 | (eval $ac_link) 2>&5 |
| 5047 | ac_status=$? |
| 5048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5049 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5051 | (eval $ac_try) 2>&5 |
| 5052 | ac_status=$? |
| 5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5054 | (exit $ac_status); }; }; then |
| 5055 | ac_cv_func_memcmp_working=yes |
| 5056 | else |
| 5057 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5058 | echo "$as_me: failed program was:" >&5 |
| 5059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5060 | |
| 5061 | ( exit $ac_status ) |
| 5062 | ac_cv_func_memcmp_working=no |
| 5063 | fi |
| 5064 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5065 | fi |
| 5066 | fi |
| 5067 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
| 5068 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
| 5069 | test $ac_cv_func_memcmp_working = no && |
| 5070 | |
| 5071 | |
| 5072 | |
| 5073 | |
| 5074 | |
| 5075 | |
| 5076 | gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext" |
| 5077 | |
| 5078 | |
| 5079 | if test $ac_cv_func_memcmp_working = no; then |
| 5080 | |
| 5081 | cat >>confdefs.h <<\_ACEOF |
| 5082 | #define memcmp rpl_memcmp |
| 5083 | _ACEOF |
| 5084 | |
| 5085 | : |
| 5086 | fi |
| 5087 | |
| 5088 | |
| 5089 | |
| 5090 | if test $ac_cv_have_decl_memmem = yes; then |
| 5091 | echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5 |
| 5092 | echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6 |
| 5093 | if test "${gl_cv_func_memmem_works+set}" = set; then |
| 5094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5095 | else |
| 5096 | if test "$cross_compiling" = yes; then |
| 5097 | gl_cv_func_memmem_works="guessing no" |
| 5098 | else |
| 5099 | cat >conftest.$ac_ext <<_ACEOF |
| 5100 | /* confdefs.h. */ |
| 5101 | _ACEOF |
| 5102 | cat confdefs.h >>conftest.$ac_ext |
| 5103 | cat >>conftest.$ac_ext <<_ACEOF |
| 5104 | /* end confdefs.h. */ |
| 5105 | |
| 5106 | #include <string.h> /* for memmem */ |
| 5107 | #include <stdlib.h> /* for malloc */ |
| 5108 | #include <unistd.h> /* for alarm */ |
| 5109 | |
| 5110 | int |
| 5111 | main () |
| 5112 | { |
| 5113 | size_t m = 1000000; |
| 5114 | char *haystack = (char *) malloc (2 * m + 1); |
| 5115 | char *needle = (char *) malloc (m + 1); |
| 5116 | void *result = 0; |
| 5117 | /* Failure to compile this test due to missing alarm is okay, |
| 5118 | since all such platforms (mingw) also lack memmem. */ |
| 5119 | alarm (5); |
| 5120 | /* Check for quadratic performance. */ |
| 5121 | if (haystack && needle) |
| 5122 | { |
| 5123 | memset (haystack, 'A', 2 * m); |
| 5124 | haystack[2 * m] = 'B'; |
| 5125 | memset (needle, 'A', m); |
| 5126 | needle[m] = 'B'; |
| 5127 | result = memmem (haystack, 2 * m + 1, needle, m + 1); |
| 5128 | } |
| 5129 | /* Check for empty needle behavior. */ |
| 5130 | return !result || !memmem ("a", 1, 0, 0); |
| 5131 | ; |
| 5132 | return 0; |
| 5133 | } |
| 5134 | _ACEOF |
| 5135 | rm -f conftest$ac_exeext |
| 5136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5137 | (eval $ac_link) 2>&5 |
| 5138 | ac_status=$? |
| 5139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5140 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5142 | (eval $ac_try) 2>&5 |
| 5143 | ac_status=$? |
| 5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5145 | (exit $ac_status); }; }; then |
| 5146 | gl_cv_func_memmem_works=yes |
| 5147 | else |
| 5148 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5149 | echo "$as_me: failed program was:" >&5 |
| 5150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5151 | |
| 5152 | ( exit $ac_status ) |
| 5153 | gl_cv_func_memmem_works=no |
| 5154 | fi |
| 5155 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5156 | fi |
| 5157 | fi |
| 5158 | echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5 |
| 5159 | echo "${ECHO_T}$gl_cv_func_memmem_works" >&6 |
| 5160 | if test "$gl_cv_func_memmem_works" != yes; then |
| 5161 | REPLACE_MEMMEM=1 |
| 5162 | |
| 5163 | |
| 5164 | |
| 5165 | |
| 5166 | |
| 5167 | |
| 5168 | |
| 5169 | gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext" |
| 5170 | |
| 5171 | fi |
| 5172 | fi |
| 5173 | |
| 5174 | |
| 5175 | |
| 5176 | |
| 5177 | |
| 5178 | |
| 5179 | |
| 5180 | |
| 5181 | |
| 5182 | |
| 5183 | |
| 5184 | |
| 5185 | |
| 5186 | for ac_func in memmem |
| 5187 | do |
| 5188 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5189 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5190 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5191 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5193 | else |
| 5194 | cat >conftest.$ac_ext <<_ACEOF |
| 5195 | /* confdefs.h. */ |
| 5196 | _ACEOF |
| 5197 | cat confdefs.h >>conftest.$ac_ext |
| 5198 | cat >>conftest.$ac_ext <<_ACEOF |
| 5199 | /* end confdefs.h. */ |
| 5200 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5201 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5202 | #define $ac_func innocuous_$ac_func |
| 5203 | |
| 5204 | /* System header to define __stub macros and hopefully few prototypes, |
| 5205 | which can conflict with char $ac_func (); below. |
| 5206 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5207 | <limits.h> exists even on freestanding compilers. */ |
| 5208 | |
| 5209 | #ifdef __STDC__ |
| 5210 | # include <limits.h> |
| 5211 | #else |
| 5212 | # include <assert.h> |
| 5213 | #endif |
| 5214 | |
| 5215 | #undef $ac_func |
| 5216 | |
| 5217 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5218 | #ifdef __cplusplus |
| 5219 | extern "C" |
| 5220 | { |
| 5221 | #endif |
| 5222 | /* We use char because int might match the return type of a gcc2 |
| 5223 | builtin and then its argument prototype would still apply. */ |
| 5224 | char $ac_func (); |
| 5225 | /* The GNU C library defines this for functions which it implements |
| 5226 | to always fail with ENOSYS. Some functions are actually named |
| 5227 | something starting with __ and the normal name is an alias. */ |
| 5228 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5229 | choke me |
| 5230 | #else |
| 5231 | char (*f) () = $ac_func; |
| 5232 | #endif |
| 5233 | #ifdef __cplusplus |
| 5234 | } |
| 5235 | #endif |
| 5236 | |
| 5237 | int |
| 5238 | main () |
| 5239 | { |
| 5240 | return f != $ac_func; |
| 5241 | ; |
| 5242 | return 0; |
| 5243 | } |
| 5244 | _ACEOF |
| 5245 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5247 | (eval $ac_link) 2>conftest.er1 |
| 5248 | ac_status=$? |
| 5249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5250 | rm -f conftest.er1 |
| 5251 | cat conftest.err >&5 |
| 5252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5253 | (exit $ac_status); } && |
| 5254 | { ac_try='test -z "$ac_c_werror_flag" |
| 5255 | || test ! -s conftest.err' |
| 5256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5257 | (eval $ac_try) 2>&5 |
| 5258 | ac_status=$? |
| 5259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5260 | (exit $ac_status); }; } && |
| 5261 | { ac_try='test -s conftest$ac_exeext' |
| 5262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5263 | (eval $ac_try) 2>&5 |
| 5264 | ac_status=$? |
| 5265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5266 | (exit $ac_status); }; }; then |
| 5267 | eval "$as_ac_var=yes" |
| 5268 | else |
| 5269 | echo "$as_me: failed program was:" >&5 |
| 5270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5271 | |
| 5272 | eval "$as_ac_var=no" |
| 5273 | fi |
| 5274 | rm -f conftest.err conftest.$ac_objext \ |
| 5275 | conftest$ac_exeext conftest.$ac_ext |
| 5276 | fi |
| 5277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5278 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5279 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5280 | cat >>confdefs.h <<_ACEOF |
| 5281 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5282 | _ACEOF |
| 5283 | |
| 5284 | else |
| 5285 | |
| 5286 | gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" |
| 5287 | |
| 5288 | fi |
| 5289 | done |
| 5290 | |
| 5291 | |
| 5292 | |
| 5293 | : |
| 5294 | |
| 5295 | |
| 5296 | |
| 5297 | |
| 5298 | |
| 5299 | if test $ac_cv_have_decl_memmem = no; then |
| 5300 | HAVE_DECL_MEMMEM=0 |
| 5301 | fi |
| 5302 | : |
| 5303 | |
| 5304 | |
| 5305 | |
| 5306 | GNULIB_MEMMEM=1 |
| 5307 | |
| 5308 | |
| 5309 | |
| 5310 | |
| 5311 | if test $ac_cv_type_long_long_int = yes; then |
| 5312 | HAVE_LONG_LONG_INT=1 |
| 5313 | else |
| 5314 | HAVE_LONG_LONG_INT=0 |
| 5315 | fi |
| 5316 | |
| 5317 | |
| 5318 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 5319 | HAVE_UNSIGNED_LONG_LONG_INT=1 |
| 5320 | else |
| 5321 | HAVE_UNSIGNED_LONG_LONG_INT=0 |
| 5322 | fi |
| 5323 | |
| 5324 | |
| 5325 | if test $ac_cv_header_inttypes_h = yes; then |
| 5326 | HAVE_INTTYPES_H=1 |
| 5327 | else |
| 5328 | HAVE_INTTYPES_H=0 |
| 5329 | fi |
| 5330 | |
| 5331 | |
| 5332 | if test $ac_cv_header_sys_types_h = yes; then |
| 5333 | HAVE_SYS_TYPES_H=1 |
| 5334 | else |
| 5335 | HAVE_SYS_TYPES_H=0 |
| 5336 | fi |
| 5337 | |
| 5338 | |
| 5339 | |
| 5340 | |
| 5341 | |
| 5342 | : |
| 5343 | |
| 5344 | |
| 5345 | |
| 5346 | |
| 5347 | |
| 5348 | |
| 5349 | |
| 5350 | if test $gl_cv_have_include_next = yes; then |
| 5351 | gl_cv_next_stdint_h='<'stdint.h'>' |
| 5352 | else |
| 5353 | echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5 |
| 5354 | echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6 |
| 5355 | if test "${gl_cv_next_stdint_h+set}" = set; then |
| 5356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5357 | else |
| 5358 | |
| 5359 | if test $ac_cv_header_stdint_h = yes; then |
| 5360 | cat >conftest.$ac_ext <<_ACEOF |
| 5361 | /* confdefs.h. */ |
| 5362 | _ACEOF |
| 5363 | cat confdefs.h >>conftest.$ac_ext |
| 5364 | cat >>conftest.$ac_ext <<_ACEOF |
| 5365 | /* end confdefs.h. */ |
| 5366 | #include <stdint.h> |
| 5367 | |
| 5368 | _ACEOF |
| 5369 | gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5370 | sed -n '\#/stdint.h#{ |
| 5371 | s#.*"\(.*/stdint.h\)".*#\1# |
| 5372 | s#^/[^/]#//&# |
| 5373 | p |
| 5374 | q |
| 5375 | }'`'"' |
| 5376 | else |
| 5377 | gl_cv_next_stdint_h='<'stdint.h'>' |
| 5378 | fi |
| 5379 | |
| 5380 | fi |
| 5381 | echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5 |
| 5382 | echo "${ECHO_T}$gl_cv_next_stdint_h" >&6 |
| 5383 | fi |
| 5384 | NEXT_STDINT_H=$gl_cv_next_stdint_h |
| 5385 | |
| 5386 | |
| 5387 | |
| 5388 | if test $ac_cv_header_stdint_h = yes; then |
| 5389 | HAVE_STDINT_H=1 |
| 5390 | else |
| 5391 | HAVE_STDINT_H=0 |
| 5392 | fi |
| 5393 | |
| 5394 | |
| 5395 | if test $ac_cv_header_stdint_h = yes; then |
| 5396 | echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5 |
| 5397 | echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6 |
| 5398 | if test "${gl_cv_header_working_stdint_h+set}" = set; then |
| 5399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5400 | else |
| 5401 | gl_cv_header_working_stdint_h=no |
| 5402 | cat >conftest.$ac_ext <<_ACEOF |
| 5403 | |
| 5404 | /* confdefs.h. */ |
| 5405 | _ACEOF |
| 5406 | cat confdefs.h >>conftest.$ac_ext |
| 5407 | cat >>conftest.$ac_ext <<_ACEOF |
| 5408 | /* end confdefs.h. */ |
| 5409 | |
| 5410 | #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ |
| 5411 | #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ |
| 5412 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 5413 | #include <stdint.h> |
| 5414 | /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ |
| 5415 | #if !(defined WCHAR_MIN && defined WCHAR_MAX) |
| 5416 | #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" |
| 5417 | #endif |
| 5418 | |
| 5419 | |
| 5420 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5421 | included before <wchar.h>. */ |
| 5422 | #include <stddef.h> |
| 5423 | #include <signal.h> |
| 5424 | #if HAVE_WCHAR_H |
| 5425 | # include <stdio.h> |
| 5426 | # include <time.h> |
| 5427 | # include <wchar.h> |
| 5428 | #endif |
| 5429 | |
| 5430 | |
| 5431 | #ifdef INT8_MAX |
| 5432 | int8_t a1 = INT8_MAX; |
| 5433 | int8_t a1min = INT8_MIN; |
| 5434 | #endif |
| 5435 | #ifdef INT16_MAX |
| 5436 | int16_t a2 = INT16_MAX; |
| 5437 | int16_t a2min = INT16_MIN; |
| 5438 | #endif |
| 5439 | #ifdef INT32_MAX |
| 5440 | int32_t a3 = INT32_MAX; |
| 5441 | int32_t a3min = INT32_MIN; |
| 5442 | #endif |
| 5443 | #ifdef INT64_MAX |
| 5444 | int64_t a4 = INT64_MAX; |
| 5445 | int64_t a4min = INT64_MIN; |
| 5446 | #endif |
| 5447 | #ifdef UINT8_MAX |
| 5448 | uint8_t b1 = UINT8_MAX; |
| 5449 | #else |
| 5450 | typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; |
| 5451 | #endif |
| 5452 | #ifdef UINT16_MAX |
| 5453 | uint16_t b2 = UINT16_MAX; |
| 5454 | #endif |
| 5455 | #ifdef UINT32_MAX |
| 5456 | uint32_t b3 = UINT32_MAX; |
| 5457 | #endif |
| 5458 | #ifdef UINT64_MAX |
| 5459 | uint64_t b4 = UINT64_MAX; |
| 5460 | #endif |
| 5461 | int_least8_t c1 = INT8_C (0x7f); |
| 5462 | int_least8_t c1max = INT_LEAST8_MAX; |
| 5463 | int_least8_t c1min = INT_LEAST8_MIN; |
| 5464 | int_least16_t c2 = INT16_C (0x7fff); |
| 5465 | int_least16_t c2max = INT_LEAST16_MAX; |
| 5466 | int_least16_t c2min = INT_LEAST16_MIN; |
| 5467 | int_least32_t c3 = INT32_C (0x7fffffff); |
| 5468 | int_least32_t c3max = INT_LEAST32_MAX; |
| 5469 | int_least32_t c3min = INT_LEAST32_MIN; |
| 5470 | int_least64_t c4 = INT64_C (0x7fffffffffffffff); |
| 5471 | int_least64_t c4max = INT_LEAST64_MAX; |
| 5472 | int_least64_t c4min = INT_LEAST64_MIN; |
| 5473 | uint_least8_t d1 = UINT8_C (0xff); |
| 5474 | uint_least8_t d1max = UINT_LEAST8_MAX; |
| 5475 | uint_least16_t d2 = UINT16_C (0xffff); |
| 5476 | uint_least16_t d2max = UINT_LEAST16_MAX; |
| 5477 | uint_least32_t d3 = UINT32_C (0xffffffff); |
| 5478 | uint_least32_t d3max = UINT_LEAST32_MAX; |
| 5479 | uint_least64_t d4 = UINT64_C (0xffffffffffffffff); |
| 5480 | uint_least64_t d4max = UINT_LEAST64_MAX; |
| 5481 | int_fast8_t e1 = INT_FAST8_MAX; |
| 5482 | int_fast8_t e1min = INT_FAST8_MIN; |
| 5483 | int_fast16_t e2 = INT_FAST16_MAX; |
| 5484 | int_fast16_t e2min = INT_FAST16_MIN; |
| 5485 | int_fast32_t e3 = INT_FAST32_MAX; |
| 5486 | int_fast32_t e3min = INT_FAST32_MIN; |
| 5487 | int_fast64_t e4 = INT_FAST64_MAX; |
| 5488 | int_fast64_t e4min = INT_FAST64_MIN; |
| 5489 | uint_fast8_t f1 = UINT_FAST8_MAX; |
| 5490 | uint_fast16_t f2 = UINT_FAST16_MAX; |
| 5491 | uint_fast32_t f3 = UINT_FAST32_MAX; |
| 5492 | uint_fast64_t f4 = UINT_FAST64_MAX; |
| 5493 | #ifdef INTPTR_MAX |
| 5494 | intptr_t g = INTPTR_MAX; |
| 5495 | intptr_t gmin = INTPTR_MIN; |
| 5496 | #endif |
| 5497 | #ifdef UINTPTR_MAX |
| 5498 | uintptr_t h = UINTPTR_MAX; |
| 5499 | #endif |
| 5500 | intmax_t i = INTMAX_MAX; |
| 5501 | uintmax_t j = UINTMAX_MAX; |
| 5502 | |
| 5503 | #include <limits.h> /* for CHAR_BIT */ |
| 5504 | #define TYPE_MINIMUM(t) \ |
| 5505 | ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) |
| 5506 | #define TYPE_MAXIMUM(t) \ |
| 5507 | ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) |
| 5508 | struct s { |
| 5509 | int check_PTRDIFF: |
| 5510 | PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) |
| 5511 | && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) |
| 5512 | ? 1 : -1; |
| 5513 | /* Detect bug in FreeBSD 6.0 / ia64. */ |
| 5514 | int check_SIG_ATOMIC: |
| 5515 | SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) |
| 5516 | && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) |
| 5517 | ? 1 : -1; |
| 5518 | int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; |
| 5519 | int check_WCHAR: |
| 5520 | WCHAR_MIN == TYPE_MINIMUM (wchar_t) |
| 5521 | && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) |
| 5522 | ? 1 : -1; |
| 5523 | /* Detect bug in mingw. */ |
| 5524 | int check_WINT: |
| 5525 | WINT_MIN == TYPE_MINIMUM (wint_t) |
| 5526 | && WINT_MAX == TYPE_MAXIMUM (wint_t) |
| 5527 | ? 1 : -1; |
| 5528 | |
| 5529 | /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ |
| 5530 | int check_UINT8_C: |
| 5531 | (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; |
| 5532 | int check_UINT16_C: |
| 5533 | (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; |
| 5534 | |
| 5535 | /* Detect bugs in OpenBSD 3.9 stdint.h. */ |
| 5536 | #ifdef UINT8_MAX |
| 5537 | int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; |
| 5538 | #endif |
| 5539 | #ifdef UINT16_MAX |
| 5540 | int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; |
| 5541 | #endif |
| 5542 | #ifdef UINT32_MAX |
| 5543 | int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; |
| 5544 | #endif |
| 5545 | #ifdef UINT64_MAX |
| 5546 | int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; |
| 5547 | #endif |
| 5548 | int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; |
| 5549 | int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; |
| 5550 | int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; |
| 5551 | int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; |
| 5552 | int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; |
| 5553 | int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; |
| 5554 | int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; |
| 5555 | int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; |
| 5556 | int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; |
| 5557 | int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; |
| 5558 | int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; |
| 5559 | }; |
| 5560 | |
| 5561 | int |
| 5562 | main () |
| 5563 | { |
| 5564 | |
| 5565 | ; |
| 5566 | return 0; |
| 5567 | } |
| 5568 | _ACEOF |
| 5569 | rm -f conftest.$ac_objext |
| 5570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5571 | (eval $ac_compile) 2>conftest.er1 |
| 5572 | ac_status=$? |
| 5573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5574 | rm -f conftest.er1 |
| 5575 | cat conftest.err >&5 |
| 5576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5577 | (exit $ac_status); } && |
| 5578 | { ac_try='test -z "$ac_c_werror_flag" |
| 5579 | || test ! -s conftest.err' |
| 5580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5581 | (eval $ac_try) 2>&5 |
| 5582 | ac_status=$? |
| 5583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5584 | (exit $ac_status); }; } && |
| 5585 | { ac_try='test -s conftest.$ac_objext' |
| 5586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5587 | (eval $ac_try) 2>&5 |
| 5588 | ac_status=$? |
| 5589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5590 | (exit $ac_status); }; }; then |
| 5591 | gl_cv_header_working_stdint_h=yes |
| 5592 | else |
| 5593 | echo "$as_me: failed program was:" >&5 |
| 5594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5595 | |
| 5596 | fi |
| 5597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5598 | fi |
| 5599 | echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5 |
| 5600 | echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6 |
| 5601 | fi |
| 5602 | if test "$gl_cv_header_working_stdint_h" = yes; then |
| 5603 | STDINT_H= |
| 5604 | else |
| 5605 | |
| 5606 | |
| 5607 | for ac_header in sys/inttypes.h sys/bitypes.h |
| 5608 | do |
| 5609 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5610 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5611 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5612 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5613 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5615 | fi |
| 5616 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5617 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5618 | else |
| 5619 | # Is the header compilable? |
| 5620 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5621 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5622 | cat >conftest.$ac_ext <<_ACEOF |
| 5623 | /* confdefs.h. */ |
| 5624 | _ACEOF |
| 5625 | cat confdefs.h >>conftest.$ac_ext |
| 5626 | cat >>conftest.$ac_ext <<_ACEOF |
| 5627 | /* end confdefs.h. */ |
| 5628 | $ac_includes_default |
| 5629 | #include <$ac_header> |
| 5630 | _ACEOF |
| 5631 | rm -f conftest.$ac_objext |
| 5632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5633 | (eval $ac_compile) 2>conftest.er1 |
| 5634 | ac_status=$? |
| 5635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5636 | rm -f conftest.er1 |
| 5637 | cat conftest.err >&5 |
| 5638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5639 | (exit $ac_status); } && |
| 5640 | { ac_try='test -z "$ac_c_werror_flag" |
| 5641 | || test ! -s conftest.err' |
| 5642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5643 | (eval $ac_try) 2>&5 |
| 5644 | ac_status=$? |
| 5645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5646 | (exit $ac_status); }; } && |
| 5647 | { ac_try='test -s conftest.$ac_objext' |
| 5648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5649 | (eval $ac_try) 2>&5 |
| 5650 | ac_status=$? |
| 5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5652 | (exit $ac_status); }; }; then |
| 5653 | ac_header_compiler=yes |
| 5654 | else |
| 5655 | echo "$as_me: failed program was:" >&5 |
| 5656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5657 | |
| 5658 | ac_header_compiler=no |
| 5659 | fi |
| 5660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5661 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5662 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5663 | |
| 5664 | # Is the header present? |
| 5665 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5666 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5667 | cat >conftest.$ac_ext <<_ACEOF |
| 5668 | /* confdefs.h. */ |
| 5669 | _ACEOF |
| 5670 | cat confdefs.h >>conftest.$ac_ext |
| 5671 | cat >>conftest.$ac_ext <<_ACEOF |
| 5672 | /* end confdefs.h. */ |
| 5673 | #include <$ac_header> |
| 5674 | _ACEOF |
| 5675 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5676 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5677 | ac_status=$? |
| 5678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5679 | rm -f conftest.er1 |
| 5680 | cat conftest.err >&5 |
| 5681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5682 | (exit $ac_status); } >/dev/null; then |
| 5683 | if test -s conftest.err; then |
| 5684 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5685 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5686 | else |
| 5687 | ac_cpp_err= |
| 5688 | fi |
| 5689 | else |
| 5690 | ac_cpp_err=yes |
| 5691 | fi |
| 5692 | if test -z "$ac_cpp_err"; then |
| 5693 | ac_header_preproc=yes |
| 5694 | else |
| 5695 | echo "$as_me: failed program was:" >&5 |
| 5696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5697 | |
| 5698 | ac_header_preproc=no |
| 5699 | fi |
| 5700 | rm -f conftest.err conftest.$ac_ext |
| 5701 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5702 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5703 | |
| 5704 | # So? What about this header? |
| 5705 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5706 | yes:no: ) |
| 5707 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5708 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5709 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5710 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5711 | ac_header_preproc=yes |
| 5712 | ;; |
| 5713 | no:yes:* ) |
| 5714 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5715 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5716 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5717 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5718 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5719 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5720 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5721 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5722 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5723 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5724 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5725 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 5726 | ( |
| 5727 | cat <<\_ASBOX |
| 5728 | ## ------------------------------------------ ## |
| 5729 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 5730 | ## ------------------------------------------ ## |
| 5731 | _ASBOX |
| 5732 | ) | |
| 5733 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5734 | ;; |
| 5735 | esac |
| 5736 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5737 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5738 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5740 | else |
| 5741 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5742 | fi |
| 5743 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5744 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5745 | |
| 5746 | fi |
| 5747 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5748 | cat >>confdefs.h <<_ACEOF |
| 5749 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5750 | _ACEOF |
| 5751 | |
| 5752 | fi |
| 5753 | |
| 5754 | done |
| 5755 | |
| 5756 | if test $ac_cv_header_sys_inttypes_h = yes; then |
| 5757 | HAVE_SYS_INTTYPES_H=1 |
| 5758 | else |
| 5759 | HAVE_SYS_INTTYPES_H=0 |
| 5760 | fi |
| 5761 | |
| 5762 | if test $ac_cv_header_sys_bitypes_h = yes; then |
| 5763 | HAVE_SYS_BITYPES_H=1 |
| 5764 | else |
| 5765 | HAVE_SYS_BITYPES_H=0 |
| 5766 | fi |
| 5767 | |
| 5768 | |
| 5769 | |
| 5770 | : |
| 5771 | |
| 5772 | |
| 5773 | |
| 5774 | |
| 5775 | |
| 5776 | |
| 5777 | |
| 5778 | |
| 5779 | |
| 5780 | |
| 5781 | |
| 5782 | |
| 5783 | |
| 5784 | |
| 5785 | for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do |
| 5786 | echo "$as_me:$LINENO: checking for bit size of $gltype" >&5 |
| 5787 | echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6 |
| 5788 | if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then |
| 5789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5790 | else |
| 5791 | if test "$cross_compiling" = yes; then |
| 5792 | # Depending upon the size, compute the lo and hi bounds. |
| 5793 | cat >conftest.$ac_ext <<_ACEOF |
| 5794 | /* confdefs.h. */ |
| 5795 | _ACEOF |
| 5796 | cat confdefs.h >>conftest.$ac_ext |
| 5797 | cat >>conftest.$ac_ext <<_ACEOF |
| 5798 | /* end confdefs.h. */ |
| 5799 | |
| 5800 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5801 | included before <wchar.h>. */ |
| 5802 | #include <stddef.h> |
| 5803 | #include <signal.h> |
| 5804 | #if HAVE_WCHAR_H |
| 5805 | # include <stdio.h> |
| 5806 | # include <time.h> |
| 5807 | # include <wchar.h> |
| 5808 | #endif |
| 5809 | |
| 5810 | #include <limits.h> |
| 5811 | int |
| 5812 | main () |
| 5813 | { |
| 5814 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)]; |
| 5815 | test_array [0] = 0 |
| 5816 | |
| 5817 | ; |
| 5818 | return 0; |
| 5819 | } |
| 5820 | _ACEOF |
| 5821 | rm -f conftest.$ac_objext |
| 5822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5823 | (eval $ac_compile) 2>conftest.er1 |
| 5824 | ac_status=$? |
| 5825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5826 | rm -f conftest.er1 |
| 5827 | cat conftest.err >&5 |
| 5828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5829 | (exit $ac_status); } && |
| 5830 | { ac_try='test -z "$ac_c_werror_flag" |
| 5831 | || test ! -s conftest.err' |
| 5832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5833 | (eval $ac_try) 2>&5 |
| 5834 | ac_status=$? |
| 5835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5836 | (exit $ac_status); }; } && |
| 5837 | { ac_try='test -s conftest.$ac_objext' |
| 5838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5839 | (eval $ac_try) 2>&5 |
| 5840 | ac_status=$? |
| 5841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5842 | (exit $ac_status); }; }; then |
| 5843 | ac_lo=0 ac_mid=0 |
| 5844 | while :; do |
| 5845 | cat >conftest.$ac_ext <<_ACEOF |
| 5846 | /* confdefs.h. */ |
| 5847 | _ACEOF |
| 5848 | cat confdefs.h >>conftest.$ac_ext |
| 5849 | cat >>conftest.$ac_ext <<_ACEOF |
| 5850 | /* end confdefs.h. */ |
| 5851 | |
| 5852 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5853 | included before <wchar.h>. */ |
| 5854 | #include <stddef.h> |
| 5855 | #include <signal.h> |
| 5856 | #if HAVE_WCHAR_H |
| 5857 | # include <stdio.h> |
| 5858 | # include <time.h> |
| 5859 | # include <wchar.h> |
| 5860 | #endif |
| 5861 | |
| 5862 | #include <limits.h> |
| 5863 | int |
| 5864 | main () |
| 5865 | { |
| 5866 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; |
| 5867 | test_array [0] = 0 |
| 5868 | |
| 5869 | ; |
| 5870 | return 0; |
| 5871 | } |
| 5872 | _ACEOF |
| 5873 | rm -f conftest.$ac_objext |
| 5874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5875 | (eval $ac_compile) 2>conftest.er1 |
| 5876 | ac_status=$? |
| 5877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5878 | rm -f conftest.er1 |
| 5879 | cat conftest.err >&5 |
| 5880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5881 | (exit $ac_status); } && |
| 5882 | { ac_try='test -z "$ac_c_werror_flag" |
| 5883 | || test ! -s conftest.err' |
| 5884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5885 | (eval $ac_try) 2>&5 |
| 5886 | ac_status=$? |
| 5887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5888 | (exit $ac_status); }; } && |
| 5889 | { ac_try='test -s conftest.$ac_objext' |
| 5890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5891 | (eval $ac_try) 2>&5 |
| 5892 | ac_status=$? |
| 5893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5894 | (exit $ac_status); }; }; then |
| 5895 | ac_hi=$ac_mid; break |
| 5896 | else |
| 5897 | echo "$as_me: failed program was:" >&5 |
| 5898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5899 | |
| 5900 | ac_lo=`expr $ac_mid + 1` |
| 5901 | if test $ac_lo -le $ac_mid; then |
| 5902 | ac_lo= ac_hi= |
| 5903 | break |
| 5904 | fi |
| 5905 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5906 | fi |
| 5907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5908 | done |
| 5909 | else |
| 5910 | echo "$as_me: failed program was:" >&5 |
| 5911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5912 | |
| 5913 | cat >conftest.$ac_ext <<_ACEOF |
| 5914 | /* confdefs.h. */ |
| 5915 | _ACEOF |
| 5916 | cat confdefs.h >>conftest.$ac_ext |
| 5917 | cat >>conftest.$ac_ext <<_ACEOF |
| 5918 | /* end confdefs.h. */ |
| 5919 | |
| 5920 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5921 | included before <wchar.h>. */ |
| 5922 | #include <stddef.h> |
| 5923 | #include <signal.h> |
| 5924 | #if HAVE_WCHAR_H |
| 5925 | # include <stdio.h> |
| 5926 | # include <time.h> |
| 5927 | # include <wchar.h> |
| 5928 | #endif |
| 5929 | |
| 5930 | #include <limits.h> |
| 5931 | int |
| 5932 | main () |
| 5933 | { |
| 5934 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)]; |
| 5935 | test_array [0] = 0 |
| 5936 | |
| 5937 | ; |
| 5938 | return 0; |
| 5939 | } |
| 5940 | _ACEOF |
| 5941 | rm -f conftest.$ac_objext |
| 5942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5943 | (eval $ac_compile) 2>conftest.er1 |
| 5944 | ac_status=$? |
| 5945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5946 | rm -f conftest.er1 |
| 5947 | cat conftest.err >&5 |
| 5948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5949 | (exit $ac_status); } && |
| 5950 | { ac_try='test -z "$ac_c_werror_flag" |
| 5951 | || test ! -s conftest.err' |
| 5952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5953 | (eval $ac_try) 2>&5 |
| 5954 | ac_status=$? |
| 5955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5956 | (exit $ac_status); }; } && |
| 5957 | { ac_try='test -s conftest.$ac_objext' |
| 5958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5959 | (eval $ac_try) 2>&5 |
| 5960 | ac_status=$? |
| 5961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5962 | (exit $ac_status); }; }; then |
| 5963 | ac_hi=-1 ac_mid=-1 |
| 5964 | while :; do |
| 5965 | cat >conftest.$ac_ext <<_ACEOF |
| 5966 | /* confdefs.h. */ |
| 5967 | _ACEOF |
| 5968 | cat confdefs.h >>conftest.$ac_ext |
| 5969 | cat >>conftest.$ac_ext <<_ACEOF |
| 5970 | /* end confdefs.h. */ |
| 5971 | |
| 5972 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 5973 | included before <wchar.h>. */ |
| 5974 | #include <stddef.h> |
| 5975 | #include <signal.h> |
| 5976 | #if HAVE_WCHAR_H |
| 5977 | # include <stdio.h> |
| 5978 | # include <time.h> |
| 5979 | # include <wchar.h> |
| 5980 | #endif |
| 5981 | |
| 5982 | #include <limits.h> |
| 5983 | int |
| 5984 | main () |
| 5985 | { |
| 5986 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)]; |
| 5987 | test_array [0] = 0 |
| 5988 | |
| 5989 | ; |
| 5990 | return 0; |
| 5991 | } |
| 5992 | _ACEOF |
| 5993 | rm -f conftest.$ac_objext |
| 5994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5995 | (eval $ac_compile) 2>conftest.er1 |
| 5996 | ac_status=$? |
| 5997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5998 | rm -f conftest.er1 |
| 5999 | cat conftest.err >&5 |
| 6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6001 | (exit $ac_status); } && |
| 6002 | { ac_try='test -z "$ac_c_werror_flag" |
| 6003 | || test ! -s conftest.err' |
| 6004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6005 | (eval $ac_try) 2>&5 |
| 6006 | ac_status=$? |
| 6007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6008 | (exit $ac_status); }; } && |
| 6009 | { ac_try='test -s conftest.$ac_objext' |
| 6010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6011 | (eval $ac_try) 2>&5 |
| 6012 | ac_status=$? |
| 6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6014 | (exit $ac_status); }; }; then |
| 6015 | ac_lo=$ac_mid; break |
| 6016 | else |
| 6017 | echo "$as_me: failed program was:" >&5 |
| 6018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6019 | |
| 6020 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6021 | if test $ac_mid -le $ac_hi; then |
| 6022 | ac_lo= ac_hi= |
| 6023 | break |
| 6024 | fi |
| 6025 | ac_mid=`expr 2 '*' $ac_mid` |
| 6026 | fi |
| 6027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6028 | done |
| 6029 | else |
| 6030 | echo "$as_me: failed program was:" >&5 |
| 6031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6032 | |
| 6033 | ac_lo= ac_hi= |
| 6034 | fi |
| 6035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6036 | fi |
| 6037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6038 | # Binary search between lo and hi bounds. |
| 6039 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6040 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6041 | cat >conftest.$ac_ext <<_ACEOF |
| 6042 | /* confdefs.h. */ |
| 6043 | _ACEOF |
| 6044 | cat confdefs.h >>conftest.$ac_ext |
| 6045 | cat >>conftest.$ac_ext <<_ACEOF |
| 6046 | /* end confdefs.h. */ |
| 6047 | |
| 6048 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 6049 | included before <wchar.h>. */ |
| 6050 | #include <stddef.h> |
| 6051 | #include <signal.h> |
| 6052 | #if HAVE_WCHAR_H |
| 6053 | # include <stdio.h> |
| 6054 | # include <time.h> |
| 6055 | # include <wchar.h> |
| 6056 | #endif |
| 6057 | |
| 6058 | #include <limits.h> |
| 6059 | int |
| 6060 | main () |
| 6061 | { |
| 6062 | static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; |
| 6063 | test_array [0] = 0 |
| 6064 | |
| 6065 | ; |
| 6066 | return 0; |
| 6067 | } |
| 6068 | _ACEOF |
| 6069 | rm -f conftest.$ac_objext |
| 6070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6071 | (eval $ac_compile) 2>conftest.er1 |
| 6072 | ac_status=$? |
| 6073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6074 | rm -f conftest.er1 |
| 6075 | cat conftest.err >&5 |
| 6076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6077 | (exit $ac_status); } && |
| 6078 | { ac_try='test -z "$ac_c_werror_flag" |
| 6079 | || test ! -s conftest.err' |
| 6080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6081 | (eval $ac_try) 2>&5 |
| 6082 | ac_status=$? |
| 6083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6084 | (exit $ac_status); }; } && |
| 6085 | { ac_try='test -s conftest.$ac_objext' |
| 6086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6087 | (eval $ac_try) 2>&5 |
| 6088 | ac_status=$? |
| 6089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6090 | (exit $ac_status); }; }; then |
| 6091 | ac_hi=$ac_mid |
| 6092 | else |
| 6093 | echo "$as_me: failed program was:" >&5 |
| 6094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6095 | |
| 6096 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6097 | fi |
| 6098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6099 | done |
| 6100 | case $ac_lo in |
| 6101 | ?*) result=$ac_lo;; |
| 6102 | '') result=unknown ;; |
| 6103 | esac |
| 6104 | else |
| 6105 | if test "$cross_compiling" = yes; then |
| 6106 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 6107 | echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6108 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6109 | See \`config.log' for more details." >&5 |
| 6110 | echo "$as_me: error: cannot run test program while cross compiling |
| 6111 | See \`config.log' for more details." >&2;} |
| 6112 | { (exit 1); exit 1; }; }; } |
| 6113 | else |
| 6114 | cat >conftest.$ac_ext <<_ACEOF |
| 6115 | /* confdefs.h. */ |
| 6116 | _ACEOF |
| 6117 | cat confdefs.h >>conftest.$ac_ext |
| 6118 | cat >>conftest.$ac_ext <<_ACEOF |
| 6119 | /* end confdefs.h. */ |
| 6120 | |
| 6121 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 6122 | included before <wchar.h>. */ |
| 6123 | #include <stddef.h> |
| 6124 | #include <signal.h> |
| 6125 | #if HAVE_WCHAR_H |
| 6126 | # include <stdio.h> |
| 6127 | # include <time.h> |
| 6128 | # include <wchar.h> |
| 6129 | #endif |
| 6130 | |
| 6131 | #include <limits.h> |
| 6132 | long longval () { return sizeof ($gltype) * CHAR_BIT; } |
| 6133 | unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; } |
| 6134 | #include <stdio.h> |
| 6135 | #include <stdlib.h> |
| 6136 | int |
| 6137 | main () |
| 6138 | { |
| 6139 | |
| 6140 | FILE *f = fopen ("conftest.val", "w"); |
| 6141 | if (! f) |
| 6142 | exit (1); |
| 6143 | if ((sizeof ($gltype) * CHAR_BIT) < 0) |
| 6144 | { |
| 6145 | long i = longval (); |
| 6146 | if (i != (sizeof ($gltype) * CHAR_BIT)) |
| 6147 | exit (1); |
| 6148 | fprintf (f, "%ld\n", i); |
| 6149 | } |
| 6150 | else |
| 6151 | { |
| 6152 | unsigned long i = ulongval (); |
| 6153 | if (i != (sizeof ($gltype) * CHAR_BIT)) |
| 6154 | exit (1); |
| 6155 | fprintf (f, "%lu\n", i); |
| 6156 | } |
| 6157 | exit (ferror (f) || fclose (f) != 0); |
| 6158 | |
| 6159 | ; |
| 6160 | return 0; |
| 6161 | } |
| 6162 | _ACEOF |
| 6163 | rm -f conftest$ac_exeext |
| 6164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6165 | (eval $ac_link) 2>&5 |
| 6166 | ac_status=$? |
| 6167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6168 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6170 | (eval $ac_try) 2>&5 |
| 6171 | ac_status=$? |
| 6172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6173 | (exit $ac_status); }; }; then |
| 6174 | result=`cat conftest.val` |
| 6175 | else |
| 6176 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6177 | echo "$as_me: failed program was:" >&5 |
| 6178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6179 | |
| 6180 | ( exit $ac_status ) |
| 6181 | result=unknown |
| 6182 | fi |
| 6183 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6184 | fi |
| 6185 | fi |
| 6186 | rm -f conftest.val |
| 6187 | eval gl_cv_bitsizeof_${gltype}=\$result |
| 6188 | |
| 6189 | fi |
| 6190 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5 |
| 6191 | echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6 |
| 6192 | eval result=\$gl_cv_bitsizeof_${gltype} |
| 6193 | if test $result = unknown; then |
| 6194 | result=0 |
| 6195 | fi |
| 6196 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 6197 | cat >>confdefs.h <<_ACEOF |
| 6198 | #define BITSIZEOF_${GLTYPE} $result |
| 6199 | _ACEOF |
| 6200 | |
| 6201 | eval BITSIZEOF_${GLTYPE}=\$result |
| 6202 | done |
| 6203 | |
| 6204 | |
| 6205 | |
| 6206 | |
| 6207 | |
| 6208 | |
| 6209 | |
| 6210 | for gltype in sig_atomic_t wchar_t wint_t ; do |
| 6211 | echo "$as_me:$LINENO: checking whether $gltype is signed" >&5 |
| 6212 | echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6 |
| 6213 | if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then |
| 6214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6215 | else |
| 6216 | cat >conftest.$ac_ext <<_ACEOF |
| 6217 | /* confdefs.h. */ |
| 6218 | _ACEOF |
| 6219 | cat confdefs.h >>conftest.$ac_ext |
| 6220 | cat >>conftest.$ac_ext <<_ACEOF |
| 6221 | /* end confdefs.h. */ |
| 6222 | |
| 6223 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 6224 | included before <wchar.h>. */ |
| 6225 | #include <stddef.h> |
| 6226 | #include <signal.h> |
| 6227 | #if HAVE_WCHAR_H |
| 6228 | # include <stdio.h> |
| 6229 | # include <time.h> |
| 6230 | # include <wchar.h> |
| 6231 | #endif |
| 6232 | |
| 6233 | int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; |
| 6234 | int |
| 6235 | main () |
| 6236 | { |
| 6237 | |
| 6238 | ; |
| 6239 | return 0; |
| 6240 | } |
| 6241 | _ACEOF |
| 6242 | rm -f conftest.$ac_objext |
| 6243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6244 | (eval $ac_compile) 2>conftest.er1 |
| 6245 | ac_status=$? |
| 6246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6247 | rm -f conftest.er1 |
| 6248 | cat conftest.err >&5 |
| 6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6250 | (exit $ac_status); } && |
| 6251 | { ac_try='test -z "$ac_c_werror_flag" |
| 6252 | || test ! -s conftest.err' |
| 6253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6254 | (eval $ac_try) 2>&5 |
| 6255 | ac_status=$? |
| 6256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6257 | (exit $ac_status); }; } && |
| 6258 | { ac_try='test -s conftest.$ac_objext' |
| 6259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6260 | (eval $ac_try) 2>&5 |
| 6261 | ac_status=$? |
| 6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6263 | (exit $ac_status); }; }; then |
| 6264 | result=yes |
| 6265 | else |
| 6266 | echo "$as_me: failed program was:" >&5 |
| 6267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6268 | |
| 6269 | result=no |
| 6270 | fi |
| 6271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6272 | eval gl_cv_type_${gltype}_signed=\$result |
| 6273 | |
| 6274 | fi |
| 6275 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5 |
| 6276 | echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6 |
| 6277 | eval result=\$gl_cv_type_${gltype}_signed |
| 6278 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 6279 | if test "$result" = yes; then |
| 6280 | cat >>confdefs.h <<_ACEOF |
| 6281 | #define HAVE_SIGNED_${GLTYPE} 1 |
| 6282 | _ACEOF |
| 6283 | |
| 6284 | eval HAVE_SIGNED_${GLTYPE}=1 |
| 6285 | else |
| 6286 | eval HAVE_SIGNED_${GLTYPE}=0 |
| 6287 | fi |
| 6288 | done |
| 6289 | |
| 6290 | |
| 6291 | gl_cv_type_ptrdiff_t_signed=yes |
| 6292 | gl_cv_type_size_t_signed=no |
| 6293 | |
| 6294 | |
| 6295 | |
| 6296 | |
| 6297 | |
| 6298 | |
| 6299 | |
| 6300 | for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do |
| 6301 | echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5 |
| 6302 | echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6 |
| 6303 | if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then |
| 6304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6305 | else |
| 6306 | eval gl_cv_type_${gltype}_suffix=no |
| 6307 | eval result=\$gl_cv_type_${gltype}_signed |
| 6308 | if test "$result" = yes; then |
| 6309 | glsufu= |
| 6310 | else |
| 6311 | glsufu=u |
| 6312 | fi |
| 6313 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 6314 | case $glsuf in |
| 6315 | '') gltype1='int';; |
| 6316 | l) gltype1='long int';; |
| 6317 | ll) gltype1='long long int';; |
| 6318 | i64) gltype1='__int64';; |
| 6319 | u) gltype1='unsigned int';; |
| 6320 | ul) gltype1='unsigned long int';; |
| 6321 | ull) gltype1='unsigned long long int';; |
| 6322 | ui64)gltype1='unsigned __int64';; |
| 6323 | esac |
| 6324 | cat >conftest.$ac_ext <<_ACEOF |
| 6325 | /* confdefs.h. */ |
| 6326 | _ACEOF |
| 6327 | cat confdefs.h >>conftest.$ac_ext |
| 6328 | cat >>conftest.$ac_ext <<_ACEOF |
| 6329 | /* end confdefs.h. */ |
| 6330 | |
| 6331 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 6332 | included before <wchar.h>. */ |
| 6333 | #include <stddef.h> |
| 6334 | #include <signal.h> |
| 6335 | #if HAVE_WCHAR_H |
| 6336 | # include <stdio.h> |
| 6337 | # include <time.h> |
| 6338 | # include <wchar.h> |
| 6339 | #endif |
| 6340 | |
| 6341 | extern $gltype foo; |
| 6342 | extern $gltype1 foo; |
| 6343 | int |
| 6344 | main () |
| 6345 | { |
| 6346 | |
| 6347 | ; |
| 6348 | return 0; |
| 6349 | } |
| 6350 | _ACEOF |
| 6351 | rm -f conftest.$ac_objext |
| 6352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6353 | (eval $ac_compile) 2>conftest.er1 |
| 6354 | ac_status=$? |
| 6355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6356 | rm -f conftest.er1 |
| 6357 | cat conftest.err >&5 |
| 6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6359 | (exit $ac_status); } && |
| 6360 | { ac_try='test -z "$ac_c_werror_flag" |
| 6361 | || test ! -s conftest.err' |
| 6362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6363 | (eval $ac_try) 2>&5 |
| 6364 | ac_status=$? |
| 6365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6366 | (exit $ac_status); }; } && |
| 6367 | { ac_try='test -s conftest.$ac_objext' |
| 6368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6369 | (eval $ac_try) 2>&5 |
| 6370 | ac_status=$? |
| 6371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6372 | (exit $ac_status); }; }; then |
| 6373 | eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 6374 | else |
| 6375 | echo "$as_me: failed program was:" >&5 |
| 6376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6377 | |
| 6378 | fi |
| 6379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6380 | eval result=\$gl_cv_type_${gltype}_suffix |
| 6381 | test "$result" != no && break |
| 6382 | done |
| 6383 | fi |
| 6384 | echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5 |
| 6385 | echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6 |
| 6386 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 6387 | eval result=\$gl_cv_type_${gltype}_suffix |
| 6388 | test "$result" = no && result= |
| 6389 | eval ${GLTYPE}_SUFFIX=\$result |
| 6390 | cat >>confdefs.h <<_ACEOF |
| 6391 | #define ${GLTYPE}_SUFFIX $result |
| 6392 | _ACEOF |
| 6393 | |
| 6394 | done |
| 6395 | |
| 6396 | |
| 6397 | |
| 6398 | STDINT_H=stdint.h |
| 6399 | fi |
| 6400 | |
| 6401 | |
| 6402 | |
| 6403 | |
| 6404 | |
| 6405 | |
| 6406 | |
| 6407 | echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5 |
| 6408 | echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6 |
| 6409 | if test "${gl_cv_header_wchar_h_standalone+set}" = set; then |
| 6410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6411 | else |
| 6412 | cat >conftest.$ac_ext <<_ACEOF |
| 6413 | #include <wchar.h> |
| 6414 | wchar_t w; |
| 6415 | _ACEOF |
| 6416 | rm -f conftest.$ac_objext |
| 6417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6418 | (eval $ac_compile) 2>conftest.er1 |
| 6419 | ac_status=$? |
| 6420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6421 | rm -f conftest.er1 |
| 6422 | cat conftest.err >&5 |
| 6423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6424 | (exit $ac_status); } && |
| 6425 | { ac_try='test -z "$ac_c_werror_flag" |
| 6426 | || test ! -s conftest.err' |
| 6427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6428 | (eval $ac_try) 2>&5 |
| 6429 | ac_status=$? |
| 6430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6431 | (exit $ac_status); }; } && |
| 6432 | { ac_try='test -s conftest.$ac_objext' |
| 6433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6434 | (eval $ac_try) 2>&5 |
| 6435 | ac_status=$? |
| 6436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6437 | (exit $ac_status); }; }; then |
| 6438 | gl_cv_header_wchar_h_standalone=yes |
| 6439 | else |
| 6440 | echo "$as_me: failed program was:" >&5 |
| 6441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6442 | |
| 6443 | gl_cv_header_wchar_h_standalone=no |
| 6444 | fi |
| 6445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6446 | fi |
| 6447 | echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5 |
| 6448 | echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6 |
| 6449 | if test $gl_cv_header_wchar_h_standalone != yes; then |
| 6450 | WCHAR_H=wchar.h |
| 6451 | fi |
| 6452 | |
| 6453 | |
| 6454 | : |
| 6455 | |
| 6456 | |
| 6457 | |
| 6458 | |
| 6459 | |
| 6460 | if test $ac_cv_header_wchar_h = yes; then |
| 6461 | HAVE_WCHAR_H=1 |
| 6462 | else |
| 6463 | HAVE_WCHAR_H=0 |
| 6464 | fi |
| 6465 | |
| 6466 | |
| 6467 | |
| 6468 | |
| 6469 | : |
| 6470 | |
| 6471 | |
| 6472 | |
| 6473 | |
| 6474 | |
| 6475 | |
| 6476 | |
| 6477 | if test $gl_cv_have_include_next = yes; then |
| 6478 | gl_cv_next_wchar_h='<'wchar.h'>' |
| 6479 | else |
| 6480 | echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5 |
| 6481 | echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6 |
| 6482 | if test "${gl_cv_next_wchar_h+set}" = set; then |
| 6483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6484 | else |
| 6485 | |
| 6486 | if test $ac_cv_header_wchar_h = yes; then |
| 6487 | cat >conftest.$ac_ext <<_ACEOF |
| 6488 | /* confdefs.h. */ |
| 6489 | _ACEOF |
| 6490 | cat confdefs.h >>conftest.$ac_ext |
| 6491 | cat >>conftest.$ac_ext <<_ACEOF |
| 6492 | /* end confdefs.h. */ |
| 6493 | #include <wchar.h> |
| 6494 | |
| 6495 | _ACEOF |
| 6496 | gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6497 | sed -n '\#/wchar.h#{ |
| 6498 | s#.*"\(.*/wchar.h\)".*#\1# |
| 6499 | s#^/[^/]#//&# |
| 6500 | p |
| 6501 | q |
| 6502 | }'`'"' |
| 6503 | else |
| 6504 | gl_cv_next_wchar_h='<'wchar.h'>' |
| 6505 | fi |
| 6506 | |
| 6507 | fi |
| 6508 | echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5 |
| 6509 | echo "${ECHO_T}$gl_cv_next_wchar_h" >&6 |
| 6510 | fi |
| 6511 | NEXT_WCHAR_H=$gl_cv_next_wchar_h |
| 6512 | |
| 6513 | |
| 6514 | |
| 6515 | |
| 6516 | |
| 6517 | |
| 6518 | |
| 6519 | |
| 6520 | gltests_libdeps= |
| 6521 | gltests_ltlibdeps= |
| 6522 | |
| 6523 | |
| 6524 | |
| 6525 | gl_source_base='tests' |
| 6526 | |
| 6527 | |
| 6528 | |
| 6529 | |
| 6530 | LIBGNU_LIBDEPS="$gl_libdeps" |
| 6531 | |
| 6532 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" |
| 6533 | |
| 6534 | |
| 6535 | |
| 6536 | # For Makefile dependencies. |
| 6537 | GNULIB_STDINT_H= |
| 6538 | if test x"$STDINT_H" != x; then |
| 6539 | GNULIB_STDINT_H=gnulib/$STDINT_H |
| 6540 | fi |
| 6541 | |
| 6542 | |
| 6543 | PACKAGE=gdb |
| 6544 | |
| 6545 | cat >>confdefs.h <<_ACEOF |
| 6546 | #define PACKAGE "$PACKAGE" |
| 6547 | _ACEOF |
| 6548 | |
| 6549 | |
| 6550 | |
| 6551 | # GDB does not use automake, but gnulib does. This line lets us |
| 6552 | # generate its Makefile.in. |
| 6553 | am__api_version="1.9" |
| 6554 | # Find a good install program. We prefer a C program (faster), |
| 6555 | # so one script is as good as another. But avoid the broken or |
| 6556 | # incompatible versions: |
| 6557 | # SysV /etc/install, /usr/sbin/install |
| 6558 | # SunOS /usr/etc/install |
| 6559 | # IRIX /sbin/install |
| 6560 | # AIX /bin/install |
| 6561 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6562 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6563 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6564 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 6565 | # OS/2's system install, which has a completely different semantic |
| 6566 | # ./install, which can be erroneously created by make from ./install.sh. |
| 6567 | # Reject install programs that cannot install multiple files. |
| 6568 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 6569 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 6570 | if test -z "$INSTALL"; then |
| 6571 | if test "${ac_cv_path_install+set}" = set; then |
| 6572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6573 | else |
| 6574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6575 | for as_dir in $PATH |
| 6576 | do |
| 6577 | IFS=$as_save_IFS |
| 6578 | test -z "$as_dir" && as_dir=. |
| 6579 | # Account for people who put trailing slashes in PATH elements. |
| 6580 | case $as_dir/ in |
| 6581 | ./ | .// | /cC/* | \ |
| 6582 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 6583 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 6584 | /usr/ucb/* ) ;; |
| 6585 | *) |
| 6586 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6587 | # Don't use installbsd from OSF since it installs stuff as root |
| 6588 | # by default. |
| 6589 | for ac_prog in ginstall scoinst install; do |
| 6590 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6591 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 6592 | if test $ac_prog = install && |
| 6593 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6594 | # AIX install. It has an incompatible calling convention. |
| 6595 | : |
| 6596 | elif test $ac_prog = install && |
| 6597 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6598 | # program-specific install script used by HP pwplus--don't use. |
| 6599 | : |
| 6600 | else |
| 6601 | rm -rf conftest.one conftest.two conftest.dir |
| 6602 | echo one > conftest.one |
| 6603 | echo two > conftest.two |
| 6604 | mkdir conftest.dir |
| 6605 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 6606 | test -s conftest.one && test -s conftest.two && |
| 6607 | test -s conftest.dir/conftest.one && |
| 6608 | test -s conftest.dir/conftest.two |
| 6609 | then |
| 6610 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6611 | break 3 |
| 6612 | fi |
| 6613 | fi |
| 6614 | fi |
| 6615 | done |
| 6616 | done |
| 6617 | ;; |
| 6618 | esac |
| 6619 | done |
| 6620 | |
| 6621 | rm -rf conftest.one conftest.two conftest.dir |
| 6622 | |
| 6623 | fi |
| 6624 | if test "${ac_cv_path_install+set}" = set; then |
| 6625 | INSTALL=$ac_cv_path_install |
| 6626 | else |
| 6627 | # As a last resort, use the slow shell script. Don't cache a |
| 6628 | # value for INSTALL within a source directory, because that will |
| 6629 | # break other packages using the cache if that directory is |
| 6630 | # removed, or if the value is a relative name. |
| 6631 | INSTALL=$ac_install_sh |
| 6632 | fi |
| 6633 | fi |
| 6634 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 6635 | echo "${ECHO_T}$INSTALL" >&6 |
| 6636 | |
| 6637 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6638 | # It thinks the first close brace ends the variable substitution. |
| 6639 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6640 | |
| 6641 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 6642 | |
| 6643 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6644 | |
| 6645 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 6646 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 6647 | # Just in case |
| 6648 | sleep 1 |
| 6649 | echo timestamp > conftest.file |
| 6650 | # Do `set' in a subshell so we don't clobber the current shell's |
| 6651 | # arguments. Must try -L first in case configure is actually a |
| 6652 | # symlink; some systems play weird games with the mod time of symlinks |
| 6653 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 6654 | # directory). |
| 6655 | if ( |
| 6656 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 6657 | if test "$*" = "X"; then |
| 6658 | # -L didn't work. |
| 6659 | set X `ls -t $srcdir/configure conftest.file` |
| 6660 | fi |
| 6661 | rm -f conftest.file |
| 6662 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 6663 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 6664 | |
| 6665 | # If neither matched, then we have a broken ls. This can happen |
| 6666 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 6667 | # broken ls alias from the environment. This has actually |
| 6668 | # happened. Such a system could not be considered "sane". |
| 6669 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 6670 | alias in your environment" >&5 |
| 6671 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 6672 | alias in your environment" >&2;} |
| 6673 | { (exit 1); exit 1; }; } |
| 6674 | fi |
| 6675 | |
| 6676 | test "$2" = conftest.file |
| 6677 | ) |
| 6678 | then |
| 6679 | # Ok. |
| 6680 | : |
| 6681 | else |
| 6682 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 6683 | Check your system clock" >&5 |
| 6684 | echo "$as_me: error: newly created file is older than distributed files! |
| 6685 | Check your system clock" >&2;} |
| 6686 | { (exit 1); exit 1; }; } |
| 6687 | fi |
| 6688 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6689 | echo "${ECHO_T}yes" >&6 |
| 6690 | test "$program_prefix" != NONE && |
| 6691 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 6692 | # Use a double $ so make ignores it. |
| 6693 | test "$program_suffix" != NONE && |
| 6694 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 6695 | # Double any \ or $. echo might interpret backslashes. |
| 6696 | # By default was `s,x,x', remove it if useless. |
| 6697 | cat <<\_ACEOF >conftest.sed |
| 6698 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 6699 | _ACEOF |
| 6700 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 6701 | rm conftest.sed |
| 6702 | |
| 6703 | # expand $ac_aux_dir to an absolute path |
| 6704 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 6705 | |
| 6706 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 6707 | # Use eval to expand $SHELL |
| 6708 | if eval "$MISSING --run true"; then |
| 6709 | am_missing_run="$MISSING --run " |
| 6710 | else |
| 6711 | am_missing_run= |
| 6712 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 6713 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 6714 | fi |
| 6715 | |
| 6716 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
| 6717 | # We used to keeping the `.' as first argument, in order to |
| 6718 | # allow $(mkdir_p) to be used without argument. As in |
| 6719 | # $(mkdir_p) $(somedir) |
| 6720 | # where $(somedir) is conditionally defined. However this is wrong |
| 6721 | # for two reasons: |
| 6722 | # 1. if the package is installed by a user who cannot write `.' |
| 6723 | # make install will fail, |
| 6724 | # 2. the above comment should most certainly read |
| 6725 | # $(mkdir_p) $(DESTDIR)$(somedir) |
| 6726 | # so it does not work when $(somedir) is undefined and |
| 6727 | # $(DESTDIR) is not. |
| 6728 | # To support the latter case, we have to write |
| 6729 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 6730 | # so the `.' trick is pointless. |
| 6731 | mkdir_p='mkdir -p --' |
| 6732 | else |
| 6733 | # On NextStep and OpenStep, the `mkdir' command does not |
| 6734 | # recognize any option. It will interpret all options as |
| 6735 | # directories to create, and then abort because `.' already |
| 6736 | # exists. |
| 6737 | for d in ./-p ./--version; |
| 6738 | do |
| 6739 | test -d $d && rmdir $d |
| 6740 | done |
| 6741 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 6742 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 6743 | mkdir_p='$(mkinstalldirs)' |
| 6744 | else |
| 6745 | mkdir_p='$(install_sh) -d' |
| 6746 | fi |
| 6747 | fi |
| 6748 | |
| 6749 | for ac_prog in gawk mawk nawk awk |
| 6750 | do |
| 6751 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6752 | set dummy $ac_prog; ac_word=$2 |
| 6753 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6755 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 6756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6757 | else |
| 6758 | if test -n "$AWK"; then |
| 6759 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 6760 | else |
| 6761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6762 | for as_dir in $PATH |
| 6763 | do |
| 6764 | IFS=$as_save_IFS |
| 6765 | test -z "$as_dir" && as_dir=. |
| 6766 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6767 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6768 | ac_cv_prog_AWK="$ac_prog" |
| 6769 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6770 | break 2 |
| 6771 | fi |
| 6772 | done |
| 6773 | done |
| 6774 | |
| 6775 | fi |
| 6776 | fi |
| 6777 | AWK=$ac_cv_prog_AWK |
| 6778 | if test -n "$AWK"; then |
| 6779 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 6780 | echo "${ECHO_T}$AWK" >&6 |
| 6781 | else |
| 6782 | echo "$as_me:$LINENO: result: no" >&5 |
| 6783 | echo "${ECHO_T}no" >&6 |
| 6784 | fi |
| 6785 | |
| 6786 | test -n "$AWK" && break |
| 6787 | done |
| 6788 | |
| 6789 | ac_config_commands="$ac_config_commands depfiles" |
| 6790 | |
| 6791 | |
| 6792 | am_make=${MAKE-make} |
| 6793 | cat > confinc << 'END' |
| 6794 | am__doit: |
| 6795 | @echo done |
| 6796 | .PHONY: am__doit |
| 6797 | END |
| 6798 | # If we don't find an include directive, just comment out the code. |
| 6799 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 6800 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 6801 | am__include="#" |
| 6802 | am__quote= |
| 6803 | _am_result=none |
| 6804 | # First try GNU make style include. |
| 6805 | echo "include confinc" > confmf |
| 6806 | # We grep out `Entering directory' and `Leaving directory' |
| 6807 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 6808 | # In particular we don't look at `^make:' because GNU make might |
| 6809 | # be invoked under some other name (usually "gmake"), in which |
| 6810 | # case it prints its new name instead of `make'. |
| 6811 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 6812 | am__include=include |
| 6813 | am__quote= |
| 6814 | _am_result=GNU |
| 6815 | fi |
| 6816 | # Now try BSD make style include. |
| 6817 | if test "$am__include" = "#"; then |
| 6818 | echo '.include "confinc"' > confmf |
| 6819 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 6820 | am__include=.include |
| 6821 | am__quote="\"" |
| 6822 | _am_result=BSD |
| 6823 | fi |
| 6824 | fi |
| 6825 | |
| 6826 | |
| 6827 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 6828 | echo "${ECHO_T}$_am_result" >&6 |
| 6829 | rm -f confinc confmf |
| 6830 | |
| 6831 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 6832 | if test "${enable_dependency_tracking+set}" = set; then |
| 6833 | enableval="$enable_dependency_tracking" |
| 6834 | |
| 6835 | fi; |
| 6836 | if test "x$enable_dependency_tracking" != xno; then |
| 6837 | am_depcomp="$ac_aux_dir/depcomp" |
| 6838 | AMDEPBACKSLASH='\' |
| 6839 | fi |
| 6840 | |
| 6841 | |
| 6842 | if test "x$enable_dependency_tracking" != xno; then |
| 6843 | AMDEP_TRUE= |
| 6844 | AMDEP_FALSE='#' |
| 6845 | else |
| 6846 | AMDEP_TRUE='#' |
| 6847 | AMDEP_FALSE= |
| 6848 | fi |
| 6849 | |
| 6850 | |
| 6851 | |
| 6852 | # test to see if srcdir already configured |
| 6853 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 6854 | test -f $srcdir/config.status; then |
| 6855 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 6856 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 6857 | { (exit 1); exit 1; }; } |
| 6858 | fi |
| 6859 | |
| 6860 | # test whether we have cygpath |
| 6861 | if test -z "$CYGPATH_W"; then |
| 6862 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 6863 | CYGPATH_W='cygpath -w' |
| 6864 | else |
| 6865 | CYGPATH_W=echo |
| 6866 | fi |
| 6867 | fi |
| 6868 | |
| 6869 | |
| 6870 | # Define the identity of the package. |
| 6871 | PACKAGE=gdb |
| 6872 | VERSION=UNUSED-VERSION |
| 6873 | |
| 6874 | |
| 6875 | # Some tools Automake needs. |
| 6876 | |
| 6877 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 6878 | |
| 6879 | |
| 6880 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 6881 | |
| 6882 | |
| 6883 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 6884 | |
| 6885 | |
| 6886 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 6887 | |
| 6888 | |
| 6889 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 6890 | |
| 6891 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 6892 | |
| 6893 | # Installed binaries are usually stripped using `strip' when the user |
| 6894 | # run `make install-strip'. However `strip' might not be the right |
| 6895 | # tool to use in cross-compilation environments, therefore Automake |
| 6896 | # will honor the `STRIP' environment variable to overrule this program. |
| 6897 | if test "$cross_compiling" != no; then |
| 6898 | if test -n "$ac_tool_prefix"; then |
| 6899 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6900 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 6901 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6903 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 6904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6905 | else |
| 6906 | if test -n "$STRIP"; then |
| 6907 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6908 | else |
| 6909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6910 | for as_dir in $PATH |
| 6911 | do |
| 6912 | IFS=$as_save_IFS |
| 6913 | test -z "$as_dir" && as_dir=. |
| 6914 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6915 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6916 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6917 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6918 | break 2 |
| 6919 | fi |
| 6920 | done |
| 6921 | done |
| 6922 | |
| 6923 | fi |
| 6924 | fi |
| 6925 | STRIP=$ac_cv_prog_STRIP |
| 6926 | if test -n "$STRIP"; then |
| 6927 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 6928 | echo "${ECHO_T}$STRIP" >&6 |
| 6929 | else |
| 6930 | echo "$as_me:$LINENO: result: no" >&5 |
| 6931 | echo "${ECHO_T}no" >&6 |
| 6932 | fi |
| 6933 | |
| 6934 | fi |
| 6935 | if test -z "$ac_cv_prog_STRIP"; then |
| 6936 | ac_ct_STRIP=$STRIP |
| 6937 | # Extract the first word of "strip", so it can be a program name with args. |
| 6938 | set dummy strip; ac_word=$2 |
| 6939 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6941 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 6942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6943 | else |
| 6944 | if test -n "$ac_ct_STRIP"; then |
| 6945 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6946 | else |
| 6947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6948 | for as_dir in $PATH |
| 6949 | do |
| 6950 | IFS=$as_save_IFS |
| 6951 | test -z "$as_dir" && as_dir=. |
| 6952 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6953 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6954 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6955 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6956 | break 2 |
| 6957 | fi |
| 6958 | done |
| 6959 | done |
| 6960 | |
| 6961 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 6962 | fi |
| 6963 | fi |
| 6964 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6965 | if test -n "$ac_ct_STRIP"; then |
| 6966 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 6967 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 6968 | else |
| 6969 | echo "$as_me:$LINENO: result: no" >&5 |
| 6970 | echo "${ECHO_T}no" >&6 |
| 6971 | fi |
| 6972 | |
| 6973 | STRIP=$ac_ct_STRIP |
| 6974 | else |
| 6975 | STRIP="$ac_cv_prog_STRIP" |
| 6976 | fi |
| 6977 | |
| 6978 | fi |
| 6979 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 6980 | |
| 6981 | # We need awk for the "check" target. The system "awk" is bad on |
| 6982 | # some platforms. |
| 6983 | # Always define AMTAR for backward compatibility. |
| 6984 | |
| 6985 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 6986 | |
| 6987 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 6988 | |
| 6989 | |
| 6990 | |
| 6991 | |
| 6992 | depcc="$CC" am_compiler_list= |
| 6993 | |
| 6994 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 6995 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 6996 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 6997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6998 | else |
| 6999 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 7000 | # We make a subdir and do the tests there. Otherwise we can end up |
| 7001 | # making bogus files that we don't know about and never remove. For |
| 7002 | # instance it was reported that on HP-UX the gcc test will end up |
| 7003 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 7004 | # in D'. |
| 7005 | mkdir conftest.dir |
| 7006 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 7007 | # using a relative directory. |
| 7008 | cp "$am_depcomp" conftest.dir |
| 7009 | cd conftest.dir |
| 7010 | # We will build objects and dependencies in a subdirectory because |
| 7011 | # it helps to detect inapplicable dependency modes. For instance |
| 7012 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 7013 | # side effect of compilation, but ICC will put the dependencies in |
| 7014 | # the current directory while Tru64 will put them in the object |
| 7015 | # directory. |
| 7016 | mkdir sub |
| 7017 | |
| 7018 | am_cv_CC_dependencies_compiler_type=none |
| 7019 | if test "$am_compiler_list" = ""; then |
| 7020 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 7021 | fi |
| 7022 | for depmode in $am_compiler_list; do |
| 7023 | # Setup a source with many dependencies, because some compilers |
| 7024 | # like to wrap large dependency lists on column 80 (with \), and |
| 7025 | # we should not choose a depcomp mode which is confused by this. |
| 7026 | # |
| 7027 | # We need to recreate these files for each test, as the compiler may |
| 7028 | # overwrite some of them when testing with obscure command lines. |
| 7029 | # This happens at least with the AIX C compiler. |
| 7030 | : > sub/conftest.c |
| 7031 | for i in 1 2 3 4 5 6; do |
| 7032 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 7033 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 7034 | # Solaris 8's {/usr,}/bin/sh. |
| 7035 | touch sub/conftst$i.h |
| 7036 | done |
| 7037 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 7038 | |
| 7039 | case $depmode in |
| 7040 | nosideeffect) |
| 7041 | # after this tag, mechanisms are not by side-effect, so they'll |
| 7042 | # only be used when explicitly requested |
| 7043 | if test "x$enable_dependency_tracking" = xyes; then |
| 7044 | continue |
| 7045 | else |
| 7046 | break |
| 7047 | fi |
| 7048 | ;; |
| 7049 | none) break ;; |
| 7050 | esac |
| 7051 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 7052 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 7053 | # handle `-M -o', and we need to detect this. |
| 7054 | if depmode=$depmode \ |
| 7055 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 7056 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 7057 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 7058 | >/dev/null 2>conftest.err && |
| 7059 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 7060 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 7061 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 7062 | # icc doesn't choke on unknown options, it will just issue warnings |
| 7063 | # or remarks (even with -Werror). So we grep stderr for any message |
| 7064 | # that says an option was ignored or not supported. |
| 7065 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 7066 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 7067 | # The diagnosis changed in icc 8.0: |
| 7068 | # icc: Command line remark: option '-MP' not supported |
| 7069 | if (grep 'ignoring option' conftest.err || |
| 7070 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 7071 | am_cv_CC_dependencies_compiler_type=$depmode |
| 7072 | break |
| 7073 | fi |
| 7074 | fi |
| 7075 | done |
| 7076 | |
| 7077 | cd .. |
| 7078 | rm -rf conftest.dir |
| 7079 | else |
| 7080 | am_cv_CC_dependencies_compiler_type=none |
| 7081 | fi |
| 7082 | |
| 7083 | fi |
| 7084 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 7085 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 7086 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 7087 | |
| 7088 | |
| 7089 | |
| 7090 | if |
| 7091 | test "x$enable_dependency_tracking" != xno \ |
| 7092 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 7093 | am__fastdepCC_TRUE= |
| 7094 | am__fastdepCC_FALSE='#' |
| 7095 | else |
| 7096 | am__fastdepCC_TRUE='#' |
| 7097 | am__fastdepCC_FALSE= |
| 7098 | fi |
| 7099 | |
| 7100 | |
| 7101 | |
| 7102 | |
| 7103 | debugdir=${libdir}/debug |
| 7104 | |
| 7105 | |
| 7106 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
| 7107 | if test "${with_separate_debug_dir+set}" = set; then |
| 7108 | withval="$with_separate_debug_dir" |
| 7109 | debugdir="${withval}" |
| 7110 | fi; |
| 7111 | |
| 7112 | |
| 7113 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
| 7114 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7115 | ac_define_dir=`eval echo $debugdir` |
| 7116 | ac_define_dir=`eval echo $ac_define_dir` |
| 7117 | |
| 7118 | cat >>confdefs.h <<_ACEOF |
| 7119 | #define DEBUGDIR "$ac_define_dir" |
| 7120 | _ACEOF |
| 7121 | |
| 7122 | |
| 7123 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), |
| 7124 | |
| 7125 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
| 7126 | if test "x$prefix" = xNONE; then |
| 7127 | test_prefix=/usr/local |
| 7128 | else |
| 7129 | test_prefix=$prefix |
| 7130 | fi |
| 7131 | else |
| 7132 | test_prefix=$exec_prefix |
| 7133 | fi |
| 7134 | case ${debugdir} in |
| 7135 | "${test_prefix}"|"${test_prefix}/"*|\ |
| 7136 | '${exec_prefix}'|'${exec_prefix}/'*) |
| 7137 | |
| 7138 | cat >>confdefs.h <<\_ACEOF |
| 7139 | #define DEBUGDIR_RELOCATABLE 1 |
| 7140 | _ACEOF |
| 7141 | |
| 7142 | ;; |
| 7143 | esac |
| 7144 | |
| 7145 | |
| 7146 | # Check whether --with-relocated-sources or --without-relocated-sources was given. |
| 7147 | if test "${with_relocated_sources+set}" = set; then |
| 7148 | withval="$with_relocated_sources" |
| 7149 | reloc_srcdir="${withval}" |
| 7150 | |
| 7151 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
| 7152 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7153 | ac_define_dir=`eval echo $reloc_srcdir` |
| 7154 | ac_define_dir=`eval echo $ac_define_dir` |
| 7155 | |
| 7156 | cat >>confdefs.h <<_ACEOF |
| 7157 | #define RELOC_SRCDIR "$ac_define_dir" |
| 7158 | _ACEOF |
| 7159 | |
| 7160 | |
| 7161 | |
| 7162 | fi; |
| 7163 | |
| 7164 | |
| 7165 | |
| 7166 | subdirs="$subdirs doc testsuite" |
| 7167 | |
| 7168 | |
| 7169 | # Check whether to support alternative target configurations |
| 7170 | # Check whether --enable-targets or --disable-targets was given. |
| 7171 | if test "${enable_targets+set}" = set; then |
| 7172 | enableval="$enable_targets" |
| 7173 | case "${enableval}" in |
| 7174 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
| 7175 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} |
| 7176 | { (exit 1); exit 1; }; } |
| 7177 | ;; |
| 7178 | no) enable_targets= ;; |
| 7179 | *) enable_targets=$enableval ;; |
| 7180 | esac |
| 7181 | fi; |
| 7182 | |
| 7183 | # Check whether to enable 64-bit support on 32-bit hosts |
| 7184 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. |
| 7185 | if test "${enable_64_bit_bfd+set}" = set; then |
| 7186 | enableval="$enable_64_bit_bfd" |
| 7187 | case "${enableval}" in |
| 7188 | yes) want64=true ;; |
| 7189 | no) want64=false ;; |
| 7190 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 |
| 7191 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} |
| 7192 | { (exit 1); exit 1; }; } ;; |
| 7193 | esac |
| 7194 | else |
| 7195 | want64=false |
| 7196 | fi; |
| 7197 | # Provide defaults for some variables set by the per-host and per-target |
| 7198 | # configuration. |
| 7199 | gdb_host_obs=posix-hdep.o |
| 7200 | |
| 7201 | if test "${target}" = "${host}"; then |
| 7202 | gdb_native=yes |
| 7203 | else |
| 7204 | gdb_native=no |
| 7205 | fi |
| 7206 | |
| 7207 | . $srcdir/configure.host |
| 7208 | |
| 7209 | # Accumulate some settings from configure.tgt over all enabled targets |
| 7210 | |
| 7211 | TARGET_OBS= |
| 7212 | all_targets= |
| 7213 | |
| 7214 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
| 7215 | do |
| 7216 | if test "$targ_alias" = "all"; then |
| 7217 | all_targets=true |
| 7218 | else |
| 7219 | # Canonicalize the secondary target names. |
| 7220 | result=`$ac_config_sub $targ_alias 2>/dev/null` |
| 7221 | if test -n "$result"; then |
| 7222 | targ=$result |
| 7223 | else |
| 7224 | targ=$targ_alias |
| 7225 | fi |
| 7226 | |
| 7227 | . ${srcdir}/configure.tgt |
| 7228 | |
| 7229 | # Target-specific object files |
| 7230 | for i in ${gdb_target_obs}; do |
| 7231 | case " $TARGET_OBS " in |
| 7232 | *" ${i} "*) ;; |
| 7233 | *) |
| 7234 | TARGET_OBS="$TARGET_OBS ${i}" |
| 7235 | ;; |
| 7236 | esac |
| 7237 | done |
| 7238 | |
| 7239 | # Check whether this target needs 64-bit CORE_ADDR |
| 7240 | if test x${want64} = xfalse; then |
| 7241 | . ${srcdir}/../bfd/config.bfd |
| 7242 | fi |
| 7243 | fi |
| 7244 | done |
| 7245 | |
| 7246 | if test x${all_targets} = xtrue; then |
| 7247 | |
| 7248 | # We want all 64-bit targets if we either: |
| 7249 | # - run on a 64-bit host or |
| 7250 | # - already require 64-bit support for some other target or |
| 7251 | # - the --enable-64-bit-bfd option was supplied |
| 7252 | # Otherwise we only support all 32-bit targets. |
| 7253 | # |
| 7254 | # NOTE: This test must be in sync with the corresponding |
| 7255 | # tests in BFD! |
| 7256 | |
| 7257 | if test x${want64} = xfalse; then |
| 7258 | echo "$as_me:$LINENO: checking for long" >&5 |
| 7259 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 7260 | if test "${ac_cv_type_long+set}" = set; then |
| 7261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7262 | else |
| 7263 | cat >conftest.$ac_ext <<_ACEOF |
| 7264 | /* confdefs.h. */ |
| 7265 | _ACEOF |
| 7266 | cat confdefs.h >>conftest.$ac_ext |
| 7267 | cat >>conftest.$ac_ext <<_ACEOF |
| 7268 | /* end confdefs.h. */ |
| 7269 | $ac_includes_default |
| 7270 | int |
| 7271 | main () |
| 7272 | { |
| 7273 | if ((long *) 0) |
| 7274 | return 0; |
| 7275 | if (sizeof (long)) |
| 7276 | return 0; |
| 7277 | ; |
| 7278 | return 0; |
| 7279 | } |
| 7280 | _ACEOF |
| 7281 | rm -f conftest.$ac_objext |
| 7282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7283 | (eval $ac_compile) 2>conftest.er1 |
| 7284 | ac_status=$? |
| 7285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7286 | rm -f conftest.er1 |
| 7287 | cat conftest.err >&5 |
| 7288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7289 | (exit $ac_status); } && |
| 7290 | { ac_try='test -z "$ac_c_werror_flag" |
| 7291 | || test ! -s conftest.err' |
| 7292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7293 | (eval $ac_try) 2>&5 |
| 7294 | ac_status=$? |
| 7295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7296 | (exit $ac_status); }; } && |
| 7297 | { ac_try='test -s conftest.$ac_objext' |
| 7298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7299 | (eval $ac_try) 2>&5 |
| 7300 | ac_status=$? |
| 7301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7302 | (exit $ac_status); }; }; then |
| 7303 | ac_cv_type_long=yes |
| 7304 | else |
| 7305 | echo "$as_me: failed program was:" >&5 |
| 7306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7307 | |
| 7308 | ac_cv_type_long=no |
| 7309 | fi |
| 7310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7311 | fi |
| 7312 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 7313 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 7314 | |
| 7315 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 7316 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 7317 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 7318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7319 | else |
| 7320 | if test "$ac_cv_type_long" = yes; then |
| 7321 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7322 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7323 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7324 | # This bug is HP SR number 8606223364. |
| 7325 | if test "$cross_compiling" = yes; then |
| 7326 | # Depending upon the size, compute the lo and hi bounds. |
| 7327 | cat >conftest.$ac_ext <<_ACEOF |
| 7328 | /* confdefs.h. */ |
| 7329 | _ACEOF |
| 7330 | cat confdefs.h >>conftest.$ac_ext |
| 7331 | cat >>conftest.$ac_ext <<_ACEOF |
| 7332 | /* end confdefs.h. */ |
| 7333 | $ac_includes_default |
| 7334 | int |
| 7335 | main () |
| 7336 | { |
| 7337 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 7338 | test_array [0] = 0 |
| 7339 | |
| 7340 | ; |
| 7341 | return 0; |
| 7342 | } |
| 7343 | _ACEOF |
| 7344 | rm -f conftest.$ac_objext |
| 7345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7346 | (eval $ac_compile) 2>conftest.er1 |
| 7347 | ac_status=$? |
| 7348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7349 | rm -f conftest.er1 |
| 7350 | cat conftest.err >&5 |
| 7351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7352 | (exit $ac_status); } && |
| 7353 | { ac_try='test -z "$ac_c_werror_flag" |
| 7354 | || test ! -s conftest.err' |
| 7355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7356 | (eval $ac_try) 2>&5 |
| 7357 | ac_status=$? |
| 7358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7359 | (exit $ac_status); }; } && |
| 7360 | { ac_try='test -s conftest.$ac_objext' |
| 7361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7362 | (eval $ac_try) 2>&5 |
| 7363 | ac_status=$? |
| 7364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7365 | (exit $ac_status); }; }; then |
| 7366 | ac_lo=0 ac_mid=0 |
| 7367 | while :; do |
| 7368 | cat >conftest.$ac_ext <<_ACEOF |
| 7369 | /* confdefs.h. */ |
| 7370 | _ACEOF |
| 7371 | cat confdefs.h >>conftest.$ac_ext |
| 7372 | cat >>conftest.$ac_ext <<_ACEOF |
| 7373 | /* end confdefs.h. */ |
| 7374 | $ac_includes_default |
| 7375 | int |
| 7376 | main () |
| 7377 | { |
| 7378 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 7379 | test_array [0] = 0 |
| 7380 | |
| 7381 | ; |
| 7382 | return 0; |
| 7383 | } |
| 7384 | _ACEOF |
| 7385 | rm -f conftest.$ac_objext |
| 7386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7387 | (eval $ac_compile) 2>conftest.er1 |
| 7388 | ac_status=$? |
| 7389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7390 | rm -f conftest.er1 |
| 7391 | cat conftest.err >&5 |
| 7392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7393 | (exit $ac_status); } && |
| 7394 | { ac_try='test -z "$ac_c_werror_flag" |
| 7395 | || test ! -s conftest.err' |
| 7396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7397 | (eval $ac_try) 2>&5 |
| 7398 | ac_status=$? |
| 7399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7400 | (exit $ac_status); }; } && |
| 7401 | { ac_try='test -s conftest.$ac_objext' |
| 7402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7403 | (eval $ac_try) 2>&5 |
| 7404 | ac_status=$? |
| 7405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7406 | (exit $ac_status); }; }; then |
| 7407 | ac_hi=$ac_mid; break |
| 7408 | else |
| 7409 | echo "$as_me: failed program was:" >&5 |
| 7410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7411 | |
| 7412 | ac_lo=`expr $ac_mid + 1` |
| 7413 | if test $ac_lo -le $ac_mid; then |
| 7414 | ac_lo= ac_hi= |
| 7415 | break |
| 7416 | fi |
| 7417 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7418 | fi |
| 7419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7420 | done |
| 7421 | else |
| 7422 | echo "$as_me: failed program was:" >&5 |
| 7423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7424 | |
| 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 | int |
| 7433 | main () |
| 7434 | { |
| 7435 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 7436 | test_array [0] = 0 |
| 7437 | |
| 7438 | ; |
| 7439 | return 0; |
| 7440 | } |
| 7441 | _ACEOF |
| 7442 | rm -f conftest.$ac_objext |
| 7443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7444 | (eval $ac_compile) 2>conftest.er1 |
| 7445 | ac_status=$? |
| 7446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7447 | rm -f conftest.er1 |
| 7448 | cat conftest.err >&5 |
| 7449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7450 | (exit $ac_status); } && |
| 7451 | { ac_try='test -z "$ac_c_werror_flag" |
| 7452 | || test ! -s conftest.err' |
| 7453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7454 | (eval $ac_try) 2>&5 |
| 7455 | ac_status=$? |
| 7456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7457 | (exit $ac_status); }; } && |
| 7458 | { ac_try='test -s conftest.$ac_objext' |
| 7459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7460 | (eval $ac_try) 2>&5 |
| 7461 | ac_status=$? |
| 7462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7463 | (exit $ac_status); }; }; then |
| 7464 | ac_hi=-1 ac_mid=-1 |
| 7465 | while :; do |
| 7466 | cat >conftest.$ac_ext <<_ACEOF |
| 7467 | /* confdefs.h. */ |
| 7468 | _ACEOF |
| 7469 | cat confdefs.h >>conftest.$ac_ext |
| 7470 | cat >>conftest.$ac_ext <<_ACEOF |
| 7471 | /* end confdefs.h. */ |
| 7472 | $ac_includes_default |
| 7473 | int |
| 7474 | main () |
| 7475 | { |
| 7476 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 7477 | test_array [0] = 0 |
| 7478 | |
| 7479 | ; |
| 7480 | return 0; |
| 7481 | } |
| 7482 | _ACEOF |
| 7483 | rm -f conftest.$ac_objext |
| 7484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7485 | (eval $ac_compile) 2>conftest.er1 |
| 7486 | ac_status=$? |
| 7487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7488 | rm -f conftest.er1 |
| 7489 | cat conftest.err >&5 |
| 7490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7491 | (exit $ac_status); } && |
| 7492 | { ac_try='test -z "$ac_c_werror_flag" |
| 7493 | || test ! -s conftest.err' |
| 7494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7495 | (eval $ac_try) 2>&5 |
| 7496 | ac_status=$? |
| 7497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7498 | (exit $ac_status); }; } && |
| 7499 | { ac_try='test -s conftest.$ac_objext' |
| 7500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7501 | (eval $ac_try) 2>&5 |
| 7502 | ac_status=$? |
| 7503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7504 | (exit $ac_status); }; }; then |
| 7505 | ac_lo=$ac_mid; break |
| 7506 | else |
| 7507 | echo "$as_me: failed program was:" >&5 |
| 7508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7509 | |
| 7510 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7511 | if test $ac_mid -le $ac_hi; then |
| 7512 | ac_lo= ac_hi= |
| 7513 | break |
| 7514 | fi |
| 7515 | ac_mid=`expr 2 '*' $ac_mid` |
| 7516 | fi |
| 7517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7518 | done |
| 7519 | else |
| 7520 | echo "$as_me: failed program was:" >&5 |
| 7521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7522 | |
| 7523 | ac_lo= ac_hi= |
| 7524 | fi |
| 7525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7526 | fi |
| 7527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7528 | # Binary search between lo and hi bounds. |
| 7529 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7530 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7531 | cat >conftest.$ac_ext <<_ACEOF |
| 7532 | /* confdefs.h. */ |
| 7533 | _ACEOF |
| 7534 | cat confdefs.h >>conftest.$ac_ext |
| 7535 | cat >>conftest.$ac_ext <<_ACEOF |
| 7536 | /* end confdefs.h. */ |
| 7537 | $ac_includes_default |
| 7538 | int |
| 7539 | main () |
| 7540 | { |
| 7541 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 7542 | test_array [0] = 0 |
| 7543 | |
| 7544 | ; |
| 7545 | return 0; |
| 7546 | } |
| 7547 | _ACEOF |
| 7548 | rm -f conftest.$ac_objext |
| 7549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7550 | (eval $ac_compile) 2>conftest.er1 |
| 7551 | ac_status=$? |
| 7552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7553 | rm -f conftest.er1 |
| 7554 | cat conftest.err >&5 |
| 7555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7556 | (exit $ac_status); } && |
| 7557 | { ac_try='test -z "$ac_c_werror_flag" |
| 7558 | || test ! -s conftest.err' |
| 7559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7560 | (eval $ac_try) 2>&5 |
| 7561 | ac_status=$? |
| 7562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7563 | (exit $ac_status); }; } && |
| 7564 | { ac_try='test -s conftest.$ac_objext' |
| 7565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7566 | (eval $ac_try) 2>&5 |
| 7567 | ac_status=$? |
| 7568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7569 | (exit $ac_status); }; }; then |
| 7570 | ac_hi=$ac_mid |
| 7571 | else |
| 7572 | echo "$as_me: failed program was:" >&5 |
| 7573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7574 | |
| 7575 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7576 | fi |
| 7577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7578 | done |
| 7579 | case $ac_lo in |
| 7580 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 7581 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 7582 | echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7583 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 7584 | See \`config.log' for more details." >&5 |
| 7585 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 7586 | See \`config.log' for more details." >&2;} |
| 7587 | { (exit 1); exit 1; }; }; } ;; |
| 7588 | esac |
| 7589 | else |
| 7590 | if test "$cross_compiling" = yes; then |
| 7591 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 7592 | echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7593 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7594 | See \`config.log' for more details." >&5 |
| 7595 | echo "$as_me: error: cannot run test program while cross compiling |
| 7596 | See \`config.log' for more details." >&2;} |
| 7597 | { (exit 1); exit 1; }; }; } |
| 7598 | else |
| 7599 | cat >conftest.$ac_ext <<_ACEOF |
| 7600 | /* confdefs.h. */ |
| 7601 | _ACEOF |
| 7602 | cat confdefs.h >>conftest.$ac_ext |
| 7603 | cat >>conftest.$ac_ext <<_ACEOF |
| 7604 | /* end confdefs.h. */ |
| 7605 | $ac_includes_default |
| 7606 | long longval () { return (long) (sizeof (long)); } |
| 7607 | unsigned long ulongval () { return (long) (sizeof (long)); } |
| 7608 | #include <stdio.h> |
| 7609 | #include <stdlib.h> |
| 7610 | int |
| 7611 | main () |
| 7612 | { |
| 7613 | |
| 7614 | FILE *f = fopen ("conftest.val", "w"); |
| 7615 | if (! f) |
| 7616 | exit (1); |
| 7617 | if (((long) (sizeof (long))) < 0) |
| 7618 | { |
| 7619 | long i = longval (); |
| 7620 | if (i != ((long) (sizeof (long)))) |
| 7621 | exit (1); |
| 7622 | fprintf (f, "%ld\n", i); |
| 7623 | } |
| 7624 | else |
| 7625 | { |
| 7626 | unsigned long i = ulongval (); |
| 7627 | if (i != ((long) (sizeof (long)))) |
| 7628 | exit (1); |
| 7629 | fprintf (f, "%lu\n", i); |
| 7630 | } |
| 7631 | exit (ferror (f) || fclose (f) != 0); |
| 7632 | |
| 7633 | ; |
| 7634 | return 0; |
| 7635 | } |
| 7636 | _ACEOF |
| 7637 | rm -f conftest$ac_exeext |
| 7638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7639 | (eval $ac_link) 2>&5 |
| 7640 | ac_status=$? |
| 7641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7642 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7644 | (eval $ac_try) 2>&5 |
| 7645 | ac_status=$? |
| 7646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7647 | (exit $ac_status); }; }; then |
| 7648 | ac_cv_sizeof_long=`cat conftest.val` |
| 7649 | else |
| 7650 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7651 | echo "$as_me: failed program was:" >&5 |
| 7652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7653 | |
| 7654 | ( exit $ac_status ) |
| 7655 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 7656 | echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7657 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 7658 | See \`config.log' for more details." >&5 |
| 7659 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 7660 | See \`config.log' for more details." >&2;} |
| 7661 | { (exit 1); exit 1; }; }; } |
| 7662 | fi |
| 7663 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7664 | fi |
| 7665 | fi |
| 7666 | rm -f conftest.val |
| 7667 | else |
| 7668 | ac_cv_sizeof_long=0 |
| 7669 | fi |
| 7670 | fi |
| 7671 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 7672 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 7673 | cat >>confdefs.h <<_ACEOF |
| 7674 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 7675 | _ACEOF |
| 7676 | |
| 7677 | |
| 7678 | if test "x${ac_cv_sizeof_long}" = "x8"; then |
| 7679 | want64=true |
| 7680 | fi |
| 7681 | fi |
| 7682 | if test x${want64} = xtrue; then |
| 7683 | TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)' |
| 7684 | else |
| 7685 | TARGET_OBS='$(ALL_TARGET_OBS)' |
| 7686 | fi |
| 7687 | fi |
| 7688 | |
| 7689 | |
| 7690 | |
| 7691 | # For other settings, only the main target counts. |
| 7692 | gdb_sim= |
| 7693 | gdb_osabi= |
| 7694 | build_gdbserver= |
| 7695 | targ=$target; . ${srcdir}/configure.tgt |
| 7696 | |
| 7697 | # Fetch the default architecture and default target vector from BFD. |
| 7698 | targ=$target; . $srcdir/../bfd/config.bfd |
| 7699 | |
| 7700 | # We only want the first architecture, so strip off the others if |
| 7701 | # there is more than one. |
| 7702 | targ_archs=`echo $targ_archs | sed 's/ .*//'` |
| 7703 | |
| 7704 | if test "x$targ_archs" != x; then |
| 7705 | |
| 7706 | cat >>confdefs.h <<_ACEOF |
| 7707 | #define DEFAULT_BFD_ARCH $targ_archs |
| 7708 | _ACEOF |
| 7709 | |
| 7710 | fi |
| 7711 | if test "x$targ_defvec" != x; then |
| 7712 | |
| 7713 | cat >>confdefs.h <<_ACEOF |
| 7714 | #define DEFAULT_BFD_VEC $targ_defvec |
| 7715 | _ACEOF |
| 7716 | |
| 7717 | fi |
| 7718 | |
| 7719 | # The CLI cannot be disabled yet, but may be in the future. |
| 7720 | |
| 7721 | # Enable CLI. |
| 7722 | # Check whether --enable-gdbcli or --disable-gdbcli was given. |
| 7723 | if test "${enable_gdbcli+set}" = set; then |
| 7724 | enableval="$enable_gdbcli" |
| 7725 | case $enableval in |
| 7726 | yes) |
| 7727 | ;; |
| 7728 | no) |
| 7729 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 |
| 7730 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} |
| 7731 | { (exit 1); exit 1; }; } ;; |
| 7732 | *) |
| 7733 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 |
| 7734 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} |
| 7735 | { (exit 1); exit 1; }; } ;; |
| 7736 | esac |
| 7737 | else |
| 7738 | enable_gdbcli=yes |
| 7739 | fi; |
| 7740 | if test x"$enable_gdbcli" = xyes; then |
| 7741 | if test -d $srcdir/cli; then |
| 7742 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" |
| 7743 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" |
| 7744 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" |
| 7745 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" |
| 7746 | fi |
| 7747 | fi |
| 7748 | |
| 7749 | # Enable MI. |
| 7750 | # Check whether --enable-gdbmi or --disable-gdbmi was given. |
| 7751 | if test "${enable_gdbmi+set}" = set; then |
| 7752 | enableval="$enable_gdbmi" |
| 7753 | case $enableval in |
| 7754 | yes | no) |
| 7755 | ;; |
| 7756 | *) |
| 7757 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 |
| 7758 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} |
| 7759 | { (exit 1); exit 1; }; } ;; |
| 7760 | esac |
| 7761 | else |
| 7762 | enable_gdbmi=yes |
| 7763 | fi; |
| 7764 | if test x"$enable_gdbmi" = xyes; then |
| 7765 | if test -d $srcdir/mi; then |
| 7766 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" |
| 7767 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" |
| 7768 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" |
| 7769 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" |
| 7770 | fi |
| 7771 | fi |
| 7772 | |
| 7773 | # Enable TUI. |
| 7774 | # Check whether --enable-tui or --disable-tui was given. |
| 7775 | if test "${enable_tui+set}" = set; then |
| 7776 | enableval="$enable_tui" |
| 7777 | case $enableval in |
| 7778 | yes | no | auto) |
| 7779 | ;; |
| 7780 | *) |
| 7781 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 |
| 7782 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} |
| 7783 | { (exit 1); exit 1; }; } ;; |
| 7784 | esac |
| 7785 | else |
| 7786 | enable_tui=auto |
| 7787 | fi; |
| 7788 | |
| 7789 | # Enable gdbtk. |
| 7790 | # Check whether --enable-gdbtk or --disable-gdbtk was given. |
| 7791 | if test "${enable_gdbtk+set}" = set; then |
| 7792 | enableval="$enable_gdbtk" |
| 7793 | case $enableval in |
| 7794 | yes | no) |
| 7795 | ;; |
| 7796 | *) |
| 7797 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 |
| 7798 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} |
| 7799 | { (exit 1); exit 1; }; } ;; |
| 7800 | esac |
| 7801 | else |
| 7802 | if test -d $srcdir/gdbtk; then |
| 7803 | enable_gdbtk=yes |
| 7804 | else |
| 7805 | enable_gdbtk=no |
| 7806 | fi |
| 7807 | fi; |
| 7808 | # We unconditionally disable gdbtk tests on selected platforms. |
| 7809 | case $host_os in |
| 7810 | go32* | windows*) |
| 7811 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 |
| 7812 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} |
| 7813 | enable_gdbtk=no ;; |
| 7814 | esac |
| 7815 | |
| 7816 | # Libunwind support. |
| 7817 | |
| 7818 | # Check whether --with-libunwind or --without-libunwind was given. |
| 7819 | if test "${with_libunwind+set}" = set; then |
| 7820 | withval="$with_libunwind" |
| 7821 | case "${withval}" in |
| 7822 | yes) enable_libunwind=yes ;; |
| 7823 | no) enable_libunwind=no ;; |
| 7824 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 |
| 7825 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} |
| 7826 | { (exit 1); exit 1; }; } ;; |
| 7827 | esac |
| 7828 | else |
| 7829 | |
| 7830 | |
| 7831 | |
| 7832 | for ac_header in libunwind.h libunwind-ia64.h |
| 7833 | do |
| 7834 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7835 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7836 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7837 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7838 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7840 | fi |
| 7841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7842 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7843 | else |
| 7844 | # Is the header compilable? |
| 7845 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7846 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7847 | cat >conftest.$ac_ext <<_ACEOF |
| 7848 | /* confdefs.h. */ |
| 7849 | _ACEOF |
| 7850 | cat confdefs.h >>conftest.$ac_ext |
| 7851 | cat >>conftest.$ac_ext <<_ACEOF |
| 7852 | /* end confdefs.h. */ |
| 7853 | $ac_includes_default |
| 7854 | #include <$ac_header> |
| 7855 | _ACEOF |
| 7856 | rm -f conftest.$ac_objext |
| 7857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7858 | (eval $ac_compile) 2>conftest.er1 |
| 7859 | ac_status=$? |
| 7860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7861 | rm -f conftest.er1 |
| 7862 | cat conftest.err >&5 |
| 7863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7864 | (exit $ac_status); } && |
| 7865 | { ac_try='test -z "$ac_c_werror_flag" |
| 7866 | || test ! -s conftest.err' |
| 7867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7868 | (eval $ac_try) 2>&5 |
| 7869 | ac_status=$? |
| 7870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7871 | (exit $ac_status); }; } && |
| 7872 | { ac_try='test -s conftest.$ac_objext' |
| 7873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7874 | (eval $ac_try) 2>&5 |
| 7875 | ac_status=$? |
| 7876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7877 | (exit $ac_status); }; }; then |
| 7878 | ac_header_compiler=yes |
| 7879 | else |
| 7880 | echo "$as_me: failed program was:" >&5 |
| 7881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7882 | |
| 7883 | ac_header_compiler=no |
| 7884 | fi |
| 7885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7886 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7887 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7888 | |
| 7889 | # Is the header present? |
| 7890 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7891 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7892 | cat >conftest.$ac_ext <<_ACEOF |
| 7893 | /* confdefs.h. */ |
| 7894 | _ACEOF |
| 7895 | cat confdefs.h >>conftest.$ac_ext |
| 7896 | cat >>conftest.$ac_ext <<_ACEOF |
| 7897 | /* end confdefs.h. */ |
| 7898 | #include <$ac_header> |
| 7899 | _ACEOF |
| 7900 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7901 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7902 | ac_status=$? |
| 7903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7904 | rm -f conftest.er1 |
| 7905 | cat conftest.err >&5 |
| 7906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7907 | (exit $ac_status); } >/dev/null; then |
| 7908 | if test -s conftest.err; then |
| 7909 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7910 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7911 | else |
| 7912 | ac_cpp_err= |
| 7913 | fi |
| 7914 | else |
| 7915 | ac_cpp_err=yes |
| 7916 | fi |
| 7917 | if test -z "$ac_cpp_err"; then |
| 7918 | ac_header_preproc=yes |
| 7919 | else |
| 7920 | echo "$as_me: failed program was:" >&5 |
| 7921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7922 | |
| 7923 | ac_header_preproc=no |
| 7924 | fi |
| 7925 | rm -f conftest.err conftest.$ac_ext |
| 7926 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7927 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7928 | |
| 7929 | # So? What about this header? |
| 7930 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7931 | yes:no: ) |
| 7932 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7933 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7934 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7935 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7936 | ac_header_preproc=yes |
| 7937 | ;; |
| 7938 | no:yes:* ) |
| 7939 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7940 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7941 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7942 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7943 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7944 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7945 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7946 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7947 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7948 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7949 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7950 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7951 | ( |
| 7952 | cat <<\_ASBOX |
| 7953 | ## ------------------------------------------ ## |
| 7954 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 7955 | ## ------------------------------------------ ## |
| 7956 | _ASBOX |
| 7957 | ) | |
| 7958 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7959 | ;; |
| 7960 | esac |
| 7961 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7962 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7963 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7965 | else |
| 7966 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7967 | fi |
| 7968 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7969 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7970 | |
| 7971 | fi |
| 7972 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7973 | cat >>confdefs.h <<_ACEOF |
| 7974 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7975 | _ACEOF |
| 7976 | |
| 7977 | fi |
| 7978 | |
| 7979 | done |
| 7980 | |
| 7981 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then |
| 7982 | enable_libunwind=yes; |
| 7983 | fi |
| 7984 | |
| 7985 | fi; |
| 7986 | |
| 7987 | if test x"$enable_libunwind" = xyes; then |
| 7988 | |
| 7989 | |
| 7990 | for ac_header in libunwind.h libunwind-ia64.h |
| 7991 | do |
| 7992 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7993 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7994 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7996 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7998 | fi |
| 7999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8000 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8001 | else |
| 8002 | # Is the header compilable? |
| 8003 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8004 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8005 | cat >conftest.$ac_ext <<_ACEOF |
| 8006 | /* confdefs.h. */ |
| 8007 | _ACEOF |
| 8008 | cat confdefs.h >>conftest.$ac_ext |
| 8009 | cat >>conftest.$ac_ext <<_ACEOF |
| 8010 | /* end confdefs.h. */ |
| 8011 | $ac_includes_default |
| 8012 | #include <$ac_header> |
| 8013 | _ACEOF |
| 8014 | rm -f conftest.$ac_objext |
| 8015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8016 | (eval $ac_compile) 2>conftest.er1 |
| 8017 | ac_status=$? |
| 8018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8019 | rm -f conftest.er1 |
| 8020 | cat conftest.err >&5 |
| 8021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8022 | (exit $ac_status); } && |
| 8023 | { ac_try='test -z "$ac_c_werror_flag" |
| 8024 | || test ! -s conftest.err' |
| 8025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8026 | (eval $ac_try) 2>&5 |
| 8027 | ac_status=$? |
| 8028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8029 | (exit $ac_status); }; } && |
| 8030 | { ac_try='test -s conftest.$ac_objext' |
| 8031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8032 | (eval $ac_try) 2>&5 |
| 8033 | ac_status=$? |
| 8034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8035 | (exit $ac_status); }; }; then |
| 8036 | ac_header_compiler=yes |
| 8037 | else |
| 8038 | echo "$as_me: failed program was:" >&5 |
| 8039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8040 | |
| 8041 | ac_header_compiler=no |
| 8042 | fi |
| 8043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8044 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8045 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8046 | |
| 8047 | # Is the header present? |
| 8048 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8049 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8050 | cat >conftest.$ac_ext <<_ACEOF |
| 8051 | /* confdefs.h. */ |
| 8052 | _ACEOF |
| 8053 | cat confdefs.h >>conftest.$ac_ext |
| 8054 | cat >>conftest.$ac_ext <<_ACEOF |
| 8055 | /* end confdefs.h. */ |
| 8056 | #include <$ac_header> |
| 8057 | _ACEOF |
| 8058 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8059 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8060 | ac_status=$? |
| 8061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8062 | rm -f conftest.er1 |
| 8063 | cat conftest.err >&5 |
| 8064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8065 | (exit $ac_status); } >/dev/null; then |
| 8066 | if test -s conftest.err; then |
| 8067 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8068 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8069 | else |
| 8070 | ac_cpp_err= |
| 8071 | fi |
| 8072 | else |
| 8073 | ac_cpp_err=yes |
| 8074 | fi |
| 8075 | if test -z "$ac_cpp_err"; then |
| 8076 | ac_header_preproc=yes |
| 8077 | else |
| 8078 | echo "$as_me: failed program was:" >&5 |
| 8079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8080 | |
| 8081 | ac_header_preproc=no |
| 8082 | fi |
| 8083 | rm -f conftest.err conftest.$ac_ext |
| 8084 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8085 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8086 | |
| 8087 | # So? What about this header? |
| 8088 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8089 | yes:no: ) |
| 8090 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8091 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8092 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8093 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8094 | ac_header_preproc=yes |
| 8095 | ;; |
| 8096 | no:yes:* ) |
| 8097 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8098 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8099 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8100 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8101 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8102 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8103 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8104 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8105 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8106 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8107 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8108 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8109 | ( |
| 8110 | cat <<\_ASBOX |
| 8111 | ## ------------------------------------------ ## |
| 8112 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8113 | ## ------------------------------------------ ## |
| 8114 | _ASBOX |
| 8115 | ) | |
| 8116 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8117 | ;; |
| 8118 | esac |
| 8119 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8120 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8121 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8123 | else |
| 8124 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8125 | fi |
| 8126 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8127 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8128 | |
| 8129 | fi |
| 8130 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8131 | cat >>confdefs.h <<_ACEOF |
| 8132 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8133 | _ACEOF |
| 8134 | |
| 8135 | fi |
| 8136 | |
| 8137 | done |
| 8138 | |
| 8139 | |
| 8140 | cat >>confdefs.h <<\_ACEOF |
| 8141 | #define HAVE_LIBUNWIND 1 |
| 8142 | _ACEOF |
| 8143 | |
| 8144 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" |
| 8145 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" |
| 8146 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" |
| 8147 | fi |
| 8148 | |
| 8149 | opt_curses=no |
| 8150 | |
| 8151 | # Check whether --with-curses or --without-curses was given. |
| 8152 | if test "${with_curses+set}" = set; then |
| 8153 | withval="$with_curses" |
| 8154 | opt_curses=$withval |
| 8155 | fi; |
| 8156 | |
| 8157 | prefer_curses=no |
| 8158 | if test "$opt_curses" = "yes"; then |
| 8159 | prefer_curses=yes |
| 8160 | fi |
| 8161 | |
| 8162 | # Profiling support. |
| 8163 | # Check whether --enable-profiling or --disable-profiling was given. |
| 8164 | if test "${enable_profiling+set}" = set; then |
| 8165 | enableval="$enable_profiling" |
| 8166 | case $enableval in |
| 8167 | yes | no) |
| 8168 | ;; |
| 8169 | *) |
| 8170 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 |
| 8171 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} |
| 8172 | { (exit 1); exit 1; }; } ;; |
| 8173 | esac |
| 8174 | else |
| 8175 | enable_profiling=no |
| 8176 | fi; |
| 8177 | |
| 8178 | |
| 8179 | |
| 8180 | for ac_func in monstartup _mcleanup |
| 8181 | do |
| 8182 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8183 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8184 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8185 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8187 | else |
| 8188 | cat >conftest.$ac_ext <<_ACEOF |
| 8189 | /* confdefs.h. */ |
| 8190 | _ACEOF |
| 8191 | cat confdefs.h >>conftest.$ac_ext |
| 8192 | cat >>conftest.$ac_ext <<_ACEOF |
| 8193 | /* end confdefs.h. */ |
| 8194 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 8195 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8196 | #define $ac_func innocuous_$ac_func |
| 8197 | |
| 8198 | /* System header to define __stub macros and hopefully few prototypes, |
| 8199 | which can conflict with char $ac_func (); below. |
| 8200 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8201 | <limits.h> exists even on freestanding compilers. */ |
| 8202 | |
| 8203 | #ifdef __STDC__ |
| 8204 | # include <limits.h> |
| 8205 | #else |
| 8206 | # include <assert.h> |
| 8207 | #endif |
| 8208 | |
| 8209 | #undef $ac_func |
| 8210 | |
| 8211 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8212 | #ifdef __cplusplus |
| 8213 | extern "C" |
| 8214 | { |
| 8215 | #endif |
| 8216 | /* We use char because int might match the return type of a gcc2 |
| 8217 | builtin and then its argument prototype would still apply. */ |
| 8218 | char $ac_func (); |
| 8219 | /* The GNU C library defines this for functions which it implements |
| 8220 | to always fail with ENOSYS. Some functions are actually named |
| 8221 | something starting with __ and the normal name is an alias. */ |
| 8222 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8223 | choke me |
| 8224 | #else |
| 8225 | char (*f) () = $ac_func; |
| 8226 | #endif |
| 8227 | #ifdef __cplusplus |
| 8228 | } |
| 8229 | #endif |
| 8230 | |
| 8231 | int |
| 8232 | main () |
| 8233 | { |
| 8234 | return f != $ac_func; |
| 8235 | ; |
| 8236 | return 0; |
| 8237 | } |
| 8238 | _ACEOF |
| 8239 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8241 | (eval $ac_link) 2>conftest.er1 |
| 8242 | ac_status=$? |
| 8243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8244 | rm -f conftest.er1 |
| 8245 | cat conftest.err >&5 |
| 8246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8247 | (exit $ac_status); } && |
| 8248 | { ac_try='test -z "$ac_c_werror_flag" |
| 8249 | || test ! -s conftest.err' |
| 8250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8251 | (eval $ac_try) 2>&5 |
| 8252 | ac_status=$? |
| 8253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8254 | (exit $ac_status); }; } && |
| 8255 | { ac_try='test -s conftest$ac_exeext' |
| 8256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8257 | (eval $ac_try) 2>&5 |
| 8258 | ac_status=$? |
| 8259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8260 | (exit $ac_status); }; }; then |
| 8261 | eval "$as_ac_var=yes" |
| 8262 | else |
| 8263 | echo "$as_me: failed program was:" >&5 |
| 8264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8265 | |
| 8266 | eval "$as_ac_var=no" |
| 8267 | fi |
| 8268 | rm -f conftest.err conftest.$ac_objext \ |
| 8269 | conftest$ac_exeext conftest.$ac_ext |
| 8270 | fi |
| 8271 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8272 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8273 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8274 | cat >>confdefs.h <<_ACEOF |
| 8275 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8276 | _ACEOF |
| 8277 | |
| 8278 | fi |
| 8279 | done |
| 8280 | |
| 8281 | echo "$as_me:$LINENO: checking for _etext" >&5 |
| 8282 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 |
| 8283 | if test "${ac_cv_var__etext+set}" = set; then |
| 8284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8285 | else |
| 8286 | cat >conftest.$ac_ext <<_ACEOF |
| 8287 | /* confdefs.h. */ |
| 8288 | _ACEOF |
| 8289 | cat confdefs.h >>conftest.$ac_ext |
| 8290 | cat >>conftest.$ac_ext <<_ACEOF |
| 8291 | /* end confdefs.h. */ |
| 8292 | #include <stdlib.h> |
| 8293 | extern char _etext; |
| 8294 | |
| 8295 | int |
| 8296 | main () |
| 8297 | { |
| 8298 | free (&_etext); |
| 8299 | ; |
| 8300 | return 0; |
| 8301 | } |
| 8302 | _ACEOF |
| 8303 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8305 | (eval $ac_link) 2>conftest.er1 |
| 8306 | ac_status=$? |
| 8307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8308 | rm -f conftest.er1 |
| 8309 | cat conftest.err >&5 |
| 8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8311 | (exit $ac_status); } && |
| 8312 | { ac_try='test -z "$ac_c_werror_flag" |
| 8313 | || test ! -s conftest.err' |
| 8314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8315 | (eval $ac_try) 2>&5 |
| 8316 | ac_status=$? |
| 8317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8318 | (exit $ac_status); }; } && |
| 8319 | { ac_try='test -s conftest$ac_exeext' |
| 8320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8321 | (eval $ac_try) 2>&5 |
| 8322 | ac_status=$? |
| 8323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8324 | (exit $ac_status); }; }; then |
| 8325 | ac_cv_var__etext=yes |
| 8326 | else |
| 8327 | echo "$as_me: failed program was:" >&5 |
| 8328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8329 | |
| 8330 | ac_cv_var__etext=no |
| 8331 | fi |
| 8332 | rm -f conftest.err conftest.$ac_objext \ |
| 8333 | conftest$ac_exeext conftest.$ac_ext |
| 8334 | fi |
| 8335 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 |
| 8336 | echo "${ECHO_T}$ac_cv_var__etext" >&6 |
| 8337 | if test $ac_cv_var__etext = yes; then |
| 8338 | |
| 8339 | cat >>confdefs.h <<\_ACEOF |
| 8340 | #define HAVE__ETEXT 1 |
| 8341 | _ACEOF |
| 8342 | |
| 8343 | fi |
| 8344 | echo "$as_me:$LINENO: checking for etext" >&5 |
| 8345 | echo $ECHO_N "checking for etext... $ECHO_C" >&6 |
| 8346 | if test "${ac_cv_var_etext+set}" = set; then |
| 8347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8348 | else |
| 8349 | cat >conftest.$ac_ext <<_ACEOF |
| 8350 | /* confdefs.h. */ |
| 8351 | _ACEOF |
| 8352 | cat confdefs.h >>conftest.$ac_ext |
| 8353 | cat >>conftest.$ac_ext <<_ACEOF |
| 8354 | /* end confdefs.h. */ |
| 8355 | #include <stdlib.h> |
| 8356 | extern char etext; |
| 8357 | |
| 8358 | int |
| 8359 | main () |
| 8360 | { |
| 8361 | free (&etext); |
| 8362 | ; |
| 8363 | return 0; |
| 8364 | } |
| 8365 | _ACEOF |
| 8366 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8368 | (eval $ac_link) 2>conftest.er1 |
| 8369 | ac_status=$? |
| 8370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8371 | rm -f conftest.er1 |
| 8372 | cat conftest.err >&5 |
| 8373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8374 | (exit $ac_status); } && |
| 8375 | { ac_try='test -z "$ac_c_werror_flag" |
| 8376 | || test ! -s conftest.err' |
| 8377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8378 | (eval $ac_try) 2>&5 |
| 8379 | ac_status=$? |
| 8380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8381 | (exit $ac_status); }; } && |
| 8382 | { ac_try='test -s conftest$ac_exeext' |
| 8383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8384 | (eval $ac_try) 2>&5 |
| 8385 | ac_status=$? |
| 8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8387 | (exit $ac_status); }; }; then |
| 8388 | ac_cv_var_etext=yes |
| 8389 | else |
| 8390 | echo "$as_me: failed program was:" >&5 |
| 8391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8392 | |
| 8393 | ac_cv_var_etext=no |
| 8394 | fi |
| 8395 | rm -f conftest.err conftest.$ac_objext \ |
| 8396 | conftest$ac_exeext conftest.$ac_ext |
| 8397 | fi |
| 8398 | echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5 |
| 8399 | echo "${ECHO_T}$ac_cv_var_etext" >&6 |
| 8400 | if test $ac_cv_var_etext = yes; then |
| 8401 | |
| 8402 | cat >>confdefs.h <<\_ACEOF |
| 8403 | #define HAVE_ETEXT 1 |
| 8404 | _ACEOF |
| 8405 | |
| 8406 | fi |
| 8407 | if test "$enable_profiling" = yes ; then |
| 8408 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then |
| 8409 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 |
| 8410 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} |
| 8411 | { (exit 1); exit 1; }; } |
| 8412 | fi |
| 8413 | PROFILE_CFLAGS=-pg |
| 8414 | OLD_CFLAGS="$CFLAGS" |
| 8415 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" |
| 8416 | |
| 8417 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 |
| 8418 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 |
| 8419 | if test "${ac_cv_cc_supports_pg+set}" = set; then |
| 8420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8421 | else |
| 8422 | cat >conftest.$ac_ext <<_ACEOF |
| 8423 | /* confdefs.h. */ |
| 8424 | _ACEOF |
| 8425 | cat confdefs.h >>conftest.$ac_ext |
| 8426 | cat >>conftest.$ac_ext <<_ACEOF |
| 8427 | /* end confdefs.h. */ |
| 8428 | |
| 8429 | int |
| 8430 | main () |
| 8431 | { |
| 8432 | int x; |
| 8433 | ; |
| 8434 | return 0; |
| 8435 | } |
| 8436 | _ACEOF |
| 8437 | rm -f conftest.$ac_objext |
| 8438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8439 | (eval $ac_compile) 2>conftest.er1 |
| 8440 | ac_status=$? |
| 8441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8442 | rm -f conftest.er1 |
| 8443 | cat conftest.err >&5 |
| 8444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8445 | (exit $ac_status); } && |
| 8446 | { ac_try='test -z "$ac_c_werror_flag" |
| 8447 | || test ! -s conftest.err' |
| 8448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8449 | (eval $ac_try) 2>&5 |
| 8450 | ac_status=$? |
| 8451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8452 | (exit $ac_status); }; } && |
| 8453 | { ac_try='test -s conftest.$ac_objext' |
| 8454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8455 | (eval $ac_try) 2>&5 |
| 8456 | ac_status=$? |
| 8457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8458 | (exit $ac_status); }; }; then |
| 8459 | ac_cv_cc_supports_pg=yes |
| 8460 | else |
| 8461 | echo "$as_me: failed program was:" >&5 |
| 8462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8463 | |
| 8464 | ac_cv_cc_supports_pg=no |
| 8465 | fi |
| 8466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8467 | fi |
| 8468 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 |
| 8469 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 |
| 8470 | |
| 8471 | if test $ac_cv_cc_supports_pg = no; then |
| 8472 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 |
| 8473 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} |
| 8474 | { (exit 1); exit 1; }; } |
| 8475 | fi |
| 8476 | |
| 8477 | CFLAGS="$OLD_CFLAGS" |
| 8478 | fi |
| 8479 | |
| 8480 | |
| 8481 | |
| 8482 | # Check whether --with-pkgversion or --without-pkgversion was given. |
| 8483 | if test "${with_pkgversion+set}" = set; then |
| 8484 | withval="$with_pkgversion" |
| 8485 | case "$withval" in |
| 8486 | yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5 |
| 8487 | echo "$as_me: error: package version not specified" >&2;} |
| 8488 | { (exit 1); exit 1; }; } ;; |
| 8489 | no) PKGVERSION= ;; |
| 8490 | *) PKGVERSION="($withval) " ;; |
| 8491 | esac |
| 8492 | else |
| 8493 | PKGVERSION="(GDB) " |
| 8494 | |
| 8495 | fi; |
| 8496 | |
| 8497 | |
| 8498 | |
| 8499 | |
| 8500 | # Check whether --with-bugurl or --without-bugurl was given. |
| 8501 | if test "${with_bugurl+set}" = set; then |
| 8502 | withval="$with_bugurl" |
| 8503 | case "$withval" in |
| 8504 | yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5 |
| 8505 | echo "$as_me: error: bug URL not specified" >&2;} |
| 8506 | { (exit 1); exit 1; }; } ;; |
| 8507 | no) BUGURL= |
| 8508 | ;; |
| 8509 | *) BUGURL="$withval" |
| 8510 | ;; |
| 8511 | esac |
| 8512 | else |
| 8513 | BUGURL="http://www.gnu.org/software/gdb/bugs/" |
| 8514 | |
| 8515 | fi; |
| 8516 | case ${BUGURL} in |
| 8517 | "") |
| 8518 | REPORT_BUGS_TO= |
| 8519 | REPORT_BUGS_TEXI= |
| 8520 | ;; |
| 8521 | *) |
| 8522 | REPORT_BUGS_TO="<$BUGURL>" |
| 8523 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} |
| 8524 | ;; |
| 8525 | esac; |
| 8526 | |
| 8527 | |
| 8528 | |
| 8529 | |
| 8530 | cat >>confdefs.h <<_ACEOF |
| 8531 | #define PKGVERSION "$PKGVERSION" |
| 8532 | _ACEOF |
| 8533 | |
| 8534 | |
| 8535 | cat >>confdefs.h <<_ACEOF |
| 8536 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" |
| 8537 | _ACEOF |
| 8538 | |
| 8539 | |
| 8540 | # --------------------- # |
| 8541 | # Checks for programs. # |
| 8542 | # --------------------- # |
| 8543 | |
| 8544 | for ac_prog in gawk mawk nawk awk |
| 8545 | do |
| 8546 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8547 | set dummy $ac_prog; ac_word=$2 |
| 8548 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8550 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 8551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8552 | else |
| 8553 | if test -n "$AWK"; then |
| 8554 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 8555 | else |
| 8556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8557 | for as_dir in $PATH |
| 8558 | do |
| 8559 | IFS=$as_save_IFS |
| 8560 | test -z "$as_dir" && as_dir=. |
| 8561 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8562 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8563 | ac_cv_prog_AWK="$ac_prog" |
| 8564 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8565 | break 2 |
| 8566 | fi |
| 8567 | done |
| 8568 | done |
| 8569 | |
| 8570 | fi |
| 8571 | fi |
| 8572 | AWK=$ac_cv_prog_AWK |
| 8573 | if test -n "$AWK"; then |
| 8574 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 8575 | echo "${ECHO_T}$AWK" >&6 |
| 8576 | else |
| 8577 | echo "$as_me:$LINENO: result: no" >&5 |
| 8578 | echo "${ECHO_T}no" >&6 |
| 8579 | fi |
| 8580 | |
| 8581 | test -n "$AWK" && break |
| 8582 | done |
| 8583 | |
| 8584 | # Find a good install program. We prefer a C program (faster), |
| 8585 | # so one script is as good as another. But avoid the broken or |
| 8586 | # incompatible versions: |
| 8587 | # SysV /etc/install, /usr/sbin/install |
| 8588 | # SunOS /usr/etc/install |
| 8589 | # IRIX /sbin/install |
| 8590 | # AIX /bin/install |
| 8591 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 8592 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 8593 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 8594 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 8595 | # OS/2's system install, which has a completely different semantic |
| 8596 | # ./install, which can be erroneously created by make from ./install.sh. |
| 8597 | # Reject install programs that cannot install multiple files. |
| 8598 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 8599 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 8600 | if test -z "$INSTALL"; then |
| 8601 | if test "${ac_cv_path_install+set}" = set; then |
| 8602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8603 | else |
| 8604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8605 | for as_dir in $PATH |
| 8606 | do |
| 8607 | IFS=$as_save_IFS |
| 8608 | test -z "$as_dir" && as_dir=. |
| 8609 | # Account for people who put trailing slashes in PATH elements. |
| 8610 | case $as_dir/ in |
| 8611 | ./ | .// | /cC/* | \ |
| 8612 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 8613 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 8614 | /usr/ucb/* ) ;; |
| 8615 | *) |
| 8616 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 8617 | # Don't use installbsd from OSF since it installs stuff as root |
| 8618 | # by default. |
| 8619 | for ac_prog in ginstall scoinst install; do |
| 8620 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8621 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 8622 | if test $ac_prog = install && |
| 8623 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 8624 | # AIX install. It has an incompatible calling convention. |
| 8625 | : |
| 8626 | elif test $ac_prog = install && |
| 8627 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 8628 | # program-specific install script used by HP pwplus--don't use. |
| 8629 | : |
| 8630 | else |
| 8631 | rm -rf conftest.one conftest.two conftest.dir |
| 8632 | echo one > conftest.one |
| 8633 | echo two > conftest.two |
| 8634 | mkdir conftest.dir |
| 8635 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 8636 | test -s conftest.one && test -s conftest.two && |
| 8637 | test -s conftest.dir/conftest.one && |
| 8638 | test -s conftest.dir/conftest.two |
| 8639 | then |
| 8640 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 8641 | break 3 |
| 8642 | fi |
| 8643 | fi |
| 8644 | fi |
| 8645 | done |
| 8646 | done |
| 8647 | ;; |
| 8648 | esac |
| 8649 | done |
| 8650 | |
| 8651 | rm -rf conftest.one conftest.two conftest.dir |
| 8652 | |
| 8653 | fi |
| 8654 | if test "${ac_cv_path_install+set}" = set; then |
| 8655 | INSTALL=$ac_cv_path_install |
| 8656 | else |
| 8657 | # As a last resort, use the slow shell script. Don't cache a |
| 8658 | # value for INSTALL within a source directory, because that will |
| 8659 | # break other packages using the cache if that directory is |
| 8660 | # removed, or if the value is a relative name. |
| 8661 | INSTALL=$ac_install_sh |
| 8662 | fi |
| 8663 | fi |
| 8664 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 8665 | echo "${ECHO_T}$INSTALL" >&6 |
| 8666 | |
| 8667 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 8668 | # It thinks the first close brace ends the variable substitution. |
| 8669 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 8670 | |
| 8671 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 8672 | |
| 8673 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 8674 | |
| 8675 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 8676 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 8677 | LN_S=$as_ln_s |
| 8678 | if test "$LN_S" = "ln -s"; then |
| 8679 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8680 | echo "${ECHO_T}yes" >&6 |
| 8681 | else |
| 8682 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 8683 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 8684 | fi |
| 8685 | |
| 8686 | if test -n "$ac_tool_prefix"; then |
| 8687 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 8688 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 8689 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8691 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 8692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8693 | else |
| 8694 | if test -n "$RANLIB"; then |
| 8695 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 8696 | else |
| 8697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8698 | for as_dir in $PATH |
| 8699 | do |
| 8700 | IFS=$as_save_IFS |
| 8701 | test -z "$as_dir" && as_dir=. |
| 8702 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8703 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8704 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 8705 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8706 | break 2 |
| 8707 | fi |
| 8708 | done |
| 8709 | done |
| 8710 | |
| 8711 | fi |
| 8712 | fi |
| 8713 | RANLIB=$ac_cv_prog_RANLIB |
| 8714 | if test -n "$RANLIB"; then |
| 8715 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 8716 | echo "${ECHO_T}$RANLIB" >&6 |
| 8717 | else |
| 8718 | echo "$as_me:$LINENO: result: no" >&5 |
| 8719 | echo "${ECHO_T}no" >&6 |
| 8720 | fi |
| 8721 | |
| 8722 | fi |
| 8723 | if test -z "$ac_cv_prog_RANLIB"; then |
| 8724 | ac_ct_RANLIB=$RANLIB |
| 8725 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 8726 | set dummy ranlib; ac_word=$2 |
| 8727 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8729 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 8730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8731 | else |
| 8732 | if test -n "$ac_ct_RANLIB"; then |
| 8733 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 8734 | else |
| 8735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8736 | for as_dir in $PATH |
| 8737 | do |
| 8738 | IFS=$as_save_IFS |
| 8739 | test -z "$as_dir" && as_dir=. |
| 8740 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8742 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 8743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8744 | break 2 |
| 8745 | fi |
| 8746 | done |
| 8747 | done |
| 8748 | |
| 8749 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 8750 | fi |
| 8751 | fi |
| 8752 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 8753 | if test -n "$ac_ct_RANLIB"; then |
| 8754 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 8755 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 8756 | else |
| 8757 | echo "$as_me:$LINENO: result: no" >&5 |
| 8758 | echo "${ECHO_T}no" >&6 |
| 8759 | fi |
| 8760 | |
| 8761 | RANLIB=$ac_ct_RANLIB |
| 8762 | else |
| 8763 | RANLIB="$ac_cv_prog_RANLIB" |
| 8764 | fi |
| 8765 | |
| 8766 | for ac_prog in 'bison -y' byacc |
| 8767 | do |
| 8768 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8769 | set dummy $ac_prog; ac_word=$2 |
| 8770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8772 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 8773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8774 | else |
| 8775 | if test -n "$YACC"; then |
| 8776 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 8777 | else |
| 8778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8779 | for as_dir in $PATH |
| 8780 | do |
| 8781 | IFS=$as_save_IFS |
| 8782 | test -z "$as_dir" && as_dir=. |
| 8783 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8785 | ac_cv_prog_YACC="$ac_prog" |
| 8786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8787 | break 2 |
| 8788 | fi |
| 8789 | done |
| 8790 | done |
| 8791 | |
| 8792 | fi |
| 8793 | fi |
| 8794 | YACC=$ac_cv_prog_YACC |
| 8795 | if test -n "$YACC"; then |
| 8796 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 8797 | echo "${ECHO_T}$YACC" >&6 |
| 8798 | else |
| 8799 | echo "$as_me:$LINENO: result: no" >&5 |
| 8800 | echo "${ECHO_T}no" >&6 |
| 8801 | fi |
| 8802 | |
| 8803 | test -n "$YACC" && break |
| 8804 | done |
| 8805 | test -n "$YACC" || YACC="yacc" |
| 8806 | |
| 8807 | |
| 8808 | if test -n "$ac_tool_prefix"; then |
| 8809 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 8810 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 8811 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8813 | if test "${ac_cv_prog_AR+set}" = set; then |
| 8814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8815 | else |
| 8816 | if test -n "$AR"; then |
| 8817 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 8818 | else |
| 8819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8820 | for as_dir in $PATH |
| 8821 | do |
| 8822 | IFS=$as_save_IFS |
| 8823 | test -z "$as_dir" && as_dir=. |
| 8824 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8825 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8826 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 8827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8828 | break 2 |
| 8829 | fi |
| 8830 | done |
| 8831 | done |
| 8832 | |
| 8833 | fi |
| 8834 | fi |
| 8835 | AR=$ac_cv_prog_AR |
| 8836 | if test -n "$AR"; then |
| 8837 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 8838 | echo "${ECHO_T}$AR" >&6 |
| 8839 | else |
| 8840 | echo "$as_me:$LINENO: result: no" >&5 |
| 8841 | echo "${ECHO_T}no" >&6 |
| 8842 | fi |
| 8843 | |
| 8844 | fi |
| 8845 | if test -z "$ac_cv_prog_AR"; then |
| 8846 | ac_ct_AR=$AR |
| 8847 | # Extract the first word of "ar", so it can be a program name with args. |
| 8848 | set dummy ar; ac_word=$2 |
| 8849 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8851 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 8852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8853 | else |
| 8854 | if test -n "$ac_ct_AR"; then |
| 8855 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 8856 | else |
| 8857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8858 | for as_dir in $PATH |
| 8859 | do |
| 8860 | IFS=$as_save_IFS |
| 8861 | test -z "$as_dir" && as_dir=. |
| 8862 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8863 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8864 | ac_cv_prog_ac_ct_AR="ar" |
| 8865 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8866 | break 2 |
| 8867 | fi |
| 8868 | done |
| 8869 | done |
| 8870 | |
| 8871 | fi |
| 8872 | fi |
| 8873 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 8874 | if test -n "$ac_ct_AR"; then |
| 8875 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 8876 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 8877 | else |
| 8878 | echo "$as_me:$LINENO: result: no" >&5 |
| 8879 | echo "${ECHO_T}no" >&6 |
| 8880 | fi |
| 8881 | |
| 8882 | AR=$ac_ct_AR |
| 8883 | else |
| 8884 | AR="$ac_cv_prog_AR" |
| 8885 | fi |
| 8886 | |
| 8887 | if test -n "$ac_tool_prefix"; then |
| 8888 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 8889 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 8890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8892 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 8893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8894 | else |
| 8895 | if test -n "$DLLTOOL"; then |
| 8896 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 8897 | else |
| 8898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8899 | for as_dir in $PATH |
| 8900 | do |
| 8901 | IFS=$as_save_IFS |
| 8902 | test -z "$as_dir" && as_dir=. |
| 8903 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8904 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8905 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 8906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8907 | break 2 |
| 8908 | fi |
| 8909 | done |
| 8910 | done |
| 8911 | |
| 8912 | fi |
| 8913 | fi |
| 8914 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 8915 | if test -n "$DLLTOOL"; then |
| 8916 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 8917 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 8918 | else |
| 8919 | echo "$as_me:$LINENO: result: no" >&5 |
| 8920 | echo "${ECHO_T}no" >&6 |
| 8921 | fi |
| 8922 | |
| 8923 | fi |
| 8924 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 8925 | ac_ct_DLLTOOL=$DLLTOOL |
| 8926 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 8927 | set dummy dlltool; ac_word=$2 |
| 8928 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8930 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 8931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8932 | else |
| 8933 | if test -n "$ac_ct_DLLTOOL"; then |
| 8934 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 8935 | else |
| 8936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8937 | for as_dir in $PATH |
| 8938 | do |
| 8939 | IFS=$as_save_IFS |
| 8940 | test -z "$as_dir" && as_dir=. |
| 8941 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8942 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8943 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 8944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8945 | break 2 |
| 8946 | fi |
| 8947 | done |
| 8948 | done |
| 8949 | |
| 8950 | fi |
| 8951 | fi |
| 8952 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 8953 | if test -n "$ac_ct_DLLTOOL"; then |
| 8954 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 8955 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 |
| 8956 | else |
| 8957 | echo "$as_me:$LINENO: result: no" >&5 |
| 8958 | echo "${ECHO_T}no" >&6 |
| 8959 | fi |
| 8960 | |
| 8961 | DLLTOOL=$ac_ct_DLLTOOL |
| 8962 | else |
| 8963 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 8964 | fi |
| 8965 | |
| 8966 | if test -n "$ac_tool_prefix"; then |
| 8967 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 8968 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 8969 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8971 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 8972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8973 | else |
| 8974 | if test -n "$WINDRES"; then |
| 8975 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 8976 | else |
| 8977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8978 | for as_dir in $PATH |
| 8979 | do |
| 8980 | IFS=$as_save_IFS |
| 8981 | test -z "$as_dir" && as_dir=. |
| 8982 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8983 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8984 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 8985 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8986 | break 2 |
| 8987 | fi |
| 8988 | done |
| 8989 | done |
| 8990 | |
| 8991 | fi |
| 8992 | fi |
| 8993 | WINDRES=$ac_cv_prog_WINDRES |
| 8994 | if test -n "$WINDRES"; then |
| 8995 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 8996 | echo "${ECHO_T}$WINDRES" >&6 |
| 8997 | else |
| 8998 | echo "$as_me:$LINENO: result: no" >&5 |
| 8999 | echo "${ECHO_T}no" >&6 |
| 9000 | fi |
| 9001 | |
| 9002 | fi |
| 9003 | if test -z "$ac_cv_prog_WINDRES"; then |
| 9004 | ac_ct_WINDRES=$WINDRES |
| 9005 | # Extract the first word of "windres", so it can be a program name with args. |
| 9006 | set dummy windres; ac_word=$2 |
| 9007 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9009 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 9010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9011 | else |
| 9012 | if test -n "$ac_ct_WINDRES"; then |
| 9013 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 9014 | else |
| 9015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9016 | for as_dir in $PATH |
| 9017 | do |
| 9018 | IFS=$as_save_IFS |
| 9019 | test -z "$as_dir" && as_dir=. |
| 9020 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9021 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9022 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 9023 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9024 | break 2 |
| 9025 | fi |
| 9026 | done |
| 9027 | done |
| 9028 | |
| 9029 | fi |
| 9030 | fi |
| 9031 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 9032 | if test -n "$ac_ct_WINDRES"; then |
| 9033 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 9034 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 |
| 9035 | else |
| 9036 | echo "$as_me:$LINENO: result: no" >&5 |
| 9037 | echo "${ECHO_T}no" >&6 |
| 9038 | fi |
| 9039 | |
| 9040 | WINDRES=$ac_ct_WINDRES |
| 9041 | else |
| 9042 | WINDRES="$ac_cv_prog_WINDRES" |
| 9043 | fi |
| 9044 | |
| 9045 | |
| 9046 | # Needed for GNU/Hurd. |
| 9047 | if test -n "$ac_tool_prefix"; then |
| 9048 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. |
| 9049 | set dummy ${ac_tool_prefix}mig; ac_word=$2 |
| 9050 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9051 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9052 | if test "${ac_cv_prog_MIG+set}" = set; then |
| 9053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9054 | else |
| 9055 | if test -n "$MIG"; then |
| 9056 | ac_cv_prog_MIG="$MIG" # Let the user override the test. |
| 9057 | else |
| 9058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9059 | for as_dir in $PATH |
| 9060 | do |
| 9061 | IFS=$as_save_IFS |
| 9062 | test -z "$as_dir" && as_dir=. |
| 9063 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9064 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9065 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
| 9066 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9067 | break 2 |
| 9068 | fi |
| 9069 | done |
| 9070 | done |
| 9071 | |
| 9072 | fi |
| 9073 | fi |
| 9074 | MIG=$ac_cv_prog_MIG |
| 9075 | if test -n "$MIG"; then |
| 9076 | echo "$as_me:$LINENO: result: $MIG" >&5 |
| 9077 | echo "${ECHO_T}$MIG" >&6 |
| 9078 | else |
| 9079 | echo "$as_me:$LINENO: result: no" >&5 |
| 9080 | echo "${ECHO_T}no" >&6 |
| 9081 | fi |
| 9082 | |
| 9083 | fi |
| 9084 | if test -z "$ac_cv_prog_MIG"; then |
| 9085 | ac_ct_MIG=$MIG |
| 9086 | # Extract the first word of "mig", so it can be a program name with args. |
| 9087 | set dummy mig; ac_word=$2 |
| 9088 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9090 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then |
| 9091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9092 | else |
| 9093 | if test -n "$ac_ct_MIG"; then |
| 9094 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. |
| 9095 | else |
| 9096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9097 | for as_dir in $PATH |
| 9098 | do |
| 9099 | IFS=$as_save_IFS |
| 9100 | test -z "$as_dir" && as_dir=. |
| 9101 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9103 | ac_cv_prog_ac_ct_MIG="mig" |
| 9104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9105 | break 2 |
| 9106 | fi |
| 9107 | done |
| 9108 | done |
| 9109 | |
| 9110 | fi |
| 9111 | fi |
| 9112 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG |
| 9113 | if test -n "$ac_ct_MIG"; then |
| 9114 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 |
| 9115 | echo "${ECHO_T}$ac_ct_MIG" >&6 |
| 9116 | else |
| 9117 | echo "$as_me:$LINENO: result: no" >&5 |
| 9118 | echo "${ECHO_T}no" >&6 |
| 9119 | fi |
| 9120 | |
| 9121 | MIG=$ac_ct_MIG |
| 9122 | else |
| 9123 | MIG="$ac_cv_prog_MIG" |
| 9124 | fi |
| 9125 | |
| 9126 | |
| 9127 | # ---------------------- # |
| 9128 | # Checks for libraries. # |
| 9129 | # ---------------------- # |
| 9130 | |
| 9131 | # We might need to link with -lm; most simulators need it. |
| 9132 | |
| 9133 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
| 9134 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
| 9135 | if test "${ac_cv_lib_m_main+set}" = set; then |
| 9136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9137 | else |
| 9138 | ac_check_lib_save_LIBS=$LIBS |
| 9139 | LIBS="-lm $LIBS" |
| 9140 | cat >conftest.$ac_ext <<_ACEOF |
| 9141 | /* confdefs.h. */ |
| 9142 | _ACEOF |
| 9143 | cat confdefs.h >>conftest.$ac_ext |
| 9144 | cat >>conftest.$ac_ext <<_ACEOF |
| 9145 | /* end confdefs.h. */ |
| 9146 | |
| 9147 | |
| 9148 | int |
| 9149 | main () |
| 9150 | { |
| 9151 | main (); |
| 9152 | ; |
| 9153 | return 0; |
| 9154 | } |
| 9155 | _ACEOF |
| 9156 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9158 | (eval $ac_link) 2>conftest.er1 |
| 9159 | ac_status=$? |
| 9160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9161 | rm -f conftest.er1 |
| 9162 | cat conftest.err >&5 |
| 9163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9164 | (exit $ac_status); } && |
| 9165 | { ac_try='test -z "$ac_c_werror_flag" |
| 9166 | || test ! -s conftest.err' |
| 9167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9168 | (eval $ac_try) 2>&5 |
| 9169 | ac_status=$? |
| 9170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9171 | (exit $ac_status); }; } && |
| 9172 | { ac_try='test -s conftest$ac_exeext' |
| 9173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9174 | (eval $ac_try) 2>&5 |
| 9175 | ac_status=$? |
| 9176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9177 | (exit $ac_status); }; }; then |
| 9178 | ac_cv_lib_m_main=yes |
| 9179 | else |
| 9180 | echo "$as_me: failed program was:" >&5 |
| 9181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9182 | |
| 9183 | ac_cv_lib_m_main=no |
| 9184 | fi |
| 9185 | rm -f conftest.err conftest.$ac_objext \ |
| 9186 | conftest$ac_exeext conftest.$ac_ext |
| 9187 | LIBS=$ac_check_lib_save_LIBS |
| 9188 | fi |
| 9189 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
| 9190 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
| 9191 | if test $ac_cv_lib_m_main = yes; then |
| 9192 | cat >>confdefs.h <<_ACEOF |
| 9193 | #define HAVE_LIBM 1 |
| 9194 | _ACEOF |
| 9195 | |
| 9196 | LIBS="-lm $LIBS" |
| 9197 | |
| 9198 | fi |
| 9199 | |
| 9200 | |
| 9201 | # We need to link with -lw to get `wctype' on Solaris before Solaris |
| 9202 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a |
| 9203 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 |
| 9204 | # is known to have this problem). Therefore we avoid libw if we can. |
| 9205 | echo "$as_me:$LINENO: checking for wctype" >&5 |
| 9206 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 |
| 9207 | if test "${ac_cv_func_wctype+set}" = set; then |
| 9208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9209 | else |
| 9210 | cat >conftest.$ac_ext <<_ACEOF |
| 9211 | /* confdefs.h. */ |
| 9212 | _ACEOF |
| 9213 | cat confdefs.h >>conftest.$ac_ext |
| 9214 | cat >>conftest.$ac_ext <<_ACEOF |
| 9215 | /* end confdefs.h. */ |
| 9216 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. |
| 9217 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9218 | #define wctype innocuous_wctype |
| 9219 | |
| 9220 | /* System header to define __stub macros and hopefully few prototypes, |
| 9221 | which can conflict with char wctype (); below. |
| 9222 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9223 | <limits.h> exists even on freestanding compilers. */ |
| 9224 | |
| 9225 | #ifdef __STDC__ |
| 9226 | # include <limits.h> |
| 9227 | #else |
| 9228 | # include <assert.h> |
| 9229 | #endif |
| 9230 | |
| 9231 | #undef wctype |
| 9232 | |
| 9233 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9234 | #ifdef __cplusplus |
| 9235 | extern "C" |
| 9236 | { |
| 9237 | #endif |
| 9238 | /* We use char because int might match the return type of a gcc2 |
| 9239 | builtin and then its argument prototype would still apply. */ |
| 9240 | char wctype (); |
| 9241 | /* The GNU C library defines this for functions which it implements |
| 9242 | to always fail with ENOSYS. Some functions are actually named |
| 9243 | something starting with __ and the normal name is an alias. */ |
| 9244 | #if defined (__stub_wctype) || defined (__stub___wctype) |
| 9245 | choke me |
| 9246 | #else |
| 9247 | char (*f) () = wctype; |
| 9248 | #endif |
| 9249 | #ifdef __cplusplus |
| 9250 | } |
| 9251 | #endif |
| 9252 | |
| 9253 | int |
| 9254 | main () |
| 9255 | { |
| 9256 | return f != wctype; |
| 9257 | ; |
| 9258 | return 0; |
| 9259 | } |
| 9260 | _ACEOF |
| 9261 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9263 | (eval $ac_link) 2>conftest.er1 |
| 9264 | ac_status=$? |
| 9265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9266 | rm -f conftest.er1 |
| 9267 | cat conftest.err >&5 |
| 9268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9269 | (exit $ac_status); } && |
| 9270 | { ac_try='test -z "$ac_c_werror_flag" |
| 9271 | || test ! -s conftest.err' |
| 9272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9273 | (eval $ac_try) 2>&5 |
| 9274 | ac_status=$? |
| 9275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9276 | (exit $ac_status); }; } && |
| 9277 | { ac_try='test -s conftest$ac_exeext' |
| 9278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9279 | (eval $ac_try) 2>&5 |
| 9280 | ac_status=$? |
| 9281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9282 | (exit $ac_status); }; }; then |
| 9283 | ac_cv_func_wctype=yes |
| 9284 | else |
| 9285 | echo "$as_me: failed program was:" >&5 |
| 9286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9287 | |
| 9288 | ac_cv_func_wctype=no |
| 9289 | fi |
| 9290 | rm -f conftest.err conftest.$ac_objext \ |
| 9291 | conftest$ac_exeext conftest.$ac_ext |
| 9292 | fi |
| 9293 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
| 9294 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 |
| 9295 | if test $ac_cv_func_wctype = yes; then |
| 9296 | : |
| 9297 | else |
| 9298 | |
| 9299 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
| 9300 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 |
| 9301 | if test "${ac_cv_lib_w_wctype+set}" = set; then |
| 9302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9303 | else |
| 9304 | ac_check_lib_save_LIBS=$LIBS |
| 9305 | LIBS="-lw $LIBS" |
| 9306 | cat >conftest.$ac_ext <<_ACEOF |
| 9307 | /* confdefs.h. */ |
| 9308 | _ACEOF |
| 9309 | cat confdefs.h >>conftest.$ac_ext |
| 9310 | cat >>conftest.$ac_ext <<_ACEOF |
| 9311 | /* end confdefs.h. */ |
| 9312 | |
| 9313 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9314 | #ifdef __cplusplus |
| 9315 | extern "C" |
| 9316 | #endif |
| 9317 | /* We use char because int might match the return type of a gcc2 |
| 9318 | builtin and then its argument prototype would still apply. */ |
| 9319 | char wctype (); |
| 9320 | int |
| 9321 | main () |
| 9322 | { |
| 9323 | wctype (); |
| 9324 | ; |
| 9325 | return 0; |
| 9326 | } |
| 9327 | _ACEOF |
| 9328 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9330 | (eval $ac_link) 2>conftest.er1 |
| 9331 | ac_status=$? |
| 9332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9333 | rm -f conftest.er1 |
| 9334 | cat conftest.err >&5 |
| 9335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9336 | (exit $ac_status); } && |
| 9337 | { ac_try='test -z "$ac_c_werror_flag" |
| 9338 | || test ! -s conftest.err' |
| 9339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9340 | (eval $ac_try) 2>&5 |
| 9341 | ac_status=$? |
| 9342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9343 | (exit $ac_status); }; } && |
| 9344 | { ac_try='test -s conftest$ac_exeext' |
| 9345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9346 | (eval $ac_try) 2>&5 |
| 9347 | ac_status=$? |
| 9348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9349 | (exit $ac_status); }; }; then |
| 9350 | ac_cv_lib_w_wctype=yes |
| 9351 | else |
| 9352 | echo "$as_me: failed program was:" >&5 |
| 9353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9354 | |
| 9355 | ac_cv_lib_w_wctype=no |
| 9356 | fi |
| 9357 | rm -f conftest.err conftest.$ac_objext \ |
| 9358 | conftest$ac_exeext conftest.$ac_ext |
| 9359 | LIBS=$ac_check_lib_save_LIBS |
| 9360 | fi |
| 9361 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 |
| 9362 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 |
| 9363 | if test $ac_cv_lib_w_wctype = yes; then |
| 9364 | cat >>confdefs.h <<_ACEOF |
| 9365 | #define HAVE_LIBW 1 |
| 9366 | _ACEOF |
| 9367 | |
| 9368 | LIBS="-lw $LIBS" |
| 9369 | |
| 9370 | fi |
| 9371 | |
| 9372 | fi |
| 9373 | |
| 9374 | |
| 9375 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
| 9376 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
| 9377 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 |
| 9378 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
| 9379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9380 | else |
| 9381 | ac_func_search_save_LIBS=$LIBS |
| 9382 | ac_cv_search_gethostbyname=no |
| 9383 | cat >conftest.$ac_ext <<_ACEOF |
| 9384 | /* confdefs.h. */ |
| 9385 | _ACEOF |
| 9386 | cat confdefs.h >>conftest.$ac_ext |
| 9387 | cat >>conftest.$ac_ext <<_ACEOF |
| 9388 | /* end confdefs.h. */ |
| 9389 | |
| 9390 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9391 | #ifdef __cplusplus |
| 9392 | extern "C" |
| 9393 | #endif |
| 9394 | /* We use char because int might match the return type of a gcc2 |
| 9395 | builtin and then its argument prototype would still apply. */ |
| 9396 | char gethostbyname (); |
| 9397 | int |
| 9398 | main () |
| 9399 | { |
| 9400 | gethostbyname (); |
| 9401 | ; |
| 9402 | return 0; |
| 9403 | } |
| 9404 | _ACEOF |
| 9405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9407 | (eval $ac_link) 2>conftest.er1 |
| 9408 | ac_status=$? |
| 9409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9410 | rm -f conftest.er1 |
| 9411 | cat conftest.err >&5 |
| 9412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9413 | (exit $ac_status); } && |
| 9414 | { ac_try='test -z "$ac_c_werror_flag" |
| 9415 | || test ! -s conftest.err' |
| 9416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9417 | (eval $ac_try) 2>&5 |
| 9418 | ac_status=$? |
| 9419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9420 | (exit $ac_status); }; } && |
| 9421 | { ac_try='test -s conftest$ac_exeext' |
| 9422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9423 | (eval $ac_try) 2>&5 |
| 9424 | ac_status=$? |
| 9425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9426 | (exit $ac_status); }; }; then |
| 9427 | ac_cv_search_gethostbyname="none required" |
| 9428 | else |
| 9429 | echo "$as_me: failed program was:" >&5 |
| 9430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9431 | |
| 9432 | fi |
| 9433 | rm -f conftest.err conftest.$ac_objext \ |
| 9434 | conftest$ac_exeext conftest.$ac_ext |
| 9435 | if test "$ac_cv_search_gethostbyname" = no; then |
| 9436 | for ac_lib in nsl; do |
| 9437 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9438 | cat >conftest.$ac_ext <<_ACEOF |
| 9439 | /* confdefs.h. */ |
| 9440 | _ACEOF |
| 9441 | cat confdefs.h >>conftest.$ac_ext |
| 9442 | cat >>conftest.$ac_ext <<_ACEOF |
| 9443 | /* end confdefs.h. */ |
| 9444 | |
| 9445 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9446 | #ifdef __cplusplus |
| 9447 | extern "C" |
| 9448 | #endif |
| 9449 | /* We use char because int might match the return type of a gcc2 |
| 9450 | builtin and then its argument prototype would still apply. */ |
| 9451 | char gethostbyname (); |
| 9452 | int |
| 9453 | main () |
| 9454 | { |
| 9455 | gethostbyname (); |
| 9456 | ; |
| 9457 | return 0; |
| 9458 | } |
| 9459 | _ACEOF |
| 9460 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9462 | (eval $ac_link) 2>conftest.er1 |
| 9463 | ac_status=$? |
| 9464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9465 | rm -f conftest.er1 |
| 9466 | cat conftest.err >&5 |
| 9467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9468 | (exit $ac_status); } && |
| 9469 | { ac_try='test -z "$ac_c_werror_flag" |
| 9470 | || test ! -s conftest.err' |
| 9471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9472 | (eval $ac_try) 2>&5 |
| 9473 | ac_status=$? |
| 9474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9475 | (exit $ac_status); }; } && |
| 9476 | { ac_try='test -s conftest$ac_exeext' |
| 9477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9478 | (eval $ac_try) 2>&5 |
| 9479 | ac_status=$? |
| 9480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9481 | (exit $ac_status); }; }; then |
| 9482 | ac_cv_search_gethostbyname="-l$ac_lib" |
| 9483 | break |
| 9484 | else |
| 9485 | echo "$as_me: failed program was:" >&5 |
| 9486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9487 | |
| 9488 | fi |
| 9489 | rm -f conftest.err conftest.$ac_objext \ |
| 9490 | conftest$ac_exeext conftest.$ac_ext |
| 9491 | done |
| 9492 | fi |
| 9493 | LIBS=$ac_func_search_save_LIBS |
| 9494 | fi |
| 9495 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
| 9496 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 |
| 9497 | if test "$ac_cv_search_gethostbyname" != no; then |
| 9498 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" |
| 9499 | |
| 9500 | fi |
| 9501 | |
| 9502 | |
| 9503 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
| 9504 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 |
| 9505 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 |
| 9506 | if test "${ac_cv_search_socketpair+set}" = set; then |
| 9507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9508 | else |
| 9509 | ac_func_search_save_LIBS=$LIBS |
| 9510 | ac_cv_search_socketpair=no |
| 9511 | cat >conftest.$ac_ext <<_ACEOF |
| 9512 | /* confdefs.h. */ |
| 9513 | _ACEOF |
| 9514 | cat confdefs.h >>conftest.$ac_ext |
| 9515 | cat >>conftest.$ac_ext <<_ACEOF |
| 9516 | /* end confdefs.h. */ |
| 9517 | |
| 9518 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9519 | #ifdef __cplusplus |
| 9520 | extern "C" |
| 9521 | #endif |
| 9522 | /* We use char because int might match the return type of a gcc2 |
| 9523 | builtin and then its argument prototype would still apply. */ |
| 9524 | char socketpair (); |
| 9525 | int |
| 9526 | main () |
| 9527 | { |
| 9528 | socketpair (); |
| 9529 | ; |
| 9530 | return 0; |
| 9531 | } |
| 9532 | _ACEOF |
| 9533 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9535 | (eval $ac_link) 2>conftest.er1 |
| 9536 | ac_status=$? |
| 9537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9538 | rm -f conftest.er1 |
| 9539 | cat conftest.err >&5 |
| 9540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9541 | (exit $ac_status); } && |
| 9542 | { ac_try='test -z "$ac_c_werror_flag" |
| 9543 | || test ! -s conftest.err' |
| 9544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9545 | (eval $ac_try) 2>&5 |
| 9546 | ac_status=$? |
| 9547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9548 | (exit $ac_status); }; } && |
| 9549 | { ac_try='test -s conftest$ac_exeext' |
| 9550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9551 | (eval $ac_try) 2>&5 |
| 9552 | ac_status=$? |
| 9553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9554 | (exit $ac_status); }; }; then |
| 9555 | ac_cv_search_socketpair="none required" |
| 9556 | else |
| 9557 | echo "$as_me: failed program was:" >&5 |
| 9558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9559 | |
| 9560 | fi |
| 9561 | rm -f conftest.err conftest.$ac_objext \ |
| 9562 | conftest$ac_exeext conftest.$ac_ext |
| 9563 | if test "$ac_cv_search_socketpair" = no; then |
| 9564 | for ac_lib in socket; do |
| 9565 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9566 | cat >conftest.$ac_ext <<_ACEOF |
| 9567 | /* confdefs.h. */ |
| 9568 | _ACEOF |
| 9569 | cat confdefs.h >>conftest.$ac_ext |
| 9570 | cat >>conftest.$ac_ext <<_ACEOF |
| 9571 | /* end confdefs.h. */ |
| 9572 | |
| 9573 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9574 | #ifdef __cplusplus |
| 9575 | extern "C" |
| 9576 | #endif |
| 9577 | /* We use char because int might match the return type of a gcc2 |
| 9578 | builtin and then its argument prototype would still apply. */ |
| 9579 | char socketpair (); |
| 9580 | int |
| 9581 | main () |
| 9582 | { |
| 9583 | socketpair (); |
| 9584 | ; |
| 9585 | return 0; |
| 9586 | } |
| 9587 | _ACEOF |
| 9588 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9590 | (eval $ac_link) 2>conftest.er1 |
| 9591 | ac_status=$? |
| 9592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9593 | rm -f conftest.er1 |
| 9594 | cat conftest.err >&5 |
| 9595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9596 | (exit $ac_status); } && |
| 9597 | { ac_try='test -z "$ac_c_werror_flag" |
| 9598 | || test ! -s conftest.err' |
| 9599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9600 | (eval $ac_try) 2>&5 |
| 9601 | ac_status=$? |
| 9602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9603 | (exit $ac_status); }; } && |
| 9604 | { ac_try='test -s conftest$ac_exeext' |
| 9605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9606 | (eval $ac_try) 2>&5 |
| 9607 | ac_status=$? |
| 9608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9609 | (exit $ac_status); }; }; then |
| 9610 | ac_cv_search_socketpair="-l$ac_lib" |
| 9611 | break |
| 9612 | else |
| 9613 | echo "$as_me: failed program was:" >&5 |
| 9614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9615 | |
| 9616 | fi |
| 9617 | rm -f conftest.err conftest.$ac_objext \ |
| 9618 | conftest$ac_exeext conftest.$ac_ext |
| 9619 | done |
| 9620 | fi |
| 9621 | LIBS=$ac_func_search_save_LIBS |
| 9622 | fi |
| 9623 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 |
| 9624 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 |
| 9625 | if test "$ac_cv_search_socketpair" != no; then |
| 9626 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" |
| 9627 | |
| 9628 | fi |
| 9629 | |
| 9630 | |
| 9631 | # Link in zlib if we can. This allows us to read compressed debug sections. |
| 9632 | echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5 |
| 9633 | echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6 |
| 9634 | if test "${ac_cv_search_zlibVersion+set}" = set; then |
| 9635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9636 | else |
| 9637 | ac_func_search_save_LIBS=$LIBS |
| 9638 | ac_cv_search_zlibVersion=no |
| 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 | |
| 9646 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9647 | #ifdef __cplusplus |
| 9648 | extern "C" |
| 9649 | #endif |
| 9650 | /* We use char because int might match the return type of a gcc2 |
| 9651 | builtin and then its argument prototype would still apply. */ |
| 9652 | char zlibVersion (); |
| 9653 | int |
| 9654 | main () |
| 9655 | { |
| 9656 | zlibVersion (); |
| 9657 | ; |
| 9658 | return 0; |
| 9659 | } |
| 9660 | _ACEOF |
| 9661 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9663 | (eval $ac_link) 2>conftest.er1 |
| 9664 | ac_status=$? |
| 9665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9666 | rm -f conftest.er1 |
| 9667 | cat conftest.err >&5 |
| 9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9669 | (exit $ac_status); } && |
| 9670 | { ac_try='test -z "$ac_c_werror_flag" |
| 9671 | || test ! -s conftest.err' |
| 9672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9673 | (eval $ac_try) 2>&5 |
| 9674 | ac_status=$? |
| 9675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9676 | (exit $ac_status); }; } && |
| 9677 | { ac_try='test -s conftest$ac_exeext' |
| 9678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9679 | (eval $ac_try) 2>&5 |
| 9680 | ac_status=$? |
| 9681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9682 | (exit $ac_status); }; }; then |
| 9683 | ac_cv_search_zlibVersion="none required" |
| 9684 | else |
| 9685 | echo "$as_me: failed program was:" >&5 |
| 9686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9687 | |
| 9688 | fi |
| 9689 | rm -f conftest.err conftest.$ac_objext \ |
| 9690 | conftest$ac_exeext conftest.$ac_ext |
| 9691 | if test "$ac_cv_search_zlibVersion" = no; then |
| 9692 | for ac_lib in z; do |
| 9693 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9694 | cat >conftest.$ac_ext <<_ACEOF |
| 9695 | /* confdefs.h. */ |
| 9696 | _ACEOF |
| 9697 | cat confdefs.h >>conftest.$ac_ext |
| 9698 | cat >>conftest.$ac_ext <<_ACEOF |
| 9699 | /* end confdefs.h. */ |
| 9700 | |
| 9701 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9702 | #ifdef __cplusplus |
| 9703 | extern "C" |
| 9704 | #endif |
| 9705 | /* We use char because int might match the return type of a gcc2 |
| 9706 | builtin and then its argument prototype would still apply. */ |
| 9707 | char zlibVersion (); |
| 9708 | int |
| 9709 | main () |
| 9710 | { |
| 9711 | zlibVersion (); |
| 9712 | ; |
| 9713 | return 0; |
| 9714 | } |
| 9715 | _ACEOF |
| 9716 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9718 | (eval $ac_link) 2>conftest.er1 |
| 9719 | ac_status=$? |
| 9720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9721 | rm -f conftest.er1 |
| 9722 | cat conftest.err >&5 |
| 9723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9724 | (exit $ac_status); } && |
| 9725 | { ac_try='test -z "$ac_c_werror_flag" |
| 9726 | || test ! -s conftest.err' |
| 9727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9728 | (eval $ac_try) 2>&5 |
| 9729 | ac_status=$? |
| 9730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9731 | (exit $ac_status); }; } && |
| 9732 | { ac_try='test -s conftest$ac_exeext' |
| 9733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9734 | (eval $ac_try) 2>&5 |
| 9735 | ac_status=$? |
| 9736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9737 | (exit $ac_status); }; }; then |
| 9738 | ac_cv_search_zlibVersion="-l$ac_lib" |
| 9739 | break |
| 9740 | else |
| 9741 | echo "$as_me: failed program was:" >&5 |
| 9742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9743 | |
| 9744 | fi |
| 9745 | rm -f conftest.err conftest.$ac_objext \ |
| 9746 | conftest$ac_exeext conftest.$ac_ext |
| 9747 | done |
| 9748 | fi |
| 9749 | LIBS=$ac_func_search_save_LIBS |
| 9750 | fi |
| 9751 | echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5 |
| 9752 | echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6 |
| 9753 | if test "$ac_cv_search_zlibVersion" != no; then |
| 9754 | test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS" |
| 9755 | |
| 9756 | for ac_header in zlib.h |
| 9757 | do |
| 9758 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9759 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9760 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9764 | fi |
| 9765 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9766 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9767 | else |
| 9768 | # Is the header compilable? |
| 9769 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9770 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9771 | cat >conftest.$ac_ext <<_ACEOF |
| 9772 | /* confdefs.h. */ |
| 9773 | _ACEOF |
| 9774 | cat confdefs.h >>conftest.$ac_ext |
| 9775 | cat >>conftest.$ac_ext <<_ACEOF |
| 9776 | /* end confdefs.h. */ |
| 9777 | $ac_includes_default |
| 9778 | #include <$ac_header> |
| 9779 | _ACEOF |
| 9780 | rm -f conftest.$ac_objext |
| 9781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9782 | (eval $ac_compile) 2>conftest.er1 |
| 9783 | ac_status=$? |
| 9784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9785 | rm -f conftest.er1 |
| 9786 | cat conftest.err >&5 |
| 9787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9788 | (exit $ac_status); } && |
| 9789 | { ac_try='test -z "$ac_c_werror_flag" |
| 9790 | || test ! -s conftest.err' |
| 9791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9792 | (eval $ac_try) 2>&5 |
| 9793 | ac_status=$? |
| 9794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9795 | (exit $ac_status); }; } && |
| 9796 | { ac_try='test -s conftest.$ac_objext' |
| 9797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9798 | (eval $ac_try) 2>&5 |
| 9799 | ac_status=$? |
| 9800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9801 | (exit $ac_status); }; }; then |
| 9802 | ac_header_compiler=yes |
| 9803 | else |
| 9804 | echo "$as_me: failed program was:" >&5 |
| 9805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9806 | |
| 9807 | ac_header_compiler=no |
| 9808 | fi |
| 9809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9810 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9811 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9812 | |
| 9813 | # Is the header present? |
| 9814 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9815 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9816 | cat >conftest.$ac_ext <<_ACEOF |
| 9817 | /* confdefs.h. */ |
| 9818 | _ACEOF |
| 9819 | cat confdefs.h >>conftest.$ac_ext |
| 9820 | cat >>conftest.$ac_ext <<_ACEOF |
| 9821 | /* end confdefs.h. */ |
| 9822 | #include <$ac_header> |
| 9823 | _ACEOF |
| 9824 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9825 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9826 | ac_status=$? |
| 9827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9828 | rm -f conftest.er1 |
| 9829 | cat conftest.err >&5 |
| 9830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9831 | (exit $ac_status); } >/dev/null; then |
| 9832 | if test -s conftest.err; then |
| 9833 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9834 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9835 | else |
| 9836 | ac_cpp_err= |
| 9837 | fi |
| 9838 | else |
| 9839 | ac_cpp_err=yes |
| 9840 | fi |
| 9841 | if test -z "$ac_cpp_err"; then |
| 9842 | ac_header_preproc=yes |
| 9843 | else |
| 9844 | echo "$as_me: failed program was:" >&5 |
| 9845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9846 | |
| 9847 | ac_header_preproc=no |
| 9848 | fi |
| 9849 | rm -f conftest.err conftest.$ac_ext |
| 9850 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9851 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9852 | |
| 9853 | # So? What about this header? |
| 9854 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9855 | yes:no: ) |
| 9856 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9857 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9859 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9860 | ac_header_preproc=yes |
| 9861 | ;; |
| 9862 | no:yes:* ) |
| 9863 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9864 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9865 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9866 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9867 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9868 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9869 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9870 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9871 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9872 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9873 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9874 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9875 | ( |
| 9876 | cat <<\_ASBOX |
| 9877 | ## ------------------------------------------ ## |
| 9878 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9879 | ## ------------------------------------------ ## |
| 9880 | _ASBOX |
| 9881 | ) | |
| 9882 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9883 | ;; |
| 9884 | esac |
| 9885 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9886 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9887 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9889 | else |
| 9890 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9891 | fi |
| 9892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9893 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9894 | |
| 9895 | fi |
| 9896 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9897 | cat >>confdefs.h <<_ACEOF |
| 9898 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9899 | _ACEOF |
| 9900 | |
| 9901 | fi |
| 9902 | |
| 9903 | done |
| 9904 | |
| 9905 | fi |
| 9906 | |
| 9907 | |
| 9908 | # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c). |
| 9909 | echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5 |
| 9910 | echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6 |
| 9911 | if test "${ac_cv_search_dlgetmodinfo+set}" = set; then |
| 9912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9913 | else |
| 9914 | ac_func_search_save_LIBS=$LIBS |
| 9915 | ac_cv_search_dlgetmodinfo=no |
| 9916 | cat >conftest.$ac_ext <<_ACEOF |
| 9917 | /* confdefs.h. */ |
| 9918 | _ACEOF |
| 9919 | cat confdefs.h >>conftest.$ac_ext |
| 9920 | cat >>conftest.$ac_ext <<_ACEOF |
| 9921 | /* end confdefs.h. */ |
| 9922 | |
| 9923 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9924 | #ifdef __cplusplus |
| 9925 | extern "C" |
| 9926 | #endif |
| 9927 | /* We use char because int might match the return type of a gcc2 |
| 9928 | builtin and then its argument prototype would still apply. */ |
| 9929 | char dlgetmodinfo (); |
| 9930 | int |
| 9931 | main () |
| 9932 | { |
| 9933 | dlgetmodinfo (); |
| 9934 | ; |
| 9935 | return 0; |
| 9936 | } |
| 9937 | _ACEOF |
| 9938 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9940 | (eval $ac_link) 2>conftest.er1 |
| 9941 | ac_status=$? |
| 9942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9943 | rm -f conftest.er1 |
| 9944 | cat conftest.err >&5 |
| 9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9946 | (exit $ac_status); } && |
| 9947 | { ac_try='test -z "$ac_c_werror_flag" |
| 9948 | || test ! -s conftest.err' |
| 9949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9950 | (eval $ac_try) 2>&5 |
| 9951 | ac_status=$? |
| 9952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9953 | (exit $ac_status); }; } && |
| 9954 | { ac_try='test -s conftest$ac_exeext' |
| 9955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9956 | (eval $ac_try) 2>&5 |
| 9957 | ac_status=$? |
| 9958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9959 | (exit $ac_status); }; }; then |
| 9960 | ac_cv_search_dlgetmodinfo="none required" |
| 9961 | else |
| 9962 | echo "$as_me: failed program was:" >&5 |
| 9963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9964 | |
| 9965 | fi |
| 9966 | rm -f conftest.err conftest.$ac_objext \ |
| 9967 | conftest$ac_exeext conftest.$ac_ext |
| 9968 | if test "$ac_cv_search_dlgetmodinfo" = no; then |
| 9969 | for ac_lib in dl xpdl; do |
| 9970 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9971 | cat >conftest.$ac_ext <<_ACEOF |
| 9972 | /* confdefs.h. */ |
| 9973 | _ACEOF |
| 9974 | cat confdefs.h >>conftest.$ac_ext |
| 9975 | cat >>conftest.$ac_ext <<_ACEOF |
| 9976 | /* end confdefs.h. */ |
| 9977 | |
| 9978 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9979 | #ifdef __cplusplus |
| 9980 | extern "C" |
| 9981 | #endif |
| 9982 | /* We use char because int might match the return type of a gcc2 |
| 9983 | builtin and then its argument prototype would still apply. */ |
| 9984 | char dlgetmodinfo (); |
| 9985 | int |
| 9986 | main () |
| 9987 | { |
| 9988 | dlgetmodinfo (); |
| 9989 | ; |
| 9990 | return 0; |
| 9991 | } |
| 9992 | _ACEOF |
| 9993 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9995 | (eval $ac_link) 2>conftest.er1 |
| 9996 | ac_status=$? |
| 9997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9998 | rm -f conftest.er1 |
| 9999 | cat conftest.err >&5 |
| 10000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10001 | (exit $ac_status); } && |
| 10002 | { ac_try='test -z "$ac_c_werror_flag" |
| 10003 | || test ! -s conftest.err' |
| 10004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10005 | (eval $ac_try) 2>&5 |
| 10006 | ac_status=$? |
| 10007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10008 | (exit $ac_status); }; } && |
| 10009 | { ac_try='test -s conftest$ac_exeext' |
| 10010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10011 | (eval $ac_try) 2>&5 |
| 10012 | ac_status=$? |
| 10013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10014 | (exit $ac_status); }; }; then |
| 10015 | ac_cv_search_dlgetmodinfo="-l$ac_lib" |
| 10016 | break |
| 10017 | else |
| 10018 | echo "$as_me: failed program was:" >&5 |
| 10019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10020 | |
| 10021 | fi |
| 10022 | rm -f conftest.err conftest.$ac_objext \ |
| 10023 | conftest$ac_exeext conftest.$ac_ext |
| 10024 | done |
| 10025 | fi |
| 10026 | LIBS=$ac_func_search_save_LIBS |
| 10027 | fi |
| 10028 | echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5 |
| 10029 | echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6 |
| 10030 | if test "$ac_cv_search_dlgetmodinfo" != no; then |
| 10031 | test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS" |
| 10032 | |
| 10033 | fi |
| 10034 | |
| 10035 | |
| 10036 | |
| 10037 | |
| 10038 | |
| 10039 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
| 10040 | if test "${with_libiconv_prefix+set}" = set; then |
| 10041 | withval="$with_libiconv_prefix" |
| 10042 | |
| 10043 | for dir in `echo "$withval" | tr : ' '`; do |
| 10044 | if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi |
| 10045 | if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi |
| 10046 | done |
| 10047 | |
| 10048 | fi; |
| 10049 | |
| 10050 | BUILD_LIBICONV_LIBDIR="-L../libiconv/lib/.libs -L../libiconv/lib/_libs" |
| 10051 | BUILD_LIBICONV_INCLUDE="-I../libiconv/include" |
| 10052 | |
| 10053 | echo "$as_me:$LINENO: checking for iconv" >&5 |
| 10054 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
| 10055 | if test "${am_cv_func_iconv+set}" = set; then |
| 10056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10057 | else |
| 10058 | |
| 10059 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 10060 | am_cv_lib_iconv=no |
| 10061 | am_cv_use_build_libiconv=no |
| 10062 | # First, try to find iconv in libc. |
| 10063 | cat >conftest.$ac_ext <<_ACEOF |
| 10064 | /* confdefs.h. */ |
| 10065 | _ACEOF |
| 10066 | cat confdefs.h >>conftest.$ac_ext |
| 10067 | cat >>conftest.$ac_ext <<_ACEOF |
| 10068 | /* end confdefs.h. */ |
| 10069 | #include <stdlib.h> |
| 10070 | #include <iconv.h> |
| 10071 | int |
| 10072 | main () |
| 10073 | { |
| 10074 | iconv_t cd = iconv_open("",""); |
| 10075 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10076 | iconv_close(cd); |
| 10077 | ; |
| 10078 | return 0; |
| 10079 | } |
| 10080 | _ACEOF |
| 10081 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10083 | (eval $ac_link) 2>conftest.er1 |
| 10084 | ac_status=$? |
| 10085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10086 | rm -f conftest.er1 |
| 10087 | cat conftest.err >&5 |
| 10088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10089 | (exit $ac_status); } && |
| 10090 | { ac_try='test -z "$ac_c_werror_flag" |
| 10091 | || test ! -s conftest.err' |
| 10092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10093 | (eval $ac_try) 2>&5 |
| 10094 | ac_status=$? |
| 10095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10096 | (exit $ac_status); }; } && |
| 10097 | { ac_try='test -s conftest$ac_exeext' |
| 10098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10099 | (eval $ac_try) 2>&5 |
| 10100 | ac_status=$? |
| 10101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10102 | (exit $ac_status); }; }; then |
| 10103 | am_cv_func_iconv=yes |
| 10104 | else |
| 10105 | echo "$as_me: failed program was:" >&5 |
| 10106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10107 | |
| 10108 | fi |
| 10109 | rm -f conftest.err conftest.$ac_objext \ |
| 10110 | conftest$ac_exeext conftest.$ac_ext |
| 10111 | |
| 10112 | # If iconv was not in libc, try -liconv. In this case, arrange to |
| 10113 | # look in the libiconv prefix, if it was specified by the user. |
| 10114 | if test "$am_cv_func_iconv" != yes; then |
| 10115 | am_save_CPPFLAGS="$CPPFLAGS" |
| 10116 | am_save_LIBS="$LIBS" |
| 10117 | if test -n "$LIBICONV_INCLUDE"; then |
| 10118 | CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE" |
| 10119 | LIBS="$LIBS $LIBICONV_LIBDIR" |
| 10120 | fi |
| 10121 | LIBS="$LIBS -liconv" |
| 10122 | cat >conftest.$ac_ext <<_ACEOF |
| 10123 | /* confdefs.h. */ |
| 10124 | _ACEOF |
| 10125 | cat confdefs.h >>conftest.$ac_ext |
| 10126 | cat >>conftest.$ac_ext <<_ACEOF |
| 10127 | /* end confdefs.h. */ |
| 10128 | #include <stdlib.h> |
| 10129 | #include <iconv.h> |
| 10130 | int |
| 10131 | main () |
| 10132 | { |
| 10133 | iconv_t cd = iconv_open("",""); |
| 10134 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10135 | iconv_close(cd); |
| 10136 | ; |
| 10137 | return 0; |
| 10138 | } |
| 10139 | _ACEOF |
| 10140 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10142 | (eval $ac_link) 2>conftest.er1 |
| 10143 | ac_status=$? |
| 10144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10145 | rm -f conftest.er1 |
| 10146 | cat conftest.err >&5 |
| 10147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10148 | (exit $ac_status); } && |
| 10149 | { ac_try='test -z "$ac_c_werror_flag" |
| 10150 | || test ! -s conftest.err' |
| 10151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10152 | (eval $ac_try) 2>&5 |
| 10153 | ac_status=$? |
| 10154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10155 | (exit $ac_status); }; } && |
| 10156 | { ac_try='test -s conftest$ac_exeext' |
| 10157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10158 | (eval $ac_try) 2>&5 |
| 10159 | ac_status=$? |
| 10160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10161 | (exit $ac_status); }; }; then |
| 10162 | am_cv_lib_iconv=yes |
| 10163 | am_cv_func_iconv=yes |
| 10164 | else |
| 10165 | echo "$as_me: failed program was:" >&5 |
| 10166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10167 | |
| 10168 | fi |
| 10169 | rm -f conftest.err conftest.$ac_objext \ |
| 10170 | conftest$ac_exeext conftest.$ac_ext |
| 10171 | LIBS="$am_save_LIBS" |
| 10172 | CPPFLAGS="$am_save_CPPFLAGS" |
| 10173 | fi |
| 10174 | |
| 10175 | # If that didn't work, try to find libiconv in the build tree. |
| 10176 | if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then |
| 10177 | am_save_LIBS="$LIBS" |
| 10178 | am_save_CPPFLAGS="$CPPFLAGS" |
| 10179 | LIBS="$LIBS $BUILD_LIBICONV_LIBDIR -liconv" |
| 10180 | CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE" |
| 10181 | cat >conftest.$ac_ext <<_ACEOF |
| 10182 | /* confdefs.h. */ |
| 10183 | _ACEOF |
| 10184 | cat confdefs.h >>conftest.$ac_ext |
| 10185 | cat >>conftest.$ac_ext <<_ACEOF |
| 10186 | /* end confdefs.h. */ |
| 10187 | #include <stdlib.h> |
| 10188 | #include <iconv.h> |
| 10189 | int |
| 10190 | main () |
| 10191 | { |
| 10192 | iconv_t cd = iconv_open("",""); |
| 10193 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10194 | iconv_close(cd); |
| 10195 | ; |
| 10196 | return 0; |
| 10197 | } |
| 10198 | _ACEOF |
| 10199 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10201 | (eval $ac_link) 2>conftest.er1 |
| 10202 | ac_status=$? |
| 10203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10204 | rm -f conftest.er1 |
| 10205 | cat conftest.err >&5 |
| 10206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10207 | (exit $ac_status); } && |
| 10208 | { ac_try='test -z "$ac_c_werror_flag" |
| 10209 | || test ! -s conftest.err' |
| 10210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10211 | (eval $ac_try) 2>&5 |
| 10212 | ac_status=$? |
| 10213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10214 | (exit $ac_status); }; } && |
| 10215 | { ac_try='test -s conftest$ac_exeext' |
| 10216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10217 | (eval $ac_try) 2>&5 |
| 10218 | ac_status=$? |
| 10219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10220 | (exit $ac_status); }; }; then |
| 10221 | am_cv_use_build_libiconv=yes |
| 10222 | am_cv_lib_iconv=yes |
| 10223 | am_cv_func_iconv=yes |
| 10224 | else |
| 10225 | echo "$as_me: failed program was:" >&5 |
| 10226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10227 | |
| 10228 | fi |
| 10229 | rm -f conftest.err conftest.$ac_objext \ |
| 10230 | conftest$ac_exeext conftest.$ac_ext |
| 10231 | LIBS="$am_save_LIBS" |
| 10232 | CPPFLAGS="$am_save_CPPFLAGS" |
| 10233 | fi |
| 10234 | |
| 10235 | fi |
| 10236 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 10237 | echo "${ECHO_T}$am_cv_func_iconv" >&6 |
| 10238 | |
| 10239 | # Set the various flags based on the cache variables. We can't rely |
| 10240 | # on the flags to remain set from the above code, due to caching. |
| 10241 | LIBICONV= |
| 10242 | if test "$am_cv_lib_iconv" = yes; then |
| 10243 | LIBICONV="-liconv" |
| 10244 | else |
| 10245 | LIBICONV_LIBDIR= |
| 10246 | LIBICONV_INCLUDE= |
| 10247 | fi |
| 10248 | if test "$am_cv_use_build_libiconv" = yes; then |
| 10249 | LIBICONV_LIBDIR="$BUILD_LIBICONV_LIBDIR" |
| 10250 | LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE" |
| 10251 | fi |
| 10252 | CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE" |
| 10253 | LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV" |
| 10254 | |
| 10255 | if test "$am_cv_func_iconv" = yes; then |
| 10256 | |
| 10257 | cat >>confdefs.h <<\_ACEOF |
| 10258 | #define HAVE_ICONV 1 |
| 10259 | _ACEOF |
| 10260 | |
| 10261 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 10262 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 |
| 10263 | if test "${am_cv_proto_iconv+set}" = set; then |
| 10264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10265 | else |
| 10266 | |
| 10267 | cat >conftest.$ac_ext <<_ACEOF |
| 10268 | /* confdefs.h. */ |
| 10269 | _ACEOF |
| 10270 | cat confdefs.h >>conftest.$ac_ext |
| 10271 | cat >>conftest.$ac_ext <<_ACEOF |
| 10272 | /* end confdefs.h. */ |
| 10273 | |
| 10274 | #include <stdlib.h> |
| 10275 | #include <iconv.h> |
| 10276 | extern |
| 10277 | #ifdef __cplusplus |
| 10278 | "C" |
| 10279 | #endif |
| 10280 | #if defined(__STDC__) || defined(__cplusplus) |
| 10281 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 10282 | #else |
| 10283 | size_t iconv(); |
| 10284 | #endif |
| 10285 | |
| 10286 | int |
| 10287 | main () |
| 10288 | { |
| 10289 | |
| 10290 | ; |
| 10291 | return 0; |
| 10292 | } |
| 10293 | _ACEOF |
| 10294 | rm -f conftest.$ac_objext |
| 10295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10296 | (eval $ac_compile) 2>conftest.er1 |
| 10297 | ac_status=$? |
| 10298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10299 | rm -f conftest.er1 |
| 10300 | cat conftest.err >&5 |
| 10301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10302 | (exit $ac_status); } && |
| 10303 | { ac_try='test -z "$ac_c_werror_flag" |
| 10304 | || test ! -s conftest.err' |
| 10305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10306 | (eval $ac_try) 2>&5 |
| 10307 | ac_status=$? |
| 10308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10309 | (exit $ac_status); }; } && |
| 10310 | { ac_try='test -s conftest.$ac_objext' |
| 10311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10312 | (eval $ac_try) 2>&5 |
| 10313 | ac_status=$? |
| 10314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10315 | (exit $ac_status); }; }; then |
| 10316 | am_cv_proto_iconv_arg1="" |
| 10317 | else |
| 10318 | echo "$as_me: failed program was:" >&5 |
| 10319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10320 | |
| 10321 | am_cv_proto_iconv_arg1="const" |
| 10322 | fi |
| 10323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10324 | 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);" |
| 10325 | fi |
| 10326 | |
| 10327 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
| 10328 | echo "$as_me:$LINENO: result: ${ac_t:- |
| 10329 | }$am_cv_proto_iconv" >&5 |
| 10330 | echo "${ECHO_T}${ac_t:- |
| 10331 | }$am_cv_proto_iconv" >&6 |
| 10332 | |
| 10333 | cat >>confdefs.h <<_ACEOF |
| 10334 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
| 10335 | _ACEOF |
| 10336 | |
| 10337 | fi |
| 10338 | |
| 10339 | |
| 10340 | # On alpha-osf, it appears that libtermcap and libcurses are not compatible. |
| 10341 | # There is a very specific comment in /usr/include/curses.h explaining that |
| 10342 | # termcap routines built into libcurses must not be used. |
| 10343 | # |
| 10344 | # The symptoms we observed so far is GDB unexpectedly changing |
| 10345 | # the terminal settings when tgetent is called - this is particularly |
| 10346 | # visible as the output is missing carriage returns, and so rapidly |
| 10347 | # becomes very hard to read. |
| 10348 | # |
| 10349 | # The readline configure script has already decided that libtermcap |
| 10350 | # was enough for its purposes, and so decided to build readline using |
| 10351 | # libtermcap. Since the TUI mode requires curses, building GDB with |
| 10352 | # TUI enabled results in both libraries to be used at the same time, |
| 10353 | # which is not allowed. This basically means that GDB with TUI is |
| 10354 | # broken on alpha-osf. |
| 10355 | |
| 10356 | case $host_os in |
| 10357 | alpha*-*-osf* ) |
| 10358 | if "$enable_tui" = "yes"; then |
| 10359 | { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5 |
| 10360 | echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;} |
| 10361 | { (exit 1); exit 1; }; } |
| 10362 | fi |
| 10363 | if "$enable_tui" = "auto"; then |
| 10364 | enable_tui=no |
| 10365 | fi |
| 10366 | ;; |
| 10367 | esac |
| 10368 | |
| 10369 | # For the TUI, we need enhanced curses functionality. |
| 10370 | if test x"$enable_tui" != xno; then |
| 10371 | prefer_curses=yes |
| 10372 | fi |
| 10373 | |
| 10374 | curses_found=no |
| 10375 | if test x"$prefer_curses" = xyes; then |
| 10376 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied |
| 10377 | # curses library because the latter might not provide all the |
| 10378 | # functionality we need. However, this leads to problems on systems |
| 10379 | # where the linker searches /usr/local/lib, but the compiler doesn't |
| 10380 | # search /usr/local/include, if ncurses is installed in /usr/local. A |
| 10381 | # default installation of ncurses on alpha*-dec-osf* will lead to such |
| 10382 | # a situation. |
| 10383 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 |
| 10384 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 |
| 10385 | if test "${ac_cv_search_waddstr+set}" = set; then |
| 10386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10387 | else |
| 10388 | ac_func_search_save_LIBS=$LIBS |
| 10389 | ac_cv_search_waddstr=no |
| 10390 | cat >conftest.$ac_ext <<_ACEOF |
| 10391 | /* confdefs.h. */ |
| 10392 | _ACEOF |
| 10393 | cat confdefs.h >>conftest.$ac_ext |
| 10394 | cat >>conftest.$ac_ext <<_ACEOF |
| 10395 | /* end confdefs.h. */ |
| 10396 | |
| 10397 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10398 | #ifdef __cplusplus |
| 10399 | extern "C" |
| 10400 | #endif |
| 10401 | /* We use char because int might match the return type of a gcc2 |
| 10402 | builtin and then its argument prototype would still apply. */ |
| 10403 | char waddstr (); |
| 10404 | int |
| 10405 | main () |
| 10406 | { |
| 10407 | waddstr (); |
| 10408 | ; |
| 10409 | return 0; |
| 10410 | } |
| 10411 | _ACEOF |
| 10412 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10414 | (eval $ac_link) 2>conftest.er1 |
| 10415 | ac_status=$? |
| 10416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10417 | rm -f conftest.er1 |
| 10418 | cat conftest.err >&5 |
| 10419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10420 | (exit $ac_status); } && |
| 10421 | { ac_try='test -z "$ac_c_werror_flag" |
| 10422 | || test ! -s conftest.err' |
| 10423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10424 | (eval $ac_try) 2>&5 |
| 10425 | ac_status=$? |
| 10426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10427 | (exit $ac_status); }; } && |
| 10428 | { ac_try='test -s conftest$ac_exeext' |
| 10429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10430 | (eval $ac_try) 2>&5 |
| 10431 | ac_status=$? |
| 10432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10433 | (exit $ac_status); }; }; then |
| 10434 | ac_cv_search_waddstr="none required" |
| 10435 | else |
| 10436 | echo "$as_me: failed program was:" >&5 |
| 10437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10438 | |
| 10439 | fi |
| 10440 | rm -f conftest.err conftest.$ac_objext \ |
| 10441 | conftest$ac_exeext conftest.$ac_ext |
| 10442 | if test "$ac_cv_search_waddstr" = no; then |
| 10443 | for ac_lib in ncurses cursesX curses; do |
| 10444 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10445 | cat >conftest.$ac_ext <<_ACEOF |
| 10446 | /* confdefs.h. */ |
| 10447 | _ACEOF |
| 10448 | cat confdefs.h >>conftest.$ac_ext |
| 10449 | cat >>conftest.$ac_ext <<_ACEOF |
| 10450 | /* end confdefs.h. */ |
| 10451 | |
| 10452 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10453 | #ifdef __cplusplus |
| 10454 | extern "C" |
| 10455 | #endif |
| 10456 | /* We use char because int might match the return type of a gcc2 |
| 10457 | builtin and then its argument prototype would still apply. */ |
| 10458 | char waddstr (); |
| 10459 | int |
| 10460 | main () |
| 10461 | { |
| 10462 | waddstr (); |
| 10463 | ; |
| 10464 | return 0; |
| 10465 | } |
| 10466 | _ACEOF |
| 10467 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10469 | (eval $ac_link) 2>conftest.er1 |
| 10470 | ac_status=$? |
| 10471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10472 | rm -f conftest.er1 |
| 10473 | cat conftest.err >&5 |
| 10474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10475 | (exit $ac_status); } && |
| 10476 | { ac_try='test -z "$ac_c_werror_flag" |
| 10477 | || test ! -s conftest.err' |
| 10478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10479 | (eval $ac_try) 2>&5 |
| 10480 | ac_status=$? |
| 10481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10482 | (exit $ac_status); }; } && |
| 10483 | { ac_try='test -s conftest$ac_exeext' |
| 10484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10485 | (eval $ac_try) 2>&5 |
| 10486 | ac_status=$? |
| 10487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10488 | (exit $ac_status); }; }; then |
| 10489 | ac_cv_search_waddstr="-l$ac_lib" |
| 10490 | break |
| 10491 | else |
| 10492 | echo "$as_me: failed program was:" >&5 |
| 10493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10494 | |
| 10495 | fi |
| 10496 | rm -f conftest.err conftest.$ac_objext \ |
| 10497 | conftest$ac_exeext conftest.$ac_ext |
| 10498 | done |
| 10499 | fi |
| 10500 | LIBS=$ac_func_search_save_LIBS |
| 10501 | fi |
| 10502 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 |
| 10503 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 |
| 10504 | if test "$ac_cv_search_waddstr" != no; then |
| 10505 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" |
| 10506 | |
| 10507 | fi |
| 10508 | |
| 10509 | |
| 10510 | if test "$ac_cv_search_waddstr" != no; then |
| 10511 | curses_found=yes |
| 10512 | fi |
| 10513 | fi |
| 10514 | |
| 10515 | # Check whether we should enable the TUI, but only do so if we really |
| 10516 | # can. |
| 10517 | if test x"$enable_tui" != xno; then |
| 10518 | if test -d $srcdir/tui; then |
| 10519 | if test "$curses_found" != no; then |
| 10520 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" |
| 10521 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" |
| 10522 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" |
| 10523 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" |
| 10524 | CONFIG_ALL="${CONFIG_ALL} all-tui" |
| 10525 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" |
| 10526 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" |
| 10527 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" |
| 10528 | else |
| 10529 | if test x"$enable_tui" = xyes; then |
| 10530 | { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5 |
| 10531 | echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;} |
| 10532 | { (exit 1); exit 1; }; } |
| 10533 | else |
| 10534 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
| 10535 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} |
| 10536 | fi |
| 10537 | fi |
| 10538 | fi |
| 10539 | fi |
| 10540 | |
| 10541 | # Since GDB uses Readline, we need termcap functionality. In many |
| 10542 | # cases this will be provided by the curses library, but some systems |
| 10543 | # have a seperate termcap library, or no curses library at all. |
| 10544 | |
| 10545 | case $host_os in |
| 10546 | cygwin*) |
| 10547 | if test -d $srcdir/libtermcap; then |
| 10548 | LIBS="../libtermcap/libtermcap.a $LIBS" |
| 10549 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" |
| 10550 | fi ;; |
| 10551 | go32* | *djgpp*) |
| 10552 | ac_cv_search_tgetent="none required" |
| 10553 | ;; |
| 10554 | *mingw32*) |
| 10555 | ac_cv_search_tgetent="none required" |
| 10556 | CONFIG_OBS="$CONFIG_OBS windows-termcap.o" |
| 10557 | ;; |
| 10558 | esac |
| 10559 | |
| 10560 | # These are the libraries checked by Readline. |
| 10561 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
| 10562 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 |
| 10563 | if test "${ac_cv_search_tgetent+set}" = set; then |
| 10564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10565 | else |
| 10566 | ac_func_search_save_LIBS=$LIBS |
| 10567 | ac_cv_search_tgetent=no |
| 10568 | cat >conftest.$ac_ext <<_ACEOF |
| 10569 | /* confdefs.h. */ |
| 10570 | _ACEOF |
| 10571 | cat confdefs.h >>conftest.$ac_ext |
| 10572 | cat >>conftest.$ac_ext <<_ACEOF |
| 10573 | /* end confdefs.h. */ |
| 10574 | |
| 10575 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10576 | #ifdef __cplusplus |
| 10577 | extern "C" |
| 10578 | #endif |
| 10579 | /* We use char because int might match the return type of a gcc2 |
| 10580 | builtin and then its argument prototype would still apply. */ |
| 10581 | char tgetent (); |
| 10582 | int |
| 10583 | main () |
| 10584 | { |
| 10585 | tgetent (); |
| 10586 | ; |
| 10587 | return 0; |
| 10588 | } |
| 10589 | _ACEOF |
| 10590 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10592 | (eval $ac_link) 2>conftest.er1 |
| 10593 | ac_status=$? |
| 10594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10595 | rm -f conftest.er1 |
| 10596 | cat conftest.err >&5 |
| 10597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10598 | (exit $ac_status); } && |
| 10599 | { ac_try='test -z "$ac_c_werror_flag" |
| 10600 | || test ! -s conftest.err' |
| 10601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10602 | (eval $ac_try) 2>&5 |
| 10603 | ac_status=$? |
| 10604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10605 | (exit $ac_status); }; } && |
| 10606 | { ac_try='test -s conftest$ac_exeext' |
| 10607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10608 | (eval $ac_try) 2>&5 |
| 10609 | ac_status=$? |
| 10610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10611 | (exit $ac_status); }; }; then |
| 10612 | ac_cv_search_tgetent="none required" |
| 10613 | else |
| 10614 | echo "$as_me: failed program was:" >&5 |
| 10615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10616 | |
| 10617 | fi |
| 10618 | rm -f conftest.err conftest.$ac_objext \ |
| 10619 | conftest$ac_exeext conftest.$ac_ext |
| 10620 | if test "$ac_cv_search_tgetent" = no; then |
| 10621 | for ac_lib in termcap tinfo curses ncurses; do |
| 10622 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10623 | cat >conftest.$ac_ext <<_ACEOF |
| 10624 | /* confdefs.h. */ |
| 10625 | _ACEOF |
| 10626 | cat confdefs.h >>conftest.$ac_ext |
| 10627 | cat >>conftest.$ac_ext <<_ACEOF |
| 10628 | /* end confdefs.h. */ |
| 10629 | |
| 10630 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10631 | #ifdef __cplusplus |
| 10632 | extern "C" |
| 10633 | #endif |
| 10634 | /* We use char because int might match the return type of a gcc2 |
| 10635 | builtin and then its argument prototype would still apply. */ |
| 10636 | char tgetent (); |
| 10637 | int |
| 10638 | main () |
| 10639 | { |
| 10640 | tgetent (); |
| 10641 | ; |
| 10642 | return 0; |
| 10643 | } |
| 10644 | _ACEOF |
| 10645 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10647 | (eval $ac_link) 2>conftest.er1 |
| 10648 | ac_status=$? |
| 10649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10650 | rm -f conftest.er1 |
| 10651 | cat conftest.err >&5 |
| 10652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10653 | (exit $ac_status); } && |
| 10654 | { ac_try='test -z "$ac_c_werror_flag" |
| 10655 | || test ! -s conftest.err' |
| 10656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10657 | (eval $ac_try) 2>&5 |
| 10658 | ac_status=$? |
| 10659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10660 | (exit $ac_status); }; } && |
| 10661 | { ac_try='test -s conftest$ac_exeext' |
| 10662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10663 | (eval $ac_try) 2>&5 |
| 10664 | ac_status=$? |
| 10665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10666 | (exit $ac_status); }; }; then |
| 10667 | ac_cv_search_tgetent="-l$ac_lib" |
| 10668 | break |
| 10669 | else |
| 10670 | echo "$as_me: failed program was:" >&5 |
| 10671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10672 | |
| 10673 | fi |
| 10674 | rm -f conftest.err conftest.$ac_objext \ |
| 10675 | conftest$ac_exeext conftest.$ac_ext |
| 10676 | done |
| 10677 | fi |
| 10678 | LIBS=$ac_func_search_save_LIBS |
| 10679 | fi |
| 10680 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
| 10681 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 |
| 10682 | if test "$ac_cv_search_tgetent" != no; then |
| 10683 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
| 10684 | |
| 10685 | fi |
| 10686 | |
| 10687 | |
| 10688 | if test "$ac_cv_search_tgetent" = no; then |
| 10689 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 |
| 10690 | echo "$as_me: error: no termcap library found" >&2;} |
| 10691 | { (exit 1); exit 1; }; } |
| 10692 | fi |
| 10693 | |
| 10694 | |
| 10695 | # Check whether --with-system-readline or --without-system-readline was given. |
| 10696 | if test "${with_system_readline+set}" = set; then |
| 10697 | withval="$with_system_readline" |
| 10698 | |
| 10699 | fi; |
| 10700 | |
| 10701 | if test "$with_system_readline" = yes; then |
| 10702 | READLINE=-lreadline |
| 10703 | READLINE_DEPS= |
| 10704 | READLINE_CFLAGS= |
| 10705 | else |
| 10706 | READLINE='$(READLINE_DIR)/libreadline.a' |
| 10707 | READLINE_DEPS='$(READLINE)' |
| 10708 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' |
| 10709 | fi |
| 10710 | |
| 10711 | |
| 10712 | |
| 10713 | |
| 10714 | |
| 10715 | # Check whether --with-expat or --without-expat was given. |
| 10716 | if test "${with_expat+set}" = set; then |
| 10717 | withval="$with_expat" |
| 10718 | |
| 10719 | else |
| 10720 | with_expat=auto |
| 10721 | fi; |
| 10722 | echo "$as_me:$LINENO: checking whether to use expat" >&5 |
| 10723 | echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6 |
| 10724 | echo "$as_me:$LINENO: result: $with_expat" >&5 |
| 10725 | echo "${ECHO_T}$with_expat" >&6 |
| 10726 | |
| 10727 | if test "${with_expat}" = no; then |
| 10728 | { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5 |
| 10729 | echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;} |
| 10730 | HAVE_LIBEXPAT=no |
| 10731 | else |
| 10732 | |
| 10733 | if test "X$prefix" = "XNONE"; then |
| 10734 | acl_final_prefix="$ac_default_prefix" |
| 10735 | else |
| 10736 | acl_final_prefix="$prefix" |
| 10737 | fi |
| 10738 | if test "X$exec_prefix" = "XNONE"; then |
| 10739 | acl_final_exec_prefix='${prefix}' |
| 10740 | else |
| 10741 | acl_final_exec_prefix="$exec_prefix" |
| 10742 | fi |
| 10743 | acl_save_prefix="$prefix" |
| 10744 | prefix="$acl_final_prefix" |
| 10745 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 10746 | prefix="$acl_save_prefix" |
| 10747 | |
| 10748 | |
| 10749 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 10750 | if test "${with_gnu_ld+set}" = set; then |
| 10751 | withval="$with_gnu_ld" |
| 10752 | test "$withval" = no || with_gnu_ld=yes |
| 10753 | else |
| 10754 | with_gnu_ld=no |
| 10755 | fi; |
| 10756 | # Prepare PATH_SEPARATOR. |
| 10757 | # The user is always right. |
| 10758 | if test "${PATH_SEPARATOR+set}" != set; then |
| 10759 | echo "#! /bin/sh" >conf$$.sh |
| 10760 | echo "exit 0" >>conf$$.sh |
| 10761 | chmod +x conf$$.sh |
| 10762 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 10763 | PATH_SEPARATOR=';' |
| 10764 | else |
| 10765 | PATH_SEPARATOR=: |
| 10766 | fi |
| 10767 | rm -f conf$$.sh |
| 10768 | fi |
| 10769 | ac_prog=ld |
| 10770 | if test "$GCC" = yes; then |
| 10771 | # Check if gcc -print-prog-name=ld gives a path. |
| 10772 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 10773 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 10774 | case $host in |
| 10775 | *-*-mingw*) |
| 10776 | # gcc leaves a trailing carriage return which upsets mingw |
| 10777 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 10778 | *) |
| 10779 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 10780 | esac |
| 10781 | case $ac_prog in |
| 10782 | # Accept absolute paths. |
| 10783 | [\\/]* | [A-Za-z]:[\\/]*) |
| 10784 | re_direlt='/[^/][^/]*/\.\./' |
| 10785 | # Canonicalize the path of ld |
| 10786 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 10787 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 10788 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 10789 | done |
| 10790 | test -z "$LD" && LD="$ac_prog" |
| 10791 | ;; |
| 10792 | "") |
| 10793 | # If it fails, then pretend we aren't using GCC. |
| 10794 | ac_prog=ld |
| 10795 | ;; |
| 10796 | *) |
| 10797 | # If it is relative, then search for the first ld in PATH. |
| 10798 | with_gnu_ld=unknown |
| 10799 | ;; |
| 10800 | esac |
| 10801 | elif test "$with_gnu_ld" = yes; then |
| 10802 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 10803 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 10804 | else |
| 10805 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 10806 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 10807 | fi |
| 10808 | if test "${acl_cv_path_LD+set}" = set; then |
| 10809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10810 | else |
| 10811 | if test -z "$LD"; then |
| 10812 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 10813 | for ac_dir in $PATH; do |
| 10814 | test -z "$ac_dir" && ac_dir=. |
| 10815 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 10816 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 10817 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 10818 | # but apparently some GNU ld's only accept -v. |
| 10819 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 10820 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 10821 | test "$with_gnu_ld" != no && break |
| 10822 | else |
| 10823 | test "$with_gnu_ld" != yes && break |
| 10824 | fi |
| 10825 | fi |
| 10826 | done |
| 10827 | IFS="$ac_save_ifs" |
| 10828 | else |
| 10829 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 10830 | fi |
| 10831 | fi |
| 10832 | |
| 10833 | LD="$acl_cv_path_LD" |
| 10834 | if test -n "$LD"; then |
| 10835 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 10836 | echo "${ECHO_T}$LD" >&6 |
| 10837 | else |
| 10838 | echo "$as_me:$LINENO: result: no" >&5 |
| 10839 | echo "${ECHO_T}no" >&6 |
| 10840 | fi |
| 10841 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 10842 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 10843 | { (exit 1); exit 1; }; } |
| 10844 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 10845 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 10846 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 10847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10848 | else |
| 10849 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 10850 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 10851 | acl_cv_prog_gnu_ld=yes |
| 10852 | else |
| 10853 | acl_cv_prog_gnu_ld=no |
| 10854 | fi |
| 10855 | fi |
| 10856 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 10857 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 |
| 10858 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 10859 | |
| 10860 | |
| 10861 | |
| 10862 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 10863 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 |
| 10864 | if test "${acl_cv_rpath+set}" = set; then |
| 10865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10866 | else |
| 10867 | |
| 10868 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 10869 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 10870 | . ./conftest.sh |
| 10871 | rm -f ./conftest.sh |
| 10872 | acl_cv_rpath=done |
| 10873 | |
| 10874 | fi |
| 10875 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 10876 | echo "${ECHO_T}$acl_cv_rpath" >&6 |
| 10877 | wl="$acl_cv_wl" |
| 10878 | libext="$acl_cv_libext" |
| 10879 | shlibext="$acl_cv_shlibext" |
| 10880 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 10881 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 10882 | hardcode_direct="$acl_cv_hardcode_direct" |
| 10883 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 10884 | # Check whether --enable-rpath or --disable-rpath was given. |
| 10885 | if test "${enable_rpath+set}" = set; then |
| 10886 | enableval="$enable_rpath" |
| 10887 | : |
| 10888 | else |
| 10889 | enable_rpath=yes |
| 10890 | fi; |
| 10891 | |
| 10892 | |
| 10893 | |
| 10894 | |
| 10895 | |
| 10896 | |
| 10897 | |
| 10898 | |
| 10899 | |
| 10900 | use_additional=yes |
| 10901 | |
| 10902 | acl_save_prefix="$prefix" |
| 10903 | prefix="$acl_final_prefix" |
| 10904 | acl_save_exec_prefix="$exec_prefix" |
| 10905 | exec_prefix="$acl_final_exec_prefix" |
| 10906 | |
| 10907 | eval additional_includedir=\"$includedir\" |
| 10908 | eval additional_libdir=\"$libdir\" |
| 10909 | |
| 10910 | exec_prefix="$acl_save_exec_prefix" |
| 10911 | prefix="$acl_save_prefix" |
| 10912 | |
| 10913 | |
| 10914 | # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given. |
| 10915 | if test "${with_libexpat_prefix+set}" = set; then |
| 10916 | withval="$with_libexpat_prefix" |
| 10917 | |
| 10918 | if test "X$withval" = "Xno"; then |
| 10919 | use_additional=no |
| 10920 | else |
| 10921 | if test "X$withval" = "X"; then |
| 10922 | |
| 10923 | acl_save_prefix="$prefix" |
| 10924 | prefix="$acl_final_prefix" |
| 10925 | acl_save_exec_prefix="$exec_prefix" |
| 10926 | exec_prefix="$acl_final_exec_prefix" |
| 10927 | |
| 10928 | eval additional_includedir=\"$includedir\" |
| 10929 | eval additional_libdir=\"$libdir\" |
| 10930 | |
| 10931 | exec_prefix="$acl_save_exec_prefix" |
| 10932 | prefix="$acl_save_prefix" |
| 10933 | |
| 10934 | else |
| 10935 | additional_includedir="$withval/include" |
| 10936 | additional_libdir="$withval/lib" |
| 10937 | fi |
| 10938 | fi |
| 10939 | |
| 10940 | fi; |
| 10941 | LIBEXPAT= |
| 10942 | LTLIBEXPAT= |
| 10943 | INCEXPAT= |
| 10944 | rpathdirs= |
| 10945 | ltrpathdirs= |
| 10946 | names_already_handled= |
| 10947 | names_next_round='expat ' |
| 10948 | while test -n "$names_next_round"; do |
| 10949 | names_this_round="$names_next_round" |
| 10950 | names_next_round= |
| 10951 | for name in $names_this_round; do |
| 10952 | already_handled= |
| 10953 | for n in $names_already_handled; do |
| 10954 | if test "$n" = "$name"; then |
| 10955 | already_handled=yes |
| 10956 | break |
| 10957 | fi |
| 10958 | done |
| 10959 | if test -z "$already_handled"; then |
| 10960 | names_already_handled="$names_already_handled $name" |
| 10961 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10962 | eval value=\"\$HAVE_LIB$uppername\" |
| 10963 | if test -n "$value"; then |
| 10964 | if test "$value" = yes; then |
| 10965 | eval value=\"\$LIB$uppername\" |
| 10966 | test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" |
| 10967 | eval value=\"\$LTLIB$uppername\" |
| 10968 | test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" |
| 10969 | else |
| 10970 | : |
| 10971 | fi |
| 10972 | else |
| 10973 | found_dir= |
| 10974 | found_la= |
| 10975 | found_so= |
| 10976 | found_a= |
| 10977 | if test $use_additional = yes; then |
| 10978 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 10979 | found_dir="$additional_libdir" |
| 10980 | found_so="$additional_libdir/lib$name.$shlibext" |
| 10981 | if test -f "$additional_libdir/lib$name.la"; then |
| 10982 | found_la="$additional_libdir/lib$name.la" |
| 10983 | fi |
| 10984 | else |
| 10985 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 10986 | found_dir="$additional_libdir" |
| 10987 | found_a="$additional_libdir/lib$name.$libext" |
| 10988 | if test -f "$additional_libdir/lib$name.la"; then |
| 10989 | found_la="$additional_libdir/lib$name.la" |
| 10990 | fi |
| 10991 | fi |
| 10992 | fi |
| 10993 | fi |
| 10994 | if test "X$found_dir" = "X"; then |
| 10995 | for x in $LDFLAGS $LTLIBEXPAT; do |
| 10996 | |
| 10997 | acl_save_prefix="$prefix" |
| 10998 | prefix="$acl_final_prefix" |
| 10999 | acl_save_exec_prefix="$exec_prefix" |
| 11000 | exec_prefix="$acl_final_exec_prefix" |
| 11001 | eval x=\"$x\" |
| 11002 | exec_prefix="$acl_save_exec_prefix" |
| 11003 | prefix="$acl_save_prefix" |
| 11004 | |
| 11005 | case "$x" in |
| 11006 | -L*) |
| 11007 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 11008 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 11009 | found_dir="$dir" |
| 11010 | found_so="$dir/lib$name.$shlibext" |
| 11011 | if test -f "$dir/lib$name.la"; then |
| 11012 | found_la="$dir/lib$name.la" |
| 11013 | fi |
| 11014 | else |
| 11015 | if test -f "$dir/lib$name.$libext"; then |
| 11016 | found_dir="$dir" |
| 11017 | found_a="$dir/lib$name.$libext" |
| 11018 | if test -f "$dir/lib$name.la"; then |
| 11019 | found_la="$dir/lib$name.la" |
| 11020 | fi |
| 11021 | fi |
| 11022 | fi |
| 11023 | ;; |
| 11024 | esac |
| 11025 | if test "X$found_dir" != "X"; then |
| 11026 | break |
| 11027 | fi |
| 11028 | done |
| 11029 | fi |
| 11030 | if test "X$found_dir" != "X"; then |
| 11031 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" |
| 11032 | if test "X$found_so" != "X"; then |
| 11033 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 11034 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 11035 | else |
| 11036 | haveit= |
| 11037 | for x in $ltrpathdirs; do |
| 11038 | if test "X$x" = "X$found_dir"; then |
| 11039 | haveit=yes |
| 11040 | break |
| 11041 | fi |
| 11042 | done |
| 11043 | if test -z "$haveit"; then |
| 11044 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 11045 | fi |
| 11046 | if test "$hardcode_direct" = yes; then |
| 11047 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 11048 | else |
| 11049 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 11050 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 11051 | haveit= |
| 11052 | for x in $rpathdirs; do |
| 11053 | if test "X$x" = "X$found_dir"; then |
| 11054 | haveit=yes |
| 11055 | break |
| 11056 | fi |
| 11057 | done |
| 11058 | if test -z "$haveit"; then |
| 11059 | rpathdirs="$rpathdirs $found_dir" |
| 11060 | fi |
| 11061 | else |
| 11062 | haveit= |
| 11063 | for x in $LDFLAGS $LIBEXPAT; do |
| 11064 | |
| 11065 | acl_save_prefix="$prefix" |
| 11066 | prefix="$acl_final_prefix" |
| 11067 | acl_save_exec_prefix="$exec_prefix" |
| 11068 | exec_prefix="$acl_final_exec_prefix" |
| 11069 | eval x=\"$x\" |
| 11070 | exec_prefix="$acl_save_exec_prefix" |
| 11071 | prefix="$acl_save_prefix" |
| 11072 | |
| 11073 | if test "X$x" = "X-L$found_dir"; then |
| 11074 | haveit=yes |
| 11075 | break |
| 11076 | fi |
| 11077 | done |
| 11078 | if test -z "$haveit"; then |
| 11079 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" |
| 11080 | fi |
| 11081 | if test "$hardcode_minus_L" != no; then |
| 11082 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" |
| 11083 | else |
| 11084 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" |
| 11085 | fi |
| 11086 | fi |
| 11087 | fi |
| 11088 | fi |
| 11089 | else |
| 11090 | if test "X$found_a" != "X"; then |
| 11091 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" |
| 11092 | else |
| 11093 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" |
| 11094 | fi |
| 11095 | fi |
| 11096 | additional_includedir= |
| 11097 | case "$found_dir" in |
| 11098 | */lib | */lib/) |
| 11099 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 11100 | additional_includedir="$basedir/include" |
| 11101 | ;; |
| 11102 | esac |
| 11103 | if test "X$additional_includedir" != "X"; then |
| 11104 | if test "X$additional_includedir" != "X/usr/include"; then |
| 11105 | haveit= |
| 11106 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 11107 | if test -n "$GCC"; then |
| 11108 | case $host_os in |
| 11109 | linux*) haveit=yes;; |
| 11110 | esac |
| 11111 | fi |
| 11112 | fi |
| 11113 | if test -z "$haveit"; then |
| 11114 | for x in $CPPFLAGS $INCEXPAT; do |
| 11115 | |
| 11116 | acl_save_prefix="$prefix" |
| 11117 | prefix="$acl_final_prefix" |
| 11118 | acl_save_exec_prefix="$exec_prefix" |
| 11119 | exec_prefix="$acl_final_exec_prefix" |
| 11120 | eval x=\"$x\" |
| 11121 | exec_prefix="$acl_save_exec_prefix" |
| 11122 | prefix="$acl_save_prefix" |
| 11123 | |
| 11124 | if test "X$x" = "X-I$additional_includedir"; then |
| 11125 | haveit=yes |
| 11126 | break |
| 11127 | fi |
| 11128 | done |
| 11129 | if test -z "$haveit"; then |
| 11130 | if test -d "$additional_includedir"; then |
| 11131 | INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" |
| 11132 | fi |
| 11133 | fi |
| 11134 | fi |
| 11135 | fi |
| 11136 | fi |
| 11137 | if test -n "$found_la"; then |
| 11138 | save_libdir="$libdir" |
| 11139 | case "$found_la" in |
| 11140 | */* | *\\*) . "$found_la" ;; |
| 11141 | *) . "./$found_la" ;; |
| 11142 | esac |
| 11143 | libdir="$save_libdir" |
| 11144 | for dep in $dependency_libs; do |
| 11145 | case "$dep" in |
| 11146 | -L*) |
| 11147 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 11148 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 11149 | haveit= |
| 11150 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 11151 | if test -n "$GCC"; then |
| 11152 | case $host_os in |
| 11153 | linux*) haveit=yes;; |
| 11154 | esac |
| 11155 | fi |
| 11156 | fi |
| 11157 | if test -z "$haveit"; then |
| 11158 | haveit= |
| 11159 | for x in $LDFLAGS $LIBEXPAT; do |
| 11160 | |
| 11161 | acl_save_prefix="$prefix" |
| 11162 | prefix="$acl_final_prefix" |
| 11163 | acl_save_exec_prefix="$exec_prefix" |
| 11164 | exec_prefix="$acl_final_exec_prefix" |
| 11165 | eval x=\"$x\" |
| 11166 | exec_prefix="$acl_save_exec_prefix" |
| 11167 | prefix="$acl_save_prefix" |
| 11168 | |
| 11169 | if test "X$x" = "X-L$additional_libdir"; then |
| 11170 | haveit=yes |
| 11171 | break |
| 11172 | fi |
| 11173 | done |
| 11174 | if test -z "$haveit"; then |
| 11175 | if test -d "$additional_libdir"; then |
| 11176 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" |
| 11177 | fi |
| 11178 | fi |
| 11179 | haveit= |
| 11180 | for x in $LDFLAGS $LTLIBEXPAT; do |
| 11181 | |
| 11182 | acl_save_prefix="$prefix" |
| 11183 | prefix="$acl_final_prefix" |
| 11184 | acl_save_exec_prefix="$exec_prefix" |
| 11185 | exec_prefix="$acl_final_exec_prefix" |
| 11186 | eval x=\"$x\" |
| 11187 | exec_prefix="$acl_save_exec_prefix" |
| 11188 | prefix="$acl_save_prefix" |
| 11189 | |
| 11190 | if test "X$x" = "X-L$additional_libdir"; then |
| 11191 | haveit=yes |
| 11192 | break |
| 11193 | fi |
| 11194 | done |
| 11195 | if test -z "$haveit"; then |
| 11196 | if test -d "$additional_libdir"; then |
| 11197 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" |
| 11198 | fi |
| 11199 | fi |
| 11200 | fi |
| 11201 | fi |
| 11202 | ;; |
| 11203 | -R*) |
| 11204 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11205 | if test "$enable_rpath" != no; then |
| 11206 | haveit= |
| 11207 | for x in $rpathdirs; do |
| 11208 | if test "X$x" = "X$dir"; then |
| 11209 | haveit=yes |
| 11210 | break |
| 11211 | fi |
| 11212 | done |
| 11213 | if test -z "$haveit"; then |
| 11214 | rpathdirs="$rpathdirs $dir" |
| 11215 | fi |
| 11216 | haveit= |
| 11217 | for x in $ltrpathdirs; do |
| 11218 | if test "X$x" = "X$dir"; then |
| 11219 | haveit=yes |
| 11220 | break |
| 11221 | fi |
| 11222 | done |
| 11223 | if test -z "$haveit"; then |
| 11224 | ltrpathdirs="$ltrpathdirs $dir" |
| 11225 | fi |
| 11226 | fi |
| 11227 | ;; |
| 11228 | -l*) |
| 11229 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11230 | ;; |
| 11231 | *.la) |
| 11232 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11233 | ;; |
| 11234 | *) |
| 11235 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" |
| 11236 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" |
| 11237 | ;; |
| 11238 | esac |
| 11239 | done |
| 11240 | fi |
| 11241 | else |
| 11242 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" |
| 11243 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" |
| 11244 | fi |
| 11245 | fi |
| 11246 | fi |
| 11247 | done |
| 11248 | done |
| 11249 | if test "X$rpathdirs" != "X"; then |
| 11250 | if test -n "$hardcode_libdir_separator"; then |
| 11251 | alldirs= |
| 11252 | for found_dir in $rpathdirs; do |
| 11253 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 11254 | done |
| 11255 | acl_save_libdir="$libdir" |
| 11256 | libdir="$alldirs" |
| 11257 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11258 | libdir="$acl_save_libdir" |
| 11259 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" |
| 11260 | else |
| 11261 | for found_dir in $rpathdirs; do |
| 11262 | acl_save_libdir="$libdir" |
| 11263 | libdir="$found_dir" |
| 11264 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11265 | libdir="$acl_save_libdir" |
| 11266 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" |
| 11267 | done |
| 11268 | fi |
| 11269 | fi |
| 11270 | if test "X$ltrpathdirs" != "X"; then |
| 11271 | for found_dir in $ltrpathdirs; do |
| 11272 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" |
| 11273 | done |
| 11274 | fi |
| 11275 | |
| 11276 | |
| 11277 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 11278 | |
| 11279 | for element in $INCEXPAT; do |
| 11280 | haveit= |
| 11281 | for x in $CPPFLAGS; do |
| 11282 | |
| 11283 | acl_save_prefix="$prefix" |
| 11284 | prefix="$acl_final_prefix" |
| 11285 | acl_save_exec_prefix="$exec_prefix" |
| 11286 | exec_prefix="$acl_final_exec_prefix" |
| 11287 | eval x=\"$x\" |
| 11288 | exec_prefix="$acl_save_exec_prefix" |
| 11289 | prefix="$acl_save_prefix" |
| 11290 | |
| 11291 | if test "X$x" = "X$element"; then |
| 11292 | haveit=yes |
| 11293 | break |
| 11294 | fi |
| 11295 | done |
| 11296 | if test -z "$haveit"; then |
| 11297 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11298 | fi |
| 11299 | done |
| 11300 | |
| 11301 | |
| 11302 | echo "$as_me:$LINENO: checking for libexpat" >&5 |
| 11303 | echo $ECHO_N "checking for libexpat... $ECHO_C" >&6 |
| 11304 | if test "${ac_cv_libexpat+set}" = set; then |
| 11305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11306 | else |
| 11307 | |
| 11308 | ac_save_LIBS="$LIBS" |
| 11309 | LIBS="$LIBS $LIBEXPAT" |
| 11310 | cat >conftest.$ac_ext <<_ACEOF |
| 11311 | /* confdefs.h. */ |
| 11312 | _ACEOF |
| 11313 | cat confdefs.h >>conftest.$ac_ext |
| 11314 | cat >>conftest.$ac_ext <<_ACEOF |
| 11315 | /* end confdefs.h. */ |
| 11316 | #include "expat.h" |
| 11317 | int |
| 11318 | main () |
| 11319 | { |
| 11320 | XML_Parser p = XML_ParserCreate (0); |
| 11321 | ; |
| 11322 | return 0; |
| 11323 | } |
| 11324 | _ACEOF |
| 11325 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11327 | (eval $ac_link) 2>conftest.er1 |
| 11328 | ac_status=$? |
| 11329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11330 | rm -f conftest.er1 |
| 11331 | cat conftest.err >&5 |
| 11332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11333 | (exit $ac_status); } && |
| 11334 | { ac_try='test -z "$ac_c_werror_flag" |
| 11335 | || test ! -s conftest.err' |
| 11336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11337 | (eval $ac_try) 2>&5 |
| 11338 | ac_status=$? |
| 11339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11340 | (exit $ac_status); }; } && |
| 11341 | { ac_try='test -s conftest$ac_exeext' |
| 11342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11343 | (eval $ac_try) 2>&5 |
| 11344 | ac_status=$? |
| 11345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11346 | (exit $ac_status); }; }; then |
| 11347 | ac_cv_libexpat=yes |
| 11348 | else |
| 11349 | echo "$as_me: failed program was:" >&5 |
| 11350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11351 | |
| 11352 | ac_cv_libexpat=no |
| 11353 | fi |
| 11354 | rm -f conftest.err conftest.$ac_objext \ |
| 11355 | conftest$ac_exeext conftest.$ac_ext |
| 11356 | LIBS="$ac_save_LIBS" |
| 11357 | |
| 11358 | fi |
| 11359 | echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5 |
| 11360 | echo "${ECHO_T}$ac_cv_libexpat" >&6 |
| 11361 | if test "$ac_cv_libexpat" = yes; then |
| 11362 | HAVE_LIBEXPAT=yes |
| 11363 | |
| 11364 | cat >>confdefs.h <<\_ACEOF |
| 11365 | #define HAVE_LIBEXPAT 1 |
| 11366 | _ACEOF |
| 11367 | |
| 11368 | echo "$as_me:$LINENO: checking how to link with libexpat" >&5 |
| 11369 | echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6 |
| 11370 | echo "$as_me:$LINENO: result: $LIBEXPAT" >&5 |
| 11371 | echo "${ECHO_T}$LIBEXPAT" >&6 |
| 11372 | else |
| 11373 | HAVE_LIBEXPAT=no |
| 11374 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 11375 | LIBEXPAT= |
| 11376 | LTLIBEXPAT= |
| 11377 | fi |
| 11378 | |
| 11379 | |
| 11380 | |
| 11381 | |
| 11382 | |
| 11383 | |
| 11384 | if test "$HAVE_LIBEXPAT" != yes; then |
| 11385 | if test "$with_expat" = yes; then |
| 11386 | { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5 |
| 11387 | echo "$as_me: error: expat is missing or unusable" >&2;} |
| 11388 | { (exit 1); exit 1; }; } |
| 11389 | else |
| 11390 | { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5 |
| 11391 | echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;} |
| 11392 | fi |
| 11393 | else |
| 11394 | save_LIBS=$LIBS |
| 11395 | LIBS="$LIBS $LIBEXPAT" |
| 11396 | |
| 11397 | for ac_func in XML_StopParser |
| 11398 | do |
| 11399 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11400 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11401 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11402 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11404 | else |
| 11405 | cat >conftest.$ac_ext <<_ACEOF |
| 11406 | /* confdefs.h. */ |
| 11407 | _ACEOF |
| 11408 | cat confdefs.h >>conftest.$ac_ext |
| 11409 | cat >>conftest.$ac_ext <<_ACEOF |
| 11410 | /* end confdefs.h. */ |
| 11411 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11412 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11413 | #define $ac_func innocuous_$ac_func |
| 11414 | |
| 11415 | /* System header to define __stub macros and hopefully few prototypes, |
| 11416 | which can conflict with char $ac_func (); below. |
| 11417 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11418 | <limits.h> exists even on freestanding compilers. */ |
| 11419 | |
| 11420 | #ifdef __STDC__ |
| 11421 | # include <limits.h> |
| 11422 | #else |
| 11423 | # include <assert.h> |
| 11424 | #endif |
| 11425 | |
| 11426 | #undef $ac_func |
| 11427 | |
| 11428 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11429 | #ifdef __cplusplus |
| 11430 | extern "C" |
| 11431 | { |
| 11432 | #endif |
| 11433 | /* We use char because int might match the return type of a gcc2 |
| 11434 | builtin and then its argument prototype would still apply. */ |
| 11435 | char $ac_func (); |
| 11436 | /* The GNU C library defines this for functions which it implements |
| 11437 | to always fail with ENOSYS. Some functions are actually named |
| 11438 | something starting with __ and the normal name is an alias. */ |
| 11439 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11440 | choke me |
| 11441 | #else |
| 11442 | char (*f) () = $ac_func; |
| 11443 | #endif |
| 11444 | #ifdef __cplusplus |
| 11445 | } |
| 11446 | #endif |
| 11447 | |
| 11448 | int |
| 11449 | main () |
| 11450 | { |
| 11451 | return f != $ac_func; |
| 11452 | ; |
| 11453 | return 0; |
| 11454 | } |
| 11455 | _ACEOF |
| 11456 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11458 | (eval $ac_link) 2>conftest.er1 |
| 11459 | ac_status=$? |
| 11460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11461 | rm -f conftest.er1 |
| 11462 | cat conftest.err >&5 |
| 11463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11464 | (exit $ac_status); } && |
| 11465 | { ac_try='test -z "$ac_c_werror_flag" |
| 11466 | || test ! -s conftest.err' |
| 11467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11468 | (eval $ac_try) 2>&5 |
| 11469 | ac_status=$? |
| 11470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11471 | (exit $ac_status); }; } && |
| 11472 | { ac_try='test -s conftest$ac_exeext' |
| 11473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11474 | (eval $ac_try) 2>&5 |
| 11475 | ac_status=$? |
| 11476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11477 | (exit $ac_status); }; }; then |
| 11478 | eval "$as_ac_var=yes" |
| 11479 | else |
| 11480 | echo "$as_me: failed program was:" >&5 |
| 11481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11482 | |
| 11483 | eval "$as_ac_var=no" |
| 11484 | fi |
| 11485 | rm -f conftest.err conftest.$ac_objext \ |
| 11486 | conftest$ac_exeext conftest.$ac_ext |
| 11487 | fi |
| 11488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11489 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11490 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11491 | cat >>confdefs.h <<_ACEOF |
| 11492 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11493 | _ACEOF |
| 11494 | |
| 11495 | fi |
| 11496 | done |
| 11497 | |
| 11498 | LIBS=$save_LIBS |
| 11499 | fi |
| 11500 | fi |
| 11501 | |
| 11502 | |
| 11503 | |
| 11504 | |
| 11505 | # Check whether --with-python or --without-python was given. |
| 11506 | if test "${with_python+set}" = set; then |
| 11507 | withval="$with_python" |
| 11508 | |
| 11509 | else |
| 11510 | with_python=auto |
| 11511 | fi; |
| 11512 | echo "$as_me:$LINENO: checking whether to use python" >&5 |
| 11513 | echo $ECHO_N "checking whether to use python... $ECHO_C" >&6 |
| 11514 | echo "$as_me:$LINENO: result: $with_python" >&5 |
| 11515 | echo "${ECHO_T}$with_python" >&6 |
| 11516 | |
| 11517 | if test "${with_python}" = no; then |
| 11518 | { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5 |
| 11519 | echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;} |
| 11520 | have_libpython=no |
| 11521 | else |
| 11522 | case "${with_python}" in |
| 11523 | yes | auto) |
| 11524 | # Leave as empty, use defaults. |
| 11525 | python_includes= |
| 11526 | python_libs= |
| 11527 | ;; |
| 11528 | /*) |
| 11529 | python_includes="-I${with_python}/include" |
| 11530 | python_libs="-L${with_python}/lib" |
| 11531 | ;; |
| 11532 | *) |
| 11533 | { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5 |
| 11534 | echo "$as_me: error: invalid value for --with-python" >&2;} |
| 11535 | { (exit 1); exit 1; }; } |
| 11536 | ;; |
| 11537 | esac |
| 11538 | |
| 11539 | save_CPPFLAGS=$CPPFLAGS |
| 11540 | CPPFLAGS="$CPPFLAGS ${python_includes}" |
| 11541 | save_LIBS=$LIBS |
| 11542 | LIBS="$LIBS ${python_libs}" |
| 11543 | have_libpython=no |
| 11544 | if test "${have_libpython}" = no; then |
| 11545 | |
| 11546 | version=python2.6 |
| 11547 | |
| 11548 | |
| 11549 | HAVE_LIBPYTHON2_6=no |
| 11550 | echo "$as_me:$LINENO: checking for ${version}" >&5 |
| 11551 | echo $ECHO_N "checking for ${version}... $ECHO_C" >&6 |
| 11552 | save_LIBS=$LIBS |
| 11553 | LIBS="$LIBS -l${version}" |
| 11554 | cat >conftest.$ac_ext <<_ACEOF |
| 11555 | /* confdefs.h. */ |
| 11556 | _ACEOF |
| 11557 | cat confdefs.h >>conftest.$ac_ext |
| 11558 | cat >>conftest.$ac_ext <<_ACEOF |
| 11559 | /* end confdefs.h. */ |
| 11560 | #include "${version}/Python.h" |
| 11561 | int |
| 11562 | main () |
| 11563 | { |
| 11564 | Py_Initialize (); |
| 11565 | ; |
| 11566 | return 0; |
| 11567 | } |
| 11568 | _ACEOF |
| 11569 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11571 | (eval $ac_link) 2>conftest.er1 |
| 11572 | ac_status=$? |
| 11573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11574 | rm -f conftest.er1 |
| 11575 | cat conftest.err >&5 |
| 11576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11577 | (exit $ac_status); } && |
| 11578 | { ac_try='test -z "$ac_c_werror_flag" |
| 11579 | || test ! -s conftest.err' |
| 11580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11581 | (eval $ac_try) 2>&5 |
| 11582 | ac_status=$? |
| 11583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11584 | (exit $ac_status); }; } && |
| 11585 | { ac_try='test -s conftest$ac_exeext' |
| 11586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11587 | (eval $ac_try) 2>&5 |
| 11588 | ac_status=$? |
| 11589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11590 | (exit $ac_status); }; }; then |
| 11591 | HAVE_LIBPYTHON2_6=yes |
| 11592 | have_libpython=yes |
| 11593 | else |
| 11594 | echo "$as_me: failed program was:" >&5 |
| 11595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11596 | |
| 11597 | LIBS=$save_LIBS |
| 11598 | fi |
| 11599 | rm -f conftest.err conftest.$ac_objext \ |
| 11600 | conftest$ac_exeext conftest.$ac_ext |
| 11601 | echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5 |
| 11602 | echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6 |
| 11603 | |
| 11604 | if test "${HAVE_LIBPYTHON2_6}" = yes; then |
| 11605 | |
| 11606 | cat >>confdefs.h <<\_ACEOF |
| 11607 | #define HAVE_LIBPYTHON2_6 1 |
| 11608 | _ACEOF |
| 11609 | |
| 11610 | fi |
| 11611 | fi |
| 11612 | if test ${have_libpython} = no; then |
| 11613 | |
| 11614 | version=python2.5 |
| 11615 | |
| 11616 | |
| 11617 | HAVE_LIBPYTHON2_5=no |
| 11618 | echo "$as_me:$LINENO: checking for ${version}" >&5 |
| 11619 | echo $ECHO_N "checking for ${version}... $ECHO_C" >&6 |
| 11620 | save_LIBS=$LIBS |
| 11621 | LIBS="$LIBS -l${version}" |
| 11622 | cat >conftest.$ac_ext <<_ACEOF |
| 11623 | /* confdefs.h. */ |
| 11624 | _ACEOF |
| 11625 | cat confdefs.h >>conftest.$ac_ext |
| 11626 | cat >>conftest.$ac_ext <<_ACEOF |
| 11627 | /* end confdefs.h. */ |
| 11628 | #include "${version}/Python.h" |
| 11629 | int |
| 11630 | main () |
| 11631 | { |
| 11632 | Py_Initialize (); |
| 11633 | ; |
| 11634 | return 0; |
| 11635 | } |
| 11636 | _ACEOF |
| 11637 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11639 | (eval $ac_link) 2>conftest.er1 |
| 11640 | ac_status=$? |
| 11641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11642 | rm -f conftest.er1 |
| 11643 | cat conftest.err >&5 |
| 11644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11645 | (exit $ac_status); } && |
| 11646 | { ac_try='test -z "$ac_c_werror_flag" |
| 11647 | || test ! -s conftest.err' |
| 11648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11649 | (eval $ac_try) 2>&5 |
| 11650 | ac_status=$? |
| 11651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11652 | (exit $ac_status); }; } && |
| 11653 | { ac_try='test -s conftest$ac_exeext' |
| 11654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11655 | (eval $ac_try) 2>&5 |
| 11656 | ac_status=$? |
| 11657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11658 | (exit $ac_status); }; }; then |
| 11659 | HAVE_LIBPYTHON2_5=yes |
| 11660 | have_libpython=yes |
| 11661 | else |
| 11662 | echo "$as_me: failed program was:" >&5 |
| 11663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11664 | |
| 11665 | LIBS=$save_LIBS |
| 11666 | fi |
| 11667 | rm -f conftest.err conftest.$ac_objext \ |
| 11668 | conftest$ac_exeext conftest.$ac_ext |
| 11669 | echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5 |
| 11670 | echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6 |
| 11671 | |
| 11672 | if test "${HAVE_LIBPYTHON2_5}" = yes; then |
| 11673 | |
| 11674 | cat >>confdefs.h <<\_ACEOF |
| 11675 | #define HAVE_LIBPYTHON2_5 1 |
| 11676 | _ACEOF |
| 11677 | |
| 11678 | fi |
| 11679 | fi |
| 11680 | if test ${have_libpython} = no; then |
| 11681 | |
| 11682 | version=python2.4 |
| 11683 | |
| 11684 | |
| 11685 | HAVE_LIBPYTHON2_4=no |
| 11686 | echo "$as_me:$LINENO: checking for ${version}" >&5 |
| 11687 | echo $ECHO_N "checking for ${version}... $ECHO_C" >&6 |
| 11688 | save_LIBS=$LIBS |
| 11689 | LIBS="$LIBS -l${version}" |
| 11690 | cat >conftest.$ac_ext <<_ACEOF |
| 11691 | /* confdefs.h. */ |
| 11692 | _ACEOF |
| 11693 | cat confdefs.h >>conftest.$ac_ext |
| 11694 | cat >>conftest.$ac_ext <<_ACEOF |
| 11695 | /* end confdefs.h. */ |
| 11696 | #include "${version}/Python.h" |
| 11697 | int |
| 11698 | main () |
| 11699 | { |
| 11700 | Py_Initialize (); |
| 11701 | ; |
| 11702 | return 0; |
| 11703 | } |
| 11704 | _ACEOF |
| 11705 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11707 | (eval $ac_link) 2>conftest.er1 |
| 11708 | ac_status=$? |
| 11709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11710 | rm -f conftest.er1 |
| 11711 | cat conftest.err >&5 |
| 11712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11713 | (exit $ac_status); } && |
| 11714 | { ac_try='test -z "$ac_c_werror_flag" |
| 11715 | || test ! -s conftest.err' |
| 11716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11717 | (eval $ac_try) 2>&5 |
| 11718 | ac_status=$? |
| 11719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11720 | (exit $ac_status); }; } && |
| 11721 | { ac_try='test -s conftest$ac_exeext' |
| 11722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11723 | (eval $ac_try) 2>&5 |
| 11724 | ac_status=$? |
| 11725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11726 | (exit $ac_status); }; }; then |
| 11727 | HAVE_LIBPYTHON2_4=yes |
| 11728 | have_libpython=yes |
| 11729 | else |
| 11730 | echo "$as_me: failed program was:" >&5 |
| 11731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11732 | |
| 11733 | LIBS=$save_LIBS |
| 11734 | fi |
| 11735 | rm -f conftest.err conftest.$ac_objext \ |
| 11736 | conftest$ac_exeext conftest.$ac_ext |
| 11737 | echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5 |
| 11738 | echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6 |
| 11739 | |
| 11740 | if test "${HAVE_LIBPYTHON2_4}" = yes; then |
| 11741 | |
| 11742 | cat >>confdefs.h <<\_ACEOF |
| 11743 | #define HAVE_LIBPYTHON2_4 1 |
| 11744 | _ACEOF |
| 11745 | |
| 11746 | fi |
| 11747 | fi |
| 11748 | if test ${have_libpython} = no; then |
| 11749 | case "${with_python}" in |
| 11750 | yes) |
| 11751 | { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5 |
| 11752 | echo "$as_me: error: python is missing or unusable" >&2;} |
| 11753 | { (exit 1); exit 1; }; } |
| 11754 | ;; |
| 11755 | auto) |
| 11756 | { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5 |
| 11757 | echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;} |
| 11758 | ;; |
| 11759 | *) |
| 11760 | { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5 |
| 11761 | echo "$as_me: error: no usable python found at ${with_python}" >&2;} |
| 11762 | { (exit 1); exit 1; }; } |
| 11763 | ;; |
| 11764 | esac |
| 11765 | CPPFLAGS=$save_CPPFLAGS |
| 11766 | LIBS=$save_LIBS |
| 11767 | fi |
| 11768 | fi |
| 11769 | |
| 11770 | if test "${have_libpython}" = yes; then |
| 11771 | |
| 11772 | cat >>confdefs.h <<\_ACEOF |
| 11773 | #define HAVE_PYTHON 1 |
| 11774 | _ACEOF |
| 11775 | |
| 11776 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)" |
| 11777 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)" |
| 11778 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)" |
| 11779 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)" |
| 11780 | |
| 11781 | # Flags needed to compile Python code (taken from python-config --cflags). |
| 11782 | # We cannot call python-config directly because it will output whatever was |
| 11783 | # used when compiling the Python interpreter itself, including flags which |
| 11784 | # would make the python-related objects be compiled differently from the |
| 11785 | # rest of GDB (e.g., -O2 and -fPIC). |
| 11786 | if test "${GCC}" = yes; then |
| 11787 | tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv" |
| 11788 | fi |
| 11789 | |
| 11790 | if test "x${tentative_python_cflags}" != x; then |
| 11791 | echo "$as_me:$LINENO: checking compiler flags for python code" >&5 |
| 11792 | echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6 |
| 11793 | for flag in ${tentative_python_cflags}; do |
| 11794 | # Check that the compiler accepts it |
| 11795 | saved_CFLAGS="$CFLAGS" |
| 11796 | CFLAGS="$CFLAGS $flag" |
| 11797 | cat >conftest.$ac_ext <<_ACEOF |
| 11798 | /* confdefs.h. */ |
| 11799 | _ACEOF |
| 11800 | cat confdefs.h >>conftest.$ac_ext |
| 11801 | cat >>conftest.$ac_ext <<_ACEOF |
| 11802 | /* end confdefs.h. */ |
| 11803 | |
| 11804 | int |
| 11805 | main () |
| 11806 | { |
| 11807 | |
| 11808 | ; |
| 11809 | return 0; |
| 11810 | } |
| 11811 | _ACEOF |
| 11812 | rm -f conftest.$ac_objext |
| 11813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11814 | (eval $ac_compile) 2>conftest.er1 |
| 11815 | ac_status=$? |
| 11816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11817 | rm -f conftest.er1 |
| 11818 | cat conftest.err >&5 |
| 11819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11820 | (exit $ac_status); } && |
| 11821 | { ac_try='test -z "$ac_c_werror_flag" |
| 11822 | || test ! -s conftest.err' |
| 11823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11824 | (eval $ac_try) 2>&5 |
| 11825 | ac_status=$? |
| 11826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11827 | (exit $ac_status); }; } && |
| 11828 | { ac_try='test -s conftest.$ac_objext' |
| 11829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11830 | (eval $ac_try) 2>&5 |
| 11831 | ac_status=$? |
| 11832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11833 | (exit $ac_status); }; }; then |
| 11834 | PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag" |
| 11835 | else |
| 11836 | echo "$as_me: failed program was:" >&5 |
| 11837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11838 | |
| 11839 | fi |
| 11840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11841 | CFLAGS="$saved_CFLAGS" |
| 11842 | done |
| 11843 | echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5 |
| 11844 | echo "${ECHO_T}${PYTHON_CFLAGS}" >&6 |
| 11845 | fi |
| 11846 | else |
| 11847 | # Even if Python support is not compiled in, we need to have these files |
| 11848 | # included in order to recognize the GDB command "python". |
| 11849 | CONFIG_OBS="$CONFIG_OBS python.o python-value.o" |
| 11850 | CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c" |
| 11851 | fi |
| 11852 | |
| 11853 | |
| 11854 | # ------------------------- # |
| 11855 | # Checks for header files. # |
| 11856 | # ------------------------- # |
| 11857 | |
| 11858 | |
| 11859 | |
| 11860 | |
| 11861 | |
| 11862 | |
| 11863 | ac_header_dirent=no |
| 11864 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 11865 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 11866 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 11867 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 11868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11870 | else |
| 11871 | cat >conftest.$ac_ext <<_ACEOF |
| 11872 | /* confdefs.h. */ |
| 11873 | _ACEOF |
| 11874 | cat confdefs.h >>conftest.$ac_ext |
| 11875 | cat >>conftest.$ac_ext <<_ACEOF |
| 11876 | /* end confdefs.h. */ |
| 11877 | #include <sys/types.h> |
| 11878 | #include <$ac_hdr> |
| 11879 | |
| 11880 | int |
| 11881 | main () |
| 11882 | { |
| 11883 | if ((DIR *) 0) |
| 11884 | return 0; |
| 11885 | ; |
| 11886 | return 0; |
| 11887 | } |
| 11888 | _ACEOF |
| 11889 | rm -f conftest.$ac_objext |
| 11890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11891 | (eval $ac_compile) 2>conftest.er1 |
| 11892 | ac_status=$? |
| 11893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11894 | rm -f conftest.er1 |
| 11895 | cat conftest.err >&5 |
| 11896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11897 | (exit $ac_status); } && |
| 11898 | { ac_try='test -z "$ac_c_werror_flag" |
| 11899 | || test ! -s conftest.err' |
| 11900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11901 | (eval $ac_try) 2>&5 |
| 11902 | ac_status=$? |
| 11903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11904 | (exit $ac_status); }; } && |
| 11905 | { ac_try='test -s conftest.$ac_objext' |
| 11906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11907 | (eval $ac_try) 2>&5 |
| 11908 | ac_status=$? |
| 11909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11910 | (exit $ac_status); }; }; then |
| 11911 | eval "$as_ac_Header=yes" |
| 11912 | else |
| 11913 | echo "$as_me: failed program was:" >&5 |
| 11914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11915 | |
| 11916 | eval "$as_ac_Header=no" |
| 11917 | fi |
| 11918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11919 | fi |
| 11920 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11921 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11922 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11923 | cat >>confdefs.h <<_ACEOF |
| 11924 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 11925 | _ACEOF |
| 11926 | |
| 11927 | ac_header_dirent=$ac_hdr; break |
| 11928 | fi |
| 11929 | |
| 11930 | done |
| 11931 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 11932 | if test $ac_header_dirent = dirent.h; then |
| 11933 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 11934 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 11935 | if test "${ac_cv_search_opendir+set}" = set; then |
| 11936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11937 | else |
| 11938 | ac_func_search_save_LIBS=$LIBS |
| 11939 | ac_cv_search_opendir=no |
| 11940 | cat >conftest.$ac_ext <<_ACEOF |
| 11941 | /* confdefs.h. */ |
| 11942 | _ACEOF |
| 11943 | cat confdefs.h >>conftest.$ac_ext |
| 11944 | cat >>conftest.$ac_ext <<_ACEOF |
| 11945 | /* end confdefs.h. */ |
| 11946 | |
| 11947 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11948 | #ifdef __cplusplus |
| 11949 | extern "C" |
| 11950 | #endif |
| 11951 | /* We use char because int might match the return type of a gcc2 |
| 11952 | builtin and then its argument prototype would still apply. */ |
| 11953 | char opendir (); |
| 11954 | int |
| 11955 | main () |
| 11956 | { |
| 11957 | opendir (); |
| 11958 | ; |
| 11959 | return 0; |
| 11960 | } |
| 11961 | _ACEOF |
| 11962 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11964 | (eval $ac_link) 2>conftest.er1 |
| 11965 | ac_status=$? |
| 11966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11967 | rm -f conftest.er1 |
| 11968 | cat conftest.err >&5 |
| 11969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11970 | (exit $ac_status); } && |
| 11971 | { ac_try='test -z "$ac_c_werror_flag" |
| 11972 | || test ! -s conftest.err' |
| 11973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11974 | (eval $ac_try) 2>&5 |
| 11975 | ac_status=$? |
| 11976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11977 | (exit $ac_status); }; } && |
| 11978 | { ac_try='test -s conftest$ac_exeext' |
| 11979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11980 | (eval $ac_try) 2>&5 |
| 11981 | ac_status=$? |
| 11982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11983 | (exit $ac_status); }; }; then |
| 11984 | ac_cv_search_opendir="none required" |
| 11985 | else |
| 11986 | echo "$as_me: failed program was:" >&5 |
| 11987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11988 | |
| 11989 | fi |
| 11990 | rm -f conftest.err conftest.$ac_objext \ |
| 11991 | conftest$ac_exeext conftest.$ac_ext |
| 11992 | if test "$ac_cv_search_opendir" = no; then |
| 11993 | for ac_lib in dir; do |
| 11994 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11995 | cat >conftest.$ac_ext <<_ACEOF |
| 11996 | /* confdefs.h. */ |
| 11997 | _ACEOF |
| 11998 | cat confdefs.h >>conftest.$ac_ext |
| 11999 | cat >>conftest.$ac_ext <<_ACEOF |
| 12000 | /* end confdefs.h. */ |
| 12001 | |
| 12002 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12003 | #ifdef __cplusplus |
| 12004 | extern "C" |
| 12005 | #endif |
| 12006 | /* We use char because int might match the return type of a gcc2 |
| 12007 | builtin and then its argument prototype would still apply. */ |
| 12008 | char opendir (); |
| 12009 | int |
| 12010 | main () |
| 12011 | { |
| 12012 | opendir (); |
| 12013 | ; |
| 12014 | return 0; |
| 12015 | } |
| 12016 | _ACEOF |
| 12017 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12019 | (eval $ac_link) 2>conftest.er1 |
| 12020 | ac_status=$? |
| 12021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12022 | rm -f conftest.er1 |
| 12023 | cat conftest.err >&5 |
| 12024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12025 | (exit $ac_status); } && |
| 12026 | { ac_try='test -z "$ac_c_werror_flag" |
| 12027 | || test ! -s conftest.err' |
| 12028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12029 | (eval $ac_try) 2>&5 |
| 12030 | ac_status=$? |
| 12031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12032 | (exit $ac_status); }; } && |
| 12033 | { ac_try='test -s conftest$ac_exeext' |
| 12034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12035 | (eval $ac_try) 2>&5 |
| 12036 | ac_status=$? |
| 12037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12038 | (exit $ac_status); }; }; then |
| 12039 | ac_cv_search_opendir="-l$ac_lib" |
| 12040 | break |
| 12041 | else |
| 12042 | echo "$as_me: failed program was:" >&5 |
| 12043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12044 | |
| 12045 | fi |
| 12046 | rm -f conftest.err conftest.$ac_objext \ |
| 12047 | conftest$ac_exeext conftest.$ac_ext |
| 12048 | done |
| 12049 | fi |
| 12050 | LIBS=$ac_func_search_save_LIBS |
| 12051 | fi |
| 12052 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 12053 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 12054 | if test "$ac_cv_search_opendir" != no; then |
| 12055 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 12056 | |
| 12057 | fi |
| 12058 | |
| 12059 | else |
| 12060 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 12061 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 12062 | if test "${ac_cv_search_opendir+set}" = set; then |
| 12063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12064 | else |
| 12065 | ac_func_search_save_LIBS=$LIBS |
| 12066 | ac_cv_search_opendir=no |
| 12067 | cat >conftest.$ac_ext <<_ACEOF |
| 12068 | /* confdefs.h. */ |
| 12069 | _ACEOF |
| 12070 | cat confdefs.h >>conftest.$ac_ext |
| 12071 | cat >>conftest.$ac_ext <<_ACEOF |
| 12072 | /* end confdefs.h. */ |
| 12073 | |
| 12074 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12075 | #ifdef __cplusplus |
| 12076 | extern "C" |
| 12077 | #endif |
| 12078 | /* We use char because int might match the return type of a gcc2 |
| 12079 | builtin and then its argument prototype would still apply. */ |
| 12080 | char opendir (); |
| 12081 | int |
| 12082 | main () |
| 12083 | { |
| 12084 | opendir (); |
| 12085 | ; |
| 12086 | return 0; |
| 12087 | } |
| 12088 | _ACEOF |
| 12089 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12091 | (eval $ac_link) 2>conftest.er1 |
| 12092 | ac_status=$? |
| 12093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12094 | rm -f conftest.er1 |
| 12095 | cat conftest.err >&5 |
| 12096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12097 | (exit $ac_status); } && |
| 12098 | { ac_try='test -z "$ac_c_werror_flag" |
| 12099 | || test ! -s conftest.err' |
| 12100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12101 | (eval $ac_try) 2>&5 |
| 12102 | ac_status=$? |
| 12103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12104 | (exit $ac_status); }; } && |
| 12105 | { ac_try='test -s conftest$ac_exeext' |
| 12106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12107 | (eval $ac_try) 2>&5 |
| 12108 | ac_status=$? |
| 12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12110 | (exit $ac_status); }; }; then |
| 12111 | ac_cv_search_opendir="none required" |
| 12112 | else |
| 12113 | echo "$as_me: failed program was:" >&5 |
| 12114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12115 | |
| 12116 | fi |
| 12117 | rm -f conftest.err conftest.$ac_objext \ |
| 12118 | conftest$ac_exeext conftest.$ac_ext |
| 12119 | if test "$ac_cv_search_opendir" = no; then |
| 12120 | for ac_lib in x; do |
| 12121 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12122 | cat >conftest.$ac_ext <<_ACEOF |
| 12123 | /* confdefs.h. */ |
| 12124 | _ACEOF |
| 12125 | cat confdefs.h >>conftest.$ac_ext |
| 12126 | cat >>conftest.$ac_ext <<_ACEOF |
| 12127 | /* end confdefs.h. */ |
| 12128 | |
| 12129 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12130 | #ifdef __cplusplus |
| 12131 | extern "C" |
| 12132 | #endif |
| 12133 | /* We use char because int might match the return type of a gcc2 |
| 12134 | builtin and then its argument prototype would still apply. */ |
| 12135 | char opendir (); |
| 12136 | int |
| 12137 | main () |
| 12138 | { |
| 12139 | opendir (); |
| 12140 | ; |
| 12141 | return 0; |
| 12142 | } |
| 12143 | _ACEOF |
| 12144 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12146 | (eval $ac_link) 2>conftest.er1 |
| 12147 | ac_status=$? |
| 12148 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12149 | rm -f conftest.er1 |
| 12150 | cat conftest.err >&5 |
| 12151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12152 | (exit $ac_status); } && |
| 12153 | { ac_try='test -z "$ac_c_werror_flag" |
| 12154 | || test ! -s conftest.err' |
| 12155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12156 | (eval $ac_try) 2>&5 |
| 12157 | ac_status=$? |
| 12158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12159 | (exit $ac_status); }; } && |
| 12160 | { ac_try='test -s conftest$ac_exeext' |
| 12161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12162 | (eval $ac_try) 2>&5 |
| 12163 | ac_status=$? |
| 12164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12165 | (exit $ac_status); }; }; then |
| 12166 | ac_cv_search_opendir="-l$ac_lib" |
| 12167 | break |
| 12168 | else |
| 12169 | echo "$as_me: failed program was:" >&5 |
| 12170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12171 | |
| 12172 | fi |
| 12173 | rm -f conftest.err conftest.$ac_objext \ |
| 12174 | conftest$ac_exeext conftest.$ac_ext |
| 12175 | done |
| 12176 | fi |
| 12177 | LIBS=$ac_func_search_save_LIBS |
| 12178 | fi |
| 12179 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 12180 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 12181 | if test "$ac_cv_search_opendir" != no; then |
| 12182 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 12183 | |
| 12184 | fi |
| 12185 | |
| 12186 | fi |
| 12187 | |
| 12188 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 12189 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 12190 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 12191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12192 | else |
| 12193 | cat >conftest.$ac_ext <<_ACEOF |
| 12194 | /* confdefs.h. */ |
| 12195 | _ACEOF |
| 12196 | cat confdefs.h >>conftest.$ac_ext |
| 12197 | cat >>conftest.$ac_ext <<_ACEOF |
| 12198 | /* end confdefs.h. */ |
| 12199 | #include <sys/types.h> |
| 12200 | #include <sys/stat.h> |
| 12201 | |
| 12202 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 12203 | # if S_ISBLK (S_IFDIR) |
| 12204 | You lose. |
| 12205 | # endif |
| 12206 | #endif |
| 12207 | |
| 12208 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 12209 | # if S_ISBLK (S_IFCHR) |
| 12210 | You lose. |
| 12211 | # endif |
| 12212 | #endif |
| 12213 | |
| 12214 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 12215 | # if S_ISLNK (S_IFREG) |
| 12216 | You lose. |
| 12217 | # endif |
| 12218 | #endif |
| 12219 | |
| 12220 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 12221 | # if S_ISSOCK (S_IFREG) |
| 12222 | You lose. |
| 12223 | # endif |
| 12224 | #endif |
| 12225 | |
| 12226 | _ACEOF |
| 12227 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12228 | $EGREP "You lose" >/dev/null 2>&1; then |
| 12229 | ac_cv_header_stat_broken=yes |
| 12230 | else |
| 12231 | ac_cv_header_stat_broken=no |
| 12232 | fi |
| 12233 | rm -f conftest* |
| 12234 | |
| 12235 | fi |
| 12236 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 12237 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
| 12238 | if test $ac_cv_header_stat_broken = yes; then |
| 12239 | |
| 12240 | cat >>confdefs.h <<\_ACEOF |
| 12241 | #define STAT_MACROS_BROKEN 1 |
| 12242 | _ACEOF |
| 12243 | |
| 12244 | fi |
| 12245 | |
| 12246 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 12247 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 12248 | if test "${ac_cv_header_stdc+set}" = set; then |
| 12249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12250 | else |
| 12251 | cat >conftest.$ac_ext <<_ACEOF |
| 12252 | /* confdefs.h. */ |
| 12253 | _ACEOF |
| 12254 | cat confdefs.h >>conftest.$ac_ext |
| 12255 | cat >>conftest.$ac_ext <<_ACEOF |
| 12256 | /* end confdefs.h. */ |
| 12257 | #include <stdlib.h> |
| 12258 | #include <stdarg.h> |
| 12259 | #include <string.h> |
| 12260 | #include <float.h> |
| 12261 | |
| 12262 | int |
| 12263 | main () |
| 12264 | { |
| 12265 | |
| 12266 | ; |
| 12267 | return 0; |
| 12268 | } |
| 12269 | _ACEOF |
| 12270 | rm -f conftest.$ac_objext |
| 12271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12272 | (eval $ac_compile) 2>conftest.er1 |
| 12273 | ac_status=$? |
| 12274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12275 | rm -f conftest.er1 |
| 12276 | cat conftest.err >&5 |
| 12277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12278 | (exit $ac_status); } && |
| 12279 | { ac_try='test -z "$ac_c_werror_flag" |
| 12280 | || test ! -s conftest.err' |
| 12281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12282 | (eval $ac_try) 2>&5 |
| 12283 | ac_status=$? |
| 12284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12285 | (exit $ac_status); }; } && |
| 12286 | { ac_try='test -s conftest.$ac_objext' |
| 12287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12288 | (eval $ac_try) 2>&5 |
| 12289 | ac_status=$? |
| 12290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12291 | (exit $ac_status); }; }; then |
| 12292 | ac_cv_header_stdc=yes |
| 12293 | else |
| 12294 | echo "$as_me: failed program was:" >&5 |
| 12295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12296 | |
| 12297 | ac_cv_header_stdc=no |
| 12298 | fi |
| 12299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12300 | |
| 12301 | if test $ac_cv_header_stdc = yes; then |
| 12302 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 12303 | cat >conftest.$ac_ext <<_ACEOF |
| 12304 | /* confdefs.h. */ |
| 12305 | _ACEOF |
| 12306 | cat confdefs.h >>conftest.$ac_ext |
| 12307 | cat >>conftest.$ac_ext <<_ACEOF |
| 12308 | /* end confdefs.h. */ |
| 12309 | #include <string.h> |
| 12310 | |
| 12311 | _ACEOF |
| 12312 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12313 | $EGREP "memchr" >/dev/null 2>&1; then |
| 12314 | : |
| 12315 | else |
| 12316 | ac_cv_header_stdc=no |
| 12317 | fi |
| 12318 | rm -f conftest* |
| 12319 | |
| 12320 | fi |
| 12321 | |
| 12322 | if test $ac_cv_header_stdc = yes; then |
| 12323 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 12324 | cat >conftest.$ac_ext <<_ACEOF |
| 12325 | /* confdefs.h. */ |
| 12326 | _ACEOF |
| 12327 | cat confdefs.h >>conftest.$ac_ext |
| 12328 | cat >>conftest.$ac_ext <<_ACEOF |
| 12329 | /* end confdefs.h. */ |
| 12330 | #include <stdlib.h> |
| 12331 | |
| 12332 | _ACEOF |
| 12333 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12334 | $EGREP "free" >/dev/null 2>&1; then |
| 12335 | : |
| 12336 | else |
| 12337 | ac_cv_header_stdc=no |
| 12338 | fi |
| 12339 | rm -f conftest* |
| 12340 | |
| 12341 | fi |
| 12342 | |
| 12343 | if test $ac_cv_header_stdc = yes; then |
| 12344 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 12345 | if test "$cross_compiling" = yes; then |
| 12346 | : |
| 12347 | else |
| 12348 | cat >conftest.$ac_ext <<_ACEOF |
| 12349 | /* confdefs.h. */ |
| 12350 | _ACEOF |
| 12351 | cat confdefs.h >>conftest.$ac_ext |
| 12352 | cat >>conftest.$ac_ext <<_ACEOF |
| 12353 | /* end confdefs.h. */ |
| 12354 | #include <ctype.h> |
| 12355 | #if ((' ' & 0x0FF) == 0x020) |
| 12356 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 12357 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 12358 | #else |
| 12359 | # define ISLOWER(c) \ |
| 12360 | (('a' <= (c) && (c) <= 'i') \ |
| 12361 | || ('j' <= (c) && (c) <= 'r') \ |
| 12362 | || ('s' <= (c) && (c) <= 'z')) |
| 12363 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 12364 | #endif |
| 12365 | |
| 12366 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 12367 | int |
| 12368 | main () |
| 12369 | { |
| 12370 | int i; |
| 12371 | for (i = 0; i < 256; i++) |
| 12372 | if (XOR (islower (i), ISLOWER (i)) |
| 12373 | || toupper (i) != TOUPPER (i)) |
| 12374 | exit(2); |
| 12375 | exit (0); |
| 12376 | } |
| 12377 | _ACEOF |
| 12378 | rm -f conftest$ac_exeext |
| 12379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12380 | (eval $ac_link) 2>&5 |
| 12381 | ac_status=$? |
| 12382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12383 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12385 | (eval $ac_try) 2>&5 |
| 12386 | ac_status=$? |
| 12387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12388 | (exit $ac_status); }; }; then |
| 12389 | : |
| 12390 | else |
| 12391 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12392 | echo "$as_me: failed program was:" >&5 |
| 12393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12394 | |
| 12395 | ( exit $ac_status ) |
| 12396 | ac_cv_header_stdc=no |
| 12397 | fi |
| 12398 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12399 | fi |
| 12400 | fi |
| 12401 | fi |
| 12402 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 12403 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 12404 | if test $ac_cv_header_stdc = yes; then |
| 12405 | |
| 12406 | cat >>confdefs.h <<\_ACEOF |
| 12407 | #define STDC_HEADERS 1 |
| 12408 | _ACEOF |
| 12409 | |
| 12410 | fi |
| 12411 | |
| 12412 | # elf_hp.h is for HP/UX 64-bit shared library support. |
| 12413 | # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h) |
| 12414 | # unconditionally, so what's the point in checking these? |
| 12415 | |
| 12416 | |
| 12417 | |
| 12418 | |
| 12419 | |
| 12420 | |
| 12421 | |
| 12422 | |
| 12423 | |
| 12424 | |
| 12425 | |
| 12426 | |
| 12427 | |
| 12428 | |
| 12429 | |
| 12430 | |
| 12431 | |
| 12432 | |
| 12433 | |
| 12434 | |
| 12435 | |
| 12436 | |
| 12437 | |
| 12438 | |
| 12439 | |
| 12440 | |
| 12441 | |
| 12442 | |
| 12443 | |
| 12444 | |
| 12445 | |
| 12446 | |
| 12447 | |
| 12448 | |
| 12449 | |
| 12450 | |
| 12451 | |
| 12452 | for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \ |
| 12453 | thread_db.h gnu/libc-version.h signal.h stddef.h \ |
| 12454 | stdlib.h string.h memory.h strings.h sys/fault.h \ |
| 12455 | sys/file.h sys/filio.h sys/ioctl.h sys/param.h \ |
| 12456 | sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \ |
| 12457 | sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \ |
| 12458 | sys/types.h sys/wait.h wait.h termios.h termio.h \ |
| 12459 | sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h |
| 12460 | do |
| 12461 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12463 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12467 | fi |
| 12468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12469 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12470 | else |
| 12471 | # Is the header compilable? |
| 12472 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12473 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 12474 | cat >conftest.$ac_ext <<_ACEOF |
| 12475 | /* confdefs.h. */ |
| 12476 | _ACEOF |
| 12477 | cat confdefs.h >>conftest.$ac_ext |
| 12478 | cat >>conftest.$ac_ext <<_ACEOF |
| 12479 | /* end confdefs.h. */ |
| 12480 | $ac_includes_default |
| 12481 | #include <$ac_header> |
| 12482 | _ACEOF |
| 12483 | rm -f conftest.$ac_objext |
| 12484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12485 | (eval $ac_compile) 2>conftest.er1 |
| 12486 | ac_status=$? |
| 12487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12488 | rm -f conftest.er1 |
| 12489 | cat conftest.err >&5 |
| 12490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12491 | (exit $ac_status); } && |
| 12492 | { ac_try='test -z "$ac_c_werror_flag" |
| 12493 | || test ! -s conftest.err' |
| 12494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12495 | (eval $ac_try) 2>&5 |
| 12496 | ac_status=$? |
| 12497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12498 | (exit $ac_status); }; } && |
| 12499 | { ac_try='test -s conftest.$ac_objext' |
| 12500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12501 | (eval $ac_try) 2>&5 |
| 12502 | ac_status=$? |
| 12503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12504 | (exit $ac_status); }; }; then |
| 12505 | ac_header_compiler=yes |
| 12506 | else |
| 12507 | echo "$as_me: failed program was:" >&5 |
| 12508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12509 | |
| 12510 | ac_header_compiler=no |
| 12511 | fi |
| 12512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12513 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12514 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12515 | |
| 12516 | # Is the header present? |
| 12517 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12518 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12519 | cat >conftest.$ac_ext <<_ACEOF |
| 12520 | /* confdefs.h. */ |
| 12521 | _ACEOF |
| 12522 | cat confdefs.h >>conftest.$ac_ext |
| 12523 | cat >>conftest.$ac_ext <<_ACEOF |
| 12524 | /* end confdefs.h. */ |
| 12525 | #include <$ac_header> |
| 12526 | _ACEOF |
| 12527 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12528 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12529 | ac_status=$? |
| 12530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12531 | rm -f conftest.er1 |
| 12532 | cat conftest.err >&5 |
| 12533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12534 | (exit $ac_status); } >/dev/null; then |
| 12535 | if test -s conftest.err; then |
| 12536 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12537 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12538 | else |
| 12539 | ac_cpp_err= |
| 12540 | fi |
| 12541 | else |
| 12542 | ac_cpp_err=yes |
| 12543 | fi |
| 12544 | if test -z "$ac_cpp_err"; then |
| 12545 | ac_header_preproc=yes |
| 12546 | else |
| 12547 | echo "$as_me: failed program was:" >&5 |
| 12548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12549 | |
| 12550 | ac_header_preproc=no |
| 12551 | fi |
| 12552 | rm -f conftest.err conftest.$ac_ext |
| 12553 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12554 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12555 | |
| 12556 | # So? What about this header? |
| 12557 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12558 | yes:no: ) |
| 12559 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12560 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12561 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12562 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12563 | ac_header_preproc=yes |
| 12564 | ;; |
| 12565 | no:yes:* ) |
| 12566 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12567 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12568 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12569 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12570 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12571 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12572 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12573 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12574 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12575 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12576 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12577 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12578 | ( |
| 12579 | cat <<\_ASBOX |
| 12580 | ## ------------------------------------------ ## |
| 12581 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12582 | ## ------------------------------------------ ## |
| 12583 | _ASBOX |
| 12584 | ) | |
| 12585 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12586 | ;; |
| 12587 | esac |
| 12588 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12589 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12590 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12592 | else |
| 12593 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12594 | fi |
| 12595 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12596 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12597 | |
| 12598 | fi |
| 12599 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12600 | cat >>confdefs.h <<_ACEOF |
| 12601 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12602 | _ACEOF |
| 12603 | |
| 12604 | fi |
| 12605 | |
| 12606 | done |
| 12607 | |
| 12608 | |
| 12609 | for ac_header in link.h |
| 12610 | do |
| 12611 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12612 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12613 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12614 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12616 | else |
| 12617 | cat >conftest.$ac_ext <<_ACEOF |
| 12618 | /* confdefs.h. */ |
| 12619 | _ACEOF |
| 12620 | cat confdefs.h >>conftest.$ac_ext |
| 12621 | cat >>conftest.$ac_ext <<_ACEOF |
| 12622 | /* end confdefs.h. */ |
| 12623 | #if HAVE_SYS_TYPES_H |
| 12624 | # include <sys/types.h> |
| 12625 | #endif |
| 12626 | #if HAVE_NLIST_H |
| 12627 | # include <nlist.h> |
| 12628 | #endif |
| 12629 | |
| 12630 | |
| 12631 | #include <$ac_header> |
| 12632 | _ACEOF |
| 12633 | rm -f conftest.$ac_objext |
| 12634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12635 | (eval $ac_compile) 2>conftest.er1 |
| 12636 | ac_status=$? |
| 12637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12638 | rm -f conftest.er1 |
| 12639 | cat conftest.err >&5 |
| 12640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12641 | (exit $ac_status); } && |
| 12642 | { ac_try='test -z "$ac_c_werror_flag" |
| 12643 | || test ! -s conftest.err' |
| 12644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12645 | (eval $ac_try) 2>&5 |
| 12646 | ac_status=$? |
| 12647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12648 | (exit $ac_status); }; } && |
| 12649 | { ac_try='test -s conftest.$ac_objext' |
| 12650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12651 | (eval $ac_try) 2>&5 |
| 12652 | ac_status=$? |
| 12653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12654 | (exit $ac_status); }; }; then |
| 12655 | eval "$as_ac_Header=yes" |
| 12656 | else |
| 12657 | echo "$as_me: failed program was:" >&5 |
| 12658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12659 | |
| 12660 | eval "$as_ac_Header=no" |
| 12661 | fi |
| 12662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12663 | fi |
| 12664 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12665 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12666 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12667 | cat >>confdefs.h <<_ACEOF |
| 12668 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12669 | _ACEOF |
| 12670 | |
| 12671 | fi |
| 12672 | |
| 12673 | done |
| 12674 | |
| 12675 | |
| 12676 | for ac_header in sys/proc.h |
| 12677 | do |
| 12678 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12679 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12680 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12681 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12683 | else |
| 12684 | cat >conftest.$ac_ext <<_ACEOF |
| 12685 | /* confdefs.h. */ |
| 12686 | _ACEOF |
| 12687 | cat confdefs.h >>conftest.$ac_ext |
| 12688 | cat >>conftest.$ac_ext <<_ACEOF |
| 12689 | /* end confdefs.h. */ |
| 12690 | #if HAVE_SYS_PARAM_H |
| 12691 | # include <sys/param.h> |
| 12692 | #endif |
| 12693 | |
| 12694 | |
| 12695 | #include <$ac_header> |
| 12696 | _ACEOF |
| 12697 | rm -f conftest.$ac_objext |
| 12698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12699 | (eval $ac_compile) 2>conftest.er1 |
| 12700 | ac_status=$? |
| 12701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12702 | rm -f conftest.er1 |
| 12703 | cat conftest.err >&5 |
| 12704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12705 | (exit $ac_status); } && |
| 12706 | { ac_try='test -z "$ac_c_werror_flag" |
| 12707 | || test ! -s conftest.err' |
| 12708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12709 | (eval $ac_try) 2>&5 |
| 12710 | ac_status=$? |
| 12711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12712 | (exit $ac_status); }; } && |
| 12713 | { ac_try='test -s conftest.$ac_objext' |
| 12714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12715 | (eval $ac_try) 2>&5 |
| 12716 | ac_status=$? |
| 12717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12718 | (exit $ac_status); }; }; then |
| 12719 | eval "$as_ac_Header=yes" |
| 12720 | else |
| 12721 | echo "$as_me: failed program was:" >&5 |
| 12722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12723 | |
| 12724 | eval "$as_ac_Header=no" |
| 12725 | fi |
| 12726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12727 | fi |
| 12728 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12729 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12730 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12731 | cat >>confdefs.h <<_ACEOF |
| 12732 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12733 | _ACEOF |
| 12734 | |
| 12735 | fi |
| 12736 | |
| 12737 | done |
| 12738 | |
| 12739 | |
| 12740 | for ac_header in sys/user.h |
| 12741 | do |
| 12742 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12743 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12744 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12745 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12747 | else |
| 12748 | cat >conftest.$ac_ext <<_ACEOF |
| 12749 | /* confdefs.h. */ |
| 12750 | _ACEOF |
| 12751 | cat confdefs.h >>conftest.$ac_ext |
| 12752 | cat >>conftest.$ac_ext <<_ACEOF |
| 12753 | /* end confdefs.h. */ |
| 12754 | #if HAVE_SYS_PARAM_H |
| 12755 | # include <sys/param.h> |
| 12756 | #endif |
| 12757 | |
| 12758 | |
| 12759 | #include <$ac_header> |
| 12760 | _ACEOF |
| 12761 | rm -f conftest.$ac_objext |
| 12762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12763 | (eval $ac_compile) 2>conftest.er1 |
| 12764 | ac_status=$? |
| 12765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12766 | rm -f conftest.er1 |
| 12767 | cat conftest.err >&5 |
| 12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12769 | (exit $ac_status); } && |
| 12770 | { ac_try='test -z "$ac_c_werror_flag" |
| 12771 | || test ! -s conftest.err' |
| 12772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12773 | (eval $ac_try) 2>&5 |
| 12774 | ac_status=$? |
| 12775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12776 | (exit $ac_status); }; } && |
| 12777 | { ac_try='test -s conftest.$ac_objext' |
| 12778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12779 | (eval $ac_try) 2>&5 |
| 12780 | ac_status=$? |
| 12781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12782 | (exit $ac_status); }; }; then |
| 12783 | eval "$as_ac_Header=yes" |
| 12784 | else |
| 12785 | echo "$as_me: failed program was:" >&5 |
| 12786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12787 | |
| 12788 | eval "$as_ac_Header=no" |
| 12789 | fi |
| 12790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12791 | fi |
| 12792 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12793 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12794 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12795 | cat >>confdefs.h <<_ACEOF |
| 12796 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12797 | _ACEOF |
| 12798 | |
| 12799 | fi |
| 12800 | |
| 12801 | done |
| 12802 | |
| 12803 | |
| 12804 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
| 12805 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
| 12806 | # think that we don't have <curses.h> if we're using GCC. |
| 12807 | case $host_os in |
| 12808 | solaris2.[789]) |
| 12809 | if test "$GCC" = yes; then |
| 12810 | |
| 12811 | cat >>confdefs.h <<\_ACEOF |
| 12812 | #define _MSE_INT_H 1 |
| 12813 | _ACEOF |
| 12814 | |
| 12815 | fi ;; |
| 12816 | esac |
| 12817 | |
| 12818 | |
| 12819 | |
| 12820 | |
| 12821 | |
| 12822 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h |
| 12823 | do |
| 12824 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12825 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12826 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12828 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12830 | fi |
| 12831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12832 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12833 | else |
| 12834 | # Is the header compilable? |
| 12835 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12836 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 12837 | cat >conftest.$ac_ext <<_ACEOF |
| 12838 | /* confdefs.h. */ |
| 12839 | _ACEOF |
| 12840 | cat confdefs.h >>conftest.$ac_ext |
| 12841 | cat >>conftest.$ac_ext <<_ACEOF |
| 12842 | /* end confdefs.h. */ |
| 12843 | $ac_includes_default |
| 12844 | #include <$ac_header> |
| 12845 | _ACEOF |
| 12846 | rm -f conftest.$ac_objext |
| 12847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12848 | (eval $ac_compile) 2>conftest.er1 |
| 12849 | ac_status=$? |
| 12850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12851 | rm -f conftest.er1 |
| 12852 | cat conftest.err >&5 |
| 12853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12854 | (exit $ac_status); } && |
| 12855 | { ac_try='test -z "$ac_c_werror_flag" |
| 12856 | || test ! -s conftest.err' |
| 12857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12858 | (eval $ac_try) 2>&5 |
| 12859 | ac_status=$? |
| 12860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12861 | (exit $ac_status); }; } && |
| 12862 | { ac_try='test -s conftest.$ac_objext' |
| 12863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12864 | (eval $ac_try) 2>&5 |
| 12865 | ac_status=$? |
| 12866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12867 | (exit $ac_status); }; }; then |
| 12868 | ac_header_compiler=yes |
| 12869 | else |
| 12870 | echo "$as_me: failed program was:" >&5 |
| 12871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12872 | |
| 12873 | ac_header_compiler=no |
| 12874 | fi |
| 12875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12876 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12877 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12878 | |
| 12879 | # Is the header present? |
| 12880 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12881 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12882 | cat >conftest.$ac_ext <<_ACEOF |
| 12883 | /* confdefs.h. */ |
| 12884 | _ACEOF |
| 12885 | cat confdefs.h >>conftest.$ac_ext |
| 12886 | cat >>conftest.$ac_ext <<_ACEOF |
| 12887 | /* end confdefs.h. */ |
| 12888 | #include <$ac_header> |
| 12889 | _ACEOF |
| 12890 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12891 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12892 | ac_status=$? |
| 12893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12894 | rm -f conftest.er1 |
| 12895 | cat conftest.err >&5 |
| 12896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12897 | (exit $ac_status); } >/dev/null; then |
| 12898 | if test -s conftest.err; then |
| 12899 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12900 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12901 | else |
| 12902 | ac_cpp_err= |
| 12903 | fi |
| 12904 | else |
| 12905 | ac_cpp_err=yes |
| 12906 | fi |
| 12907 | if test -z "$ac_cpp_err"; then |
| 12908 | ac_header_preproc=yes |
| 12909 | else |
| 12910 | echo "$as_me: failed program was:" >&5 |
| 12911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12912 | |
| 12913 | ac_header_preproc=no |
| 12914 | fi |
| 12915 | rm -f conftest.err conftest.$ac_ext |
| 12916 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12917 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12918 | |
| 12919 | # So? What about this header? |
| 12920 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12921 | yes:no: ) |
| 12922 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12923 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12924 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12925 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12926 | ac_header_preproc=yes |
| 12927 | ;; |
| 12928 | no:yes:* ) |
| 12929 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12930 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12931 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12932 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12933 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12934 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12935 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12936 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12937 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12938 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12939 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12940 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12941 | ( |
| 12942 | cat <<\_ASBOX |
| 12943 | ## ------------------------------------------ ## |
| 12944 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 12945 | ## ------------------------------------------ ## |
| 12946 | _ASBOX |
| 12947 | ) | |
| 12948 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12949 | ;; |
| 12950 | esac |
| 12951 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12952 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12953 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12955 | else |
| 12956 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12957 | fi |
| 12958 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12959 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12960 | |
| 12961 | fi |
| 12962 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12963 | cat >>confdefs.h <<_ACEOF |
| 12964 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12965 | _ACEOF |
| 12966 | |
| 12967 | fi |
| 12968 | |
| 12969 | done |
| 12970 | |
| 12971 | |
| 12972 | for ac_header in term.h |
| 12973 | do |
| 12974 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12975 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12977 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12979 | else |
| 12980 | cat >conftest.$ac_ext <<_ACEOF |
| 12981 | /* confdefs.h. */ |
| 12982 | _ACEOF |
| 12983 | cat confdefs.h >>conftest.$ac_ext |
| 12984 | cat >>conftest.$ac_ext <<_ACEOF |
| 12985 | /* end confdefs.h. */ |
| 12986 | #if HAVE_CURSES_H |
| 12987 | # include <curses.h> |
| 12988 | #endif |
| 12989 | |
| 12990 | |
| 12991 | #include <$ac_header> |
| 12992 | _ACEOF |
| 12993 | rm -f conftest.$ac_objext |
| 12994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12995 | (eval $ac_compile) 2>conftest.er1 |
| 12996 | ac_status=$? |
| 12997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12998 | rm -f conftest.er1 |
| 12999 | cat conftest.err >&5 |
| 13000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13001 | (exit $ac_status); } && |
| 13002 | { ac_try='test -z "$ac_c_werror_flag" |
| 13003 | || test ! -s conftest.err' |
| 13004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13005 | (eval $ac_try) 2>&5 |
| 13006 | ac_status=$? |
| 13007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13008 | (exit $ac_status); }; } && |
| 13009 | { ac_try='test -s conftest.$ac_objext' |
| 13010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13011 | (eval $ac_try) 2>&5 |
| 13012 | ac_status=$? |
| 13013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13014 | (exit $ac_status); }; }; then |
| 13015 | eval "$as_ac_Header=yes" |
| 13016 | else |
| 13017 | echo "$as_me: failed program was:" >&5 |
| 13018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13019 | |
| 13020 | eval "$as_ac_Header=no" |
| 13021 | fi |
| 13022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13023 | fi |
| 13024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13025 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13026 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13027 | cat >>confdefs.h <<_ACEOF |
| 13028 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13029 | _ACEOF |
| 13030 | |
| 13031 | fi |
| 13032 | |
| 13033 | done |
| 13034 | |
| 13035 | |
| 13036 | # ------------------------- # |
| 13037 | # Checks for declarations. # |
| 13038 | # ------------------------- # |
| 13039 | |
| 13040 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
| 13041 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 |
| 13042 | if test "${ac_cv_have_decl_free+set}" = set; then |
| 13043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13044 | else |
| 13045 | cat >conftest.$ac_ext <<_ACEOF |
| 13046 | /* confdefs.h. */ |
| 13047 | _ACEOF |
| 13048 | cat confdefs.h >>conftest.$ac_ext |
| 13049 | cat >>conftest.$ac_ext <<_ACEOF |
| 13050 | /* end confdefs.h. */ |
| 13051 | $ac_includes_default |
| 13052 | int |
| 13053 | main () |
| 13054 | { |
| 13055 | #ifndef free |
| 13056 | char *p = (char *) free; |
| 13057 | #endif |
| 13058 | |
| 13059 | ; |
| 13060 | return 0; |
| 13061 | } |
| 13062 | _ACEOF |
| 13063 | rm -f conftest.$ac_objext |
| 13064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13065 | (eval $ac_compile) 2>conftest.er1 |
| 13066 | ac_status=$? |
| 13067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13068 | rm -f conftest.er1 |
| 13069 | cat conftest.err >&5 |
| 13070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13071 | (exit $ac_status); } && |
| 13072 | { ac_try='test -z "$ac_c_werror_flag" |
| 13073 | || test ! -s conftest.err' |
| 13074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13075 | (eval $ac_try) 2>&5 |
| 13076 | ac_status=$? |
| 13077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13078 | (exit $ac_status); }; } && |
| 13079 | { ac_try='test -s conftest.$ac_objext' |
| 13080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13081 | (eval $ac_try) 2>&5 |
| 13082 | ac_status=$? |
| 13083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13084 | (exit $ac_status); }; }; then |
| 13085 | ac_cv_have_decl_free=yes |
| 13086 | else |
| 13087 | echo "$as_me: failed program was:" >&5 |
| 13088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13089 | |
| 13090 | ac_cv_have_decl_free=no |
| 13091 | fi |
| 13092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13093 | fi |
| 13094 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
| 13095 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 |
| 13096 | if test $ac_cv_have_decl_free = yes; then |
| 13097 | |
| 13098 | cat >>confdefs.h <<_ACEOF |
| 13099 | #define HAVE_DECL_FREE 1 |
| 13100 | _ACEOF |
| 13101 | |
| 13102 | |
| 13103 | else |
| 13104 | cat >>confdefs.h <<_ACEOF |
| 13105 | #define HAVE_DECL_FREE 0 |
| 13106 | _ACEOF |
| 13107 | |
| 13108 | |
| 13109 | fi |
| 13110 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
| 13111 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 |
| 13112 | if test "${ac_cv_have_decl_malloc+set}" = set; then |
| 13113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13114 | else |
| 13115 | cat >conftest.$ac_ext <<_ACEOF |
| 13116 | /* confdefs.h. */ |
| 13117 | _ACEOF |
| 13118 | cat confdefs.h >>conftest.$ac_ext |
| 13119 | cat >>conftest.$ac_ext <<_ACEOF |
| 13120 | /* end confdefs.h. */ |
| 13121 | $ac_includes_default |
| 13122 | int |
| 13123 | main () |
| 13124 | { |
| 13125 | #ifndef malloc |
| 13126 | char *p = (char *) malloc; |
| 13127 | #endif |
| 13128 | |
| 13129 | ; |
| 13130 | return 0; |
| 13131 | } |
| 13132 | _ACEOF |
| 13133 | rm -f conftest.$ac_objext |
| 13134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13135 | (eval $ac_compile) 2>conftest.er1 |
| 13136 | ac_status=$? |
| 13137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13138 | rm -f conftest.er1 |
| 13139 | cat conftest.err >&5 |
| 13140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13141 | (exit $ac_status); } && |
| 13142 | { ac_try='test -z "$ac_c_werror_flag" |
| 13143 | || test ! -s conftest.err' |
| 13144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13145 | (eval $ac_try) 2>&5 |
| 13146 | ac_status=$? |
| 13147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13148 | (exit $ac_status); }; } && |
| 13149 | { ac_try='test -s conftest.$ac_objext' |
| 13150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13151 | (eval $ac_try) 2>&5 |
| 13152 | ac_status=$? |
| 13153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13154 | (exit $ac_status); }; }; then |
| 13155 | ac_cv_have_decl_malloc=yes |
| 13156 | else |
| 13157 | echo "$as_me: failed program was:" >&5 |
| 13158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13159 | |
| 13160 | ac_cv_have_decl_malloc=no |
| 13161 | fi |
| 13162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13163 | fi |
| 13164 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
| 13165 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 |
| 13166 | if test $ac_cv_have_decl_malloc = yes; then |
| 13167 | |
| 13168 | cat >>confdefs.h <<_ACEOF |
| 13169 | #define HAVE_DECL_MALLOC 1 |
| 13170 | _ACEOF |
| 13171 | |
| 13172 | |
| 13173 | else |
| 13174 | cat >>confdefs.h <<_ACEOF |
| 13175 | #define HAVE_DECL_MALLOC 0 |
| 13176 | _ACEOF |
| 13177 | |
| 13178 | |
| 13179 | fi |
| 13180 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 |
| 13181 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 |
| 13182 | if test "${ac_cv_have_decl_realloc+set}" = set; then |
| 13183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13184 | else |
| 13185 | cat >conftest.$ac_ext <<_ACEOF |
| 13186 | /* confdefs.h. */ |
| 13187 | _ACEOF |
| 13188 | cat confdefs.h >>conftest.$ac_ext |
| 13189 | cat >>conftest.$ac_ext <<_ACEOF |
| 13190 | /* end confdefs.h. */ |
| 13191 | $ac_includes_default |
| 13192 | int |
| 13193 | main () |
| 13194 | { |
| 13195 | #ifndef realloc |
| 13196 | char *p = (char *) realloc; |
| 13197 | #endif |
| 13198 | |
| 13199 | ; |
| 13200 | return 0; |
| 13201 | } |
| 13202 | _ACEOF |
| 13203 | rm -f conftest.$ac_objext |
| 13204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13205 | (eval $ac_compile) 2>conftest.er1 |
| 13206 | ac_status=$? |
| 13207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13208 | rm -f conftest.er1 |
| 13209 | cat conftest.err >&5 |
| 13210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13211 | (exit $ac_status); } && |
| 13212 | { ac_try='test -z "$ac_c_werror_flag" |
| 13213 | || test ! -s conftest.err' |
| 13214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13215 | (eval $ac_try) 2>&5 |
| 13216 | ac_status=$? |
| 13217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13218 | (exit $ac_status); }; } && |
| 13219 | { ac_try='test -s conftest.$ac_objext' |
| 13220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13221 | (eval $ac_try) 2>&5 |
| 13222 | ac_status=$? |
| 13223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13224 | (exit $ac_status); }; }; then |
| 13225 | ac_cv_have_decl_realloc=yes |
| 13226 | else |
| 13227 | echo "$as_me: failed program was:" >&5 |
| 13228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13229 | |
| 13230 | ac_cv_have_decl_realloc=no |
| 13231 | fi |
| 13232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13233 | fi |
| 13234 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
| 13235 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 |
| 13236 | if test $ac_cv_have_decl_realloc = yes; then |
| 13237 | |
| 13238 | cat >>confdefs.h <<_ACEOF |
| 13239 | #define HAVE_DECL_REALLOC 1 |
| 13240 | _ACEOF |
| 13241 | |
| 13242 | |
| 13243 | else |
| 13244 | cat >>confdefs.h <<_ACEOF |
| 13245 | #define HAVE_DECL_REALLOC 0 |
| 13246 | _ACEOF |
| 13247 | |
| 13248 | |
| 13249 | fi |
| 13250 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
| 13251 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 |
| 13252 | if test "${ac_cv_have_decl_strerror+set}" = set; then |
| 13253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13254 | else |
| 13255 | cat >conftest.$ac_ext <<_ACEOF |
| 13256 | /* confdefs.h. */ |
| 13257 | _ACEOF |
| 13258 | cat confdefs.h >>conftest.$ac_ext |
| 13259 | cat >>conftest.$ac_ext <<_ACEOF |
| 13260 | /* end confdefs.h. */ |
| 13261 | $ac_includes_default |
| 13262 | int |
| 13263 | main () |
| 13264 | { |
| 13265 | #ifndef strerror |
| 13266 | char *p = (char *) strerror; |
| 13267 | #endif |
| 13268 | |
| 13269 | ; |
| 13270 | return 0; |
| 13271 | } |
| 13272 | _ACEOF |
| 13273 | rm -f conftest.$ac_objext |
| 13274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13275 | (eval $ac_compile) 2>conftest.er1 |
| 13276 | ac_status=$? |
| 13277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13278 | rm -f conftest.er1 |
| 13279 | cat conftest.err >&5 |
| 13280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13281 | (exit $ac_status); } && |
| 13282 | { ac_try='test -z "$ac_c_werror_flag" |
| 13283 | || test ! -s conftest.err' |
| 13284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13285 | (eval $ac_try) 2>&5 |
| 13286 | ac_status=$? |
| 13287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13288 | (exit $ac_status); }; } && |
| 13289 | { ac_try='test -s conftest.$ac_objext' |
| 13290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13291 | (eval $ac_try) 2>&5 |
| 13292 | ac_status=$? |
| 13293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13294 | (exit $ac_status); }; }; then |
| 13295 | ac_cv_have_decl_strerror=yes |
| 13296 | else |
| 13297 | echo "$as_me: failed program was:" >&5 |
| 13298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13299 | |
| 13300 | ac_cv_have_decl_strerror=no |
| 13301 | fi |
| 13302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13303 | fi |
| 13304 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
| 13305 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 |
| 13306 | if test $ac_cv_have_decl_strerror = yes; then |
| 13307 | |
| 13308 | cat >>confdefs.h <<_ACEOF |
| 13309 | #define HAVE_DECL_STRERROR 1 |
| 13310 | _ACEOF |
| 13311 | |
| 13312 | |
| 13313 | else |
| 13314 | cat >>confdefs.h <<_ACEOF |
| 13315 | #define HAVE_DECL_STRERROR 0 |
| 13316 | _ACEOF |
| 13317 | |
| 13318 | |
| 13319 | fi |
| 13320 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
| 13321 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 |
| 13322 | if test "${ac_cv_have_decl_strstr+set}" = set; then |
| 13323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13324 | else |
| 13325 | cat >conftest.$ac_ext <<_ACEOF |
| 13326 | /* confdefs.h. */ |
| 13327 | _ACEOF |
| 13328 | cat confdefs.h >>conftest.$ac_ext |
| 13329 | cat >>conftest.$ac_ext <<_ACEOF |
| 13330 | /* end confdefs.h. */ |
| 13331 | $ac_includes_default |
| 13332 | int |
| 13333 | main () |
| 13334 | { |
| 13335 | #ifndef strstr |
| 13336 | char *p = (char *) strstr; |
| 13337 | #endif |
| 13338 | |
| 13339 | ; |
| 13340 | return 0; |
| 13341 | } |
| 13342 | _ACEOF |
| 13343 | rm -f conftest.$ac_objext |
| 13344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13345 | (eval $ac_compile) 2>conftest.er1 |
| 13346 | ac_status=$? |
| 13347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13348 | rm -f conftest.er1 |
| 13349 | cat conftest.err >&5 |
| 13350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13351 | (exit $ac_status); } && |
| 13352 | { ac_try='test -z "$ac_c_werror_flag" |
| 13353 | || test ! -s conftest.err' |
| 13354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13355 | (eval $ac_try) 2>&5 |
| 13356 | ac_status=$? |
| 13357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13358 | (exit $ac_status); }; } && |
| 13359 | { ac_try='test -s conftest.$ac_objext' |
| 13360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13361 | (eval $ac_try) 2>&5 |
| 13362 | ac_status=$? |
| 13363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13364 | (exit $ac_status); }; }; then |
| 13365 | ac_cv_have_decl_strstr=yes |
| 13366 | else |
| 13367 | echo "$as_me: failed program was:" >&5 |
| 13368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13369 | |
| 13370 | ac_cv_have_decl_strstr=no |
| 13371 | fi |
| 13372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13373 | fi |
| 13374 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
| 13375 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 |
| 13376 | if test $ac_cv_have_decl_strstr = yes; then |
| 13377 | |
| 13378 | cat >>confdefs.h <<_ACEOF |
| 13379 | #define HAVE_DECL_STRSTR 1 |
| 13380 | _ACEOF |
| 13381 | |
| 13382 | |
| 13383 | else |
| 13384 | cat >>confdefs.h <<_ACEOF |
| 13385 | #define HAVE_DECL_STRSTR 0 |
| 13386 | _ACEOF |
| 13387 | |
| 13388 | |
| 13389 | fi |
| 13390 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 |
| 13391 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 |
| 13392 | if test "${ac_cv_have_decl_getopt+set}" = set; then |
| 13393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13394 | else |
| 13395 | cat >conftest.$ac_ext <<_ACEOF |
| 13396 | /* confdefs.h. */ |
| 13397 | _ACEOF |
| 13398 | cat confdefs.h >>conftest.$ac_ext |
| 13399 | cat >>conftest.$ac_ext <<_ACEOF |
| 13400 | /* end confdefs.h. */ |
| 13401 | $ac_includes_default |
| 13402 | int |
| 13403 | main () |
| 13404 | { |
| 13405 | #ifndef getopt |
| 13406 | char *p = (char *) getopt; |
| 13407 | #endif |
| 13408 | |
| 13409 | ; |
| 13410 | return 0; |
| 13411 | } |
| 13412 | _ACEOF |
| 13413 | rm -f conftest.$ac_objext |
| 13414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13415 | (eval $ac_compile) 2>conftest.er1 |
| 13416 | ac_status=$? |
| 13417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13418 | rm -f conftest.er1 |
| 13419 | cat conftest.err >&5 |
| 13420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13421 | (exit $ac_status); } && |
| 13422 | { ac_try='test -z "$ac_c_werror_flag" |
| 13423 | || test ! -s conftest.err' |
| 13424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13425 | (eval $ac_try) 2>&5 |
| 13426 | ac_status=$? |
| 13427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13428 | (exit $ac_status); }; } && |
| 13429 | { ac_try='test -s conftest.$ac_objext' |
| 13430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13431 | (eval $ac_try) 2>&5 |
| 13432 | ac_status=$? |
| 13433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13434 | (exit $ac_status); }; }; then |
| 13435 | ac_cv_have_decl_getopt=yes |
| 13436 | else |
| 13437 | echo "$as_me: failed program was:" >&5 |
| 13438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13439 | |
| 13440 | ac_cv_have_decl_getopt=no |
| 13441 | fi |
| 13442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13443 | fi |
| 13444 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 |
| 13445 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 |
| 13446 | if test $ac_cv_have_decl_getopt = yes; then |
| 13447 | |
| 13448 | cat >>confdefs.h <<_ACEOF |
| 13449 | #define HAVE_DECL_GETOPT 1 |
| 13450 | _ACEOF |
| 13451 | |
| 13452 | |
| 13453 | else |
| 13454 | cat >>confdefs.h <<_ACEOF |
| 13455 | #define HAVE_DECL_GETOPT 0 |
| 13456 | _ACEOF |
| 13457 | |
| 13458 | |
| 13459 | fi |
| 13460 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
| 13461 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 |
| 13462 | if test "${ac_cv_have_decl_snprintf+set}" = set; then |
| 13463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13464 | else |
| 13465 | cat >conftest.$ac_ext <<_ACEOF |
| 13466 | /* confdefs.h. */ |
| 13467 | _ACEOF |
| 13468 | cat confdefs.h >>conftest.$ac_ext |
| 13469 | cat >>conftest.$ac_ext <<_ACEOF |
| 13470 | /* end confdefs.h. */ |
| 13471 | $ac_includes_default |
| 13472 | int |
| 13473 | main () |
| 13474 | { |
| 13475 | #ifndef snprintf |
| 13476 | char *p = (char *) snprintf; |
| 13477 | #endif |
| 13478 | |
| 13479 | ; |
| 13480 | return 0; |
| 13481 | } |
| 13482 | _ACEOF |
| 13483 | rm -f conftest.$ac_objext |
| 13484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13485 | (eval $ac_compile) 2>conftest.er1 |
| 13486 | ac_status=$? |
| 13487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13488 | rm -f conftest.er1 |
| 13489 | cat conftest.err >&5 |
| 13490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13491 | (exit $ac_status); } && |
| 13492 | { ac_try='test -z "$ac_c_werror_flag" |
| 13493 | || test ! -s conftest.err' |
| 13494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13495 | (eval $ac_try) 2>&5 |
| 13496 | ac_status=$? |
| 13497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13498 | (exit $ac_status); }; } && |
| 13499 | { ac_try='test -s conftest.$ac_objext' |
| 13500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13501 | (eval $ac_try) 2>&5 |
| 13502 | ac_status=$? |
| 13503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13504 | (exit $ac_status); }; }; then |
| 13505 | ac_cv_have_decl_snprintf=yes |
| 13506 | else |
| 13507 | echo "$as_me: failed program was:" >&5 |
| 13508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13509 | |
| 13510 | ac_cv_have_decl_snprintf=no |
| 13511 | fi |
| 13512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13513 | fi |
| 13514 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 |
| 13515 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 |
| 13516 | if test $ac_cv_have_decl_snprintf = yes; then |
| 13517 | |
| 13518 | cat >>confdefs.h <<_ACEOF |
| 13519 | #define HAVE_DECL_SNPRINTF 1 |
| 13520 | _ACEOF |
| 13521 | |
| 13522 | |
| 13523 | else |
| 13524 | cat >>confdefs.h <<_ACEOF |
| 13525 | #define HAVE_DECL_SNPRINTF 0 |
| 13526 | _ACEOF |
| 13527 | |
| 13528 | |
| 13529 | fi |
| 13530 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
| 13531 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 |
| 13532 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
| 13533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13534 | else |
| 13535 | cat >conftest.$ac_ext <<_ACEOF |
| 13536 | /* confdefs.h. */ |
| 13537 | _ACEOF |
| 13538 | cat confdefs.h >>conftest.$ac_ext |
| 13539 | cat >>conftest.$ac_ext <<_ACEOF |
| 13540 | /* end confdefs.h. */ |
| 13541 | $ac_includes_default |
| 13542 | int |
| 13543 | main () |
| 13544 | { |
| 13545 | #ifndef vsnprintf |
| 13546 | char *p = (char *) vsnprintf; |
| 13547 | #endif |
| 13548 | |
| 13549 | ; |
| 13550 | return 0; |
| 13551 | } |
| 13552 | _ACEOF |
| 13553 | rm -f conftest.$ac_objext |
| 13554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13555 | (eval $ac_compile) 2>conftest.er1 |
| 13556 | ac_status=$? |
| 13557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13558 | rm -f conftest.er1 |
| 13559 | cat conftest.err >&5 |
| 13560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13561 | (exit $ac_status); } && |
| 13562 | { ac_try='test -z "$ac_c_werror_flag" |
| 13563 | || test ! -s conftest.err' |
| 13564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13565 | (eval $ac_try) 2>&5 |
| 13566 | ac_status=$? |
| 13567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13568 | (exit $ac_status); }; } && |
| 13569 | { ac_try='test -s conftest.$ac_objext' |
| 13570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13571 | (eval $ac_try) 2>&5 |
| 13572 | ac_status=$? |
| 13573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13574 | (exit $ac_status); }; }; then |
| 13575 | ac_cv_have_decl_vsnprintf=yes |
| 13576 | else |
| 13577 | echo "$as_me: failed program was:" >&5 |
| 13578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13579 | |
| 13580 | ac_cv_have_decl_vsnprintf=no |
| 13581 | fi |
| 13582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13583 | fi |
| 13584 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
| 13585 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 |
| 13586 | if test $ac_cv_have_decl_vsnprintf = yes; then |
| 13587 | |
| 13588 | cat >>confdefs.h <<_ACEOF |
| 13589 | #define HAVE_DECL_VSNPRINTF 1 |
| 13590 | _ACEOF |
| 13591 | |
| 13592 | |
| 13593 | else |
| 13594 | cat >>confdefs.h <<_ACEOF |
| 13595 | #define HAVE_DECL_VSNPRINTF 0 |
| 13596 | _ACEOF |
| 13597 | |
| 13598 | |
| 13599 | fi |
| 13600 | |
| 13601 | |
| 13602 | |
| 13603 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 13604 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 |
| 13605 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 13606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13607 | else |
| 13608 | cat >conftest.$ac_ext <<_ACEOF |
| 13609 | /* confdefs.h. */ |
| 13610 | _ACEOF |
| 13611 | cat confdefs.h >>conftest.$ac_ext |
| 13612 | cat >>conftest.$ac_ext <<_ACEOF |
| 13613 | /* end confdefs.h. */ |
| 13614 | #include <locale.h> |
| 13615 | int |
| 13616 | main () |
| 13617 | { |
| 13618 | return LC_MESSAGES |
| 13619 | ; |
| 13620 | return 0; |
| 13621 | } |
| 13622 | _ACEOF |
| 13623 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13625 | (eval $ac_link) 2>conftest.er1 |
| 13626 | ac_status=$? |
| 13627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13628 | rm -f conftest.er1 |
| 13629 | cat conftest.err >&5 |
| 13630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13631 | (exit $ac_status); } && |
| 13632 | { ac_try='test -z "$ac_c_werror_flag" |
| 13633 | || test ! -s conftest.err' |
| 13634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13635 | (eval $ac_try) 2>&5 |
| 13636 | ac_status=$? |
| 13637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13638 | (exit $ac_status); }; } && |
| 13639 | { ac_try='test -s conftest$ac_exeext' |
| 13640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13641 | (eval $ac_try) 2>&5 |
| 13642 | ac_status=$? |
| 13643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13644 | (exit $ac_status); }; }; then |
| 13645 | am_cv_val_LC_MESSAGES=yes |
| 13646 | else |
| 13647 | echo "$as_me: failed program was:" >&5 |
| 13648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13649 | |
| 13650 | am_cv_val_LC_MESSAGES=no |
| 13651 | fi |
| 13652 | rm -f conftest.err conftest.$ac_objext \ |
| 13653 | conftest$ac_exeext conftest.$ac_ext |
| 13654 | fi |
| 13655 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 13656 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 |
| 13657 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 13658 | |
| 13659 | cat >>confdefs.h <<\_ACEOF |
| 13660 | #define HAVE_LC_MESSAGES 1 |
| 13661 | _ACEOF |
| 13662 | |
| 13663 | fi |
| 13664 | |
| 13665 | |
| 13666 | # ----------------------- # |
| 13667 | # Checks for structures. # |
| 13668 | # ----------------------- # |
| 13669 | |
| 13670 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 13671 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 13672 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 13673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13674 | else |
| 13675 | cat >conftest.$ac_ext <<_ACEOF |
| 13676 | /* confdefs.h. */ |
| 13677 | _ACEOF |
| 13678 | cat confdefs.h >>conftest.$ac_ext |
| 13679 | cat >>conftest.$ac_ext <<_ACEOF |
| 13680 | /* end confdefs.h. */ |
| 13681 | $ac_includes_default |
| 13682 | int |
| 13683 | main () |
| 13684 | { |
| 13685 | static struct stat ac_aggr; |
| 13686 | if (ac_aggr.st_blocks) |
| 13687 | return 0; |
| 13688 | ; |
| 13689 | return 0; |
| 13690 | } |
| 13691 | _ACEOF |
| 13692 | rm -f conftest.$ac_objext |
| 13693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13694 | (eval $ac_compile) 2>conftest.er1 |
| 13695 | ac_status=$? |
| 13696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13697 | rm -f conftest.er1 |
| 13698 | cat conftest.err >&5 |
| 13699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13700 | (exit $ac_status); } && |
| 13701 | { ac_try='test -z "$ac_c_werror_flag" |
| 13702 | || test ! -s conftest.err' |
| 13703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13704 | (eval $ac_try) 2>&5 |
| 13705 | ac_status=$? |
| 13706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13707 | (exit $ac_status); }; } && |
| 13708 | { ac_try='test -s conftest.$ac_objext' |
| 13709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13710 | (eval $ac_try) 2>&5 |
| 13711 | ac_status=$? |
| 13712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13713 | (exit $ac_status); }; }; then |
| 13714 | ac_cv_member_struct_stat_st_blocks=yes |
| 13715 | else |
| 13716 | echo "$as_me: failed program was:" >&5 |
| 13717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13718 | |
| 13719 | cat >conftest.$ac_ext <<_ACEOF |
| 13720 | /* confdefs.h. */ |
| 13721 | _ACEOF |
| 13722 | cat confdefs.h >>conftest.$ac_ext |
| 13723 | cat >>conftest.$ac_ext <<_ACEOF |
| 13724 | /* end confdefs.h. */ |
| 13725 | $ac_includes_default |
| 13726 | int |
| 13727 | main () |
| 13728 | { |
| 13729 | static struct stat ac_aggr; |
| 13730 | if (sizeof ac_aggr.st_blocks) |
| 13731 | return 0; |
| 13732 | ; |
| 13733 | return 0; |
| 13734 | } |
| 13735 | _ACEOF |
| 13736 | rm -f conftest.$ac_objext |
| 13737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13738 | (eval $ac_compile) 2>conftest.er1 |
| 13739 | ac_status=$? |
| 13740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13741 | rm -f conftest.er1 |
| 13742 | cat conftest.err >&5 |
| 13743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13744 | (exit $ac_status); } && |
| 13745 | { ac_try='test -z "$ac_c_werror_flag" |
| 13746 | || test ! -s conftest.err' |
| 13747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13748 | (eval $ac_try) 2>&5 |
| 13749 | ac_status=$? |
| 13750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13751 | (exit $ac_status); }; } && |
| 13752 | { ac_try='test -s conftest.$ac_objext' |
| 13753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13754 | (eval $ac_try) 2>&5 |
| 13755 | ac_status=$? |
| 13756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13757 | (exit $ac_status); }; }; then |
| 13758 | ac_cv_member_struct_stat_st_blocks=yes |
| 13759 | else |
| 13760 | echo "$as_me: failed program was:" >&5 |
| 13761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13762 | |
| 13763 | ac_cv_member_struct_stat_st_blocks=no |
| 13764 | fi |
| 13765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13766 | fi |
| 13767 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13768 | fi |
| 13769 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 13770 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 13771 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
| 13772 | |
| 13773 | cat >>confdefs.h <<_ACEOF |
| 13774 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13775 | _ACEOF |
| 13776 | |
| 13777 | |
| 13778 | fi |
| 13779 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 13780 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 13781 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 13782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13783 | else |
| 13784 | cat >conftest.$ac_ext <<_ACEOF |
| 13785 | /* confdefs.h. */ |
| 13786 | _ACEOF |
| 13787 | cat confdefs.h >>conftest.$ac_ext |
| 13788 | cat >>conftest.$ac_ext <<_ACEOF |
| 13789 | /* end confdefs.h. */ |
| 13790 | $ac_includes_default |
| 13791 | int |
| 13792 | main () |
| 13793 | { |
| 13794 | static struct stat ac_aggr; |
| 13795 | if (ac_aggr.st_blksize) |
| 13796 | return 0; |
| 13797 | ; |
| 13798 | return 0; |
| 13799 | } |
| 13800 | _ACEOF |
| 13801 | rm -f conftest.$ac_objext |
| 13802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13803 | (eval $ac_compile) 2>conftest.er1 |
| 13804 | ac_status=$? |
| 13805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13806 | rm -f conftest.er1 |
| 13807 | cat conftest.err >&5 |
| 13808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13809 | (exit $ac_status); } && |
| 13810 | { ac_try='test -z "$ac_c_werror_flag" |
| 13811 | || test ! -s conftest.err' |
| 13812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13813 | (eval $ac_try) 2>&5 |
| 13814 | ac_status=$? |
| 13815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13816 | (exit $ac_status); }; } && |
| 13817 | { ac_try='test -s conftest.$ac_objext' |
| 13818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13819 | (eval $ac_try) 2>&5 |
| 13820 | ac_status=$? |
| 13821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13822 | (exit $ac_status); }; }; then |
| 13823 | ac_cv_member_struct_stat_st_blksize=yes |
| 13824 | else |
| 13825 | echo "$as_me: failed program was:" >&5 |
| 13826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13827 | |
| 13828 | cat >conftest.$ac_ext <<_ACEOF |
| 13829 | /* confdefs.h. */ |
| 13830 | _ACEOF |
| 13831 | cat confdefs.h >>conftest.$ac_ext |
| 13832 | cat >>conftest.$ac_ext <<_ACEOF |
| 13833 | /* end confdefs.h. */ |
| 13834 | $ac_includes_default |
| 13835 | int |
| 13836 | main () |
| 13837 | { |
| 13838 | static struct stat ac_aggr; |
| 13839 | if (sizeof ac_aggr.st_blksize) |
| 13840 | return 0; |
| 13841 | ; |
| 13842 | return 0; |
| 13843 | } |
| 13844 | _ACEOF |
| 13845 | rm -f conftest.$ac_objext |
| 13846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13847 | (eval $ac_compile) 2>conftest.er1 |
| 13848 | ac_status=$? |
| 13849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13850 | rm -f conftest.er1 |
| 13851 | cat conftest.err >&5 |
| 13852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13853 | (exit $ac_status); } && |
| 13854 | { ac_try='test -z "$ac_c_werror_flag" |
| 13855 | || test ! -s conftest.err' |
| 13856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13857 | (eval $ac_try) 2>&5 |
| 13858 | ac_status=$? |
| 13859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13860 | (exit $ac_status); }; } && |
| 13861 | { ac_try='test -s conftest.$ac_objext' |
| 13862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13863 | (eval $ac_try) 2>&5 |
| 13864 | ac_status=$? |
| 13865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13866 | (exit $ac_status); }; }; then |
| 13867 | ac_cv_member_struct_stat_st_blksize=yes |
| 13868 | else |
| 13869 | echo "$as_me: failed program was:" >&5 |
| 13870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13871 | |
| 13872 | ac_cv_member_struct_stat_st_blksize=no |
| 13873 | fi |
| 13874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13875 | fi |
| 13876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13877 | fi |
| 13878 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 13879 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 13880 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
| 13881 | |
| 13882 | cat >>confdefs.h <<_ACEOF |
| 13883 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 13884 | _ACEOF |
| 13885 | |
| 13886 | |
| 13887 | fi |
| 13888 | |
| 13889 | |
| 13890 | # ------------------ # |
| 13891 | # Checks for types. # |
| 13892 | # ------------------ # |
| 13893 | |
| 13894 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 13895 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 13896 | if test "${ac_cv_type_signal+set}" = set; then |
| 13897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13898 | else |
| 13899 | cat >conftest.$ac_ext <<_ACEOF |
| 13900 | /* confdefs.h. */ |
| 13901 | _ACEOF |
| 13902 | cat confdefs.h >>conftest.$ac_ext |
| 13903 | cat >>conftest.$ac_ext <<_ACEOF |
| 13904 | /* end confdefs.h. */ |
| 13905 | #include <sys/types.h> |
| 13906 | #include <signal.h> |
| 13907 | #ifdef signal |
| 13908 | # undef signal |
| 13909 | #endif |
| 13910 | #ifdef __cplusplus |
| 13911 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 13912 | #else |
| 13913 | void (*signal ()) (); |
| 13914 | #endif |
| 13915 | |
| 13916 | int |
| 13917 | main () |
| 13918 | { |
| 13919 | int i; |
| 13920 | ; |
| 13921 | return 0; |
| 13922 | } |
| 13923 | _ACEOF |
| 13924 | rm -f conftest.$ac_objext |
| 13925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13926 | (eval $ac_compile) 2>conftest.er1 |
| 13927 | ac_status=$? |
| 13928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13929 | rm -f conftest.er1 |
| 13930 | cat conftest.err >&5 |
| 13931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13932 | (exit $ac_status); } && |
| 13933 | { ac_try='test -z "$ac_c_werror_flag" |
| 13934 | || test ! -s conftest.err' |
| 13935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13936 | (eval $ac_try) 2>&5 |
| 13937 | ac_status=$? |
| 13938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13939 | (exit $ac_status); }; } && |
| 13940 | { ac_try='test -s conftest.$ac_objext' |
| 13941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13942 | (eval $ac_try) 2>&5 |
| 13943 | ac_status=$? |
| 13944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13945 | (exit $ac_status); }; }; then |
| 13946 | ac_cv_type_signal=void |
| 13947 | else |
| 13948 | echo "$as_me: failed program was:" >&5 |
| 13949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13950 | |
| 13951 | ac_cv_type_signal=int |
| 13952 | fi |
| 13953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13954 | fi |
| 13955 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 13956 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 13957 | |
| 13958 | cat >>confdefs.h <<_ACEOF |
| 13959 | #define RETSIGTYPE $ac_cv_type_signal |
| 13960 | _ACEOF |
| 13961 | |
| 13962 | |
| 13963 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 13964 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 13965 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 13966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13967 | else |
| 13968 | cat >conftest.$ac_ext <<_ACEOF |
| 13969 | /* confdefs.h. */ |
| 13970 | _ACEOF |
| 13971 | cat confdefs.h >>conftest.$ac_ext |
| 13972 | cat >>conftest.$ac_ext <<_ACEOF |
| 13973 | /* end confdefs.h. */ |
| 13974 | #include <sys/types.h> |
| 13975 | #include <sys/socket.h> |
| 13976 | |
| 13977 | |
| 13978 | int |
| 13979 | main () |
| 13980 | { |
| 13981 | if ((socklen_t *) 0) |
| 13982 | return 0; |
| 13983 | if (sizeof (socklen_t)) |
| 13984 | return 0; |
| 13985 | ; |
| 13986 | return 0; |
| 13987 | } |
| 13988 | _ACEOF |
| 13989 | rm -f conftest.$ac_objext |
| 13990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13991 | (eval $ac_compile) 2>conftest.er1 |
| 13992 | ac_status=$? |
| 13993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13994 | rm -f conftest.er1 |
| 13995 | cat conftest.err >&5 |
| 13996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13997 | (exit $ac_status); } && |
| 13998 | { ac_try='test -z "$ac_c_werror_flag" |
| 13999 | || test ! -s conftest.err' |
| 14000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14001 | (eval $ac_try) 2>&5 |
| 14002 | ac_status=$? |
| 14003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14004 | (exit $ac_status); }; } && |
| 14005 | { ac_try='test -s conftest.$ac_objext' |
| 14006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14007 | (eval $ac_try) 2>&5 |
| 14008 | ac_status=$? |
| 14009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14010 | (exit $ac_status); }; }; then |
| 14011 | ac_cv_type_socklen_t=yes |
| 14012 | else |
| 14013 | echo "$as_me: failed program was:" >&5 |
| 14014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14015 | |
| 14016 | ac_cv_type_socklen_t=no |
| 14017 | fi |
| 14018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14019 | fi |
| 14020 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 14021 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 14022 | if test $ac_cv_type_socklen_t = yes; then |
| 14023 | |
| 14024 | cat >>confdefs.h <<_ACEOF |
| 14025 | #define HAVE_SOCKLEN_T 1 |
| 14026 | _ACEOF |
| 14027 | |
| 14028 | |
| 14029 | fi |
| 14030 | |
| 14031 | |
| 14032 | # ------------------------------------- # |
| 14033 | # Checks for compiler characteristics. # |
| 14034 | # ------------------------------------- # |
| 14035 | |
| 14036 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 14037 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 14038 | if test "${ac_cv_c_const+set}" = set; then |
| 14039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14040 | else |
| 14041 | cat >conftest.$ac_ext <<_ACEOF |
| 14042 | /* confdefs.h. */ |
| 14043 | _ACEOF |
| 14044 | cat confdefs.h >>conftest.$ac_ext |
| 14045 | cat >>conftest.$ac_ext <<_ACEOF |
| 14046 | /* end confdefs.h. */ |
| 14047 | |
| 14048 | int |
| 14049 | main () |
| 14050 | { |
| 14051 | /* FIXME: Include the comments suggested by Paul. */ |
| 14052 | #ifndef __cplusplus |
| 14053 | /* Ultrix mips cc rejects this. */ |
| 14054 | typedef int charset[2]; |
| 14055 | const charset x; |
| 14056 | /* SunOS 4.1.1 cc rejects this. */ |
| 14057 | char const *const *ccp; |
| 14058 | char **p; |
| 14059 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 14060 | struct point {int x, y;}; |
| 14061 | static struct point const zero = {0,0}; |
| 14062 | /* AIX XL C 1.02.0.0 rejects this. |
| 14063 | It does not let you subtract one const X* pointer from another in |
| 14064 | an arm of an if-expression whose if-part is not a constant |
| 14065 | expression */ |
| 14066 | const char *g = "string"; |
| 14067 | ccp = &g + (g ? g-g : 0); |
| 14068 | /* HPUX 7.0 cc rejects these. */ |
| 14069 | ++ccp; |
| 14070 | p = (char**) ccp; |
| 14071 | ccp = (char const *const *) p; |
| 14072 | { /* SCO 3.2v4 cc rejects this. */ |
| 14073 | char *t; |
| 14074 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 14075 | |
| 14076 | *t++ = 0; |
| 14077 | } |
| 14078 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 14079 | int x[] = {25, 17}; |
| 14080 | const int *foo = &x[0]; |
| 14081 | ++foo; |
| 14082 | } |
| 14083 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 14084 | typedef const int *iptr; |
| 14085 | iptr p = 0; |
| 14086 | ++p; |
| 14087 | } |
| 14088 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 14089 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 14090 | struct s { int j; const int *ap[3]; }; |
| 14091 | struct s *b; b->j = 5; |
| 14092 | } |
| 14093 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 14094 | const int foo = 10; |
| 14095 | } |
| 14096 | #endif |
| 14097 | |
| 14098 | ; |
| 14099 | return 0; |
| 14100 | } |
| 14101 | _ACEOF |
| 14102 | rm -f conftest.$ac_objext |
| 14103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14104 | (eval $ac_compile) 2>conftest.er1 |
| 14105 | ac_status=$? |
| 14106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14107 | rm -f conftest.er1 |
| 14108 | cat conftest.err >&5 |
| 14109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14110 | (exit $ac_status); } && |
| 14111 | { ac_try='test -z "$ac_c_werror_flag" |
| 14112 | || test ! -s conftest.err' |
| 14113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14114 | (eval $ac_try) 2>&5 |
| 14115 | ac_status=$? |
| 14116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14117 | (exit $ac_status); }; } && |
| 14118 | { ac_try='test -s conftest.$ac_objext' |
| 14119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14120 | (eval $ac_try) 2>&5 |
| 14121 | ac_status=$? |
| 14122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14123 | (exit $ac_status); }; }; then |
| 14124 | ac_cv_c_const=yes |
| 14125 | else |
| 14126 | echo "$as_me: failed program was:" >&5 |
| 14127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14128 | |
| 14129 | ac_cv_c_const=no |
| 14130 | fi |
| 14131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14132 | fi |
| 14133 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 14134 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 14135 | if test $ac_cv_c_const = no; then |
| 14136 | |
| 14137 | cat >>confdefs.h <<\_ACEOF |
| 14138 | #define const |
| 14139 | _ACEOF |
| 14140 | |
| 14141 | fi |
| 14142 | |
| 14143 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 14144 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 14145 | if test "${ac_cv_c_inline+set}" = set; then |
| 14146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14147 | else |
| 14148 | ac_cv_c_inline=no |
| 14149 | for ac_kw in inline __inline__ __inline; do |
| 14150 | cat >conftest.$ac_ext <<_ACEOF |
| 14151 | /* confdefs.h. */ |
| 14152 | _ACEOF |
| 14153 | cat confdefs.h >>conftest.$ac_ext |
| 14154 | cat >>conftest.$ac_ext <<_ACEOF |
| 14155 | /* end confdefs.h. */ |
| 14156 | #ifndef __cplusplus |
| 14157 | typedef int foo_t; |
| 14158 | static $ac_kw foo_t static_foo () {return 0; } |
| 14159 | $ac_kw foo_t foo () {return 0; } |
| 14160 | #endif |
| 14161 | |
| 14162 | _ACEOF |
| 14163 | rm -f conftest.$ac_objext |
| 14164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14165 | (eval $ac_compile) 2>conftest.er1 |
| 14166 | ac_status=$? |
| 14167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14168 | rm -f conftest.er1 |
| 14169 | cat conftest.err >&5 |
| 14170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14171 | (exit $ac_status); } && |
| 14172 | { ac_try='test -z "$ac_c_werror_flag" |
| 14173 | || test ! -s conftest.err' |
| 14174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14175 | (eval $ac_try) 2>&5 |
| 14176 | ac_status=$? |
| 14177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14178 | (exit $ac_status); }; } && |
| 14179 | { ac_try='test -s conftest.$ac_objext' |
| 14180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14181 | (eval $ac_try) 2>&5 |
| 14182 | ac_status=$? |
| 14183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14184 | (exit $ac_status); }; }; then |
| 14185 | ac_cv_c_inline=$ac_kw; break |
| 14186 | else |
| 14187 | echo "$as_me: failed program was:" >&5 |
| 14188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14189 | |
| 14190 | fi |
| 14191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14192 | done |
| 14193 | |
| 14194 | fi |
| 14195 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 14196 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 14197 | |
| 14198 | |
| 14199 | case $ac_cv_c_inline in |
| 14200 | inline | yes) ;; |
| 14201 | *) |
| 14202 | case $ac_cv_c_inline in |
| 14203 | no) ac_val=;; |
| 14204 | *) ac_val=$ac_cv_c_inline;; |
| 14205 | esac |
| 14206 | cat >>confdefs.h <<_ACEOF |
| 14207 | #ifndef __cplusplus |
| 14208 | #define inline $ac_val |
| 14209 | #endif |
| 14210 | _ACEOF |
| 14211 | ;; |
| 14212 | esac |
| 14213 | |
| 14214 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 14215 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 14216 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 14217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14218 | else |
| 14219 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14220 | cat >conftest.$ac_ext <<_ACEOF |
| 14221 | /* confdefs.h. */ |
| 14222 | _ACEOF |
| 14223 | cat confdefs.h >>conftest.$ac_ext |
| 14224 | cat >>conftest.$ac_ext <<_ACEOF |
| 14225 | /* end confdefs.h. */ |
| 14226 | #include <sys/types.h> |
| 14227 | #include <sys/param.h> |
| 14228 | |
| 14229 | int |
| 14230 | main () |
| 14231 | { |
| 14232 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 14233 | bogus endian macros |
| 14234 | #endif |
| 14235 | |
| 14236 | ; |
| 14237 | return 0; |
| 14238 | } |
| 14239 | _ACEOF |
| 14240 | rm -f conftest.$ac_objext |
| 14241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14242 | (eval $ac_compile) 2>conftest.er1 |
| 14243 | ac_status=$? |
| 14244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14245 | rm -f conftest.er1 |
| 14246 | cat conftest.err >&5 |
| 14247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14248 | (exit $ac_status); } && |
| 14249 | { ac_try='test -z "$ac_c_werror_flag" |
| 14250 | || test ! -s conftest.err' |
| 14251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14252 | (eval $ac_try) 2>&5 |
| 14253 | ac_status=$? |
| 14254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14255 | (exit $ac_status); }; } && |
| 14256 | { ac_try='test -s conftest.$ac_objext' |
| 14257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14258 | (eval $ac_try) 2>&5 |
| 14259 | ac_status=$? |
| 14260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14261 | (exit $ac_status); }; }; then |
| 14262 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 14263 | cat >conftest.$ac_ext <<_ACEOF |
| 14264 | /* confdefs.h. */ |
| 14265 | _ACEOF |
| 14266 | cat confdefs.h >>conftest.$ac_ext |
| 14267 | cat >>conftest.$ac_ext <<_ACEOF |
| 14268 | /* end confdefs.h. */ |
| 14269 | #include <sys/types.h> |
| 14270 | #include <sys/param.h> |
| 14271 | |
| 14272 | int |
| 14273 | main () |
| 14274 | { |
| 14275 | #if BYTE_ORDER != BIG_ENDIAN |
| 14276 | not big endian |
| 14277 | #endif |
| 14278 | |
| 14279 | ; |
| 14280 | return 0; |
| 14281 | } |
| 14282 | _ACEOF |
| 14283 | rm -f conftest.$ac_objext |
| 14284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14285 | (eval $ac_compile) 2>conftest.er1 |
| 14286 | ac_status=$? |
| 14287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14288 | rm -f conftest.er1 |
| 14289 | cat conftest.err >&5 |
| 14290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14291 | (exit $ac_status); } && |
| 14292 | { ac_try='test -z "$ac_c_werror_flag" |
| 14293 | || test ! -s conftest.err' |
| 14294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14295 | (eval $ac_try) 2>&5 |
| 14296 | ac_status=$? |
| 14297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14298 | (exit $ac_status); }; } && |
| 14299 | { ac_try='test -s conftest.$ac_objext' |
| 14300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14301 | (eval $ac_try) 2>&5 |
| 14302 | ac_status=$? |
| 14303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14304 | (exit $ac_status); }; }; then |
| 14305 | ac_cv_c_bigendian=yes |
| 14306 | else |
| 14307 | echo "$as_me: failed program was:" >&5 |
| 14308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14309 | |
| 14310 | ac_cv_c_bigendian=no |
| 14311 | fi |
| 14312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14313 | else |
| 14314 | echo "$as_me: failed program was:" >&5 |
| 14315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14316 | |
| 14317 | # It does not; compile a test program. |
| 14318 | if test "$cross_compiling" = yes; then |
| 14319 | # try to guess the endianness by grepping values into an object file |
| 14320 | ac_cv_c_bigendian=unknown |
| 14321 | cat >conftest.$ac_ext <<_ACEOF |
| 14322 | /* confdefs.h. */ |
| 14323 | _ACEOF |
| 14324 | cat confdefs.h >>conftest.$ac_ext |
| 14325 | cat >>conftest.$ac_ext <<_ACEOF |
| 14326 | /* end confdefs.h. */ |
| 14327 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14328 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 14329 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 14330 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14331 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 14332 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 14333 | int |
| 14334 | main () |
| 14335 | { |
| 14336 | _ascii (); _ebcdic (); |
| 14337 | ; |
| 14338 | return 0; |
| 14339 | } |
| 14340 | _ACEOF |
| 14341 | rm -f conftest.$ac_objext |
| 14342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14343 | (eval $ac_compile) 2>conftest.er1 |
| 14344 | ac_status=$? |
| 14345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14346 | rm -f conftest.er1 |
| 14347 | cat conftest.err >&5 |
| 14348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14349 | (exit $ac_status); } && |
| 14350 | { ac_try='test -z "$ac_c_werror_flag" |
| 14351 | || test ! -s conftest.err' |
| 14352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14353 | (eval $ac_try) 2>&5 |
| 14354 | ac_status=$? |
| 14355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14356 | (exit $ac_status); }; } && |
| 14357 | { ac_try='test -s conftest.$ac_objext' |
| 14358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14359 | (eval $ac_try) 2>&5 |
| 14360 | ac_status=$? |
| 14361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14362 | (exit $ac_status); }; }; then |
| 14363 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 14364 | ac_cv_c_bigendian=yes |
| 14365 | fi |
| 14366 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14367 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14368 | ac_cv_c_bigendian=no |
| 14369 | else |
| 14370 | # finding both strings is unlikely to happen, but who knows? |
| 14371 | ac_cv_c_bigendian=unknown |
| 14372 | fi |
| 14373 | fi |
| 14374 | else |
| 14375 | echo "$as_me: failed program was:" >&5 |
| 14376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14377 | |
| 14378 | fi |
| 14379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14380 | else |
| 14381 | cat >conftest.$ac_ext <<_ACEOF |
| 14382 | /* confdefs.h. */ |
| 14383 | _ACEOF |
| 14384 | cat confdefs.h >>conftest.$ac_ext |
| 14385 | cat >>conftest.$ac_ext <<_ACEOF |
| 14386 | /* end confdefs.h. */ |
| 14387 | int |
| 14388 | main () |
| 14389 | { |
| 14390 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14391 | union |
| 14392 | { |
| 14393 | long l; |
| 14394 | char c[sizeof (long)]; |
| 14395 | } u; |
| 14396 | u.l = 1; |
| 14397 | exit (u.c[sizeof (long) - 1] == 1); |
| 14398 | } |
| 14399 | _ACEOF |
| 14400 | rm -f conftest$ac_exeext |
| 14401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14402 | (eval $ac_link) 2>&5 |
| 14403 | ac_status=$? |
| 14404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14405 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14407 | (eval $ac_try) 2>&5 |
| 14408 | ac_status=$? |
| 14409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14410 | (exit $ac_status); }; }; then |
| 14411 | ac_cv_c_bigendian=no |
| 14412 | else |
| 14413 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14414 | echo "$as_me: failed program was:" >&5 |
| 14415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14416 | |
| 14417 | ( exit $ac_status ) |
| 14418 | ac_cv_c_bigendian=yes |
| 14419 | fi |
| 14420 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14421 | fi |
| 14422 | fi |
| 14423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14424 | fi |
| 14425 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 14426 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 14427 | case $ac_cv_c_bigendian in |
| 14428 | yes) |
| 14429 | |
| 14430 | cat >>confdefs.h <<\_ACEOF |
| 14431 | #define WORDS_BIGENDIAN 1 |
| 14432 | _ACEOF |
| 14433 | ;; |
| 14434 | no) |
| 14435 | ;; |
| 14436 | *) |
| 14437 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 14438 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 14439 | echo "$as_me: error: unknown endianness |
| 14440 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 14441 | { (exit 1); exit 1; }; } ;; |
| 14442 | esac |
| 14443 | |
| 14444 | |
| 14445 | # ------------------------------ # |
| 14446 | # Checks for library functions. # |
| 14447 | # ------------------------------ # |
| 14448 | |
| 14449 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 14450 | # for constant arguments. Useless! |
| 14451 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 14452 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 14453 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 14454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14455 | else |
| 14456 | cat >conftest.$ac_ext <<_ACEOF |
| 14457 | /* confdefs.h. */ |
| 14458 | _ACEOF |
| 14459 | cat confdefs.h >>conftest.$ac_ext |
| 14460 | cat >>conftest.$ac_ext <<_ACEOF |
| 14461 | /* end confdefs.h. */ |
| 14462 | #include <alloca.h> |
| 14463 | int |
| 14464 | main () |
| 14465 | { |
| 14466 | char *p = (char *) alloca (2 * sizeof (int)); |
| 14467 | ; |
| 14468 | return 0; |
| 14469 | } |
| 14470 | _ACEOF |
| 14471 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14473 | (eval $ac_link) 2>conftest.er1 |
| 14474 | ac_status=$? |
| 14475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14476 | rm -f conftest.er1 |
| 14477 | cat conftest.err >&5 |
| 14478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14479 | (exit $ac_status); } && |
| 14480 | { ac_try='test -z "$ac_c_werror_flag" |
| 14481 | || test ! -s conftest.err' |
| 14482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14483 | (eval $ac_try) 2>&5 |
| 14484 | ac_status=$? |
| 14485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14486 | (exit $ac_status); }; } && |
| 14487 | { ac_try='test -s conftest$ac_exeext' |
| 14488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14489 | (eval $ac_try) 2>&5 |
| 14490 | ac_status=$? |
| 14491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14492 | (exit $ac_status); }; }; then |
| 14493 | ac_cv_working_alloca_h=yes |
| 14494 | else |
| 14495 | echo "$as_me: failed program was:" >&5 |
| 14496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14497 | |
| 14498 | ac_cv_working_alloca_h=no |
| 14499 | fi |
| 14500 | rm -f conftest.err conftest.$ac_objext \ |
| 14501 | conftest$ac_exeext conftest.$ac_ext |
| 14502 | fi |
| 14503 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 14504 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 14505 | if test $ac_cv_working_alloca_h = yes; then |
| 14506 | |
| 14507 | cat >>confdefs.h <<\_ACEOF |
| 14508 | #define HAVE_ALLOCA_H 1 |
| 14509 | _ACEOF |
| 14510 | |
| 14511 | fi |
| 14512 | |
| 14513 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 14514 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 14515 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 14516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14517 | else |
| 14518 | cat >conftest.$ac_ext <<_ACEOF |
| 14519 | /* confdefs.h. */ |
| 14520 | _ACEOF |
| 14521 | cat confdefs.h >>conftest.$ac_ext |
| 14522 | cat >>conftest.$ac_ext <<_ACEOF |
| 14523 | /* end confdefs.h. */ |
| 14524 | #ifdef __GNUC__ |
| 14525 | # define alloca __builtin_alloca |
| 14526 | #else |
| 14527 | # ifdef _MSC_VER |
| 14528 | # include <malloc.h> |
| 14529 | # define alloca _alloca |
| 14530 | # else |
| 14531 | # if HAVE_ALLOCA_H |
| 14532 | # include <alloca.h> |
| 14533 | # else |
| 14534 | # ifdef _AIX |
| 14535 | #pragma alloca |
| 14536 | # else |
| 14537 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 14538 | char *alloca (); |
| 14539 | # endif |
| 14540 | # endif |
| 14541 | # endif |
| 14542 | # endif |
| 14543 | #endif |
| 14544 | |
| 14545 | int |
| 14546 | main () |
| 14547 | { |
| 14548 | char *p = (char *) alloca (1); |
| 14549 | ; |
| 14550 | return 0; |
| 14551 | } |
| 14552 | _ACEOF |
| 14553 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14555 | (eval $ac_link) 2>conftest.er1 |
| 14556 | ac_status=$? |
| 14557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14558 | rm -f conftest.er1 |
| 14559 | cat conftest.err >&5 |
| 14560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14561 | (exit $ac_status); } && |
| 14562 | { ac_try='test -z "$ac_c_werror_flag" |
| 14563 | || test ! -s conftest.err' |
| 14564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14565 | (eval $ac_try) 2>&5 |
| 14566 | ac_status=$? |
| 14567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14568 | (exit $ac_status); }; } && |
| 14569 | { ac_try='test -s conftest$ac_exeext' |
| 14570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14571 | (eval $ac_try) 2>&5 |
| 14572 | ac_status=$? |
| 14573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14574 | (exit $ac_status); }; }; then |
| 14575 | ac_cv_func_alloca_works=yes |
| 14576 | else |
| 14577 | echo "$as_me: failed program was:" >&5 |
| 14578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14579 | |
| 14580 | ac_cv_func_alloca_works=no |
| 14581 | fi |
| 14582 | rm -f conftest.err conftest.$ac_objext \ |
| 14583 | conftest$ac_exeext conftest.$ac_ext |
| 14584 | fi |
| 14585 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 14586 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 14587 | |
| 14588 | if test $ac_cv_func_alloca_works = yes; then |
| 14589 | |
| 14590 | cat >>confdefs.h <<\_ACEOF |
| 14591 | #define HAVE_ALLOCA 1 |
| 14592 | _ACEOF |
| 14593 | |
| 14594 | else |
| 14595 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 14596 | # that cause trouble. Some versions do not even contain alloca or |
| 14597 | # contain a buggy version. If you still want to use their alloca, |
| 14598 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 14599 | |
| 14600 | ALLOCA=alloca.$ac_objext |
| 14601 | |
| 14602 | cat >>confdefs.h <<\_ACEOF |
| 14603 | #define C_ALLOCA 1 |
| 14604 | _ACEOF |
| 14605 | |
| 14606 | |
| 14607 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 14608 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 14609 | if test "${ac_cv_os_cray+set}" = set; then |
| 14610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14611 | else |
| 14612 | cat >conftest.$ac_ext <<_ACEOF |
| 14613 | /* confdefs.h. */ |
| 14614 | _ACEOF |
| 14615 | cat confdefs.h >>conftest.$ac_ext |
| 14616 | cat >>conftest.$ac_ext <<_ACEOF |
| 14617 | /* end confdefs.h. */ |
| 14618 | #if defined(CRAY) && ! defined(CRAY2) |
| 14619 | webecray |
| 14620 | #else |
| 14621 | wenotbecray |
| 14622 | #endif |
| 14623 | |
| 14624 | _ACEOF |
| 14625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14626 | $EGREP "webecray" >/dev/null 2>&1; then |
| 14627 | ac_cv_os_cray=yes |
| 14628 | else |
| 14629 | ac_cv_os_cray=no |
| 14630 | fi |
| 14631 | rm -f conftest* |
| 14632 | |
| 14633 | fi |
| 14634 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 14635 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 14636 | if test $ac_cv_os_cray = yes; then |
| 14637 | for ac_func in _getb67 GETB67 getb67; do |
| 14638 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14639 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14640 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14641 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14643 | else |
| 14644 | cat >conftest.$ac_ext <<_ACEOF |
| 14645 | /* confdefs.h. */ |
| 14646 | _ACEOF |
| 14647 | cat confdefs.h >>conftest.$ac_ext |
| 14648 | cat >>conftest.$ac_ext <<_ACEOF |
| 14649 | /* end confdefs.h. */ |
| 14650 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14651 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14652 | #define $ac_func innocuous_$ac_func |
| 14653 | |
| 14654 | /* System header to define __stub macros and hopefully few prototypes, |
| 14655 | which can conflict with char $ac_func (); below. |
| 14656 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14657 | <limits.h> exists even on freestanding compilers. */ |
| 14658 | |
| 14659 | #ifdef __STDC__ |
| 14660 | # include <limits.h> |
| 14661 | #else |
| 14662 | # include <assert.h> |
| 14663 | #endif |
| 14664 | |
| 14665 | #undef $ac_func |
| 14666 | |
| 14667 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14668 | #ifdef __cplusplus |
| 14669 | extern "C" |
| 14670 | { |
| 14671 | #endif |
| 14672 | /* We use char because int might match the return type of a gcc2 |
| 14673 | builtin and then its argument prototype would still apply. */ |
| 14674 | char $ac_func (); |
| 14675 | /* The GNU C library defines this for functions which it implements |
| 14676 | to always fail with ENOSYS. Some functions are actually named |
| 14677 | something starting with __ and the normal name is an alias. */ |
| 14678 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14679 | choke me |
| 14680 | #else |
| 14681 | char (*f) () = $ac_func; |
| 14682 | #endif |
| 14683 | #ifdef __cplusplus |
| 14684 | } |
| 14685 | #endif |
| 14686 | |
| 14687 | int |
| 14688 | main () |
| 14689 | { |
| 14690 | return f != $ac_func; |
| 14691 | ; |
| 14692 | return 0; |
| 14693 | } |
| 14694 | _ACEOF |
| 14695 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14697 | (eval $ac_link) 2>conftest.er1 |
| 14698 | ac_status=$? |
| 14699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14700 | rm -f conftest.er1 |
| 14701 | cat conftest.err >&5 |
| 14702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14703 | (exit $ac_status); } && |
| 14704 | { ac_try='test -z "$ac_c_werror_flag" |
| 14705 | || test ! -s conftest.err' |
| 14706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14707 | (eval $ac_try) 2>&5 |
| 14708 | ac_status=$? |
| 14709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14710 | (exit $ac_status); }; } && |
| 14711 | { ac_try='test -s conftest$ac_exeext' |
| 14712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14713 | (eval $ac_try) 2>&5 |
| 14714 | ac_status=$? |
| 14715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14716 | (exit $ac_status); }; }; then |
| 14717 | eval "$as_ac_var=yes" |
| 14718 | else |
| 14719 | echo "$as_me: failed program was:" >&5 |
| 14720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14721 | |
| 14722 | eval "$as_ac_var=no" |
| 14723 | fi |
| 14724 | rm -f conftest.err conftest.$ac_objext \ |
| 14725 | conftest$ac_exeext conftest.$ac_ext |
| 14726 | fi |
| 14727 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14728 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14729 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14730 | |
| 14731 | cat >>confdefs.h <<_ACEOF |
| 14732 | #define CRAY_STACKSEG_END $ac_func |
| 14733 | _ACEOF |
| 14734 | |
| 14735 | break |
| 14736 | fi |
| 14737 | |
| 14738 | done |
| 14739 | fi |
| 14740 | |
| 14741 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 14742 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 14743 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 14744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14745 | else |
| 14746 | if test "$cross_compiling" = yes; then |
| 14747 | ac_cv_c_stack_direction=0 |
| 14748 | else |
| 14749 | cat >conftest.$ac_ext <<_ACEOF |
| 14750 | /* confdefs.h. */ |
| 14751 | _ACEOF |
| 14752 | cat confdefs.h >>conftest.$ac_ext |
| 14753 | cat >>conftest.$ac_ext <<_ACEOF |
| 14754 | /* end confdefs.h. */ |
| 14755 | int |
| 14756 | find_stack_direction () |
| 14757 | { |
| 14758 | static char *addr = 0; |
| 14759 | auto char dummy; |
| 14760 | if (addr == 0) |
| 14761 | { |
| 14762 | addr = &dummy; |
| 14763 | return find_stack_direction (); |
| 14764 | } |
| 14765 | else |
| 14766 | return (&dummy > addr) ? 1 : -1; |
| 14767 | } |
| 14768 | |
| 14769 | int |
| 14770 | main () |
| 14771 | { |
| 14772 | exit (find_stack_direction () < 0); |
| 14773 | } |
| 14774 | _ACEOF |
| 14775 | rm -f conftest$ac_exeext |
| 14776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14777 | (eval $ac_link) 2>&5 |
| 14778 | ac_status=$? |
| 14779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14780 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14782 | (eval $ac_try) 2>&5 |
| 14783 | ac_status=$? |
| 14784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14785 | (exit $ac_status); }; }; then |
| 14786 | ac_cv_c_stack_direction=1 |
| 14787 | else |
| 14788 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14789 | echo "$as_me: failed program was:" >&5 |
| 14790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14791 | |
| 14792 | ( exit $ac_status ) |
| 14793 | ac_cv_c_stack_direction=-1 |
| 14794 | fi |
| 14795 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14796 | fi |
| 14797 | fi |
| 14798 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 14799 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 14800 | |
| 14801 | cat >>confdefs.h <<_ACEOF |
| 14802 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 14803 | _ACEOF |
| 14804 | |
| 14805 | |
| 14806 | fi |
| 14807 | |
| 14808 | |
| 14809 | |
| 14810 | for ac_header in stdlib.h unistd.h |
| 14811 | do |
| 14812 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14813 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14814 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14816 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14818 | fi |
| 14819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14820 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14821 | else |
| 14822 | # Is the header compilable? |
| 14823 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14824 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 14825 | cat >conftest.$ac_ext <<_ACEOF |
| 14826 | /* confdefs.h. */ |
| 14827 | _ACEOF |
| 14828 | cat confdefs.h >>conftest.$ac_ext |
| 14829 | cat >>conftest.$ac_ext <<_ACEOF |
| 14830 | /* end confdefs.h. */ |
| 14831 | $ac_includes_default |
| 14832 | #include <$ac_header> |
| 14833 | _ACEOF |
| 14834 | rm -f conftest.$ac_objext |
| 14835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14836 | (eval $ac_compile) 2>conftest.er1 |
| 14837 | ac_status=$? |
| 14838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14839 | rm -f conftest.er1 |
| 14840 | cat conftest.err >&5 |
| 14841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14842 | (exit $ac_status); } && |
| 14843 | { ac_try='test -z "$ac_c_werror_flag" |
| 14844 | || test ! -s conftest.err' |
| 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); }; } && |
| 14850 | { ac_try='test -s conftest.$ac_objext' |
| 14851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14852 | (eval $ac_try) 2>&5 |
| 14853 | ac_status=$? |
| 14854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14855 | (exit $ac_status); }; }; then |
| 14856 | ac_header_compiler=yes |
| 14857 | else |
| 14858 | echo "$as_me: failed program was:" >&5 |
| 14859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14860 | |
| 14861 | ac_header_compiler=no |
| 14862 | fi |
| 14863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14864 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14865 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14866 | |
| 14867 | # Is the header present? |
| 14868 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14869 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 14870 | cat >conftest.$ac_ext <<_ACEOF |
| 14871 | /* confdefs.h. */ |
| 14872 | _ACEOF |
| 14873 | cat confdefs.h >>conftest.$ac_ext |
| 14874 | cat >>conftest.$ac_ext <<_ACEOF |
| 14875 | /* end confdefs.h. */ |
| 14876 | #include <$ac_header> |
| 14877 | _ACEOF |
| 14878 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14879 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14880 | ac_status=$? |
| 14881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14882 | rm -f conftest.er1 |
| 14883 | cat conftest.err >&5 |
| 14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14885 | (exit $ac_status); } >/dev/null; then |
| 14886 | if test -s conftest.err; then |
| 14887 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14888 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14889 | else |
| 14890 | ac_cpp_err= |
| 14891 | fi |
| 14892 | else |
| 14893 | ac_cpp_err=yes |
| 14894 | fi |
| 14895 | if test -z "$ac_cpp_err"; then |
| 14896 | ac_header_preproc=yes |
| 14897 | else |
| 14898 | echo "$as_me: failed program was:" >&5 |
| 14899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14900 | |
| 14901 | ac_header_preproc=no |
| 14902 | fi |
| 14903 | rm -f conftest.err conftest.$ac_ext |
| 14904 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14905 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14906 | |
| 14907 | # So? What about this header? |
| 14908 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14909 | yes:no: ) |
| 14910 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14911 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14912 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14913 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14914 | ac_header_preproc=yes |
| 14915 | ;; |
| 14916 | no:yes:* ) |
| 14917 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14918 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14919 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14920 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14921 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14922 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14923 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14924 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14925 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14926 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14927 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14928 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14929 | ( |
| 14930 | cat <<\_ASBOX |
| 14931 | ## ------------------------------------------ ## |
| 14932 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14933 | ## ------------------------------------------ ## |
| 14934 | _ASBOX |
| 14935 | ) | |
| 14936 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14937 | ;; |
| 14938 | esac |
| 14939 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14940 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 14941 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 14942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14943 | else |
| 14944 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14945 | fi |
| 14946 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 14947 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 14948 | |
| 14949 | fi |
| 14950 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14951 | cat >>confdefs.h <<_ACEOF |
| 14952 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14953 | _ACEOF |
| 14954 | |
| 14955 | fi |
| 14956 | |
| 14957 | done |
| 14958 | |
| 14959 | |
| 14960 | for ac_func in getpagesize |
| 14961 | do |
| 14962 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14963 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14964 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14965 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14967 | else |
| 14968 | cat >conftest.$ac_ext <<_ACEOF |
| 14969 | /* confdefs.h. */ |
| 14970 | _ACEOF |
| 14971 | cat confdefs.h >>conftest.$ac_ext |
| 14972 | cat >>conftest.$ac_ext <<_ACEOF |
| 14973 | /* end confdefs.h. */ |
| 14974 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14975 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14976 | #define $ac_func innocuous_$ac_func |
| 14977 | |
| 14978 | /* System header to define __stub macros and hopefully few prototypes, |
| 14979 | which can conflict with char $ac_func (); below. |
| 14980 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14981 | <limits.h> exists even on freestanding compilers. */ |
| 14982 | |
| 14983 | #ifdef __STDC__ |
| 14984 | # include <limits.h> |
| 14985 | #else |
| 14986 | # include <assert.h> |
| 14987 | #endif |
| 14988 | |
| 14989 | #undef $ac_func |
| 14990 | |
| 14991 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14992 | #ifdef __cplusplus |
| 14993 | extern "C" |
| 14994 | { |
| 14995 | #endif |
| 14996 | /* We use char because int might match the return type of a gcc2 |
| 14997 | builtin and then its argument prototype would still apply. */ |
| 14998 | char $ac_func (); |
| 14999 | /* The GNU C library defines this for functions which it implements |
| 15000 | to always fail with ENOSYS. Some functions are actually named |
| 15001 | something starting with __ and the normal name is an alias. */ |
| 15002 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15003 | choke me |
| 15004 | #else |
| 15005 | char (*f) () = $ac_func; |
| 15006 | #endif |
| 15007 | #ifdef __cplusplus |
| 15008 | } |
| 15009 | #endif |
| 15010 | |
| 15011 | int |
| 15012 | main () |
| 15013 | { |
| 15014 | return f != $ac_func; |
| 15015 | ; |
| 15016 | return 0; |
| 15017 | } |
| 15018 | _ACEOF |
| 15019 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15021 | (eval $ac_link) 2>conftest.er1 |
| 15022 | ac_status=$? |
| 15023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15024 | rm -f conftest.er1 |
| 15025 | cat conftest.err >&5 |
| 15026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15027 | (exit $ac_status); } && |
| 15028 | { ac_try='test -z "$ac_c_werror_flag" |
| 15029 | || test ! -s conftest.err' |
| 15030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15031 | (eval $ac_try) 2>&5 |
| 15032 | ac_status=$? |
| 15033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15034 | (exit $ac_status); }; } && |
| 15035 | { ac_try='test -s conftest$ac_exeext' |
| 15036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15037 | (eval $ac_try) 2>&5 |
| 15038 | ac_status=$? |
| 15039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15040 | (exit $ac_status); }; }; then |
| 15041 | eval "$as_ac_var=yes" |
| 15042 | else |
| 15043 | echo "$as_me: failed program was:" >&5 |
| 15044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15045 | |
| 15046 | eval "$as_ac_var=no" |
| 15047 | fi |
| 15048 | rm -f conftest.err conftest.$ac_objext \ |
| 15049 | conftest$ac_exeext conftest.$ac_ext |
| 15050 | fi |
| 15051 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15052 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15053 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15054 | cat >>confdefs.h <<_ACEOF |
| 15055 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15056 | _ACEOF |
| 15057 | |
| 15058 | fi |
| 15059 | done |
| 15060 | |
| 15061 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 15062 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 15063 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 15064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15065 | else |
| 15066 | if test "$cross_compiling" = yes; then |
| 15067 | ac_cv_func_mmap_fixed_mapped=no |
| 15068 | else |
| 15069 | cat >conftest.$ac_ext <<_ACEOF |
| 15070 | /* confdefs.h. */ |
| 15071 | _ACEOF |
| 15072 | cat confdefs.h >>conftest.$ac_ext |
| 15073 | cat >>conftest.$ac_ext <<_ACEOF |
| 15074 | /* end confdefs.h. */ |
| 15075 | $ac_includes_default |
| 15076 | /* malloc might have been renamed as rpl_malloc. */ |
| 15077 | #undef malloc |
| 15078 | |
| 15079 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 15080 | Here is a matrix of mmap possibilities: |
| 15081 | mmap private not fixed |
| 15082 | mmap private fixed at somewhere currently unmapped |
| 15083 | mmap private fixed at somewhere already mapped |
| 15084 | mmap shared not fixed |
| 15085 | mmap shared fixed at somewhere currently unmapped |
| 15086 | mmap shared fixed at somewhere already mapped |
| 15087 | For private mappings, we should verify that changes cannot be read() |
| 15088 | back from the file, nor mmap's back from the file at a different |
| 15089 | address. (There have been systems where private was not correctly |
| 15090 | implemented like the infamous i386 svr4.0, and systems where the |
| 15091 | VM page cache was not coherent with the file system buffer cache |
| 15092 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 15093 | For shared mappings, we should conversely verify that changes get |
| 15094 | propagated back to all the places they're supposed to be. |
| 15095 | |
| 15096 | Grep wants private fixed already mapped. |
| 15097 | The main things grep needs to know about mmap are: |
| 15098 | * does it exist and is it safe to write into the mmap'd area |
| 15099 | * how to use it (BSD variants) */ |
| 15100 | |
| 15101 | #include <fcntl.h> |
| 15102 | #include <sys/mman.h> |
| 15103 | |
| 15104 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 15105 | char *malloc (); |
| 15106 | #endif |
| 15107 | |
| 15108 | /* This mess was copied from the GNU getpagesize.h. */ |
| 15109 | #if !HAVE_GETPAGESIZE |
| 15110 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 15111 | # if !HAVE_SYS_PARAM_H |
| 15112 | # define HAVE_SYS_PARAM_H 1 |
| 15113 | # endif |
| 15114 | |
| 15115 | # ifdef _SC_PAGESIZE |
| 15116 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 15117 | # else /* no _SC_PAGESIZE */ |
| 15118 | # if HAVE_SYS_PARAM_H |
| 15119 | # include <sys/param.h> |
| 15120 | # ifdef EXEC_PAGESIZE |
| 15121 | # define getpagesize() EXEC_PAGESIZE |
| 15122 | # else /* no EXEC_PAGESIZE */ |
| 15123 | # ifdef NBPG |
| 15124 | # define getpagesize() NBPG * CLSIZE |
| 15125 | # ifndef CLSIZE |
| 15126 | # define CLSIZE 1 |
| 15127 | # endif /* no CLSIZE */ |
| 15128 | # else /* no NBPG */ |
| 15129 | # ifdef NBPC |
| 15130 | # define getpagesize() NBPC |
| 15131 | # else /* no NBPC */ |
| 15132 | # ifdef PAGESIZE |
| 15133 | # define getpagesize() PAGESIZE |
| 15134 | # endif /* PAGESIZE */ |
| 15135 | # endif /* no NBPC */ |
| 15136 | # endif /* no NBPG */ |
| 15137 | # endif /* no EXEC_PAGESIZE */ |
| 15138 | # else /* no HAVE_SYS_PARAM_H */ |
| 15139 | # define getpagesize() 8192 /* punt totally */ |
| 15140 | # endif /* no HAVE_SYS_PARAM_H */ |
| 15141 | # endif /* no _SC_PAGESIZE */ |
| 15142 | |
| 15143 | #endif /* no HAVE_GETPAGESIZE */ |
| 15144 | |
| 15145 | int |
| 15146 | main () |
| 15147 | { |
| 15148 | char *data, *data2, *data3; |
| 15149 | int i, pagesize; |
| 15150 | int fd; |
| 15151 | |
| 15152 | pagesize = getpagesize (); |
| 15153 | |
| 15154 | /* First, make a file with some known garbage in it. */ |
| 15155 | data = (char *) malloc (pagesize); |
| 15156 | if (!data) |
| 15157 | exit (1); |
| 15158 | for (i = 0; i < pagesize; ++i) |
| 15159 | *(data + i) = rand (); |
| 15160 | umask (0); |
| 15161 | fd = creat ("conftest.mmap", 0600); |
| 15162 | if (fd < 0) |
| 15163 | exit (1); |
| 15164 | if (write (fd, data, pagesize) != pagesize) |
| 15165 | exit (1); |
| 15166 | close (fd); |
| 15167 | |
| 15168 | /* Next, try to mmap the file at a fixed address which already has |
| 15169 | something else allocated at it. If we can, also make sure that |
| 15170 | we see the same garbage. */ |
| 15171 | fd = open ("conftest.mmap", O_RDWR); |
| 15172 | if (fd < 0) |
| 15173 | exit (1); |
| 15174 | data2 = (char *) malloc (2 * pagesize); |
| 15175 | if (!data2) |
| 15176 | exit (1); |
| 15177 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
| 15178 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 15179 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 15180 | exit (1); |
| 15181 | for (i = 0; i < pagesize; ++i) |
| 15182 | if (*(data + i) != *(data2 + i)) |
| 15183 | exit (1); |
| 15184 | |
| 15185 | /* Finally, make sure that changes to the mapped area do not |
| 15186 | percolate back to the file as seen by read(). (This is a bug on |
| 15187 | some variants of i386 svr4.0.) */ |
| 15188 | for (i = 0; i < pagesize; ++i) |
| 15189 | *(data2 + i) = *(data2 + i) + 1; |
| 15190 | data3 = (char *) malloc (pagesize); |
| 15191 | if (!data3) |
| 15192 | exit (1); |
| 15193 | if (read (fd, data3, pagesize) != pagesize) |
| 15194 | exit (1); |
| 15195 | for (i = 0; i < pagesize; ++i) |
| 15196 | if (*(data + i) != *(data3 + i)) |
| 15197 | exit (1); |
| 15198 | close (fd); |
| 15199 | exit (0); |
| 15200 | } |
| 15201 | _ACEOF |
| 15202 | rm -f conftest$ac_exeext |
| 15203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15204 | (eval $ac_link) 2>&5 |
| 15205 | ac_status=$? |
| 15206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15207 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15209 | (eval $ac_try) 2>&5 |
| 15210 | ac_status=$? |
| 15211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15212 | (exit $ac_status); }; }; then |
| 15213 | ac_cv_func_mmap_fixed_mapped=yes |
| 15214 | else |
| 15215 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15216 | echo "$as_me: failed program was:" >&5 |
| 15217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15218 | |
| 15219 | ( exit $ac_status ) |
| 15220 | ac_cv_func_mmap_fixed_mapped=no |
| 15221 | fi |
| 15222 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15223 | fi |
| 15224 | fi |
| 15225 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 15226 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 15227 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 15228 | |
| 15229 | cat >>confdefs.h <<\_ACEOF |
| 15230 | #define HAVE_MMAP 1 |
| 15231 | _ACEOF |
| 15232 | |
| 15233 | fi |
| 15234 | rm -f conftest.mmap |
| 15235 | |
| 15236 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 15237 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 15238 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 15239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15240 | else |
| 15241 | cat >conftest.$ac_ext <<_ACEOF |
| 15242 | /* confdefs.h. */ |
| 15243 | _ACEOF |
| 15244 | cat confdefs.h >>conftest.$ac_ext |
| 15245 | cat >>conftest.$ac_ext <<_ACEOF |
| 15246 | /* end confdefs.h. */ |
| 15247 | $ac_includes_default |
| 15248 | int |
| 15249 | main () |
| 15250 | { |
| 15251 | if ((pid_t *) 0) |
| 15252 | return 0; |
| 15253 | if (sizeof (pid_t)) |
| 15254 | return 0; |
| 15255 | ; |
| 15256 | return 0; |
| 15257 | } |
| 15258 | _ACEOF |
| 15259 | rm -f conftest.$ac_objext |
| 15260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15261 | (eval $ac_compile) 2>conftest.er1 |
| 15262 | ac_status=$? |
| 15263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15264 | rm -f conftest.er1 |
| 15265 | cat conftest.err >&5 |
| 15266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15267 | (exit $ac_status); } && |
| 15268 | { ac_try='test -z "$ac_c_werror_flag" |
| 15269 | || test ! -s conftest.err' |
| 15270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15271 | (eval $ac_try) 2>&5 |
| 15272 | ac_status=$? |
| 15273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15274 | (exit $ac_status); }; } && |
| 15275 | { ac_try='test -s conftest.$ac_objext' |
| 15276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15277 | (eval $ac_try) 2>&5 |
| 15278 | ac_status=$? |
| 15279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15280 | (exit $ac_status); }; }; then |
| 15281 | ac_cv_type_pid_t=yes |
| 15282 | else |
| 15283 | echo "$as_me: failed program was:" >&5 |
| 15284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15285 | |
| 15286 | ac_cv_type_pid_t=no |
| 15287 | fi |
| 15288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15289 | fi |
| 15290 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 15291 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 15292 | if test $ac_cv_type_pid_t = yes; then |
| 15293 | : |
| 15294 | else |
| 15295 | |
| 15296 | cat >>confdefs.h <<_ACEOF |
| 15297 | #define pid_t int |
| 15298 | _ACEOF |
| 15299 | |
| 15300 | fi |
| 15301 | |
| 15302 | |
| 15303 | |
| 15304 | for ac_header in unistd.h vfork.h |
| 15305 | do |
| 15306 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15307 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15308 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15309 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15310 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15312 | fi |
| 15313 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15314 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15315 | else |
| 15316 | # Is the header compilable? |
| 15317 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15318 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15319 | cat >conftest.$ac_ext <<_ACEOF |
| 15320 | /* confdefs.h. */ |
| 15321 | _ACEOF |
| 15322 | cat confdefs.h >>conftest.$ac_ext |
| 15323 | cat >>conftest.$ac_ext <<_ACEOF |
| 15324 | /* end confdefs.h. */ |
| 15325 | $ac_includes_default |
| 15326 | #include <$ac_header> |
| 15327 | _ACEOF |
| 15328 | rm -f conftest.$ac_objext |
| 15329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15330 | (eval $ac_compile) 2>conftest.er1 |
| 15331 | ac_status=$? |
| 15332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15333 | rm -f conftest.er1 |
| 15334 | cat conftest.err >&5 |
| 15335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15336 | (exit $ac_status); } && |
| 15337 | { ac_try='test -z "$ac_c_werror_flag" |
| 15338 | || test ! -s conftest.err' |
| 15339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15340 | (eval $ac_try) 2>&5 |
| 15341 | ac_status=$? |
| 15342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15343 | (exit $ac_status); }; } && |
| 15344 | { ac_try='test -s conftest.$ac_objext' |
| 15345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15346 | (eval $ac_try) 2>&5 |
| 15347 | ac_status=$? |
| 15348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15349 | (exit $ac_status); }; }; then |
| 15350 | ac_header_compiler=yes |
| 15351 | else |
| 15352 | echo "$as_me: failed program was:" >&5 |
| 15353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15354 | |
| 15355 | ac_header_compiler=no |
| 15356 | fi |
| 15357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15358 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15359 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15360 | |
| 15361 | # Is the header present? |
| 15362 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15363 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15364 | cat >conftest.$ac_ext <<_ACEOF |
| 15365 | /* confdefs.h. */ |
| 15366 | _ACEOF |
| 15367 | cat confdefs.h >>conftest.$ac_ext |
| 15368 | cat >>conftest.$ac_ext <<_ACEOF |
| 15369 | /* end confdefs.h. */ |
| 15370 | #include <$ac_header> |
| 15371 | _ACEOF |
| 15372 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15373 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15374 | ac_status=$? |
| 15375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15376 | rm -f conftest.er1 |
| 15377 | cat conftest.err >&5 |
| 15378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15379 | (exit $ac_status); } >/dev/null; then |
| 15380 | if test -s conftest.err; then |
| 15381 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15382 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15383 | else |
| 15384 | ac_cpp_err= |
| 15385 | fi |
| 15386 | else |
| 15387 | ac_cpp_err=yes |
| 15388 | fi |
| 15389 | if test -z "$ac_cpp_err"; then |
| 15390 | ac_header_preproc=yes |
| 15391 | else |
| 15392 | echo "$as_me: failed program was:" >&5 |
| 15393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15394 | |
| 15395 | ac_header_preproc=no |
| 15396 | fi |
| 15397 | rm -f conftest.err conftest.$ac_ext |
| 15398 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15399 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15400 | |
| 15401 | # So? What about this header? |
| 15402 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15403 | yes:no: ) |
| 15404 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15405 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15406 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15407 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15408 | ac_header_preproc=yes |
| 15409 | ;; |
| 15410 | no:yes:* ) |
| 15411 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15412 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15413 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15414 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15415 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15416 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15417 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15418 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15419 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15420 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15421 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15422 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15423 | ( |
| 15424 | cat <<\_ASBOX |
| 15425 | ## ------------------------------------------ ## |
| 15426 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15427 | ## ------------------------------------------ ## |
| 15428 | _ASBOX |
| 15429 | ) | |
| 15430 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15431 | ;; |
| 15432 | esac |
| 15433 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15434 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15435 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15437 | else |
| 15438 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15439 | fi |
| 15440 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15441 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15442 | |
| 15443 | fi |
| 15444 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15445 | cat >>confdefs.h <<_ACEOF |
| 15446 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15447 | _ACEOF |
| 15448 | |
| 15449 | fi |
| 15450 | |
| 15451 | done |
| 15452 | |
| 15453 | |
| 15454 | |
| 15455 | for ac_func in fork vfork |
| 15456 | do |
| 15457 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15458 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15459 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15460 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15462 | else |
| 15463 | cat >conftest.$ac_ext <<_ACEOF |
| 15464 | /* confdefs.h. */ |
| 15465 | _ACEOF |
| 15466 | cat confdefs.h >>conftest.$ac_ext |
| 15467 | cat >>conftest.$ac_ext <<_ACEOF |
| 15468 | /* end confdefs.h. */ |
| 15469 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15470 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15471 | #define $ac_func innocuous_$ac_func |
| 15472 | |
| 15473 | /* System header to define __stub macros and hopefully few prototypes, |
| 15474 | which can conflict with char $ac_func (); below. |
| 15475 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15476 | <limits.h> exists even on freestanding compilers. */ |
| 15477 | |
| 15478 | #ifdef __STDC__ |
| 15479 | # include <limits.h> |
| 15480 | #else |
| 15481 | # include <assert.h> |
| 15482 | #endif |
| 15483 | |
| 15484 | #undef $ac_func |
| 15485 | |
| 15486 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15487 | #ifdef __cplusplus |
| 15488 | extern "C" |
| 15489 | { |
| 15490 | #endif |
| 15491 | /* We use char because int might match the return type of a gcc2 |
| 15492 | builtin and then its argument prototype would still apply. */ |
| 15493 | char $ac_func (); |
| 15494 | /* The GNU C library defines this for functions which it implements |
| 15495 | to always fail with ENOSYS. Some functions are actually named |
| 15496 | something starting with __ and the normal name is an alias. */ |
| 15497 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15498 | choke me |
| 15499 | #else |
| 15500 | char (*f) () = $ac_func; |
| 15501 | #endif |
| 15502 | #ifdef __cplusplus |
| 15503 | } |
| 15504 | #endif |
| 15505 | |
| 15506 | int |
| 15507 | main () |
| 15508 | { |
| 15509 | return f != $ac_func; |
| 15510 | ; |
| 15511 | return 0; |
| 15512 | } |
| 15513 | _ACEOF |
| 15514 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15516 | (eval $ac_link) 2>conftest.er1 |
| 15517 | ac_status=$? |
| 15518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15519 | rm -f conftest.er1 |
| 15520 | cat conftest.err >&5 |
| 15521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15522 | (exit $ac_status); } && |
| 15523 | { ac_try='test -z "$ac_c_werror_flag" |
| 15524 | || test ! -s conftest.err' |
| 15525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15526 | (eval $ac_try) 2>&5 |
| 15527 | ac_status=$? |
| 15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15529 | (exit $ac_status); }; } && |
| 15530 | { ac_try='test -s conftest$ac_exeext' |
| 15531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15532 | (eval $ac_try) 2>&5 |
| 15533 | ac_status=$? |
| 15534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15535 | (exit $ac_status); }; }; then |
| 15536 | eval "$as_ac_var=yes" |
| 15537 | else |
| 15538 | echo "$as_me: failed program was:" >&5 |
| 15539 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15540 | |
| 15541 | eval "$as_ac_var=no" |
| 15542 | fi |
| 15543 | rm -f conftest.err conftest.$ac_objext \ |
| 15544 | conftest$ac_exeext conftest.$ac_ext |
| 15545 | fi |
| 15546 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15547 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15548 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15549 | cat >>confdefs.h <<_ACEOF |
| 15550 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15551 | _ACEOF |
| 15552 | |
| 15553 | fi |
| 15554 | done |
| 15555 | |
| 15556 | if test "x$ac_cv_func_fork" = xyes; then |
| 15557 | echo "$as_me:$LINENO: checking for working fork" >&5 |
| 15558 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
| 15559 | if test "${ac_cv_func_fork_works+set}" = set; then |
| 15560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15561 | else |
| 15562 | if test "$cross_compiling" = yes; then |
| 15563 | ac_cv_func_fork_works=cross |
| 15564 | else |
| 15565 | cat >conftest.$ac_ext <<_ACEOF |
| 15566 | /* By Ruediger Kuhlmann. */ |
| 15567 | #include <sys/types.h> |
| 15568 | #if HAVE_UNISTD_H |
| 15569 | # include <unistd.h> |
| 15570 | #endif |
| 15571 | /* Some systems only have a dummy stub for fork() */ |
| 15572 | int main () |
| 15573 | { |
| 15574 | if (fork() < 0) |
| 15575 | exit (1); |
| 15576 | exit (0); |
| 15577 | } |
| 15578 | _ACEOF |
| 15579 | rm -f conftest$ac_exeext |
| 15580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15581 | (eval $ac_link) 2>&5 |
| 15582 | ac_status=$? |
| 15583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15584 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15586 | (eval $ac_try) 2>&5 |
| 15587 | ac_status=$? |
| 15588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15589 | (exit $ac_status); }; }; then |
| 15590 | ac_cv_func_fork_works=yes |
| 15591 | else |
| 15592 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15593 | echo "$as_me: failed program was:" >&5 |
| 15594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15595 | |
| 15596 | ( exit $ac_status ) |
| 15597 | ac_cv_func_fork_works=no |
| 15598 | fi |
| 15599 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15600 | fi |
| 15601 | fi |
| 15602 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
| 15603 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
| 15604 | |
| 15605 | else |
| 15606 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 15607 | fi |
| 15608 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 15609 | case $host in |
| 15610 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 15611 | # Override, as these systems have only a dummy fork() stub |
| 15612 | ac_cv_func_fork_works=no |
| 15613 | ;; |
| 15614 | *) |
| 15615 | ac_cv_func_fork_works=yes |
| 15616 | ;; |
| 15617 | esac |
| 15618 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| 15619 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 15620 | fi |
| 15621 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 15622 | if test "x$ac_cv_func_vfork" = xyes; then |
| 15623 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
| 15624 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
| 15625 | if test "${ac_cv_func_vfork_works+set}" = set; then |
| 15626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15627 | else |
| 15628 | if test "$cross_compiling" = yes; then |
| 15629 | ac_cv_func_vfork_works=cross |
| 15630 | else |
| 15631 | cat >conftest.$ac_ext <<_ACEOF |
| 15632 | /* confdefs.h. */ |
| 15633 | _ACEOF |
| 15634 | cat confdefs.h >>conftest.$ac_ext |
| 15635 | cat >>conftest.$ac_ext <<_ACEOF |
| 15636 | /* end confdefs.h. */ |
| 15637 | /* Thanks to Paul Eggert for this test. */ |
| 15638 | #include <stdio.h> |
| 15639 | #include <stdlib.h> |
| 15640 | #include <sys/types.h> |
| 15641 | #include <sys/stat.h> |
| 15642 | #include <sys/wait.h> |
| 15643 | #if HAVE_UNISTD_H |
| 15644 | # include <unistd.h> |
| 15645 | #endif |
| 15646 | #if HAVE_VFORK_H |
| 15647 | # include <vfork.h> |
| 15648 | #endif |
| 15649 | /* On some sparc systems, changes by the child to local and incoming |
| 15650 | argument registers are propagated back to the parent. The compiler |
| 15651 | is told about this with #include <vfork.h>, but some compilers |
| 15652 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 15653 | static variable whose address is put into a register that is |
| 15654 | clobbered by the vfork. */ |
| 15655 | static void |
| 15656 | #ifdef __cplusplus |
| 15657 | sparc_address_test (int arg) |
| 15658 | # else |
| 15659 | sparc_address_test (arg) int arg; |
| 15660 | #endif |
| 15661 | { |
| 15662 | static pid_t child; |
| 15663 | if (!child) { |
| 15664 | child = vfork (); |
| 15665 | if (child < 0) { |
| 15666 | perror ("vfork"); |
| 15667 | _exit(2); |
| 15668 | } |
| 15669 | if (!child) { |
| 15670 | arg = getpid(); |
| 15671 | write(-1, "", 0); |
| 15672 | _exit (arg); |
| 15673 | } |
| 15674 | } |
| 15675 | } |
| 15676 | |
| 15677 | int |
| 15678 | main () |
| 15679 | { |
| 15680 | pid_t parent = getpid (); |
| 15681 | pid_t child; |
| 15682 | |
| 15683 | sparc_address_test (0); |
| 15684 | |
| 15685 | child = vfork (); |
| 15686 | |
| 15687 | if (child == 0) { |
| 15688 | /* Here is another test for sparc vfork register problems. This |
| 15689 | test uses lots of local variables, at least as many local |
| 15690 | variables as main has allocated so far including compiler |
| 15691 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 15692 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 15693 | reuse the register of parent for one of the local variables, |
| 15694 | since it will think that parent can't possibly be used any more |
| 15695 | in this routine. Assigning to the local variable will thus |
| 15696 | munge parent in the parent process. */ |
| 15697 | pid_t |
| 15698 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 15699 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 15700 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 15701 | use the same hardware register for all 8 local variables. */ |
| 15702 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 15703 | || p != p5 || p != p6 || p != p7) |
| 15704 | _exit(1); |
| 15705 | |
| 15706 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 15707 | from child file descriptors. If the child closes a descriptor |
| 15708 | before it execs or exits, this munges the parent's descriptor |
| 15709 | as well. Test for this by closing stdout in the child. */ |
| 15710 | _exit(close(fileno(stdout)) != 0); |
| 15711 | } else { |
| 15712 | int status; |
| 15713 | struct stat st; |
| 15714 | |
| 15715 | while (wait(&status) != child) |
| 15716 | ; |
| 15717 | exit( |
| 15718 | /* Was there some problem with vforking? */ |
| 15719 | child < 0 |
| 15720 | |
| 15721 | /* Did the child fail? (This shouldn't happen.) */ |
| 15722 | || status |
| 15723 | |
| 15724 | /* Did the vfork/compiler bug occur? */ |
| 15725 | || parent != getpid() |
| 15726 | |
| 15727 | /* Did the file descriptor bug occur? */ |
| 15728 | || fstat(fileno(stdout), &st) != 0 |
| 15729 | ); |
| 15730 | } |
| 15731 | } |
| 15732 | _ACEOF |
| 15733 | rm -f conftest$ac_exeext |
| 15734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15735 | (eval $ac_link) 2>&5 |
| 15736 | ac_status=$? |
| 15737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15738 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15740 | (eval $ac_try) 2>&5 |
| 15741 | ac_status=$? |
| 15742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15743 | (exit $ac_status); }; }; then |
| 15744 | ac_cv_func_vfork_works=yes |
| 15745 | else |
| 15746 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15747 | echo "$as_me: failed program was:" >&5 |
| 15748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15749 | |
| 15750 | ( exit $ac_status ) |
| 15751 | ac_cv_func_vfork_works=no |
| 15752 | fi |
| 15753 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15754 | fi |
| 15755 | fi |
| 15756 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
| 15757 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
| 15758 | |
| 15759 | fi; |
| 15760 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 15761 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 15762 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| 15763 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 15764 | fi |
| 15765 | |
| 15766 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 15767 | |
| 15768 | cat >>confdefs.h <<\_ACEOF |
| 15769 | #define HAVE_WORKING_VFORK 1 |
| 15770 | _ACEOF |
| 15771 | |
| 15772 | else |
| 15773 | |
| 15774 | cat >>confdefs.h <<\_ACEOF |
| 15775 | #define vfork fork |
| 15776 | _ACEOF |
| 15777 | |
| 15778 | fi |
| 15779 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 15780 | |
| 15781 | cat >>confdefs.h <<\_ACEOF |
| 15782 | #define HAVE_WORKING_FORK 1 |
| 15783 | _ACEOF |
| 15784 | |
| 15785 | fi |
| 15786 | |
| 15787 | |
| 15788 | |
| 15789 | |
| 15790 | |
| 15791 | |
| 15792 | |
| 15793 | |
| 15794 | |
| 15795 | |
| 15796 | |
| 15797 | |
| 15798 | |
| 15799 | |
| 15800 | |
| 15801 | |
| 15802 | |
| 15803 | |
| 15804 | |
| 15805 | |
| 15806 | |
| 15807 | |
| 15808 | |
| 15809 | for ac_func in canonicalize_file_name realpath getrusage getuid \ |
| 15810 | getgid poll pread64 sbrk setpgid setpgrp setsid \ |
| 15811 | sigaction sigprocmask sigsetmask socketpair syscall \ |
| 15812 | ttrace wborder setlocale iconvlist libiconvlist btowc |
| 15813 | do |
| 15814 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15815 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15816 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15817 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15819 | else |
| 15820 | cat >conftest.$ac_ext <<_ACEOF |
| 15821 | /* confdefs.h. */ |
| 15822 | _ACEOF |
| 15823 | cat confdefs.h >>conftest.$ac_ext |
| 15824 | cat >>conftest.$ac_ext <<_ACEOF |
| 15825 | /* end confdefs.h. */ |
| 15826 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15827 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15828 | #define $ac_func innocuous_$ac_func |
| 15829 | |
| 15830 | /* System header to define __stub macros and hopefully few prototypes, |
| 15831 | which can conflict with char $ac_func (); below. |
| 15832 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15833 | <limits.h> exists even on freestanding compilers. */ |
| 15834 | |
| 15835 | #ifdef __STDC__ |
| 15836 | # include <limits.h> |
| 15837 | #else |
| 15838 | # include <assert.h> |
| 15839 | #endif |
| 15840 | |
| 15841 | #undef $ac_func |
| 15842 | |
| 15843 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15844 | #ifdef __cplusplus |
| 15845 | extern "C" |
| 15846 | { |
| 15847 | #endif |
| 15848 | /* We use char because int might match the return type of a gcc2 |
| 15849 | builtin and then its argument prototype would still apply. */ |
| 15850 | char $ac_func (); |
| 15851 | /* The GNU C library defines this for functions which it implements |
| 15852 | to always fail with ENOSYS. Some functions are actually named |
| 15853 | something starting with __ and the normal name is an alias. */ |
| 15854 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15855 | choke me |
| 15856 | #else |
| 15857 | char (*f) () = $ac_func; |
| 15858 | #endif |
| 15859 | #ifdef __cplusplus |
| 15860 | } |
| 15861 | #endif |
| 15862 | |
| 15863 | int |
| 15864 | main () |
| 15865 | { |
| 15866 | return f != $ac_func; |
| 15867 | ; |
| 15868 | return 0; |
| 15869 | } |
| 15870 | _ACEOF |
| 15871 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15873 | (eval $ac_link) 2>conftest.er1 |
| 15874 | ac_status=$? |
| 15875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15876 | rm -f conftest.er1 |
| 15877 | cat conftest.err >&5 |
| 15878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15879 | (exit $ac_status); } && |
| 15880 | { ac_try='test -z "$ac_c_werror_flag" |
| 15881 | || test ! -s conftest.err' |
| 15882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15883 | (eval $ac_try) 2>&5 |
| 15884 | ac_status=$? |
| 15885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15886 | (exit $ac_status); }; } && |
| 15887 | { ac_try='test -s conftest$ac_exeext' |
| 15888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15889 | (eval $ac_try) 2>&5 |
| 15890 | ac_status=$? |
| 15891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15892 | (exit $ac_status); }; }; then |
| 15893 | eval "$as_ac_var=yes" |
| 15894 | else |
| 15895 | echo "$as_me: failed program was:" >&5 |
| 15896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15897 | |
| 15898 | eval "$as_ac_var=no" |
| 15899 | fi |
| 15900 | rm -f conftest.err conftest.$ac_objext \ |
| 15901 | conftest$ac_exeext conftest.$ac_ext |
| 15902 | fi |
| 15903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15904 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15905 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15906 | cat >>confdefs.h <<_ACEOF |
| 15907 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15908 | _ACEOF |
| 15909 | |
| 15910 | fi |
| 15911 | done |
| 15912 | |
| 15913 | |
| 15914 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 15915 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 |
| 15916 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 15917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15918 | else |
| 15919 | cat >conftest.$ac_ext <<_ACEOF |
| 15920 | /* confdefs.h. */ |
| 15921 | _ACEOF |
| 15922 | cat confdefs.h >>conftest.$ac_ext |
| 15923 | cat >>conftest.$ac_ext <<_ACEOF |
| 15924 | /* end confdefs.h. */ |
| 15925 | #include <langinfo.h> |
| 15926 | int |
| 15927 | main () |
| 15928 | { |
| 15929 | char* cs = nl_langinfo(CODESET); |
| 15930 | ; |
| 15931 | return 0; |
| 15932 | } |
| 15933 | _ACEOF |
| 15934 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15936 | (eval $ac_link) 2>conftest.er1 |
| 15937 | ac_status=$? |
| 15938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15939 | rm -f conftest.er1 |
| 15940 | cat conftest.err >&5 |
| 15941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15942 | (exit $ac_status); } && |
| 15943 | { ac_try='test -z "$ac_c_werror_flag" |
| 15944 | || test ! -s conftest.err' |
| 15945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15946 | (eval $ac_try) 2>&5 |
| 15947 | ac_status=$? |
| 15948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15949 | (exit $ac_status); }; } && |
| 15950 | { ac_try='test -s conftest$ac_exeext' |
| 15951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15952 | (eval $ac_try) 2>&5 |
| 15953 | ac_status=$? |
| 15954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15955 | (exit $ac_status); }; }; then |
| 15956 | am_cv_langinfo_codeset=yes |
| 15957 | else |
| 15958 | echo "$as_me: failed program was:" >&5 |
| 15959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15960 | |
| 15961 | am_cv_langinfo_codeset=no |
| 15962 | fi |
| 15963 | rm -f conftest.err conftest.$ac_objext \ |
| 15964 | conftest$ac_exeext conftest.$ac_ext |
| 15965 | |
| 15966 | fi |
| 15967 | echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 15968 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 |
| 15969 | if test $am_cv_langinfo_codeset = yes; then |
| 15970 | |
| 15971 | cat >>confdefs.h <<\_ACEOF |
| 15972 | #define HAVE_LANGINFO_CODESET 1 |
| 15973 | _ACEOF |
| 15974 | |
| 15975 | fi |
| 15976 | |
| 15977 | |
| 15978 | # Check the return and argument types of ptrace. No canned test for |
| 15979 | # this, so roll our own. |
| 15980 | gdb_ptrace_headers=' |
| 15981 | #if HAVE_SYS_TYPES_H |
| 15982 | # include <sys/types.h> |
| 15983 | #endif |
| 15984 | #if HAVE_SYS_PTRACE_H |
| 15985 | # include <sys/ptrace.h> |
| 15986 | #endif |
| 15987 | #if HAVE_UNISTD_H |
| 15988 | # include <unistd.h> |
| 15989 | #endif |
| 15990 | ' |
| 15991 | # There is no point in checking if we don't have a prototype. |
| 15992 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
| 15993 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 |
| 15994 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
| 15995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15996 | else |
| 15997 | cat >conftest.$ac_ext <<_ACEOF |
| 15998 | /* confdefs.h. */ |
| 15999 | _ACEOF |
| 16000 | cat confdefs.h >>conftest.$ac_ext |
| 16001 | cat >>conftest.$ac_ext <<_ACEOF |
| 16002 | /* end confdefs.h. */ |
| 16003 | $gdb_ptrace_headers |
| 16004 | |
| 16005 | int |
| 16006 | main () |
| 16007 | { |
| 16008 | #ifndef ptrace |
| 16009 | char *p = (char *) ptrace; |
| 16010 | #endif |
| 16011 | |
| 16012 | ; |
| 16013 | return 0; |
| 16014 | } |
| 16015 | _ACEOF |
| 16016 | rm -f conftest.$ac_objext |
| 16017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16018 | (eval $ac_compile) 2>conftest.er1 |
| 16019 | ac_status=$? |
| 16020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16021 | rm -f conftest.er1 |
| 16022 | cat conftest.err >&5 |
| 16023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16024 | (exit $ac_status); } && |
| 16025 | { ac_try='test -z "$ac_c_werror_flag" |
| 16026 | || test ! -s conftest.err' |
| 16027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16028 | (eval $ac_try) 2>&5 |
| 16029 | ac_status=$? |
| 16030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16031 | (exit $ac_status); }; } && |
| 16032 | { ac_try='test -s conftest.$ac_objext' |
| 16033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16034 | (eval $ac_try) 2>&5 |
| 16035 | ac_status=$? |
| 16036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16037 | (exit $ac_status); }; }; then |
| 16038 | ac_cv_have_decl_ptrace=yes |
| 16039 | else |
| 16040 | echo "$as_me: failed program was:" >&5 |
| 16041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16042 | |
| 16043 | ac_cv_have_decl_ptrace=no |
| 16044 | fi |
| 16045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16046 | fi |
| 16047 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
| 16048 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 |
| 16049 | if test $ac_cv_have_decl_ptrace = yes; then |
| 16050 | |
| 16051 | cat >>confdefs.h <<_ACEOF |
| 16052 | #define HAVE_DECL_PTRACE 1 |
| 16053 | _ACEOF |
| 16054 | |
| 16055 | |
| 16056 | else |
| 16057 | cat >>confdefs.h <<_ACEOF |
| 16058 | #define HAVE_DECL_PTRACE 0 |
| 16059 | _ACEOF |
| 16060 | |
| 16061 | |
| 16062 | : ${gdb_cv_func_ptrace_ret='int'} |
| 16063 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} |
| 16064 | |
| 16065 | fi |
| 16066 | |
| 16067 | |
| 16068 | # Check return type. Varargs (used on GNU/Linux) conflict with the |
| 16069 | # empty argument list, so check for that explicitly. |
| 16070 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
| 16071 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 |
| 16072 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
| 16073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16074 | else |
| 16075 | cat >conftest.$ac_ext <<_ACEOF |
| 16076 | /* confdefs.h. */ |
| 16077 | _ACEOF |
| 16078 | cat confdefs.h >>conftest.$ac_ext |
| 16079 | cat >>conftest.$ac_ext <<_ACEOF |
| 16080 | /* end confdefs.h. */ |
| 16081 | $gdb_ptrace_headers |
| 16082 | int |
| 16083 | main () |
| 16084 | { |
| 16085 | extern long ptrace (enum __ptrace_request, ...); |
| 16086 | ; |
| 16087 | return 0; |
| 16088 | } |
| 16089 | _ACEOF |
| 16090 | rm -f conftest.$ac_objext |
| 16091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16092 | (eval $ac_compile) 2>conftest.er1 |
| 16093 | ac_status=$? |
| 16094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16095 | rm -f conftest.er1 |
| 16096 | cat conftest.err >&5 |
| 16097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16098 | (exit $ac_status); } && |
| 16099 | { ac_try='test -z "$ac_c_werror_flag" |
| 16100 | || test ! -s conftest.err' |
| 16101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16102 | (eval $ac_try) 2>&5 |
| 16103 | ac_status=$? |
| 16104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16105 | (exit $ac_status); }; } && |
| 16106 | { ac_try='test -s conftest.$ac_objext' |
| 16107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16108 | (eval $ac_try) 2>&5 |
| 16109 | ac_status=$? |
| 16110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16111 | (exit $ac_status); }; }; then |
| 16112 | gdb_cv_func_ptrace_ret='long' |
| 16113 | else |
| 16114 | echo "$as_me: failed program was:" >&5 |
| 16115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16116 | |
| 16117 | cat >conftest.$ac_ext <<_ACEOF |
| 16118 | /* confdefs.h. */ |
| 16119 | _ACEOF |
| 16120 | cat confdefs.h >>conftest.$ac_ext |
| 16121 | cat >>conftest.$ac_ext <<_ACEOF |
| 16122 | /* end confdefs.h. */ |
| 16123 | $gdb_ptrace_headers |
| 16124 | int |
| 16125 | main () |
| 16126 | { |
| 16127 | extern int ptrace (); |
| 16128 | ; |
| 16129 | return 0; |
| 16130 | } |
| 16131 | _ACEOF |
| 16132 | rm -f conftest.$ac_objext |
| 16133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16134 | (eval $ac_compile) 2>conftest.er1 |
| 16135 | ac_status=$? |
| 16136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16137 | rm -f conftest.er1 |
| 16138 | cat conftest.err >&5 |
| 16139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16140 | (exit $ac_status); } && |
| 16141 | { ac_try='test -z "$ac_c_werror_flag" |
| 16142 | || test ! -s conftest.err' |
| 16143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16144 | (eval $ac_try) 2>&5 |
| 16145 | ac_status=$? |
| 16146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16147 | (exit $ac_status); }; } && |
| 16148 | { ac_try='test -s conftest.$ac_objext' |
| 16149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16150 | (eval $ac_try) 2>&5 |
| 16151 | ac_status=$? |
| 16152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16153 | (exit $ac_status); }; }; then |
| 16154 | gdb_cv_func_ptrace_ret='int' |
| 16155 | else |
| 16156 | echo "$as_me: failed program was:" >&5 |
| 16157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16158 | |
| 16159 | gdb_cv_func_ptrace_ret='long' |
| 16160 | fi |
| 16161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16162 | fi |
| 16163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16164 | fi |
| 16165 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
| 16166 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 |
| 16167 | |
| 16168 | cat >>confdefs.h <<_ACEOF |
| 16169 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret |
| 16170 | _ACEOF |
| 16171 | |
| 16172 | # Check argument types. |
| 16173 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
| 16174 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 |
| 16175 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
| 16176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16177 | else |
| 16178 | |
| 16179 | cat >conftest.$ac_ext <<_ACEOF |
| 16180 | /* confdefs.h. */ |
| 16181 | _ACEOF |
| 16182 | cat confdefs.h >>conftest.$ac_ext |
| 16183 | cat >>conftest.$ac_ext <<_ACEOF |
| 16184 | /* end confdefs.h. */ |
| 16185 | $gdb_ptrace_headers |
| 16186 | int |
| 16187 | main () |
| 16188 | { |
| 16189 | extern long ptrace (enum __ptrace_request, ...); |
| 16190 | ; |
| 16191 | return 0; |
| 16192 | } |
| 16193 | _ACEOF |
| 16194 | rm -f conftest.$ac_objext |
| 16195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16196 | (eval $ac_compile) 2>conftest.er1 |
| 16197 | ac_status=$? |
| 16198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16199 | rm -f conftest.er1 |
| 16200 | cat conftest.err >&5 |
| 16201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16202 | (exit $ac_status); } && |
| 16203 | { ac_try='test -z "$ac_c_werror_flag" |
| 16204 | || test ! -s conftest.err' |
| 16205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16206 | (eval $ac_try) 2>&5 |
| 16207 | ac_status=$? |
| 16208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16209 | (exit $ac_status); }; } && |
| 16210 | { ac_try='test -s conftest.$ac_objext' |
| 16211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16212 | (eval $ac_try) 2>&5 |
| 16213 | ac_status=$? |
| 16214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16215 | (exit $ac_status); }; }; then |
| 16216 | gdb_cv_func_ptrace_args='int,int,long,long' |
| 16217 | else |
| 16218 | echo "$as_me: failed program was:" >&5 |
| 16219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16220 | |
| 16221 | |
| 16222 | for gdb_arg1 in 'int' 'long'; do |
| 16223 | for gdb_arg2 in 'pid_t' 'int' 'long'; do |
| 16224 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do |
| 16225 | for gdb_arg4 in 'int' 'long'; do |
| 16226 | cat >conftest.$ac_ext <<_ACEOF |
| 16227 | /* confdefs.h. */ |
| 16228 | _ACEOF |
| 16229 | cat confdefs.h >>conftest.$ac_ext |
| 16230 | cat >>conftest.$ac_ext <<_ACEOF |
| 16231 | /* end confdefs.h. */ |
| 16232 | $gdb_ptrace_headers |
| 16233 | int |
| 16234 | main () |
| 16235 | { |
| 16236 | |
| 16237 | extern $gdb_cv_func_ptrace_ret |
| 16238 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); |
| 16239 | |
| 16240 | ; |
| 16241 | return 0; |
| 16242 | } |
| 16243 | _ACEOF |
| 16244 | rm -f conftest.$ac_objext |
| 16245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16246 | (eval $ac_compile) 2>conftest.er1 |
| 16247 | ac_status=$? |
| 16248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16249 | rm -f conftest.er1 |
| 16250 | cat conftest.err >&5 |
| 16251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16252 | (exit $ac_status); } && |
| 16253 | { ac_try='test -z "$ac_c_werror_flag" |
| 16254 | || test ! -s conftest.err' |
| 16255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16256 | (eval $ac_try) 2>&5 |
| 16257 | ac_status=$? |
| 16258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16259 | (exit $ac_status); }; } && |
| 16260 | { ac_try='test -s conftest.$ac_objext' |
| 16261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16262 | (eval $ac_try) 2>&5 |
| 16263 | ac_status=$? |
| 16264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16265 | (exit $ac_status); }; }; then |
| 16266 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
| 16267 | break 4; |
| 16268 | else |
| 16269 | echo "$as_me: failed program was:" >&5 |
| 16270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16271 | |
| 16272 | fi |
| 16273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16274 | for gdb_arg5 in 'int *' 'int' 'long'; do |
| 16275 | cat >conftest.$ac_ext <<_ACEOF |
| 16276 | /* confdefs.h. */ |
| 16277 | _ACEOF |
| 16278 | cat confdefs.h >>conftest.$ac_ext |
| 16279 | cat >>conftest.$ac_ext <<_ACEOF |
| 16280 | /* end confdefs.h. */ |
| 16281 | $gdb_ptrace_headers |
| 16282 | int |
| 16283 | main () |
| 16284 | { |
| 16285 | |
| 16286 | extern $gdb_cv_func_ptrace_ret |
| 16287 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); |
| 16288 | |
| 16289 | ; |
| 16290 | return 0; |
| 16291 | } |
| 16292 | _ACEOF |
| 16293 | rm -f conftest.$ac_objext |
| 16294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16295 | (eval $ac_compile) 2>conftest.er1 |
| 16296 | ac_status=$? |
| 16297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16298 | rm -f conftest.er1 |
| 16299 | cat conftest.err >&5 |
| 16300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16301 | (exit $ac_status); } && |
| 16302 | { ac_try='test -z "$ac_c_werror_flag" |
| 16303 | || test ! -s conftest.err' |
| 16304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16305 | (eval $ac_try) 2>&5 |
| 16306 | ac_status=$? |
| 16307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16308 | (exit $ac_status); }; } && |
| 16309 | { ac_try='test -s conftest.$ac_objext' |
| 16310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16311 | (eval $ac_try) 2>&5 |
| 16312 | ac_status=$? |
| 16313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16314 | (exit $ac_status); }; }; then |
| 16315 | |
| 16316 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; |
| 16317 | break 5; |
| 16318 | else |
| 16319 | echo "$as_me: failed program was:" >&5 |
| 16320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16321 | |
| 16322 | fi |
| 16323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16324 | done |
| 16325 | done |
| 16326 | done |
| 16327 | done |
| 16328 | done |
| 16329 | # Provide a safe default value. |
| 16330 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} |
| 16331 | |
| 16332 | fi |
| 16333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16334 | fi |
| 16335 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
| 16336 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 |
| 16337 | ac_save_IFS=$IFS; IFS=',' |
| 16338 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` |
| 16339 | IFS=$ac_save_IFS |
| 16340 | shift |
| 16341 | |
| 16342 | cat >>confdefs.h <<_ACEOF |
| 16343 | #define PTRACE_TYPE_ARG3 $3 |
| 16344 | _ACEOF |
| 16345 | |
| 16346 | if test -n "$5"; then |
| 16347 | |
| 16348 | cat >>confdefs.h <<_ACEOF |
| 16349 | #define PTRACE_TYPE_ARG5 $5 |
| 16350 | _ACEOF |
| 16351 | |
| 16352 | fi |
| 16353 | |
| 16354 | if test "$cross_compiling" = no; then |
| 16355 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 16356 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 16357 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
| 16358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16359 | else |
| 16360 | if test "$cross_compiling" = yes; then |
| 16361 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 16362 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 16363 | { (exit 1); exit 1; }; } |
| 16364 | else |
| 16365 | cat >conftest.$ac_ext <<_ACEOF |
| 16366 | /* confdefs.h. */ |
| 16367 | _ACEOF |
| 16368 | cat confdefs.h >>conftest.$ac_ext |
| 16369 | cat >>conftest.$ac_ext <<_ACEOF |
| 16370 | /* end confdefs.h. */ |
| 16371 | #if HAVE_UNISTD_H |
| 16372 | # include <unistd.h> |
| 16373 | #endif |
| 16374 | |
| 16375 | int |
| 16376 | main () |
| 16377 | { |
| 16378 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 16379 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 16380 | exit successfully. */ |
| 16381 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
| 16382 | ; |
| 16383 | return 0; |
| 16384 | } |
| 16385 | _ACEOF |
| 16386 | rm -f conftest$ac_exeext |
| 16387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16388 | (eval $ac_link) 2>&5 |
| 16389 | ac_status=$? |
| 16390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16391 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16393 | (eval $ac_try) 2>&5 |
| 16394 | ac_status=$? |
| 16395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16396 | (exit $ac_status); }; }; then |
| 16397 | ac_cv_func_setpgrp_void=no |
| 16398 | else |
| 16399 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16400 | echo "$as_me: failed program was:" >&5 |
| 16401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16402 | |
| 16403 | ( exit $ac_status ) |
| 16404 | ac_cv_func_setpgrp_void=yes |
| 16405 | fi |
| 16406 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16407 | fi |
| 16408 | fi |
| 16409 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 16410 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 16411 | if test $ac_cv_func_setpgrp_void = yes; then |
| 16412 | |
| 16413 | cat >>confdefs.h <<\_ACEOF |
| 16414 | #define SETPGRP_VOID 1 |
| 16415 | _ACEOF |
| 16416 | |
| 16417 | fi |
| 16418 | |
| 16419 | else |
| 16420 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 16421 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 16422 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
| 16423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16424 | else |
| 16425 | cat >conftest.$ac_ext <<_ACEOF |
| 16426 | /* confdefs.h. */ |
| 16427 | _ACEOF |
| 16428 | cat confdefs.h >>conftest.$ac_ext |
| 16429 | cat >>conftest.$ac_ext <<_ACEOF |
| 16430 | /* end confdefs.h. */ |
| 16431 | |
| 16432 | #include <unistd.h> |
| 16433 | |
| 16434 | int |
| 16435 | main () |
| 16436 | { |
| 16437 | |
| 16438 | if (setpgrp(1,1) == -1) |
| 16439 | exit (0); |
| 16440 | else |
| 16441 | exit (1); |
| 16442 | |
| 16443 | ; |
| 16444 | return 0; |
| 16445 | } |
| 16446 | _ACEOF |
| 16447 | rm -f conftest.$ac_objext |
| 16448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16449 | (eval $ac_compile) 2>conftest.er1 |
| 16450 | ac_status=$? |
| 16451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16452 | rm -f conftest.er1 |
| 16453 | cat conftest.err >&5 |
| 16454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16455 | (exit $ac_status); } && |
| 16456 | { ac_try='test -z "$ac_c_werror_flag" |
| 16457 | || test ! -s conftest.err' |
| 16458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16459 | (eval $ac_try) 2>&5 |
| 16460 | ac_status=$? |
| 16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16462 | (exit $ac_status); }; } && |
| 16463 | { ac_try='test -s conftest.$ac_objext' |
| 16464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16465 | (eval $ac_try) 2>&5 |
| 16466 | ac_status=$? |
| 16467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16468 | (exit $ac_status); }; }; then |
| 16469 | ac_cv_func_setpgrp_void=no |
| 16470 | else |
| 16471 | echo "$as_me: failed program was:" >&5 |
| 16472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16473 | |
| 16474 | ac_cv_func_setpgrp_void=yes |
| 16475 | fi |
| 16476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16477 | fi |
| 16478 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 16479 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 16480 | if test $ac_cv_func_setpgrp_void = yes; then |
| 16481 | cat >>confdefs.h <<\_ACEOF |
| 16482 | #define SETPGRP_VOID 1 |
| 16483 | _ACEOF |
| 16484 | |
| 16485 | fi |
| 16486 | fi |
| 16487 | |
| 16488 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
| 16489 | # since sigsetjmp might only be defined as a macro. |
| 16490 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
| 16491 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 |
| 16492 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
| 16493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16494 | else |
| 16495 | cat >conftest.$ac_ext <<_ACEOF |
| 16496 | /* confdefs.h. */ |
| 16497 | _ACEOF |
| 16498 | cat confdefs.h >>conftest.$ac_ext |
| 16499 | cat >>conftest.$ac_ext <<_ACEOF |
| 16500 | /* end confdefs.h. */ |
| 16501 | |
| 16502 | #include <setjmp.h> |
| 16503 | |
| 16504 | int |
| 16505 | main () |
| 16506 | { |
| 16507 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
| 16508 | ; |
| 16509 | return 0; |
| 16510 | } |
| 16511 | _ACEOF |
| 16512 | rm -f conftest.$ac_objext |
| 16513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16514 | (eval $ac_compile) 2>conftest.er1 |
| 16515 | ac_status=$? |
| 16516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16517 | rm -f conftest.er1 |
| 16518 | cat conftest.err >&5 |
| 16519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16520 | (exit $ac_status); } && |
| 16521 | { ac_try='test -z "$ac_c_werror_flag" |
| 16522 | || test ! -s conftest.err' |
| 16523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16524 | (eval $ac_try) 2>&5 |
| 16525 | ac_status=$? |
| 16526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16527 | (exit $ac_status); }; } && |
| 16528 | { ac_try='test -s conftest.$ac_objext' |
| 16529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16530 | (eval $ac_try) 2>&5 |
| 16531 | ac_status=$? |
| 16532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16533 | (exit $ac_status); }; }; then |
| 16534 | gdb_cv_func_sigsetjmp=yes |
| 16535 | else |
| 16536 | echo "$as_me: failed program was:" >&5 |
| 16537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16538 | |
| 16539 | gdb_cv_func_sigsetjmp=no |
| 16540 | fi |
| 16541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16542 | fi |
| 16543 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
| 16544 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 |
| 16545 | if test $gdb_cv_func_sigsetjmp = yes; then |
| 16546 | |
| 16547 | cat >>confdefs.h <<\_ACEOF |
| 16548 | #define HAVE_SIGSETJMP 1 |
| 16549 | _ACEOF |
| 16550 | |
| 16551 | fi |
| 16552 | |
| 16553 | # Assume we'll default to using the included libiberty regex. |
| 16554 | gdb_use_included_regex=yes |
| 16555 | |
| 16556 | # However, if the system regex is GNU regex, then default to *not* |
| 16557 | # using the included regex. |
| 16558 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
| 16559 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 |
| 16560 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
| 16561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16562 | else |
| 16563 | cat >conftest.$ac_ext <<_ACEOF |
| 16564 | /* confdefs.h. */ |
| 16565 | _ACEOF |
| 16566 | cat confdefs.h >>conftest.$ac_ext |
| 16567 | cat >>conftest.$ac_ext <<_ACEOF |
| 16568 | /* end confdefs.h. */ |
| 16569 | #include <gnu-versions.h> |
| 16570 | int |
| 16571 | main () |
| 16572 | { |
| 16573 | #define REGEX_INTERFACE_VERSION 1 |
| 16574 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION |
| 16575 | # error "Version mismatch" |
| 16576 | #endif |
| 16577 | ; |
| 16578 | return 0; |
| 16579 | } |
| 16580 | _ACEOF |
| 16581 | rm -f conftest.$ac_objext |
| 16582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16583 | (eval $ac_compile) 2>conftest.er1 |
| 16584 | ac_status=$? |
| 16585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16586 | rm -f conftest.er1 |
| 16587 | cat conftest.err >&5 |
| 16588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16589 | (exit $ac_status); } && |
| 16590 | { ac_try='test -z "$ac_c_werror_flag" |
| 16591 | || test ! -s conftest.err' |
| 16592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16593 | (eval $ac_try) 2>&5 |
| 16594 | ac_status=$? |
| 16595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16596 | (exit $ac_status); }; } && |
| 16597 | { ac_try='test -s conftest.$ac_objext' |
| 16598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16599 | (eval $ac_try) 2>&5 |
| 16600 | ac_status=$? |
| 16601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16602 | (exit $ac_status); }; }; then |
| 16603 | gdb_cv_have_gnu_regex=yes |
| 16604 | else |
| 16605 | echo "$as_me: failed program was:" >&5 |
| 16606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16607 | |
| 16608 | gdb_cv_have_gnu_regex=no |
| 16609 | fi |
| 16610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16611 | fi |
| 16612 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
| 16613 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 |
| 16614 | if test $gdb_cv_have_gnu_regex = yes; then |
| 16615 | gdb_use_included_regex=no |
| 16616 | fi |
| 16617 | |
| 16618 | |
| 16619 | # Check whether --with-included-regex or --without-included-regex was given. |
| 16620 | if test "${with_included_regex+set}" = set; then |
| 16621 | withval="$with_included_regex" |
| 16622 | gdb_with_regex=$withval |
| 16623 | else |
| 16624 | gdb_with_regex=$gdb_use_included_regex |
| 16625 | fi; |
| 16626 | if test "$gdb_with_regex" = yes; then |
| 16627 | |
| 16628 | cat >>confdefs.h <<\_ACEOF |
| 16629 | #define USE_INCLUDED_REGEX 1 |
| 16630 | _ACEOF |
| 16631 | |
| 16632 | fi |
| 16633 | |
| 16634 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
| 16635 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
| 16636 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 |
| 16637 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
| 16638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16639 | else |
| 16640 | cat >conftest.$ac_ext <<_ACEOF |
| 16641 | /* confdefs.h. */ |
| 16642 | _ACEOF |
| 16643 | cat confdefs.h >>conftest.$ac_ext |
| 16644 | cat >>conftest.$ac_ext <<_ACEOF |
| 16645 | /* end confdefs.h. */ |
| 16646 | #include <sys/param.h> |
| 16647 | #include <sys/proc.h> |
| 16648 | |
| 16649 | |
| 16650 | int |
| 16651 | main () |
| 16652 | { |
| 16653 | static struct thread ac_aggr; |
| 16654 | if (ac_aggr.td_pcb) |
| 16655 | return 0; |
| 16656 | ; |
| 16657 | return 0; |
| 16658 | } |
| 16659 | _ACEOF |
| 16660 | rm -f conftest.$ac_objext |
| 16661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16662 | (eval $ac_compile) 2>conftest.er1 |
| 16663 | ac_status=$? |
| 16664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16665 | rm -f conftest.er1 |
| 16666 | cat conftest.err >&5 |
| 16667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16668 | (exit $ac_status); } && |
| 16669 | { ac_try='test -z "$ac_c_werror_flag" |
| 16670 | || test ! -s conftest.err' |
| 16671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16672 | (eval $ac_try) 2>&5 |
| 16673 | ac_status=$? |
| 16674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16675 | (exit $ac_status); }; } && |
| 16676 | { ac_try='test -s conftest.$ac_objext' |
| 16677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16678 | (eval $ac_try) 2>&5 |
| 16679 | ac_status=$? |
| 16680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16681 | (exit $ac_status); }; }; then |
| 16682 | ac_cv_member_struct_thread_td_pcb=yes |
| 16683 | else |
| 16684 | echo "$as_me: failed program was:" >&5 |
| 16685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16686 | |
| 16687 | cat >conftest.$ac_ext <<_ACEOF |
| 16688 | /* confdefs.h. */ |
| 16689 | _ACEOF |
| 16690 | cat confdefs.h >>conftest.$ac_ext |
| 16691 | cat >>conftest.$ac_ext <<_ACEOF |
| 16692 | /* end confdefs.h. */ |
| 16693 | #include <sys/param.h> |
| 16694 | #include <sys/proc.h> |
| 16695 | |
| 16696 | |
| 16697 | int |
| 16698 | main () |
| 16699 | { |
| 16700 | static struct thread ac_aggr; |
| 16701 | if (sizeof ac_aggr.td_pcb) |
| 16702 | return 0; |
| 16703 | ; |
| 16704 | return 0; |
| 16705 | } |
| 16706 | _ACEOF |
| 16707 | rm -f conftest.$ac_objext |
| 16708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16709 | (eval $ac_compile) 2>conftest.er1 |
| 16710 | ac_status=$? |
| 16711 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16712 | rm -f conftest.er1 |
| 16713 | cat conftest.err >&5 |
| 16714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16715 | (exit $ac_status); } && |
| 16716 | { ac_try='test -z "$ac_c_werror_flag" |
| 16717 | || test ! -s conftest.err' |
| 16718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16719 | (eval $ac_try) 2>&5 |
| 16720 | ac_status=$? |
| 16721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16722 | (exit $ac_status); }; } && |
| 16723 | { ac_try='test -s conftest.$ac_objext' |
| 16724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16725 | (eval $ac_try) 2>&5 |
| 16726 | ac_status=$? |
| 16727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16728 | (exit $ac_status); }; }; then |
| 16729 | ac_cv_member_struct_thread_td_pcb=yes |
| 16730 | else |
| 16731 | echo "$as_me: failed program was:" >&5 |
| 16732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16733 | |
| 16734 | ac_cv_member_struct_thread_td_pcb=no |
| 16735 | fi |
| 16736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16737 | fi |
| 16738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16739 | fi |
| 16740 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
| 16741 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 |
| 16742 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
| 16743 | |
| 16744 | cat >>confdefs.h <<_ACEOF |
| 16745 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
| 16746 | _ACEOF |
| 16747 | |
| 16748 | |
| 16749 | fi |
| 16750 | |
| 16751 | |
| 16752 | # See if <sys/lwp.h> defines `struct lwp`. |
| 16753 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
| 16754 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 |
| 16755 | if test "${gdb_cv_struct_lwp+set}" = set; then |
| 16756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16757 | else |
| 16758 | cat >conftest.$ac_ext <<_ACEOF |
| 16759 | /* confdefs.h. */ |
| 16760 | _ACEOF |
| 16761 | cat confdefs.h >>conftest.$ac_ext |
| 16762 | cat >>conftest.$ac_ext <<_ACEOF |
| 16763 | /* end confdefs.h. */ |
| 16764 | #include <sys/param.h> |
| 16765 | #include <sys/lwp.h> |
| 16766 | int |
| 16767 | main () |
| 16768 | { |
| 16769 | struct lwp l; |
| 16770 | ; |
| 16771 | return 0; |
| 16772 | } |
| 16773 | _ACEOF |
| 16774 | rm -f conftest.$ac_objext |
| 16775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16776 | (eval $ac_compile) 2>conftest.er1 |
| 16777 | ac_status=$? |
| 16778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16779 | rm -f conftest.er1 |
| 16780 | cat conftest.err >&5 |
| 16781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16782 | (exit $ac_status); } && |
| 16783 | { ac_try='test -z "$ac_c_werror_flag" |
| 16784 | || test ! -s conftest.err' |
| 16785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16786 | (eval $ac_try) 2>&5 |
| 16787 | ac_status=$? |
| 16788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16789 | (exit $ac_status); }; } && |
| 16790 | { ac_try='test -s conftest.$ac_objext' |
| 16791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16792 | (eval $ac_try) 2>&5 |
| 16793 | ac_status=$? |
| 16794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16795 | (exit $ac_status); }; }; then |
| 16796 | gdb_cv_struct_lwp=yes |
| 16797 | else |
| 16798 | echo "$as_me: failed program was:" >&5 |
| 16799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16800 | |
| 16801 | gdb_cv_struct_lwp=no |
| 16802 | fi |
| 16803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16804 | fi |
| 16805 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
| 16806 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 |
| 16807 | if test $gdb_cv_struct_lwp = yes; then |
| 16808 | |
| 16809 | cat >>confdefs.h <<\_ACEOF |
| 16810 | #define HAVE_STRUCT_LWP 1 |
| 16811 | _ACEOF |
| 16812 | |
| 16813 | fi |
| 16814 | |
| 16815 | # See if <machine/reg.h> degines `struct reg'. |
| 16816 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
| 16817 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 |
| 16818 | if test "${gdb_cv_struct_reg+set}" = set; then |
| 16819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16820 | else |
| 16821 | cat >conftest.$ac_ext <<_ACEOF |
| 16822 | /* confdefs.h. */ |
| 16823 | _ACEOF |
| 16824 | cat confdefs.h >>conftest.$ac_ext |
| 16825 | cat >>conftest.$ac_ext <<_ACEOF |
| 16826 | /* end confdefs.h. */ |
| 16827 | #include <sys/types.h> |
| 16828 | #include <machine/reg.h> |
| 16829 | int |
| 16830 | main () |
| 16831 | { |
| 16832 | struct reg r; |
| 16833 | ; |
| 16834 | return 0; |
| 16835 | } |
| 16836 | _ACEOF |
| 16837 | rm -f conftest.$ac_objext |
| 16838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16839 | (eval $ac_compile) 2>conftest.er1 |
| 16840 | ac_status=$? |
| 16841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16842 | rm -f conftest.er1 |
| 16843 | cat conftest.err >&5 |
| 16844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16845 | (exit $ac_status); } && |
| 16846 | { ac_try='test -z "$ac_c_werror_flag" |
| 16847 | || test ! -s conftest.err' |
| 16848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16849 | (eval $ac_try) 2>&5 |
| 16850 | ac_status=$? |
| 16851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16852 | (exit $ac_status); }; } && |
| 16853 | { ac_try='test -s conftest.$ac_objext' |
| 16854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16855 | (eval $ac_try) 2>&5 |
| 16856 | ac_status=$? |
| 16857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16858 | (exit $ac_status); }; }; then |
| 16859 | gdb_cv_struct_reg=yes |
| 16860 | else |
| 16861 | echo "$as_me: failed program was:" >&5 |
| 16862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16863 | |
| 16864 | gdb_cv_struct_reg=no |
| 16865 | fi |
| 16866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16867 | fi |
| 16868 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
| 16869 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 |
| 16870 | if test $gdb_cv_struct_reg = yes; then |
| 16871 | |
| 16872 | cat >>confdefs.h <<\_ACEOF |
| 16873 | #define HAVE_STRUCT_REG 1 |
| 16874 | _ACEOF |
| 16875 | |
| 16876 | fi |
| 16877 | |
| 16878 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
| 16879 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. |
| 16880 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
| 16881 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 |
| 16882 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
| 16883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16884 | else |
| 16885 | cat >conftest.$ac_ext <<_ACEOF |
| 16886 | /* confdefs.h. */ |
| 16887 | _ACEOF |
| 16888 | cat confdefs.h >>conftest.$ac_ext |
| 16889 | cat >>conftest.$ac_ext <<_ACEOF |
| 16890 | /* end confdefs.h. */ |
| 16891 | #include <machine/reg.h> |
| 16892 | |
| 16893 | int |
| 16894 | main () |
| 16895 | { |
| 16896 | static struct reg ac_aggr; |
| 16897 | if (ac_aggr.r_fs) |
| 16898 | return 0; |
| 16899 | ; |
| 16900 | return 0; |
| 16901 | } |
| 16902 | _ACEOF |
| 16903 | rm -f conftest.$ac_objext |
| 16904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16905 | (eval $ac_compile) 2>conftest.er1 |
| 16906 | ac_status=$? |
| 16907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16908 | rm -f conftest.er1 |
| 16909 | cat conftest.err >&5 |
| 16910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16911 | (exit $ac_status); } && |
| 16912 | { ac_try='test -z "$ac_c_werror_flag" |
| 16913 | || test ! -s conftest.err' |
| 16914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16915 | (eval $ac_try) 2>&5 |
| 16916 | ac_status=$? |
| 16917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16918 | (exit $ac_status); }; } && |
| 16919 | { ac_try='test -s conftest.$ac_objext' |
| 16920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16921 | (eval $ac_try) 2>&5 |
| 16922 | ac_status=$? |
| 16923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16924 | (exit $ac_status); }; }; then |
| 16925 | ac_cv_member_struct_reg_r_fs=yes |
| 16926 | else |
| 16927 | echo "$as_me: failed program was:" >&5 |
| 16928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16929 | |
| 16930 | cat >conftest.$ac_ext <<_ACEOF |
| 16931 | /* confdefs.h. */ |
| 16932 | _ACEOF |
| 16933 | cat confdefs.h >>conftest.$ac_ext |
| 16934 | cat >>conftest.$ac_ext <<_ACEOF |
| 16935 | /* end confdefs.h. */ |
| 16936 | #include <machine/reg.h> |
| 16937 | |
| 16938 | int |
| 16939 | main () |
| 16940 | { |
| 16941 | static struct reg ac_aggr; |
| 16942 | if (sizeof ac_aggr.r_fs) |
| 16943 | return 0; |
| 16944 | ; |
| 16945 | return 0; |
| 16946 | } |
| 16947 | _ACEOF |
| 16948 | rm -f conftest.$ac_objext |
| 16949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16950 | (eval $ac_compile) 2>conftest.er1 |
| 16951 | ac_status=$? |
| 16952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16953 | rm -f conftest.er1 |
| 16954 | cat conftest.err >&5 |
| 16955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16956 | (exit $ac_status); } && |
| 16957 | { ac_try='test -z "$ac_c_werror_flag" |
| 16958 | || test ! -s conftest.err' |
| 16959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16960 | (eval $ac_try) 2>&5 |
| 16961 | ac_status=$? |
| 16962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16963 | (exit $ac_status); }; } && |
| 16964 | { ac_try='test -s conftest.$ac_objext' |
| 16965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16966 | (eval $ac_try) 2>&5 |
| 16967 | ac_status=$? |
| 16968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16969 | (exit $ac_status); }; }; then |
| 16970 | ac_cv_member_struct_reg_r_fs=yes |
| 16971 | else |
| 16972 | echo "$as_me: failed program was:" >&5 |
| 16973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16974 | |
| 16975 | ac_cv_member_struct_reg_r_fs=no |
| 16976 | fi |
| 16977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16978 | fi |
| 16979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16980 | fi |
| 16981 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
| 16982 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 |
| 16983 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
| 16984 | |
| 16985 | cat >>confdefs.h <<_ACEOF |
| 16986 | #define HAVE_STRUCT_REG_R_FS 1 |
| 16987 | _ACEOF |
| 16988 | |
| 16989 | |
| 16990 | fi |
| 16991 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
| 16992 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 |
| 16993 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
| 16994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16995 | else |
| 16996 | cat >conftest.$ac_ext <<_ACEOF |
| 16997 | /* confdefs.h. */ |
| 16998 | _ACEOF |
| 16999 | cat confdefs.h >>conftest.$ac_ext |
| 17000 | cat >>conftest.$ac_ext <<_ACEOF |
| 17001 | /* end confdefs.h. */ |
| 17002 | #include <machine/reg.h> |
| 17003 | |
| 17004 | int |
| 17005 | main () |
| 17006 | { |
| 17007 | static struct reg ac_aggr; |
| 17008 | if (ac_aggr.r_gs) |
| 17009 | return 0; |
| 17010 | ; |
| 17011 | return 0; |
| 17012 | } |
| 17013 | _ACEOF |
| 17014 | rm -f conftest.$ac_objext |
| 17015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17016 | (eval $ac_compile) 2>conftest.er1 |
| 17017 | ac_status=$? |
| 17018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17019 | rm -f conftest.er1 |
| 17020 | cat conftest.err >&5 |
| 17021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17022 | (exit $ac_status); } && |
| 17023 | { ac_try='test -z "$ac_c_werror_flag" |
| 17024 | || test ! -s conftest.err' |
| 17025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17026 | (eval $ac_try) 2>&5 |
| 17027 | ac_status=$? |
| 17028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17029 | (exit $ac_status); }; } && |
| 17030 | { ac_try='test -s conftest.$ac_objext' |
| 17031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17032 | (eval $ac_try) 2>&5 |
| 17033 | ac_status=$? |
| 17034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17035 | (exit $ac_status); }; }; then |
| 17036 | ac_cv_member_struct_reg_r_gs=yes |
| 17037 | else |
| 17038 | echo "$as_me: failed program was:" >&5 |
| 17039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17040 | |
| 17041 | cat >conftest.$ac_ext <<_ACEOF |
| 17042 | /* confdefs.h. */ |
| 17043 | _ACEOF |
| 17044 | cat confdefs.h >>conftest.$ac_ext |
| 17045 | cat >>conftest.$ac_ext <<_ACEOF |
| 17046 | /* end confdefs.h. */ |
| 17047 | #include <machine/reg.h> |
| 17048 | |
| 17049 | int |
| 17050 | main () |
| 17051 | { |
| 17052 | static struct reg ac_aggr; |
| 17053 | if (sizeof ac_aggr.r_gs) |
| 17054 | return 0; |
| 17055 | ; |
| 17056 | return 0; |
| 17057 | } |
| 17058 | _ACEOF |
| 17059 | rm -f conftest.$ac_objext |
| 17060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17061 | (eval $ac_compile) 2>conftest.er1 |
| 17062 | ac_status=$? |
| 17063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17064 | rm -f conftest.er1 |
| 17065 | cat conftest.err >&5 |
| 17066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17067 | (exit $ac_status); } && |
| 17068 | { ac_try='test -z "$ac_c_werror_flag" |
| 17069 | || test ! -s conftest.err' |
| 17070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17071 | (eval $ac_try) 2>&5 |
| 17072 | ac_status=$? |
| 17073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17074 | (exit $ac_status); }; } && |
| 17075 | { ac_try='test -s conftest.$ac_objext' |
| 17076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17077 | (eval $ac_try) 2>&5 |
| 17078 | ac_status=$? |
| 17079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17080 | (exit $ac_status); }; }; then |
| 17081 | ac_cv_member_struct_reg_r_gs=yes |
| 17082 | else |
| 17083 | echo "$as_me: failed program was:" >&5 |
| 17084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17085 | |
| 17086 | ac_cv_member_struct_reg_r_gs=no |
| 17087 | fi |
| 17088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17089 | fi |
| 17090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17091 | fi |
| 17092 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
| 17093 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 |
| 17094 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
| 17095 | |
| 17096 | cat >>confdefs.h <<_ACEOF |
| 17097 | #define HAVE_STRUCT_REG_R_GS 1 |
| 17098 | _ACEOF |
| 17099 | |
| 17100 | |
| 17101 | fi |
| 17102 | |
| 17103 | |
| 17104 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
| 17105 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
| 17106 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 |
| 17107 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
| 17108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17109 | else |
| 17110 | cat >conftest.$ac_ext <<_ACEOF |
| 17111 | /* confdefs.h. */ |
| 17112 | _ACEOF |
| 17113 | cat confdefs.h >>conftest.$ac_ext |
| 17114 | cat >>conftest.$ac_ext <<_ACEOF |
| 17115 | /* end confdefs.h. */ |
| 17116 | #include <sys/ptrace.h> |
| 17117 | int |
| 17118 | main () |
| 17119 | { |
| 17120 | PTRACE_GETREGS; |
| 17121 | ; |
| 17122 | return 0; |
| 17123 | } |
| 17124 | _ACEOF |
| 17125 | rm -f conftest.$ac_objext |
| 17126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17127 | (eval $ac_compile) 2>conftest.er1 |
| 17128 | ac_status=$? |
| 17129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17130 | rm -f conftest.er1 |
| 17131 | cat conftest.err >&5 |
| 17132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17133 | (exit $ac_status); } && |
| 17134 | { ac_try='test -z "$ac_c_werror_flag" |
| 17135 | || test ! -s conftest.err' |
| 17136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17137 | (eval $ac_try) 2>&5 |
| 17138 | ac_status=$? |
| 17139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17140 | (exit $ac_status); }; } && |
| 17141 | { ac_try='test -s conftest.$ac_objext' |
| 17142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17143 | (eval $ac_try) 2>&5 |
| 17144 | ac_status=$? |
| 17145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17146 | (exit $ac_status); }; }; then |
| 17147 | gdb_cv_have_ptrace_getregs=yes |
| 17148 | else |
| 17149 | echo "$as_me: failed program was:" >&5 |
| 17150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17151 | |
| 17152 | gdb_cv_have_ptrace_getregs=no |
| 17153 | fi |
| 17154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17155 | fi |
| 17156 | |
| 17157 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
| 17158 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 |
| 17159 | if test $gdb_cv_have_ptrace_getregs = yes; then |
| 17160 | |
| 17161 | cat >>confdefs.h <<\_ACEOF |
| 17162 | #define HAVE_PTRACE_GETREGS 1 |
| 17163 | _ACEOF |
| 17164 | |
| 17165 | fi |
| 17166 | |
| 17167 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
| 17168 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
| 17169 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 |
| 17170 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
| 17171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17172 | else |
| 17173 | cat >conftest.$ac_ext <<_ACEOF |
| 17174 | /* confdefs.h. */ |
| 17175 | _ACEOF |
| 17176 | cat confdefs.h >>conftest.$ac_ext |
| 17177 | cat >>conftest.$ac_ext <<_ACEOF |
| 17178 | /* end confdefs.h. */ |
| 17179 | #include <sys/ptrace.h> |
| 17180 | int |
| 17181 | main () |
| 17182 | { |
| 17183 | PTRACE_GETFPXREGS; |
| 17184 | ; |
| 17185 | return 0; |
| 17186 | } |
| 17187 | _ACEOF |
| 17188 | rm -f conftest.$ac_objext |
| 17189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17190 | (eval $ac_compile) 2>conftest.er1 |
| 17191 | ac_status=$? |
| 17192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17193 | rm -f conftest.er1 |
| 17194 | cat conftest.err >&5 |
| 17195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17196 | (exit $ac_status); } && |
| 17197 | { ac_try='test -z "$ac_c_werror_flag" |
| 17198 | || test ! -s conftest.err' |
| 17199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17200 | (eval $ac_try) 2>&5 |
| 17201 | ac_status=$? |
| 17202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17203 | (exit $ac_status); }; } && |
| 17204 | { ac_try='test -s conftest.$ac_objext' |
| 17205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17206 | (eval $ac_try) 2>&5 |
| 17207 | ac_status=$? |
| 17208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17209 | (exit $ac_status); }; }; then |
| 17210 | gdb_cv_have_ptrace_getfpxregs=yes |
| 17211 | else |
| 17212 | echo "$as_me: failed program was:" >&5 |
| 17213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17214 | |
| 17215 | gdb_cv_have_ptrace_getfpxregs=no |
| 17216 | fi |
| 17217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17218 | fi |
| 17219 | |
| 17220 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
| 17221 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 |
| 17222 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
| 17223 | |
| 17224 | cat >>confdefs.h <<\_ACEOF |
| 17225 | #define HAVE_PTRACE_GETFPXREGS 1 |
| 17226 | _ACEOF |
| 17227 | |
| 17228 | fi |
| 17229 | |
| 17230 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
| 17231 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
| 17232 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 |
| 17233 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
| 17234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17235 | else |
| 17236 | cat >conftest.$ac_ext <<_ACEOF |
| 17237 | /* confdefs.h. */ |
| 17238 | _ACEOF |
| 17239 | cat confdefs.h >>conftest.$ac_ext |
| 17240 | cat >>conftest.$ac_ext <<_ACEOF |
| 17241 | /* end confdefs.h. */ |
| 17242 | #include <sys/types.h> |
| 17243 | #include <sys/ptrace.h> |
| 17244 | int |
| 17245 | main () |
| 17246 | { |
| 17247 | PT_GETDBREGS; |
| 17248 | ; |
| 17249 | return 0; |
| 17250 | } |
| 17251 | _ACEOF |
| 17252 | rm -f conftest.$ac_objext |
| 17253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17254 | (eval $ac_compile) 2>conftest.er1 |
| 17255 | ac_status=$? |
| 17256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17257 | rm -f conftest.er1 |
| 17258 | cat conftest.err >&5 |
| 17259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17260 | (exit $ac_status); } && |
| 17261 | { ac_try='test -z "$ac_c_werror_flag" |
| 17262 | || test ! -s conftest.err' |
| 17263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17264 | (eval $ac_try) 2>&5 |
| 17265 | ac_status=$? |
| 17266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17267 | (exit $ac_status); }; } && |
| 17268 | { ac_try='test -s conftest.$ac_objext' |
| 17269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17270 | (eval $ac_try) 2>&5 |
| 17271 | ac_status=$? |
| 17272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17273 | (exit $ac_status); }; }; then |
| 17274 | gdb_cv_have_pt_getdbregs=yes |
| 17275 | else |
| 17276 | echo "$as_me: failed program was:" >&5 |
| 17277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17278 | |
| 17279 | gdb_cv_have_pt_getdbregs=no |
| 17280 | fi |
| 17281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17282 | fi |
| 17283 | |
| 17284 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
| 17285 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 |
| 17286 | if test $gdb_cv_have_pt_getdbregs = yes; then |
| 17287 | |
| 17288 | cat >>confdefs.h <<\_ACEOF |
| 17289 | #define HAVE_PT_GETDBREGS 1 |
| 17290 | _ACEOF |
| 17291 | |
| 17292 | fi |
| 17293 | |
| 17294 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
| 17295 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
| 17296 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 |
| 17297 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
| 17298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17299 | else |
| 17300 | cat >conftest.$ac_ext <<_ACEOF |
| 17301 | /* confdefs.h. */ |
| 17302 | _ACEOF |
| 17303 | cat confdefs.h >>conftest.$ac_ext |
| 17304 | cat >>conftest.$ac_ext <<_ACEOF |
| 17305 | /* end confdefs.h. */ |
| 17306 | #include <sys/types.h> |
| 17307 | #include <sys/ptrace.h> |
| 17308 | int |
| 17309 | main () |
| 17310 | { |
| 17311 | PT_GETXMMREGS; |
| 17312 | ; |
| 17313 | return 0; |
| 17314 | } |
| 17315 | _ACEOF |
| 17316 | rm -f conftest.$ac_objext |
| 17317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17318 | (eval $ac_compile) 2>conftest.er1 |
| 17319 | ac_status=$? |
| 17320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17321 | rm -f conftest.er1 |
| 17322 | cat conftest.err >&5 |
| 17323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17324 | (exit $ac_status); } && |
| 17325 | { ac_try='test -z "$ac_c_werror_flag" |
| 17326 | || test ! -s conftest.err' |
| 17327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17328 | (eval $ac_try) 2>&5 |
| 17329 | ac_status=$? |
| 17330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17331 | (exit $ac_status); }; } && |
| 17332 | { ac_try='test -s conftest.$ac_objext' |
| 17333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17334 | (eval $ac_try) 2>&5 |
| 17335 | ac_status=$? |
| 17336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17337 | (exit $ac_status); }; }; then |
| 17338 | gdb_cv_have_pt_getxmmregs=yes |
| 17339 | else |
| 17340 | echo "$as_me: failed program was:" >&5 |
| 17341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17342 | |
| 17343 | gdb_cv_have_pt_getxmmregs=no |
| 17344 | fi |
| 17345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17346 | fi |
| 17347 | |
| 17348 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
| 17349 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 |
| 17350 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
| 17351 | |
| 17352 | cat >>confdefs.h <<\_ACEOF |
| 17353 | #define HAVE_PT_GETXMMREGS 1 |
| 17354 | _ACEOF |
| 17355 | |
| 17356 | fi |
| 17357 | |
| 17358 | # Detect which type of /proc is in use, such as for Unixware or Solaris. |
| 17359 | |
| 17360 | if test "${target}" = "${host}"; then |
| 17361 | case "${host}" in |
| 17362 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
| 17363 | |
| 17364 | cat >>confdefs.h <<\_ACEOF |
| 17365 | #define NEW_PROC_API 1 |
| 17366 | _ACEOF |
| 17367 | |
| 17368 | ;; |
| 17369 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*) |
| 17370 | |
| 17371 | cat >>confdefs.h <<\_ACEOF |
| 17372 | #define NEW_PROC_API 1 |
| 17373 | _ACEOF |
| 17374 | |
| 17375 | ;; |
| 17376 | mips-sgi-irix5*) |
| 17377 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. |
| 17378 | |
| 17379 | cat >>confdefs.h <<\_ACEOF |
| 17380 | #define _KMEMUSER 1 |
| 17381 | _ACEOF |
| 17382 | |
| 17383 | ;; |
| 17384 | esac |
| 17385 | fi |
| 17386 | |
| 17387 | if test "$ac_cv_header_sys_procfs_h" = yes; then |
| 17388 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
| 17389 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 |
| 17390 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
| 17391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17392 | else |
| 17393 | cat >conftest.$ac_ext <<_ACEOF |
| 17394 | /* confdefs.h. */ |
| 17395 | _ACEOF |
| 17396 | cat confdefs.h >>conftest.$ac_ext |
| 17397 | cat >>conftest.$ac_ext <<_ACEOF |
| 17398 | /* end confdefs.h. */ |
| 17399 | |
| 17400 | #define _SYSCALL32 |
| 17401 | #include <sys/procfs.h> |
| 17402 | int |
| 17403 | main () |
| 17404 | { |
| 17405 | pstatus_t avar |
| 17406 | ; |
| 17407 | return 0; |
| 17408 | } |
| 17409 | _ACEOF |
| 17410 | rm -f conftest.$ac_objext |
| 17411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17412 | (eval $ac_compile) 2>conftest.er1 |
| 17413 | ac_status=$? |
| 17414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17415 | rm -f conftest.er1 |
| 17416 | cat conftest.err >&5 |
| 17417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17418 | (exit $ac_status); } && |
| 17419 | { ac_try='test -z "$ac_c_werror_flag" |
| 17420 | || test ! -s conftest.err' |
| 17421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17422 | (eval $ac_try) 2>&5 |
| 17423 | ac_status=$? |
| 17424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17425 | (exit $ac_status); }; } && |
| 17426 | { ac_try='test -s conftest.$ac_objext' |
| 17427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17428 | (eval $ac_try) 2>&5 |
| 17429 | ac_status=$? |
| 17430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17431 | (exit $ac_status); }; }; then |
| 17432 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
| 17433 | else |
| 17434 | echo "$as_me: failed program was:" >&5 |
| 17435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17436 | |
| 17437 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
| 17438 | |
| 17439 | fi |
| 17440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17441 | fi |
| 17442 | |
| 17443 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
| 17444 | |
| 17445 | cat >>confdefs.h <<\_ACEOF |
| 17446 | #define HAVE_PSTATUS_T 1 |
| 17447 | _ACEOF |
| 17448 | |
| 17449 | fi |
| 17450 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
| 17451 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 |
| 17452 | |
| 17453 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
| 17454 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 |
| 17455 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
| 17456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17457 | else |
| 17458 | cat >conftest.$ac_ext <<_ACEOF |
| 17459 | /* confdefs.h. */ |
| 17460 | _ACEOF |
| 17461 | cat confdefs.h >>conftest.$ac_ext |
| 17462 | cat >>conftest.$ac_ext <<_ACEOF |
| 17463 | /* end confdefs.h. */ |
| 17464 | |
| 17465 | #define _SYSCALL32 |
| 17466 | #include <sys/procfs.h> |
| 17467 | int |
| 17468 | main () |
| 17469 | { |
| 17470 | prrun_t avar |
| 17471 | ; |
| 17472 | return 0; |
| 17473 | } |
| 17474 | _ACEOF |
| 17475 | rm -f conftest.$ac_objext |
| 17476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17477 | (eval $ac_compile) 2>conftest.er1 |
| 17478 | ac_status=$? |
| 17479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17480 | rm -f conftest.er1 |
| 17481 | cat conftest.err >&5 |
| 17482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17483 | (exit $ac_status); } && |
| 17484 | { ac_try='test -z "$ac_c_werror_flag" |
| 17485 | || test ! -s conftest.err' |
| 17486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17487 | (eval $ac_try) 2>&5 |
| 17488 | ac_status=$? |
| 17489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17490 | (exit $ac_status); }; } && |
| 17491 | { ac_try='test -s conftest.$ac_objext' |
| 17492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17493 | (eval $ac_try) 2>&5 |
| 17494 | ac_status=$? |
| 17495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17496 | (exit $ac_status); }; }; then |
| 17497 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
| 17498 | else |
| 17499 | echo "$as_me: failed program was:" >&5 |
| 17500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17501 | |
| 17502 | bfd_cv_have_sys_procfs_type_prrun_t=no |
| 17503 | |
| 17504 | fi |
| 17505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17506 | fi |
| 17507 | |
| 17508 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
| 17509 | |
| 17510 | cat >>confdefs.h <<\_ACEOF |
| 17511 | #define HAVE_PRRUN_T 1 |
| 17512 | _ACEOF |
| 17513 | |
| 17514 | fi |
| 17515 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
| 17516 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 |
| 17517 | |
| 17518 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
| 17519 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 17520 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
| 17521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17522 | else |
| 17523 | cat >conftest.$ac_ext <<_ACEOF |
| 17524 | /* confdefs.h. */ |
| 17525 | _ACEOF |
| 17526 | cat confdefs.h >>conftest.$ac_ext |
| 17527 | cat >>conftest.$ac_ext <<_ACEOF |
| 17528 | /* end confdefs.h. */ |
| 17529 | |
| 17530 | #define _SYSCALL32 |
| 17531 | #include <sys/procfs.h> |
| 17532 | int |
| 17533 | main () |
| 17534 | { |
| 17535 | gregset_t avar |
| 17536 | ; |
| 17537 | return 0; |
| 17538 | } |
| 17539 | _ACEOF |
| 17540 | rm -f conftest.$ac_objext |
| 17541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17542 | (eval $ac_compile) 2>conftest.er1 |
| 17543 | ac_status=$? |
| 17544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17545 | rm -f conftest.er1 |
| 17546 | cat conftest.err >&5 |
| 17547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17548 | (exit $ac_status); } && |
| 17549 | { ac_try='test -z "$ac_c_werror_flag" |
| 17550 | || test ! -s conftest.err' |
| 17551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17552 | (eval $ac_try) 2>&5 |
| 17553 | ac_status=$? |
| 17554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17555 | (exit $ac_status); }; } && |
| 17556 | { ac_try='test -s conftest.$ac_objext' |
| 17557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17558 | (eval $ac_try) 2>&5 |
| 17559 | ac_status=$? |
| 17560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17561 | (exit $ac_status); }; }; then |
| 17562 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
| 17563 | else |
| 17564 | echo "$as_me: failed program was:" >&5 |
| 17565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17566 | |
| 17567 | bfd_cv_have_sys_procfs_type_gregset_t=no |
| 17568 | |
| 17569 | fi |
| 17570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17571 | fi |
| 17572 | |
| 17573 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
| 17574 | |
| 17575 | cat >>confdefs.h <<\_ACEOF |
| 17576 | #define HAVE_GREGSET_T 1 |
| 17577 | _ACEOF |
| 17578 | |
| 17579 | fi |
| 17580 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
| 17581 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 |
| 17582 | |
| 17583 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
| 17584 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 17585 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
| 17586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17587 | else |
| 17588 | cat >conftest.$ac_ext <<_ACEOF |
| 17589 | /* confdefs.h. */ |
| 17590 | _ACEOF |
| 17591 | cat confdefs.h >>conftest.$ac_ext |
| 17592 | cat >>conftest.$ac_ext <<_ACEOF |
| 17593 | /* end confdefs.h. */ |
| 17594 | |
| 17595 | #define _SYSCALL32 |
| 17596 | #include <sys/procfs.h> |
| 17597 | int |
| 17598 | main () |
| 17599 | { |
| 17600 | fpregset_t avar |
| 17601 | ; |
| 17602 | return 0; |
| 17603 | } |
| 17604 | _ACEOF |
| 17605 | rm -f conftest.$ac_objext |
| 17606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17607 | (eval $ac_compile) 2>conftest.er1 |
| 17608 | ac_status=$? |
| 17609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17610 | rm -f conftest.er1 |
| 17611 | cat conftest.err >&5 |
| 17612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17613 | (exit $ac_status); } && |
| 17614 | { ac_try='test -z "$ac_c_werror_flag" |
| 17615 | || test ! -s conftest.err' |
| 17616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17617 | (eval $ac_try) 2>&5 |
| 17618 | ac_status=$? |
| 17619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17620 | (exit $ac_status); }; } && |
| 17621 | { ac_try='test -s conftest.$ac_objext' |
| 17622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17623 | (eval $ac_try) 2>&5 |
| 17624 | ac_status=$? |
| 17625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17626 | (exit $ac_status); }; }; then |
| 17627 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
| 17628 | else |
| 17629 | echo "$as_me: failed program was:" >&5 |
| 17630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17631 | |
| 17632 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
| 17633 | |
| 17634 | fi |
| 17635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17636 | fi |
| 17637 | |
| 17638 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
| 17639 | |
| 17640 | cat >>confdefs.h <<\_ACEOF |
| 17641 | #define HAVE_FPREGSET_T 1 |
| 17642 | _ACEOF |
| 17643 | |
| 17644 | fi |
| 17645 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
| 17646 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 |
| 17647 | |
| 17648 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
| 17649 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 17650 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
| 17651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17652 | else |
| 17653 | cat >conftest.$ac_ext <<_ACEOF |
| 17654 | /* confdefs.h. */ |
| 17655 | _ACEOF |
| 17656 | cat confdefs.h >>conftest.$ac_ext |
| 17657 | cat >>conftest.$ac_ext <<_ACEOF |
| 17658 | /* end confdefs.h. */ |
| 17659 | |
| 17660 | #define _SYSCALL32 |
| 17661 | #include <sys/procfs.h> |
| 17662 | int |
| 17663 | main () |
| 17664 | { |
| 17665 | prgregset_t avar |
| 17666 | ; |
| 17667 | return 0; |
| 17668 | } |
| 17669 | _ACEOF |
| 17670 | rm -f conftest.$ac_objext |
| 17671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17672 | (eval $ac_compile) 2>conftest.er1 |
| 17673 | ac_status=$? |
| 17674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17675 | rm -f conftest.er1 |
| 17676 | cat conftest.err >&5 |
| 17677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17678 | (exit $ac_status); } && |
| 17679 | { ac_try='test -z "$ac_c_werror_flag" |
| 17680 | || test ! -s conftest.err' |
| 17681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17682 | (eval $ac_try) 2>&5 |
| 17683 | ac_status=$? |
| 17684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17685 | (exit $ac_status); }; } && |
| 17686 | { ac_try='test -s conftest.$ac_objext' |
| 17687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17688 | (eval $ac_try) 2>&5 |
| 17689 | ac_status=$? |
| 17690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17691 | (exit $ac_status); }; }; then |
| 17692 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
| 17693 | else |
| 17694 | echo "$as_me: failed program was:" >&5 |
| 17695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17696 | |
| 17697 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
| 17698 | |
| 17699 | fi |
| 17700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17701 | fi |
| 17702 | |
| 17703 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
| 17704 | |
| 17705 | cat >>confdefs.h <<\_ACEOF |
| 17706 | #define HAVE_PRGREGSET_T 1 |
| 17707 | _ACEOF |
| 17708 | |
| 17709 | fi |
| 17710 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
| 17711 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 |
| 17712 | |
| 17713 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
| 17714 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 |
| 17715 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
| 17716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17717 | else |
| 17718 | cat >conftest.$ac_ext <<_ACEOF |
| 17719 | /* confdefs.h. */ |
| 17720 | _ACEOF |
| 17721 | cat confdefs.h >>conftest.$ac_ext |
| 17722 | cat >>conftest.$ac_ext <<_ACEOF |
| 17723 | /* end confdefs.h. */ |
| 17724 | |
| 17725 | #define _SYSCALL32 |
| 17726 | #include <sys/procfs.h> |
| 17727 | int |
| 17728 | main () |
| 17729 | { |
| 17730 | prfpregset_t avar |
| 17731 | ; |
| 17732 | return 0; |
| 17733 | } |
| 17734 | _ACEOF |
| 17735 | rm -f conftest.$ac_objext |
| 17736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17737 | (eval $ac_compile) 2>conftest.er1 |
| 17738 | ac_status=$? |
| 17739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17740 | rm -f conftest.er1 |
| 17741 | cat conftest.err >&5 |
| 17742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17743 | (exit $ac_status); } && |
| 17744 | { ac_try='test -z "$ac_c_werror_flag" |
| 17745 | || test ! -s conftest.err' |
| 17746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17747 | (eval $ac_try) 2>&5 |
| 17748 | ac_status=$? |
| 17749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17750 | (exit $ac_status); }; } && |
| 17751 | { ac_try='test -s conftest.$ac_objext' |
| 17752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17753 | (eval $ac_try) 2>&5 |
| 17754 | ac_status=$? |
| 17755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17756 | (exit $ac_status); }; }; then |
| 17757 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
| 17758 | else |
| 17759 | echo "$as_me: failed program was:" >&5 |
| 17760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17761 | |
| 17762 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
| 17763 | |
| 17764 | fi |
| 17765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17766 | fi |
| 17767 | |
| 17768 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
| 17769 | |
| 17770 | cat >>confdefs.h <<\_ACEOF |
| 17771 | #define HAVE_PRFPREGSET_T 1 |
| 17772 | _ACEOF |
| 17773 | |
| 17774 | fi |
| 17775 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
| 17776 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 |
| 17777 | |
| 17778 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
| 17779 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 |
| 17780 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
| 17781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17782 | else |
| 17783 | cat >conftest.$ac_ext <<_ACEOF |
| 17784 | /* confdefs.h. */ |
| 17785 | _ACEOF |
| 17786 | cat confdefs.h >>conftest.$ac_ext |
| 17787 | cat >>conftest.$ac_ext <<_ACEOF |
| 17788 | /* end confdefs.h. */ |
| 17789 | |
| 17790 | #define _SYSCALL32 |
| 17791 | #include <sys/procfs.h> |
| 17792 | int |
| 17793 | main () |
| 17794 | { |
| 17795 | prgregset32_t avar |
| 17796 | ; |
| 17797 | return 0; |
| 17798 | } |
| 17799 | _ACEOF |
| 17800 | rm -f conftest.$ac_objext |
| 17801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17802 | (eval $ac_compile) 2>conftest.er1 |
| 17803 | ac_status=$? |
| 17804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17805 | rm -f conftest.er1 |
| 17806 | cat conftest.err >&5 |
| 17807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17808 | (exit $ac_status); } && |
| 17809 | { ac_try='test -z "$ac_c_werror_flag" |
| 17810 | || test ! -s conftest.err' |
| 17811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17812 | (eval $ac_try) 2>&5 |
| 17813 | ac_status=$? |
| 17814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17815 | (exit $ac_status); }; } && |
| 17816 | { ac_try='test -s conftest.$ac_objext' |
| 17817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17818 | (eval $ac_try) 2>&5 |
| 17819 | ac_status=$? |
| 17820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17821 | (exit $ac_status); }; }; then |
| 17822 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
| 17823 | else |
| 17824 | echo "$as_me: failed program was:" >&5 |
| 17825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17826 | |
| 17827 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
| 17828 | |
| 17829 | fi |
| 17830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17831 | fi |
| 17832 | |
| 17833 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
| 17834 | |
| 17835 | cat >>confdefs.h <<\_ACEOF |
| 17836 | #define HAVE_PRGREGSET32_T 1 |
| 17837 | _ACEOF |
| 17838 | |
| 17839 | fi |
| 17840 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
| 17841 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 |
| 17842 | |
| 17843 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
| 17844 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 |
| 17845 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
| 17846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17847 | else |
| 17848 | cat >conftest.$ac_ext <<_ACEOF |
| 17849 | /* confdefs.h. */ |
| 17850 | _ACEOF |
| 17851 | cat confdefs.h >>conftest.$ac_ext |
| 17852 | cat >>conftest.$ac_ext <<_ACEOF |
| 17853 | /* end confdefs.h. */ |
| 17854 | |
| 17855 | #define _SYSCALL32 |
| 17856 | #include <sys/procfs.h> |
| 17857 | int |
| 17858 | main () |
| 17859 | { |
| 17860 | prfpregset32_t avar |
| 17861 | ; |
| 17862 | return 0; |
| 17863 | } |
| 17864 | _ACEOF |
| 17865 | rm -f conftest.$ac_objext |
| 17866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17867 | (eval $ac_compile) 2>conftest.er1 |
| 17868 | ac_status=$? |
| 17869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17870 | rm -f conftest.er1 |
| 17871 | cat conftest.err >&5 |
| 17872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17873 | (exit $ac_status); } && |
| 17874 | { ac_try='test -z "$ac_c_werror_flag" |
| 17875 | || test ! -s conftest.err' |
| 17876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17877 | (eval $ac_try) 2>&5 |
| 17878 | ac_status=$? |
| 17879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17880 | (exit $ac_status); }; } && |
| 17881 | { ac_try='test -s conftest.$ac_objext' |
| 17882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17883 | (eval $ac_try) 2>&5 |
| 17884 | ac_status=$? |
| 17885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17886 | (exit $ac_status); }; }; then |
| 17887 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
| 17888 | else |
| 17889 | echo "$as_me: failed program was:" >&5 |
| 17890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17891 | |
| 17892 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
| 17893 | |
| 17894 | fi |
| 17895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17896 | fi |
| 17897 | |
| 17898 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
| 17899 | |
| 17900 | cat >>confdefs.h <<\_ACEOF |
| 17901 | #define HAVE_PRFPREGSET32_T 1 |
| 17902 | _ACEOF |
| 17903 | |
| 17904 | fi |
| 17905 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
| 17906 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 |
| 17907 | |
| 17908 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
| 17909 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 |
| 17910 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
| 17911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17912 | else |
| 17913 | cat >conftest.$ac_ext <<_ACEOF |
| 17914 | /* confdefs.h. */ |
| 17915 | _ACEOF |
| 17916 | cat confdefs.h >>conftest.$ac_ext |
| 17917 | cat >>conftest.$ac_ext <<_ACEOF |
| 17918 | /* end confdefs.h. */ |
| 17919 | |
| 17920 | #define _SYSCALL32 |
| 17921 | #include <sys/procfs.h> |
| 17922 | int |
| 17923 | main () |
| 17924 | { |
| 17925 | lwpid_t avar |
| 17926 | ; |
| 17927 | return 0; |
| 17928 | } |
| 17929 | _ACEOF |
| 17930 | rm -f conftest.$ac_objext |
| 17931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17932 | (eval $ac_compile) 2>conftest.er1 |
| 17933 | ac_status=$? |
| 17934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17935 | rm -f conftest.er1 |
| 17936 | cat conftest.err >&5 |
| 17937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17938 | (exit $ac_status); } && |
| 17939 | { ac_try='test -z "$ac_c_werror_flag" |
| 17940 | || test ! -s conftest.err' |
| 17941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17942 | (eval $ac_try) 2>&5 |
| 17943 | ac_status=$? |
| 17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17945 | (exit $ac_status); }; } && |
| 17946 | { ac_try='test -s conftest.$ac_objext' |
| 17947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17948 | (eval $ac_try) 2>&5 |
| 17949 | ac_status=$? |
| 17950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17951 | (exit $ac_status); }; }; then |
| 17952 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
| 17953 | else |
| 17954 | echo "$as_me: failed program was:" >&5 |
| 17955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17956 | |
| 17957 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
| 17958 | |
| 17959 | fi |
| 17960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17961 | fi |
| 17962 | |
| 17963 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
| 17964 | |
| 17965 | cat >>confdefs.h <<\_ACEOF |
| 17966 | #define HAVE_LWPID_T 1 |
| 17967 | _ACEOF |
| 17968 | |
| 17969 | fi |
| 17970 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
| 17971 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 |
| 17972 | |
| 17973 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
| 17974 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 |
| 17975 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
| 17976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17977 | else |
| 17978 | cat >conftest.$ac_ext <<_ACEOF |
| 17979 | /* confdefs.h. */ |
| 17980 | _ACEOF |
| 17981 | cat confdefs.h >>conftest.$ac_ext |
| 17982 | cat >>conftest.$ac_ext <<_ACEOF |
| 17983 | /* end confdefs.h. */ |
| 17984 | |
| 17985 | #define _SYSCALL32 |
| 17986 | #include <sys/procfs.h> |
| 17987 | int |
| 17988 | main () |
| 17989 | { |
| 17990 | psaddr_t avar |
| 17991 | ; |
| 17992 | return 0; |
| 17993 | } |
| 17994 | _ACEOF |
| 17995 | rm -f conftest.$ac_objext |
| 17996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17997 | (eval $ac_compile) 2>conftest.er1 |
| 17998 | ac_status=$? |
| 17999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18000 | rm -f conftest.er1 |
| 18001 | cat conftest.err >&5 |
| 18002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18003 | (exit $ac_status); } && |
| 18004 | { ac_try='test -z "$ac_c_werror_flag" |
| 18005 | || test ! -s conftest.err' |
| 18006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18007 | (eval $ac_try) 2>&5 |
| 18008 | ac_status=$? |
| 18009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18010 | (exit $ac_status); }; } && |
| 18011 | { ac_try='test -s conftest.$ac_objext' |
| 18012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18013 | (eval $ac_try) 2>&5 |
| 18014 | ac_status=$? |
| 18015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18016 | (exit $ac_status); }; }; then |
| 18017 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
| 18018 | else |
| 18019 | echo "$as_me: failed program was:" >&5 |
| 18020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18021 | |
| 18022 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
| 18023 | |
| 18024 | fi |
| 18025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18026 | fi |
| 18027 | |
| 18028 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
| 18029 | |
| 18030 | cat >>confdefs.h <<\_ACEOF |
| 18031 | #define HAVE_PSADDR_T 1 |
| 18032 | _ACEOF |
| 18033 | |
| 18034 | fi |
| 18035 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
| 18036 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 |
| 18037 | |
| 18038 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
| 18039 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 |
| 18040 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
| 18041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18042 | else |
| 18043 | cat >conftest.$ac_ext <<_ACEOF |
| 18044 | /* confdefs.h. */ |
| 18045 | _ACEOF |
| 18046 | cat confdefs.h >>conftest.$ac_ext |
| 18047 | cat >>conftest.$ac_ext <<_ACEOF |
| 18048 | /* end confdefs.h. */ |
| 18049 | |
| 18050 | #define _SYSCALL32 |
| 18051 | #include <sys/procfs.h> |
| 18052 | int |
| 18053 | main () |
| 18054 | { |
| 18055 | prsysent_t avar |
| 18056 | ; |
| 18057 | return 0; |
| 18058 | } |
| 18059 | _ACEOF |
| 18060 | rm -f conftest.$ac_objext |
| 18061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18062 | (eval $ac_compile) 2>conftest.er1 |
| 18063 | ac_status=$? |
| 18064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18065 | rm -f conftest.er1 |
| 18066 | cat conftest.err >&5 |
| 18067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18068 | (exit $ac_status); } && |
| 18069 | { ac_try='test -z "$ac_c_werror_flag" |
| 18070 | || test ! -s conftest.err' |
| 18071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18072 | (eval $ac_try) 2>&5 |
| 18073 | ac_status=$? |
| 18074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18075 | (exit $ac_status); }; } && |
| 18076 | { ac_try='test -s conftest.$ac_objext' |
| 18077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18078 | (eval $ac_try) 2>&5 |
| 18079 | ac_status=$? |
| 18080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18081 | (exit $ac_status); }; }; then |
| 18082 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
| 18083 | else |
| 18084 | echo "$as_me: failed program was:" >&5 |
| 18085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18086 | |
| 18087 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
| 18088 | |
| 18089 | fi |
| 18090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18091 | fi |
| 18092 | |
| 18093 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
| 18094 | |
| 18095 | cat >>confdefs.h <<\_ACEOF |
| 18096 | #define HAVE_PRSYSENT_T 1 |
| 18097 | _ACEOF |
| 18098 | |
| 18099 | fi |
| 18100 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
| 18101 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 |
| 18102 | |
| 18103 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
| 18104 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 |
| 18105 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
| 18106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18107 | else |
| 18108 | cat >conftest.$ac_ext <<_ACEOF |
| 18109 | /* confdefs.h. */ |
| 18110 | _ACEOF |
| 18111 | cat confdefs.h >>conftest.$ac_ext |
| 18112 | cat >>conftest.$ac_ext <<_ACEOF |
| 18113 | /* end confdefs.h. */ |
| 18114 | |
| 18115 | #define _SYSCALL32 |
| 18116 | #include <sys/procfs.h> |
| 18117 | int |
| 18118 | main () |
| 18119 | { |
| 18120 | pr_sigset_t avar |
| 18121 | ; |
| 18122 | return 0; |
| 18123 | } |
| 18124 | _ACEOF |
| 18125 | rm -f conftest.$ac_objext |
| 18126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18127 | (eval $ac_compile) 2>conftest.er1 |
| 18128 | ac_status=$? |
| 18129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18130 | rm -f conftest.er1 |
| 18131 | cat conftest.err >&5 |
| 18132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18133 | (exit $ac_status); } && |
| 18134 | { ac_try='test -z "$ac_c_werror_flag" |
| 18135 | || test ! -s conftest.err' |
| 18136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18137 | (eval $ac_try) 2>&5 |
| 18138 | ac_status=$? |
| 18139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18140 | (exit $ac_status); }; } && |
| 18141 | { ac_try='test -s conftest.$ac_objext' |
| 18142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18143 | (eval $ac_try) 2>&5 |
| 18144 | ac_status=$? |
| 18145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18146 | (exit $ac_status); }; }; then |
| 18147 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
| 18148 | else |
| 18149 | echo "$as_me: failed program was:" >&5 |
| 18150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18151 | |
| 18152 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
| 18153 | |
| 18154 | fi |
| 18155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18156 | fi |
| 18157 | |
| 18158 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
| 18159 | |
| 18160 | cat >>confdefs.h <<\_ACEOF |
| 18161 | #define HAVE_PR_SIGSET_T 1 |
| 18162 | _ACEOF |
| 18163 | |
| 18164 | fi |
| 18165 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
| 18166 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 |
| 18167 | |
| 18168 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
| 18169 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 |
| 18170 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
| 18171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18172 | else |
| 18173 | cat >conftest.$ac_ext <<_ACEOF |
| 18174 | /* confdefs.h. */ |
| 18175 | _ACEOF |
| 18176 | cat confdefs.h >>conftest.$ac_ext |
| 18177 | cat >>conftest.$ac_ext <<_ACEOF |
| 18178 | /* end confdefs.h. */ |
| 18179 | |
| 18180 | #define _SYSCALL32 |
| 18181 | #include <sys/procfs.h> |
| 18182 | int |
| 18183 | main () |
| 18184 | { |
| 18185 | pr_sigaction64_t avar |
| 18186 | ; |
| 18187 | return 0; |
| 18188 | } |
| 18189 | _ACEOF |
| 18190 | rm -f conftest.$ac_objext |
| 18191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18192 | (eval $ac_compile) 2>conftest.er1 |
| 18193 | ac_status=$? |
| 18194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18195 | rm -f conftest.er1 |
| 18196 | cat conftest.err >&5 |
| 18197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18198 | (exit $ac_status); } && |
| 18199 | { ac_try='test -z "$ac_c_werror_flag" |
| 18200 | || test ! -s conftest.err' |
| 18201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18202 | (eval $ac_try) 2>&5 |
| 18203 | ac_status=$? |
| 18204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18205 | (exit $ac_status); }; } && |
| 18206 | { ac_try='test -s conftest.$ac_objext' |
| 18207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18208 | (eval $ac_try) 2>&5 |
| 18209 | ac_status=$? |
| 18210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18211 | (exit $ac_status); }; }; then |
| 18212 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
| 18213 | else |
| 18214 | echo "$as_me: failed program was:" >&5 |
| 18215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18216 | |
| 18217 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
| 18218 | |
| 18219 | fi |
| 18220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18221 | fi |
| 18222 | |
| 18223 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
| 18224 | |
| 18225 | cat >>confdefs.h <<\_ACEOF |
| 18226 | #define HAVE_PR_SIGACTION64_T 1 |
| 18227 | _ACEOF |
| 18228 | |
| 18229 | fi |
| 18230 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
| 18231 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 |
| 18232 | |
| 18233 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
| 18234 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 |
| 18235 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
| 18236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18237 | else |
| 18238 | cat >conftest.$ac_ext <<_ACEOF |
| 18239 | /* confdefs.h. */ |
| 18240 | _ACEOF |
| 18241 | cat confdefs.h >>conftest.$ac_ext |
| 18242 | cat >>conftest.$ac_ext <<_ACEOF |
| 18243 | /* end confdefs.h. */ |
| 18244 | |
| 18245 | #define _SYSCALL32 |
| 18246 | #include <sys/procfs.h> |
| 18247 | int |
| 18248 | main () |
| 18249 | { |
| 18250 | pr_siginfo64_t avar |
| 18251 | ; |
| 18252 | return 0; |
| 18253 | } |
| 18254 | _ACEOF |
| 18255 | rm -f conftest.$ac_objext |
| 18256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18257 | (eval $ac_compile) 2>conftest.er1 |
| 18258 | ac_status=$? |
| 18259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18260 | rm -f conftest.er1 |
| 18261 | cat conftest.err >&5 |
| 18262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18263 | (exit $ac_status); } && |
| 18264 | { ac_try='test -z "$ac_c_werror_flag" |
| 18265 | || test ! -s conftest.err' |
| 18266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18267 | (eval $ac_try) 2>&5 |
| 18268 | ac_status=$? |
| 18269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18270 | (exit $ac_status); }; } && |
| 18271 | { ac_try='test -s conftest.$ac_objext' |
| 18272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18273 | (eval $ac_try) 2>&5 |
| 18274 | ac_status=$? |
| 18275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18276 | (exit $ac_status); }; }; then |
| 18277 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
| 18278 | else |
| 18279 | echo "$as_me: failed program was:" >&5 |
| 18280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18281 | |
| 18282 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
| 18283 | |
| 18284 | fi |
| 18285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18286 | fi |
| 18287 | |
| 18288 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
| 18289 | |
| 18290 | cat >>confdefs.h <<\_ACEOF |
| 18291 | #define HAVE_PR_SIGINFO64_T 1 |
| 18292 | _ACEOF |
| 18293 | |
| 18294 | fi |
| 18295 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
| 18296 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 |
| 18297 | |
| 18298 | |
| 18299 | |
| 18300 | |
| 18301 | |
| 18302 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
| 18303 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
| 18304 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 |
| 18305 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
| 18306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18307 | else |
| 18308 | if test "$cross_compiling" = yes; then |
| 18309 | gdb_cv_prfpregset_t_broken=yes |
| 18310 | else |
| 18311 | cat >conftest.$ac_ext <<_ACEOF |
| 18312 | /* confdefs.h. */ |
| 18313 | _ACEOF |
| 18314 | cat confdefs.h >>conftest.$ac_ext |
| 18315 | cat >>conftest.$ac_ext <<_ACEOF |
| 18316 | /* end confdefs.h. */ |
| 18317 | #include <sys/procfs.h> |
| 18318 | int main () |
| 18319 | { |
| 18320 | if (sizeof (prfpregset_t) == sizeof (void *)) |
| 18321 | return 1; |
| 18322 | return 0; |
| 18323 | } |
| 18324 | _ACEOF |
| 18325 | rm -f conftest$ac_exeext |
| 18326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18327 | (eval $ac_link) 2>&5 |
| 18328 | ac_status=$? |
| 18329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18330 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18332 | (eval $ac_try) 2>&5 |
| 18333 | ac_status=$? |
| 18334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18335 | (exit $ac_status); }; }; then |
| 18336 | gdb_cv_prfpregset_t_broken=no |
| 18337 | else |
| 18338 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18339 | echo "$as_me: failed program was:" >&5 |
| 18340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18341 | |
| 18342 | ( exit $ac_status ) |
| 18343 | gdb_cv_prfpregset_t_broken=yes |
| 18344 | fi |
| 18345 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 18346 | fi |
| 18347 | fi |
| 18348 | |
| 18349 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
| 18350 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 |
| 18351 | if test $gdb_cv_prfpregset_t_broken = yes; then |
| 18352 | |
| 18353 | cat >>confdefs.h <<\_ACEOF |
| 18354 | #define PRFPREGSET_T_BROKEN 1 |
| 18355 | _ACEOF |
| 18356 | |
| 18357 | fi |
| 18358 | fi |
| 18359 | |
| 18360 | |
| 18361 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
| 18362 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 |
| 18363 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
| 18364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18365 | else |
| 18366 | cat >conftest.$ac_ext <<_ACEOF |
| 18367 | /* confdefs.h. */ |
| 18368 | _ACEOF |
| 18369 | cat confdefs.h >>conftest.$ac_ext |
| 18370 | cat >>conftest.$ac_ext <<_ACEOF |
| 18371 | /* end confdefs.h. */ |
| 18372 | #include <unistd.h> |
| 18373 | #include <sys/types.h> |
| 18374 | #include <sys/procfs.h> |
| 18375 | |
| 18376 | int |
| 18377 | main () |
| 18378 | { |
| 18379 | |
| 18380 | int dummy;; |
| 18381 | dummy = ioctl(0, PIOCSET, &dummy); |
| 18382 | |
| 18383 | ; |
| 18384 | return 0; |
| 18385 | } |
| 18386 | _ACEOF |
| 18387 | rm -f conftest.$ac_objext |
| 18388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18389 | (eval $ac_compile) 2>conftest.er1 |
| 18390 | ac_status=$? |
| 18391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18392 | rm -f conftest.er1 |
| 18393 | cat conftest.err >&5 |
| 18394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18395 | (exit $ac_status); } && |
| 18396 | { ac_try='test -z "$ac_c_werror_flag" |
| 18397 | || test ! -s conftest.err' |
| 18398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18399 | (eval $ac_try) 2>&5 |
| 18400 | ac_status=$? |
| 18401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18402 | (exit $ac_status); }; } && |
| 18403 | { ac_try='test -s conftest.$ac_objext' |
| 18404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18405 | (eval $ac_try) 2>&5 |
| 18406 | ac_status=$? |
| 18407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18408 | (exit $ac_status); }; }; then |
| 18409 | gdb_cv_have_procfs_piocset=yes |
| 18410 | else |
| 18411 | echo "$as_me: failed program was:" >&5 |
| 18412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18413 | |
| 18414 | gdb_cv_have_procfs_piocset=no |
| 18415 | fi |
| 18416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18417 | fi |
| 18418 | |
| 18419 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
| 18420 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 |
| 18421 | if test $gdb_cv_have_procfs_piocset = yes; then |
| 18422 | |
| 18423 | cat >>confdefs.h <<\_ACEOF |
| 18424 | #define HAVE_PROCFS_PIOCSET 1 |
| 18425 | _ACEOF |
| 18426 | |
| 18427 | fi |
| 18428 | fi |
| 18429 | |
| 18430 | if test ${host} = ${target} ; then |
| 18431 | |
| 18432 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
| 18433 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 |
| 18434 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
| 18435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18436 | else |
| 18437 | cat >conftest.$ac_ext <<_ACEOF |
| 18438 | /* confdefs.h. */ |
| 18439 | _ACEOF |
| 18440 | cat confdefs.h >>conftest.$ac_ext |
| 18441 | cat >>conftest.$ac_ext <<_ACEOF |
| 18442 | /* end confdefs.h. */ |
| 18443 | #include <link.h> |
| 18444 | int |
| 18445 | main () |
| 18446 | { |
| 18447 | struct link_map lm; (void) lm.l_addr; |
| 18448 | ; |
| 18449 | return 0; |
| 18450 | } |
| 18451 | _ACEOF |
| 18452 | rm -f conftest.$ac_objext |
| 18453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18454 | (eval $ac_compile) 2>conftest.er1 |
| 18455 | ac_status=$? |
| 18456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18457 | rm -f conftest.er1 |
| 18458 | cat conftest.err >&5 |
| 18459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18460 | (exit $ac_status); } && |
| 18461 | { ac_try='test -z "$ac_c_werror_flag" |
| 18462 | || test ! -s conftest.err' |
| 18463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18464 | (eval $ac_try) 2>&5 |
| 18465 | ac_status=$? |
| 18466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18467 | (exit $ac_status); }; } && |
| 18468 | { ac_try='test -s conftest.$ac_objext' |
| 18469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18470 | (eval $ac_try) 2>&5 |
| 18471 | ac_status=$? |
| 18472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18473 | (exit $ac_status); }; }; then |
| 18474 | gdb_cv_have_struct_link_map_with_l_members=yes |
| 18475 | else |
| 18476 | echo "$as_me: failed program was:" >&5 |
| 18477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18478 | |
| 18479 | gdb_cv_have_struct_link_map_with_l_members=no |
| 18480 | fi |
| 18481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18482 | fi |
| 18483 | |
| 18484 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
| 18485 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 |
| 18486 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
| 18487 | |
| 18488 | cat >>confdefs.h <<\_ACEOF |
| 18489 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
| 18490 | _ACEOF |
| 18491 | |
| 18492 | fi |
| 18493 | |
| 18494 | |
| 18495 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
| 18496 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 |
| 18497 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
| 18498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18499 | else |
| 18500 | cat >conftest.$ac_ext <<_ACEOF |
| 18501 | /* confdefs.h. */ |
| 18502 | _ACEOF |
| 18503 | cat confdefs.h >>conftest.$ac_ext |
| 18504 | cat >>conftest.$ac_ext <<_ACEOF |
| 18505 | /* end confdefs.h. */ |
| 18506 | #include <sys/types.h> |
| 18507 | #include <link.h> |
| 18508 | int |
| 18509 | main () |
| 18510 | { |
| 18511 | struct link_map lm; (void) lm.lm_addr; |
| 18512 | ; |
| 18513 | return 0; |
| 18514 | } |
| 18515 | _ACEOF |
| 18516 | rm -f conftest.$ac_objext |
| 18517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18518 | (eval $ac_compile) 2>conftest.er1 |
| 18519 | ac_status=$? |
| 18520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18521 | rm -f conftest.er1 |
| 18522 | cat conftest.err >&5 |
| 18523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18524 | (exit $ac_status); } && |
| 18525 | { ac_try='test -z "$ac_c_werror_flag" |
| 18526 | || test ! -s conftest.err' |
| 18527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18528 | (eval $ac_try) 2>&5 |
| 18529 | ac_status=$? |
| 18530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18531 | (exit $ac_status); }; } && |
| 18532 | { ac_try='test -s conftest.$ac_objext' |
| 18533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18534 | (eval $ac_try) 2>&5 |
| 18535 | ac_status=$? |
| 18536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18537 | (exit $ac_status); }; }; then |
| 18538 | gdb_cv_have_struct_link_map_with_lm_members=yes |
| 18539 | else |
| 18540 | echo "$as_me: failed program was:" >&5 |
| 18541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18542 | |
| 18543 | gdb_cv_have_struct_link_map_with_lm_members=no |
| 18544 | fi |
| 18545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18546 | fi |
| 18547 | |
| 18548 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
| 18549 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 |
| 18550 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
| 18551 | |
| 18552 | cat >>confdefs.h <<\_ACEOF |
| 18553 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
| 18554 | _ACEOF |
| 18555 | |
| 18556 | fi |
| 18557 | |
| 18558 | |
| 18559 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
| 18560 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 |
| 18561 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
| 18562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18563 | else |
| 18564 | cat >conftest.$ac_ext <<_ACEOF |
| 18565 | /* confdefs.h. */ |
| 18566 | _ACEOF |
| 18567 | cat confdefs.h >>conftest.$ac_ext |
| 18568 | cat >>conftest.$ac_ext <<_ACEOF |
| 18569 | /* end confdefs.h. */ |
| 18570 | #include <sys/types.h> |
| 18571 | #ifdef HAVE_NLIST_H |
| 18572 | #include <nlist.h> |
| 18573 | #endif |
| 18574 | #include <link.h> |
| 18575 | int |
| 18576 | main () |
| 18577 | { |
| 18578 | struct so_map lm; (void) lm.som_addr; |
| 18579 | ; |
| 18580 | return 0; |
| 18581 | } |
| 18582 | _ACEOF |
| 18583 | rm -f conftest.$ac_objext |
| 18584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18585 | (eval $ac_compile) 2>conftest.er1 |
| 18586 | ac_status=$? |
| 18587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18588 | rm -f conftest.er1 |
| 18589 | cat conftest.err >&5 |
| 18590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18591 | (exit $ac_status); } && |
| 18592 | { ac_try='test -z "$ac_c_werror_flag" |
| 18593 | || test ! -s conftest.err' |
| 18594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18595 | (eval $ac_try) 2>&5 |
| 18596 | ac_status=$? |
| 18597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18598 | (exit $ac_status); }; } && |
| 18599 | { ac_try='test -s conftest.$ac_objext' |
| 18600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18601 | (eval $ac_try) 2>&5 |
| 18602 | ac_status=$? |
| 18603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18604 | (exit $ac_status); }; }; then |
| 18605 | gdb_cv_have_struct_so_map_with_som_members=yes |
| 18606 | else |
| 18607 | echo "$as_me: failed program was:" >&5 |
| 18608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18609 | |
| 18610 | gdb_cv_have_struct_so_map_with_som_members=no |
| 18611 | fi |
| 18612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18613 | fi |
| 18614 | |
| 18615 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
| 18616 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 |
| 18617 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
| 18618 | |
| 18619 | cat >>confdefs.h <<\_ACEOF |
| 18620 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
| 18621 | _ACEOF |
| 18622 | |
| 18623 | fi |
| 18624 | |
| 18625 | |
| 18626 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
| 18627 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 |
| 18628 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
| 18629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18630 | else |
| 18631 | cat >conftest.$ac_ext <<_ACEOF |
| 18632 | /* confdefs.h. */ |
| 18633 | _ACEOF |
| 18634 | cat confdefs.h >>conftest.$ac_ext |
| 18635 | cat >>conftest.$ac_ext <<_ACEOF |
| 18636 | /* end confdefs.h. */ |
| 18637 | #define _SYSCALL32 |
| 18638 | #include <sys/link.h> |
| 18639 | int |
| 18640 | main () |
| 18641 | { |
| 18642 | struct link_map32 l; |
| 18643 | ; |
| 18644 | return 0; |
| 18645 | } |
| 18646 | _ACEOF |
| 18647 | rm -f conftest.$ac_objext |
| 18648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18649 | (eval $ac_compile) 2>conftest.er1 |
| 18650 | ac_status=$? |
| 18651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18652 | rm -f conftest.er1 |
| 18653 | cat conftest.err >&5 |
| 18654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18655 | (exit $ac_status); } && |
| 18656 | { ac_try='test -z "$ac_c_werror_flag" |
| 18657 | || test ! -s conftest.err' |
| 18658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18659 | (eval $ac_try) 2>&5 |
| 18660 | ac_status=$? |
| 18661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18662 | (exit $ac_status); }; } && |
| 18663 | { ac_try='test -s conftest.$ac_objext' |
| 18664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18665 | (eval $ac_try) 2>&5 |
| 18666 | ac_status=$? |
| 18667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18668 | (exit $ac_status); }; }; then |
| 18669 | gdb_cv_have_struct_link_map32=yes |
| 18670 | else |
| 18671 | echo "$as_me: failed program was:" >&5 |
| 18672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18673 | |
| 18674 | gdb_cv_have_struct_link_map32=no |
| 18675 | fi |
| 18676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18677 | fi |
| 18678 | |
| 18679 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
| 18680 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 |
| 18681 | if test $gdb_cv_have_struct_link_map32 = yes; then |
| 18682 | |
| 18683 | cat >>confdefs.h <<\_ACEOF |
| 18684 | #define HAVE_STRUCT_LINK_MAP32 1 |
| 18685 | _ACEOF |
| 18686 | |
| 18687 | |
| 18688 | cat >>confdefs.h <<\_ACEOF |
| 18689 | #define _SYSCALL32 1 |
| 18690 | _ACEOF |
| 18691 | |
| 18692 | fi |
| 18693 | fi |
| 18694 | |
| 18695 | # Check if the compiler supports the `long long' type. |
| 18696 | |
| 18697 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
| 18698 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 |
| 18699 | if test "${gdb_cv_c_long_long+set}" = set; then |
| 18700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18701 | else |
| 18702 | cat >conftest.$ac_ext <<_ACEOF |
| 18703 | /* confdefs.h. */ |
| 18704 | _ACEOF |
| 18705 | cat confdefs.h >>conftest.$ac_ext |
| 18706 | cat >>conftest.$ac_ext <<_ACEOF |
| 18707 | /* end confdefs.h. */ |
| 18708 | extern long long foo; |
| 18709 | int |
| 18710 | main () |
| 18711 | { |
| 18712 | switch (foo & 2) { case 0: return 1; } |
| 18713 | ; |
| 18714 | return 0; |
| 18715 | } |
| 18716 | _ACEOF |
| 18717 | rm -f conftest.$ac_objext |
| 18718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18719 | (eval $ac_compile) 2>conftest.er1 |
| 18720 | ac_status=$? |
| 18721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18722 | rm -f conftest.er1 |
| 18723 | cat conftest.err >&5 |
| 18724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18725 | (exit $ac_status); } && |
| 18726 | { ac_try='test -z "$ac_c_werror_flag" |
| 18727 | || test ! -s conftest.err' |
| 18728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18729 | (eval $ac_try) 2>&5 |
| 18730 | ac_status=$? |
| 18731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18732 | (exit $ac_status); }; } && |
| 18733 | { ac_try='test -s conftest.$ac_objext' |
| 18734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18735 | (eval $ac_try) 2>&5 |
| 18736 | ac_status=$? |
| 18737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18738 | (exit $ac_status); }; }; then |
| 18739 | gdb_cv_c_long_long=yes |
| 18740 | else |
| 18741 | echo "$as_me: failed program was:" >&5 |
| 18742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18743 | |
| 18744 | gdb_cv_c_long_long=no |
| 18745 | fi |
| 18746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18747 | fi |
| 18748 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
| 18749 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 |
| 18750 | if test $gdb_cv_c_long_long = yes; then |
| 18751 | |
| 18752 | cat >>confdefs.h <<\_ACEOF |
| 18753 | #define CC_HAS_LONG_LONG 1 |
| 18754 | _ACEOF |
| 18755 | |
| 18756 | fi |
| 18757 | |
| 18758 | # Check if the compiler and runtime support printing long longs. |
| 18759 | |
| 18760 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
| 18761 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 |
| 18762 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
| 18763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18764 | else |
| 18765 | if test "$cross_compiling" = yes; then |
| 18766 | gdb_cv_printf_has_long_long=no |
| 18767 | else |
| 18768 | cat >conftest.$ac_ext <<_ACEOF |
| 18769 | /* confdefs.h. */ |
| 18770 | _ACEOF |
| 18771 | cat confdefs.h >>conftest.$ac_ext |
| 18772 | cat >>conftest.$ac_ext <<_ACEOF |
| 18773 | /* end confdefs.h. */ |
| 18774 | $ac_includes_default |
| 18775 | int |
| 18776 | main () |
| 18777 | { |
| 18778 | char buf[32]; |
| 18779 | long long l = 0; |
| 18780 | l = (l << 16) + 0x0123; |
| 18781 | l = (l << 16) + 0x4567; |
| 18782 | l = (l << 16) + 0x89ab; |
| 18783 | l = (l << 16) + 0xcdef; |
| 18784 | sprintf (buf, "0x%016llx", l); |
| 18785 | return (strcmp ("0x0123456789abcdef", buf)); |
| 18786 | ; |
| 18787 | return 0; |
| 18788 | } |
| 18789 | _ACEOF |
| 18790 | rm -f conftest$ac_exeext |
| 18791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18792 | (eval $ac_link) 2>&5 |
| 18793 | ac_status=$? |
| 18794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18795 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18797 | (eval $ac_try) 2>&5 |
| 18798 | ac_status=$? |
| 18799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18800 | (exit $ac_status); }; }; then |
| 18801 | gdb_cv_printf_has_long_long=yes |
| 18802 | else |
| 18803 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18804 | echo "$as_me: failed program was:" >&5 |
| 18805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18806 | |
| 18807 | ( exit $ac_status ) |
| 18808 | gdb_cv_printf_has_long_long=no |
| 18809 | fi |
| 18810 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 18811 | fi |
| 18812 | fi |
| 18813 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
| 18814 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 |
| 18815 | if test $gdb_cv_printf_has_long_long = yes; then |
| 18816 | |
| 18817 | cat >>confdefs.h <<\_ACEOF |
| 18818 | #define PRINTF_HAS_LONG_LONG 1 |
| 18819 | _ACEOF |
| 18820 | |
| 18821 | fi |
| 18822 | |
| 18823 | # Check if the compiler and runtime support printing decfloats. |
| 18824 | |
| 18825 | echo "$as_me:$LINENO: checking for decfloat support in printf" >&5 |
| 18826 | echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6 |
| 18827 | if test "${gdb_cv_printf_has_decfloat+set}" = set; then |
| 18828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18829 | else |
| 18830 | if test "$cross_compiling" = yes; then |
| 18831 | gdb_cv_printf_has_decfloat=no |
| 18832 | else |
| 18833 | cat >conftest.$ac_ext <<_ACEOF |
| 18834 | /* confdefs.h. */ |
| 18835 | _ACEOF |
| 18836 | cat confdefs.h >>conftest.$ac_ext |
| 18837 | cat >>conftest.$ac_ext <<_ACEOF |
| 18838 | /* end confdefs.h. */ |
| 18839 | $ac_includes_default |
| 18840 | int |
| 18841 | main () |
| 18842 | { |
| 18843 | char buf[64]; |
| 18844 | _Decimal32 d32 = 1.2345df; |
| 18845 | _Decimal64 d64 = 1.2345dd; |
| 18846 | _Decimal128 d128 = 1.2345dl; |
| 18847 | sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128); |
| 18848 | return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf)); |
| 18849 | ; |
| 18850 | return 0; |
| 18851 | } |
| 18852 | _ACEOF |
| 18853 | rm -f conftest$ac_exeext |
| 18854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18855 | (eval $ac_link) 2>&5 |
| 18856 | ac_status=$? |
| 18857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18858 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18860 | (eval $ac_try) 2>&5 |
| 18861 | ac_status=$? |
| 18862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18863 | (exit $ac_status); }; }; then |
| 18864 | gdb_cv_printf_has_decfloat=yes |
| 18865 | else |
| 18866 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18867 | echo "$as_me: failed program was:" >&5 |
| 18868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18869 | |
| 18870 | ( exit $ac_status ) |
| 18871 | gdb_cv_printf_has_decfloat=no |
| 18872 | fi |
| 18873 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 18874 | fi |
| 18875 | fi |
| 18876 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5 |
| 18877 | echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6 |
| 18878 | if test $gdb_cv_printf_has_decfloat = yes; then |
| 18879 | |
| 18880 | cat >>confdefs.h <<\_ACEOF |
| 18881 | #define PRINTF_HAS_DECFLOAT 1 |
| 18882 | _ACEOF |
| 18883 | |
| 18884 | fi |
| 18885 | |
| 18886 | # Check if the compiler supports the `long double' type. We can't use |
| 18887 | # AC_C_LONG_DOUBLE because that one does additional checks on the |
| 18888 | # constants defined in <float.h> that fail on some systems, |
| 18889 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. |
| 18890 | |
| 18891 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
| 18892 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 |
| 18893 | if test "${gdb_cv_c_long_double+set}" = set; then |
| 18894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18895 | else |
| 18896 | cat >conftest.$ac_ext <<_ACEOF |
| 18897 | /* confdefs.h. */ |
| 18898 | _ACEOF |
| 18899 | cat confdefs.h >>conftest.$ac_ext |
| 18900 | cat >>conftest.$ac_ext <<_ACEOF |
| 18901 | /* end confdefs.h. */ |
| 18902 | long double foo; |
| 18903 | _ACEOF |
| 18904 | rm -f conftest.$ac_objext |
| 18905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18906 | (eval $ac_compile) 2>conftest.er1 |
| 18907 | ac_status=$? |
| 18908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18909 | rm -f conftest.er1 |
| 18910 | cat conftest.err >&5 |
| 18911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18912 | (exit $ac_status); } && |
| 18913 | { ac_try='test -z "$ac_c_werror_flag" |
| 18914 | || test ! -s conftest.err' |
| 18915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18916 | (eval $ac_try) 2>&5 |
| 18917 | ac_status=$? |
| 18918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18919 | (exit $ac_status); }; } && |
| 18920 | { ac_try='test -s conftest.$ac_objext' |
| 18921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18922 | (eval $ac_try) 2>&5 |
| 18923 | ac_status=$? |
| 18924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18925 | (exit $ac_status); }; }; then |
| 18926 | gdb_cv_c_long_double=yes |
| 18927 | else |
| 18928 | echo "$as_me: failed program was:" >&5 |
| 18929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18930 | |
| 18931 | gdb_cv_c_long_double=no |
| 18932 | fi |
| 18933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18934 | fi |
| 18935 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
| 18936 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 |
| 18937 | if test $gdb_cv_c_long_double = yes; then |
| 18938 | |
| 18939 | cat >>confdefs.h <<\_ACEOF |
| 18940 | #define HAVE_LONG_DOUBLE 1 |
| 18941 | _ACEOF |
| 18942 | |
| 18943 | fi |
| 18944 | |
| 18945 | # Check if the compiler and runtime support printing long doubles. |
| 18946 | |
| 18947 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
| 18948 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 |
| 18949 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
| 18950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18951 | else |
| 18952 | if test "$cross_compiling" = yes; then |
| 18953 | gdb_cv_printf_has_long_double=no |
| 18954 | else |
| 18955 | cat >conftest.$ac_ext <<_ACEOF |
| 18956 | /* confdefs.h. */ |
| 18957 | _ACEOF |
| 18958 | cat confdefs.h >>conftest.$ac_ext |
| 18959 | cat >>conftest.$ac_ext <<_ACEOF |
| 18960 | /* end confdefs.h. */ |
| 18961 | $ac_includes_default |
| 18962 | int |
| 18963 | main () |
| 18964 | { |
| 18965 | char buf[16]; |
| 18966 | long double f = 3.141592653; |
| 18967 | sprintf (buf, "%Lg", f); |
| 18968 | return (strncmp ("3.14159", buf, 7)); |
| 18969 | ; |
| 18970 | return 0; |
| 18971 | } |
| 18972 | _ACEOF |
| 18973 | rm -f conftest$ac_exeext |
| 18974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18975 | (eval $ac_link) 2>&5 |
| 18976 | ac_status=$? |
| 18977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18978 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18980 | (eval $ac_try) 2>&5 |
| 18981 | ac_status=$? |
| 18982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18983 | (exit $ac_status); }; }; then |
| 18984 | gdb_cv_printf_has_long_double=yes |
| 18985 | else |
| 18986 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18987 | echo "$as_me: failed program was:" >&5 |
| 18988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18989 | |
| 18990 | ( exit $ac_status ) |
| 18991 | gdb_cv_printf_has_long_double=no |
| 18992 | fi |
| 18993 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 18994 | fi |
| 18995 | fi |
| 18996 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
| 18997 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 |
| 18998 | if test $gdb_cv_printf_has_long_double = yes; then |
| 18999 | |
| 19000 | cat >>confdefs.h <<\_ACEOF |
| 19001 | #define PRINTF_HAS_LONG_DOUBLE 1 |
| 19002 | _ACEOF |
| 19003 | |
| 19004 | fi |
| 19005 | |
| 19006 | # Check if the compiler and runtime support scanning long doubles. |
| 19007 | |
| 19008 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
| 19009 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 |
| 19010 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
| 19011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19012 | else |
| 19013 | if test "$cross_compiling" = yes; then |
| 19014 | gdb_cv_scanf_has_long_double=no |
| 19015 | else |
| 19016 | cat >conftest.$ac_ext <<_ACEOF |
| 19017 | /* confdefs.h. */ |
| 19018 | _ACEOF |
| 19019 | cat confdefs.h >>conftest.$ac_ext |
| 19020 | cat >>conftest.$ac_ext <<_ACEOF |
| 19021 | /* end confdefs.h. */ |
| 19022 | #include <stdio.h> |
| 19023 | int |
| 19024 | main () |
| 19025 | { |
| 19026 | char *buf = "3.141592653"; |
| 19027 | long double f = 0; |
| 19028 | sscanf (buf, "%Lg", &f); |
| 19029 | return !(f > 3.14159 && f < 3.14160); |
| 19030 | ; |
| 19031 | return 0; |
| 19032 | } |
| 19033 | _ACEOF |
| 19034 | rm -f conftest$ac_exeext |
| 19035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19036 | (eval $ac_link) 2>&5 |
| 19037 | ac_status=$? |
| 19038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19039 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19041 | (eval $ac_try) 2>&5 |
| 19042 | ac_status=$? |
| 19043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19044 | (exit $ac_status); }; }; then |
| 19045 | gdb_cv_scanf_has_long_double=yes |
| 19046 | else |
| 19047 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19048 | echo "$as_me: failed program was:" >&5 |
| 19049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19050 | |
| 19051 | ( exit $ac_status ) |
| 19052 | gdb_cv_scanf_has_long_double=no |
| 19053 | fi |
| 19054 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19055 | fi |
| 19056 | fi |
| 19057 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
| 19058 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 |
| 19059 | if test $gdb_cv_scanf_has_long_double = yes; then |
| 19060 | |
| 19061 | cat >>confdefs.h <<\_ACEOF |
| 19062 | #define SCANF_HAS_LONG_DOUBLE 1 |
| 19063 | _ACEOF |
| 19064 | |
| 19065 | fi |
| 19066 | |
| 19067 | case ${host_os} in |
| 19068 | aix*) |
| 19069 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
| 19070 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 |
| 19071 | if test "${gdb_cv_bigtoc+set}" = set; then |
| 19072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19073 | else |
| 19074 | |
| 19075 | SAVE_LDFLAGS=$LDFLAGS |
| 19076 | |
| 19077 | case $GCC in |
| 19078 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; |
| 19079 | *) gdb_cv_bigtoc=-bbigtoc ;; |
| 19080 | esac |
| 19081 | |
| 19082 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc |
| 19083 | cat >conftest.$ac_ext <<_ACEOF |
| 19084 | /* confdefs.h. */ |
| 19085 | _ACEOF |
| 19086 | cat confdefs.h >>conftest.$ac_ext |
| 19087 | cat >>conftest.$ac_ext <<_ACEOF |
| 19088 | /* end confdefs.h. */ |
| 19089 | |
| 19090 | int |
| 19091 | main () |
| 19092 | { |
| 19093 | int i; |
| 19094 | ; |
| 19095 | return 0; |
| 19096 | } |
| 19097 | _ACEOF |
| 19098 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19100 | (eval $ac_link) 2>conftest.er1 |
| 19101 | ac_status=$? |
| 19102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19103 | rm -f conftest.er1 |
| 19104 | cat conftest.err >&5 |
| 19105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19106 | (exit $ac_status); } && |
| 19107 | { ac_try='test -z "$ac_c_werror_flag" |
| 19108 | || test ! -s conftest.err' |
| 19109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19110 | (eval $ac_try) 2>&5 |
| 19111 | ac_status=$? |
| 19112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19113 | (exit $ac_status); }; } && |
| 19114 | { ac_try='test -s conftest$ac_exeext' |
| 19115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19116 | (eval $ac_try) 2>&5 |
| 19117 | ac_status=$? |
| 19118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19119 | (exit $ac_status); }; }; then |
| 19120 | : |
| 19121 | else |
| 19122 | echo "$as_me: failed program was:" >&5 |
| 19123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19124 | |
| 19125 | gdb_cv_bigtoc= |
| 19126 | fi |
| 19127 | rm -f conftest.err conftest.$ac_objext \ |
| 19128 | conftest$ac_exeext conftest.$ac_ext |
| 19129 | LDFLAGS="${SAVE_LDFLAGS}" |
| 19130 | |
| 19131 | fi |
| 19132 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
| 19133 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 |
| 19134 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
| 19135 | ;; |
| 19136 | esac |
| 19137 | |
| 19138 | |
| 19139 | |
| 19140 | if test ${build} = ${host} -a ${host} = ${target} ; then |
| 19141 | case ${host_os} in |
| 19142 | hpux*) |
| 19143 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
| 19144 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 |
| 19145 | if test -f /usr/include/dce/cma_config.h ; then |
| 19146 | if test "$GCC" = "yes" ; then |
| 19147 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19148 | echo "${ECHO_T}yes" >&6 |
| 19149 | |
| 19150 | cat >>confdefs.h <<\_ACEOF |
| 19151 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
| 19152 | _ACEOF |
| 19153 | |
| 19154 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
| 19155 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
| 19156 | else |
| 19157 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
| 19158 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 |
| 19159 | fi |
| 19160 | else |
| 19161 | echo "$as_me:$LINENO: result: no" >&5 |
| 19162 | echo "${ECHO_T}no" >&6 |
| 19163 | fi |
| 19164 | ;; |
| 19165 | solaris*) |
| 19166 | # See if thread_db library is around for Solaris thread debugging. |
| 19167 | # Note that we must explicitly test for version 1 of the library |
| 19168 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have |
| 19169 | # the same API. |
| 19170 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
| 19171 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 |
| 19172 | if test -f /usr/lib/libthread_db.so.1 ; then |
| 19173 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19174 | echo "${ECHO_T}yes" >&6 |
| 19175 | |
| 19176 | cat >>confdefs.h <<\_ACEOF |
| 19177 | #define HAVE_THREAD_DB_LIB 1 |
| 19178 | _ACEOF |
| 19179 | |
| 19180 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
| 19181 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
| 19182 | |
| 19183 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 19184 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 19185 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 19186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19187 | else |
| 19188 | ac_check_lib_save_LIBS=$LIBS |
| 19189 | LIBS="-ldl $LIBS" |
| 19190 | cat >conftest.$ac_ext <<_ACEOF |
| 19191 | /* confdefs.h. */ |
| 19192 | _ACEOF |
| 19193 | cat confdefs.h >>conftest.$ac_ext |
| 19194 | cat >>conftest.$ac_ext <<_ACEOF |
| 19195 | /* end confdefs.h. */ |
| 19196 | |
| 19197 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19198 | #ifdef __cplusplus |
| 19199 | extern "C" |
| 19200 | #endif |
| 19201 | /* We use char because int might match the return type of a gcc2 |
| 19202 | builtin and then its argument prototype would still apply. */ |
| 19203 | char dlopen (); |
| 19204 | int |
| 19205 | main () |
| 19206 | { |
| 19207 | dlopen (); |
| 19208 | ; |
| 19209 | return 0; |
| 19210 | } |
| 19211 | _ACEOF |
| 19212 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19214 | (eval $ac_link) 2>conftest.er1 |
| 19215 | ac_status=$? |
| 19216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19217 | rm -f conftest.er1 |
| 19218 | cat conftest.err >&5 |
| 19219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19220 | (exit $ac_status); } && |
| 19221 | { ac_try='test -z "$ac_c_werror_flag" |
| 19222 | || test ! -s conftest.err' |
| 19223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19224 | (eval $ac_try) 2>&5 |
| 19225 | ac_status=$? |
| 19226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19227 | (exit $ac_status); }; } && |
| 19228 | { ac_try='test -s conftest$ac_exeext' |
| 19229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19230 | (eval $ac_try) 2>&5 |
| 19231 | ac_status=$? |
| 19232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19233 | (exit $ac_status); }; }; then |
| 19234 | ac_cv_lib_dl_dlopen=yes |
| 19235 | else |
| 19236 | echo "$as_me: failed program was:" >&5 |
| 19237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19238 | |
| 19239 | ac_cv_lib_dl_dlopen=no |
| 19240 | fi |
| 19241 | rm -f conftest.err conftest.$ac_objext \ |
| 19242 | conftest$ac_exeext conftest.$ac_ext |
| 19243 | LIBS=$ac_check_lib_save_LIBS |
| 19244 | fi |
| 19245 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 19246 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 19247 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 19248 | cat >>confdefs.h <<_ACEOF |
| 19249 | #define HAVE_LIBDL 1 |
| 19250 | _ACEOF |
| 19251 | |
| 19252 | LIBS="-ldl $LIBS" |
| 19253 | |
| 19254 | fi |
| 19255 | |
| 19256 | if test "$GCC" = "yes" ; then |
| 19257 | # The GNU linker requires the -export-dynamic option to make |
| 19258 | # all symbols visible in the dynamic symbol table. |
| 19259 | hold_ldflags=$LDFLAGS |
| 19260 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
| 19261 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 |
| 19262 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
| 19263 | cat >conftest.$ac_ext <<_ACEOF |
| 19264 | /* confdefs.h. */ |
| 19265 | _ACEOF |
| 19266 | cat confdefs.h >>conftest.$ac_ext |
| 19267 | cat >>conftest.$ac_ext <<_ACEOF |
| 19268 | /* end confdefs.h. */ |
| 19269 | |
| 19270 | int |
| 19271 | main () |
| 19272 | { |
| 19273 | int i; |
| 19274 | ; |
| 19275 | return 0; |
| 19276 | } |
| 19277 | _ACEOF |
| 19278 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19280 | (eval $ac_link) 2>conftest.er1 |
| 19281 | ac_status=$? |
| 19282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19283 | rm -f conftest.er1 |
| 19284 | cat conftest.err >&5 |
| 19285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19286 | (exit $ac_status); } && |
| 19287 | { ac_try='test -z "$ac_c_werror_flag" |
| 19288 | || test ! -s conftest.err' |
| 19289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19290 | (eval $ac_try) 2>&5 |
| 19291 | ac_status=$? |
| 19292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19293 | (exit $ac_status); }; } && |
| 19294 | { ac_try='test -s conftest$ac_exeext' |
| 19295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19296 | (eval $ac_try) 2>&5 |
| 19297 | ac_status=$? |
| 19298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19299 | (exit $ac_status); }; }; then |
| 19300 | found=yes |
| 19301 | else |
| 19302 | echo "$as_me: failed program was:" >&5 |
| 19303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19304 | |
| 19305 | found=no |
| 19306 | fi |
| 19307 | rm -f conftest.err conftest.$ac_objext \ |
| 19308 | conftest$ac_exeext conftest.$ac_ext |
| 19309 | LDFLAGS=$hold_ldflags |
| 19310 | echo "$as_me:$LINENO: result: $found" >&5 |
| 19311 | echo "${ECHO_T}$found" >&6 |
| 19312 | if test $found = yes; then |
| 19313 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" |
| 19314 | fi |
| 19315 | fi |
| 19316 | # Sun randomly tweaked the prototypes in <proc_service.h> |
| 19317 | # at one point. |
| 19318 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
| 19319 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 |
| 19320 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
| 19321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19322 | else |
| 19323 | |
| 19324 | cat >conftest.$ac_ext <<_ACEOF |
| 19325 | /* confdefs.h. */ |
| 19326 | _ACEOF |
| 19327 | cat confdefs.h >>conftest.$ac_ext |
| 19328 | cat >>conftest.$ac_ext <<_ACEOF |
| 19329 | /* end confdefs.h. */ |
| 19330 | |
| 19331 | #include <proc_service.h> |
| 19332 | ps_err_e ps_pdwrite |
| 19333 | (struct ps_prochandle*, psaddr_t, const void*, size_t); |
| 19334 | |
| 19335 | int |
| 19336 | main () |
| 19337 | { |
| 19338 | |
| 19339 | ; |
| 19340 | return 0; |
| 19341 | } |
| 19342 | _ACEOF |
| 19343 | rm -f conftest.$ac_objext |
| 19344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19345 | (eval $ac_compile) 2>conftest.er1 |
| 19346 | ac_status=$? |
| 19347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19348 | rm -f conftest.er1 |
| 19349 | cat conftest.err >&5 |
| 19350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19351 | (exit $ac_status); } && |
| 19352 | { ac_try='test -z "$ac_c_werror_flag" |
| 19353 | || test ! -s conftest.err' |
| 19354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19355 | (eval $ac_try) 2>&5 |
| 19356 | ac_status=$? |
| 19357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19358 | (exit $ac_status); }; } && |
| 19359 | { ac_try='test -s conftest.$ac_objext' |
| 19360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19361 | (eval $ac_try) 2>&5 |
| 19362 | ac_status=$? |
| 19363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19364 | (exit $ac_status); }; }; then |
| 19365 | gdb_cv_proc_service_is_old=no |
| 19366 | else |
| 19367 | echo "$as_me: failed program was:" >&5 |
| 19368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19369 | |
| 19370 | gdb_cv_proc_service_is_old=yes |
| 19371 | fi |
| 19372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19373 | |
| 19374 | fi |
| 19375 | |
| 19376 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
| 19377 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 |
| 19378 | if test $gdb_cv_proc_service_is_old = yes; then |
| 19379 | |
| 19380 | cat >>confdefs.h <<\_ACEOF |
| 19381 | #define PROC_SERVICE_IS_OLD 1 |
| 19382 | _ACEOF |
| 19383 | |
| 19384 | fi |
| 19385 | else |
| 19386 | echo "$as_me:$LINENO: result: no" >&5 |
| 19387 | echo "${ECHO_T}no" >&6 |
| 19388 | fi |
| 19389 | ;; |
| 19390 | aix*) |
| 19391 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
| 19392 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 |
| 19393 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
| 19394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19395 | else |
| 19396 | cat >conftest.$ac_ext <<_ACEOF |
| 19397 | /* confdefs.h. */ |
| 19398 | _ACEOF |
| 19399 | cat confdefs.h >>conftest.$ac_ext |
| 19400 | cat >>conftest.$ac_ext <<_ACEOF |
| 19401 | /* end confdefs.h. */ |
| 19402 | #include <sys/pthdebug.h> |
| 19403 | int |
| 19404 | main () |
| 19405 | { |
| 19406 | #ifndef PTHDB_VERSION_3 |
| 19407 | #error |
| 19408 | #endif |
| 19409 | ; |
| 19410 | return 0; |
| 19411 | } |
| 19412 | _ACEOF |
| 19413 | rm -f conftest.$ac_objext |
| 19414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19415 | (eval $ac_compile) 2>conftest.er1 |
| 19416 | ac_status=$? |
| 19417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19418 | rm -f conftest.er1 |
| 19419 | cat conftest.err >&5 |
| 19420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19421 | (exit $ac_status); } && |
| 19422 | { ac_try='test -z "$ac_c_werror_flag" |
| 19423 | || test ! -s conftest.err' |
| 19424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19425 | (eval $ac_try) 2>&5 |
| 19426 | ac_status=$? |
| 19427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19428 | (exit $ac_status); }; } && |
| 19429 | { ac_try='test -s conftest.$ac_objext' |
| 19430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19431 | (eval $ac_try) 2>&5 |
| 19432 | ac_status=$? |
| 19433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19434 | (exit $ac_status); }; }; then |
| 19435 | gdb_cv_have_aix_thread_debug=yes |
| 19436 | else |
| 19437 | echo "$as_me: failed program was:" >&5 |
| 19438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19439 | |
| 19440 | gdb_cv_have_aix_thread_debug=no |
| 19441 | fi |
| 19442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19443 | fi |
| 19444 | |
| 19445 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
| 19446 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 |
| 19447 | if test $gdb_cv_have_aix_thread_debug = yes; then |
| 19448 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" |
| 19449 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
| 19450 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
| 19451 | fi |
| 19452 | ;; |
| 19453 | esac |
| 19454 | |
| 19455 | fi |
| 19456 | |
| 19457 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
| 19458 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
| 19459 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 |
| 19460 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
| 19461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19462 | else |
| 19463 | cat >conftest.$ac_ext <<_ACEOF |
| 19464 | /* confdefs.h. */ |
| 19465 | _ACEOF |
| 19466 | cat confdefs.h >>conftest.$ac_ext |
| 19467 | cat >>conftest.$ac_ext <<_ACEOF |
| 19468 | /* end confdefs.h. */ |
| 19469 | #include <thread_db.h> |
| 19470 | int |
| 19471 | main () |
| 19472 | { |
| 19473 | int i = TD_NOTALLOC; |
| 19474 | ; |
| 19475 | return 0; |
| 19476 | } |
| 19477 | _ACEOF |
| 19478 | rm -f conftest.$ac_objext |
| 19479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19480 | (eval $ac_compile) 2>conftest.er1 |
| 19481 | ac_status=$? |
| 19482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19483 | rm -f conftest.er1 |
| 19484 | cat conftest.err >&5 |
| 19485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19486 | (exit $ac_status); } && |
| 19487 | { ac_try='test -z "$ac_c_werror_flag" |
| 19488 | || test ! -s conftest.err' |
| 19489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19490 | (eval $ac_try) 2>&5 |
| 19491 | ac_status=$? |
| 19492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19493 | (exit $ac_status); }; } && |
| 19494 | { ac_try='test -s conftest.$ac_objext' |
| 19495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19496 | (eval $ac_try) 2>&5 |
| 19497 | ac_status=$? |
| 19498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19499 | (exit $ac_status); }; }; then |
| 19500 | gdb_cv_thread_db_h_has_td_notalloc=yes |
| 19501 | else |
| 19502 | echo "$as_me: failed program was:" >&5 |
| 19503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19504 | |
| 19505 | gdb_cv_thread_db_h_has_td_notalloc=no |
| 19506 | |
| 19507 | fi |
| 19508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19509 | |
| 19510 | fi |
| 19511 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
| 19512 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 |
| 19513 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5 |
| 19514 | echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6 |
| 19515 | if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then |
| 19516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19517 | else |
| 19518 | cat >conftest.$ac_ext <<_ACEOF |
| 19519 | /* confdefs.h. */ |
| 19520 | _ACEOF |
| 19521 | cat confdefs.h >>conftest.$ac_ext |
| 19522 | cat >>conftest.$ac_ext <<_ACEOF |
| 19523 | /* end confdefs.h. */ |
| 19524 | #include <thread_db.h> |
| 19525 | int |
| 19526 | main () |
| 19527 | { |
| 19528 | int i = TD_VERSION; |
| 19529 | ; |
| 19530 | return 0; |
| 19531 | } |
| 19532 | _ACEOF |
| 19533 | rm -f conftest.$ac_objext |
| 19534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19535 | (eval $ac_compile) 2>conftest.er1 |
| 19536 | ac_status=$? |
| 19537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19538 | rm -f conftest.er1 |
| 19539 | cat conftest.err >&5 |
| 19540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19541 | (exit $ac_status); } && |
| 19542 | { ac_try='test -z "$ac_c_werror_flag" |
| 19543 | || test ! -s conftest.err' |
| 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); }; } && |
| 19549 | { ac_try='test -s conftest.$ac_objext' |
| 19550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19551 | (eval $ac_try) 2>&5 |
| 19552 | ac_status=$? |
| 19553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19554 | (exit $ac_status); }; }; then |
| 19555 | gdb_cv_thread_db_h_has_td_version=yes |
| 19556 | else |
| 19557 | echo "$as_me: failed program was:" >&5 |
| 19558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19559 | |
| 19560 | gdb_cv_thread_db_h_has_td_version=no |
| 19561 | |
| 19562 | fi |
| 19563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19564 | |
| 19565 | fi |
| 19566 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5 |
| 19567 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6 |
| 19568 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5 |
| 19569 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6 |
| 19570 | if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then |
| 19571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19572 | else |
| 19573 | cat >conftest.$ac_ext <<_ACEOF |
| 19574 | /* confdefs.h. */ |
| 19575 | _ACEOF |
| 19576 | cat confdefs.h >>conftest.$ac_ext |
| 19577 | cat >>conftest.$ac_ext <<_ACEOF |
| 19578 | /* end confdefs.h. */ |
| 19579 | #include <thread_db.h> |
| 19580 | int |
| 19581 | main () |
| 19582 | { |
| 19583 | int i = TD_NOTLS; |
| 19584 | ; |
| 19585 | return 0; |
| 19586 | } |
| 19587 | _ACEOF |
| 19588 | rm -f conftest.$ac_objext |
| 19589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19590 | (eval $ac_compile) 2>conftest.er1 |
| 19591 | ac_status=$? |
| 19592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19593 | rm -f conftest.er1 |
| 19594 | cat conftest.err >&5 |
| 19595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19596 | (exit $ac_status); } && |
| 19597 | { ac_try='test -z "$ac_c_werror_flag" |
| 19598 | || test ! -s conftest.err' |
| 19599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19600 | (eval $ac_try) 2>&5 |
| 19601 | ac_status=$? |
| 19602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19603 | (exit $ac_status); }; } && |
| 19604 | { ac_try='test -s conftest.$ac_objext' |
| 19605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19606 | (eval $ac_try) 2>&5 |
| 19607 | ac_status=$? |
| 19608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19609 | (exit $ac_status); }; }; then |
| 19610 | gdb_cv_thread_db_h_has_td_notls=yes |
| 19611 | else |
| 19612 | echo "$as_me: failed program was:" >&5 |
| 19613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19614 | |
| 19615 | gdb_cv_thread_db_h_has_td_notls=no |
| 19616 | |
| 19617 | fi |
| 19618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19619 | |
| 19620 | fi |
| 19621 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5 |
| 19622 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6 |
| 19623 | fi |
| 19624 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then |
| 19625 | |
| 19626 | cat >>confdefs.h <<\_ACEOF |
| 19627 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
| 19628 | _ACEOF |
| 19629 | |
| 19630 | fi |
| 19631 | if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then |
| 19632 | |
| 19633 | cat >>confdefs.h <<\_ACEOF |
| 19634 | #define THREAD_DB_HAS_TD_VERSION 1 |
| 19635 | _ACEOF |
| 19636 | |
| 19637 | fi |
| 19638 | if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then |
| 19639 | |
| 19640 | cat >>confdefs.h <<\_ACEOF |
| 19641 | #define THREAD_DB_HAS_TD_NOTLS 1 |
| 19642 | _ACEOF |
| 19643 | |
| 19644 | fi |
| 19645 | |
| 19646 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
| 19647 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
| 19648 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 |
| 19649 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
| 19650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19651 | else |
| 19652 | cat >conftest.$ac_ext <<_ACEOF |
| 19653 | /* confdefs.h. */ |
| 19654 | _ACEOF |
| 19655 | cat confdefs.h >>conftest.$ac_ext |
| 19656 | cat >>conftest.$ac_ext <<_ACEOF |
| 19657 | /* end confdefs.h. */ |
| 19658 | #include <sys/syscall.h> |
| 19659 | int |
| 19660 | main () |
| 19661 | { |
| 19662 | int i = __NR_tkill; |
| 19663 | ; |
| 19664 | return 0; |
| 19665 | } |
| 19666 | _ACEOF |
| 19667 | rm -f conftest.$ac_objext |
| 19668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19669 | (eval $ac_compile) 2>conftest.er1 |
| 19670 | ac_status=$? |
| 19671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19672 | rm -f conftest.er1 |
| 19673 | cat conftest.err >&5 |
| 19674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19675 | (exit $ac_status); } && |
| 19676 | { ac_try='test -z "$ac_c_werror_flag" |
| 19677 | || test ! -s conftest.err' |
| 19678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19679 | (eval $ac_try) 2>&5 |
| 19680 | ac_status=$? |
| 19681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19682 | (exit $ac_status); }; } && |
| 19683 | { ac_try='test -s conftest.$ac_objext' |
| 19684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19685 | (eval $ac_try) 2>&5 |
| 19686 | ac_status=$? |
| 19687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19688 | (exit $ac_status); }; }; then |
| 19689 | gdb_cv_sys_syscall_h_has_tkill=yes |
| 19690 | else |
| 19691 | echo "$as_me: failed program was:" >&5 |
| 19692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19693 | |
| 19694 | gdb_cv_sys_syscall_h_has_tkill=no |
| 19695 | |
| 19696 | fi |
| 19697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19698 | |
| 19699 | fi |
| 19700 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
| 19701 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 |
| 19702 | fi |
| 19703 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then |
| 19704 | |
| 19705 | cat >>confdefs.h <<\_ACEOF |
| 19706 | #define HAVE_TKILL_SYSCALL 1 |
| 19707 | _ACEOF |
| 19708 | |
| 19709 | fi |
| 19710 | |
| 19711 | echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5 |
| 19712 | echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6 |
| 19713 | if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then |
| 19714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19715 | else |
| 19716 | cat >conftest.$ac_ext <<_ACEOF |
| 19717 | /* confdefs.h. */ |
| 19718 | _ACEOF |
| 19719 | cat confdefs.h >>conftest.$ac_ext |
| 19720 | cat >>conftest.$ac_ext <<_ACEOF |
| 19721 | /* end confdefs.h. */ |
| 19722 | #include <sys/personality.h> |
| 19723 | |
| 19724 | int |
| 19725 | main () |
| 19726 | { |
| 19727 | #ifndef ADDR_NO_RANDOMIZE |
| 19728 | char *p = (char *) ADDR_NO_RANDOMIZE; |
| 19729 | #endif |
| 19730 | |
| 19731 | ; |
| 19732 | return 0; |
| 19733 | } |
| 19734 | _ACEOF |
| 19735 | rm -f conftest.$ac_objext |
| 19736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19737 | (eval $ac_compile) 2>conftest.er1 |
| 19738 | ac_status=$? |
| 19739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19740 | rm -f conftest.er1 |
| 19741 | cat conftest.err >&5 |
| 19742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19743 | (exit $ac_status); } && |
| 19744 | { ac_try='test -z "$ac_c_werror_flag" |
| 19745 | || test ! -s conftest.err' |
| 19746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19747 | (eval $ac_try) 2>&5 |
| 19748 | ac_status=$? |
| 19749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19750 | (exit $ac_status); }; } && |
| 19751 | { ac_try='test -s conftest.$ac_objext' |
| 19752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19753 | (eval $ac_try) 2>&5 |
| 19754 | ac_status=$? |
| 19755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19756 | (exit $ac_status); }; }; then |
| 19757 | ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes |
| 19758 | else |
| 19759 | echo "$as_me: failed program was:" >&5 |
| 19760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19761 | |
| 19762 | ac_cv_have_decl_ADDR_NO_RANDOMIZE=no |
| 19763 | fi |
| 19764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19765 | fi |
| 19766 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5 |
| 19767 | echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6 |
| 19768 | if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then |
| 19769 | |
| 19770 | cat >>confdefs.h <<_ACEOF |
| 19771 | #define HAVE_DECL_ADDR_NO_RANDOMIZE 1 |
| 19772 | _ACEOF |
| 19773 | |
| 19774 | |
| 19775 | else |
| 19776 | cat >>confdefs.h <<_ACEOF |
| 19777 | #define HAVE_DECL_ADDR_NO_RANDOMIZE 0 |
| 19778 | _ACEOF |
| 19779 | |
| 19780 | |
| 19781 | fi |
| 19782 | |
| 19783 | |
| 19784 | |
| 19785 | if test "$cross_compiling" = yes; then |
| 19786 | cat >conftest.$ac_ext <<_ACEOF |
| 19787 | /* confdefs.h. */ |
| 19788 | _ACEOF |
| 19789 | cat confdefs.h >>conftest.$ac_ext |
| 19790 | cat >>conftest.$ac_ext <<_ACEOF |
| 19791 | /* end confdefs.h. */ |
| 19792 | #include <sys/personality.h> |
| 19793 | int |
| 19794 | main () |
| 19795 | { |
| 19796 | |
| 19797 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE |
| 19798 | # define ADDR_NO_RANDOMIZE 0x0040000 |
| 19799 | # endif |
| 19800 | /* Test the flag could be set and stays set. */ |
| 19801 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); |
| 19802 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) |
| 19803 | return 1 |
| 19804 | ; |
| 19805 | return 0; |
| 19806 | } |
| 19807 | _ACEOF |
| 19808 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19810 | (eval $ac_link) 2>conftest.er1 |
| 19811 | ac_status=$? |
| 19812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19813 | rm -f conftest.er1 |
| 19814 | cat conftest.err >&5 |
| 19815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19816 | (exit $ac_status); } && |
| 19817 | { ac_try='test -z "$ac_c_werror_flag" |
| 19818 | || test ! -s conftest.err' |
| 19819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19820 | (eval $ac_try) 2>&5 |
| 19821 | ac_status=$? |
| 19822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19823 | (exit $ac_status); }; } && |
| 19824 | { ac_try='test -s conftest$ac_exeext' |
| 19825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19826 | (eval $ac_try) 2>&5 |
| 19827 | ac_status=$? |
| 19828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19829 | (exit $ac_status); }; }; then |
| 19830 | have_personality=true |
| 19831 | else |
| 19832 | echo "$as_me: failed program was:" >&5 |
| 19833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19834 | |
| 19835 | have_personality=false |
| 19836 | fi |
| 19837 | rm -f conftest.err conftest.$ac_objext \ |
| 19838 | conftest$ac_exeext conftest.$ac_ext |
| 19839 | else |
| 19840 | cat >conftest.$ac_ext <<_ACEOF |
| 19841 | /* confdefs.h. */ |
| 19842 | _ACEOF |
| 19843 | cat confdefs.h >>conftest.$ac_ext |
| 19844 | cat >>conftest.$ac_ext <<_ACEOF |
| 19845 | /* end confdefs.h. */ |
| 19846 | #include <sys/personality.h> |
| 19847 | int |
| 19848 | main () |
| 19849 | { |
| 19850 | |
| 19851 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE |
| 19852 | # define ADDR_NO_RANDOMIZE 0x0040000 |
| 19853 | # endif |
| 19854 | /* Test the flag could be set and stays set. */ |
| 19855 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); |
| 19856 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) |
| 19857 | return 1 |
| 19858 | ; |
| 19859 | return 0; |
| 19860 | } |
| 19861 | _ACEOF |
| 19862 | rm -f conftest$ac_exeext |
| 19863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19864 | (eval $ac_link) 2>&5 |
| 19865 | ac_status=$? |
| 19866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19867 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19869 | (eval $ac_try) 2>&5 |
| 19870 | ac_status=$? |
| 19871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19872 | (exit $ac_status); }; }; then |
| 19873 | have_personality=true |
| 19874 | else |
| 19875 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19876 | echo "$as_me: failed program was:" >&5 |
| 19877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19878 | |
| 19879 | ( exit $ac_status ) |
| 19880 | have_personality=false |
| 19881 | fi |
| 19882 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19883 | fi |
| 19884 | if $have_personality |
| 19885 | then |
| 19886 | |
| 19887 | cat >>confdefs.h <<\_ACEOF |
| 19888 | #define HAVE_PERSONALITY 1 |
| 19889 | _ACEOF |
| 19890 | |
| 19891 | fi |
| 19892 | |
| 19893 | |
| 19894 | |
| 19895 | # Check whether --with-sysroot or --without-sysroot was given. |
| 19896 | if test "${with_sysroot+set}" = set; then |
| 19897 | withval="$with_sysroot" |
| 19898 | |
| 19899 | case ${with_sysroot} in |
| 19900 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
| 19901 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
| 19902 | esac |
| 19903 | |
| 19904 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' |
| 19905 | |
| 19906 | if test "x$prefix" = xNONE; then |
| 19907 | test_prefix=/usr/local |
| 19908 | else |
| 19909 | test_prefix=$prefix |
| 19910 | fi |
| 19911 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
| 19912 | test_exec_prefix=$test_prefix |
| 19913 | else |
| 19914 | test_exec_prefix=$exec_prefix |
| 19915 | fi |
| 19916 | case ${TARGET_SYSTEM_ROOT} in |
| 19917 | "${test_prefix}"|"${test_prefix}/"*|\ |
| 19918 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ |
| 19919 | '${prefix}'|'${prefix}/'*|\ |
| 19920 | '${exec_prefix}'|'${exec_prefix}/'*) |
| 19921 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
| 19922 | TARGET_SYSTEM_ROOT_DEFINE="$t" |
| 19923 | ;; |
| 19924 | esac |
| 19925 | |
| 19926 | else |
| 19927 | |
| 19928 | TARGET_SYSTEM_ROOT= |
| 19929 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' |
| 19930 | |
| 19931 | fi; |
| 19932 | |
| 19933 | |
| 19934 | |
| 19935 | system_gdbinit= |
| 19936 | |
| 19937 | # Check whether --with-system-gdbinit or --without-system-gdbinit was given. |
| 19938 | if test "${with_system_gdbinit+set}" = set; then |
| 19939 | withval="$with_system_gdbinit" |
| 19940 | system_gdbinit=${withval} |
| 19941 | fi; |
| 19942 | |
| 19943 | |
| 19944 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
| 19945 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 19946 | ac_define_dir=`eval echo $system_gdbinit` |
| 19947 | ac_define_dir=`eval echo $ac_define_dir` |
| 19948 | |
| 19949 | cat >>confdefs.h <<_ACEOF |
| 19950 | #define SYSTEM_GDBINIT "$ac_define_dir" |
| 19951 | _ACEOF |
| 19952 | |
| 19953 | |
| 19954 | |
| 19955 | if test "x$prefix" = xNONE; then |
| 19956 | test_prefix=$ac_default_prefix |
| 19957 | else |
| 19958 | test_prefix=$prefix |
| 19959 | fi |
| 19960 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
| 19961 | test_exec_prefix=$test_prefix |
| 19962 | else |
| 19963 | test_exec_prefix=$exec_prefix |
| 19964 | fi |
| 19965 | case ${system_gdbinit} in |
| 19966 | "${test_prefix}"|"${test_prefix}/"*|\ |
| 19967 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ |
| 19968 | '${prefix}'|'${prefix}/'*|\ |
| 19969 | '${exec_prefix}'|'${exec_prefix}/'*) |
| 19970 | |
| 19971 | cat >>confdefs.h <<\_ACEOF |
| 19972 | #define SYSTEM_GDBINIT_RELOCATABLE 1 |
| 19973 | _ACEOF |
| 19974 | |
| 19975 | ;; |
| 19976 | esac |
| 19977 | |
| 19978 | # Check whether --enable-werror or --disable-werror was given. |
| 19979 | if test "${enable_werror+set}" = set; then |
| 19980 | enableval="$enable_werror" |
| 19981 | case "${enableval}" in |
| 19982 | yes | y) ERROR_ON_WARNING="yes" ;; |
| 19983 | no | n) ERROR_ON_WARNING="no" ;; |
| 19984 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
| 19985 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} |
| 19986 | { (exit 1); exit 1; }; } ;; |
| 19987 | esac |
| 19988 | fi; |
| 19989 | |
| 19990 | # Enable -Werror by default when using gcc |
| 19991 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then |
| 19992 | ERROR_ON_WARNING=yes |
| 19993 | fi |
| 19994 | |
| 19995 | WERROR_CFLAGS="" |
| 19996 | if test "${ERROR_ON_WARNING}" = yes ; then |
| 19997 | WERROR_CFLAGS="-Werror" |
| 19998 | fi |
| 19999 | |
| 20000 | # The entries after -Wno-pointer-sign are disabled warnings which may |
| 20001 | # be enabled in the future, which can not currently be used to build |
| 20002 | # GDB. |
| 20003 | # NOTE: If you change this list, remember to update |
| 20004 | # gdb/doc/gdbint.texinfo. |
| 20005 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
| 20006 | -Wformat-nonliteral -Wno-pointer-sign \ |
| 20007 | -Wno-unused -Wno-switch -Wno-char-subscripts" |
| 20008 | |
| 20009 | # Enable -Wno-format by default when using gcc on mingw since many |
| 20010 | # GCC versions complain about %I64. |
| 20011 | case "${host}" in |
| 20012 | *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; |
| 20013 | esac |
| 20014 | |
| 20015 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
| 20016 | if test "${enable_build_warnings+set}" = set; then |
| 20017 | enableval="$enable_build_warnings" |
| 20018 | case "${enableval}" in |
| 20019 | yes) ;; |
| 20020 | no) build_warnings="-w";; |
| 20021 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 20022 | build_warnings="${build_warnings} ${t}";; |
| 20023 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 20024 | build_warnings="${t} ${build_warnings}";; |
| 20025 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 20026 | esac |
| 20027 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
| 20028 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
| 20029 | fi |
| 20030 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
| 20031 | if test "${enable_gdb_build_warnings+set}" = set; then |
| 20032 | enableval="$enable_gdb_build_warnings" |
| 20033 | case "${enableval}" in |
| 20034 | yes) ;; |
| 20035 | no) build_warnings="-w";; |
| 20036 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 20037 | build_warnings="${build_warnings} ${t}";; |
| 20038 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
| 20039 | build_warnings="${t} ${build_warnings}";; |
| 20040 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 20041 | esac |
| 20042 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
| 20043 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 |
| 20044 | fi |
| 20045 | fi; WARN_CFLAGS="" |
| 20046 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
| 20047 | then |
| 20048 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
| 20049 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 |
| 20050 | # Separate out the -Werror flag as some files just cannot be |
| 20051 | # compiled with it enabled. |
| 20052 | for w in ${build_warnings}; do |
| 20053 | case $w in |
| 20054 | -Werr*) WERROR_CFLAGS=-Werror ;; |
| 20055 | *) # Check that GCC accepts it |
| 20056 | saved_CFLAGS="$CFLAGS" |
| 20057 | CFLAGS="$CFLAGS $w" |
| 20058 | cat >conftest.$ac_ext <<_ACEOF |
| 20059 | /* confdefs.h. */ |
| 20060 | _ACEOF |
| 20061 | cat confdefs.h >>conftest.$ac_ext |
| 20062 | cat >>conftest.$ac_ext <<_ACEOF |
| 20063 | /* end confdefs.h. */ |
| 20064 | |
| 20065 | int |
| 20066 | main () |
| 20067 | { |
| 20068 | |
| 20069 | ; |
| 20070 | return 0; |
| 20071 | } |
| 20072 | _ACEOF |
| 20073 | rm -f conftest.$ac_objext |
| 20074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20075 | (eval $ac_compile) 2>conftest.er1 |
| 20076 | ac_status=$? |
| 20077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20078 | rm -f conftest.er1 |
| 20079 | cat conftest.err >&5 |
| 20080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20081 | (exit $ac_status); } && |
| 20082 | { ac_try='test -z "$ac_c_werror_flag" |
| 20083 | || test ! -s conftest.err' |
| 20084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20085 | (eval $ac_try) 2>&5 |
| 20086 | ac_status=$? |
| 20087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20088 | (exit $ac_status); }; } && |
| 20089 | { ac_try='test -s conftest.$ac_objext' |
| 20090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20091 | (eval $ac_try) 2>&5 |
| 20092 | ac_status=$? |
| 20093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20094 | (exit $ac_status); }; }; then |
| 20095 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
| 20096 | else |
| 20097 | echo "$as_me: failed program was:" >&5 |
| 20098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20099 | |
| 20100 | fi |
| 20101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20102 | CFLAGS="$saved_CFLAGS" |
| 20103 | esac |
| 20104 | done |
| 20105 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
| 20106 | echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6 |
| 20107 | fi |
| 20108 | |
| 20109 | |
| 20110 | |
| 20111 | # In the Cygwin environment, we need some additional flags. |
| 20112 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
| 20113 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 |
| 20114 | if test "${gdb_cv_os_cygwin+set}" = set; then |
| 20115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20116 | else |
| 20117 | cat >conftest.$ac_ext <<_ACEOF |
| 20118 | /* confdefs.h. */ |
| 20119 | _ACEOF |
| 20120 | cat confdefs.h >>conftest.$ac_ext |
| 20121 | cat >>conftest.$ac_ext <<_ACEOF |
| 20122 | /* end confdefs.h. */ |
| 20123 | |
| 20124 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) |
| 20125 | lose |
| 20126 | #endif |
| 20127 | _ACEOF |
| 20128 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20129 | $EGREP "lose" >/dev/null 2>&1; then |
| 20130 | gdb_cv_os_cygwin=yes |
| 20131 | else |
| 20132 | gdb_cv_os_cygwin=no |
| 20133 | fi |
| 20134 | rm -f conftest* |
| 20135 | |
| 20136 | fi |
| 20137 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
| 20138 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 |
| 20139 | |
| 20140 | |
| 20141 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
| 20142 | case ${host} in |
| 20143 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
| 20144 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; |
| 20145 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
| 20146 | esac |
| 20147 | |
| 20148 | |
| 20149 | # libreadline needs libuser32.a in a cygwin environment |
| 20150 | WIN32LIBS= |
| 20151 | if test x$gdb_cv_os_cygwin = xyes; then |
| 20152 | WIN32LIBS="-luser32" |
| 20153 | case "${target}" in |
| 20154 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" |
| 20155 | ;; |
| 20156 | esac |
| 20157 | fi |
| 20158 | |
| 20159 | # The ser-tcp.c module requires sockets. |
| 20160 | case ${host} in |
| 20161 | *mingw32*) |
| 20162 | |
| 20163 | cat >>confdefs.h <<\_ACEOF |
| 20164 | #define USE_WIN32API 1 |
| 20165 | _ACEOF |
| 20166 | |
| 20167 | WIN32LIBS="$WIN32LIBS -lws2_32" |
| 20168 | ;; |
| 20169 | esac |
| 20170 | |
| 20171 | |
| 20172 | # Add ELF support to GDB, but only if BFD includes ELF support. |
| 20173 | OLD_CFLAGS=$CFLAGS |
| 20174 | OLD_LDFLAGS=$LDFLAGS |
| 20175 | OLD_LIBS=$LIBS |
| 20176 | CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" |
| 20177 | LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" |
| 20178 | intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` |
| 20179 | LIBS="-lbfd -liberty $intl $LIBS" |
| 20180 | echo "$as_me:$LINENO: checking for ELF support in BFD" >&5 |
| 20181 | echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6 |
| 20182 | if test "${gdb_cv_var_elf+set}" = set; then |
| 20183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20184 | else |
| 20185 | cat >conftest.$ac_ext <<_ACEOF |
| 20186 | /* confdefs.h. */ |
| 20187 | _ACEOF |
| 20188 | cat confdefs.h >>conftest.$ac_ext |
| 20189 | cat >>conftest.$ac_ext <<_ACEOF |
| 20190 | /* end confdefs.h. */ |
| 20191 | #include <stdlib.h> |
| 20192 | #include "bfd.h" |
| 20193 | #include "elf-bfd.h" |
| 20194 | |
| 20195 | int |
| 20196 | main () |
| 20197 | { |
| 20198 | bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); |
| 20199 | ; |
| 20200 | return 0; |
| 20201 | } |
| 20202 | _ACEOF |
| 20203 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20205 | (eval $ac_link) 2>conftest.er1 |
| 20206 | ac_status=$? |
| 20207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20208 | rm -f conftest.er1 |
| 20209 | cat conftest.err >&5 |
| 20210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20211 | (exit $ac_status); } && |
| 20212 | { ac_try='test -z "$ac_c_werror_flag" |
| 20213 | || test ! -s conftest.err' |
| 20214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20215 | (eval $ac_try) 2>&5 |
| 20216 | ac_status=$? |
| 20217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20218 | (exit $ac_status); }; } && |
| 20219 | { ac_try='test -s conftest$ac_exeext' |
| 20220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20221 | (eval $ac_try) 2>&5 |
| 20222 | ac_status=$? |
| 20223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20224 | (exit $ac_status); }; }; then |
| 20225 | gdb_cv_var_elf=yes |
| 20226 | else |
| 20227 | echo "$as_me: failed program was:" >&5 |
| 20228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20229 | |
| 20230 | gdb_cv_var_elf=no |
| 20231 | fi |
| 20232 | rm -f conftest.err conftest.$ac_objext \ |
| 20233 | conftest$ac_exeext conftest.$ac_ext |
| 20234 | fi |
| 20235 | echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5 |
| 20236 | echo "${ECHO_T}$gdb_cv_var_elf" >&6 |
| 20237 | if test $gdb_cv_var_elf = yes; then |
| 20238 | CONFIG_OBS="$CONFIG_OBS elfread.o" |
| 20239 | |
| 20240 | cat >>confdefs.h <<\_ACEOF |
| 20241 | #define HAVE_ELF 1 |
| 20242 | _ACEOF |
| 20243 | |
| 20244 | fi |
| 20245 | CFLAGS=$OLD_CFLAGS |
| 20246 | LDFLAGS=$OLD_LDFLAGS |
| 20247 | LIBS=$OLD_LIBS |
| 20248 | |
| 20249 | # Add any host-specific objects to GDB. |
| 20250 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" |
| 20251 | |
| 20252 | LIBGUI="../libgui/src/libgui.a" |
| 20253 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" |
| 20254 | |
| 20255 | |
| 20256 | |
| 20257 | WIN32LDAPP= |
| 20258 | |
| 20259 | |
| 20260 | |
| 20261 | case "${host}" in |
| 20262 | *-*-cygwin* | *-*-mingw* ) |
| 20263 | configdir="win" |
| 20264 | ;; |
| 20265 | *) |
| 20266 | configdir="unix" |
| 20267 | ;; |
| 20268 | esac |
| 20269 | |
| 20270 | GDBTKLIBS= |
| 20271 | if test "${enable_gdbtk}" = "yes"; then |
| 20272 | |
| 20273 | # Gdbtk must have an absolute path to srcdir in order to run |
| 20274 | # properly when not installed. |
| 20275 | here=`pwd` |
| 20276 | cd ${srcdir} |
| 20277 | GDBTK_SRC_DIR=`pwd` |
| 20278 | cd $here |
| 20279 | |
| 20280 | |
| 20281 | # |
| 20282 | # Ok, lets find the tcl configuration |
| 20283 | # First, look for one uninstalled. |
| 20284 | # the alternative search directory is invoked by --with-tcl |
| 20285 | # |
| 20286 | |
| 20287 | if test x"${no_tcl}" = x ; then |
| 20288 | # we reset no_tcl in case something fails here |
| 20289 | no_tcl=true |
| 20290 | |
| 20291 | # Check whether --with-tcl or --without-tcl was given. |
| 20292 | if test "${with_tcl+set}" = set; then |
| 20293 | withval="$with_tcl" |
| 20294 | with_tclconfig=${withval} |
| 20295 | fi; |
| 20296 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 |
| 20297 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 |
| 20298 | if test "${ac_cv_c_tclconfig+set}" = set; then |
| 20299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20300 | else |
| 20301 | |
| 20302 | |
| 20303 | # First check to see if --with-tcl was specified. |
| 20304 | case "${host}" in |
| 20305 | *-*-cygwin*) platDir="win" ;; |
| 20306 | *) platDir="unix" ;; |
| 20307 | esac |
| 20308 | if test x"${with_tclconfig}" != x ; then |
| 20309 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
| 20310 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
| 20311 | else |
| 20312 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
| 20313 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} |
| 20314 | { (exit 1); exit 1; }; } |
| 20315 | fi |
| 20316 | fi |
| 20317 | |
| 20318 | # then check for a private Tcl installation |
| 20319 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 20320 | for i in \ |
| 20321 | ../tcl \ |
| 20322 | `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 20323 | `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ |
| 20324 | `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 20325 | ../../tcl \ |
| 20326 | `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 20327 | `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 20328 | `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 20329 | ../../../tcl \ |
| 20330 | `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 20331 | `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 20332 | `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do |
| 20333 | if test -f "$i/$platDir/tclConfig.sh" ; then |
| 20334 | ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)` |
| 20335 | break |
| 20336 | fi |
| 20337 | done |
| 20338 | fi |
| 20339 | |
| 20340 | # on Darwin, check in Framework installation locations |
| 20341 | if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then |
| 20342 | for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ |
| 20343 | `ls -d /Library/Frameworks 2>/dev/null` \ |
| 20344 | `ls -d /Network/Library/Frameworks 2>/dev/null` \ |
| 20345 | `ls -d /System/Library/Frameworks 2>/dev/null` \ |
| 20346 | ; do |
| 20347 | if test -f "$i/Tcl.framework/tclConfig.sh" ; then |
| 20348 | ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)` |
| 20349 | break |
| 20350 | fi |
| 20351 | done |
| 20352 | fi |
| 20353 | |
| 20354 | # check in a few common install locations |
| 20355 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 20356 | for i in `ls -d ${libdir} 2>/dev/null` \ |
| 20357 | `ls -d ${exec_prefix}/lib 2>/dev/null` \ |
| 20358 | `ls -d ${prefix}/lib 2>/dev/null` \ |
| 20359 | `ls -d /usr/local/lib 2>/dev/null` \ |
| 20360 | `ls -d /usr/contrib/lib 2>/dev/null` \ |
| 20361 | `ls -d /usr/lib 2>/dev/null` \ |
| 20362 | ; do |
| 20363 | if test -f "$i/tclConfig.sh" ; then |
| 20364 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
| 20365 | break |
| 20366 | fi |
| 20367 | done |
| 20368 | fi |
| 20369 | |
| 20370 | # check in a few other private locations |
| 20371 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 20372 | for i in \ |
| 20373 | ${srcdir}/../tcl \ |
| 20374 | `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 20375 | `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ |
| 20376 | `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do |
| 20377 | if test -f "$i/$platDir/tclConfig.sh" ; then |
| 20378 | ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)` |
| 20379 | break |
| 20380 | fi |
| 20381 | done |
| 20382 | fi |
| 20383 | |
| 20384 | fi |
| 20385 | |
| 20386 | |
| 20387 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 20388 | TCL_BIN_DIR="# no Tcl configs found" |
| 20389 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
| 20390 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
| 20391 | else |
| 20392 | no_tcl= |
| 20393 | TCL_BIN_DIR=${ac_cv_c_tclconfig} |
| 20394 | echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 |
| 20395 | echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6 |
| 20396 | fi |
| 20397 | fi |
| 20398 | |
| 20399 | |
| 20400 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
| 20401 | # point to doing Tcl. |
| 20402 | |
| 20403 | # |
| 20404 | # Ok, lets find the tk configuration |
| 20405 | # First, look for one uninstalled. |
| 20406 | # the alternative search directory is invoked by --with-tk |
| 20407 | # |
| 20408 | |
| 20409 | if test x"${no_tk}" = x ; then |
| 20410 | # we reset no_tk in case something fails here |
| 20411 | no_tk=true |
| 20412 | |
| 20413 | # Check whether --with-tk or --without-tk was given. |
| 20414 | if test "${with_tk+set}" = set; then |
| 20415 | withval="$with_tk" |
| 20416 | with_tkconfig=${withval} |
| 20417 | fi; |
| 20418 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 |
| 20419 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 |
| 20420 | if test "${ac_cv_c_tkconfig+set}" = set; then |
| 20421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20422 | else |
| 20423 | |
| 20424 | |
| 20425 | # First check to see if --with-tkconfig was specified. |
| 20426 | if test x"${with_tkconfig}" != x ; then |
| 20427 | if test -f "${with_tkconfig}/tkConfig.sh" ; then |
| 20428 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` |
| 20429 | else |
| 20430 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
| 20431 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} |
| 20432 | { (exit 1); exit 1; }; } |
| 20433 | fi |
| 20434 | fi |
| 20435 | |
| 20436 | # then check for a private Tk library |
| 20437 | case "${host}" in |
| 20438 | *-*-cygwin*) platDir="win" ;; |
| 20439 | *) platDir="unix" ;; |
| 20440 | esac |
| 20441 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 20442 | for i in \ |
| 20443 | ../tk \ |
| 20444 | `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 20445 | `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ |
| 20446 | `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ |
| 20447 | ../../tk \ |
| 20448 | `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 20449 | `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ |
| 20450 | `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ |
| 20451 | ../../../tk \ |
| 20452 | `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 20453 | `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ |
| 20454 | `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do |
| 20455 | if test -f "$i/$platDir/tkConfig.sh" ; then |
| 20456 | ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)` |
| 20457 | break |
| 20458 | fi |
| 20459 | done |
| 20460 | fi |
| 20461 | |
| 20462 | # on Darwin, check in Framework installation locations |
| 20463 | if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then |
| 20464 | for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ |
| 20465 | `ls -d /Library/Frameworks 2>/dev/null` \ |
| 20466 | `ls -d /Network/Library/Frameworks 2>/dev/null` \ |
| 20467 | `ls -d /System/Library/Frameworks 2>/dev/null` \ |
| 20468 | ; do |
| 20469 | if test -f "$i/Tk.framework/tkConfig.sh" ; then |
| 20470 | ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)` |
| 20471 | break |
| 20472 | fi |
| 20473 | done |
| 20474 | fi |
| 20475 | |
| 20476 | # check in a few common install locations |
| 20477 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 20478 | for i in `ls -d ${libdir} 2>/dev/null` \ |
| 20479 | `ls -d ${exec_prefix}/lib 2>/dev/null` \ |
| 20480 | `ls -d ${prefix}/lib 2>/dev/null` \ |
| 20481 | `ls -d /usr/local/lib 2>/dev/null` \ |
| 20482 | `ls -d /usr/contrib/lib 2>/dev/null` \ |
| 20483 | `ls -d /usr/lib 2>/dev/null` \ |
| 20484 | ; do |
| 20485 | if test -f "$i/tkConfig.sh" ; then |
| 20486 | ac_cv_c_tkconfig=`(cd $i; pwd)` |
| 20487 | break |
| 20488 | fi |
| 20489 | done |
| 20490 | fi |
| 20491 | # check in a few other private locations |
| 20492 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 20493 | for i in \ |
| 20494 | ${srcdir}/../tk \ |
| 20495 | `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 20496 | `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ |
| 20497 | `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do |
| 20498 | if test -f "$i/$platDir/tkConfig.sh" ; then |
| 20499 | ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)` |
| 20500 | break |
| 20501 | fi |
| 20502 | done |
| 20503 | fi |
| 20504 | |
| 20505 | fi |
| 20506 | |
| 20507 | |
| 20508 | if test x"${ac_cv_c_tkconfig}" = x ; then |
| 20509 | TK_BIN_DIR="# no Tk configs found" |
| 20510 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
| 20511 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} |
| 20512 | else |
| 20513 | no_tk= |
| 20514 | TK_BIN_DIR=${ac_cv_c_tkconfig} |
| 20515 | echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 |
| 20516 | echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6 |
| 20517 | fi |
| 20518 | fi |
| 20519 | |
| 20520 | |
| 20521 | if test -z "${no_tcl}" -a -z "${no_tk}"; then |
| 20522 | |
| 20523 | echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 |
| 20524 | echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6 |
| 20525 | |
| 20526 | if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then |
| 20527 | echo "$as_me:$LINENO: result: loading" >&5 |
| 20528 | echo "${ECHO_T}loading" >&6 |
| 20529 | . ${TCL_BIN_DIR}/tclConfig.sh |
| 20530 | else |
| 20531 | echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 |
| 20532 | echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6 |
| 20533 | fi |
| 20534 | |
| 20535 | # eval is required to do the TCL_DBGX substitution |
| 20536 | eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" |
| 20537 | eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" |
| 20538 | |
| 20539 | # If the TCL_BIN_DIR is the build directory (not the install directory), |
| 20540 | # then set the common variable name to the value of the build variables. |
| 20541 | # For example, the variable TCL_LIB_SPEC will be set to the value |
| 20542 | # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC |
| 20543 | # instead of TCL_BUILD_LIB_SPEC since it will work with both an |
| 20544 | # installed and uninstalled version of Tcl. |
| 20545 | if test -f "${TCL_BIN_DIR}/Makefile" ; then |
| 20546 | TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} |
| 20547 | TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} |
| 20548 | TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} |
| 20549 | elif test "`uname -s`" = "Darwin"; then |
| 20550 | # If Tcl was built as a framework, attempt to use the libraries |
| 20551 | # from the framework at the given location so that linking works |
| 20552 | # against Tcl.framework installed in an arbitary location. |
| 20553 | case ${TCL_DEFS} in |
| 20554 | *TCL_FRAMEWORK*) |
| 20555 | if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then |
| 20556 | for i in "`cd ${TCL_BIN_DIR}; pwd`" \ |
| 20557 | "`cd ${TCL_BIN_DIR}/../..; pwd`"; do |
| 20558 | if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then |
| 20559 | TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}" |
| 20560 | break |
| 20561 | fi |
| 20562 | done |
| 20563 | fi |
| 20564 | if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then |
| 20565 | TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}" |
| 20566 | TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" |
| 20567 | fi |
| 20568 | ;; |
| 20569 | esac |
| 20570 | fi |
| 20571 | |
| 20572 | # eval is required to do the TCL_DBGX substitution |
| 20573 | eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" |
| 20574 | eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" |
| 20575 | eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" |
| 20576 | eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" |
| 20577 | |
| 20578 | |
| 20579 | |
| 20580 | |
| 20581 | |
| 20582 | |
| 20583 | |
| 20584 | |
| 20585 | |
| 20586 | |
| 20587 | |
| 20588 | |
| 20589 | |
| 20590 | |
| 20591 | |
| 20592 | # Check for in-tree tcl |
| 20593 | here=`pwd` |
| 20594 | cd ${srcdir}/.. |
| 20595 | topdir=`pwd` |
| 20596 | cd ${here} |
| 20597 | |
| 20598 | intree="no" |
| 20599 | if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then |
| 20600 | intree="yes" |
| 20601 | fi |
| 20602 | |
| 20603 | # Find Tcl private headers |
| 20604 | if test x"${intree}" = xno; then |
| 20605 | |
| 20606 | echo "$as_me:$LINENO: checking for Tcl private headers" >&5 |
| 20607 | echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6 |
| 20608 | private_dir="" |
| 20609 | dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//` |
| 20610 | if test -f ${dir}/tclInt.h ; then |
| 20611 | private_dir=${dir} |
| 20612 | fi |
| 20613 | |
| 20614 | if test x"${private_dir}" = x; then |
| 20615 | { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5 |
| 20616 | echo "$as_me: error: could not find private Tcl headers" >&2;} |
| 20617 | { (exit 1); exit 1; }; } |
| 20618 | else |
| 20619 | TCL_PRIVATE_INCLUDE="-I${private_dir}" |
| 20620 | echo "$as_me:$LINENO: result: ${private_dir}" >&5 |
| 20621 | echo "${ECHO_T}${private_dir}" >&6 |
| 20622 | fi |
| 20623 | |
| 20624 | TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}" |
| 20625 | TCL_LIBRARY="${TCL_LIB_SPEC}" |
| 20626 | TCL_DEPS="" |
| 20627 | else |
| 20628 | # If building tcl in the same src tree, private headers |
| 20629 | # are not needed, but we need to be sure to use the right |
| 20630 | # headers library |
| 20631 | TCL_INCLUDE="-I${TCL_SRC_DIR}/generic" |
| 20632 | TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}" |
| 20633 | TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}" |
| 20634 | fi |
| 20635 | |
| 20636 | |
| 20637 | |
| 20638 | |
| 20639 | |
| 20640 | echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 |
| 20641 | echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6 |
| 20642 | |
| 20643 | if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then |
| 20644 | echo "$as_me:$LINENO: result: loading" >&5 |
| 20645 | echo "${ECHO_T}loading" >&6 |
| 20646 | . ${TK_BIN_DIR}/tkConfig.sh |
| 20647 | else |
| 20648 | echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 |
| 20649 | echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6 |
| 20650 | fi |
| 20651 | |
| 20652 | # eval is required to do the TK_DBGX substitution |
| 20653 | eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" |
| 20654 | eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" |
| 20655 | |
| 20656 | # If the TK_BIN_DIR is the build directory (not the install directory), |
| 20657 | # then set the common variable name to the value of the build variables. |
| 20658 | # For example, the variable TK_LIB_SPEC will be set to the value |
| 20659 | # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC |
| 20660 | # instead of TK_BUILD_LIB_SPEC since it will work with both an |
| 20661 | # installed and uninstalled version of Tcl. |
| 20662 | if test -f "${TK_BIN_DIR}/Makefile" ; then |
| 20663 | TK_LIB_SPEC=${TK_BUILD_LIB_SPEC} |
| 20664 | TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC} |
| 20665 | TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH} |
| 20666 | elif test "`uname -s`" = "Darwin"; then |
| 20667 | # If Tk was built as a framework, attempt to use the libraries |
| 20668 | # from the framework at the given location so that linking works |
| 20669 | # against Tk.framework installed in an arbitary location. |
| 20670 | case ${TK_DEFS} in |
| 20671 | *TK_FRAMEWORK*) |
| 20672 | if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then |
| 20673 | for i in "`cd ${TK_BIN_DIR}; pwd`" \ |
| 20674 | "`cd ${TK_BIN_DIR}/../..; pwd`"; do |
| 20675 | if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then |
| 20676 | TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}" |
| 20677 | break |
| 20678 | fi |
| 20679 | done |
| 20680 | fi |
| 20681 | if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then |
| 20682 | TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}" |
| 20683 | TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" |
| 20684 | fi |
| 20685 | ;; |
| 20686 | esac |
| 20687 | fi |
| 20688 | |
| 20689 | # eval is required to do the TK_DBGX substitution |
| 20690 | eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" |
| 20691 | eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" |
| 20692 | eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" |
| 20693 | eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" |
| 20694 | |
| 20695 | |
| 20696 | |
| 20697 | |
| 20698 | |
| 20699 | |
| 20700 | |
| 20701 | |
| 20702 | |
| 20703 | |
| 20704 | |
| 20705 | |
| 20706 | |
| 20707 | |
| 20708 | # Check for in-tree Tk |
| 20709 | intree="no" |
| 20710 | if test "${TK_SRC_DIR}" = "${topdir}/tk"; then |
| 20711 | intree="yes" |
| 20712 | fi |
| 20713 | |
| 20714 | # Find Tk private headers |
| 20715 | if test x"${intree}" = xno; then |
| 20716 | |
| 20717 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
| 20718 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 |
| 20719 | private_dir="" |
| 20720 | dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//` |
| 20721 | if test -f ${dir}/tkInt.h; then |
| 20722 | private_dir=${dir} |
| 20723 | fi |
| 20724 | |
| 20725 | if test x"${private_dir}" = x; then |
| 20726 | { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5 |
| 20727 | echo "$as_me: error: could not find Tk private headers" >&2;} |
| 20728 | { (exit 1); exit 1; }; } |
| 20729 | else |
| 20730 | TK_PRIVATE_INCLUDE="-I${private_dir}" |
| 20731 | echo "$as_me:$LINENO: result: ${private_dir}" >&5 |
| 20732 | echo "${ECHO_T}${private_dir}" >&6 |
| 20733 | fi |
| 20734 | |
| 20735 | TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}" |
| 20736 | TK_LIBRARY=${TK_LIB_SPEC} |
| 20737 | TK_DEPS="" |
| 20738 | else |
| 20739 | TK_INCLUDE="-I${TK_SRC_DIR}/generic" |
| 20740 | TK_LIBRARY="${TK_BUILD_LIB_SPEC}" |
| 20741 | TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}" |
| 20742 | fi |
| 20743 | |
| 20744 | |
| 20745 | |
| 20746 | |
| 20747 | |
| 20748 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
| 20749 | |
| 20750 | # Include some libraries that Tcl and Tk want. |
| 20751 | TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
| 20752 | # Yes, the ordering seems wrong here. But it isn't. |
| 20753 | # TK_LIBS is the list of libraries that need to be linked |
| 20754 | # after Tcl/Tk. Note that this isn't put into LIBS. If it |
| 20755 | # were in LIBS then any link tests after this point would |
| 20756 | # try to include things like `$(LIBGUI)', which wouldn't work. |
| 20757 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" |
| 20758 | |
| 20759 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" |
| 20760 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" |
| 20761 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" |
| 20762 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
| 20763 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" |
| 20764 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" |
| 20765 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" |
| 20766 | |
| 20767 | if test x$gdb_cv_os_cygwin = xyes; then |
| 20768 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" |
| 20769 | WIN32LDAPP="-Wl,--subsystem,console" |
| 20770 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" |
| 20771 | fi |
| 20772 | |
| 20773 | |
| 20774 | |
| 20775 | subdirs="$subdirs gdbtk" |
| 20776 | |
| 20777 | fi |
| 20778 | fi |
| 20779 | |
| 20780 | |
| 20781 | |
| 20782 | |
| 20783 | |
| 20784 | |
| 20785 | |
| 20786 | |
| 20787 | echo "$as_me:$LINENO: checking for X" >&5 |
| 20788 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 20789 | |
| 20790 | |
| 20791 | # Check whether --with-x or --without-x was given. |
| 20792 | if test "${with_x+set}" = set; then |
| 20793 | withval="$with_x" |
| 20794 | |
| 20795 | fi; |
| 20796 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 20797 | if test "x$with_x" = xno; then |
| 20798 | # The user explicitly disabled X. |
| 20799 | have_x=disabled |
| 20800 | else |
| 20801 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 20802 | # Both variables are already set. |
| 20803 | have_x=yes |
| 20804 | else |
| 20805 | if test "${ac_cv_have_x+set}" = set; then |
| 20806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20807 | else |
| 20808 | # One or both of the vars are not set, and there is no cached value. |
| 20809 | ac_x_includes=no ac_x_libraries=no |
| 20810 | rm -fr conftest.dir |
| 20811 | if mkdir conftest.dir; then |
| 20812 | cd conftest.dir |
| 20813 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 20814 | cat >Imakefile <<'_ACEOF' |
| 20815 | acfindx: |
| 20816 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 20817 | _ACEOF |
| 20818 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 20819 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 20820 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 20821 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 20822 | for ac_extension in a so sl; do |
| 20823 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 20824 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 20825 | ac_im_usrlibdir=$ac_im_libdir; break |
| 20826 | fi |
| 20827 | done |
| 20828 | # Screen out bogus values from the imake configuration. They are |
| 20829 | # bogus both because they are the default anyway, and because |
| 20830 | # using them would break gcc on systems where it needs fixed includes. |
| 20831 | case $ac_im_incroot in |
| 20832 | /usr/include) ;; |
| 20833 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 20834 | esac |
| 20835 | case $ac_im_usrlibdir in |
| 20836 | /usr/lib | /lib) ;; |
| 20837 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 20838 | esac |
| 20839 | fi |
| 20840 | cd .. |
| 20841 | rm -fr conftest.dir |
| 20842 | fi |
| 20843 | |
| 20844 | # Standard set of common directories for X headers. |
| 20845 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 20846 | ac_x_header_dirs=' |
| 20847 | /usr/X11/include |
| 20848 | /usr/X11R6/include |
| 20849 | /usr/X11R5/include |
| 20850 | /usr/X11R4/include |
| 20851 | |
| 20852 | /usr/include/X11 |
| 20853 | /usr/include/X11R6 |
| 20854 | /usr/include/X11R5 |
| 20855 | /usr/include/X11R4 |
| 20856 | |
| 20857 | /usr/local/X11/include |
| 20858 | /usr/local/X11R6/include |
| 20859 | /usr/local/X11R5/include |
| 20860 | /usr/local/X11R4/include |
| 20861 | |
| 20862 | /usr/local/include/X11 |
| 20863 | /usr/local/include/X11R6 |
| 20864 | /usr/local/include/X11R5 |
| 20865 | /usr/local/include/X11R4 |
| 20866 | |
| 20867 | /usr/X386/include |
| 20868 | /usr/x386/include |
| 20869 | /usr/XFree86/include/X11 |
| 20870 | |
| 20871 | /usr/include |
| 20872 | /usr/local/include |
| 20873 | /usr/unsupported/include |
| 20874 | /usr/athena/include |
| 20875 | /usr/local/x11r5/include |
| 20876 | /usr/lpp/Xamples/include |
| 20877 | |
| 20878 | /usr/openwin/include |
| 20879 | /usr/openwin/share/include' |
| 20880 | |
| 20881 | if test "$ac_x_includes" = no; then |
| 20882 | # Guess where to find include files, by looking for Intrinsic.h. |
| 20883 | # First, try using that file with no special directory specified. |
| 20884 | cat >conftest.$ac_ext <<_ACEOF |
| 20885 | /* confdefs.h. */ |
| 20886 | _ACEOF |
| 20887 | cat confdefs.h >>conftest.$ac_ext |
| 20888 | cat >>conftest.$ac_ext <<_ACEOF |
| 20889 | /* end confdefs.h. */ |
| 20890 | #include <X11/Intrinsic.h> |
| 20891 | _ACEOF |
| 20892 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20893 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20894 | ac_status=$? |
| 20895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20896 | rm -f conftest.er1 |
| 20897 | cat conftest.err >&5 |
| 20898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20899 | (exit $ac_status); } >/dev/null; then |
| 20900 | if test -s conftest.err; then |
| 20901 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20902 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 20903 | else |
| 20904 | ac_cpp_err= |
| 20905 | fi |
| 20906 | else |
| 20907 | ac_cpp_err=yes |
| 20908 | fi |
| 20909 | if test -z "$ac_cpp_err"; then |
| 20910 | # We can compile using X headers with no special include directory. |
| 20911 | ac_x_includes= |
| 20912 | else |
| 20913 | echo "$as_me: failed program was:" >&5 |
| 20914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20915 | |
| 20916 | for ac_dir in $ac_x_header_dirs; do |
| 20917 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 20918 | ac_x_includes=$ac_dir |
| 20919 | break |
| 20920 | fi |
| 20921 | done |
| 20922 | fi |
| 20923 | rm -f conftest.err conftest.$ac_ext |
| 20924 | fi # $ac_x_includes = no |
| 20925 | |
| 20926 | if test "$ac_x_libraries" = no; then |
| 20927 | # Check for the libraries. |
| 20928 | # See if we find them without any special options. |
| 20929 | # Don't add to $LIBS permanently. |
| 20930 | ac_save_LIBS=$LIBS |
| 20931 | LIBS="-lXt $LIBS" |
| 20932 | cat >conftest.$ac_ext <<_ACEOF |
| 20933 | /* confdefs.h. */ |
| 20934 | _ACEOF |
| 20935 | cat confdefs.h >>conftest.$ac_ext |
| 20936 | cat >>conftest.$ac_ext <<_ACEOF |
| 20937 | /* end confdefs.h. */ |
| 20938 | #include <X11/Intrinsic.h> |
| 20939 | int |
| 20940 | main () |
| 20941 | { |
| 20942 | XtMalloc (0) |
| 20943 | ; |
| 20944 | return 0; |
| 20945 | } |
| 20946 | _ACEOF |
| 20947 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20949 | (eval $ac_link) 2>conftest.er1 |
| 20950 | ac_status=$? |
| 20951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20952 | rm -f conftest.er1 |
| 20953 | cat conftest.err >&5 |
| 20954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20955 | (exit $ac_status); } && |
| 20956 | { ac_try='test -z "$ac_c_werror_flag" |
| 20957 | || test ! -s conftest.err' |
| 20958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20959 | (eval $ac_try) 2>&5 |
| 20960 | ac_status=$? |
| 20961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20962 | (exit $ac_status); }; } && |
| 20963 | { ac_try='test -s conftest$ac_exeext' |
| 20964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20965 | (eval $ac_try) 2>&5 |
| 20966 | ac_status=$? |
| 20967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20968 | (exit $ac_status); }; }; then |
| 20969 | LIBS=$ac_save_LIBS |
| 20970 | # We can link X programs with no special library path. |
| 20971 | ac_x_libraries= |
| 20972 | else |
| 20973 | echo "$as_me: failed program was:" >&5 |
| 20974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20975 | |
| 20976 | LIBS=$ac_save_LIBS |
| 20977 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 20978 | do |
| 20979 | # Don't even attempt the hair of trying to link an X program! |
| 20980 | for ac_extension in a so sl; do |
| 20981 | if test -r $ac_dir/libXt.$ac_extension; then |
| 20982 | ac_x_libraries=$ac_dir |
| 20983 | break 2 |
| 20984 | fi |
| 20985 | done |
| 20986 | done |
| 20987 | fi |
| 20988 | rm -f conftest.err conftest.$ac_objext \ |
| 20989 | conftest$ac_exeext conftest.$ac_ext |
| 20990 | fi # $ac_x_libraries = no |
| 20991 | |
| 20992 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
| 20993 | # Didn't find X anywhere. Cache the known absence of X. |
| 20994 | ac_cv_have_x="have_x=no" |
| 20995 | else |
| 20996 | # Record where we found X for the cache. |
| 20997 | ac_cv_have_x="have_x=yes \ |
| 20998 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 20999 | fi |
| 21000 | fi |
| 21001 | |
| 21002 | fi |
| 21003 | eval "$ac_cv_have_x" |
| 21004 | fi # $with_x != no |
| 21005 | |
| 21006 | if test "$have_x" != yes; then |
| 21007 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 21008 | echo "${ECHO_T}$have_x" >&6 |
| 21009 | no_x=yes |
| 21010 | else |
| 21011 | # If each of the values was on the command line, it overrides each guess. |
| 21012 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 21013 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 21014 | # Update the cache value to reflect the command line values. |
| 21015 | ac_cv_have_x="have_x=yes \ |
| 21016 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 21017 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 21018 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
| 21019 | fi |
| 21020 | |
| 21021 | |
| 21022 | # Unlike the sim directory, whether a simulator is linked is controlled by |
| 21023 | # presence of a gdb_sim definition in the target configure.tgt entry. |
| 21024 | # This code just checks for a few cases where we'd like to ignore those |
| 21025 | # definitions, even when they're present in the '.mt' file. These cases |
| 21026 | # are when --disable-sim is specified, or if the simulator directory is |
| 21027 | # not part of the source tree. |
| 21028 | # |
| 21029 | # Check whether --enable-sim or --disable-sim was given. |
| 21030 | if test "${enable_sim+set}" = set; then |
| 21031 | enableval="$enable_sim" |
| 21032 | echo "enable_sim = $enable_sim"; |
| 21033 | echo "enableval = ${enableval}"; |
| 21034 | case "${enableval}" in |
| 21035 | yes) ignore_sim=false ;; |
| 21036 | no) ignore_sim=true ;; |
| 21037 | *) ignore_sim=false ;; |
| 21038 | esac |
| 21039 | else |
| 21040 | ignore_sim=false |
| 21041 | fi; |
| 21042 | |
| 21043 | if test ! -d "${srcdir}/../sim"; then |
| 21044 | ignore_sim=true |
| 21045 | fi |
| 21046 | |
| 21047 | SIM= |
| 21048 | SIM_OBS= |
| 21049 | if test "${ignore_sim}" = "false"; then |
| 21050 | if test x"${gdb_sim}" != x ; then |
| 21051 | SIM="${gdb_sim}" |
| 21052 | SIM_OBS="remote-sim.o" |
| 21053 | |
| 21054 | cat >>confdefs.h <<\_ACEOF |
| 21055 | #define WITH_SIM 1 |
| 21056 | _ACEOF |
| 21057 | |
| 21058 | fi |
| 21059 | fi |
| 21060 | |
| 21061 | |
| 21062 | |
| 21063 | |
| 21064 | |
| 21065 | |
| 21066 | |
| 21067 | |
| 21068 | |
| 21069 | |
| 21070 | |
| 21071 | |
| 21072 | |
| 21073 | |
| 21074 | # List of host floatformats. |
| 21075 | |
| 21076 | cat >>confdefs.h <<_ACEOF |
| 21077 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
| 21078 | _ACEOF |
| 21079 | |
| 21080 | |
| 21081 | cat >>confdefs.h <<_ACEOF |
| 21082 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
| 21083 | _ACEOF |
| 21084 | |
| 21085 | |
| 21086 | cat >>confdefs.h <<_ACEOF |
| 21087 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
| 21088 | _ACEOF |
| 21089 | |
| 21090 | |
| 21091 | # target_subdir is used by the testsuite to find the target libraries. |
| 21092 | target_subdir= |
| 21093 | if test "${host}" != "${target}"; then |
| 21094 | target_subdir="${target_alias}/" |
| 21095 | fi |
| 21096 | |
| 21097 | |
| 21098 | frags= |
| 21099 | if test "${gdb_native}" = "yes"; then |
| 21100 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
| 21101 | if test ! -f ${host_makefile_frag}; then |
| 21102 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
| 21103 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} |
| 21104 | { (exit 1); exit 1; }; } |
| 21105 | fi |
| 21106 | frags="$frags $host_makefile_frag" |
| 21107 | else |
| 21108 | host_makefile_frag=/dev/null |
| 21109 | fi |
| 21110 | |
| 21111 | |
| 21112 | |
| 21113 | |
| 21114 | if test "${gdb_native}" = "yes"; then |
| 21115 | # We pick this up from the host configuration file (.mh) because we |
| 21116 | # do not have a native configuration Makefile fragment. |
| 21117 | nativefile=`sed -n ' |
| 21118 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
| 21119 | ' ${host_makefile_frag}` |
| 21120 | fi |
| 21121 | |
| 21122 | |
| 21123 | if test x"${gdb_osabi}" != x ; then |
| 21124 | |
| 21125 | cat >>confdefs.h <<_ACEOF |
| 21126 | #define GDB_OSABI_DEFAULT $gdb_osabi |
| 21127 | _ACEOF |
| 21128 | |
| 21129 | fi |
| 21130 | |
| 21131 | # Enable multi-ice-gdb-server. |
| 21132 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
| 21133 | if test "${enable_multi_ice+set}" = set; then |
| 21134 | enableval="$enable_multi_ice" |
| 21135 | case $enableval in |
| 21136 | yes | no) |
| 21137 | ;; |
| 21138 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
| 21139 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} |
| 21140 | { (exit 1); exit 1; }; } ;; |
| 21141 | esac |
| 21142 | fi; |
| 21143 | if test "x$enable_multi_ice" = xyes; then |
| 21144 | |
| 21145 | |
| 21146 | subdirs="$subdirs multi-ice" |
| 21147 | |
| 21148 | fi |
| 21149 | |
| 21150 | # We only build gdbserver automatically in a native configuration. |
| 21151 | if test "$gdb_native" = "yes"; then |
| 21152 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
| 21153 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 |
| 21154 | if test "x$build_gdbserver" = xyes; then |
| 21155 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21156 | echo "${ECHO_T}yes" >&6 |
| 21157 | |
| 21158 | |
| 21159 | subdirs="$subdirs gdbserver" |
| 21160 | |
| 21161 | else |
| 21162 | echo "$as_me:$LINENO: result: no" >&5 |
| 21163 | echo "${ECHO_T}no" >&6 |
| 21164 | fi |
| 21165 | fi |
| 21166 | |
| 21167 | # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link |
| 21168 | # to an empty version. |
| 21169 | |
| 21170 | files= |
| 21171 | links= |
| 21172 | |
| 21173 | rm -f nm.h |
| 21174 | nm_h="" |
| 21175 | if test "${nativefile}" != ""; then |
| 21176 | nm_h=nm.h |
| 21177 | case "${nativefile}" in |
| 21178 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; |
| 21179 | * ) GDB_NM_FILE="${nativefile}" |
| 21180 | esac |
| 21181 | files="${files} ${GDB_NM_FILE}" |
| 21182 | links="${links} nm.h" |
| 21183 | |
| 21184 | cat >>confdefs.h <<_ACEOF |
| 21185 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
| 21186 | _ACEOF |
| 21187 | |
| 21188 | fi |
| 21189 | |
| 21190 | |
| 21191 | ac_sources="$files" |
| 21192 | ac_dests="$links" |
| 21193 | while test -n "$ac_sources"; do |
| 21194 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* |
| 21195 | set $ac_sources; ac_source=$1; shift; ac_sources=$* |
| 21196 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" |
| 21197 | done |
| 21198 | ac_config_links="$ac_config_links $ac_config_links_1" |
| 21199 | |
| 21200 | |
| 21201 | |
| 21202 | |
| 21203 | |
| 21204 | cat >>confdefs.h <<\_ACEOF |
| 21205 | #define GDB_DEFAULT_HOST_CHARSET "UTF-8" |
| 21206 | _ACEOF |
| 21207 | |
| 21208 | |
| 21209 | |
| 21210 | |
| 21211 | |
| 21212 | |
| 21213 | |
| 21214 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile" |
| 21215 | ac_config_commands="$ac_config_commands default" |
| 21216 | cat >confcache <<\_ACEOF |
| 21217 | # This file is a shell script that caches the results of configure |
| 21218 | # tests run on this system so they can be shared between configure |
| 21219 | # scripts and configure runs, see configure's option --config-cache. |
| 21220 | # It is not useful on other systems. If it contains results you don't |
| 21221 | # want to keep, you may remove or edit it. |
| 21222 | # |
| 21223 | # config.status only pays attention to the cache file if you give it |
| 21224 | # the --recheck option to rerun configure. |
| 21225 | # |
| 21226 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 21227 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21228 | # following values. |
| 21229 | |
| 21230 | _ACEOF |
| 21231 | |
| 21232 | # The following way of writing the cache mishandles newlines in values, |
| 21233 | # but we know of no workaround that is simple, portable, and efficient. |
| 21234 | # So, don't put newlines in cache variables' values. |
| 21235 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21236 | # and sets the high bit in the cache file unless we assign to the vars. |
| 21237 | { |
| 21238 | (set) 2>&1 | |
| 21239 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 21240 | *ac_space=\ *) |
| 21241 | # `set' does not quote correctly, so add quotes (double-quote |
| 21242 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 21243 | sed -n \ |
| 21244 | "s/'/'\\\\''/g; |
| 21245 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 21246 | ;; |
| 21247 | *) |
| 21248 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 21249 | sed -n \ |
| 21250 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 21251 | ;; |
| 21252 | esac; |
| 21253 | } | |
| 21254 | sed ' |
| 21255 | t clear |
| 21256 | : clear |
| 21257 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21258 | t end |
| 21259 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21260 | : end' >>confcache |
| 21261 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 21262 | if test -w $cache_file; then |
| 21263 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 21264 | cat confcache >$cache_file |
| 21265 | else |
| 21266 | echo "not updating unwritable cache $cache_file" |
| 21267 | fi |
| 21268 | fi |
| 21269 | rm -f confcache |
| 21270 | |
| 21271 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21272 | # Let make expand exec_prefix. |
| 21273 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 21274 | |
| 21275 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21276 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21277 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21278 | # (actually we leave an empty line to preserve line numbers). |
| 21279 | if test "x$srcdir" = x.; then |
| 21280 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 21281 | s/:*\$(srcdir):*/:/; |
| 21282 | s/:*\${srcdir}:*/:/; |
| 21283 | s/:*@srcdir@:*/:/; |
| 21284 | s/^\([^=]*=[ ]*\):*/\1/; |
| 21285 | s/:*$//; |
| 21286 | s/^[^=]*=[ ]*$//; |
| 21287 | }' |
| 21288 | fi |
| 21289 | |
| 21290 | DEFS=-DHAVE_CONFIG_H |
| 21291 | |
| 21292 | ac_libobjs= |
| 21293 | ac_ltlibobjs= |
| 21294 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21295 | # 1. Remove the extension, and $U if already installed. |
| 21296 | ac_i=`echo "$ac_i" | |
| 21297 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 21298 | # 2. Add them. |
| 21299 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 21300 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 21301 | done |
| 21302 | LIBOBJS=$ac_libobjs |
| 21303 | |
| 21304 | LTLIBOBJS=$ac_ltlibobjs |
| 21305 | |
| 21306 | |
| 21307 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 21308 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 21309 | Usually this means the macro was only invoked conditionally." >&5 |
| 21310 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 21311 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21312 | { (exit 1); exit 1; }; } |
| 21313 | fi |
| 21314 | if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then |
| 21315 | { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined. |
| 21316 | Usually this means the macro was only invoked conditionally." >&5 |
| 21317 | echo "$as_me: error: conditional \"GMAKE\" was never defined. |
| 21318 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21319 | { (exit 1); exit 1; }; } |
| 21320 | fi |
| 21321 | if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then |
| 21322 | { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined. |
| 21323 | Usually this means the macro was only invoked conditionally." >&5 |
| 21324 | echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined. |
| 21325 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21326 | { (exit 1); exit 1; }; } |
| 21327 | fi |
| 21328 | |
| 21329 | gl_libobjs= |
| 21330 | gl_ltlibobjs= |
| 21331 | if test -n "$gl_LIBOBJS"; then |
| 21332 | # Remove the extension. |
| 21333 | sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 21334 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do |
| 21335 | gl_libobjs="$gl_libobjs $i.$ac_objext" |
| 21336 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" |
| 21337 | done |
| 21338 | fi |
| 21339 | gl_LIBOBJS=$gl_libobjs |
| 21340 | |
| 21341 | gl_LTLIBOBJS=$gl_ltlibobjs |
| 21342 | |
| 21343 | |
| 21344 | |
| 21345 | gltests_libobjs= |
| 21346 | gltests_ltlibobjs= |
| 21347 | if test -n "$gltests_LIBOBJS"; then |
| 21348 | # Remove the extension. |
| 21349 | sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 21350 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do |
| 21351 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" |
| 21352 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" |
| 21353 | done |
| 21354 | fi |
| 21355 | gltests_LIBOBJS=$gltests_libobjs |
| 21356 | |
| 21357 | gltests_LTLIBOBJS=$gltests_ltlibobjs |
| 21358 | |
| 21359 | |
| 21360 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 21361 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 21362 | Usually this means the macro was only invoked conditionally." >&5 |
| 21363 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 21364 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21365 | { (exit 1); exit 1; }; } |
| 21366 | fi |
| 21367 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 21368 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 21369 | Usually this means the macro was only invoked conditionally." >&5 |
| 21370 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 21371 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21372 | { (exit 1); exit 1; }; } |
| 21373 | fi |
| 21374 | |
| 21375 | : ${CONFIG_STATUS=./config.status} |
| 21376 | ac_clean_files_save=$ac_clean_files |
| 21377 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 21378 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 21379 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21380 | cat >$CONFIG_STATUS <<_ACEOF |
| 21381 | #! $SHELL |
| 21382 | # Generated by $as_me. |
| 21383 | # Run this file to recreate the current configuration. |
| 21384 | # Compiler output produced by configure, useful for debugging |
| 21385 | # configure, is in config.log if it exists. |
| 21386 | |
| 21387 | debug=false |
| 21388 | ac_cs_recheck=false |
| 21389 | ac_cs_silent=false |
| 21390 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 21391 | _ACEOF |
| 21392 | |
| 21393 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21394 | ## --------------------- ## |
| 21395 | ## M4sh Initialization. ## |
| 21396 | ## --------------------- ## |
| 21397 | |
| 21398 | # Be Bourne compatible |
| 21399 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 21400 | emulate sh |
| 21401 | NULLCMD=: |
| 21402 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 21403 | # is contrary to our usage. Disable this feature. |
| 21404 | alias -g '${1+"$@"}'='"$@"' |
| 21405 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21406 | set -o posix |
| 21407 | fi |
| 21408 | DUALCASE=1; export DUALCASE # for MKS sh |
| 21409 | |
| 21410 | # Support unset when possible. |
| 21411 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 21412 | as_unset=unset |
| 21413 | else |
| 21414 | as_unset=false |
| 21415 | fi |
| 21416 | |
| 21417 | |
| 21418 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21419 | $as_unset ENV MAIL MAILPATH |
| 21420 | PS1='$ ' |
| 21421 | PS2='> ' |
| 21422 | PS4='+ ' |
| 21423 | |
| 21424 | # NLS nuisances. |
| 21425 | for as_var in \ |
| 21426 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21427 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21428 | LC_TELEPHONE LC_TIME |
| 21429 | do |
| 21430 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 21431 | eval $as_var=C; export $as_var |
| 21432 | else |
| 21433 | $as_unset $as_var |
| 21434 | fi |
| 21435 | done |
| 21436 | |
| 21437 | # Required to use basename. |
| 21438 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 21439 | as_expr=expr |
| 21440 | else |
| 21441 | as_expr=false |
| 21442 | fi |
| 21443 | |
| 21444 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 21445 | as_basename=basename |
| 21446 | else |
| 21447 | as_basename=false |
| 21448 | fi |
| 21449 | |
| 21450 | |
| 21451 | # Name of the executable. |
| 21452 | as_me=`$as_basename "$0" || |
| 21453 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21454 | X"$0" : 'X\(//\)$' \| \ |
| 21455 | X"$0" : 'X\(/\)$' \| \ |
| 21456 | . : '\(.\)' 2>/dev/null || |
| 21457 | echo X/"$0" | |
| 21458 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 21459 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 21460 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 21461 | s/.*/./; q'` |
| 21462 | |
| 21463 | |
| 21464 | # PATH needs CR, and LINENO needs CR and PATH. |
| 21465 | # Avoid depending upon Character Ranges. |
| 21466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 21467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 21468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 21469 | as_cr_digits='0123456789' |
| 21470 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 21471 | |
| 21472 | # The user is always right. |
| 21473 | if test "${PATH_SEPARATOR+set}" != set; then |
| 21474 | echo "#! /bin/sh" >conf$$.sh |
| 21475 | echo "exit 0" >>conf$$.sh |
| 21476 | chmod +x conf$$.sh |
| 21477 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 21478 | PATH_SEPARATOR=';' |
| 21479 | else |
| 21480 | PATH_SEPARATOR=: |
| 21481 | fi |
| 21482 | rm -f conf$$.sh |
| 21483 | fi |
| 21484 | |
| 21485 | |
| 21486 | as_lineno_1=$LINENO |
| 21487 | as_lineno_2=$LINENO |
| 21488 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 21489 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21490 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 21491 | # Find who we are. Look in the path if we contain no path at all |
| 21492 | # relative or not. |
| 21493 | case $0 in |
| 21494 | *[\\/]* ) as_myself=$0 ;; |
| 21495 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21496 | for as_dir in $PATH |
| 21497 | do |
| 21498 | IFS=$as_save_IFS |
| 21499 | test -z "$as_dir" && as_dir=. |
| 21500 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 21501 | done |
| 21502 | |
| 21503 | ;; |
| 21504 | esac |
| 21505 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 21506 | # in which case we are not to be found in the path. |
| 21507 | if test "x$as_myself" = x; then |
| 21508 | as_myself=$0 |
| 21509 | fi |
| 21510 | if test ! -f "$as_myself"; then |
| 21511 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 21512 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 21513 | { (exit 1); exit 1; }; } |
| 21514 | fi |
| 21515 | case $CONFIG_SHELL in |
| 21516 | '') |
| 21517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21518 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 21519 | do |
| 21520 | IFS=$as_save_IFS |
| 21521 | test -z "$as_dir" && as_dir=. |
| 21522 | for as_base in sh bash ksh sh5; do |
| 21523 | case $as_dir in |
| 21524 | /*) |
| 21525 | if ("$as_dir/$as_base" -c ' |
| 21526 | as_lineno_1=$LINENO |
| 21527 | as_lineno_2=$LINENO |
| 21528 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 21529 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21530 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 21531 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 21532 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 21533 | CONFIG_SHELL=$as_dir/$as_base |
| 21534 | export CONFIG_SHELL |
| 21535 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 21536 | fi;; |
| 21537 | esac |
| 21538 | done |
| 21539 | done |
| 21540 | ;; |
| 21541 | esac |
| 21542 | |
| 21543 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21544 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 21545 | # line-number line before each line; the second 'sed' does the real |
| 21546 | # work. The second script uses 'N' to pair each line-number line |
| 21547 | # with the numbered line, and appends trailing '-' during |
| 21548 | # substitution so that $LINENO is not a special case at line end. |
| 21549 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 21550 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 21551 | sed '=' <$as_myself | |
| 21552 | sed ' |
| 21553 | N |
| 21554 | s,$,-, |
| 21555 | : loop |
| 21556 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 21557 | t loop |
| 21558 | s,-$,, |
| 21559 | s,^['$as_cr_digits']*\n,, |
| 21560 | ' >$as_me.lineno && |
| 21561 | chmod +x $as_me.lineno || |
| 21562 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 21563 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 21564 | { (exit 1); exit 1; }; } |
| 21565 | |
| 21566 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21567 | # (the dirname of $[0] is not the place where we might find the |
| 21568 | # original and so on. Autoconf is especially sensible to this). |
| 21569 | . ./$as_me.lineno |
| 21570 | # Exit status is that of the last command. |
| 21571 | exit |
| 21572 | } |
| 21573 | |
| 21574 | |
| 21575 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 21576 | *c*,-n*) ECHO_N= ECHO_C=' |
| 21577 | ' ECHO_T=' ' ;; |
| 21578 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 21579 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 21580 | esac |
| 21581 | |
| 21582 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 21583 | as_expr=expr |
| 21584 | else |
| 21585 | as_expr=false |
| 21586 | fi |
| 21587 | |
| 21588 | rm -f conf$$ conf$$.exe conf$$.file |
| 21589 | echo >conf$$.file |
| 21590 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 21591 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 21592 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 21593 | if test -f conf$$.exe; then |
| 21594 | # Don't use ln at all; we don't have any links |
| 21595 | as_ln_s='cp -p' |
| 21596 | else |
| 21597 | as_ln_s='ln -s' |
| 21598 | fi |
| 21599 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21600 | as_ln_s=ln |
| 21601 | else |
| 21602 | as_ln_s='cp -p' |
| 21603 | fi |
| 21604 | rm -f conf$$ conf$$.exe conf$$.file |
| 21605 | |
| 21606 | if mkdir -p . 2>/dev/null; then |
| 21607 | as_mkdir_p=: |
| 21608 | else |
| 21609 | test -d ./-p && rmdir ./-p |
| 21610 | as_mkdir_p=false |
| 21611 | fi |
| 21612 | |
| 21613 | as_executable_p="test -f" |
| 21614 | |
| 21615 | # Sed expression to map a string onto a valid CPP name. |
| 21616 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 21617 | |
| 21618 | # Sed expression to map a string onto a valid variable name. |
| 21619 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 21620 | |
| 21621 | |
| 21622 | # IFS |
| 21623 | # We need space, tab and new line, in precisely that order. |
| 21624 | as_nl=' |
| 21625 | ' |
| 21626 | IFS=" $as_nl" |
| 21627 | |
| 21628 | # CDPATH. |
| 21629 | $as_unset CDPATH |
| 21630 | |
| 21631 | exec 6>&1 |
| 21632 | |
| 21633 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 21634 | # report actual input values of CONFIG_FILES etc. instead of their |
| 21635 | # values after options handling. Logging --version etc. is OK. |
| 21636 | exec 5>>config.log |
| 21637 | { |
| 21638 | echo |
| 21639 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21640 | ## Running $as_me. ## |
| 21641 | _ASBOX |
| 21642 | } >&5 |
| 21643 | cat >&5 <<_CSEOF |
| 21644 | |
| 21645 | This file was extended by $as_me, which was |
| 21646 | generated by GNU Autoconf 2.59. Invocation command line was |
| 21647 | |
| 21648 | CONFIG_FILES = $CONFIG_FILES |
| 21649 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21650 | CONFIG_LINKS = $CONFIG_LINKS |
| 21651 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21652 | $ $0 $@ |
| 21653 | |
| 21654 | _CSEOF |
| 21655 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 21656 | echo >&5 |
| 21657 | _ACEOF |
| 21658 | |
| 21659 | # Files that config.status was made for. |
| 21660 | if test -n "$ac_config_files"; then |
| 21661 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 21662 | fi |
| 21663 | |
| 21664 | if test -n "$ac_config_headers"; then |
| 21665 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 21666 | fi |
| 21667 | |
| 21668 | if test -n "$ac_config_links"; then |
| 21669 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 21670 | fi |
| 21671 | |
| 21672 | if test -n "$ac_config_commands"; then |
| 21673 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 21674 | fi |
| 21675 | |
| 21676 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21677 | |
| 21678 | ac_cs_usage="\ |
| 21679 | \`$as_me' instantiates files from templates according to the |
| 21680 | current configuration. |
| 21681 | |
| 21682 | Usage: $0 [OPTIONS] [FILE]... |
| 21683 | |
| 21684 | -h, --help print this help, then exit |
| 21685 | -V, --version print version number, then exit |
| 21686 | -q, --quiet do not print progress messages |
| 21687 | -d, --debug don't remove temporary files |
| 21688 | --recheck update $as_me by reconfiguring in the same conditions |
| 21689 | --file=FILE[:TEMPLATE] |
| 21690 | instantiate the configuration file FILE |
| 21691 | --header=FILE[:TEMPLATE] |
| 21692 | instantiate the configuration header FILE |
| 21693 | |
| 21694 | Configuration files: |
| 21695 | $config_files |
| 21696 | |
| 21697 | Configuration headers: |
| 21698 | $config_headers |
| 21699 | |
| 21700 | Configuration links: |
| 21701 | $config_links |
| 21702 | |
| 21703 | Configuration commands: |
| 21704 | $config_commands |
| 21705 | |
| 21706 | Report bugs to <bug-autoconf@gnu.org>." |
| 21707 | _ACEOF |
| 21708 | |
| 21709 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21710 | ac_cs_version="\\ |
| 21711 | config.status |
| 21712 | configured by $0, generated by GNU Autoconf 2.59, |
| 21713 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 21714 | |
| 21715 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 21716 | This config.status script is free software; the Free Software Foundation |
| 21717 | gives unlimited permission to copy, distribute and modify it." |
| 21718 | srcdir=$srcdir |
| 21719 | INSTALL="$INSTALL" |
| 21720 | _ACEOF |
| 21721 | |
| 21722 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21723 | # If no file are specified by the user, then we need to provide default |
| 21724 | # value. By we need to know if files were specified by the user. |
| 21725 | ac_need_defaults=: |
| 21726 | while test $# != 0 |
| 21727 | do |
| 21728 | case $1 in |
| 21729 | --*=*) |
| 21730 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 21731 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 21732 | ac_shift=: |
| 21733 | ;; |
| 21734 | -*) |
| 21735 | ac_option=$1 |
| 21736 | ac_optarg=$2 |
| 21737 | ac_shift=shift |
| 21738 | ;; |
| 21739 | *) # This is not an option, so the user has probably given explicit |
| 21740 | # arguments. |
| 21741 | ac_option=$1 |
| 21742 | ac_need_defaults=false;; |
| 21743 | esac |
| 21744 | |
| 21745 | case $ac_option in |
| 21746 | # Handling of the options. |
| 21747 | _ACEOF |
| 21748 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21749 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21750 | ac_cs_recheck=: ;; |
| 21751 | --version | --vers* | -V ) |
| 21752 | echo "$ac_cs_version"; exit 0 ;; |
| 21753 | --he | --h) |
| 21754 | # Conflict between --help and --header |
| 21755 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 21756 | Try \`$0 --help' for more information." >&5 |
| 21757 | echo "$as_me: error: ambiguous option: $1 |
| 21758 | Try \`$0 --help' for more information." >&2;} |
| 21759 | { (exit 1); exit 1; }; };; |
| 21760 | --help | --hel | -h ) |
| 21761 | echo "$ac_cs_usage"; exit 0 ;; |
| 21762 | --debug | --d* | -d ) |
| 21763 | debug=: ;; |
| 21764 | --file | --fil | --fi | --f ) |
| 21765 | $ac_shift |
| 21766 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 21767 | ac_need_defaults=false;; |
| 21768 | --header | --heade | --head | --hea ) |
| 21769 | $ac_shift |
| 21770 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 21771 | ac_need_defaults=false;; |
| 21772 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21773 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21774 | ac_cs_silent=: ;; |
| 21775 | |
| 21776 | # This is an error. |
| 21777 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 21778 | Try \`$0 --help' for more information." >&5 |
| 21779 | echo "$as_me: error: unrecognized option: $1 |
| 21780 | Try \`$0 --help' for more information." >&2;} |
| 21781 | { (exit 1); exit 1; }; } ;; |
| 21782 | |
| 21783 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 21784 | |
| 21785 | esac |
| 21786 | shift |
| 21787 | done |
| 21788 | |
| 21789 | ac_configure_extra_args= |
| 21790 | |
| 21791 | if $ac_cs_silent; then |
| 21792 | exec 6>/dev/null |
| 21793 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21794 | fi |
| 21795 | |
| 21796 | _ACEOF |
| 21797 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21798 | if \$ac_cs_recheck; then |
| 21799 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21800 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 21801 | fi |
| 21802 | |
| 21803 | _ACEOF |
| 21804 | |
| 21805 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21806 | # |
| 21807 | # INIT-COMMANDS section. |
| 21808 | # |
| 21809 | |
| 21810 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR |
| 21811 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 21812 | |
| 21813 | gdb_host_cpu=$gdb_host_cpu |
| 21814 | nativefile=$nativefile |
| 21815 | |
| 21816 | |
| 21817 | _ACEOF |
| 21818 | |
| 21819 | |
| 21820 | |
| 21821 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21822 | for ac_config_target in $ac_config_targets |
| 21823 | do |
| 21824 | case "$ac_config_target" in |
| 21825 | # Handling of arguments. |
| 21826 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 21827 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; |
| 21828 | "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;; |
| 21829 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; |
| 21830 | "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; |
| 21831 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 21832 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 21833 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
| 21834 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21835 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21836 | { (exit 1); exit 1; }; };; |
| 21837 | esac |
| 21838 | done |
| 21839 | |
| 21840 | # If the user did not use the arguments to specify the items to instantiate, |
| 21841 | # then the envvar interface is used. Set only those that are not. |
| 21842 | # We use the long form for the default assignment because of an extremely |
| 21843 | # bizarre bug on SunOS 4.1.3. |
| 21844 | if $ac_need_defaults; then |
| 21845 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21846 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 21847 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
| 21848 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 21849 | fi |
| 21850 | |
| 21851 | # Have a temporary directory for convenience. Make it in the build tree |
| 21852 | # simply because there is no reason to put it here, and in addition, |
| 21853 | # creating and moving files from /tmp can sometimes cause problems. |
| 21854 | # Create a temporary directory, and hook for its removal unless debugging. |
| 21855 | $debug || |
| 21856 | { |
| 21857 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 21858 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 21859 | } |
| 21860 | |
| 21861 | # Create a (secure) tmp directory for tmp files. |
| 21862 | |
| 21863 | { |
| 21864 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 21865 | test -n "$tmp" && test -d "$tmp" |
| 21866 | } || |
| 21867 | { |
| 21868 | tmp=./confstat$$-$RANDOM |
| 21869 | (umask 077 && mkdir $tmp) |
| 21870 | } || |
| 21871 | { |
| 21872 | echo "$me: cannot create a temporary directory in ." >&2 |
| 21873 | { (exit 1); exit 1; } |
| 21874 | } |
| 21875 | |
| 21876 | _ACEOF |
| 21877 | |
| 21878 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21879 | |
| 21880 | # |
| 21881 | # CONFIG_FILES section. |
| 21882 | # |
| 21883 | |
| 21884 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21885 | # This happens for instance when ./config.status config.h |
| 21886 | if test -n "\$CONFIG_FILES"; then |
| 21887 | # Protect against being on the right side of a sed subst in config.status. |
| 21888 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 21889 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 21890 | s,@SHELL@,$SHELL,;t t |
| 21891 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 21892 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 21893 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 21894 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 21895 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 21896 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 21897 | s,@exec_prefix@,$exec_prefix,;t t |
| 21898 | s,@prefix@,$prefix,;t t |
| 21899 | s,@program_transform_name@,$program_transform_name,;t t |
| 21900 | s,@bindir@,$bindir,;t t |
| 21901 | s,@sbindir@,$sbindir,;t t |
| 21902 | s,@libexecdir@,$libexecdir,;t t |
| 21903 | s,@datadir@,$datadir,;t t |
| 21904 | s,@sysconfdir@,$sysconfdir,;t t |
| 21905 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 21906 | s,@localstatedir@,$localstatedir,;t t |
| 21907 | s,@libdir@,$libdir,;t t |
| 21908 | s,@includedir@,$includedir,;t t |
| 21909 | s,@oldincludedir@,$oldincludedir,;t t |
| 21910 | s,@infodir@,$infodir,;t t |
| 21911 | s,@mandir@,$mandir,;t t |
| 21912 | s,@build_alias@,$build_alias,;t t |
| 21913 | s,@host_alias@,$host_alias,;t t |
| 21914 | s,@target_alias@,$target_alias,;t t |
| 21915 | s,@DEFS@,$DEFS,;t t |
| 21916 | s,@ECHO_C@,$ECHO_C,;t t |
| 21917 | s,@ECHO_N@,$ECHO_N,;t t |
| 21918 | s,@ECHO_T@,$ECHO_T,;t t |
| 21919 | s,@LIBS@,$LIBS,;t t |
| 21920 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| 21921 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| 21922 | s,@MAINT@,$MAINT,;t t |
| 21923 | s,@CC@,$CC,;t t |
| 21924 | s,@CFLAGS@,$CFLAGS,;t t |
| 21925 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 21926 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 21927 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 21928 | s,@EXEEXT@,$EXEEXT,;t t |
| 21929 | s,@OBJEXT@,$OBJEXT,;t t |
| 21930 | s,@CPP@,$CPP,;t t |
| 21931 | s,@EGREP@,$EGREP,;t t |
| 21932 | s,@RANLIB@,$RANLIB,;t t |
| 21933 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 21934 | s,@build@,$build,;t t |
| 21935 | s,@build_cpu@,$build_cpu,;t t |
| 21936 | s,@build_vendor@,$build_vendor,;t t |
| 21937 | s,@build_os@,$build_os,;t t |
| 21938 | s,@host@,$host,;t t |
| 21939 | s,@host_cpu@,$host_cpu,;t t |
| 21940 | s,@host_vendor@,$host_vendor,;t t |
| 21941 | s,@host_os@,$host_os,;t t |
| 21942 | s,@target@,$target,;t t |
| 21943 | s,@target_cpu@,$target_cpu,;t t |
| 21944 | s,@target_vendor@,$target_vendor,;t t |
| 21945 | s,@target_os@,$target_os,;t t |
| 21946 | s,@am__leading_dot@,$am__leading_dot,;t t |
| 21947 | s,@DEPDIR@,$DEPDIR,;t t |
| 21948 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 21949 | s,@MAKE@,$MAKE,;t t |
| 21950 | s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t |
| 21951 | s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t |
| 21952 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 21953 | s,@USE_NLS@,$USE_NLS,;t t |
| 21954 | s,@LIBINTL@,$LIBINTL,;t t |
| 21955 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t |
| 21956 | s,@INCINTL@,$INCINTL,;t t |
| 21957 | s,@XGETTEXT@,$XGETTEXT,;t t |
| 21958 | s,@GMSGFMT@,$GMSGFMT,;t t |
| 21959 | s,@POSUB@,$POSUB,;t t |
| 21960 | s,@CATALOGS@,$CATALOGS,;t t |
| 21961 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
| 21962 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
| 21963 | s,@GENCAT@,$GENCAT,;t t |
| 21964 | s,@CATOBJEXT@,$CATOBJEXT,;t t |
| 21965 | s,@localedir@,$localedir,;t t |
| 21966 | s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t |
| 21967 | s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t |
| 21968 | s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t |
| 21969 | s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t |
| 21970 | s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t |
| 21971 | s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t |
| 21972 | s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t |
| 21973 | s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t |
| 21974 | s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t |
| 21975 | s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t |
| 21976 | s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t |
| 21977 | s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t |
| 21978 | s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t |
| 21979 | s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t |
| 21980 | s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t |
| 21981 | s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t |
| 21982 | s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t |
| 21983 | s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t |
| 21984 | s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t |
| 21985 | s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t |
| 21986 | s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t |
| 21987 | s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t |
| 21988 | s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t |
| 21989 | s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t |
| 21990 | s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t |
| 21991 | s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t |
| 21992 | s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t |
| 21993 | s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t |
| 21994 | s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t |
| 21995 | s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t |
| 21996 | s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t |
| 21997 | s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t |
| 21998 | s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t |
| 21999 | s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t |
| 22000 | s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t |
| 22001 | s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t |
| 22002 | s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t |
| 22003 | s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t |
| 22004 | s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t |
| 22005 | s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t |
| 22006 | s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t |
| 22007 | s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t |
| 22008 | s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t |
| 22009 | s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t |
| 22010 | s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t |
| 22011 | s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t |
| 22012 | s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t |
| 22013 | s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t |
| 22014 | s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t |
| 22015 | s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t |
| 22016 | s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t |
| 22017 | s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t |
| 22018 | s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t |
| 22019 | s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t |
| 22020 | s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t |
| 22021 | s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t |
| 22022 | s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t |
| 22023 | s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t |
| 22024 | s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t |
| 22025 | s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t |
| 22026 | s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t |
| 22027 | s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t |
| 22028 | s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t |
| 22029 | s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t |
| 22030 | s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t |
| 22031 | s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t |
| 22032 | s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t |
| 22033 | s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t |
| 22034 | s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t |
| 22035 | s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t |
| 22036 | s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t |
| 22037 | s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t |
| 22038 | s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t |
| 22039 | s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t |
| 22040 | s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t |
| 22041 | s,@STDINT_H@,$STDINT_H,;t t |
| 22042 | s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t |
| 22043 | s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t |
| 22044 | s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t |
| 22045 | s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t |
| 22046 | s,@WCHAR_H@,$WCHAR_H,;t t |
| 22047 | s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t |
| 22048 | s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t |
| 22049 | s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t |
| 22050 | s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t |
| 22051 | s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t |
| 22052 | s,@PACKAGE@,$PACKAGE,;t t |
| 22053 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 22054 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 22055 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 22056 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
| 22057 | s,@PYTHON2_4@,$PYTHON2_4,;t t |
| 22058 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 22059 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 22060 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 22061 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 22062 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 22063 | s,@install_sh@,$install_sh,;t t |
| 22064 | s,@STRIP@,$STRIP,;t t |
| 22065 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 22066 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 22067 | s,@mkdir_p@,$mkdir_p,;t t |
| 22068 | s,@AWK@,$AWK,;t t |
| 22069 | s,@AMTAR@,$AMTAR,;t t |
| 22070 | s,@am__tar@,$am__tar,;t t |
| 22071 | s,@am__untar@,$am__untar,;t t |
| 22072 | s,@am__include@,$am__include,;t t |
| 22073 | s,@am__quote@,$am__quote,;t t |
| 22074 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 22075 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 22076 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 22077 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
| 22078 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
| 22079 | s,@subdirs@,$subdirs,;t t |
| 22080 | s,@TARGET_OBS@,$TARGET_OBS,;t t |
| 22081 | s,@PKGVERSION@,$PKGVERSION,;t t |
| 22082 | s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t |
| 22083 | s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t |
| 22084 | s,@LN_S@,$LN_S,;t t |
| 22085 | s,@YACC@,$YACC,;t t |
| 22086 | s,@AR@,$AR,;t t |
| 22087 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 22088 | s,@DLLTOOL@,$DLLTOOL,;t t |
| 22089 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t |
| 22090 | s,@WINDRES@,$WINDRES,;t t |
| 22091 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t |
| 22092 | s,@MIG@,$MIG,;t t |
| 22093 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t |
| 22094 | s,@READLINE@,$READLINE,;t t |
| 22095 | s,@READLINE_DEPS@,$READLINE_DEPS,;t t |
| 22096 | s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t |
| 22097 | s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t |
| 22098 | s,@LIBEXPAT@,$LIBEXPAT,;t t |
| 22099 | s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t |
| 22100 | s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t |
| 22101 | s,@ALLOCA@,$ALLOCA,;t t |
| 22102 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t |
| 22103 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t |
| 22104 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t |
| 22105 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
| 22106 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t |
| 22107 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t |
| 22108 | s,@WIN32LIBS@,$WIN32LIBS,;t t |
| 22109 | s,@LIBGUI@,$LIBGUI,;t t |
| 22110 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t |
| 22111 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t |
| 22112 | s,@TCL_VERSION@,$TCL_VERSION,;t t |
| 22113 | s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t |
| 22114 | s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t |
| 22115 | s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t |
| 22116 | s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t |
| 22117 | s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t |
| 22118 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t |
| 22119 | s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t |
| 22120 | s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t |
| 22121 | s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t |
| 22122 | s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t |
| 22123 | s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t |
| 22124 | s,@TCL_DEPS@,$TCL_DEPS,;t t |
| 22125 | s,@TK_VERSION@,$TK_VERSION,;t t |
| 22126 | s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t |
| 22127 | s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t |
| 22128 | s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t |
| 22129 | s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t |
| 22130 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t |
| 22131 | s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t |
| 22132 | s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t |
| 22133 | s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t |
| 22134 | s,@TK_INCLUDE@,$TK_INCLUDE,;t t |
| 22135 | s,@TK_LIBRARY@,$TK_LIBRARY,;t t |
| 22136 | s,@TK_DEPS@,$TK_DEPS,;t t |
| 22137 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t |
| 22138 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 22139 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t |
| 22140 | s,@X_LIBS@,$X_LIBS,;t t |
| 22141 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t |
| 22142 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t |
| 22143 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t |
| 22144 | s,@SIM@,$SIM,;t t |
| 22145 | s,@SIM_OBS@,$SIM_OBS,;t t |
| 22146 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t |
| 22147 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t |
| 22148 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t |
| 22149 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t |
| 22150 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t |
| 22151 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t |
| 22152 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t |
| 22153 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t |
| 22154 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t |
| 22155 | s,@target_subdir@,$target_subdir,;t t |
| 22156 | s,@frags@,$frags,;t t |
| 22157 | s,@nm_h@,$nm_h,;t t |
| 22158 | s,@datarootdir@,$datarootdir,;t t |
| 22159 | s,@docdir@,$docdir,;t t |
| 22160 | s,@htmldir@,$htmldir,;t t |
| 22161 | s,@pdfdir@,$pdfdir,;t t |
| 22162 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 22163 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 22164 | s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t |
| 22165 | s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t |
| 22166 | s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t |
| 22167 | s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t |
| 22168 | /@host_makefile_frag@/r $host_makefile_frag |
| 22169 | s,@host_makefile_frag@,,;t t |
| 22170 | CEOF |
| 22171 | |
| 22172 | _ACEOF |
| 22173 | |
| 22174 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22175 | # Split the substitutions into bite-sized pieces for seds with |
| 22176 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 22177 | ac_max_sed_lines=48 |
| 22178 | ac_sed_frag=1 # Number of current file. |
| 22179 | ac_beg=1 # First line for current file. |
| 22180 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 22181 | ac_more_lines=: |
| 22182 | ac_sed_cmds= |
| 22183 | while $ac_more_lines; do |
| 22184 | if test $ac_beg -gt 1; then |
| 22185 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 22186 | else |
| 22187 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 22188 | fi |
| 22189 | if test ! -s $tmp/subs.frag; then |
| 22190 | ac_more_lines=false |
| 22191 | else |
| 22192 | # The purpose of the label and of the branching condition is to |
| 22193 | # speed up the sed processing (if there are no `@' at all, there |
| 22194 | # is no need to browse any of the substitutions). |
| 22195 | # These are the two extra sed commands mentioned above. |
| 22196 | (echo ':t |
| 22197 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 22198 | if test -z "$ac_sed_cmds"; then |
| 22199 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 22200 | else |
| 22201 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 22202 | fi |
| 22203 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 22204 | ac_beg=$ac_end |
| 22205 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 22206 | fi |
| 22207 | done |
| 22208 | if test -z "$ac_sed_cmds"; then |
| 22209 | ac_sed_cmds=cat |
| 22210 | fi |
| 22211 | fi # test -n "$CONFIG_FILES" |
| 22212 | |
| 22213 | _ACEOF |
| 22214 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22215 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 22216 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 22217 | case $ac_file in |
| 22218 | - | *:- | *:-:* ) # input from stdin |
| 22219 | cat >$tmp/stdin |
| 22220 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22221 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 22222 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22223 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 22224 | * ) ac_file_in=$ac_file.in ;; |
| 22225 | esac |
| 22226 | |
| 22227 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 22228 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 22229 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22230 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22231 | X"$ac_file" : 'X\(//\)$' \| \ |
| 22232 | X"$ac_file" : 'X\(/\)' \| \ |
| 22233 | . : '\(.\)' 2>/dev/null || |
| 22234 | echo X"$ac_file" | |
| 22235 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22236 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22237 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22238 | /^X\(\/\).*/{ s//\1/; q; } |
| 22239 | s/.*/./; q'` |
| 22240 | { if $as_mkdir_p; then |
| 22241 | mkdir -p "$ac_dir" |
| 22242 | else |
| 22243 | as_dir="$ac_dir" |
| 22244 | as_dirs= |
| 22245 | while test ! -d "$as_dir"; do |
| 22246 | as_dirs="$as_dir $as_dirs" |
| 22247 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 22248 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22249 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22250 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22251 | X"$as_dir" : 'X\(/\)' \| \ |
| 22252 | . : '\(.\)' 2>/dev/null || |
| 22253 | echo X"$as_dir" | |
| 22254 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22255 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22256 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22257 | /^X\(\/\).*/{ s//\1/; q; } |
| 22258 | s/.*/./; q'` |
| 22259 | done |
| 22260 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 22261 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 22262 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 22263 | { (exit 1); exit 1; }; }; } |
| 22264 | |
| 22265 | ac_builddir=. |
| 22266 | |
| 22267 | if test "$ac_dir" != .; then |
| 22268 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 22269 | # A "../" for each directory in $ac_dir_suffix. |
| 22270 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 22271 | else |
| 22272 | ac_dir_suffix= ac_top_builddir= |
| 22273 | fi |
| 22274 | |
| 22275 | case $srcdir in |
| 22276 | .) # No --srcdir option. We are building in place. |
| 22277 | ac_srcdir=. |
| 22278 | if test -z "$ac_top_builddir"; then |
| 22279 | ac_top_srcdir=. |
| 22280 | else |
| 22281 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 22282 | fi ;; |
| 22283 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 22284 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 22285 | ac_top_srcdir=$srcdir ;; |
| 22286 | *) # Relative path. |
| 22287 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 22288 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 22289 | esac |
| 22290 | |
| 22291 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 22292 | # the directories may not exist. |
| 22293 | case `pwd` in |
| 22294 | .) ac_abs_builddir="$ac_dir";; |
| 22295 | *) |
| 22296 | case "$ac_dir" in |
| 22297 | .) ac_abs_builddir=`pwd`;; |
| 22298 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 22299 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 22300 | esac;; |
| 22301 | esac |
| 22302 | case $ac_abs_builddir in |
| 22303 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 22304 | *) |
| 22305 | case ${ac_top_builddir}. in |
| 22306 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 22307 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 22308 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 22309 | esac;; |
| 22310 | esac |
| 22311 | case $ac_abs_builddir in |
| 22312 | .) ac_abs_srcdir=$ac_srcdir;; |
| 22313 | *) |
| 22314 | case $ac_srcdir in |
| 22315 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 22316 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 22317 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 22318 | esac;; |
| 22319 | esac |
| 22320 | case $ac_abs_builddir in |
| 22321 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 22322 | *) |
| 22323 | case $ac_top_srcdir in |
| 22324 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 22325 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 22326 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 22327 | esac;; |
| 22328 | esac |
| 22329 | |
| 22330 | |
| 22331 | case $INSTALL in |
| 22332 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 22333 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 22334 | esac |
| 22335 | |
| 22336 | if test x"$ac_file" != x-; then |
| 22337 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22338 | echo "$as_me: creating $ac_file" >&6;} |
| 22339 | rm -f "$ac_file" |
| 22340 | fi |
| 22341 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22342 | # use $as_me), people would be surprised to read: |
| 22343 | # /* config.h. Generated by config.status. */ |
| 22344 | if test x"$ac_file" = x-; then |
| 22345 | configure_input= |
| 22346 | else |
| 22347 | configure_input="$ac_file. " |
| 22348 | fi |
| 22349 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 22350 | sed 's,.*/,,'` by configure." |
| 22351 | |
| 22352 | # First look for the input files in the build tree, otherwise in the |
| 22353 | # src tree. |
| 22354 | ac_file_inputs=`IFS=: |
| 22355 | for f in $ac_file_in; do |
| 22356 | case $f in |
| 22357 | -) echo $tmp/stdin ;; |
| 22358 | [\\/$]*) |
| 22359 | # Absolute (can't be DOS-style, as IFS=:) |
| 22360 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 22361 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22362 | { (exit 1); exit 1; }; } |
| 22363 | echo "$f";; |
| 22364 | *) # Relative |
| 22365 | if test -f "$f"; then |
| 22366 | # Build tree |
| 22367 | echo "$f" |
| 22368 | elif test -f "$srcdir/$f"; then |
| 22369 | # Source tree |
| 22370 | echo "$srcdir/$f" |
| 22371 | else |
| 22372 | # /dev/null tree |
| 22373 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 22374 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22375 | { (exit 1); exit 1; }; } |
| 22376 | fi;; |
| 22377 | esac |
| 22378 | done` || { (exit 1); exit 1; } |
| 22379 | _ACEOF |
| 22380 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22381 | sed "$ac_vpsub |
| 22382 | $extrasub |
| 22383 | _ACEOF |
| 22384 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22385 | :t |
| 22386 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 22387 | s,@configure_input@,$configure_input,;t t |
| 22388 | s,@srcdir@,$ac_srcdir,;t t |
| 22389 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 22390 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 22391 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 22392 | s,@builddir@,$ac_builddir,;t t |
| 22393 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 22394 | s,@top_builddir@,$ac_top_builddir,;t t |
| 22395 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 22396 | s,@INSTALL@,$ac_INSTALL,;t t |
| 22397 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 22398 | rm -f $tmp/stdin |
| 22399 | if test x"$ac_file" != x-; then |
| 22400 | mv $tmp/out $ac_file |
| 22401 | else |
| 22402 | cat $tmp/out |
| 22403 | rm -f $tmp/out |
| 22404 | fi |
| 22405 | |
| 22406 | done |
| 22407 | _ACEOF |
| 22408 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22409 | |
| 22410 | # |
| 22411 | # CONFIG_HEADER section. |
| 22412 | # |
| 22413 | |
| 22414 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 22415 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 22416 | # |
| 22417 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 22418 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 22419 | ac_dB='[ ].*$,\1#\2' |
| 22420 | ac_dC=' ' |
| 22421 | ac_dD=',;t' |
| 22422 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 22423 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 22424 | ac_uB='$,\1#\2define\3' |
| 22425 | ac_uC=' ' |
| 22426 | ac_uD=',;t' |
| 22427 | |
| 22428 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 22429 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 22430 | case $ac_file in |
| 22431 | - | *:- | *:-:* ) # input from stdin |
| 22432 | cat >$tmp/stdin |
| 22433 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22434 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 22435 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22436 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 22437 | * ) ac_file_in=$ac_file.in ;; |
| 22438 | esac |
| 22439 | |
| 22440 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22441 | echo "$as_me: creating $ac_file" >&6;} |
| 22442 | |
| 22443 | # First look for the input files in the build tree, otherwise in the |
| 22444 | # src tree. |
| 22445 | ac_file_inputs=`IFS=: |
| 22446 | for f in $ac_file_in; do |
| 22447 | case $f in |
| 22448 | -) echo $tmp/stdin ;; |
| 22449 | [\\/$]*) |
| 22450 | # Absolute (can't be DOS-style, as IFS=:) |
| 22451 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 22452 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22453 | { (exit 1); exit 1; }; } |
| 22454 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 22455 | echo "$f";; |
| 22456 | *) # Relative |
| 22457 | if test -f "$f"; then |
| 22458 | # Build tree |
| 22459 | echo "$f" |
| 22460 | elif test -f "$srcdir/$f"; then |
| 22461 | # Source tree |
| 22462 | echo "$srcdir/$f" |
| 22463 | else |
| 22464 | # /dev/null tree |
| 22465 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 22466 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22467 | { (exit 1); exit 1; }; } |
| 22468 | fi;; |
| 22469 | esac |
| 22470 | done` || { (exit 1); exit 1; } |
| 22471 | # Remove the trailing spaces. |
| 22472 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 22473 | |
| 22474 | _ACEOF |
| 22475 | |
| 22476 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 22477 | # `conftest.undefs', that substitutes the proper values into |
| 22478 | # config.h.in to produce config.h. The first handles `#define' |
| 22479 | # templates, and the second `#undef' templates. |
| 22480 | # And first: Protect against being on the right side of a sed subst in |
| 22481 | # config.status. Protect against being in an unquoted here document |
| 22482 | # in config.status. |
| 22483 | rm -f conftest.defines conftest.undefs |
| 22484 | # Using a here document instead of a string reduces the quoting nightmare. |
| 22485 | # Putting comments in sed scripts is not portable. |
| 22486 | # |
| 22487 | # `end' is used to avoid that the second main sed command (meant for |
| 22488 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 22489 | # See the Autoconf documentation for `clear'. |
| 22490 | cat >confdef2sed.sed <<\_ACEOF |
| 22491 | s/[\\&,]/\\&/g |
| 22492 | s,[\\$`],\\&,g |
| 22493 | t clear |
| 22494 | : clear |
| 22495 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 22496 | t end |
| 22497 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 22498 | : end |
| 22499 | _ACEOF |
| 22500 | # If some macros were called several times there might be several times |
| 22501 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 22502 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 22503 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 22504 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 22505 | rm -f confdef2sed.sed |
| 22506 | |
| 22507 | # This sed command replaces #undef with comments. This is necessary, for |
| 22508 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 22509 | # on some systems where configure will not decide to define it. |
| 22510 | cat >>conftest.undefs <<\_ACEOF |
| 22511 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 22512 | _ACEOF |
| 22513 | |
| 22514 | # Break up conftest.defines because some shells have a limit on the size |
| 22515 | # of here documents, and old seds have small limits too (100 cmds). |
| 22516 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 22517 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 22518 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 22519 | echo ' :' >>$CONFIG_STATUS |
| 22520 | rm -f conftest.tail |
| 22521 | while grep . conftest.defines >/dev/null |
| 22522 | do |
| 22523 | # Write a limited-size here document to $tmp/defines.sed. |
| 22524 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 22525 | # Speed up: don't consider the non `#define' lines. |
| 22526 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 22527 | # Work around the forget-to-reset-the-flag bug. |
| 22528 | echo 't clr' >>$CONFIG_STATUS |
| 22529 | echo ': clr' >>$CONFIG_STATUS |
| 22530 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 22531 | echo 'CEOF |
| 22532 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 22533 | rm -f $tmp/in |
| 22534 | mv $tmp/out $tmp/in |
| 22535 | ' >>$CONFIG_STATUS |
| 22536 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 22537 | rm -f conftest.defines |
| 22538 | mv conftest.tail conftest.defines |
| 22539 | done |
| 22540 | rm -f conftest.defines |
| 22541 | echo ' fi # grep' >>$CONFIG_STATUS |
| 22542 | echo >>$CONFIG_STATUS |
| 22543 | |
| 22544 | # Break up conftest.undefs because some shells have a limit on the size |
| 22545 | # of here documents, and old seds have small limits too (100 cmds). |
| 22546 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 22547 | rm -f conftest.tail |
| 22548 | while grep . conftest.undefs >/dev/null |
| 22549 | do |
| 22550 | # Write a limited-size here document to $tmp/undefs.sed. |
| 22551 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 22552 | # Speed up: don't consider the non `#undef' |
| 22553 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 22554 | # Work around the forget-to-reset-the-flag bug. |
| 22555 | echo 't clr' >>$CONFIG_STATUS |
| 22556 | echo ': clr' >>$CONFIG_STATUS |
| 22557 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 22558 | echo 'CEOF |
| 22559 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 22560 | rm -f $tmp/in |
| 22561 | mv $tmp/out $tmp/in |
| 22562 | ' >>$CONFIG_STATUS |
| 22563 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 22564 | rm -f conftest.undefs |
| 22565 | mv conftest.tail conftest.undefs |
| 22566 | done |
| 22567 | rm -f conftest.undefs |
| 22568 | |
| 22569 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22570 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22571 | # use $as_me), people would be surprised to read: |
| 22572 | # /* config.h. Generated by config.status. */ |
| 22573 | if test x"$ac_file" = x-; then |
| 22574 | echo "/* Generated by configure. */" >$tmp/config.h |
| 22575 | else |
| 22576 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 22577 | fi |
| 22578 | cat $tmp/in >>$tmp/config.h |
| 22579 | rm -f $tmp/in |
| 22580 | if test x"$ac_file" != x-; then |
| 22581 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 22582 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 22583 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 22584 | else |
| 22585 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 22586 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22587 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22588 | X"$ac_file" : 'X\(//\)$' \| \ |
| 22589 | X"$ac_file" : 'X\(/\)' \| \ |
| 22590 | . : '\(.\)' 2>/dev/null || |
| 22591 | echo X"$ac_file" | |
| 22592 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22593 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22594 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22595 | /^X\(\/\).*/{ s//\1/; q; } |
| 22596 | s/.*/./; q'` |
| 22597 | { if $as_mkdir_p; then |
| 22598 | mkdir -p "$ac_dir" |
| 22599 | else |
| 22600 | as_dir="$ac_dir" |
| 22601 | as_dirs= |
| 22602 | while test ! -d "$as_dir"; do |
| 22603 | as_dirs="$as_dir $as_dirs" |
| 22604 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 22605 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22606 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22607 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22608 | X"$as_dir" : 'X\(/\)' \| \ |
| 22609 | . : '\(.\)' 2>/dev/null || |
| 22610 | echo X"$as_dir" | |
| 22611 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22612 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22613 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22614 | /^X\(\/\).*/{ s//\1/; q; } |
| 22615 | s/.*/./; q'` |
| 22616 | done |
| 22617 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 22618 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 22619 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 22620 | { (exit 1); exit 1; }; }; } |
| 22621 | |
| 22622 | rm -f $ac_file |
| 22623 | mv $tmp/config.h $ac_file |
| 22624 | fi |
| 22625 | else |
| 22626 | cat $tmp/config.h |
| 22627 | rm -f $tmp/config.h |
| 22628 | fi |
| 22629 | # Compute $ac_file's index in $config_headers. |
| 22630 | _am_stamp_count=1 |
| 22631 | for _am_header in $config_headers :; do |
| 22632 | case $_am_header in |
| 22633 | $ac_file | $ac_file:* ) |
| 22634 | break ;; |
| 22635 | * ) |
| 22636 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 22637 | esac |
| 22638 | done |
| 22639 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
| 22640 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22641 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 22642 | X$ac_file : 'X\(//\)$' \| \ |
| 22643 | X$ac_file : 'X\(/\)' \| \ |
| 22644 | . : '\(.\)' 2>/dev/null || |
| 22645 | echo X$ac_file | |
| 22646 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22647 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22648 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22649 | /^X\(\/\).*/{ s//\1/; q; } |
| 22650 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 22651 | done |
| 22652 | _ACEOF |
| 22653 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22654 | |
| 22655 | # |
| 22656 | # CONFIG_LINKS section. |
| 22657 | # |
| 22658 | |
| 22659 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
| 22660 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 22661 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22662 | |
| 22663 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
| 22664 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
| 22665 | |
| 22666 | if test ! -r $srcdir/$ac_source; then |
| 22667 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
| 22668 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
| 22669 | { (exit 1); exit 1; }; } |
| 22670 | fi |
| 22671 | rm -f $ac_dest |
| 22672 | |
| 22673 | # Make relative symlinks. |
| 22674 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 22675 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22676 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 22677 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 22678 | X"$ac_dest" : 'X\(/\)' \| \ |
| 22679 | . : '\(.\)' 2>/dev/null || |
| 22680 | echo X"$ac_dest" | |
| 22681 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22682 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22683 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22684 | /^X\(\/\).*/{ s//\1/; q; } |
| 22685 | s/.*/./; q'` |
| 22686 | { if $as_mkdir_p; then |
| 22687 | mkdir -p "$ac_dest_dir" |
| 22688 | else |
| 22689 | as_dir="$ac_dest_dir" |
| 22690 | as_dirs= |
| 22691 | while test ! -d "$as_dir"; do |
| 22692 | as_dirs="$as_dir $as_dirs" |
| 22693 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 22694 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22695 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22696 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22697 | X"$as_dir" : 'X\(/\)' \| \ |
| 22698 | . : '\(.\)' 2>/dev/null || |
| 22699 | echo X"$as_dir" | |
| 22700 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22701 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22702 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22703 | /^X\(\/\).*/{ s//\1/; q; } |
| 22704 | s/.*/./; q'` |
| 22705 | done |
| 22706 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 22707 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 |
| 22708 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} |
| 22709 | { (exit 1); exit 1; }; }; } |
| 22710 | |
| 22711 | ac_builddir=. |
| 22712 | |
| 22713 | if test "$ac_dest_dir" != .; then |
| 22714 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` |
| 22715 | # A "../" for each directory in $ac_dir_suffix. |
| 22716 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 22717 | else |
| 22718 | ac_dir_suffix= ac_top_builddir= |
| 22719 | fi |
| 22720 | |
| 22721 | case $srcdir in |
| 22722 | .) # No --srcdir option. We are building in place. |
| 22723 | ac_srcdir=. |
| 22724 | if test -z "$ac_top_builddir"; then |
| 22725 | ac_top_srcdir=. |
| 22726 | else |
| 22727 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 22728 | fi ;; |
| 22729 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 22730 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 22731 | ac_top_srcdir=$srcdir ;; |
| 22732 | *) # Relative path. |
| 22733 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 22734 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 22735 | esac |
| 22736 | |
| 22737 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 22738 | # the directories may not exist. |
| 22739 | case `pwd` in |
| 22740 | .) ac_abs_builddir="$ac_dest_dir";; |
| 22741 | *) |
| 22742 | case "$ac_dest_dir" in |
| 22743 | .) ac_abs_builddir=`pwd`;; |
| 22744 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; |
| 22745 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; |
| 22746 | esac;; |
| 22747 | esac |
| 22748 | case $ac_abs_builddir in |
| 22749 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 22750 | *) |
| 22751 | case ${ac_top_builddir}. in |
| 22752 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 22753 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 22754 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 22755 | esac;; |
| 22756 | esac |
| 22757 | case $ac_abs_builddir in |
| 22758 | .) ac_abs_srcdir=$ac_srcdir;; |
| 22759 | *) |
| 22760 | case $ac_srcdir in |
| 22761 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 22762 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 22763 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 22764 | esac;; |
| 22765 | esac |
| 22766 | case $ac_abs_builddir in |
| 22767 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 22768 | *) |
| 22769 | case $ac_top_srcdir in |
| 22770 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 22771 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 22772 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 22773 | esac;; |
| 22774 | esac |
| 22775 | |
| 22776 | |
| 22777 | case $srcdir in |
| 22778 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
| 22779 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
| 22780 | esac |
| 22781 | |
| 22782 | # Try a symlink, then a hard link, then a copy. |
| 22783 | ln -s $ac_rel_source $ac_dest 2>/dev/null || |
| 22784 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
| 22785 | cp -p $srcdir/$ac_source $ac_dest || |
| 22786 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 |
| 22787 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} |
| 22788 | { (exit 1); exit 1; }; } |
| 22789 | done |
| 22790 | _ACEOF |
| 22791 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22792 | |
| 22793 | # |
| 22794 | # CONFIG_COMMANDS section. |
| 22795 | # |
| 22796 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 22797 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 22798 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22799 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 22800 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22801 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 22802 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 22803 | X"$ac_dest" : 'X\(/\)' \| \ |
| 22804 | . : '\(.\)' 2>/dev/null || |
| 22805 | echo X"$ac_dest" | |
| 22806 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22807 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22808 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22809 | /^X\(\/\).*/{ s//\1/; q; } |
| 22810 | s/.*/./; q'` |
| 22811 | { if $as_mkdir_p; then |
| 22812 | mkdir -p "$ac_dir" |
| 22813 | else |
| 22814 | as_dir="$ac_dir" |
| 22815 | as_dirs= |
| 22816 | while test ! -d "$as_dir"; do |
| 22817 | as_dirs="$as_dir $as_dirs" |
| 22818 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 22819 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22820 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22821 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22822 | X"$as_dir" : 'X\(/\)' \| \ |
| 22823 | . : '\(.\)' 2>/dev/null || |
| 22824 | echo X"$as_dir" | |
| 22825 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22826 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22827 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22828 | /^X\(\/\).*/{ s//\1/; q; } |
| 22829 | s/.*/./; q'` |
| 22830 | done |
| 22831 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 22832 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 22833 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 22834 | { (exit 1); exit 1; }; }; } |
| 22835 | |
| 22836 | ac_builddir=. |
| 22837 | |
| 22838 | if test "$ac_dir" != .; then |
| 22839 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 22840 | # A "../" for each directory in $ac_dir_suffix. |
| 22841 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 22842 | else |
| 22843 | ac_dir_suffix= ac_top_builddir= |
| 22844 | fi |
| 22845 | |
| 22846 | case $srcdir in |
| 22847 | .) # No --srcdir option. We are building in place. |
| 22848 | ac_srcdir=. |
| 22849 | if test -z "$ac_top_builddir"; then |
| 22850 | ac_top_srcdir=. |
| 22851 | else |
| 22852 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 22853 | fi ;; |
| 22854 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 22855 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 22856 | ac_top_srcdir=$srcdir ;; |
| 22857 | *) # Relative path. |
| 22858 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 22859 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 22860 | esac |
| 22861 | |
| 22862 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 22863 | # the directories may not exist. |
| 22864 | case `pwd` in |
| 22865 | .) ac_abs_builddir="$ac_dir";; |
| 22866 | *) |
| 22867 | case "$ac_dir" in |
| 22868 | .) ac_abs_builddir=`pwd`;; |
| 22869 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 22870 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 22871 | esac;; |
| 22872 | esac |
| 22873 | case $ac_abs_builddir in |
| 22874 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 22875 | *) |
| 22876 | case ${ac_top_builddir}. in |
| 22877 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 22878 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 22879 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 22880 | esac;; |
| 22881 | esac |
| 22882 | case $ac_abs_builddir in |
| 22883 | .) ac_abs_srcdir=$ac_srcdir;; |
| 22884 | *) |
| 22885 | case $ac_srcdir in |
| 22886 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 22887 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 22888 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 22889 | esac;; |
| 22890 | esac |
| 22891 | case $ac_abs_builddir in |
| 22892 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 22893 | *) |
| 22894 | case $ac_top_srcdir in |
| 22895 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 22896 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 22897 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 22898 | esac;; |
| 22899 | esac |
| 22900 | |
| 22901 | |
| 22902 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 22903 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 22904 | case $ac_dest in |
| 22905 | depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; |
| 22906 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 22907 | # Strip MF so we end up with the name of the file. |
| 22908 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 22909 | # Check whether this is an Automake generated Makefile or not. |
| 22910 | # We used to match only the files named `Makefile.in', but |
| 22911 | # some people rename them; so instead we look at the file content. |
| 22912 | # Grep'ing the first line is not enough: some people post-process |
| 22913 | # each Makefile.in and add a new line on top of each file to say so. |
| 22914 | # So let's grep whole file. |
| 22915 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 22916 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 22917 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22918 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 22919 | X"$mf" : 'X\(//\)$' \| \ |
| 22920 | X"$mf" : 'X\(/\)' \| \ |
| 22921 | . : '\(.\)' 2>/dev/null || |
| 22922 | echo X"$mf" | |
| 22923 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22924 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22925 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22926 | /^X\(\/\).*/{ s//\1/; q; } |
| 22927 | s/.*/./; q'` |
| 22928 | else |
| 22929 | continue |
| 22930 | fi |
| 22931 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 22932 | # from the Makefile without running `make'. |
| 22933 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 22934 | test -z "$DEPDIR" && continue |
| 22935 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 22936 | test -z "am__include" && continue |
| 22937 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 22938 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 22939 | U=`sed -n 's/^U = //p' < "$mf"` |
| 22940 | # Find all dependency output files, they are included files with |
| 22941 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 22942 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 22943 | # expansion. |
| 22944 | for file in `sed -n " |
| 22945 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 22946 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 22947 | # Make sure the directory exists. |
| 22948 | test -f "$dirpart/$file" && continue |
| 22949 | fdir=`(dirname "$file") 2>/dev/null || |
| 22950 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22951 | X"$file" : 'X\(//\)[^/]' \| \ |
| 22952 | X"$file" : 'X\(//\)$' \| \ |
| 22953 | X"$file" : 'X\(/\)' \| \ |
| 22954 | . : '\(.\)' 2>/dev/null || |
| 22955 | echo X"$file" | |
| 22956 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22957 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22958 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22959 | /^X\(\/\).*/{ s//\1/; q; } |
| 22960 | s/.*/./; q'` |
| 22961 | { if $as_mkdir_p; then |
| 22962 | mkdir -p $dirpart/$fdir |
| 22963 | else |
| 22964 | as_dir=$dirpart/$fdir |
| 22965 | as_dirs= |
| 22966 | while test ! -d "$as_dir"; do |
| 22967 | as_dirs="$as_dir $as_dirs" |
| 22968 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 22969 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22970 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22971 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22972 | X"$as_dir" : 'X\(/\)' \| \ |
| 22973 | . : '\(.\)' 2>/dev/null || |
| 22974 | echo X"$as_dir" | |
| 22975 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22976 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22977 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22978 | /^X\(\/\).*/{ s//\1/; q; } |
| 22979 | s/.*/./; q'` |
| 22980 | done |
| 22981 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 22982 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 22983 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 22984 | { (exit 1); exit 1; }; }; } |
| 22985 | |
| 22986 | # echo "creating $dirpart/$file" |
| 22987 | echo '# dummy' > "$dirpart/$file" |
| 22988 | done |
| 22989 | done |
| 22990 | ;; |
| 22991 | default ) |
| 22992 | |
| 22993 | sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp |
| 22994 | mv -f Makefile.tmp Makefile |
| 22995 | |
| 22996 | |
| 22997 | case x$CONFIG_HEADERS in |
| 22998 | xconfig.h:config.in) |
| 22999 | echo > stamp-h ;; |
| 23000 | esac |
| 23001 | ;; |
| 23002 | esac |
| 23003 | done |
| 23004 | _ACEOF |
| 23005 | |
| 23006 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23007 | |
| 23008 | { (exit 0); exit 0; } |
| 23009 | _ACEOF |
| 23010 | chmod +x $CONFIG_STATUS |
| 23011 | ac_clean_files=$ac_clean_files_save |
| 23012 | |
| 23013 | |
| 23014 | # configure is writing to config.log, and then calls config.status. |
| 23015 | # config.status does its own redirection, appending to config.log. |
| 23016 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 23017 | # by configure, so config.status won't be able to write to it; its |
| 23018 | # output is simply discarded. So we exec the FD to /dev/null, |
| 23019 | # effectively closing config.log, so it can be properly (re)opened and |
| 23020 | # appended to by config.status. When coming back to configure, we |
| 23021 | # need to make the FD available again. |
| 23022 | if test "$no_create" != yes; then |
| 23023 | ac_cs_success=: |
| 23024 | ac_config_status_args= |
| 23025 | test "$silent" = yes && |
| 23026 | ac_config_status_args="$ac_config_status_args --quiet" |
| 23027 | exec 5>/dev/null |
| 23028 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 23029 | exec 5>>config.log |
| 23030 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 23031 | # would make configure fail if this is the last instruction. |
| 23032 | $ac_cs_success || { (exit 1); exit 1; } |
| 23033 | fi |
| 23034 | |
| 23035 | # |
| 23036 | # CONFIG_SUBDIRS section, as fixed in confsubdir.m4. |
| 23037 | # |
| 23038 | if test "$no_recursion" != yes; then |
| 23039 | |
| 23040 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 23041 | ac_sub_configure_args= |
| 23042 | ac_prev= |
| 23043 | eval "set x $ac_configure_args" |
| 23044 | shift |
| 23045 | for ac_arg |
| 23046 | do |
| 23047 | if test -n "$ac_prev"; then |
| 23048 | ac_prev= |
| 23049 | continue |
| 23050 | fi |
| 23051 | case $ac_arg in |
| 23052 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 23053 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 23054 | ac_prev=cache_file ;; |
| 23055 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 23056 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 23057 | | --c=*) |
| 23058 | ;; |
| 23059 | --config-cache | -C) |
| 23060 | ;; |
| 23061 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 23062 | ac_prev=srcdir ;; |
| 23063 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 23064 | ;; |
| 23065 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 23066 | ac_prev=prefix ;; |
| 23067 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 23068 | ;; |
| 23069 | *) |
| 23070 | case $ac_arg in |
| 23071 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 23072 | esac |
| 23073 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
| 23074 | esac |
| 23075 | done |
| 23076 | |
| 23077 | # Always prepend --prefix to ensure using the same prefix |
| 23078 | # in subdir configurations. |
| 23079 | ac_arg="--prefix=$prefix" |
| 23080 | case $ac_arg in |
| 23081 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 23082 | esac |
| 23083 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
| 23084 | |
| 23085 | ac_popdir=`pwd` |
| 23086 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 23087 | |
| 23088 | # Do not complain, so a configure script can configure whichever |
| 23089 | # parts of a large source tree are present. |
| 23090 | test -d "$srcdir/$ac_dir" || continue |
| 23091 | |
| 23092 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
| 23093 | echo "$as_me: configuring in $ac_dir" >&6;} |
| 23094 | { if $as_mkdir_p; then |
| 23095 | mkdir -p "$ac_dir" |
| 23096 | else |
| 23097 | as_dir="$ac_dir" |
| 23098 | as_dirs= |
| 23099 | while test ! -d "$as_dir"; do |
| 23100 | as_dirs="$as_dir $as_dirs" |
| 23101 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23102 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23103 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23104 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23105 | X"$as_dir" : 'X\(/\)' \| \ |
| 23106 | . : '\(.\)' 2>/dev/null || |
| 23107 | echo X"$as_dir" | |
| 23108 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23109 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23110 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23111 | /^X\(\/\).*/{ s//\1/; q; } |
| 23112 | s/.*/./; q'` |
| 23113 | done |
| 23114 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23115 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23116 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23117 | { (exit 1); exit 1; }; }; } |
| 23118 | |
| 23119 | ac_builddir=. |
| 23120 | |
| 23121 | if test "$ac_dir" != .; then |
| 23122 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 23123 | # A "../" for each directory in $ac_dir_suffix. |
| 23124 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 23125 | else |
| 23126 | ac_dir_suffix= ac_top_builddir= |
| 23127 | fi |
| 23128 | |
| 23129 | case $srcdir in |
| 23130 | .) # No --srcdir option. We are building in place. |
| 23131 | ac_srcdir=. |
| 23132 | if test -z "$ac_top_builddir"; then |
| 23133 | ac_top_srcdir=. |
| 23134 | else |
| 23135 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 23136 | fi ;; |
| 23137 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 23138 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 23139 | ac_top_srcdir=$srcdir ;; |
| 23140 | *) # Relative path. |
| 23141 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 23142 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 23143 | esac |
| 23144 | |
| 23145 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 23146 | # the directories may not exist. |
| 23147 | case `pwd` in |
| 23148 | .) ac_abs_builddir="$ac_dir";; |
| 23149 | *) |
| 23150 | case "$ac_dir" in |
| 23151 | .) ac_abs_builddir=`pwd`;; |
| 23152 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 23153 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 23154 | esac;; |
| 23155 | esac |
| 23156 | case $ac_abs_builddir in |
| 23157 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23158 | *) |
| 23159 | case ${ac_top_builddir}. in |
| 23160 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 23161 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23162 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 23163 | esac;; |
| 23164 | esac |
| 23165 | case $ac_abs_builddir in |
| 23166 | .) ac_abs_srcdir=$ac_srcdir;; |
| 23167 | *) |
| 23168 | case $ac_srcdir in |
| 23169 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 23170 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 23171 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 23172 | esac;; |
| 23173 | esac |
| 23174 | case $ac_abs_builddir in |
| 23175 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23176 | *) |
| 23177 | case $ac_top_srcdir in |
| 23178 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 23179 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23180 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 23181 | esac;; |
| 23182 | esac |
| 23183 | |
| 23184 | |
| 23185 | cd "$ac_dir" |
| 23186 | |
| 23187 | # Check for guested configure; otherwise get Cygnus style configure. |
| 23188 | if test -f "$ac_srcdir/configure.gnu"; then |
| 23189 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 23190 | elif test -f "$ac_srcdir/configure"; then |
| 23191 | ac_sub_configure=$ac_srcdir/configure |
| 23192 | elif test -f "$ac_srcdir/configure.in"; then |
| 23193 | # This should be Cygnus configure. |
| 23194 | ac_sub_configure=$ac_aux_dir/configure |
| 23195 | else |
| 23196 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 23197 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 23198 | ac_sub_configure= |
| 23199 | fi |
| 23200 | |
| 23201 | # The recursion is here. |
| 23202 | if test -n "$ac_sub_configure"; then |
| 23203 | # Make the cache file name correct relative to the subdirectory. |
| 23204 | case $cache_file in |
| 23205 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 23206 | *) # Relative path. |
| 23207 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
| 23208 | esac |
| 23209 | |
| 23210 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 23211 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 23212 | # The eval makes quoting arguments work. |
| 23213 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 23214 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
| 23215 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 23216 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 23217 | { (exit 1); exit 1; }; } |
| 23218 | fi |
| 23219 | |
| 23220 | cd "$ac_popdir" |
| 23221 | done |
| 23222 | fi |
| 23223 | |
| 23224 | |
| 23225 | exit 0 |